Security Manager#

Security Manager.

The commands in this class manage Bluetooth security, including commands for starting and stopping encryption and commands for management of all bonding operations.

Use the following procedure to bond with a remote device:

Use the following procedure to respond to the bonding initiated by a remote device:

  • Use the command sl_bt_sm_configure to configure security requirements and I/O capabilities of this device.

  • Use the command sl_bt_sm_set_bondable_mode to set this device into bondable mode.

  • Use the command sl_bt_advertiser_start to start connectable advertising.

  • Open a connection to this device from the remote device.

  • After the connection is open, start the bonding process on the remote device.

If MITM is required, the application needs to display or ask the user to enter a passkey during the process. See events sl_bt_evt_sm_passkey_display and sl_bt_evt_sm_passkey_request for more information.

Modules#

Security Manager configuration flags

sl_bt_evt_sm_passkey_display

sl_bt_evt_sm_passkey_request

sl_bt_evt_sm_confirm_passkey

sl_bt_evt_sm_bonded

sl_bt_evt_sm_bonding_failed

sl_bt_evt_sm_confirm_bonding

Enumerations#

enum
sl_bt_sm_io_capability_displayonly = 0x0
sl_bt_sm_io_capability_displayyesno = 0x1
sl_bt_sm_io_capability_keyboardonly = 0x2
sl_bt_sm_io_capability_noinputnooutput = 0x3
sl_bt_sm_io_capability_keyboarddisplay = 0x4
}

These values define the security management related I/O capabilities supported by the device.

Functions#

sl_status_t
sl_bt_sm_configure(uint8_t flags, uint8_t io_capabilities)
sl_status_t
sl_bt_sm_set_minimum_key_size(uint8_t minimum_key_size)
SL_BGAPI_DEPRECATED sl_status_t
sl_bt_sm_add_to_whitelist(bd_addr address, uint8_t address_type)
sl_status_t
sl_bt_sm_store_bonding_configuration(uint8_t max_bonding_count, uint8_t policy_flags)
sl_status_t
sl_bt_sm_set_bondable_mode(uint8_t bondable)
sl_status_t
sl_bt_sm_set_passkey(int32_t passkey)
sl_status_t
sl_bt_sm_increase_security(uint8_t connection)
sl_status_t
sl_bt_sm_enter_passkey(uint8_t connection, int32_t passkey)
sl_status_t
sl_bt_sm_passkey_confirm(uint8_t connection, uint8_t confirm)
sl_status_t
sl_bt_sm_bonding_confirm(uint8_t connection, uint8_t confirm)
sl_status_t
sl_bt_sm_delete_bonding(uint8_t bonding)
sl_status_t
sl_bt_sm_get_bonding_handles(uint32_t reserved, uint32_t *num_bondings, size_t max_bondings_size, size_t *bondings_len, uint8_t *bondings)
sl_status_t
sl_bt_sm_get_bonding_details(uint32_t bonding, bd_addr *address, uint8_t *address_type, uint8_t *security_mode, uint8_t *key_size)
sl_status_t
sl_bt_sm_find_bonding_by_address(bd_addr address, uint32_t *bonding, uint8_t *security_mode, uint8_t *key_size)
sl_status_t
sl_bt_sm_resolve_rpa(bd_addr rpa, bd_addr *address, uint8_t *address_type, uint32_t *bonding)
sl_status_t
sl_bt_sm_set_bonding_key(uint32_t bonding, uint8_t key_type, aes_key_128 key)
sl_status_t
sl_bt_sm_set_legacy_oob(uint8_t enable, aes_key_128 oob_data)
sl_status_t
sl_bt_sm_set_oob(uint8_t enable, aes_key_128 *random, aes_key_128 *confirm)
sl_status_t
sl_bt_sm_set_remote_oob(uint8_t enable, aes_key_128 random, aes_key_128 confirm)
sl_status_t
sl_bt_sm_set_bonding_data(uint8_t connection, uint8_t type, size_t data_len, const uint8_t *data)

Macros#

#define
#define
#define
#define
#define
#define
#define
#define

Enumeration Documentation#

sl_bt_sm_io_capability_t#

sl_bt_sm_io_capability_t

