22 #ifndef GAP_ADVERTISER_H 23 #define GAP_ADVERTISER_H 47 #define GAPADV_PARAMS_LEGACY_SCANN_CONN { \ 49 .eventProps = GAP_ADV_PROP_CONNECTABLE | GAP_ADV_PROP_SCANNABLE | \ 50 GAP_ADV_PROP_LEGACY, \ 53 .primChanMap = GAP_ADV_CHAN_ALL, \ 54 .peerAddrType = PEER_ADDRTYPE_PUBLIC_OR_PUBLIC_ID, \ 55 .peerAddr = { 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa }, \ 56 .filterPolicy = GAP_ADV_WL_POLICY_ANY_REQ, \ 57 .txPower = GAP_ADV_TX_POWER_NO_PREFERENCE, \ 58 .primPhy = GAP_ADV_PRIM_PHY_1_MBPS, \ 59 .secPhy = GAP_ADV_SEC_PHY_1_MBPS, \ 64 #define GAPADV_PARAMS_AE_LONG_RANGE_CONN { \ 65 .eventProps = GAP_ADV_PROP_CONNECTABLE, \ 68 .primChanMap = GAP_ADV_CHAN_ALL, \ 69 .peerAddrType = PEER_ADDRTYPE_PUBLIC_OR_PUBLIC_ID, \ 70 .peerAddr = { 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa }, \ 71 .filterPolicy = GAP_ADV_WL_POLICY_ANY_REQ, \ 72 .txPower = GAP_ADV_TX_POWER_NO_PREFERENCE, \ 73 .primPhy = GAP_ADV_PRIM_PHY_CODED_S2, \ 74 .secPhy = GAP_ADV_SEC_PHY_CODED_S2, \ 224 GAP_ADV_PARAM_TX_POWER,
276 #define GAP_ADV_INVALID_HANDLE 0xFF 350 #define GAP_ADV_TX_POWER_NO_PREFERENCE 127 415 GAP_ADV_EVT_MASK_RESERVED = BV(15)
537 GapAdv_freeBufferOptions_t freeOptions);
574 GapAdv_enableOptions_t enableOptions,
575 uint16 durationOrMaxEvents);
655 void *pValue, uint8_t *pLen);
675 uint16 *pLen, uint8 **ppBuf);
736 GapAdv_freeBufferOptions_t freeOptions);
783 uint16 len, uint8 *pBuf);
Omit advertiser's address from PDU's.
Definition: gap_advertiser.h:287
uint32_t primIntMax
GAP_ADV_PARAM_PRIMARY_INTERVAL_MAX
Definition: gap_advertiser.h:441
This API allows the software components in the Z-Stack to be written independently of the specifics o...
All Channels.
Definition: gap_advertiser.h:335
GAP_Peer_Addr_Types_t
Address types used for specifying peer address type.
Definition: gap.h:586
coded-s2
Definition: gap_advertiser.h:357
bStatus_t GapAdv_setParam(uint8 handle, GapAdv_ParamId_t paramID, void *pValue)
bStatus_t GapAdv_getParam(uint8 handle, GapAdv_ParamId_t paramID, void *pValue, uint8_t *pLen)
Definition: gap_advertiser.h:263
uint32_t primIntMin
GAP_ADV_PARAM_PRIMARY_INTERVAL_MIN
Definition: gap_advertiser.h:440
bStatus_t GapAdv_prepareLoadByHandle(uint8 handle, GapAdv_freeBufferOptions_t freeOptions)
GapAdv_freeBufferOptions_t
Possible free options for Gap Advertiser API's.
Definition: gap_advertiser.h:300
Definition: gap_advertiser.h:405
1 mbps
Definition: gap_advertiser.h:355
Definition: gap_advertiser.h:201
bStatus_t GapAdv_loadByHandle(uint8 handle, GapAdv_dataTypes_t dataType, uint16 len, uint8 *pBuf)
Definition: gap_advertiser.h:288
Directed advertising.
Definition: gap_advertiser.h:284
bStatus_t GapAdv_abortLoad(void)
Definition: gap_advertiser.h:393
bStatus_t GapAdv_enable(uint8 handle, GapAdv_enableOptions_t enableOptions, uint16 durationOrMaxEvents)
Data type returned with GAP_EVT_ADV_DATA_TRUNCATED event.
Definition: gap_advertiser.h:471
Scannable advertising.
Definition: gap_advertiser.h:283
uint16_t eventProps
GAP_ADV_PARAM_PROPS
Definition: gap_advertiser.h:439
Free the scan response data.
Definition: gap_advertiser.h:304
GapAdv_enableOptions_t
Enable options for GapAdv_enable.
Definition: gap_advertiser.h:312
Definition: gap_advertiser.h:381
GapAdv_ParamId_t
Definition: gap_advertiser.h:137
any scan request, any connect request
Definition: gap_advertiser.h:343
1 mbps
Definition: gap_advertiser.h:363
uint8 handle
Advertising handle.
Definition: gap_advertiser.h:456
Don't free anything.
Definition: gap_advertiser.h:302
Definition: gap_advertiser.h:249
bStatus_t GapAdv_disable(uint8 handle)
Disable an active advertising set.
void(* pfnGapCB_t)(uint32_t event, void *pBuf, uintptr_t arg)
Definition: gap.h:1095
uint8 handle
Advertising handle.
Definition: gap_advertiser.h:473
Definition: gap_advertiser.h:210
GapAdv_secondaryPHY_t secPhy
GAP_ADV_PARAM_SECONDARY_PHY
Definition: gap_advertiser.h:448
2 mbps
Definition: gap_advertiser.h:364
Scan response data.
Definition: gap_advertiser.h:296
bStatus_t GapAdv_setEventMask(uint8 handle, GapAdv_eventMaskFlags_t mask)
GapAdv_secondaryPHY_t
Gap Advertiser Options for advertising on the secondary PHY.
Definition: gap_advertiser.h:361
bStatus_t GapAdv_create(pfnGapCB_t *cb, GapAdv_params_t *advParam, uint8 *advHandle)
Definition: gap_advertiser.h:401
Definition: gap_advertiser.h:308
GapAdv_advChannels_t
GAP Advertiser Defines for Advertiser Channels.
Definition: gap_advertiser.h:330
Definition: gap_advertiser.h:171
GAP_Peer_Addr_Types_t peerAddrType
GAP_ADV_PARAM_PEER_ADDRESS_TYPE
Definition: gap_advertiser.h:443
GapAdv_eventMaskFlags_t
Definition: gap_advertiser.h:376
Advertising data.
Definition: gap_advertiser.h:295
GapAdv_primaryPHY_t
Gap Advertiser Options for advertising on the primary PHY.
Definition: gap_advertiser.h:353
Definition: gap_advertiser.h:326
Type definitions and macros for BLE stack.
Channel 37.
Definition: gap_advertiser.h:332
Definition: gap_advertiser.h:157
Connectable advertising.
Definition: gap_advertiser.h:282
Free the advertising data.
Definition: gap_advertiser.h:303
Definition: gap_advertiser.h:322
bStatus_t GapAdv_getBuffer(uint8 handle, GapAdv_dataTypes_t dataType, uint16 *pLen, uint8 **ppBuf)
coded-s2
Definition: gap_advertiser.h:366
Definition: gap_advertiser.h:237
any scan request, white list connect request
Definition: gap_advertiser.h:345
Definition: gap_advertiser.h:389
uint16 connHandle
Connection handle that ended advertising.
Definition: gap_advertiser.h:458
Definition: gap_advertiser.h:385
coded-s8
Definition: gap_advertiser.h:365
GapAdv_filterPolicy_t filterPolicy
GAP_ADV_PARAM_FILTER_POLICY
Definition: gap_advertiser.h:445
GapAdv_advChannels_t primChanMap
GAP_ADV_PARAM_PRIMARY_CHANNEL_MAP
Definition: gap_advertiser.h:442
Use legacy advertising PDU's.
Definition: gap_advertiser.h:286
GapAdv_dataTypes_t
Gap Advertising Data Types.
Definition: gap_advertiser.h:293
Definition: gap_advertiser.h:318
uint8 scanAddrType
Address type of scanning device.
Definition: gap_advertiser.h:466
uint16 advDataLen
Definition: gap_advertiser.h:478
int8_t txPower
NOT CURRENTLY IMPLEMENTED.
Definition: gap_advertiser.h:446
Data type returned with GAP_EVT_ADV_SET_TERMINATED event.
Definition: gap_advertiser.h:454
#define B_ADDR_LEN
Default Public and Random Address Length.
Definition: bcomdef.h:115
Definition: gap_advertiser.h:146
Definition: gap_advertiser.h:437
Definition: gap_advertiser.h:397
High Duty Cycle Directed Advertising.
Definition: gap_advertiser.h:285
any connect request, white list scan request
Definition: gap_advertiser.h:344
Status_t bStatus_t
BLE Generic Status return.
Definition: bcomdef.h:242
white list scan request and any connect request
Definition: gap_advertiser.h:346
Definition: gap_advertiser.h:192
GapAdv_filterPolicy_t
GAP Advertiser White List Policy.
Definition: gap_advertiser.h:341
bStatus_t GapAdv_prepareLoadByBuffer(uint8 *pBuf, bool freeOldData)
bStatus_t GapAdv_loadByBuffer(uint16 len, uint8 *pBuf)
Channel 39.
Definition: gap_advertiser.h:334
bStatus_t GapAdv_destroy(uint8 handle, GapAdv_freeBufferOptions_t freeOptions)
uint8 handle
Advertising handle.
Definition: gap_advertiser.h:465
GapAdv_eventProps_t
GAP Advertising Event Param Properties.
Definition: gap_advertiser.h:280
coded-s8
Definition: gap_advertiser.h:356
Data type returned with GAP_EVT_SCAN_REQ_RECEIVED event.
Definition: gap_advertiser.h:463
Channel 38.
Definition: gap_advertiser.h:333
GapAdv_primaryPHY_t primPhy
GAP_ADV_PARAM_PRIMARY_PHY
Definition: gap_advertiser.h:447
uint8_t sid
GAP_ADV_PARAM_SID
Definition: gap_advertiser.h:449
uint8 status
TODO.
Definition: gap_advertiser.h:457
uint8 numCompAdvEvts
Number of completed advertising events.
Definition: gap_advertiser.h:459
Definition: gap_advertiser.h:183
uint8 availAdvDataLen
How many bytes of the advertising data were sent.
Definition: gap_advertiser.h:474