72 #define GAPROLE_PROFILEROLE 0x300
85 #define GAPROLE_IRK 0x301
98 #define GAPROLE_SRK 0x302
109 #define GAPROLE_SIGNCOUNTER 0x303
123 #define GAPROLE_BD_ADDR 0x304
136 #define GAPROLE_ADVERT_ENABLED 0x305
149 #define GAPROLE_ADVERT_OFF_TIME 0x306
161 #define GAPROLE_ADVERT_DATA 0x307
172 #define GAPROLE_SCAN_RSP_DATA 0x308
183 #define GAPROLE_ADV_EVENT_TYPE 0x309
194 #define GAPROLE_ADV_DIRECT_TYPE 0x30A
205 #define GAPROLE_ADV_DIRECT_ADDR 0x30B
218 #define GAPROLE_ADV_CHANNEL_MAP 0x30C
231 #define GAPROLE_ADV_FILTER_POLICY 0x30D
240 #define GAPROLE_CONNHANDLE 0x30E
251 #define GAPROLE_RSSI_READ_RATE 0x30F
263 #define GAPROLE_PARAM_UPDATE_ENABLE 0x310
274 #define GAPROLE_MIN_CONN_INTERVAL 0x311
285 #define GAPROLE_MAX_CONN_INTERVAL 0x312
296 #define GAPROLE_SLAVE_LATENCY 0x313
307 #define GAPROLE_TIMEOUT_MULTIPLIER 0x314
316 #define GAPROLE_CONN_BD_ADDR 0x315
325 #define GAPROLE_CONN_INTERVAL 0x316
334 #define GAPROLE_CONN_LATENCY 0x317
343 #define GAPROLE_CONN_TIMEOUT 0x318
352 #define GAPROLE_PARAM_UPDATE_REQ 0x319
363 #define GAPROLE_STATE 0x31A
376 #define GAPROLE_ADV_NONCONN_ENABLED 0x31B
385 #define GAPROLE_BD_ADDR_TYPE 0x31C
394 #define GAPROLE_CONN_TERM_REASON 0x31D
421 #define GAPROLE_NO_ACTION 0
422 #define GAPROLE_RESEND_PARAM_UPDATE 1
423 #define GAPROLE_TERMINATE_LINK 2
431 #define GAPROLE_LINK_PARAM_UPDATE_WAIT_REMOTE_PARAMS 0
432 #define GAPROLE_LINK_PARAM_UPDATE_INITIATE_BOTH_PARAMS 1
433 #define GAPROLE_LINK_PARAM_UPDATE_INITIATE_APP_PARAMS 2
434 #define GAPROLE_LINK_PARAM_UPDATE_WAIT_APP_PARAMS 3
435 #define GAPROLE_LINK_PARAM_UPDATE_WAIT_BOTH_PARAMS 4
436 #define GAPROLE_LINK_PARAM_UPDATE_REJECT_REQUEST 5
437 #define GAPROLE_LINK_PARAM_UPDATE_NUM_OPTIONS 6
463 typedef void (*gapRolesParamUpdateCB_t)(uint16_t connInterval,
464 uint16_t connSlaveLatency,
465 uint16_t connTimeout);
574 uint16_t maxConnInterval,
575 uint16_t latency, uint16_t connTimeout,
576 uint8_t handleFailure);
595 extern void GAPRole_createTask(
void);
void GAPRole_RegisterAppCBs(gapRolesParamUpdateCB_t *pParamUpdateCB)
Register application's callbacks.
Waiting to be started.
Definition: peripheral.h:405
In a connection + advertising.
Definition: peripheral.h:412
Error occurred - invalid state.
Definition: peripheral.h:413
bStatus_t GAPRole_StartDevice(gapRolesCBs_t *pAppCallbacks)
Initialize the GAP layer.
In a connection.
Definition: peripheral.h:411
Device just timed out from a connection but is not yet advertising, is in waiting period before adver...
Definition: peripheral.h:410
Device is started but not advertising, is in waiting period before advertising again.
Definition: peripheral.h:409
bStatus_t GAPRole_TerminateConnection(void)
Terminates the existing connection.
void(* gapRolesStateNotify_t)(gaprole_States_t newState)
State Change Callback Type.
Definition: peripheral.h:474
bStatus_t GAPRole_SetParameter(uint16_t param, uint8_t len, void *pValue)
Set a GAP Role parameter.
bStatus_t GAPRole_GetParameter(uint16_t param, void *pValue)
Get a GAP Role parameter.
Peripheral GAPRole Callback structure.
Definition: peripheral.h:482
bStatus_t GAPRole_SendUpdateParam(uint16_t minConnInterval, uint16_t maxConnInterval, uint16_t latency, uint16_t connTimeout, uint8_t handleFailure)
Update the parameters of an existing connection.
gaprole_States_t
GAP Peripheral Role States.
Definition: peripheral.h:403
Currently Advertising.
Definition: peripheral.h:407
Currently using non-connectable Advertising.
Definition: peripheral.h:408
Status_t bStatus_t
BLE Generic Status return.
Definition: bcomdef.h:243
Started but not advertising.
Definition: peripheral.h:406
gapRolesStateNotify_t pfnStateChange
Whenever the device changes state.
Definition: peripheral.h:484