device/valio/button.h header reference
[Valio device attributes module]
The source code of this header can be browsed online.
Description [link]
Value IO interface for a button
Members [link]
Types [link]
- enum valio_button_att
- struct valio_button_read_s
- enum valio_button_state
- struct valio_button_update_s
- typedef void (*valio_push_button_event_t)(struct dev_valio_rq_s *rq)
Members detail [link]
#define LIBDEVICE_VALIO_BUTTON_H_ [link]
This macro is declared in device/valio/button.h source file, line 27.
enum valio_button_att [link]
This enum is declared in device/valio/button.h source file, line 37.
Identifier | Description |
---|---|
VALIO_BUTTON_TOGGLE | This attribute is used only for DEVICE_VALIO_WAIT_EVENT request type. When used, the request callback will be called when button is toggled, pushed or released. Request must returns the time since last event on button in the timestamp field of data. If no measure of time is possible in driver 0 must be returned. |
VALIO_BUTTON_PUSH | |
VALIO_BUTTON_RELEASE | |
VALIO_BUTTON_REPEAT_PUSH | |
VALIO_BUTTON_DELAYED_PUSH |
struct valio_button_read_s [link]
This struct is declared in device/valio/button.h source file, line 66.
Field | Description |
---|---|
bool_t state; |
enum valio_button_state [link]
This enum is declared in device/valio/button.h source file, line 32.
Identifier | Description |
---|---|
VALIO_BUTTON_PUSHED | |
VALIO_BUTTON_RELEASED |
struct valio_button_update_s [link]
This struct is declared in device/valio/button.h source file, line 55.
Field | Description |
---|---|
bool isActive; | |
valio_push_button_event_t pb_event; | |
union <anonymous> { | |
uint32_t delay; | |
uint32_t timestamp; | |
}; |
typedef void (*valio_push_button_event_t)(struct dev_valio_rq_s *rq) [link]
This typedef is declared in device/valio/button.h source file, line 51.