![]() |
Cordio Stack and Cordio Profiles
r2p3-02rel0
|
Data Structures | |
| struct | appUiSound_t |
| Sound data structure. More... | |
| struct | appUiLed_t |
| LED data structure. More... | |
| struct | appUiCback_t |
| Callback structure. More... | |
Macros | |
| #define | APP_UI_LED_NONE 0x00 |
| LED values. More... | |
| #define | APP_UI_LED_1 0x01 |
| LED 1. | |
| #define | APP_UI_LED_2 0x02 |
| LED 2. | |
| #define | APP_UI_LED_3 0x04 |
| LED 3. | |
| #define | APP_UI_LED_4 0x08 |
| LED 4. | |
| #define | APP_UI_LED_WRAP 0xFF |
| Wrap to beginning of sequence. | |
| #define | APP_UI_SOUND_WRAP 0xFFFF |
| Sound tone value for wrap/repeat. | |
Typedefs | |
| typedef void(* | appUiBtnCback_t) (uint8_t btn) |
| Button press callback. | |
| typedef void(* | appUiActionCback_t) (uint8_t event) |
| Action event callback. | |
| typedef void(* | appUiBtnPollCback_t) (void) |
| Button Poll callback. | |
APP Terminal Functions | |
| void | AppTerminalInit (void) |
| Initialize terminal. More... | |
APP User Interface | |
| void | AppUiAction (uint8_t event) |
| Perform a user interface action based on the event value passed to the function. More... | |
| void | AppUiDisplayPasskey (uint32_t passkey) |
| Display a passkey. More... | |
| void | AppUiDisplayConfirmValue (uint32_t confirm) |
| Display a confirmation value. More... | |
| void | AppUiDisplayRssi (int8_t rssi) |
| Display an RSSI value. More... | |
| void | AppUiBtnRegister (appUiBtnCback_t btnCback) |
| Register a callback function to receive button presses. More... | |
| void | AppUiActionRegister (appUiActionCback_t actionCback) |
| Register a callback function to receive action events. More... | |
| void | AppUiBtnPollRegister (appUiBtnPollCback_t btnPollCback) |
| Register a callback function to receive APP_BTN_POLL_IND events. More... | |
| void | AppUiBtnPressed (void) |
| Handle a hardware button press. This function is called to handle WSF event APP_BTN_DOWN_EVT. More... | |
| void | AppUiSoundPlay (const appUiSound_t *pSound) |
| Play a sound. More... | |
| void | AppUiSoundStop (void) |
| Stop the sound that is currently playing. More... | |
| void | AppUiLedStart (const appUiLed_t *pLed) |
| Start LED blinking. More... | |
| void | AppUiLedStop (void) |
| Stop LED blinking. More... | |
| void | AppUiBtnTest (uint8_t btn) |
| Button test function– for test purposes only. More... | |
| anonymous enum |
UI event enumeration.
Definition at line 34 of file app_ui.h.
| anonymous enum |
Button press enumeration.
Definition at line 67 of file app_ui.h.
| void AppTerminalInit | ( | void | ) |
Initialize terminal.
| void AppUiAction | ( | uint8_t | event | ) |
Perform a user interface action based on the event value passed to the function.
| event | User interface event value. |
| void AppUiDisplayPasskey | ( | uint32_t | passkey | ) |
Display a passkey.
| passkey | Passkey to display. |
| void AppUiDisplayConfirmValue | ( | uint32_t | confirm | ) |
Display a confirmation value.
| confirm | Confirm value to display. |
| void AppUiDisplayRssi | ( | int8_t | rssi | ) |
Display an RSSI value.
| rssi | Rssi value to display. |
| void AppUiBtnRegister | ( | appUiBtnCback_t | btnCback | ) |
Register a callback function to receive button presses.
| btnCback | Callback function. |
| void AppUiActionRegister | ( | appUiActionCback_t | actionCback | ) |
Register a callback function to receive action events.
| actionCback | Callback function. |
| void AppUiBtnPollRegister | ( | appUiBtnPollCback_t | btnPollCback | ) |
Register a callback function to receive APP_BTN_POLL_IND events.
| btnPollCback | Callback function. |
| void AppUiBtnPressed | ( | void | ) |
Handle a hardware button press. This function is called to handle WSF event APP_BTN_DOWN_EVT.
| void AppUiSoundPlay | ( | const appUiSound_t * | pSound | ) |
Play a sound.
| pSound | Pointer to sound tone/duration array. |
| void AppUiSoundStop | ( | void | ) |
Stop the sound that is currently playing.
| void AppUiLedStart | ( | const appUiLed_t * | pLed | ) |
Start LED blinking.
| pLed | Pointer to LED data structure. |
| void AppUiLedStop | ( | void | ) |
Stop LED blinking.
| void AppUiBtnTest | ( | uint8_t | btn | ) |
Button test function– for test purposes only.
| btn | button press |