SWRA475A January 2015 – October 2016 CC2540 , CC2540T , CC2541 , CC2541-Q1
The first three bytes of the broadcasted data defines the capabilities of the device. It is a requirement from the Core Specification [1] (Vol 3.C.13.1.1 page 2029) and the format is defined as shown in Table 3.
Byte | Bit | Flag/Value | Description |
---|---|---|---|
0 | 0x02 | Length of this data | |
1 | 0x01 | GAP AD Type Flags | |
2 | 0 | LE Limited Discoverable Mode | 180 s advertising |
1 | LE General Discoverable Mode | Indefinite advertising time | |
2 | BR/EDR Not Supported | ||
3 | Simultaneous LE and BR/EDR (Controller) | ||
4 | Simultaneous LE and BR/EDR (Host) | ||
5-7 | Reserved |
Discovery mode flags are bit masked and the various settings are presented in Table 3. If no bit flags are to be set, the Flags Data type can be omitted [2]. It would for example not be required for a non-connectable advertisement packet (ADV_NONCONN_IND).