53 #define GAPROLE_PROFILEROLE 0x300 66 #define GAPROLE_IRK 0x301 79 #define GAPROLE_SRK 0x302 90 #define GAPROLE_SIGNCOUNTER 0x303 104 #define GAPROLE_BD_ADDR 0x304 117 #define GAPROLE_ADVERT_ENABLED 0x305 130 #define GAPROLE_ADVERT_OFF_TIME 0x306 142 #define GAPROLE_ADVERT_DATA 0x307 153 #define GAPROLE_SCAN_RSP_DATA 0x308 164 #define GAPROLE_ADV_EVENT_TYPE 0x309 175 #define GAPROLE_ADV_DIRECT_TYPE 0x30A 186 #define GAPROLE_ADV_DIRECT_ADDR 0x30B 199 #define GAPROLE_ADV_CHANNEL_MAP 0x30C 212 #define GAPROLE_ADV_FILTER_POLICY 0x30D 221 #define GAPROLE_CONNHANDLE 0x30E 232 #define GAPROLE_RSSI_READ_RATE 0x30F 244 #define GAPROLE_PARAM_UPDATE_ENABLE 0x310 255 #define GAPROLE_MIN_CONN_INTERVAL 0x311 266 #define GAPROLE_MAX_CONN_INTERVAL 0x312 277 #define GAPROLE_SLAVE_LATENCY 0x313 288 #define GAPROLE_TIMEOUT_MULTIPLIER 0x314 297 #define GAPROLE_CONN_BD_ADDR 0x315 306 #define GAPROLE_CONN_INTERVAL 0x316 315 #define GAPROLE_CONN_LATENCY 0x317 324 #define GAPROLE_CONN_TIMEOUT 0x318 333 #define GAPROLE_PARAM_UPDATE_REQ 0x319 344 #define GAPROLE_STATE 0x31A 357 #define GAPROLE_ADV_NONCONN_ENABLED 0x31B 366 #define GAPROLE_BD_ADDR_TYPE 0x31C 375 #define GAPROLE_CONN_TERM_REASON 0x31D 402 #define GAPROLE_NO_ACTION 0 403 #define GAPROLE_RESEND_PARAM_UPDATE 1 404 #define GAPROLE_TERMINATE_LINK 2 412 #define GAPROLE_LINK_PARAM_UPDATE_WAIT_REMOTE_PARAMS 0 413 #define GAPROLE_LINK_PARAM_UPDATE_INITIATE_BOTH_PARAMS 1 414 #define GAPROLE_LINK_PARAM_UPDATE_INITIATE_APP_PARAMS 2 415 #define GAPROLE_LINK_PARAM_UPDATE_WAIT_APP_PARAMS 3 416 #define GAPROLE_LINK_PARAM_UPDATE_WAIT_BOTH_PARAMS 4 417 #define GAPROLE_LINK_PARAM_UPDATE_REJECT_REQUEST 5 418 #define GAPROLE_LINK_PARAM_UPDATE_NUM_OPTIONS 6 445 uint16_t connSlaveLatency,
446 uint16_t connTimeout);
555 uint16_t maxConnInterval,
556 uint16_t latency, uint16_t connTimeout,
557 uint8_t handleFailure);
576 extern void GAPRole_createTask(
void);
void GAPRole_RegisterAppCBs(gapRolesParamUpdateCB_t *pParamUpdateCB)
Register application's callbacks.
Waiting to be started.
Definition: peripheral.h:386
In a connection + advertising.
Definition: peripheral.h:393
Error occurred - invalid state.
Definition: peripheral.h:394
bStatus_t GAPRole_StartDevice(gapRolesCBs_t *pAppCallbacks)
Initialize the GAP layer.
In a connection.
Definition: peripheral.h:392
Device just timed out from a connection but is not yet advertising, is in waiting period before adver...
Definition: peripheral.h:391
Device is started but not advertising, is in waiting period before advertising again.
Definition: peripheral.h:390
bStatus_t GAPRole_TerminateConnection(void)
Terminates the existing connection.
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.
void(* gapRolesParamUpdateCB_t)(uint16_t connInterval, uint16_t connSlaveLatency, uint16_t connTimeout)
Callback when the connection parameters are updated.
Definition: peripheral.h:444
Multi GAPRole Callback structure.
Definition: multi.h:410
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:384
Currently Advertising.
Definition: peripheral.h:388
Currently using non-connectable Advertising.
Definition: peripheral.h:389
Status_t bStatus_t
BLE Generic Status return.
Definition: bcomdef.h:227
Started but not advertising.
Definition: peripheral.h:387
gapRolesStateNotify_t pfnStateChange
Whenever the device changes state.
Definition: peripheral.h:465
void(* gapRolesStateNotify_t)(gaprole_States_t newState)
State Change Callback Type.
Definition: peripheral.h:455