Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
|
#include "cascoda-bm/cascoda_types.h"
#include "ca821x_api.h"
#include "ca821x_error.h"
#include "cascoda_btn.h"
Go to the source code of this file.
Macros | |
#define | DVBD_SetLED Btn_SetLED |
#define | DVBD_SetGPIOWakeup Btn_IncrementGPIOWakeup |
#define | DVBD_SetSleepPermanently Btn_SetSleepPermanently |
#define | DVBD_Sense Btn_Sense |
#define | DVBD_SenseOutput Btn_SenseOutput |
#define | DVBD_SetButtonShortPressCallback Btn_SetButtonShortPressCallback |
#define | DVBD_SetButtonLongPressCallback Btn_SetButtonLongPressCallback |
#define | DVBD_SetButtonHoldCallback Btn_SetButtonHoldCallback |
#define | DVBD_PollButtons Btn_PollButtons |
#define | DVBD_CanSleep Btn_CanSleep |
#define | DVBD_DevboardSleep Btn_DevboardSleep |
Typedefs | |
typedef enum dvbd_led_btn_jumper_position | dvbd_led_btn_jumper_position |
Jumper position controls which module pin is used for the LED/Button. More... | |
typedef enum dvbd_led_btn | dvbd_led_btn |
Number of the LED/Button. More... | |
Enumerations | |
enum | dvbd_led_btn_jumper_position { JUMPER_POS_1 = 0 , JUMPER_POS_2 = 1 } |
Jumper position controls which module pin is used for the LED/Button. More... | |
enum | dvbd_led_btn { DEV_SWITCH_1 = 0 , DEV_SWITCH_2 = 1 , DEV_SWITCH_3 = 2 , DEV_SWITCH_4 = 3 } |
Number of the LED/Button. More... | |
#define DVBD_CanSleep Btn_CanSleep |
#define DVBD_DevboardSleep Btn_DevboardSleep |
#define DVBD_PollButtons Btn_PollButtons |
#define DVBD_Sense Btn_Sense |
#define DVBD_SenseOutput Btn_SenseOutput |
#define DVBD_SetButtonHoldCallback Btn_SetButtonHoldCallback |
#define DVBD_SetButtonLongPressCallback Btn_SetButtonLongPressCallback |
#define DVBD_SetButtonShortPressCallback Btn_SetButtonShortPressCallback |
#define DVBD_SetGPIOWakeup Btn_IncrementGPIOWakeup |
#define DVBD_SetLED Btn_SetLED |
#define DVBD_SetSleepPermanently Btn_SetSleepPermanently |
typedef enum dvbd_led_btn dvbd_led_btn |
Number of the LED/Button.
typedef enum dvbd_led_btn_jumper_position dvbd_led_btn_jumper_position |
Jumper position controls which module pin is used for the LED/Button.
enum dvbd_led_btn |
ca_error DVBD_DeRegister | ( | dvbd_led_btn | ledBtn, |
dvbd_led_btn_jumper_position | jumperPos | ||
) |
De-Register an LED or Button Pin.
ledBtn | - reference to LED/Button |
jumperPos | - position of the jumper |
ca_error DVBD_modifyPinMappings | ( | dvbd_led_btn | ledBtn, |
dvbd_led_btn_jumper_position | jumperPos, | ||
u8_t | new_pin | ||
) |
Modify possible pin mappings.
ca_error DVBD_RegisterButtonInput | ( | dvbd_led_btn | ledBtn, |
dvbd_led_btn_jumper_position | jumperPos | ||
) |
Register button input.
ledBtn | - reference to button |
jumperPos | - posititon of the jumper |
ca_error DVBD_RegisterButtonIRQInput | ( | dvbd_led_btn | ledBtn, |
dvbd_led_btn_jumper_position | jumperPos | ||
) |
Register button input with interrupt (for sleepy devices)
ledBtn | - reference to button |
jumperPos | - posititon of the jumper |
ca_error DVBD_RegisterLEDOutput | ( | dvbd_led_btn | ledBtn, |
dvbd_led_btn_jumper_position | jumperPos | ||
) |
Register LED output (open drain)
ledBtn | - reference to LED |
jumperPos | - posititon of the jumper |
ca_error DVBD_RegisterSharedButtonLED | ( | dvbd_led_btn | ledBtn, |
dvbd_led_btn_jumper_position | jumperPos | ||
) |
Register button as shared input/output.
ledBtn | - reference to button |
jumperPos | - posititon of the jumper |
ca_error DVBD_RegisterSharedIRQButtonLED | ( | dvbd_led_btn | ledBtn, |
dvbd_led_btn_jumper_position | jumperPos | ||
) |
Set the functionality of a button to be shared interrupt input/output.
ledBtn | - reference to button |
jumperPos | - posititon of the jumper |