Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
|
#include "cascoda-bm/cascoda_evbme.h"
#include "cascoda-bm/cascoda_interface.h"
#include "cascoda-util/cascoda_time.h"
#include "cascoda_btn_ext.h"
#include "sif_pi4ioe5v6408.h"
Functions | |
ca_error | SIF_InitialiseGPIOExt (void) |
Initialise GPIO extender. More... | |
ca_error | SIF_RegisterOutputExt (uint8_t ledBtn) |
Set the functionality of an output/LED to be an output. More... | |
ca_error | SIF_RegisterButtonInputExt (uint8_t ledBtn) |
Set the functionality of a button to be an input. More... | |
ca_error | SIF_RegisterGeneralInputExt (uint8_t ledBtn, uint8_t pullup_on) |
Set the functionality to be a general input (no interrupt, polling only) More... | |
ca_error | SIF_DeRegisterExt (uint8_t ledBtn) |
De-Register an LED or Button Pin. More... | |
ca_error | SIF_SetOutputExt (uint8_t ledBtn, uint8_t val) |
Set the state of the output/LED. More... | |
ca_error | SIF_SenseExt (uint8_t ledBtn, uint8_t *val) |
Get the state of the LED/Button. More... | |
ca_error | SIF_SenseOutputExt (uint8_t ledBtn, uint8_t *val) |
Get the state of the ouput/LED. More... | |
ca_error | SIF_SenseAllExt (uint8_t *values) |
Get the state all buttons. More... | |
ca_error | SIF_PollButtonsExt (void) |
Main polling function to activate callbacks for any buttons that are currently being pressed. More... | |
bool | SIF_CanSleepExt (void) |
Check if all buttons have been handled. More... | |
bool SIF_CanSleepExt | ( | void | ) |
Check if all buttons have been handled.
ca_error SIF_DeRegisterExt | ( | uint8_t | ledBtn | ) |
De-Register an LED or Button Pin.
ledBtn | - reference to LED/Button |
ca_error SIF_InitialiseGPIOExt | ( | void | ) |
Initialise GPIO extender.
ca_error SIF_PollButtonsExt | ( | void | ) |
Main polling function to activate callbacks for any buttons that are currently being pressed.
ca_error SIF_RegisterButtonInputExt | ( | uint8_t | ledBtn | ) |
Set the functionality of a button to be an input.
ledBtn | - reference to button |
ca_error SIF_RegisterGeneralInputExt | ( | uint8_t | ledBtn, |
uint8_t | pullup_on | ||
) |
Set the functionality to be a general input (no interrupt, polling only)
ledBtn | - reference number to input |
pullup_on | - pull-up enabled when (1) |
ca_error SIF_RegisterOutputExt | ( | uint8_t | ledBtn | ) |
Set the functionality of an output/LED to be an output.
ledBtn | - reference to output/LED |
ca_error SIF_SenseAllExt | ( | uint8_t * | values | ) |
Get the state all buttons.
values | - the state of all buttons |
ca_error SIF_SenseExt | ( | uint8_t | ledBtn, |
uint8_t * | val | ||
) |
Get the state of the LED/Button.
ionr | - I/O number |
val | - the state of the LED/Button |
ca_error SIF_SenseOutputExt | ( | uint8_t | ledBtn, |
uint8_t * | val | ||
) |
Get the state of the ouput/LED.
ionr | - I/O number |
val | - the state of the output/LED |
ca_error SIF_SetOutputExt | ( | uint8_t | ledBtn, |
uint8_t | val | ||
) |
Set the state of the output/LED.
ledBtn | - reference to output/LED |
val | - the state of the output/LED |