Landtiger LPC1768 C BigLib 1
A self made, custom C library for the LandTiger board.
 
Loading...
Searching...
No Matches
button_types.h File Reference

Go to the source code of this file.

Typedefs

typedef void(* BUTTON_Function) (void)
 

Enumerations

enum  BUTTON_Config { BTN_DEBOUNCE_WITH_RIT = 0x1 }
 
enum  BUTTON_Error { BTN_ERR_OK = 0 , BTN_ERR_RIT_UNINIT , BTN_ERR_INT_PRIO_INVALID , BTN_ERR_NO_HANDLER_TO_ENABLE }
 
enum  BUTTON_Source { BTN_SRC_EINT0 = 0 , BTN_SRC_EINT1 , BTN_SRC_EINT2 , BTN_SRC_COUNT }
 

Typedef Documentation

◆ BUTTON_Function

typedef void(* BUTTON_Function) (void)

Definition at line 44 of file button_types.h.

Enumeration Type Documentation

◆ BUTTON_Config

Enumerator
BTN_DEBOUNCE_WITH_RIT 

Definition at line 4 of file button_types.h.

5{
BUTTON_Config
Definition button_types.h:5
@ BTN_DEBOUNCE_WITH_RIT
Definition button_types.h:6

◆ BUTTON_Error

Enumerator
BTN_ERR_OK 

No error.

BTN_ERR_RIT_UNINIT 

During initialization, DEBOUNCE_WITH_RIT was requested but the RIT was not enabled.

BTN_ERR_INT_PRIO_INVALID 

An invalid priority was specified (must be 0 <= prio <= 15). This is not necessarily an error, could be treated as an alert that the custom priority has been ignored in favor of the default value.

BTN_ERR_NO_HANDLER_TO_ENABLE 

It was requested to enable a button interrupt, but no function was bound to it.

Definition at line 9 of file button_types.h.

10{
12 BTN_ERR_OK = 0,
16
21
BUTTON_Error
@ BTN_ERR_INT_PRIO_INVALID
An invalid priority was specified (must be 0 <= prio <= 15). This is not necessarily an error,...
@ BTN_ERR_RIT_UNINIT
During initialization, DEBOUNCE_WITH_RIT was requested but the RIT was not enabled.
@ BTN_ERR_NO_HANDLER_TO_ENABLE
It was requested to enable a button interrupt, but no function was bound to it.
@ BTN_ERR_OK
No error.

◆ BUTTON_Source

Enumerator
BTN_SRC_EINT0 

INT0: Third button from the left (next to RES)

BTN_SRC_EINT1 

EINT1: First button from the left.

BTN_SRC_EINT2 

EINT2: Second button from the left.

BTN_SRC_COUNT 

Definition at line 29 of file button_types.h.

30{
32 BTN_SRC_EINT0 = 0,
33
36
39
BUTTON_Source
@ BTN_SRC_EINT1
EINT1: First button from the left.
@ BTN_SRC_EINT0
INT0: Third button from the left (next to RES)
@ BTN_SRC_EINT2
EINT2: Second button from the left.
@ BTN_SRC_COUNT