User interface module API.
More...
User interface module API.
◆ anonymous enum
User interface module status return codes.
Enumerator |
---|
M_IU_STATUS_CODE_SUCCESS | Successful.
|
M_IU_STATUS_CODE_INVALID_PARAM | Invalid parameters supplied.
|
◆ m_ui_init()
Function for initializing all UI components (Buttons and LEDs).
- Parameters
-
[in] | p_handle | Pointer to BLE service handle structure. |
[in] | p_params | Initialization parameters. |
- Return values
-
NRF_SUCCESS | Operation was successful. |
NRF_ERROR_NULL | NULL pointer supplied. |
Other | codes from the underlying drivers. |
◆ m_ui_led_set()
ret_code_t m_ui_led_set |
( |
uint8_t |
r, |
|
|
uint8_t |
g, |
|
|
uint8_t |
b |
|
) |
| |
Function for setting the RGB value of an LED.
- Parameters
-
[in] | r | Red intensity (0 to 255). |
[in] | g | Green intensity (0 to 255). |
[in] | b | Blue intensity (0 to 255). |
- Note
- In Breathe or One-shot mode, the intensity will be set via a separate intensity variable. The values entered in these two modes will be treated as binary (Boolean) for each color.
- Return values
-
NRF_SUCCESS | Operation was successful. |
Other | codes from the underlying drivers. |
◆ m_ui_led_set_event()
Function for setting LED color according to predefined events.
- Parameters
-
[in] | event_code | Predefined event code. |
- Return values
-
NRF_SUCCESS | If initialization was successful. |
Other | codes from the underlying drivers. |