Functions | |
uint16_t | ble_sec_params_set (sec_param_t *p_sec_param) |
Set security parameter. More... | |
uint16_t | ble_sec_enc_start (uint8_t conn_idx) |
Start security encryption, this interface is used by both slave and master. More... | |
uint16_t | ble_sec_enc_cfm (uint8_t conn_idx, const sec_cfm_enc_t *p_cfm_enc) |
Send the encrypt confirm information. More... | |
uint16_t | ble_sec_keypress_notify_send (uint8_t conn_idx, uint8_t notify_type) |
Send key press notify. More... | |
uint16_t ble_sec_enc_cfm | ( | uint8_t | conn_idx, |
const sec_cfm_enc_t * | p_cfm_enc | ||
) |
Send the encrypt confirm information.
[in] | conn_idx | ACL connection index, the first ACL connection index is 0, and increased one by one. |
[in] | p_cfm_enc | Pointer to the confirm encryption structure, see sec_cfm_enc_t. |
SDK_SUCCESS | The confirm encryption is successfully set to the BLE stack. |
SDK_ERR_POINTER_NULL | Invalid pointer supplied. |
SDK_ERR_INVALID_CONN_IDX | Invalid connection index supplied. |
SDK_ERR_NO_RESOURCES | Not enough resources. |
uint16_t ble_sec_enc_start | ( | uint8_t | conn_idx | ) |
Start security encryption, this interface is used by both slave and master.
[in] | conn_idx | ACL connection index, the first ACL connection index is 0, and increased one by one. |
SDK_SUCCESS | The security encryption is successfully set to the BLE stack. |
SDK_ERR_INVALID_CONN_IDX | Invalid connection index supplied. |
uint16_t ble_sec_keypress_notify_send | ( | uint8_t | conn_idx, |
uint8_t | notify_type | ||
) |
Send key press notify.
[in] | conn_idx | ACL connection index. The first ACL connection index is 0, and the index will be increased one by one. |
[in] | notify_type | Key press notify type, see sec_keypress_notify_t. |
SDK_SUCCESS | The key press notify type is successfully set to the BLE stack. |
SDK_ERR_INVALID_CONN_IDX | Invalid connection index supplied. |
SDK_ERR_NO_RESOURCES | Not enough resources. |
uint16_t ble_sec_params_set | ( | sec_param_t * | p_sec_param | ) |
Set security parameter.
[in] | p_sec_param | Pointer to the security parameter structure, sec_param_t. |
SDK_SUCCESS | The security parameter is successfully set to the BLE stack. |
SDK_ERR_POINTER_NULL | Invalid pointer supplied. |
SDK_ERR_INVALID_PARAM | Invalid parameter supplied. |