![]() |
MT2523 API Reference
LinkIt SDK v4
|
Define Classic Bluetooth GAP data types and values. More...
Define Classic Bluetooth GAP data types and values.
Macros | |
| #define | BT_GAP_LINK_STATUS_UPDATED_IND (BT_MODULE_GAP | 0x0101) |
| This event indicates the the link status changed, with bt_gap_link_status_updated_ind_t payload. More... | |
| #define | BT_GAP_IO_CAPABILITY_REQ_IND (BT_MODULE_GAP | 0x0103) |
| This event asks user for IO Capability response, with bt_gap_connection_handle_t payload, user need invoke bt_gap_reply_io_capability_request() API to accept and reply the pairing request, or invoke bt_gap_reject_io_capability_request() API to reject the pairing request. More... | |
| #define | BT_GAP_USER_CONFIRM_REQ_IND (BT_MODULE_GAP | 0x0104) |
| This event asks user for value confirm, with uint32_t payload. More... | |
| #define | BT_GAP_USER_PASSKEY_NOTIFICATION_IND (BT_MODULE_GAP | 0x0105) |
| This event notifies the passkey value to the user, with uint32_t payload. More... | |
| #define | BT_GAP_USER_PASSKEY_NOTIFICATION_END_IND (BT_MODULE_GAP | 0x0106) |
| This event notifies the passkey entered to the user, with NULL payload. More... | |
| #define | BT_GAP_LINK_KEY_NOTIFICATION_IND (BT_MODULE_GAP | 0x0107) |
| This event notifies user to update link key information with bt_gap_link_key_notification_ind_t payload. More... | |
| #define | BT_GAP_USER_REPLY_PASSKEY_IND (BT_MODULE_GAP | 0x0108) |
| This event asks user for passkey with NULL payload. More... | |
| #define | BT_GAP_SET_SCAN_MODE_CNF (BT_MODULE_GAP | 0x0109) |
| This event indicates the confirmation of setting scan mode with NULL payload. More... | |
| #define | BT_GAP_INQUIRY_CNF (BT_MODULE_GAP | 0x010A) |
| This event indicates the confirmation of inquiry with NULL payload. More... | |
| #define | BT_GAP_CANCEL_INQUIRY_CNF (BT_MODULE_GAP | 0x010B) |
| This event indicates the confirmation of cancel inquiry with NULL payload. More... | |
| #define | BT_GAP_INQUIRY_IND (BT_MODULE_GAP | 0x010C) |
| This event indicates the result of inquiry with bt_gap_inquiry_ind_t payload. More... | |
| #define | BT_GAP_INQUIRY_COMPLETE_IND (BT_MODULE_GAP | 0x010D) |
| This event indicates the conpletement of inquiry with NULL payload. More... | |
| #define | BT_GAP_SET_ROLE_CNF (BT_MODULE_GAP | 0x010E) |
| This event indicates the confirmation of bt_gap_set_role() with NULL payload. More... | |
| #define | BT_GAP_ROLE_CHANGED_IND (BT_MODULE_GAP | 0x010F) |
| This event indicates the link role changed with bt_gap_role_changed_ind_t payload. More... | |
| #define | BT_GAP_READ_REMOTE_NAME_CNF (BT_MODULE_GAP | 0x0110) |
| This event indicates the confirmation of bt_gap_read_remote_name() with NULL payload. More... | |
| #define | BT_GAP_READ_REMOTE_NAME_COMPLETE_IND (BT_MODULE_GAP | 0x0111) |
| This event indicates the result of bt_gap_read_remote_name() with bt_gap_read_remote_name_complete_ind_t payload. More... | |
| #define | BT_GAP_READ_CANCEL_REMOTE_NAME_CNF (BT_MODULE_GAP | 0x0112) |
| This event indicates the confirmation of bt_gap_cancel_name_request() with NULL payload. More... | |
| #define | BT_GAP_ENTER_TEST_MODE_CNF (BT_MODULE_GAP | 0x0113) |
| This event indicates the confirmation of bt_gap_enter_test_mode() with NULL payload. More... | |
| #define | BT_GAP_WRITE_INQUIRY_TX_PWR_CNF (BT_MODULE_GAP | 0x0114) |
| This event indicates the confirmation of bt_gap_write_inquiry_tx() with NULL payload. More... | |
| #define | BT_GAP_READ_INQUIRY_RESPONSE_TX_CNF (BT_MODULE_GAP | 0x0115) |
| This event indicates the confirmation of bt_gap_read_inquiry_response_tx() with uint8_t payload. More... | |
| #define | BT_GAP_READ_RSSI_CNF (BT_MODULE_GAP | 0x0116) |
| This event indicates the confirmation of bt_gap_read_rssi() with bt_gap_read_rssi_cnf_t payload. More... | |
| #define | BT_GAP_GET_ROLE_CNF (BT_MODULE_GAP | 0x0117) |
| This event indicates the confirmation of bt_gap_get_role() with bt_gap_get_role_cnf_t payload. More... | |
| #define | BT_GAP_SET_EIR_CNF (BT_MODULE_GAP | 0x0118) |
| This event indicates the confirmation of bt_gap_set_extended_inquiry_response() with NULL payload. More... | |
| #define | BT_GAP_BONDING_START_IND (BT_MODULE_GAP | 0x0119) |
| This event indicates the start of bonding with bt_gap_connection_handle_t payload. More... | |
| #define | BT_GAP_BONDING_COMPLETE_IND (BT_MODULE_GAP | 0x011A) |
| This event indicates the result of bonding with NULL payload. More... | |
| #define | BT_GAP_WRITING_PAGE_SCAN_CNF (BT_MODULE_GAP | 0x011B) |
| This event indicates the confirmation of bt_gap_write_page_scan_activity() with NULL payload. More... | |
| #define | BT_GAP_WRITING_INQUIRY_SCAN_CNF (BT_MODULE_GAP | 0x011C) |
| This event indicates the confirmation of bt_gap_write_inquiry_scan_activity() with NULL payload. More... | |
| #define | BT_GAP_SNIFF_MODE_CHANGE_IND (BT_MODULE_GAP | 0x011F) |
| This event indicates link mode change, with bt_gap_sniff_mode_changed_ind_t payload. More... | |
| #define | BT_GAP_SCAN_MODE_NOT_ACCESSIBLE 0x00 |
| The device is not accessible. More... | |
| #define | BT_GAP_SCAN_MODE_DISCOVERABLE_ONLY 0x01 |
| The device is discoverable only. More... | |
| #define | BT_GAP_SCAN_MODE_CONNECTABLE_ONLY 0x02 |
| The device is connectable only. More... | |
| #define | BT_GAP_SCAN_MODE_GENERAL_ACCESSIBLE 0x03 |
| The device is discoverable and connectable. More... | |
| #define | BT_GAP_MAX_PIN_CODE_LENGTH 16 |
| The maximum length of pin code. More... | |
| #define | BT_GAP_MAX_DEVICE_NAME_LENGTH 31 |
| The maximum length of the device name, including null-ending char. More... | |
| #define | BT_GAP_OOB_DATA_PRESENTED_NONE 0x00 |
| Out-of-band data is not present. More... | |
| #define | BT_GAP_OOB_DATA_PRESENTED_P192 0x01 |
| P192 Out-of-band data is present. More... | |
| #define | BT_GAP_OOB_DATA_PRESENTED_P256 0x02 |
| P256 Out-of-band data is present. More... | |
| #define | BT_GAP_OOB_DATA_PRESENTED_P192_AND_P256 0x03 |
| P192 and P256 Out-of-band data are present. More... | |
| #define | BT_GAP_IO_CAPABILITY_DISPLAY_ONLY 0x00 |
| The device has display only. More... | |
| #define | BT_GAP_IO_CAPABILITY_DISPLAY_YES_NO 0x01 |
| The device can display "YES" and "NO" buttons on the display. More... | |
| #define | BT_GAP_IO_CAPABILITY_KEYBOARD_ONLY 0x02 |
| The device has keyboard only. More... | |
| #define | BT_GAP_IO_CAPABILITY_NO_INPUT_NO_OUTPUT 0x03 |
| The device does not have input or output. More... | |
| #define | BT_GAP_SECURITY_LEVEL_0 0x8000 |
| No security. More... | |
| #define | BT_GAP_SECURITY_LEVEL_1 0x9000 |
| Minimal user interaction. More... | |
| #define | BT_GAP_SECURITY_LEVEL_2 0xA000 |
| Encrypted. More... | |
| #define | BT_GAP_SECURITY_LEVEL_3 0xB000 |
| MITM protected. More... | |
| #define | BT_GAP_SECURITY_LEVEL_4 0xC000 |
| The highest security, P256 key. More... | |
| #define | BT_GAP_LINK_STATUS_NONE 0x0000 |
| The link status is none. More... | |
| #define | BT_GAP_LINK_STATUS_DISCONNECTED 0x0004 |
| The link is disconnected. More... | |
| #define | BT_GAP_LINK_STATUS_CONNECTED_0 BT_GAP_SECURITY_LEVEL_0 |
| The link is connected without security. More... | |
| #define | BT_GAP_LINK_STATUS_CONNECTED_1 BT_GAP_SECURITY_LEVEL_1 |
| The link is connected with Minimal user interaction security. More... | |
| #define | BT_GAP_LINK_STATUS_CONNECTED_2 BT_GAP_SECURITY_LEVEL_2 |
| The link is connected with unauthenticated encrypted security. More... | |
| #define | BT_GAP_LINK_STATUS_CONNECTED_3 BT_GAP_SECURITY_LEVEL_3 |
| The link is connected with authenticated encrypted security. More... | |
| #define | BT_GAP_LINK_STATUS_CONNECTED_4 BT_GAP_SECURITY_LEVEL_4 |
| The link is connected with the highest security. More... | |
| #define | BT_GAP_SECURITY_AUTH_REQUEST_NO_BONDING_AUTO_ACCEPTED 0x00 |
| The authenticated request for no bonding and auto-reply confirmation. More... | |
| #define | BT_GAP_SECURITY_AUTH_REQUEST_MITM_NO_BONDING 0x01 |
| The authenticated request for no bonding and MITM protect. More... | |
| #define | BT_GAP_SECURITY_AUTH_REQUEST_DEDICATED_BONDING_AUTO_ACCEPTED 0x02 |
| The authenticated request for dedicated bonding and auto-reply confirmation. More... | |
| #define | BT_GAP_SECURITY_AUTH_REQUEST_MITM_DEDICATED_BONDING 0x03 |
| The authenticated request for dedicated bonding and MITM protect. More... | |
| #define | BT_GAP_SECURITY_AUTH_REQUEST_GENERAL_BONDING_AUTO_ACCEPTED 0x04 |
| The authenticated request for general bonding and auto-reply confirmation. More... | |
| #define | BT_GAP_SECURITY_AUTH_REQUEST_MITM_GENERAL_BONDING 0x05 |
| The authenticated request for general bonding and MITM protect. More... | |
| #define | BT_GAP_LINK_KEY_TYPE_COMBINATION 0x00 |
| The combination link-key type. More... | |
| #define | BT_GAP_LINK_KEY_TYPE_LOCAL_UNIT 0x01 |
| The local unit link-key type. More... | |
| #define | BT_GAP_LINK_KEY_TYPE_REMOTE_UNIT 0x02 |
| The remote unit link-key type. More... | |
| #define | BT_GAP_LINK_KEY_TYPE_DEBUG 0x03 |
| The debug link-key type. More... | |
| #define | BT_GAP_LINK_KEY_TYPE_UNAUTH_P192 0x04 |
| The P192 unauthenticated link-key type. More... | |
| #define | BT_GAP_LINK_KEY_TYPE_AUTH_P192 0x05 |
| The P192 authenticated link-key type. More... | |
| #define | BT_GAP_LINK_KEY_TYPE_CHANGED 0x06 |
| The changed link-key type. More... | |
| #define | BT_GAP_LINK_KEY_TYPE_UNAUTH_P256 0x07 |
| The P256 unauthenticated link-key type. More... | |
| #define | BT_GAP_LINK_KEY_TYPE_AUTH_P256 0x08 |
| The P256 authenticated link-key type. More... | |
| #define | BT_GAP_LINK_KEY_TYPE_INVAILIDE 0xFF |
| The link-key is phase out, delete it. More... | |
| #define | BT_GAP_LINK_KEY_TYPE_INVALID 0xFF |
| The link-key is phase out, delete it. More... | |
| #define | BT_GAP_INQUIRY_MODE_STANDARD 0x00 |
| The standard inquiry mode. More... | |
| #define | BT_GAP_INQUIRY_MODE_RSSI 0x01 |
| The RSSI inquiry mode. More... | |
| #define | BT_GAP_INQUIRY_MODE_RSSI_EIR 0x02 |
| The RSSI and EDR inquiry mode. More... | |
| #define | BT_GAP_LINK_SNIFF_TYPE_ACTIVE 0x00 |
| Connection active status. More... | |
| #define | BT_GAP_LINK_SNIFF_TYPE_SNIFFED 0x02 |
| Connection sniff status. More... | |
| #define | BT_GAP_LINK_SNIFF_TYPE_SUB_SNIFFED 0x03 |
| Connection sniff subrating status. More... | |
| #define | BT_GAP_ACCEPT_AS_MASTER 0x00 |
| Accept the connecting request as master role. More... | |
| #define | BT_GAP_ACCEPT_AS_SLAVE 0x01 |
| Accept the connecting request as slave role. More... | |
| #define | BT_GAP_REJECTED_DUE_TO_LIMITED_RESOURCES 0x0D |
| Reject the connecting request due to a lack of resources. More... | |
| #define | BT_GAP_REJECTED_DUE_TO_SECURITY_REASONS 0x0E |
| Reject the connecting request due to security. More... | |
| #define | BT_GAP_ACCEPT_REJECTED_DUE_TO_UNACCEPTABLE_BDADDR 0x0F |
| Reject the connecting request due to unacceptable device address. More... | |
Typedefs | |
| typedef uint8_t | bt_gap_scan_mode_t |
| GAP scan mode types for bt_gap_set_scan_mode(). More... | |
| typedef uint8_t | bt_gap_oob_data_presented_t |
| The type of Out-of-band data are present. More... | |
| typedef uint8_t | bt_gap_io_capability_t |
| The device IO Capability types. More... | |
| typedef uint16_t | bt_gap_security_level_t |
| The link security level types. More... | |
| typedef uint16_t | bt_gap_link_status_t |
| The link status types, refer to BT_GAP_LINK_STATUS_UPDATED_IND. More... | |
| typedef uint8_t | bt_gap_security_auth_request_t |
| The types of authenticated request, refer to # bt_gap_reply_io_capability_request(). More... | |
| typedef uint8_t | bt_gap_link_key_type_t |
| The link-key types. More... | |
| typedef uint8_t | bt_gap_inquiry_mode_t |
| The inquiry mode types. More... | |
| typedef uint8_t | bt_gap_link_sniff_status_t |
| The connection sniff status types. More... | |
| typedef uint8_t | bt_gap_accept_connection_status_t |
| Connection request status check. More... | |
| typedef uint32_t | bt_gap_connection_handle_t |
| The link handle type. More... | |
| #define BT_GAP_ACCEPT_AS_MASTER 0x00 |
Accept the connecting request as master role.
| #define BT_GAP_ACCEPT_AS_SLAVE 0x01 |
Accept the connecting request as slave role.
| #define BT_GAP_ACCEPT_REJECTED_DUE_TO_UNACCEPTABLE_BDADDR 0x0F |
Reject the connecting request due to unacceptable device address.
| #define BT_GAP_BONDING_COMPLETE_IND (BT_MODULE_GAP | 0x011A) |
This event indicates the result of bonding with NULL payload.
| #define BT_GAP_BONDING_START_IND (BT_MODULE_GAP | 0x0119) |
This event indicates the start of bonding with bt_gap_connection_handle_t payload.
| #define BT_GAP_CANCEL_INQUIRY_CNF (BT_MODULE_GAP | 0x010B) |
This event indicates the confirmation of cancel inquiry with NULL payload.
| #define BT_GAP_ENTER_TEST_MODE_CNF (BT_MODULE_GAP | 0x0113) |
This event indicates the confirmation of bt_gap_enter_test_mode() with NULL payload.
| #define BT_GAP_GET_ROLE_CNF (BT_MODULE_GAP | 0x0117) |
This event indicates the confirmation of bt_gap_get_role() with bt_gap_get_role_cnf_t payload.
| #define BT_GAP_INQUIRY_CNF (BT_MODULE_GAP | 0x010A) |
This event indicates the confirmation of inquiry with NULL payload.
| #define BT_GAP_INQUIRY_COMPLETE_IND (BT_MODULE_GAP | 0x010D) |
This event indicates the conpletement of inquiry with NULL payload.
| #define BT_GAP_INQUIRY_IND (BT_MODULE_GAP | 0x010C) |
This event indicates the result of inquiry with bt_gap_inquiry_ind_t payload.
| #define BT_GAP_INQUIRY_MODE_RSSI 0x01 |
The RSSI inquiry mode.
| #define BT_GAP_INQUIRY_MODE_RSSI_EIR 0x02 |
The RSSI and EDR inquiry mode.
| #define BT_GAP_INQUIRY_MODE_STANDARD 0x00 |
The standard inquiry mode.
It is the default mode.
| #define BT_GAP_IO_CAPABILITY_DISPLAY_ONLY 0x00 |
The device has display only.
| #define BT_GAP_IO_CAPABILITY_DISPLAY_YES_NO 0x01 |
The device can display "YES" and "NO" buttons on the display.
| #define BT_GAP_IO_CAPABILITY_KEYBOARD_ONLY 0x02 |
The device has keyboard only.
| #define BT_GAP_IO_CAPABILITY_NO_INPUT_NO_OUTPUT 0x03 |
The device does not have input or output.
| #define BT_GAP_IO_CAPABILITY_REQ_IND (BT_MODULE_GAP | 0x0103) |
This event asks user for IO Capability response, with bt_gap_connection_handle_t payload, user need invoke bt_gap_reply_io_capability_request() API to accept and reply the pairing request, or invoke bt_gap_reject_io_capability_request() API to reject the pairing request.
| #define BT_GAP_LINK_KEY_NOTIFICATION_IND (BT_MODULE_GAP | 0x0107) |
This event notifies user to update link key information with bt_gap_link_key_notification_ind_t payload.
| #define BT_GAP_LINK_KEY_TYPE_AUTH_P192 0x05 |
The P192 authenticated link-key type.
| #define BT_GAP_LINK_KEY_TYPE_AUTH_P256 0x08 |
The P256 authenticated link-key type.
| #define BT_GAP_LINK_KEY_TYPE_CHANGED 0x06 |
The changed link-key type.
| #define BT_GAP_LINK_KEY_TYPE_COMBINATION 0x00 |
The combination link-key type.
| #define BT_GAP_LINK_KEY_TYPE_DEBUG 0x03 |
The debug link-key type.
| #define BT_GAP_LINK_KEY_TYPE_INVAILIDE 0xFF |
The link-key is phase out, delete it.
| #define BT_GAP_LINK_KEY_TYPE_INVALID 0xFF |
The link-key is phase out, delete it.
| #define BT_GAP_LINK_KEY_TYPE_LOCAL_UNIT 0x01 |
The local unit link-key type.
| #define BT_GAP_LINK_KEY_TYPE_REMOTE_UNIT 0x02 |
The remote unit link-key type.
| #define BT_GAP_LINK_KEY_TYPE_UNAUTH_P192 0x04 |
The P192 unauthenticated link-key type.
| #define BT_GAP_LINK_KEY_TYPE_UNAUTH_P256 0x07 |
The P256 unauthenticated link-key type.
| #define BT_GAP_LINK_SNIFF_TYPE_ACTIVE 0x00 |
Connection active status.
| #define BT_GAP_LINK_SNIFF_TYPE_SNIFFED 0x02 |
Connection sniff status.
| #define BT_GAP_LINK_SNIFF_TYPE_SUB_SNIFFED 0x03 |
Connection sniff subrating status.
| #define BT_GAP_LINK_STATUS_CONNECTED_0 BT_GAP_SECURITY_LEVEL_0 |
The link is connected without security.
| #define BT_GAP_LINK_STATUS_CONNECTED_1 BT_GAP_SECURITY_LEVEL_1 |
The link is connected with Minimal user interaction security.
| #define BT_GAP_LINK_STATUS_CONNECTED_2 BT_GAP_SECURITY_LEVEL_2 |
The link is connected with unauthenticated encrypted security.
| #define BT_GAP_LINK_STATUS_CONNECTED_3 BT_GAP_SECURITY_LEVEL_3 |
The link is connected with authenticated encrypted security.
| #define BT_GAP_LINK_STATUS_CONNECTED_4 BT_GAP_SECURITY_LEVEL_4 |
The link is connected with the highest security.
| #define BT_GAP_LINK_STATUS_DISCONNECTED 0x0004 |
The link is disconnected.
| #define BT_GAP_LINK_STATUS_NONE 0x0000 |
The link status is none.
| #define BT_GAP_LINK_STATUS_UPDATED_IND (BT_MODULE_GAP | 0x0101) |
This event indicates the the link status changed, with bt_gap_link_status_updated_ind_t payload.
| #define BT_GAP_MAX_DEVICE_NAME_LENGTH 31 |
The maximum length of the device name, including null-ending char.
| #define BT_GAP_MAX_PIN_CODE_LENGTH 16 |
The maximum length of pin code.
| #define BT_GAP_OOB_DATA_PRESENTED_NONE 0x00 |
Out-of-band data is not present.
| #define BT_GAP_OOB_DATA_PRESENTED_P192 0x01 |
P192 Out-of-band data is present.
| #define BT_GAP_OOB_DATA_PRESENTED_P192_AND_P256 0x03 |
P192 and P256 Out-of-band data are present.
| #define BT_GAP_OOB_DATA_PRESENTED_P256 0x02 |
P256 Out-of-band data is present.
| #define BT_GAP_READ_CANCEL_REMOTE_NAME_CNF (BT_MODULE_GAP | 0x0112) |
This event indicates the confirmation of bt_gap_cancel_name_request() with NULL payload.
| #define BT_GAP_READ_INQUIRY_RESPONSE_TX_CNF (BT_MODULE_GAP | 0x0115) |
This event indicates the confirmation of bt_gap_read_inquiry_response_tx() with uint8_t payload.
| #define BT_GAP_READ_REMOTE_NAME_CNF (BT_MODULE_GAP | 0x0110) |
This event indicates the confirmation of bt_gap_read_remote_name() with NULL payload.
| #define BT_GAP_READ_REMOTE_NAME_COMPLETE_IND (BT_MODULE_GAP | 0x0111) |
This event indicates the result of bt_gap_read_remote_name() with bt_gap_read_remote_name_complete_ind_t payload.
| #define BT_GAP_READ_RSSI_CNF (BT_MODULE_GAP | 0x0116) |
This event indicates the confirmation of bt_gap_read_rssi() with bt_gap_read_rssi_cnf_t payload.
| #define BT_GAP_REJECTED_DUE_TO_LIMITED_RESOURCES 0x0D |
Reject the connecting request due to a lack of resources.
| #define BT_GAP_REJECTED_DUE_TO_SECURITY_REASONS 0x0E |
Reject the connecting request due to security.
| #define BT_GAP_ROLE_CHANGED_IND (BT_MODULE_GAP | 0x010F) |
This event indicates the link role changed with bt_gap_role_changed_ind_t payload.
| #define BT_GAP_SCAN_MODE_CONNECTABLE_ONLY 0x02 |
The device is connectable only.
| #define BT_GAP_SCAN_MODE_DISCOVERABLE_ONLY 0x01 |
The device is discoverable only.
| #define BT_GAP_SCAN_MODE_GENERAL_ACCESSIBLE 0x03 |
The device is discoverable and connectable.
| #define BT_GAP_SCAN_MODE_NOT_ACCESSIBLE 0x00 |
The device is not accessible.
| #define BT_GAP_SECURITY_AUTH_REQUEST_DEDICATED_BONDING_AUTO_ACCEPTED 0x02 |
The authenticated request for dedicated bonding and auto-reply confirmation.
| #define BT_GAP_SECURITY_AUTH_REQUEST_GENERAL_BONDING_AUTO_ACCEPTED 0x04 |
The authenticated request for general bonding and auto-reply confirmation.
| #define BT_GAP_SECURITY_AUTH_REQUEST_MITM_DEDICATED_BONDING 0x03 |
The authenticated request for dedicated bonding and MITM protect.
| #define BT_GAP_SECURITY_AUTH_REQUEST_MITM_GENERAL_BONDING 0x05 |
The authenticated request for general bonding and MITM protect.
| #define BT_GAP_SECURITY_AUTH_REQUEST_MITM_NO_BONDING 0x01 |
The authenticated request for no bonding and MITM protect.
| #define BT_GAP_SECURITY_AUTH_REQUEST_NO_BONDING_AUTO_ACCEPTED 0x00 |
The authenticated request for no bonding and auto-reply confirmation.
| #define BT_GAP_SECURITY_LEVEL_0 0x8000 |
No security.
| #define BT_GAP_SECURITY_LEVEL_1 0x9000 |
Minimal user interaction.
| #define BT_GAP_SECURITY_LEVEL_2 0xA000 |
Encrypted.
| #define BT_GAP_SECURITY_LEVEL_3 0xB000 |
MITM protected.
| #define BT_GAP_SECURITY_LEVEL_4 0xC000 |
The highest security, P256 key.
| #define BT_GAP_SET_EIR_CNF (BT_MODULE_GAP | 0x0118) |
This event indicates the confirmation of bt_gap_set_extended_inquiry_response() with NULL payload.
| #define BT_GAP_SET_ROLE_CNF (BT_MODULE_GAP | 0x010E) |
This event indicates the confirmation of bt_gap_set_role() with NULL payload.
| #define BT_GAP_SET_SCAN_MODE_CNF (BT_MODULE_GAP | 0x0109) |
This event indicates the confirmation of setting scan mode with NULL payload.
| #define BT_GAP_SNIFF_MODE_CHANGE_IND (BT_MODULE_GAP | 0x011F) |
This event indicates link mode change, with bt_gap_sniff_mode_changed_ind_t payload.
| #define BT_GAP_USER_CONFIRM_REQ_IND (BT_MODULE_GAP | 0x0104) |
This event asks user for value confirm, with uint32_t payload.
The user then needs to invoke bt_gap_reply_user_confirm_request() API to replay it according to the payload.
| #define BT_GAP_USER_PASSKEY_NOTIFICATION_END_IND (BT_MODULE_GAP | 0x0106) |
This event notifies the passkey entered to the user, with NULL payload.
The user needs to cancel the passkey showing on the screen.
| #define BT_GAP_USER_PASSKEY_NOTIFICATION_IND (BT_MODULE_GAP | 0x0105) |
This event notifies the passkey value to the user, with uint32_t payload.
The user then needs to display the passkey on the screen.
| #define BT_GAP_USER_REPLY_PASSKEY_IND (BT_MODULE_GAP | 0x0108) |
This event asks user for passkey with NULL payload.
The user needs to invoke the bt_gap_reply_passkey_request() API to replay it according to the display of the remote device.
| #define BT_GAP_WRITE_INQUIRY_TX_PWR_CNF (BT_MODULE_GAP | 0x0114) |
This event indicates the confirmation of bt_gap_write_inquiry_tx() with NULL payload.
| #define BT_GAP_WRITING_INQUIRY_SCAN_CNF (BT_MODULE_GAP | 0x011C) |
This event indicates the confirmation of bt_gap_write_inquiry_scan_activity() with NULL payload.
| #define BT_GAP_WRITING_PAGE_SCAN_CNF (BT_MODULE_GAP | 0x011B) |
This event indicates the confirmation of bt_gap_write_page_scan_activity() with NULL payload.
| typedef uint8_t bt_gap_accept_connection_status_t |
Connection request status check.
| typedef uint32_t bt_gap_connection_handle_t |
The link handle type.
| typedef uint8_t bt_gap_inquiry_mode_t |
The inquiry mode types.
| typedef uint8_t bt_gap_io_capability_t |
The device IO Capability types.
| typedef uint8_t bt_gap_link_key_type_t |
The link-key types.
| typedef uint8_t bt_gap_link_sniff_status_t |
The connection sniff status types.
| typedef uint16_t bt_gap_link_status_t |
The link status types, refer to BT_GAP_LINK_STATUS_UPDATED_IND.
| typedef uint8_t bt_gap_oob_data_presented_t |
The type of Out-of-band data are present.
| typedef uint8_t bt_gap_scan_mode_t |
GAP scan mode types for bt_gap_set_scan_mode().
| typedef uint8_t bt_gap_security_auth_request_t |
The types of authenticated request, refer to # bt_gap_reply_io_capability_request().
| typedef uint16_t bt_gap_security_level_t |
The link security level types.