79 #define GAPCENTRALROLE_IRK 0x400
92 #define GAPCENTRALROLE_SRK 0x401
103 #define GAPCENTRALROLE_SIGNCOUNTER 0x402
117 #define GAPCENTRALROLE_BD_ADDR 0x403
128 #define GAPCENTRALROLE_MAX_SCAN_RES 0x404
139 #define GAPCENTRALROLE_LINK_PARAM_UPDATE_REQ_REPLY 0x405
145 #define GAPCENTRALROLE_PARAM_UPDATE_REQ_AUTO_REJECT 0x00
146 #define GAPCENTRALROLE_PARAM_UPDATE_REQ_AUTO_ACCEPT 0x01
147 #define GAPCENTRALROLE_PARAM_UPDATE_REQ_SEND_TO_APP 0x02
316 uint8_t addrTypePeer, uint8_t *peerAddr);
342 uint16_t connIntervalMax, uint16_t connLatency,
343 uint16_t connTimeout);
377 extern void GAPCentralRole_createTask(
void);
This API allows the software components in the Z-Stack to be written independently of the specifics o...
bStatus_t GAPCentralRole_StartDiscovery(uint8_t mode, uint8_t activeScan, uint8_t whiteList)
Start a device discovery scan.
Central GAPRole Callback Structure.
Definition: central.h:234
GAP_LINK_TERMINATED_EVENT message format.
Definition: gap.h:1010
bStatus_t GAPCentralRole_StartDevice(gapCentralRoleCB_t *pAppCallbacks)
Start the device in Central role. This function is typically called once during system startup...
gapDeviceInfoEvent_t deviceInfo
Discovery device information event structure.
Definition: central.h:173
GAP_LINK_ESTABLISHED_EVENT message format.
Definition: gap.h:973
GAP_DEVICE_INIT_DONE_EVENT message format.
Definition: gap.h:766
gapDeviceInitDoneEvent_t initDone
GAP initialization done.
Definition: central.h:172
GAP event header format.
Definition: gap.h:709
bStatus_t GAPCentralRole_UpdateLink(uint16_t connHandle, uint16_t connIntervalMin, uint16_t connIntervalMax, uint16_t connLatency, uint16_t connTimeout)
Update the link connection parameters.
bStatus_t GAPCentralRole_CancelDiscovery(void)
Cancel a device discovery scan.
GAP_LINK_PARAM_UPDATE_EVENT message format.
Definition: gap.h:993
gapDevDiscEvent_t discCmpl
Discovery complete event structure.
Definition: central.h:174
bStatus_t GAPCentralRole_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: central.h:178
gapLinkUpdateEvent_t linkUpdate
Link update event structure.
Definition: central.h:176
GAP_DEVICE_INFO_EVENT message format.
Definition: gap.h:801
gapEstLinkReqEvent_t linkCmpl
Link complete event structure.
Definition: central.h:175
Central Event Structure.
Definition: central.h:169
bStatus_t GAPCentralRole_GetParameter(uint16_t param, void *pValue)
Get a parameter in the Central Profile.
GAP_UPDATE_LINK_PARAM_REQ_EVENT message format.
Definition: gap.h:957
Type definitions and macros for BLE stack.
gapUpdateLinkParamReqEvent_t linkUpdateReply
Link update request reply structure.
Definition: central.h:177
bStatus_t GAPCentralRole_SetParameter(uint16_t param, uint8_t len, void *pValue)
Set a parameter in the Central Profile.
Status_t bStatus_t
BLE Generic Status return.
Definition: bcomdef.h:243
GAP_DEVICE_DISCOVERY_EVENT message format.
Definition: gap.h:847
gapEventHdr_t gap
GAP_MSG_EVENT and status.
Definition: central.h:171
uint8_t(* pfnGapCentralRoleEventCB_t)(gapCentralRoleEvent_t *pEvent)
Central Event Callback Function.
Definition: central.h:222
bStatus_t GAPCentralRole_TerminateLink(uint16_t connHandle)
Terminate a link.