Added the tls_bt_sm_ioact_2_str utility function

This commit is contained in:
anschrammh 2023-04-18 23:04:21 +02:00
parent 9269e279ef
commit 166581caeb
2 changed files with 18 additions and 0 deletions

View File

@ -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;

View File

@ -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);