These values define the security management related I/O capabilities supported by the device.

Enumerator
sl_bt_sm_io_capability_displayonly

(0x0) Display Only

sl_bt_sm_io_capability_displayyesno

(0x1) Display with Yes/No-buttons

sl_bt_sm_io_capability_keyboardonly

(0x2) Keyboard Only

sl_bt_sm_io_capability_noinputnooutput

(0x3) No Input and No Output

sl_bt_sm_io_capability_keyboarddisplay

(0x4) Display with Keyboard


Definition at line 10742 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

Function Documentation#

sl_bt_sm_configure#

sl_status_t sl_bt_sm_configure (uint8_t flags, uint8_t io_capabilities)
Parameters
[in]flags

Security requirement flags. This value can be a bitmask of multiple flags from Security Manager configuration flags

Bit 0:

  • 0: Allow bonding without authentication

  • 1: Bonding requires authentication (Man-in-the-Middle protection)

Bit 1:

  • 0: Allow encryption without bonding

  • 1: Encryption requires bonding. Note that this setting will also enable bonding.

Bit 2:

  • 0: Allow bonding with legacy pairing

  • 1: Secure connections only

Bit 3:

  • 0: Bonding request does not need to be confirmed

  • 1: Bonding requests need to be confirmed. Received bonding requests are notified by sl_bt_evt_sm_confirm_bonding

Bit 4: This option is ignored when the application includes the bluetooth_feature_external_bonding_database feature.

  • 0: Allow all connections

  • 1: Allow connections only from bonded devices

Bit 5:

  • 0: Prefer just works pairing when both options are possible based on the settings.

  • 1: Prefer authenticated pairing when both options are possible based on the settings.

Bit 6:

  • 0: Allow secure connections OOB pairing with OOB data from only one device.

  • 1: Require secure connections OOB data from both devices.

Bit 7:

  • 0: Allow debug keys from remote device.

  • 1: Reject pairing if remote device uses debug keys.

Default value: 0x00

[in]io_capabilities

Enum sl_bt_sm_io_capability_t. I/O Capabilities. The default I/O Capability used by the stack is No Input and No Output. Values:

  • sl_bt_sm_io_capability_displayonly (0x0): Display Only

  • sl_bt_sm_io_capability_displayyesno (0x1): Display with Yes/No-buttons

  • sl_bt_sm_io_capability_keyboardonly (0x2): Keyboard Only

  • sl_bt_sm_io_capability_noinputnooutput (0x3): No Input and No Output

  • sl_bt_sm_io_capability_keyboarddisplay (0x4): Display with Keyboard

Configure security requirements and I/O capabilities of the system.

Returns

  • SL_STATUS_OK if successful. Error code otherwise.


Definition at line 11029 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_sm_set_minimum_key_size#

sl_status_t sl_bt_sm_set_minimum_key_size (uint8_t minimum_key_size)
Parameters
[in]minimum_key_size

Minimum allowed key size for bonding. Range: 7 to 16

Set the minimum allowed key size used for bonding. The default value is 16 bytes.

Returns

  • SL_STATUS_OK if successful. Error code otherwise.


Definition at line 11042 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_sm_set_debug_mode#

sl_status_t sl_bt_sm_set_debug_mode ()

Set Security Manager in debug mode. In this mode, the secure connections bonding uses known debug keys, so that the encrypted packet can be opened by Bluetooth protocol analyzer. To disable the debug mode, restart the device.

Bondings made in debug mode are unsecure.

Returns

  • SL_STATUS_OK if successful. Error code otherwise.


Definition at line 11056 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_sm_add_to_whitelist#

SL_BGAPI_DEPRECATED sl_status_t sl_bt_sm_add_to_whitelist (bd_addr address, uint8_t address_type)
Parameters
[in]address

Address of the device added to accept list

[in]address_type

Enum sl_bt_gap_address_type_t. Address type of the device added to accept list. Values:

  • sl_bt_gap_public_address (0x0): Public device address

  • sl_bt_gap_static_address (0x1): Static device address

Deprecated and replaced by sl_bt_accept_list_add_device_by_bonding and sl_bt_accept_list_add_device_by_address provided by the bluetooth_feature_accept_list component.

