Classes | Macros | Typedefs | Enumerations | Functions
yocto_watchdog.h File Reference
#include "yocto_api.h"
#include <cfloat>
#include <cmath>
#include <map>
Include dependency graph for yocto_watchdog.h:
This graph shows which files directly or indirectly include this file:

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

YWatchdogyFindWatchdog (const string &func)
 
YWatchdogyFirstWatchdog (void)
 

Macro Definition Documentation

#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 Documentation

typedef void(* YWatchdogValueCallback) (YWatchdog *func, const string &functionValue)

Definition at line 54 of file yocto_watchdog.h.

Enumeration Type Documentation

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.

Enumerator
Y_RUNNING_OFF 
Y_RUNNING_ON 
Y_RUNNING_INVALID 

Definition at line 107 of file yocto_watchdog.h.

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.

Function Documentation

YWatchdog* yFindWatchdog ( const string &  func)
inline

Retrieves a watchdog for a given identifier. The identifier can be specified using several formats:

  • FunctionLogicalName
  • ModuleSerialNumber.FunctionIdentifier
  • ModuleSerialNumber.FunctionLogicalName
  • ModuleLogicalName.FunctionIdentifier
  • ModuleLogicalName.FunctionLogicalName

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.

Parameters
func: a string that uniquely characterizes the watchdog
Returns
a YWatchdog object allowing you to drive the watchdog.

Definition at line 618 of file yocto_watchdog.h.

YWatchdog* yFirstWatchdog ( void  )
inline

Starts the enumeration of watchdog currently accessible. Use the method YWatchdog.nextWatchdog() to iterate on next watchdog.

Returns
a pointer to a YWatchdog object, corresponding to the first watchdog currently online, or a NULL pointer if there are none.

Definition at line 629 of file yocto_watchdog.h.



yoctopuce_altimeter
Author(s): Anja Sheppard
autogenerated on Mon Jun 10 2019 15:49:13