BGAPI Types#

Common types in BGAPI protocol.

Modules#

uint8array

byte_array

bd_addr

uuid_128

aes_key_128

sl_bt_uuid_16_t

sl_bt_uuid_64_t

Macros#

#define

The length of a BGAPI message header which is 4 bytes.

#define

Get the device type of a BGAPI message.

#define

Get the identifier of a BGAPI message including device type, class ID, message type and message ID.

#define

Get the data payload length in a BGAPI message.

#define

The bit indicating whether data of a BGAPI message is encrypted.

#define

Check whether data of a BGAPI message is encrypted.

Macro Definition Documentation#

SL_BT_TYPE_UINT8ARRARY#

#define SL_BT_TYPE_UINT8ARRARY

Definition at line 74 of file include/sl_bgapi.h

SL_BT_TYPE_BYTE_ARRARY#

#define SL_BT_TYPE_BYTE_ARRARY

Definition at line 83 of file include/sl_bgapi.h

SL_BT_TYPE_BDADDR#

#define SL_BT_TYPE_BDADDR

Definition at line 92 of file include/sl_bgapi.h

SL_BT_TYPE_UUID128#

#define SL_BT_TYPE_UUID128

Definition at line 100 of file include/sl_bgapi.h

SL_BT_TYPE_AES_KEY128#

#define SL_BT_TYPE_AES_KEY128

Definition at line 108 of file include/sl_bgapi.h

SL_BT_TYPE_UUID16#

#define SL_BT_TYPE_UUID16

Definition at line 116 of file include/sl_bgapi.h

SL_BT_TYPE_UUID64#

#define SL_BT_TYPE_UUID64

Definition at line 124 of file include/sl_bgapi.h

SL_BGAPI_MSG_HEADER_LEN#

#define SL_BGAPI_MSG_HEADER_LEN
Value:
(4)

The length of a BGAPI message header which is 4 bytes.


Definition at line 159 of file include/sl_bgapi.h

SL_BGAPI_MSG_DEVICE_TYPE#

#define SL_BGAPI_MSG_DEVICE_TYPE
Value:
(HDR)

Get the device type of a BGAPI message.


Definition at line 166 of file include/sl_bgapi.h

SL_BGAPI_MSG_ID#

#define SL_BGAPI_MSG_ID
Value:
(HDR)

Get the identifier of a BGAPI message including device type, class ID, message type and message ID.


Definition at line 174 of file include/sl_bgapi.h

SL_BGAPI_MSG_LEN#

#define SL_BGAPI_MSG_LEN
Value:
(HDR)

Get the data payload length in a BGAPI message.


Definition at line 181 of file include/sl_bgapi.h

SL_BGAPI_BIT_ENCRYPTED#

#define SL_BGAPI_BIT_ENCRYPTED
Value:
(1 << 6)

The bit indicating whether data of a BGAPI message is encrypted.


Definition at line 186 of file include/sl_bgapi.h

SL_BGAPI_MSG_ENCRYPTED#

#define SL_BGAPI_MSG_ENCRYPTED
Value:
(HDR)

Check whether data of a BGAPI message is encrypted.


Definition at line 193 of file include/sl_bgapi.h