Add device to accept list, which can be enabled with sl_bt_gap_enable_whitelisting.

When using external bonding database, the accept list size must be set before adding devices to the list using sl_bt_sm_store_bonding_configuration.

Returns

  • SL_STATUS_OK if successful. Error code otherwise.


Definition at line 11080 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_sm_store_bonding_configuration#

sl_status_t sl_bt_sm_store_bonding_configuration (uint8_t max_bonding_count, uint8_t policy_flags)
Parameters
[in]max_bonding_count

Maximum allowed bonding count. Range: 1 to 32

Sets the accept list size with external bonding database.

[in]policy_flags

Bonding policy. Values:

  • 0: If database is full, new bonding attempts will fail

  • 1: New bonding will overwrite the oldest existing bonding

  • 2: New bonding will overwrite the bonding that was used the longest time ago

Default: 0

With external bonding database the parameter is ignored.

Set the maximum allowed bonding count and bonding policy. The maximum number of bondings that can be supported depends on how much user data is stored in the NVM and the NVM size. When bond policy value 1 or 2 is selected, the stack will automatically write the new bond, as per the policy, only if the maximum allowed bonding count has been reached. If the stack can't write a new bond for any other reason (e.g., NVM is full), an error will be thrown through the bonding_failed event indicating why the bonding was not written. The application has to manually release space from the NVM (e.g., by deleting one of the existing bonds or application data) so that a new bond can be saved. The default value is 13.

When using external bonding database with accept list filtering, this command must be called before adding devices to the accept list to define the list size. Calling this function empties the existing accept list.

Returns

  • SL_STATUS_OK if successful. Error code otherwise.


Definition at line 11119 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_sm_set_bondable_mode#

sl_status_t sl_bt_sm_set_bondable_mode (uint8_t bondable)
Parameters
[in]bondable

Bondable mode. Values:

  • 0: New bondings not accepted

  • 1: Bondings allowed

Default value: 0

Set whether the device should accept new bondings. By default, the device does not accept new bondings.

Returns

  • SL_STATUS_OK if successful. Error code otherwise.


Definition at line 11138 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_sm_set_passkey#

sl_status_t sl_bt_sm_set_passkey (int32_t passkey)
Parameters
[in]passkey

Passkey. Valid range: 0-999999. Set -1 to disable and start using random passkeys.

Enter a fixed passkey, which will be used in the sl_bt_evt_sm_passkey_display event.

Returns

  • SL_STATUS_OK if successful. Error code otherwise.


Definition at line 11151 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_sm_increase_security#

sl_status_t sl_bt_sm_increase_security (uint8_t connection)
Parameters
[in]connection

Connection handle

Enhance the security of a connection to current security requirements. On an unencrypted connection, it will encrypt the connection and will also perform bonding if requested by both devices. On an encrypted connection, it will cause the connection to be re-encrypted.

Returns

  • SL_STATUS_OK if successful. Error code otherwise.

Events

  • sl_bt_evt_connection_parameters - Triggered after increasing security has been completed successfully and indicates the latest security mode of the connection.

  • sl_bt_evt_sm_bonded - Triggered if pairing or bonding was performed in this operation and the result is successful.

  • sl_bt_evt_sm_bonding_failed - Triggered if pairing or bonding was performed in this operation and the result has failed.


Definition at line 11174 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_sm_enter_passkey#

sl_status_t sl_bt_sm_enter_passkey (uint8_t connection, int32_t passkey)
Parameters
[in]connection

Connection handle

[in]passkey

Passkey. Valid range: 0-999999. Set -1 to cancel pairing.

Enter a passkey after receiving a passkey request event.

Returns

  • SL_STATUS_OK if successful. Error code otherwise.


Definition at line 11186 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_sm_passkey_confirm#

sl_status_t sl_bt_sm_passkey_confirm (uint8_t connection, uint8_t confirm)
Parameters
[in]connection

Connection handle

[in]confirm

Acceptance. Values:

  • 0: Reject

  • 1: Accept confirm value

Accept or reject the reported passkey confirm value.

Returns

  • SL_STATUS_OK if successful. Error code otherwise.


Definition at line 11200 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_sm_bonding_confirm#

