Support functions.
More...
Support functions.
◆ SUPPORT_FUNC_MAC_ADDR_STR_LEN
#define SUPPORT_FUNC_MAC_ADDR_STR_LEN ( (BLE_GAP_ADDR_LEN * 2) + 5 + 1) |
6 bytes + 5 colon separators + NUL termination
◆ support_func_ble_mac_address_get()
ret_code_t support_func_ble_mac_address_get |
( |
char * |
p_mac_addr | ) |
|
Function for printing the MAC addess of the device.
- Note
- The SoftDevice must be enabled before this call is made.
- Parameters
-
[out] | p_mac_addr | Pointer to char array of length SUPPORT_FUNC_MAC_ADDR_STR_LEN. |
- Returns
- NRF_SUCCESS If the call was successful.
-
NRF_ERROR_SOFTDEVICE_NOT_ENABLED The SoftDevice has not been enabled.
-
Other codes from the underlying drivers.
◆ support_func_configure_io_shutdown()
ret_code_t support_func_configure_io_shutdown |
( |
void |
| ) |
|
Function for configuring nRF IO and the GPIO extender for shutdown.
- Note
- For Thingy HW v1.0.0, this function will only return NRF_SUCCESS as errors are ignored.
- Returns
- NRF_SUCCESS If the call was successful.
-
Other codes from the underlying drivers.
◆ support_func_configure_io_startup()
ret_code_t support_func_configure_io_startup |
( |
drv_ext_gpio_init_t const *const |
p_ext_gpio_init | ) |
|
Function for configuring nRF IO and the GPIO extender for startup.
- Parameters
-
[in] | p_ext_gpio_init | Pointer to IO extender configuration. |
- Returns
- NRF_SUCCESS If the call was successful.
-
Other codes from the underlying drivers.
◆ support_func_sys_halt_debug_enabled()
bool support_func_sys_halt_debug_enabled |
( |
void |
| ) |
|
Function for checking if the device is in debug mode.
- Note
- Checks if the C_DEBUGEN flag is set in the DHCSR register (Debug Halting Control and Status Register).
- Returns
- True System is in debug mode.
-
False System is not in debug mode.