Go to the source code of this file.
Classes | |
class | YDelayedPulse |
class | YWatchdog |
Macros | |
#define | _CLASS_YDELAYEDPULSE |
#define | _Y_OUTPUT_ENUM |
#define | _Y_RUNNING_ENUM |
#define | _Y_STATE_ENUM |
#define | _Y_STATEATPOWERON_ENUM |
#define | Y_COUNTDOWN_INVALID (YAPI_INVALID_LONG) |
#define | Y_MAXTIMEONSTATEA_INVALID (YAPI_INVALID_LONG) |
#define | Y_MAXTIMEONSTATEB_INVALID (YAPI_INVALID_LONG) |
#define | Y_PULSETIMER_INVALID (YAPI_INVALID_LONG) |
#define | Y_TRIGGERDELAY_INVALID (YAPI_INVALID_LONG) |
#define | Y_TRIGGERDURATION_INVALID (YAPI_INVALID_LONG) |
Typedefs | |
typedef void(* | YWatchdogValueCallback) (YWatchdog *func, const string &functionValue) |
Enumerations | |
enum | Y_OUTPUT_enum { Y_OUTPUT_OFF = 0, Y_OUTPUT_ON = 1, Y_OUTPUT_INVALID = -1, Y_OUTPUT_OFF = 0, Y_OUTPUT_ON = 1, Y_OUTPUT_INVALID = -1 } |
enum | Y_RUNNING_enum { Y_RUNNING_OFF = 0, Y_RUNNING_ON = 1, Y_RUNNING_INVALID = -1 } |
enum | Y_STATE_enum { Y_STATE_A = 0, Y_STATE_B = 1, Y_STATE_INVALID = -1, Y_STATE_A = 0, Y_STATE_B = 1, Y_STATE_INVALID = -1 } |
enum | Y_STATEATPOWERON_enum { Y_STATEATPOWERON_UNCHANGED = 0, Y_STATEATPOWERON_A = 1, Y_STATEATPOWERON_B = 2, Y_STATEATPOWERON_INVALID = -1, Y_STATEATPOWERON_UNCHANGED = 0, Y_STATEATPOWERON_A = 1, Y_STATEATPOWERON_B = 2, Y_STATEATPOWERON_INVALID = -1 } |
Functions | |
YWatchdog * | yFindWatchdog (const string &func) |
YWatchdog * | yFirstWatchdog (void) |
#define _CLASS_YDELAYEDPULSE |
Definition at line 81 of file yocto_watchdog.h.
#define _Y_OUTPUT_ENUM |
Definition at line 73 of file yocto_watchdog.h.
#define _Y_RUNNING_ENUM |
Definition at line 106 of file yocto_watchdog.h.
#define _Y_STATE_ENUM |
Definition at line 56 of file yocto_watchdog.h.
#define _Y_STATEATPOWERON_ENUM |
Definition at line 64 of file yocto_watchdog.h.
#define Y_COUNTDOWN_INVALID (YAPI_INVALID_LONG) |
Definition at line 116 of file yocto_watchdog.h.
#define Y_MAXTIMEONSTATEA_INVALID (YAPI_INVALID_LONG) |
Definition at line 113 of file yocto_watchdog.h.
#define Y_MAXTIMEONSTATEB_INVALID (YAPI_INVALID_LONG) |
Definition at line 114 of file yocto_watchdog.h.
#define Y_PULSETIMER_INVALID (YAPI_INVALID_LONG) |
Definition at line 115 of file yocto_watchdog.h.
#define Y_TRIGGERDELAY_INVALID (YAPI_INVALID_LONG) |
Definition at line 117 of file yocto_watchdog.h.
#define Y_TRIGGERDURATION_INVALID (YAPI_INVALID_LONG) |
Definition at line 118 of file yocto_watchdog.h.
typedef void(* YWatchdogValueCallback) (YWatchdog *func, const string &functionValue) |
Definition at line 54 of file yocto_watchdog.h.
enum Y_OUTPUT_enum |
Enumerator | |
---|---|
Y_OUTPUT_OFF | |
Y_OUTPUT_ON | |
Y_OUTPUT_INVALID | |
Y_OUTPUT_OFF | |
Y_OUTPUT_ON | |
Y_OUTPUT_INVALID |
Definition at line 74 of file yocto_watchdog.h.
enum Y_RUNNING_enum |
Enumerator | |
---|---|
Y_RUNNING_OFF | |
Y_RUNNING_ON | |
Y_RUNNING_INVALID |
Definition at line 107 of file yocto_watchdog.h.
enum Y_STATE_enum |
Enumerator | |
---|---|
Y_STATE_A | |
Y_STATE_B | |
Y_STATE_INVALID | |
Y_STATE_A | |
Y_STATE_B | |
Y_STATE_INVALID |
Definition at line 57 of file yocto_watchdog.h.
Enumerator | |
---|---|
Y_STATEATPOWERON_UNCHANGED | |
Y_STATEATPOWERON_A | |
Y_STATEATPOWERON_B | |
Y_STATEATPOWERON_INVALID | |
Y_STATEATPOWERON_UNCHANGED | |
Y_STATEATPOWERON_A | |
Y_STATEATPOWERON_B | |
Y_STATEATPOWERON_INVALID |
Definition at line 65 of file yocto_watchdog.h.
|
inline |
Retrieves a watchdog for a given identifier. The identifier can be specified using several formats:
This function does not require that the watchdog is online at the time it is invoked. The returned object is nevertheless valid. Use the method YWatchdog.isOnline() to test if the watchdog is indeed online at a given time. In case of ambiguity when looking for a watchdog by logical name, no error is notified: the first instance found is returned. The search is performed first by hardware name, then by logical name.
If a call to this object's is_online() method returns FALSE although you are certain that the matching device is plugged, make sure that you did call registerHub() at application initialization time.
func | : a string that uniquely characterizes the watchdog |
Definition at line 618 of file yocto_watchdog.h.
|
inline |
Starts the enumeration of watchdog currently accessible. Use the method YWatchdog.nextWatchdog() to iterate on next watchdog.
Definition at line 629 of file yocto_watchdog.h.