sl_status_t sl_bt_sm_bonding_confirm (uint8_t connection, uint8_t confirm)
Parameters
[in]connection

Connection handle

[in]confirm

Acceptance. Values:

  • 0: Reject

  • 1: Accept bonding request

Accept or reject the bonding request.

Returns

  • SL_STATUS_OK if successful. Error code otherwise.


Definition at line 11214 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_sm_delete_bonding#

sl_status_t sl_bt_sm_delete_bonding (uint8_t bonding)
Parameters
[in]bonding

Bonding handle

Delete the specified bonding or accept list filtering. The connection will be closed if the remote device is connected currently.

This commands deletes the information from the persistent bonding database when the built-in bonding database (bluetooth_feature_builtin_bonding_database) is used.

This command is unavailable if the external bonding database (bluetooth_feature_external_bonding_database) is used.

Returns

  • SL_STATUS_OK if successful. Error code otherwise.


Definition at line 11233 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_sm_delete_bondings#

sl_status_t sl_bt_sm_delete_bondings ()

Delete all bondings, accept list filtering and device local identity resolving key (IRK). All connections to affected devices are closed as well.

This command empties the persistent bonding database when the built-in bonding database (bluetooth_feature_builtin_bonding_database) is used.

Returns

  • SL_STATUS_OK if successful. Error code otherwise.


Definition at line 11247 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_sm_get_bonding_handles#

sl_status_t sl_bt_sm_get_bonding_handles (uint32_t reserved, uint32_t * num_bondings, size_t max_bondings_size, size_t * bondings_len, uint8_t * bondings)
Parameters
[in]reserved

Use the value 0 on this reserved field. Do not use none-zero values because they are reserved for future use.

[out]num_bondings

Total number of bondings and accept list filtering devices stored in bonding database.

[in]max_bondings_size

Size of output buffer passed in bondings

[out]bondings_len

On return, set to the length of output data written to bondings

[out]bondings

4 byte bit field of used bonding handles in little endian format. Bit 0 of first byte is bonding handle 0, bit 0 of second byte is bonding handle 8 etc. If the bit is 1 that bonding handle exists in the bonding database.

Get number of entries and bitmask of their handles saved in the bonding database. The entry in the bonding database can be either bonding or accept list filtering device.

To get the bonding type and peer device address of a bonding, use the sl_bt_sm_get_bonding_details command. The bonding handle can be calculated from the handle bitmask returned by this command, or alternatively, repeat calling the sl_bt_sm_get_bonding_details command to get the detailed information of all bondings.

This command is unavailable if the external bonding database (bluetooth_feature_external_bonding_database) is used.

Returns

  • SL_STATUS_OK if successful. Error code otherwise.


Definition at line 11279 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_sm_get_bonding_details#

sl_status_t sl_bt_sm_get_bonding_details (uint32_t bonding, bd_addr * address, uint8_t * address_type, uint8_t * security_mode, uint8_t * key_size)
Parameters
[in]bonding

Bonding handle

[out]address

Bluetooth address of the remote device

[out]address_type

Enum sl_bt_gap_address_type_t. Address type. Values:

  • sl_bt_gap_public_address (0x0): Public device address

  • sl_bt_gap_static_address (0x1): Static device address

[out]security_mode

Enum sl_bt_connection_security_t. Connection security mode. Accept list filtering entry has security mode as no security. Values:

  • sl_bt_connection_mode1_level1 (0x0): No security

  • sl_bt_connection_mode1_level2 (0x1): Unauthenticated pairing with encryption

  • sl_bt_connection_mode1_level3 (0x2): Authenticated pairing with encryption

  • sl_bt_connection_mode1_level4 (0x3): Authenticated Secure Connections pairing with encryption using a 128-bit strength encryption key

[out]key_size

Key length in bytes, 0 for accept list filtering entry

Get the detailed information for a bonding entry. Data includes remote device address and address type as well as security mode for bonding and a used encryption key length.

To get the detailed information of all bondings, repeat calling this command starting from 0 as the bonding handle value until the maximum number of configured bondings are reached. Use 32 as the maximum number if the configured number is unknown.

This command is unavailable if the external bonding database (bluetooth_feature_external_bonding_database) is used.

