29 #ifndef DEVBOARD_BTN_H
30 #define DEVBOARD_BTN_H
54 #define DVBD_SetLED Btn_SetLED
55 #define DVBD_SetGPIOWakeup Btn_IncrementGPIOWakeup
56 #define DVBD_SetSleepPermanently Btn_SetSleepPermanently
57 #define DVBD_Sense Btn_Sense
58 #define DVBD_SenseOutput Btn_SenseOutput
59 #define DVBD_SetButtonShortPressCallback Btn_SetButtonShortPressCallback
60 #define DVBD_SetButtonLongPressCallback Btn_SetButtonLongPressCallback
61 #define DVBD_SetButtonHoldCallback Btn_SetButtonHoldCallback
62 #define DVBD_PollButtons Btn_PollButtons
63 #define DVBD_CanSleep Btn_CanSleep
64 #define DVBD_DevboardSleep Btn_DevboardSleep
The main ca821x-api include file.
Global error declarations for use across the Cascoda SDK.
Type definitions used by Cascoda baremetal drivers.
unsigned char u8_t
Definition: cascoda_types.h:46
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.
Definition: devboard_btn.c:90
dvbd_led_btn_jumper_position
Jumper position controls which module pin is used for the LED/Button.
Definition: devboard_btn.h:39
@ JUMPER_POS_1
Jumper connects pins 1 and 2.
Definition: devboard_btn.h:40
@ JUMPER_POS_2
Jumper connects pins 2 and 3.
Definition: devboard_btn.h:41
ca_error DVBD_RegisterButtonIRQInput(dvbd_led_btn ledBtn, dvbd_led_btn_jumper_position jumperPos)
Register button input with interrupt (for sleepy devices)
Definition: devboard_btn.c:70
dvbd_led_btn
Number of the LED/Button.
Definition: devboard_btn.h:46
@ DEV_SWITCH_3
Definition: devboard_btn.h:49
@ DEV_SWITCH_4
Definition: devboard_btn.h:50
@ DEV_SWITCH_1
Definition: devboard_btn.h:47
@ DEV_SWITCH_2
Definition: devboard_btn.h:48
ca_error DVBD_RegisterButtonInput(dvbd_led_btn ledBtn, dvbd_led_btn_jumper_position jumperPos)
Register button input.
Definition: devboard_btn.c:62
ca_error DVBD_DeRegister(dvbd_led_btn ledBtn, dvbd_led_btn_jumper_position jumperPos)
De-Register an LED or Button Pin.
Definition: devboard_btn.c:101
ca_error DVBD_modifyPinMappings(dvbd_led_btn ledBtn, dvbd_led_btn_jumper_position jumperPos, u8_t new_pin)
Modify possible pin mappings.
Definition: devboard_btn.c:110
ca_error DVBD_RegisterSharedButtonLED(dvbd_led_btn ledBtn, dvbd_led_btn_jumper_position jumperPos)
Register button as shared input/output.
Definition: devboard_btn.c:81
ca_error DVBD_RegisterLEDOutput(dvbd_led_btn ledBtn, dvbd_led_btn_jumper_position jumperPos)
Register LED output (open drain)
Definition: devboard_btn.c:54
ca_error
Cascoda error type.
Definition: ca821x_error.h:51