73 #define GAPROLE_PROFILEROLE 0x300
86 #define GAPROLE_IRK 0x301
99 #define GAPROLE_SRK 0x302
110 #define GAPROLE_SIGNCOUNTER 0x303
124 #define GAPROLE_BD_ADDR 0x304
137 #define GAPROLE_ADVERT_ENABLED 0x305
150 #define GAPROLE_ADVERT_OFF_TIME 0x306
162 #define GAPROLE_ADVERT_DATA 0x307
173 #define GAPROLE_SCAN_RSP_DATA 0x308
184 #define GAPROLE_ADV_EVENT_TYPE 0x309
195 #define GAPROLE_ADV_DIRECT_TYPE 0x30A
206 #define GAPROLE_ADV_DIRECT_ADDR 0x30B
219 #define GAPROLE_ADV_CHANNEL_MAP 0x30C
232 #define GAPROLE_ADV_FILTER_POLICY 0x30D
243 #define GAPROLE_MIN_CONN_INTERVAL 0x311
254 #define GAPROLE_MAX_CONN_INTERVAL 0x312
265 #define GAPROLE_SLAVE_LATENCY 0x313
276 #define GAPROLE_TIMEOUT_MULTIPLIER 0x314
289 #define GAPROLE_ADV_NONCONN_ENABLED 0x31B
300 #define GAPROLE_MAX_SCAN_RES 0x404
308 #define GAPROLE_NO_ACTION 0
309 #define GAPROLE_RESEND_PARAM_UPDATE 1
310 #define GAPROLE_TERMINATE_LINK 2
318 #define GAPROLE_LINK_PARAM_UPDATE_ACCEPT 0
319 #define GAPROLE_LINK_PARAM_UPDATE_REJECT 1
320 #define GAPROLE_LINK_PARAM_UPDATE_APP_DECIDES 2
321 #define GAPROLE_LINK_PARAM_UPDATE_NUM_OPTIONS 3
417 typedef void (*paramUpdateAppDecision_t)
544 uint8_t addrTypePeer, uint8_t *peerAddr);
576 extern void GAPRole_createTask(
void);
578 extern void gapRole_abort(
void);
GAP_LINK_TERMINATED_EVENT message format.
Definition: gap.h:1010
bStatus_t GAPRole_GetParameter(uint16_t param, void *pValue, uint8 connHandle)
Get a GAP Role parameter.
bStatus_t GAPRole_StartDevice(gapRolesCBs_t *pAppCallbacks, uint8_t *numConns)
Initialize the GAP layer.
Multi GAPRole Parameter Update Structure.
Definition: multi.h:347
GAP_LINK_ESTABLISHED_EVENT message format.
Definition: gap.h:973
GAP_DEVICE_INIT_DONE_EVENT message format.
Definition: gap.h:766
GAP event header format.
Definition: gap.h:709
gapEstLinkReqEvent_t linkCmpl
Link complete event structure.
Definition: multi.h:341
bStatus_t GAPRole_TerminateConnection(uint16_t connHandle)
Terminates the existing connection.
bStatus_t gapRole_connUpdate(uint8_t handleFailure, gapRole_updateConnParams_t *pConnParams)
Send a connection parameter update to a connected device.
GAP_LINK_PARAM_UPDATE_EVENT message format.
Definition: gap.h:993
bStatus_t GAPRole_StartDiscovery(uint8_t mode, uint8_t activeScan, uint8_t whiteList)
Start a device discovery scan.
passThroughToApp_t pfnPassThrough
When the event should be processed by the app instead of the GAP Role.
Definition: multi.h:431
gapDeviceInitDoneEvent_t initDone
GAP initialization done.
Definition: multi.h:338
GAP_DEVICE_INFO_EVENT message format.
Definition: gap.h:801
uint16_t timeoutMultiplier
supervision timeout
Definition: multi.h:354
uint8_t paramUpdateEnable
Parameter Update Options
Definition: multi.h:349
gapEventHdr_t gap
GAP_MSG_EVENT and status.
Definition: multi.h:337
uint16_t minConnInterval
minimum connection interval
Definition: multi.h:351
bStatus_t GAPRole_CancelDiscovery(void)
Cancel a device discovery scan.
Peripheral GAPRole Callback structure.
Definition: peripheral.h:482
Multi GAPRole Event Structure.
Definition: multi.h:335
uint16_t slaveLatency
slave latency
Definition: multi.h:353
uint8_t(* passThroughToApp_t)(gapMultiRoleEvent_t *pEvent)
Multi Event Callback Function.
Definition: multi.h:404
Update Link Parameters Request parameters.
Definition: gap.h:926
Status_t bStatus_t
BLE Generic Status return.
Definition: bcomdef.h:243
paramUpdateAppDecision_t pfnParamUpdateAppDecision
When the app should decide on a param update request.
Definition: multi.h:432
GAP_DEVICE_DISCOVERY_EVENT message format.
Definition: gap.h:847
gapDeviceInfoEvent_t deviceInfo
Discovery device information event structure.
Definition: multi.h:339
gapLinkUpdateEvent_t linkUpdate
Link update event structure.
Definition: multi.h:342
bStatus_t GAPRole_EstablishLink(uint8_t highDutyCycle, uint8_t whiteList, uint8_t addrTypePeer, uint8_t *peerAddr)
Establish a link to a peer device.
gapTerminateLinkEvent_t linkTerminate
Link terminated event structure.
Definition: multi.h:343
Update Link Parameters Request Reply parameters.
Definition: gap.h:936
bStatus_t GAPRole_SetParameter(uint16_t param, uint8_t len, void *pValue, uint8 connHandle)
Set a GAP Role parameter.
uint16_t connHandle
connection handle
Definition: multi.h:350
gapDevDiscEvent_t discCmpl
Discovery complete event structure.
Definition: multi.h:340
uint16_t maxConnInterval
maximum connection interval
Definition: multi.h:352