Returns

  • SL_STATUS_OK if successful. Error code otherwise.


Definition at line 11321 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_sm_find_bonding_by_address#

sl_status_t sl_bt_sm_find_bonding_by_address (bd_addr address, uint32_t * bonding, uint8_t * security_mode, uint8_t * key_size)
Parameters
[in]address

The Bluetooth device address

[out]bonding

The bonding handle

[out]security_mode

Enum sl_bt_connection_security_t. Connection security mode. Accept list filtering entry has security mode as no security. Values:

  • sl_bt_connection_mode1_level1 (0x0): No security

  • sl_bt_connection_mode1_level2 (0x1): Unauthenticated pairing with encryption

  • sl_bt_connection_mode1_level3 (0x2): Authenticated pairing with encryption

  • sl_bt_connection_mode1_level4 (0x3): Authenticated Secure Connections pairing with encryption using a 128-bit strength encryption key

[out]key_size

Key length in bytes, 0 for accept list filtering entry

Find the bonding or accept list filtering entry by using a Bluetooth device address.

This command is unavailable if the external bonding database (bluetooth_feature_external_bonding_database) is used.

Returns

  • SL_STATUS_OK if successful. Error code otherwise.


Definition at line 11353 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_sm_resolve_rpa#

sl_status_t sl_bt_sm_resolve_rpa (bd_addr rpa, bd_addr * address, uint8_t * address_type, uint32_t * bonding)
Parameters
[in]rpa

Resolvable private address to be resolved

[out]address

The identity adderss of the bonded device

[out]address_type

Enum sl_bt_gap_address_type_t. Identity address type. Values:

  • sl_bt_gap_public_address (0x0): Public device address

  • sl_bt_gap_static_address (0x1): Static device address

[out]bonding

The bonding handle

Find the identity address of bonded device by using resolvable private address (RPA).

The error SL_STATUS_NOT_FOUND is returned if the RPA cannot be resolved.

This command is unavailable if the external bonding database (bluetooth_feature_external_bonding_database) is used.

Returns

  • SL_STATUS_OK if successful. Error code otherwise.


Definition at line 11379 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_sm_set_bonding_key#

sl_status_t sl_bt_sm_set_bonding_key (uint32_t bonding, uint8_t key_type, aes_key_128 key)
Parameters
N/Abonding
N/Akey_type
N/Akey

Definition at line 11410 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_sm_set_legacy_oob#

sl_status_t sl_bt_sm_set_legacy_oob (uint8_t enable, aes_key_128 oob_data)
Parameters
[in]enable

Enable OOB with legacy pairing. Values:

  • 0: disable

  • 1: enable

[in]oob_data

16-byte legacy pairing OOB data in little endian format.

Set Out-Of-Band (OOB) encryption data for a legacy pairing of a device. OOB data may be, for example, a PIN code exchanged over an alternate path, such as NFC. The device will not allow any other bonding if OOB data is set. OOB data can't be set simultaneously with secure connections OOB data.

Returns

  • SL_STATUS_OK if successful. Error code otherwise.


Definition at line 11429 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_sm_set_oob#

sl_status_t sl_bt_sm_set_oob (uint8_t enable, aes_key_128 * random, aes_key_128 * confirm)
Parameters
[in]enable

Enable OOB with secure connections pairing. Values:

  • 0: disable

  • 1: enable

[out]random

16-byte randomly-generated secure connections OOB data in little endian format.

[out]confirm

16-byte confirm value for the OOB random value in little endian format.

Enable the use of Out-Of-Band (OOB) encryption data for a device for secure connections pairing. Enabling will generate new OOB data and confirm values, which can be sent to the remote device. After enabling the secure connections OOB data, the remote devices OOB data can be set with sl_bt_sm_set_remote_oob. Calling this function will erase any set remote device OOB data and confirm values. The device will not allow any other bonding if OOB data is set. The secure connections OOB data cannot be enabled simultaneously with legacy pairing OOB data.

Returns

  • SL_STATUS_OK if successful. Error code otherwise.


Definition at line 11453 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_sm_set_remote_oob#

