Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
|
#include "devboard_btn.h"
#include "cascoda-bm/cascoda_evbme.h"
#include "cascoda-bm/cascoda_interface.h"
#include "cascoda-bm/cascoda_wait.h"
#include "cascoda-util/cascoda_time.h"
Variables | |
u8_t | dvbd_possiblePinMappings [][2] = {{5, 31}, {6, 32}, {35, 33}, {36, 34}} |
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 |
u8_t dvbd_possiblePinMappings[][2] = {{5, 31}, {6, 32}, {35, 33}, {36, 34}} |