Ble_macros#

Macros#

#define

BLE protocol identifier.

#define

Proprietary protocol identifier.

#define

Advertising role identifier.

#define

Scanning and central role identifier.

#define

Peripheral role identifier.

#define

Connection role identifier.

#define

Attribute Protocol (ATT) Exchange MTU request.

#define

Attribute Protocol (ATT) Find Information request.

#define

Attribute Protocol (ATT) Find By Type Value request.

#define

Attribute Protocol (ATT) Read By Type request.

#define

Attribute Protocol (ATT) Read request.

#define

Attribute Protocol (ATT) Read Blob request.

#define

Attribute Protocol (ATT) Read Multiple request.

#define

Attribute Protocol (ATT) Read By Group Type request.

#define

Attribute Protocol (ATT) Write request.

#define

Attribute Protocol (ATT) Prepare Write request.

#define

Attribute Protocol (ATT) Execute Write request.

#define

Advertising Extension (AE) advertising data.

#define

Advertising Extension (AE) scan response data.

#define

Indicates the number of supported scanning physical channels.

Macro Definition Documentation#

BLE_PROTOCOL#

#define BLE_PROTOCOL
Value:
0x01

BLE protocol identifier.


PROP_PROTOCOL#

#define PROP_PROTOCOL
Value:
0x02

Proprietary protocol identifier.


ADV_ROLE#

#define ADV_ROLE
Value:
0x01

Advertising role identifier.


SCAN_AND_CENTRAL_ROLE#

#define SCAN_AND_CENTRAL_ROLE
Value:
0x02

Scanning and central role identifier.


PERIPHERAL_ROLE#

#define PERIPHERAL_ROLE
Value:
0x03

Peripheral role identifier.


CONN_ROLE#

#define CONN_ROLE
Value:
0x04

Connection role identifier.


RSI_BLE_ATT_EXCHANGE_MTU_REQUEST#

#define RSI_BLE_ATT_EXCHANGE_MTU_REQUEST
Value:
0x02

Attribute Protocol (ATT) Exchange MTU request.


RSI_BLE_ATT_FIND_INFORMATION_REQUEST#

#define RSI_BLE_ATT_FIND_INFORMATION_REQUEST
Value:
0x04

Attribute Protocol (ATT) Find Information request.


RSI_BLE_ATT_FIND_BY_TYPE_VALUE_REQUEST#

#define RSI_BLE_ATT_FIND_BY_TYPE_VALUE_REQUEST
Value:
0x06

Attribute Protocol (ATT) Find By Type Value request.


RSI_BLE_ATT_READ_BY_TYPE_REQUEST#

#define RSI_BLE_ATT_READ_BY_TYPE_REQUEST
Value:
0x08

Attribute Protocol (ATT) Read By Type request.


RSI_BLE_ATT_READ_REQUEST#

#define RSI_BLE_ATT_READ_REQUEST
Value:
0x0A

Attribute Protocol (ATT) Read request.


RSI_BLE_ATT_READ_BLOB_REQUEST#

#define RSI_BLE_ATT_READ_BLOB_REQUEST
Value:
0x0C

Attribute Protocol (ATT) Read Blob request.


RSI_BLE_ATT_READ_MULTIPLE_REQUEST#

#define RSI_BLE_ATT_READ_MULTIPLE_REQUEST
Value:
0x0E

Attribute Protocol (ATT) Read Multiple request.


RSI_BLE_ATT_READ_BY_GROUP_TYPE_REQUEST#

#define RSI_BLE_ATT_READ_BY_GROUP_TYPE_REQUEST
Value:
0x10

Attribute Protocol (ATT) Read By Group Type request.


RSI_BLE_ATT_WRITE_REQUEST#

#define RSI_BLE_ATT_WRITE_REQUEST
Value:
0x12

Attribute Protocol (ATT) Write request.


RSI_BLE_ATT_PREPARE_WRITE_REQUEST#

#define RSI_BLE_ATT_PREPARE_WRITE_REQUEST
Value:
0x16

Attribute Protocol (ATT) Prepare Write request.


RSI_BLE_ATT_EXECUTE_WRITE_REQUEST#

#define RSI_BLE_ATT_EXECUTE_WRITE_REQUEST
Value:
0x18

Attribute Protocol (ATT) Execute Write request.


AE_ADV_DATA#

#define AE_ADV_DATA
Value:
0x01

Advertising Extension (AE) advertising data.


AE_SCAN_RSP_DATA#

#define AE_SCAN_RSP_DATA
Value:
0x02

Advertising Extension (AE) scan response data.


SUPPORTED_SCNNING_PHYS#

#define SUPPORTED_SCNNING_PHYS
Value:
2

Indicates the number of supported scanning physical channels.