This module implements the Multi GAP Role.
More...
|
file | multi.h |
| Multi layer interface.
|
|
|
bStatus_t | GAPRole_CancelDiscovery (void) |
| Cancel a device discovery scan. More...
|
|
bStatus_t | gapRole_connUpdate (uint8_t handleFailure, gapRole_updateConnParams_t *pConnParams) |
| Send a connection parameter update to a connected device. More...
|
|
bStatus_t | GAPRole_EstablishLink (uint8_t highDutyCycle, uint8_t whiteList, uint8_t addrTypePeer, uint8_t *peerAddr) |
| Establish a link to a peer device. More...
|
|
bStatus_t | GAPRole_GetParameter (uint16_t param, void *pValue, uint8 connHandle) |
| Get a GAP Role parameter. More...
|
|
bStatus_t | GAPRole_SetParameter (uint16_t param, uint8_t len, void *pValue, uint8 connHandle) |
| Set a GAP Role parameter. More...
|
|
bStatus_t | GAPRole_StartDevice (gapRolesCBs_t *pAppCallbacks, uint8_t *numConns) |
| Initialize the GAP layer. More...
|
|
bStatus_t | GAPRole_StartDiscovery (uint8_t mode, uint8_t activeScan, uint8_t whiteList) |
| Start a device discovery scan. More...
|
|
bStatus_t | GAPRole_TerminateConnection (uint16_t connHandle) |
| Terminates the existing connection. More...
|
|
This module implements the Multi GAP Role.
§ GAPRole_CancelDiscovery()
§ gapRole_connUpdate()
§ GAPRole_EstablishLink()
bStatus_t GAPRole_EstablishLink |
( |
uint8_t |
highDutyCycle, |
|
|
uint8_t |
whiteList, |
|
|
uint8_t |
addrTypePeer, |
|
|
uint8_t * |
peerAddr |
|
) |
| |
§ GAPRole_GetParameter()
bStatus_t GAPRole_GetParameter |
( |
uint16_t |
param, |
|
|
void * |
pValue, |
|
|
uint8 |
connHandle |
|
) |
| |
Get a GAP Role parameter.
- Note
- The "pValue" field must point to a "uint16_t".
- Parameters
-
param | Multi GAPRole Parameters |
pValue | pointer to location to get the value. This is dependent on the parameter ID and will be cast to the appropriate data type (example: data type of uint16_t will be cast to uint16_t pointer). |
connHandle | connection handle |
- Returns
- SUCCESS
-
INVALIDPARAMETER
§ GAPRole_SetParameter()
bStatus_t GAPRole_SetParameter |
( |
uint16_t |
param, |
|
|
uint8_t |
len, |
|
|
void * |
pValue, |
|
|
uint8 |
connHandle |
|
) |
| |
Set a GAP Role parameter.
- Note
- The "len" field must be set to the size of a "uint16_t" and the "pValue" field must point to a "uint16_t".
- Parameters
-
param | Multi GAPRole Parameters |
len | length of data to write |
pValue | pointer to data to write. This is dependent on the parameter ID and will be cast to the appropriate data type (example: data type of uint16_t will be cast to uint16_t pointer). |
connHandle | connection handle |
- Returns
- SUCCESS
-
INVALIDPARAMETER
-
bleInvalidRange : len is invalid for the given param
§ GAPRole_StartDevice()
Initialize the GAP layer.
- Warning
- Only call this function once.
- Parameters
-
pAppCallbacks | gapRolesCBs_t |
numConns | a pointer to the desired number of connections that the application wants is passed in with this parameter. the GAPRole will use this value to negotiate with the amount of connections that the stack supports and place the negotiated value in this memory location for return to the app. |
- Returns
- SUCCESS
-
bleAlreadyInRequestedMode : Device already started.
§ GAPRole_StartDiscovery()
bStatus_t GAPRole_StartDiscovery |
( |
uint8_t |
mode, |
|
|
uint8_t |
activeScan, |
|
|
uint8_t |
whiteList |
|
) |
| |
§ GAPRole_TerminateConnection()
bStatus_t GAPRole_TerminateConnection |
( |
uint16_t |
connHandle | ) |
|