63 #define GAPCENTRALROLE_IRK 0x400 76 #define GAPCENTRALROLE_SRK 0x401 87 #define GAPCENTRALROLE_SIGNCOUNTER 0x402 101 #define GAPCENTRALROLE_BD_ADDR 0x403 112 #define GAPCENTRALROLE_MAX_SCAN_RES 0x404 123 #define GAPCENTRALROLE_LINK_PARAM_UPDATE_REQ_REPLY 0x405 129 #define GAPCENTRALROLE_PARAM_UPDATE_REQ_AUTO_REJECT 0x00 130 #define GAPCENTRALROLE_PARAM_UPDATE_REQ_AUTO_ACCEPT 0x01 131 #define GAPCENTRALROLE_PARAM_UPDATE_REQ_SEND_TO_APP 0x02 300 uint8_t addrTypePeer, uint8_t *peerAddr);
326 uint16_t connIntervalMax, uint16_t connLatency,
327 uint16_t connTimeout);
361 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:218
GAP_LINK_TERMINATED_EVENT message format.
Definition: gap.h:1070
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:157
GAP_LINK_ESTABLISHED_EVENT message format.
Definition: gap.h:1033
GAP_DEVICE_INIT_DONE_EVENT message format.
Definition: gap.h:826
gapDeviceInitDoneEvent_t initDone
GAP initialization done.
Definition: central.h:156
GAP event header format.
Definition: gap.h:769
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:1053
gapDevDiscEvent_t discCmpl
Discovery complete event structure.
Definition: central.h:158
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:162
gapLinkUpdateEvent_t linkUpdate
Link update event structure.
Definition: central.h:160
GAP_DEVICE_INFO_EVENT message format.
Definition: gap.h:861
gapEstLinkReqEvent_t linkCmpl
Link complete event structure.
Definition: central.h:159
Central Event Structure.
Definition: central.h:153
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:1017
Type definitions and macros for BLE stack.
pfnGapCentralRoleEventCB_t eventCB
event callback
Definition: central.h:220
gapUpdateLinkParamReqEvent_t linkUpdateReply
Link update request reply structure.
Definition: central.h:161
uint8_t(* pfnGapCentralRoleEventCB_t)(gapCentralRoleEvent_t *pEvent)
Central Event Callback Function.
Definition: central.h:206
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:225
GAP_DEVICE_DISCOVERY_EVENT message format.
Definition: gap.h:907
gapEventHdr_t gap
GAP_MSG_EVENT and status.
Definition: central.h:155
bStatus_t GAPCentralRole_TerminateLink(uint16_t connHandle)
Terminate a link.