sl_status_t sl_bt_sm_set_remote_oob (uint8_t enable, aes_key_128 random, aes_key_128 confirm)
Parameters
[in]enable

Enable remote device OOB data with secure connections pairing. Values:

  • 0: disable

  • 1: enable

[in]random

16-byte remote device secure connections OOB data in little endian format.

[in]confirm

16-byte remote device confirm value for the OOB random value in little endian format.

Set Out-Of-Band (OOB) data and confirm values received from the remote device for secure connections pairing. OOB data must be enabled with sl_bt_sm_set_oob before setting the remote device OOB data.

Returns

  • SL_STATUS_OK if successful. Error code otherwise.


Definition at line 11475 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_sm_set_bonding_data#

sl_status_t sl_bt_sm_set_bonding_data (uint8_t connection, uint8_t type, size_t data_len, const uint8_t * data)
Parameters
N/Aconnection
N/Atype
N/Adata_len
N/Adata

Definition at line 11512 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

Macro Definition Documentation#

sl_bt_cmd_sm_configure_id#

#define sl_bt_cmd_sm_configure_id
Value:
0x010f0020

Definition at line 10639 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_cmd_sm_set_minimum_key_size_id#

#define sl_bt_cmd_sm_set_minimum_key_size_id
Value:
0x140f0020

Definition at line 10640 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_cmd_sm_set_debug_mode_id#

#define sl_bt_cmd_sm_set_debug_mode_id
Value:
0x0f0f0020

Definition at line 10641 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_cmd_sm_add_to_whitelist_id#

#define sl_bt_cmd_sm_add_to_whitelist_id
Value:
0x130f0020

Definition at line 10642 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_cmd_sm_store_bonding_configuration_id#

#define sl_bt_cmd_sm_store_bonding_configuration_id
Value:
0x020f0020

Definition at line 10643 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_cmd_sm_set_bondable_mode_id#

#define sl_bt_cmd_sm_set_bondable_mode_id
Value:
0x000f0020

Definition at line 10644 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_cmd_sm_set_passkey_id#

#define sl_bt_cmd_sm_set_passkey_id
Value:
0x100f0020

Definition at line 10645 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_cmd_sm_increase_security_id#

#define sl_bt_cmd_sm_increase_security_id
Value:
0x040f0020

Definition at line 10646 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_cmd_sm_enter_passkey_id#

#define sl_bt_cmd_sm_enter_passkey_id
Value:
0x080f0020

Definition at line 10647 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_cmd_sm_passkey_confirm_id#

#define sl_bt_cmd_sm_passkey_confirm_id
Value:
0x090f0020

Definition at line 10648 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_cmd_sm_bonding_confirm_id#

#define sl_bt_cmd_sm_bonding_confirm_id
Value:
0x0e0f0020

Definition at line 10649 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_cmd_sm_delete_bonding_id#

#define sl_bt_cmd_sm_delete_bonding_id
Value:
0x060f0020

Definition at line 10650 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_cmd_sm_delete_bondings_id#

#define sl_bt_cmd_sm_delete_bondings_id
Value:
0x070f0020

Definition at line 10651 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_cmd_sm_get_bonding_handles_id#

#define sl_bt_cmd_sm_get_bonding_handles_id
Value:
0x150f0020

Definition at line 10652 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_cmd_sm_get_bonding_details_id#

#define sl_bt_cmd_sm_get_bonding_details_id
Value:
0x160f0020

Definition at line 10653 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_cmd_sm_find_bonding_by_address_id#

#define sl_bt_cmd_sm_find_bonding_by_address_id
Value:
0x170f0020

Definition at line 10654 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_cmd_sm_resolve_rpa_id#

#define sl_bt_cmd_sm_resolve_rpa_id
Value:
0x1d0f0020

Definition at line 10655 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_cmd_sm_set_bonding_key_id#

#define sl_bt_cmd_sm_set_bonding_key_id
Value:
0x180f0020

Definition at line 10656 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_cmd_sm_set_legacy_oob_id#

#define sl_bt_cmd_sm_set_legacy_oob_id
Value:
0x190f0020

Definition at line 10657 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_cmd_sm_set_oob_id#

#define sl_bt_cmd_sm_set_oob_id
Value:
0x1a0f0020

