60 #define GAPCENTRALROLE_IRK 0x400 73 #define GAPCENTRALROLE_SRK 0x401 84 #define GAPCENTRALROLE_SIGNCOUNTER 0x402 98 #define GAPCENTRALROLE_BD_ADDR 0x403 109 #define GAPCENTRALROLE_MAX_SCAN_RES 0x404 120 #define GAPCENTRALROLE_LINK_PARAM_UPDATE_REQ_REPLY 0x405 126 #define GAPCENTRALROLE_PARAM_UPDATE_REQ_AUTO_REJECT 0x00 127 #define GAPCENTRALROLE_PARAM_UPDATE_REQ_AUTO_ACCEPT 0x01 128 #define GAPCENTRALROLE_PARAM_UPDATE_REQ_SEND_TO_APP 0x02 297 uint8_t addrTypePeer, uint8_t *peerAddr);
323 uint16_t connIntervalMax, uint16_t connLatency,
324 uint16_t connTimeout);
358 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:215
GAP_LINK_TERMINATED_EVENT message format.
Definition: gap.h:1062
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:154
GAP_LINK_ESTABLISHED_EVENT message format.
Definition: gap.h:1025
GAP_DEVICE_INIT_DONE_EVENT message format.
Definition: gap.h:818
gapDeviceInitDoneEvent_t initDone
GAP initialization done.
Definition: central.h:153
GAP event header format.
Definition: gap.h:761
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:1045
gapDevDiscEvent_t discCmpl
Discovery complete event structure.
Definition: central.h:155
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:159
gapLinkUpdateEvent_t linkUpdate
Link update event structure.
Definition: central.h:157
GAP_DEVICE_INFO_EVENT message format.
Definition: gap.h:853
gapEstLinkReqEvent_t linkCmpl
Link complete event structure.
Definition: central.h:156
Central Event Structure.
Definition: central.h:150
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:1009
Type definitions and macros for BLE stack.
pfnGapCentralRoleEventCB_t eventCB
event callback
Definition: central.h:217
gapUpdateLinkParamReqEvent_t linkUpdateReply
Link update request reply structure.
Definition: central.h:158
uint8_t(* pfnGapCentralRoleEventCB_t)(gapCentralRoleEvent_t *pEvent)
Central Event Callback Function.
Definition: central.h:203
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:227
GAP_DEVICE_DISCOVERY_EVENT message format.
Definition: gap.h:899
gapEventHdr_t gap
GAP_MSG_EVENT and status.
Definition: central.h:152
bStatus_t GAPCentralRole_TerminateLink(uint16_t connHandle)
Terminate a link.