54 #define GAPROLE_PROFILEROLE 0x300 67 #define GAPROLE_IRK 0x301 80 #define GAPROLE_SRK 0x302 91 #define GAPROLE_SIGNCOUNTER 0x303 105 #define GAPROLE_BD_ADDR 0x304 118 #define GAPROLE_ADVERT_ENABLED 0x305 131 #define GAPROLE_ADVERT_OFF_TIME 0x306 143 #define GAPROLE_ADVERT_DATA 0x307 154 #define GAPROLE_SCAN_RSP_DATA 0x308 165 #define GAPROLE_ADV_EVENT_TYPE 0x309 176 #define GAPROLE_ADV_DIRECT_TYPE 0x30A 187 #define GAPROLE_ADV_DIRECT_ADDR 0x30B 200 #define GAPROLE_ADV_CHANNEL_MAP 0x30C 213 #define GAPROLE_ADV_FILTER_POLICY 0x30D 224 #define GAPROLE_MIN_CONN_INTERVAL 0x311 235 #define GAPROLE_MAX_CONN_INTERVAL 0x312 246 #define GAPROLE_SLAVE_LATENCY 0x313 257 #define GAPROLE_TIMEOUT_MULTIPLIER 0x314 270 #define GAPROLE_ADV_NONCONN_ENABLED 0x31B 281 #define GAPROLE_MAX_SCAN_RES 0x404 289 #define GAPROLE_NO_ACTION 0 290 #define GAPROLE_RESEND_PARAM_UPDATE 1 291 #define GAPROLE_TERMINATE_LINK 2 299 #define GAPROLE_LINK_PARAM_UPDATE_ACCEPT 0 300 #define GAPROLE_LINK_PARAM_UPDATE_REJECT 1 301 #define GAPROLE_LINK_PARAM_UPDATE_APP_DECIDES 2 302 #define GAPROLE_LINK_PARAM_UPDATE_NUM_OPTIONS 3 527 uint8_t addrTypePeer, uint8_t *peerAddr);
559 extern void GAPRole_createTask(
void);
561 extern void gapRole_abort(
void);
GAP_LINK_TERMINATED_EVENT message format.
Definition: gap.h:1062
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:328
void(* paramUpdateAppDecision_t)(gapUpdateLinkParamReq_t *pReq, gapUpdateLinkParamReqReply_t *pRsp)
Callback for the app to decide on a parameter update request.
Definition: multi.h:399
GAP_LINK_ESTABLISHED_EVENT message format.
Definition: gap.h:1025
GAP_DEVICE_INIT_DONE_EVENT message format.
Definition: gap.h:818
GAP event header format.
Definition: gap.h:761
gapEstLinkReqEvent_t linkCmpl
Link complete event structure.
Definition: multi.h:322
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:1045
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:412
gapDeviceInitDoneEvent_t initDone
GAP initialization done.
Definition: multi.h:319
GAP_DEVICE_INFO_EVENT message format.
Definition: gap.h:853
uint16_t timeoutMultiplier
supervision timeout
Definition: multi.h:335
uint8_t paramUpdateEnable
Parameter Update Options
Definition: multi.h:330
gapEventHdr_t gap
GAP_MSG_EVENT and status.
Definition: multi.h:318
uint8_t(* passThroughToApp_t)(gapMultiRoleEvent_t *pEvent)
Multi Event Callback Function.
Definition: multi.h:385
uint16_t minConnInterval
minimum connection interval
Definition: multi.h:332
bStatus_t GAPRole_CancelDiscovery(void)
Cancel a device discovery scan.
Multi GAPRole Callback structure.
Definition: multi.h:410
Multi GAPRole Event Structure.
Definition: multi.h:316
uint16_t slaveLatency
slave latency
Definition: multi.h:334
Update Link Parameters Request parameters.
Definition: gap.h:978
Status_t bStatus_t
BLE Generic Status return.
Definition: bcomdef.h:227
paramUpdateAppDecision_t pfnParamUpdateAppDecision
When the app should decide on a param update request.
Definition: multi.h:413
GAP_DEVICE_DISCOVERY_EVENT message format.
Definition: gap.h:899
gapDeviceInfoEvent_t deviceInfo
Discovery device information event structure.
Definition: multi.h:320
gapLinkUpdateEvent_t linkUpdate
Link update event structure.
Definition: multi.h:323
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:324
Update Link Parameters Request Reply parameters.
Definition: gap.h:988
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:331
gapDevDiscEvent_t discCmpl
Discovery complete event structure.
Definition: multi.h:321
uint16_t maxConnInterval
maximum connection interval
Definition: multi.h:333