Go to the source code of this file.
◆ SIF_SetButtonHoldCallbackExt
◆ SIF_SetButtonLongPressCallbackExt
◆ SIF_SetButtonShortPressCallbackExt
◆ SIF_CanSleepExt()
bool SIF_CanSleepExt |
( |
void |
| ) |
|
Check if all buttons have been handled.
- Returns
- true/false
◆ SIF_DeRegisterExt()
ca_error SIF_DeRegisterExt |
( |
uint8_t |
ledBtn | ) |
|
De-Register an LED or Button Pin.
- Parameters
-
ledBtn | - reference to LED/Button |
- Returns
- status
◆ SIF_InitialiseGPIOExt()
Initialise GPIO extender.
- Returns
- status
◆ SIF_PollButtonsExt()
Main polling function to activate callbacks for any buttons that are currently being pressed.
- Returns
- status
◆ SIF_RegisterButtonInputExt()
ca_error SIF_RegisterButtonInputExt |
( |
uint8_t |
ledBtn | ) |
|
Set the functionality of a button to be an input.
- Parameters
-
ledBtn | - reference to button |
- Returns
- status
◆ SIF_RegisterGeneralInputExt()
ca_error SIF_RegisterGeneralInputExt |
( |
uint8_t |
ledBtn, |
|
|
uint8_t |
pullup_on |
|
) |
| |
Set the functionality to be a general input (no interrupt, polling only)
- Parameters
-
ledBtn | - reference number to input |
pullup_on | - pull-up enabled when (1) |
- Returns
- status
◆ SIF_RegisterOutputExt()
ca_error SIF_RegisterOutputExt |
( |
uint8_t |
ledBtn | ) |
|
Set the functionality of an output/LED to be an output.
- Parameters
-
ledBtn | - reference to output/LED |
- Returns
- status
◆ SIF_SenseAllExt()
Get the state all buttons.
- Parameters
-
values | - the state of all buttons |
- Returns
- status
◆ SIF_SenseExt()
Get the state of the input/Button.
- Parameters
-
ionr | - I/O number |
val | - the state of the input/Button |
- Returns
- status
◆ SIF_SenseOutputExt()
Get the state of the output/LED.
- Parameters
-
ionr | - I/O number |
val | - the state of the output/LED |
- Returns
- status
◆ SIF_SetOutputExt()
Set the state of the output/LED.
- Parameters
-
ledBtn | - reference to output/LED |
val | - the state of the output/LED |
- Returns
- status