FreeRTOS: BLE
BLE
Return to main page ↑
Function pointer types

Function pointer types of the BLE library. More...

Typedefs

typedef void(* IotBleAttributeEventCallback_t) (IotBleAttributeEvent_t *pEventParam)
 Callback called when a request on a attribute is made by the remote device. More...
 
typedef void(* IotBle_MtuChangedCallback_t) (uint16_t connId, uint16_t mtu)
 Callback invoked when the MTU for a given connection changes. More...
 
typedef void(* IotBle_ConnectionCallback_t) (BTStatus_t status, uint16_t connId, bool connected, BTBdaddr_t *pRemoteBdAddr)
 Callback indicating that a remote device has connected or been disconnected. More...
 
typedef void(* IotBle_StartAdvCallback_t) (BTStatus_t status)
 Callback indicating the status of start advertisement operation. Invoked on BLE_StartAdv. More...
 
typedef void(* IotBle_StopAdvCallback_t) (BTStatus_t status)
 Callback indicating the status of stop advertisement operation. Invoked on BLE_StopAdv. More...
 
typedef void(* IotBle_ConnParameterUpdateRequestCallback_t) (BTStatus_t status, const BTBdaddr_t *pRemoteBdAddr, IotBleConnectionParam_t *pConnectionParam, uint32_t connInterval)
 Callback invoked on BLE_ConnParameterUpdateRequest from remote device. More...
 
typedef void(* IotBle_PairingStateChanged_t) (BTStatus_t status, BTBdaddr_t *pRemoteBdAddr, BTBondState_t bondstate, BTSecurityLevel_t securityLevel, BTAuthFailureReason_t reason)
 Callback invoked when pairing state is changed. More...
 
typedef void(* IotBle_NumericComparisonCallback_t) (BTBdaddr_t *pRemoteBdAddr, uint32_t passKey)
 Callback invoked on pairing request from remote device. More...
 

Detailed Description

Function pointer types of the BLE library.

Typedef Documentation

◆ IotBleAttributeEventCallback_t

typedef void(* IotBleAttributeEventCallback_t) (IotBleAttributeEvent_t *pEventParam)

Callback called when a request on a attribute is made by the remote device.

Parameters
[in]pAttributePointer to the attribute being accessed.
[in]pEventParamPointer to the event data.

◆ IotBle_MtuChangedCallback_t

typedef void(* IotBle_MtuChangedCallback_t) (uint16_t connId, uint16_t mtu)

Callback invoked when the MTU for a given connection changes.

Parameters
[in]connIdConnection ID
[in]mtuEstablished MTU size.

◆ IotBle_ConnectionCallback_t

typedef void(* IotBle_ConnectionCallback_t) (BTStatus_t status, uint16_t connId, bool connected, BTBdaddr_t *pRemoteBdAddr)

Callback indicating that a remote device has connected or been disconnected.

Parameters
[in]statusReturns eBTStatusSuccess if operation succeeded.
[in]connIdConnection ID.
[in]connectedFlag set to true if device is connected.
[in]pRemoteBdAddrRemote device address.

◆ IotBle_StartAdvCallback_t

typedef void(* IotBle_StartAdvCallback_t) (BTStatus_t status)

Callback indicating the status of start advertisement operation. Invoked on BLE_StartAdv.

Parameters
[in]statusReturns eBTStatusSuccess if operation succeeded.

◆ IotBle_StopAdvCallback_t

typedef void(* IotBle_StopAdvCallback_t) (BTStatus_t status)

Callback indicating the status of stop advertisement operation. Invoked on BLE_StopAdv.

Parameters
[in]statusReturns eBTStatusSuccess if operation succeeded.

◆ IotBle_ConnParameterUpdateRequestCallback_t

typedef void( * IotBle_ConnParameterUpdateRequestCallback_t) (BTStatus_t status, const BTBdaddr_t *pRemoteBdAddr, IotBleConnectionParam_t *pConnectionParam, uint32_t connInterval)

Callback invoked on BLE_ConnParameterUpdateRequest from remote device.

Parameters
[in]statusReturns eBTStatusSuccess if operation succeeded.
[in]pRemoteBdAddrAddress of the Remote device
[in]pConnectionParamConnection parameters.
[in]connIntervalEstablished connection interval.

◆ IotBle_PairingStateChanged_t

typedef void(* IotBle_PairingStateChanged_t) (BTStatus_t status, BTBdaddr_t *pRemoteBdAddr, BTBondState_t bondstate, BTSecurityLevel_t securityLevel, BTAuthFailureReason_t reason)

Callback invoked when pairing state is changed.

Parameters
[in]statusReturns eBTStatusSuccess if operation succeeded.
[in]pRemoteBdAddrAddress of the remote device.
[in]bondStateBond state value.
[in]securityLevelSecurity level (mode 1, level 1, 2 ,3 ,4).
[in]reasonReason for failing to authenticate.

◆ IotBle_NumericComparisonCallback_t

typedef void( * IotBle_NumericComparisonCallback_t) (BTBdaddr_t *pRemoteBdAddr, uint32_t passKey)

Callback invoked on pairing request from remote device.

Numeric comparison event.

Parameters
[in]pRemoteBdAddrAddress of the remote device.