SWRU271I October 2010 – January 2020 CC2540 , CC2540T , CC2541 , CC2541-Q1 , CC2640R2F
ParamID | R/W | Size | Description |
---|---|---|---|
GAPROLE_PROFILEROLE | R | uint8 | GAP profile role (peripheral) |
GAPROLE_IRK | R/W | uint8[16] | Identity resolving key. Default is all 0s, which means the IRK will be randomly generated. |
GAPROLE_SRK | R/W | uint8[16] | Signature resolving key. Default is all 0s, which means the SRK will be randomly generated. |
GAPROLE_SIGNCOUNTER | R/W | uint32 | Sign counter |
GAPROLE_BD_ADDR | R | uint8[6] | Device address read from controller. This can be set with the HCI_EXT_SetBDADDRCmd(). |
GAPROLE_ADVERT_ENABLED | R/W | uint8 | Enable and disable advertising. Default is TRUE = enabled. |
GAPROLE_ADVERT_OFF_TIME | R/W | uint16 | How long to wait to restart advertising after advertising stops (in ms). |
GAPROLE_ADVERT_DATA | R/W | <uint8[32] | Advertisement data. Default is 02:01:01. This third byte sets limited / general advertising. |
GAPROLE_SCAN_RSP_DATA | R/W | <uint8[32] | Scan Response data. Default is all 0s. |
GAPROLE_ADV_EVENT_TYPE | R/W | uint8 | Advertisement type. Default is GAP_ADTYPE_IND (from gap.h). |
GAPROLE_ADV_DIRECT_TYPE | R/W | uint8 | Direct advertisement type. Default is ADDRTYPE_PUBLIC (from gap.h). |
GAPROLE_ADV_DIRECT_ADDR | R/W | uint8[6] | Direct advertisement address. Default is 0. |
GAPROLE_ADV_CHANNEL_MAP | R/W | uint8 | Which channels to advertise on. Default is GAP_ADVCHAN_ALL (from gap.h). |
GAPROLE_ADV_FILTER_POLICY | R/W | uint8 | Policy for filtering advertisements. Ignored in direct advertising |
GAPROLE_CONNHANDLE | R | uint16 | Handle of current connection |
GAPROLE_RSSI_READ_RATE | R/W | uint16 | How often to read RSSI during a connection. Default is 0 = OFF. |
GAPROLE_PARAM_UPDATE_ENABLE | R/W | uint8 | TRUE to request a connection parameter update upon connection. Default = FALSE. |
GAPROLE_MIN_CONN_INTERVAL | R/W | uint16 | Minimum connection interval to allow (n × 125 ms). Range: 7.5 ms to 4 sec. Default is 7.5 ms. Also used for parameter update. |
GAPROLE_MAX_CONN_INTERVAL | R/W | uint16 | Maximum connection interval to allow (n × 125 ms). Range: 7.5 ms to 4 sec. Default is 7.5 ms. Also used for param update. |
GAPROLE_SLAVE_LATENCY | R/W | uint16 | Slave latency to use for a parameter update. Range: 0 to 499. Default is 0. |
GAPROLE_TIMEOUT_MULTIPLIER | R/W | uint16 | Supervision timeout to use for a parameter update (n × 10 ms). Range: 100 ms to 32 sec. Default is 1000 ms. |
GAPROLE_CONN_BD_ADDR | R | uint8[6] | Address of connected device. |
GAPROLE_CONN_INTERVAL | R | uint16 | Current connection interval. |
GAPROLE_CONN_LATENCY | R | uint16 | Current slave latency. |
GAPROLE_CONN_TIMEOUT | R | uint16 | Current supervision timeout. |
GAPROLE_PARAM_UPDATE_REQ | W | uint8 | Set this to TRUE to send a parameter update request. |
GAPROLE_STATE | R | uint8 | Gap peripheral role state (enumerated in gaprole_States_t in peripheral.h) |