Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
devboard_btn.c File Reference
Include dependency graph for devboard_btn.c:

Functions

ca_error DVBD_RegisterLEDOutput (dvbd_led_btn ledBtn, dvbd_led_btn_jumper_position jumperPos)
 Register LED output (open drain) More...
 
ca_error DVBD_RegisterButtonInput (dvbd_led_btn ledBtn, dvbd_led_btn_jumper_position jumperPos)
 Register button input. More...
 
ca_error DVBD_RegisterButtonIRQInput (dvbd_led_btn ledBtn, dvbd_led_btn_jumper_position jumperPos)
 Register button input with interrupt (for sleepy devices) More...
 
ca_error DVBD_RegisterSharedButtonLED (dvbd_led_btn ledBtn, dvbd_led_btn_jumper_position jumperPos)
 Register button as shared input/output. More...
 
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. More...
 
ca_error DVBD_DeRegister (dvbd_led_btn ledBtn, dvbd_led_btn_jumper_position jumperPos)
 De-Register an LED or Button Pin. More...
 
ca_error DVBD_modifyPinMappings (dvbd_led_btn ledBtn, dvbd_led_btn_jumper_position jumperPos, u8_t new_pin)
 Modify possible pin mappings. More...
 

Variables

u8_t dvbd_possiblePinMappings [][2] = {{5, 31}, {6, 32}, {35, 33}, {36, 34}}
 

Function Documentation

◆ DVBD_DeRegister()

ca_error DVBD_DeRegister ( dvbd_led_btn  ledBtn,
dvbd_led_btn_jumper_position  jumperPos 
)

De-Register an LED or Button Pin.

Parameters
ledBtn- reference to LED/Button
jumperPos- position of the jumper
Returns
status

◆ DVBD_modifyPinMappings()

ca_error DVBD_modifyPinMappings ( dvbd_led_btn  ledBtn,
dvbd_led_btn_jumper_position  jumperPos,
u8_t  new_pin 
)

Modify possible pin mappings.

Returns
status

◆ DVBD_RegisterButtonInput()

ca_error DVBD_RegisterButtonInput ( dvbd_led_btn  ledBtn,
dvbd_led_btn_jumper_position  jumperPos 
)

Register button input.

Parameters
ledBtn- reference to button
jumperPos- posititon of the jumper
Returns
status

◆ DVBD_RegisterButtonIRQInput()

ca_error DVBD_RegisterButtonIRQInput ( dvbd_led_btn  ledBtn,
dvbd_led_btn_jumper_position  jumperPos 
)

Register button input with interrupt (for sleepy devices)

Parameters
ledBtn- reference to button
jumperPos- posititon of the jumper
Returns
status

◆ DVBD_RegisterLEDOutput()

ca_error DVBD_RegisterLEDOutput ( dvbd_led_btn  ledBtn,
dvbd_led_btn_jumper_position  jumperPos 
)

Register LED output (open drain)

Parameters
ledBtn- reference to LED
jumperPos- posititon of the jumper
Returns
status

◆ DVBD_RegisterSharedButtonLED()

ca_error DVBD_RegisterSharedButtonLED ( dvbd_led_btn  ledBtn,
dvbd_led_btn_jumper_position  jumperPos 
)

Register button as shared input/output.

Parameters
ledBtn- reference to button
jumperPos- posititon of the jumper
Returns
status

◆ DVBD_RegisterSharedIRQButtonLED()

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.

Parameters
ledBtn- reference to button
jumperPos- posititon of the jumper
Returns
status

Variable Documentation

◆ dvbd_possiblePinMappings

u8_t dvbd_possiblePinMappings[][2] = {{5, 31}, {6, 32}, {35, 33}, {36, 34}}