Added enum to string utility function for the IO action
This commit is contained in:
parent
1859f31275
commit
2206b6f2fb
@ -178,6 +178,23 @@ const char *tls_bt_access_opt_2_str(uint8_t op)
|
||||
}
|
||||
}
|
||||
|
||||
const char *tls_bt_sm_ioact_2_str(uint8_t ioact)
|
||||
{
|
||||
switch(ioact)
|
||||
{
|
||||
CASE_RETURN_STR(BLE_SM_IOACT_NONE)
|
||||
CASE_RETURN_STR(BLE_SM_IOACT_OOB)
|
||||
CASE_RETURN_STR(BLE_SM_IOACT_INPUT)
|
||||
CASE_RETURN_STR(BLE_SM_IOACT_DISP)
|
||||
CASE_RETURN_STR(BLE_SM_IOACT_NUMCMP)
|
||||
CASE_RETURN_STR(BLE_SM_IOACT_OOB_SC)
|
||||
CASE_RETURN_STR(BLE_SM_IOACT_MAX_PLUS_ONE)
|
||||
|
||||
default:
|
||||
return "unknown io action type";
|
||||
}
|
||||
}
|
||||
|
||||
static void async_evt_func(struct ble_npl_event *ev)
|
||||
{
|
||||
ble_async_t *bat = (ble_async_t *)ev->arg;
|
||||
|
@ -56,6 +56,7 @@ const char *tls_bt_gap_evt_2_str(uint32_t event);
|
||||
const char *tls_bt_rc_2_str(uint32_t event);
|
||||
const char *tls_bt_addr_type_2_str(uint8_t addr_type);
|
||||
const char *tls_bt_access_opt_2_str(uint8_t op);
|
||||
const char *tls_bt_sm_ioact_2_str(uint8_t ioact);
|
||||
|
||||
extern int tls_bt_util_init(void);
|
||||
extern int tls_bt_util_deinit(void);
|
||||
|
Loading…
Reference in New Issue
Block a user