Button data types. More...

Data Structures

struct  button_config_t
 Button configuration. More...
 

Enumerations

enum  button_active_level_t {
  BUTTON_ACTIVE_HIGH = GPIO_INPUT_PULLDOWN,
  BUTTON_ACTIVE_LOW = GPIO_INPUT_PULLUP
}
 Active level of the button. More...
 
enum  button_execution_context_t {
  BUTTON_CONTEXT_DEFAULT,
  BUTTON_CONTEXT_EVENT_THREAD,
  BUTTON_CONTEXT_IRQ
}
 Context in which the button event should execute. More...
 

Detailed Description

Button data types.

Enumeration Type Documentation

Active level of the button.

Enumerator
BUTTON_ACTIVE_HIGH 

Button is considered active when it's read as HIGH.

BUTTON_ACTIVE_LOW 

Button is considered active when it's read as LOW.

Context in which the button event should execute.

Enumerator
BUTTON_CONTEXT_DEFAULT 

Execute in the ZAP thread.

BUTTON_CONTEXT_EVENT_THREAD 

Execute in the high priority event thread.

BUTTON_CONTEXT_IRQ 

Execute in the GPIO interrupt context.