High level library for BLE Connection Handover pairing using NFC. More...
Modules | |
Library parameters configuration | |
Enumerations | |
enum | nfc_pairing_mode_t { NFC_PAIRING_MODE_JUST_WORKS, NFC_PAIRING_MODE_OOB, NFC_PAIRING_MODE_LESC_JUST_WORKS, NFC_PAIRING_MODE_LESC_OOB, NFC_PAIRING_MODE_CNT } |
NFC pairing types. More... | |
Functions | |
ret_code_t | nfc_ble_pair_init (nfc_pairing_mode_t mode) |
Initializes NFC tag data and turns on tag emulation. More... | |
ret_code_t | nfc_ble_pair_mode_set (nfc_pairing_mode_t mode) |
Sets pairing data and BLE security mode. More... | |
nfc_pairing_mode_t | nfc_ble_pair_mode_get (void) |
Funtion to obtain current pairing mode. More... | |
void | on_nfc_ble_pair_evt (const ble_evt_t *const p_ble_evt) |
NFC pairing BLE events handler. More... | |
High level library for BLE Connection Handover pairing using NFC.
enum nfc_pairing_mode_t |
NFC pairing types.
ret_code_t nfc_ble_pair_init | ( | nfc_pairing_mode_t | mode | ) |
Initializes NFC tag data and turns on tag emulation.
[in] | mode | Pairing mode, this is value of the nfc_pairing_mode_t enum. |
NRF_SUCCESS | If NFC has been initialized properly. |
NRF_ERROR_INVALID_PARAM | If pairing mode is invalid. |
Other | Other error codes might be returned depending on used modules. |
nfc_pairing_mode_t nfc_ble_pair_mode_get | ( | void | ) |
Funtion to obtain current pairing mode.
ret_code_t nfc_ble_pair_mode_set | ( | nfc_pairing_mode_t | mode | ) |
Sets pairing data and BLE security mode.
[in] | mode | New pairing mode, this is value of the nfc_pairing_mode_t enum. |
NRF_SUCCESS | If new pairing mode has been set correctly. |
NRF_ERROR_INVALID_PARAM | If pairing mode is invalid. |
Other | Other error codes might be returned depending on used modules. |
void on_nfc_ble_pair_evt | ( | const ble_evt_t *const | p_ble_evt | ) |
NFC pairing BLE events handler.
Handles BLE authorization events, replying with OOB data.
[in] | p_ble_evt | Bluetooth stack event. |