Callbacks for Bluetooth Device Management Interface. More...
Typedefs | |
typedef void(* | BTDeviceStateChangedCallback_t) (BTState_t xState) |
Bluetooth state change Callback. Invoked on pxEnable/pxDisable. | |
typedef void(* | BTDevicePropertiesCallback_t) (BTStatus_t xStatus, uint32_t ulNumProperties, BTProperty_t *pxProperties) |
GET/SET local device Properties callback. | |
typedef void(* | BTRemoteDevicePropertiesCallback_t) (BTStatus_t xStatus, BTBdaddr_t *pxBdAddr, uint32_t ulNumProperties, BTProperty_t *pxProperties) |
GET/SET Remote Device Properties callback. Invoked on pxGetRemoteDeviceProperty, pxSetRemoteDeviceProperty, pxGetAllRemoteDeviceProperties. | |
typedef void(* | BTPinRequestCallback_t) (BTBdaddr_t *pxRemoteBdAddr, BTBdname_t *pxBdName, uint32_t ulCod, uint8_t ucMin16Digit) |
Callback Invoked on Pin Request. | |
typedef void(* | BTSspRequestCallback_t) (BTBdaddr_t *pxRemoteBdAddr, BTBdname_t *pxRemoteBdName, uint32_t ulCod, BTSspVariant_t xPairingVariant, uint32_t ulPassKey) |
Callback Invoked on SSP event. | |
typedef void(* | BTPairingStateChangedCallback_t) (BTStatus_t xStatus, BTBdaddr_t *pxRemoteBdAddr, BTBondState_t xState, BTSecurityLevel_t xSecurityLevel, BTAuthFailureReason_t xReason) |
Bluetooth pairing state changed event callback. Invoked in response to create_bond, cancel_bond or remove_bond reason field is valid only in case of xStatus == eBTStatusFail. Invoked on pairing event. | |
typedef void(* | BTEnergyInfoCallback_t) (BTActivityEnergyInfo *pxEnergyInfo, BTUidTraffic_t *pxUidData) |
Callback invoked on pxReadEnergyInfo. Invoked on pxReadEnergyInfo. | |
typedef void(* | BTDutModeRecvCallback_t) (uint16_t usOpcode, uint8_t *pucBuf, size_t xLen) |
Bluetooth Test Mode Callback. Invoked when remote device uses pxDutModeSend. | |
typedef void(* | BTLeTestModeCallback_t) (BTStatus_t xStatus, uint16_t usNumPackets) |
LE Test mode callbacks. Invoked on pxLeTestMode. | |
typedef void(* | BTReadRssiCallback_t) (BTBdaddr_t *pxBda, uint32_t ulRssi, BTStatus_t xStatus) |
Read RSSI Callback. Invoked on pxReadRssi. | |
typedef void(* | BTSlaveSecurityRequestCallBack_t) (BTBdaddr_t *pxBda, BTSecurityLevel_t xSecurityLevel, bool bBonding) |
Security request callback. Invoked on master from remote slave security request event. | |
typedef void(* | BTTxPowerCallback_t) (BTBdaddr_t *pxBda, BTTransport_t xTransport, uint8_t ucTxPowerValue, BTStatus_t xStatus) |
TX power Callback. Invoked on pxGetTxpower. | |
typedef void(* | BTAclStateChangedCallback_t) (BTStatus_t xStatus, const BTBdaddr_t *pxRemoteBdAddr, BTAclState_t xState, BTTransport_t xTransport, BTAclDisconnectReason_t xReason) |
Callback invoked in response to ACL connection state change. | |
Callbacks for Bluetooth Device Management Interface.
typedef void(* BTDeviceStateChangedCallback_t) (BTState_t xState) |
Bluetooth state change Callback. Invoked on pxEnable/pxDisable.
[in] | xState | Device event, triggered on state change. (switched on or off). |
typedef void(* BTDevicePropertiesCallback_t) (BTStatus_t xStatus, uint32_t ulNumProperties, BTProperty_t *pxProperties) |
GET/SET local device Properties callback.
[in] | xStatus | Returns eBTStatusSuccess if operation succeeded. |
[in] | ulNumProperties | Number of properties returned. |
[in] | pxProperties | Array of properties. |
typedef void(* BTRemoteDevicePropertiesCallback_t) (BTStatus_t xStatus, BTBdaddr_t *pxBdAddr, uint32_t ulNumProperties, BTProperty_t *pxProperties) |
GET/SET Remote Device Properties callback. Invoked on pxGetRemoteDeviceProperty, pxSetRemoteDeviceProperty, pxGetAllRemoteDeviceProperties.
[in] | xStatus | Returns eBTStatusSuccess if operation succeeded. |
[in] | pxBdAddr | Address of the Remote device. |
[in] | ulNumProperties | Number of properties returned. |
[in] | pxProperties | Array of properties. |
typedef void(* BTPinRequestCallback_t) (BTBdaddr_t *pxRemoteBdAddr, BTBdname_t *pxBdName, uint32_t ulCod, uint8_t ucMin16Digit) |
Callback Invoked on Pin Request.
[in] | pxRemoteBdAddr | remote Device address |
[in] | pxBdName | remote Device name |
[in] | ulCod | cod |
[in] | ucMin16Digit | pin Bluetooth Legacy PinKey Request callback |
typedef void(* BTSspRequestCallback_t) (BTBdaddr_t *pxRemoteBdAddr, BTBdname_t *pxRemoteBdName, uint32_t ulCod, BTSspVariant_t xPairingVariant, uint32_t ulPassKey) |
Callback Invoked on SSP event.
Bluetooth SSP Request callback - Just Works & Numeric Comparison pass_key - Shall be 0 for eBTSspPairingVariantConsent & eBTSspPairingPasskeyEntry.
[in] | pxRemoteBdAddr | Remote device Address. |
[in] | pxRemoteBdName | Remote device Name (NULL if not available. |
[in] | ulCod | Class Of Device. |
[in] | xPairingVariant | Paring variant. |
[in] | ulPassKey | Pass Key. |
typedef void(* BTPairingStateChangedCallback_t) (BTStatus_t xStatus, BTBdaddr_t *pxRemoteBdAddr, BTBondState_t xState, BTSecurityLevel_t xSecurityLevel, BTAuthFailureReason_t xReason) |
Bluetooth pairing state changed event callback. Invoked in response to create_bond, cancel_bond or remove_bond reason field is valid only in case of xStatus == eBTStatusFail. Invoked on pairing event.
[in] | xStatus | Returns eBTStatusSuccess if operation succeeded. |
[in] | pxRemoteBdAddr | Remote device Address. |
[in] | xState | Bonded state value. |
[in] | xReason | Authentication failure status. |
[in] | xSecurityLevel | Security level (mode 1, level 1, 2 ,3 ,4). |
typedef void(* BTEnergyInfoCallback_t) (BTActivityEnergyInfo *pxEnergyInfo, BTUidTraffic_t *pxUidData) |
Callback invoked on pxReadEnergyInfo. Invoked on pxReadEnergyInfo.
Ctrl_state-Current controller state-Active-1,scan-2,or idle-3 state as defined by HCI spec. If the ctrl_state value is 0, it means the API call failed Time values-In milliseconds as returned by the controller Energy used-Value as returned by the controller Status-Provides the status of the read_energy_info API call uid_data provides an array of BTUidTraffic_t, where the array is terminated by an element withapp_uid set to -1.
[in] | pxEnergyInfo | Energy information. |
[in] | pxUidData | UID data traffic. |
typedef void(* BTDutModeRecvCallback_t) (uint16_t usOpcode, uint8_t *pucBuf, size_t xLen) |
Bluetooth Test Mode Callback. Invoked when remote device uses pxDutModeSend.
[in] | usOpcode | |
[in] | pucBuf | |
[in] | xLen |
typedef void(* BTLeTestModeCallback_t) (BTStatus_t xStatus, uint16_t usNumPackets) |
LE Test mode callbacks. Invoked on pxLeTestMode.
[in] | xStatus | Returns eBTStatusSuccess if operation succeeded. |
[in] | usNumPackets |
typedef void(* BTReadRssiCallback_t) (BTBdaddr_t *pxBda, uint32_t ulRssi, BTStatus_t xStatus) |
Read RSSI Callback. Invoked on pxReadRssi.
[in] | pxBda | Remote device address. |
[in] | ulRssi | |
[in] | xStatus | Returns eBTStatusSuccess if operation succeeded. |
typedef void(* BTSlaveSecurityRequestCallBack_t) (BTBdaddr_t *pxBda, BTSecurityLevel_t xSecurityLevel, bool bBonding) |
Security request callback. Invoked on master from remote slave security request event.
[in] | pxBda | Remote device address. |
[in] | xSecurityLevel | Request security |
[in] | bBonding | True is bonding is requested |
typedef void(* BTTxPowerCallback_t) (BTBdaddr_t *pxBda, BTTransport_t xTransport, uint8_t ucTxPowerValue, BTStatus_t xStatus) |
TX power Callback. Invoked on pxGetTxpower.
[in] | pxBda | Remote device address. |
[in] | xTransport | Specify if BLE and BT classic is being used. |
[in] | ucTxPowerValue | Tx Power value. |
[in] | xStatus | Returns eBTStatusSuccess if operation succeeded. |
typedef void(* BTAclStateChangedCallback_t) (BTStatus_t xStatus, const BTBdaddr_t *pxRemoteBdAddr, BTAclState_t xState, BTTransport_t xTransport, BTAclDisconnectReason_t xReason) |
Callback invoked in response to ACL connection state change.
[in] | xStatus | Returns eBTStatusSuccess if operation succeeded. |
[in] | pxRemoteBdAddr | Address of the remote device. |
[in] | xState | ACL connection state. |
[in] | xTransport | Transport type as in BTTransport_t. If transport type is unknown, use BTTransportAuto. |
[in] | xReason | Contains ACL disconnect reason when xState is eBTaclStateDisconnected. |