COMMON IO-BLE v1.0.0
Hardware abstraction layer for Bluetooth
 
Loading...
Searching...
No Matches
bt_hal_manager_adapter_classic.h File Reference

BT Classic Adapter provides the interfaces to control Bluetooth classic (BR/EDR) functionalities of local device control and device discovery functionalities. More...

#include "bt_hal_manager.h"

Go to the source code of this file.

Data Structures

struct  BTServiceRecord_t
 Bluetooth SDP service record. More...
 
struct  BTEirManfInfo_t
 manufacturer information EIR data More...
 
struct  BTGadgetEirManfInfo_t
 gadget manufacturer information EIR data More...
 
struct  BTClassicProperty_t
 Classic Device Property. More...
 
struct  BTClassicCallbacks_t
 Bluetooth DM callback structure. More...
 
struct  BTClassicInterface_t
 Represents the standard SAL BT Classic device management interface. More...
 

Typedefs

typedef void(* BTClassicDevicePropertiesCallback_t) (BTStatus_t xStatus, uint32_t ulNumProperties, BTClassicProperty_t *pxProperties)
 Callback invoked in response to BTClassicInterface_t::pxGetClassicDeviceProperty and BTClassicInterface_t::pxSetClassicDeviceProperty.
 
typedef void(* BTClassicRemoteDevicePropertiesCallback_t) (BTStatus_t xStatus, BTBdaddr_t *pxBdAddr, uint32_t ulNumProperties, BTClassicProperty_t *pxProperties)
 Callback invoked in response to BTClassicInterface_t::pxGetRemoteClassicDeviceProperty and BTClassicInterface_t::pxSetRemoteClassicDeviceProperty.
 
typedef void(* BTDeviceFoundCallback_t) (uint32_t ulNumProperties, BTClassicProperty_t *pxProperties)
 Callback invoked in response to device discovery If EIR data is not present, then BD_NAME and RSSI shall be NULL and -1 respectively.
 
typedef void(* BTDiscoveryStateChangedCallback_t) (BTDiscoveryState_t xState)
 Callback invoked in response to BTClassicInterface_t::pxStartDiscovery and BTClassicInterface_t::pxStopDiscovery.
 
typedef void(* BTaclStateChangedCallback_t) (BTStatus_t xStatus, BTBdaddr_t *pxRemoteBdAddr, BTaclState_t xState)
 Callback invoked in response to ACL connection state change.
 

Enumerations

enum  BTScanMode_t { eBTScanModeNone = 0 , eBTScanModeConnectable = 1 , eBTScanModeConnectableDiscoverable = 2 }
 Bluetooth Adapter Visibility Modes. More...
 
enum  BTScanParam_t { eBTPageScanInterval220ms = 0 , eBTPageScanInterval1280ms = 1 }
 Bluetooth scan parameters. More...
 
enum  BTDiscoveryState_t { eBTDiscoveryStopped = 0 , eBTDiscoveryStarted = 1 }
 Bluetooth Adapter Discovery state. More...
 
enum  BTaclState_t { eBTaclStateConnected = 0 , eBTaclStateDisconnected = 1 }
 Bluetooth ACL connection state. More...
 
enum  BTScanType_t { eBTScanTypeStandard = 0 , eBTScanTypeInterlaced = 1 }
 Bluetooth Scan types. More...
 
enum  BTClassicPropertyType_t {
  eBTPropertyBdname = 0x1 , eBTPropertyBdaddr = 0x2 , eBTPropertyTypeOfDevice = 0x3 , eBTPropertyUUIDS = 0x4 ,
  eBTPropertyClassOfDevice = 0x5 , eBTPropertyServiceRecord = 0x6 , eBTPropertyAdapterDiscoveryTimeout = 0x7 , eBTPropertyAdapterScanMode = 0x8 ,
  eBTPropertyEIRManfInfo = 0xFE , eBTPropertyAdapterScanParam = 0x100 , eBTPropertyConnectability = 0x101 , eBTPropertyScanType = 0x102 ,
  eBTPropertyGadgetEIRManfInfo = 0x103
}
 Classic Device Property Types. More...
 

Functions

const BTClassicInterface_tBT_GetClassicAdapter ()
 

Detailed Description

BT Classic Adapter provides the interfaces to control Bluetooth classic (BR/EDR) functionalities of local device control and device discovery functionalities.

USAGE

Function Documentation

◆ BT_GetClassicAdapter()

const BTClassicInterface_t * BT_GetClassicAdapter ( )

Gets the BT classic Adapter interface.

Returns
BTClassicInterface_t if the operation is successful, else NULL.