Go to the source code of this file.
Classes | |
class | YPwmInput |
Macros | |
#define | _Y_PWMREPORTMODE_ENUM |
#define | Y_DEBOUNCEPERIOD_INVALID (YAPI_INVALID_UINT) |
#define | Y_DUTYCYCLE_INVALID (YAPI_INVALID_DOUBLE) |
#define | Y_FREQUENCY_INVALID (YAPI_INVALID_DOUBLE) |
#define | Y_PERIOD_INVALID (YAPI_INVALID_DOUBLE) |
#define | Y_PULSECOUNTER_INVALID (YAPI_INVALID_LONG) |
#define | Y_PULSEDURATION_INVALID (YAPI_INVALID_DOUBLE) |
#define | Y_PULSETIMER_INVALID (YAPI_INVALID_LONG) |
Typedefs | |
typedef void(* | YPwmInputTimedReportCallback) (YPwmInput *func, YMeasure measure) |
typedef void(* | YPwmInputValueCallback) (YPwmInput *func, const string &functionValue) |
Enumerations | |
enum | Y_PWMREPORTMODE_enum { Y_PWMREPORTMODE_PWM_DUTYCYCLE = 0, Y_PWMREPORTMODE_PWM_FREQUENCY = 1, Y_PWMREPORTMODE_PWM_PULSEDURATION = 2, Y_PWMREPORTMODE_PWM_EDGECOUNT = 3, Y_PWMREPORTMODE_PWM_PULSECOUNT = 4, Y_PWMREPORTMODE_PWM_CPS = 5, Y_PWMREPORTMODE_PWM_CPM = 6, Y_PWMREPORTMODE_PWM_STATE = 7, Y_PWMREPORTMODE_INVALID = -1 } |
Functions | |
YPwmInput * | yFindPwmInput (const string &func) |
YPwmInput * | yFirstPwmInput (void) |
#define _Y_PWMREPORTMODE_ENUM |
Definition at line 58 of file yocto_pwminput.h.
#define Y_DEBOUNCEPERIOD_INVALID (YAPI_INVALID_UINT) |
Definition at line 77 of file yocto_pwminput.h.
#define Y_DUTYCYCLE_INVALID (YAPI_INVALID_DOUBLE) |
Definition at line 71 of file yocto_pwminput.h.
#define Y_FREQUENCY_INVALID (YAPI_INVALID_DOUBLE) |
Definition at line 73 of file yocto_pwminput.h.
#define Y_PERIOD_INVALID (YAPI_INVALID_DOUBLE) |
Definition at line 74 of file yocto_pwminput.h.
#define Y_PULSECOUNTER_INVALID (YAPI_INVALID_LONG) |
Definition at line 75 of file yocto_pwminput.h.
#define Y_PULSEDURATION_INVALID (YAPI_INVALID_DOUBLE) |
Definition at line 72 of file yocto_pwminput.h.
#define Y_PULSETIMER_INVALID (YAPI_INVALID_LONG) |
Definition at line 76 of file yocto_pwminput.h.
Definition at line 56 of file yocto_pwminput.h.
typedef void(* YPwmInputValueCallback) (YPwmInput *func, const string &functionValue) |
Definition at line 54 of file yocto_pwminput.h.
enum Y_PWMREPORTMODE_enum |
Definition at line 59 of file yocto_pwminput.h.
|
inline |
Retrieves a PWM input for a given identifier. The identifier can be specified using several formats:
This function does not require that the PWM input is online at the time it is invoked. The returned object is nevertheless valid. Use the method YPwmInput.isOnline() to test if the PWM input is indeed online at a given time. In case of ambiguity when looking for a PWM input 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 PWM input |
Definition at line 413 of file yocto_pwminput.h.
|
inline |
Starts the enumeration of PWM inputs currently accessible. Use the method YPwmInput.nextPwmInput() to iterate on next PWM inputs.
Definition at line 424 of file yocto_pwminput.h.