Configurable Parameters
www.ti.com
114
SWRU271H–October 2010–Revised April 2019
Submit Documentation Feedback
Copyright © 2010–2019, Texas Instruments Incorporated
GAPRole Peripheral Role API
B.2 Configurable Parameters
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.