Definition at line 10658 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_cmd_sm_set_remote_oob_id#

#define sl_bt_cmd_sm_set_remote_oob_id
Value:
0x1b0f0020

Definition at line 10659 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_cmd_sm_set_bonding_data_id#

#define sl_bt_cmd_sm_set_bonding_data_id
Value:
0x1c0f0020

Definition at line 10660 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_rsp_sm_configure_id#

#define sl_bt_rsp_sm_configure_id
Value:
0x010f0020

Definition at line 10661 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_rsp_sm_set_minimum_key_size_id#

#define sl_bt_rsp_sm_set_minimum_key_size_id
Value:
0x140f0020

Definition at line 10662 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_rsp_sm_set_debug_mode_id#

#define sl_bt_rsp_sm_set_debug_mode_id
Value:
0x0f0f0020

Definition at line 10663 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_rsp_sm_add_to_whitelist_id#

#define sl_bt_rsp_sm_add_to_whitelist_id
Value:
0x130f0020

Definition at line 10664 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_rsp_sm_store_bonding_configuration_id#

#define sl_bt_rsp_sm_store_bonding_configuration_id
Value:
0x020f0020

Definition at line 10665 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_rsp_sm_set_bondable_mode_id#

#define sl_bt_rsp_sm_set_bondable_mode_id
Value:
0x000f0020

Definition at line 10666 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_rsp_sm_set_passkey_id#

#define sl_bt_rsp_sm_set_passkey_id
Value:
0x100f0020

Definition at line 10667 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_rsp_sm_increase_security_id#

#define sl_bt_rsp_sm_increase_security_id
Value:
0x040f0020

Definition at line 10668 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_rsp_sm_enter_passkey_id#

#define sl_bt_rsp_sm_enter_passkey_id
Value:
0x080f0020

Definition at line 10669 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_rsp_sm_passkey_confirm_id#

#define sl_bt_rsp_sm_passkey_confirm_id
Value:
0x090f0020

Definition at line 10670 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_rsp_sm_bonding_confirm_id#

#define sl_bt_rsp_sm_bonding_confirm_id
Value:
0x0e0f0020

Definition at line 10671 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_rsp_sm_delete_bonding_id#

#define sl_bt_rsp_sm_delete_bonding_id
Value:
0x060f0020

Definition at line 10672 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_rsp_sm_delete_bondings_id#

#define sl_bt_rsp_sm_delete_bondings_id
Value:
0x070f0020

Definition at line 10673 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_rsp_sm_get_bonding_handles_id#

#define sl_bt_rsp_sm_get_bonding_handles_id
Value:
0x150f0020

Definition at line 10674 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_rsp_sm_get_bonding_details_id#

#define sl_bt_rsp_sm_get_bonding_details_id
Value:
0x160f0020

Definition at line 10675 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_rsp_sm_find_bonding_by_address_id#

#define sl_bt_rsp_sm_find_bonding_by_address_id
Value:
0x170f0020

Definition at line 10676 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_rsp_sm_resolve_rpa_id#

#define sl_bt_rsp_sm_resolve_rpa_id
Value:
0x1d0f0020

Definition at line 10677 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_rsp_sm_set_bonding_key_id#

#define sl_bt_rsp_sm_set_bonding_key_id
Value:
0x180f0020

Definition at line 10678 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_rsp_sm_set_legacy_oob_id#

#define sl_bt_rsp_sm_set_legacy_oob_id
Value:
0x190f0020

Definition at line 10679 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_rsp_sm_set_oob_id#

#define sl_bt_rsp_sm_set_oob_id
Value:
0x1a0f0020

Definition at line 10680 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_rsp_sm_set_remote_oob_id#

#define sl_bt_rsp_sm_set_remote_oob_id
Value:
0x1b0f0020

Definition at line 10681 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h

sl_bt_rsp_sm_set_bonding_data_id#

#define sl_bt_rsp_sm_set_bonding_data_id
Value:
0x1c0f0020

Definition at line 10682 of file /mnt/raid/workspaces/ws.iUTchugV0/overlay/gsdk/protocol/bluetooth/build_release/bt_api/sw/bgapi/inc/sl_bt_api.h