RDK Documentation (Open Sourced RDK Components)
|
This file provides the data types and API(s) used by the bluetooth manager.
Data Structures | |
struct | _BTRMGR_MediaTrackInfo_t |
Represents the media track info. More... | |
struct | _BTRMGR_MediaPositionInfo_t |
Represents the media position info. More... | |
struct | _BTRMGR_LeUUID_t |
struct | _BTRMGR_DeviceService_t |
Represents the supported service of the device. More... | |
struct | _BTRMGR_DeviceServiceList_t |
Represents device services list. More... | |
union | _BTRMGR_DeviceServiceList_t.__unnamed__ |
struct | _BTRMGR_DeviceAdServiceData_t |
struct | _BTRMGR_DevicesProperty_t |
Represents the property of the device. More... | |
struct | _BTRMGR_ConnectedDevice_t |
Represents the details of device connected. More... | |
struct | _BTRMGR_PairedDevices_t |
Represents the paired devices information. More... | |
struct | _BTRMGR_DiscoveredDevices_t |
Represents the discovered device's details. More... | |
struct | _BTRMGR_ConnectedDevicesList_t |
Represents the connected devices list. More... | |
struct | _BTRMGR_PairedDevicesList_t |
Represents the list of paired devices. More... | |
struct | _BTRMGR_DiscoveredDevicesList_t |
Represents the list of scanned devices. More... | |
struct | _BTRMGR_ExternalDevice_t |
Represents the details of external devices connected. More... | |
struct | _BTRMGR_MediaElementInfo_t |
Represents Media Element details. More... | |
struct | _BTRMGR_MediaElementListInfo_t |
Represents Media Element List. More... | |
struct | _BTRMGR_MediaDeviceStatus_t |
Represents Media Element List. More... | |
struct | _BTRMGR_MediaInfo_t |
Represents the media info. More... | |
union | _BTRMGR_MediaInfo_t.__unnamed__ |
struct | _BTRMGR_DeviceOpInfo_t |
Represents the notification data. More... | |
union | _BTRMGR_DeviceOpInfo_t.__unnamed__ |
struct | _BTRMGR_EventResponse_t |
Represents the event response. More... | |
union | _BTRMGR_EventResponse_t.__unnamed__ |
struct | _BTRMGR_UUID_t |
struct | _BTRMGR_DiscoveryFilterHandle_t |
struct | _BTRMGR_LeCustomAdvertisement_t |
Structure for the custom advertisement payload. More... | |
Typedefs | |
typedef unsigned long long int | BTRMgrDeviceHandle |
typedef unsigned long long int | BTRMgrMediaElementHandle |
typedef enum _BTRMGR_Result_t | BTRMGR_Result_t |
Represents the status of the operation. | |
typedef enum _BTRMGR_Events_t | BTRMGR_Events_t |
Represents the event status. | |
typedef enum _BTRMGR_DeviceType_t | BTRMGR_DeviceType_t |
Represents the bluetooth device types. | |
typedef enum _BTRMGR_StreamOut_Type_t | BTRMGR_StreamOut_Type_t |
Represents the stream output types. | |
typedef enum _BTRMGR_DeviceOperationType_t | BTRMGR_DeviceOperationType_t |
Represents the operation type for bluetooth device. | |
typedef enum _BTRMGR_DevicePower_t | BTRMGR_DevicePower_t |
Represents the bluetooth power states. | |
typedef enum _BTRMGR_RSSIValue_type_t | BTRMGR_RSSIValue_t |
Represents the bluetooth signal strength. | |
typedef enum _BTRMGR_DiscoveryStatus_t | BTRMGR_DiscoveryStatus_t |
Represents the bluetooth Discovery Status. | |
typedef enum _BTRMGR_MediaControlCommand_t | BTRMGR_MediaControlCommand_t |
Represents the commands to control the media files. | |
typedef enum _BTRMGR_LeProperty_t | BTRMGR_LeProperty_t |
Represents LE properties. | |
typedef enum _BTRMGR_LeOp_t | BTRMGR_LeOp_t |
Represents the Low energy operations. | |
typedef enum _BTRMGR_GattCharFlags_t | BTRMGR_GattCharFlags_t |
Represents Gatt Characteristic Flags. | |
typedef enum _BTRMGR_ScanFilter_t | BTRMGR_ScanFilter_t |
typedef enum _BTRMGR_MediaElementType_t | BTRMGR_MediaElementType_t |
Represents Media Element Types. | |
typedef struct _BTRMGR_MediaTrackInfo_t | BTRMGR_MediaTrackInfo_t |
Represents the media track info. | |
typedef struct _BTRMGR_MediaPositionInfo_t | BTRMGR_MediaPositionInfo_t |
Represents the media position info. | |
typedef struct _BTRMGR_LeUUID_t | BTRMGR_LeUUID_t |
typedef struct _BTRMGR_DeviceService_t | BTRMGR_DeviceService_t |
Represents the supported service of the device. | |
typedef struct _BTRMGR_DeviceServiceList_t | BTRMGR_DeviceServiceList_t |
Represents device services list. | |
typedef struct _BTRMGR_DeviceAdServiceData_t | BTRMGR_DeviceAdServiceData_t |
typedef struct _BTRMGR_DevicesProperty_t | BTRMGR_DevicesProperty_t |
Represents the property of the device. | |
typedef struct _BTRMGR_ConnectedDevice_t | BTRMGR_ConnectedDevice_t |
Represents the details of device connected. | |
typedef struct _BTRMGR_PairedDevices_t | BTRMGR_PairedDevices_t |
Represents the paired devices information. | |
typedef struct _BTRMGR_DiscoveredDevices_t | BTRMGR_DiscoveredDevices_t |
Represents the discovered device's details. | |
typedef struct _BTRMGR_ConnectedDevicesList_t | BTRMGR_ConnectedDevicesList_t |
Represents the connected devices list. | |
typedef struct _BTRMGR_PairedDevicesList_t | BTRMGR_PairedDevicesList_t |
Represents the list of paired devices. | |
typedef struct _BTRMGR_DiscoveredDevicesList_t | BTRMGR_DiscoveredDevicesList_t |
Represents the list of scanned devices. | |
typedef struct _BTRMGR_ExternalDevice_t | BTRMGR_ExternalDevice_t |
Represents the details of external devices connected. | |
typedef struct _BTRMGR_MediaElementInfo_t | BTRMGR_MediaElementInfo_t |
Represents Media Element details. | |
typedef struct _BTRMGR_MediaElementListInfo_t | BTRMGR_MediaElementListInfo_t |
Represents Media Element List. | |
typedef struct _BTRMGR_MediaDeviceStatus_t | BTRMGR_MediaDeviceStatus_t |
Represents Media Element List. | |
typedef struct _BTRMGR_MediaInfo_t | BTRMGR_MediaInfo_t |
Represents the media info. | |
typedef struct _BTRMGR_DeviceOpInfo_t | BTRMGR_DeviceOpInfo_t |
Represents the notification data. | |
typedef struct _BTRMGR_EventMessage_t | BTRMGR_EventMessage_t |
Represents the event message info. | |
typedef struct _BTRMGR_EventResponse_t | BTRMGR_EventResponse_t |
Represents the event response. | |
typedef struct _BTRMGR_UUID_t | BTRMGR_UUID_t |
typedef struct _BTRMGR_DiscoveryFilterHandle_t | BTRMGR_DiscoveryFilterHandle_t |
typedef struct _BTRMGR_LeCustomAdvertisement_t | BTRMGR_LeCustomAdvertisement_t |
Structure for the custom advertisement payload. | |
typedef BTRMGR_Result_t(* | BTRMGR_EventCallback) (BTRMGR_EventMessage_t astEventMessage) |
Enumerations | |
enum | _BTRMGR_Result_t |
Represents the status of the operation. | |
enum | _BTRMGR_Events_t |
Represents the event status. | |
enum | _BTRMGR_DeviceType_t |
Represents the bluetooth device types. | |
enum | _BTRMGR_StreamOut_Type_t |
Represents the stream output types. | |
enum | _BTRMGR_DeviceOperationType_t |
Represents the operation type for bluetooth device. | |
enum | _BTRMGR_DevicePower_t |
Represents the bluetooth power states. | |
enum | _BTRMGR_RSSIValue_type_t |
Represents the bluetooth signal strength. More... | |
enum | _BTRMGR_DiscoveryStatus_t |
Represents the bluetooth Discovery Status. | |
enum | _BTRMGR_MediaControlCommand_t |
Represents the commands to control the media files. | |
enum | _BTRMGR_LeProperty_t |
Represents LE properties. | |
enum | _BTRMGR_LeOp_t |
Represents the Low energy operations. | |
enum | _BTRMGR_GattCharFlags_t |
Represents Gatt Characteristic Flags. | |
enum | _BTRMGR_ScanFilter_t |
enum | _BTRMGR_MediaElementType_t |
Represents Media Element Types. | |
Functions | |
BTRMGR_Result_t | BTRMGR_Init (void) |
This API initializes the bluetooth manager. More... | |
BTRMGR_Result_t | BTRMGR_DeInit (void) |
This API invokes the deinit function of bluetooth core and persistant interface module. More... | |
BTRMGR_Result_t | BTRMGR_RegisterForCallbacks (const char *apcProcessName) |
This API registers all the IARM call backs for BTRMGR and Third party Clients. More... | |
BTRMGR_Result_t | BTRMGR_UnRegisterFromCallbacks (const char *apcProcessName) |
This API Unregisters all the IARM call backs for BTRMGR and Third party Clients. More... | |
BTRMGR_Result_t | BTRMGR_GetNumberOfAdapters (unsigned char *pNumOfAdapters) |
This API returns the number of bluetooth adapters available. More... | |
BTRMGR_Result_t | BTRMGR_ResetAdapter (unsigned char aui8AdapterIdx) |
This API is designed to reset the bluetooth adapter. More... | |
BTRMGR_Result_t | BTRMGR_SetAdapterName (unsigned char aui8AdapterIdx, const char *pNameOfAdapter) |
This API is used to set the new name to the bluetooth adapter. More... | |
BTRMGR_Result_t | BTRMGR_GetAdapterName (unsigned char aui8AdapterIdx, char *pNameOfAdapter) |
This API fetches the bluetooth adapter name. More... | |
BTRMGR_Result_t | BTRMGR_SetAdapterPowerStatus (unsigned char aui8AdapterIdx, unsigned char power_status) |
This API sets the bluetooth adapter power to ON/OFF. More... | |
BTRMGR_Result_t | BTRMGR_GetAdapterPowerStatus (unsigned char aui8AdapterIdx, unsigned char *pPowerStatus) |
This API fetches the power status, either 0 or 1. More... | |
BTRMGR_Result_t | BTRMGR_SetAdapterDiscoverable (unsigned char aui8AdapterIdx, unsigned char discoverable, int timeout) |
This API is to make the adapter discoverable until the given timeout. More... | |
BTRMGR_Result_t | BTRMGR_IsAdapterDiscoverable (unsigned char aui8AdapterIdx, unsigned char *pDiscoverable) |
This API checks the adapter is discoverable or not. More... | |
BTRMGR_Result_t | BTRMGR_StartDeviceDiscovery (unsigned char aui8AdapterIdx, BTRMGR_DeviceOperationType_t aenBTRMgrDevOpT) |
This API initiates the scanning process. More... | |
BTRMGR_Result_t | BTRMGR_StopDeviceDiscovery (unsigned char aui8AdapterIdx, BTRMGR_DeviceOperationType_t aenBTRMgrDevOpT) |
This API terminates the scanning process. More... | |
BTRMGR_Result_t | BTRMGR_GetDiscoveryStatus (unsigned char aui8AdapterIdx, BTRMGR_DiscoveryStatus_t *aeDiscoveryStatus, BTRMGR_DeviceOperationType_t *aenBTRMgrDevOpT) |
This API gives the discovery status. More... | |
BTRMGR_Result_t | BTRMGR_GetDiscoveredDevices (unsigned char aui8AdapterIdx, BTRMGR_DiscoveredDevicesList_t *pDiscoveredDevices) |
This API fetches the list of devices scanned. More... | |
BTRMGR_Result_t | BTRMGR_PairDevice (unsigned char aui8AdapterIdx, BTRMgrDeviceHandle ahBTRMgrDevHdl) |
This API is used to pair the device that you wish to pair. More... | |
BTRMGR_Result_t | BTRMGR_UnpairDevice (unsigned char aui8AdapterIdx, BTRMgrDeviceHandle ahBTRMgrDevHdl) |
This API is used to remove the pairing information of the device selected. More... | |
BTRMGR_Result_t | BTRMGR_GetPairedDevices (unsigned char aui8AdapterIdx, BTRMGR_PairedDevicesList_t *pPairedDevices) |
This API returns the list of devices paired. More... | |
BTRMGR_Result_t | BTRMGR_ConnectToDevice (unsigned char aui8AdapterIdx, BTRMgrDeviceHandle ahBTRMgrDevHdl, BTRMGR_DeviceOperationType_t connectAs) |
This API connects the device as audio sink/headset/audio src based on the device type specified. More... | |
BTRMGR_Result_t | BTRMGR_DisconnectFromDevice (unsigned char aui8AdapterIdx, BTRMgrDeviceHandle ahBTRMgrDevHdl) |
This API terminates the current connection. More... | |
BTRMGR_Result_t | BTRMGR_GetConnectedDevices (unsigned char aui8AdapterIdx, BTRMGR_ConnectedDevicesList_t *pConnectedDevices) |
This API returns the list of devices connected. More... | |
BTRMGR_Result_t | BTRMGR_GetDeviceProperties (unsigned char aui8AdapterIdx, BTRMgrDeviceHandle ahBTRMgrDevHdl, BTRMGR_DevicesProperty_t *pDeviceProperty) |
This API returns the device information that includes the device name, mac address, RSSI value etc. More... | |
BTRMGR_Result_t | BTRMGR_StartAudioStreamingOut_StartUp (unsigned char aui8AdapterIdx, BTRMGR_DeviceOperationType_t aenBTRMgrDevConT) |
This API initates the streaming from the device with default operation type. More... | |
BTRMGR_Result_t | BTRMGR_StartAudioStreamingOut (unsigned char aui8AdapterIdx, BTRMgrDeviceHandle ahBTRMgrDevHdl, BTRMGR_DeviceOperationType_t connectAs) |
This API initates the streaming from the device with the selected operation type. More... | |
BTRMGR_Result_t | BTRMGR_StopAudioStreamingOut (unsigned char aui8AdapterIdx, BTRMgrDeviceHandle ahBTRMgrDevHdl) |
This API terminates the streaming from the device. More... | |
BTRMGR_Result_t | BTRMGR_IsAudioStreamingOut (unsigned char aui8AdapterIdx, unsigned char *pStreamingStatus) |
This API returns the stream out status. More... | |
BTRMGR_Result_t | BTRMGR_SetAudioStreamingOutType (unsigned char aui8AdapterIdx, BTRMGR_StreamOut_Type_t type) |
This API is to set the audio type as primary or secondary. More... | |
BTRMGR_Result_t | BTRMGR_StartAudioStreamingIn (unsigned char aui8AdapterIdx, BTRMgrDeviceHandle ahBTRMgrDevHdl, BTRMGR_DeviceOperationType_t connectAs) |
This API starts the audio streaming. More... | |
BTRMGR_Result_t | BTRMGR_StopAudioStreamingIn (unsigned char aui8AdapterIdx, BTRMgrDeviceHandle ahBTRMgrDevHdl) |
This API termines the audio streaming. More... | |
BTRMGR_Result_t | BTRMGR_IsAudioStreamingIn (unsigned char aui8AdapterIdx, unsigned char *pStreamingStatus) |
This API returns the audio streaming status. More... | |
BTRMGR_Result_t | BTRMGR_SetEventResponse (unsigned char aui8AdapterIdx, BTRMGR_EventResponse_t *apstBTRMgrEvtRsp) |
This API handles the events received. More... | |
BTRMGR_Result_t | BTRMGR_MediaControl (unsigned char aui8AdapterIdx, BTRMgrDeviceHandle ahBTRMgrDevHdl, BTRMGR_MediaControlCommand_t mediaCtrlCmd) |
This API is used to perform the media control operations. More... | |
BTRMGR_Result_t | BTRMGR_GetDeviceVolumeMute (unsigned char aui8AdapterIdx, BTRMgrDeviceHandle ahBTRMgrDevHdl, BTRMGR_DeviceOperationType_t deviceOpType, unsigned char *pui8Volume, unsigned char *pui8Mute) |
This API is used to fetch the media volume and mute data. More... | |
BTRMGR_Result_t | BTRMGR_SetDeviceVolumeMute (unsigned char aui8AdapterIdx, BTRMgrDeviceHandle ahBTRMgrDevHdl, BTRMGR_DeviceOperationType_t deviceOpType, unsigned char ui8Volume, unsigned char ui8Mute) |
This API is used to set the media volume and mute data. More... | |
BTRMGR_Result_t | BTRMGR_GetMediaTrackInfo (unsigned char aui8AdapterIdx, BTRMgrDeviceHandle ahBTRMgrDevHdl, BTRMGR_MediaTrackInfo_t *mediaTrackInfo) |
This API fetches the media track info like title, genre, duration, number of tracks, current track number. More... | |
BTRMGR_Result_t | BTRMGR_GetMediaElementTrackInfo (unsigned char aui8AdapterIdx, BTRMgrDeviceHandle ahBTRMgrDevHdl, BTRMgrMediaElementHandle ahBTRMgrMedElementHdl, BTRMGR_MediaTrackInfo_t *mediaTrackInfo) |
This API fetches the media track info like title, genre, duration, number of tracks, current track number. More... | |
BTRMGR_Result_t | BTRMGR_GetMediaCurrentPosition (unsigned char aui8AdapterIdx, BTRMgrDeviceHandle ahBTRMgrDevHdl, BTRMGR_MediaPositionInfo_t *mediaPositionInfo) |
This API fetches the current position and total duration of the media. More... | |
BTRMGR_Result_t | BTRMGR_SetMediaElementActive (unsigned char aui8AdapterIdx, BTRMgrDeviceHandle ahBTRMgrDevHdl, BTRMgrMediaElementHandle ahBTRMgrMedElementHdl, BTRMGR_MediaElementType_t aMediaElementType) |
This API sets the mentioned media element list active/in_scope for further operations on it. More... | |
BTRMGR_Result_t | BTRMGR_GetMediaElementList (unsigned char aui8AdapterIdx, BTRMgrDeviceHandle ahBTRMgrDevHdl, BTRMgrMediaElementHandle ahBTRMgrMedElementHdl, unsigned short aui16MediaElementStartIdx, unsigned short aui16MediaElementEndIdx, unsigned char abMediaElementListDepth, BTRMGR_MediaElementType_t aMediaElementType, BTRMGR_MediaElementListInfo_t *aMediaElementListInfo) |
This API gets the media element list. More... | |
BTRMGR_Result_t | BTRMGR_SelectMediaElement (unsigned char aui8AdapterIdx, BTRMgrDeviceHandle ahBTRMgrDevHdl, BTRMgrMediaElementHandle ahBTRMgrMedElementHdl, BTRMGR_MediaElementType_t aMediaElementType) |
This API performs operation based on the element type selected. More... | |
const char * | BTRMGR_GetDeviceTypeAsString (BTRMGR_DeviceType_t type) |
This API fetches the Device name of the media. More... | |
BTRMGR_Result_t | BTRMGR_SetAudioInServiceState (unsigned char aui8AdapterIdx, unsigned char aui8State) |
This API Enable/Disables Audio-In on the specified bluetooth adapter. More... | |
BTRMGR_Result_t | BTRMGR_SetHidGamePadServiceState (unsigned char aui8AdapterIdx, unsigned char aui8State) |
This API Enable/Disables Hid GamePad on the specified bluetooth adapter. More... | |
BTRMGR_Result_t | BTRMGR_GetLimitBeaconDetection (unsigned char aui8AdapterIdx, unsigned char *isLimited) |
This API Gets Beacon Detection status on the specified bluetooth adapter. More... | |
BTRMGR_Result_t | BTRMGR_SetLimitBeaconDetection (unsigned char aui8AdapterIdx, unsigned char isLimited) |
This API Sets Beacon Detection status on the specified bluetooth adapter. More... | |
BTRMGR_Result_t | BTRMGR_GetLeProperty (unsigned char aui8AdapterIdx, BTRMgrDeviceHandle ahBTRMgrDevHdl, const char *apBtrPropUuid, BTRMGR_LeProperty_t aenLeProperty, void *vpPropValue) |
BTRMGR_Result_t | BTRMGR_GetLeCharacteristicUUID (unsigned char aui8AdapterIdx, BTRMgrDeviceHandle ahBTRMgrDevHdl, const char *apBtrServiceUuid, char *apBtrCharUuidList) |
This API fetches the characteristic uuid of Le device. More... | |
BTRMGR_Result_t | BTRMGR_PerformLeOp (unsigned char aui8AdapterIdx, BTRMgrDeviceHandle ahBTRMgrDevHdl, const char *aBtrLeUuid, BTRMGR_LeOp_t aLeOpType, char *aLeOpArg, char *rOpResult) |
This API performs LE operations on the specified bluetooth adapter. More... | |
BTRMGR_Result_t | BTRMGR_LE_StartAdvertisement (unsigned char aui8AdapterIdx, BTRMGR_LeCustomAdvertisement_t *pstBTMGR_LeCustomAdvt) |
BTRMGR_Result_t | BTRMGR_LE_StopAdvertisement (unsigned char aui8AdapterIdx) |
BTRMGR_Result_t | BTRMGR_LE_GetPropertyValue (unsigned char aui8AdapterIdx, char *lUUID, char *aValue, BTRMGR_LeProperty_t aElement) |
BTRMGR_Result_t | BTRMGR_LE_SetServiceUUIDs (unsigned char aui8AdapterIdx, char *aUUID) |
BTRMGR_Result_t | BTRMGR_LE_SetServiceInfo (unsigned char aui8AdapterIdx, char *aUUID, unsigned char aServiceType) |
BTRMGR_Result_t | BTRMGR_LE_SetGattInfo (unsigned char aui8AdapterIdx, char *aParentUUID, char *aCharUUID, unsigned short aFlags, char *aValue, BTRMGR_LeProperty_t aElement) |
BTRMGR_Result_t | BTRMGR_LE_SetGattPropertyValue (unsigned char aui8AdapterIdx, char *aUUID, char *aValue, BTRMGR_LeProperty_t aElement) |
BTRMGR_Result_t | BTRMGR_SysDiagInfo (unsigned char aui8AdapterIdx, char *apDiagElement, char *apValue, BTRMGR_LeOp_t aOpType) |
BTRMGR_Result_t | BTRMGR_ConnectToWifi (unsigned char aui8AdapterIdx, char *apSSID, char *apPassword, int aSecMode) |
BTRMGR_Result_t | BTRMGR_RegisterEventCallback (BTRMGR_EventCallback afpcBBTRMgrEventOut) |
struct _BTRMGR_MediaTrackInfo_t |
struct _BTRMGR_MediaPositionInfo_t |
struct _BTRMGR_LeUUID_t |
struct _BTRMGR_DeviceService_t |
struct _BTRMGR_DeviceServiceList_t |
Data Fields | ||
---|---|---|
unsigned short | m_numOfService | |
union _BTRMGR_DeviceServiceList_t | __unnamed__ |
union _BTRMGR_DeviceServiceList_t.__unnamed__ |
Data Fields | ||
---|---|---|
BTRMGR_DeviceService_t | m_profileInfo[32] | |
BTRMGR_LeUUID_t | m_uuidInfo[32] |
struct _BTRMGR_DeviceAdServiceData_t |
struct _BTRMGR_DevicesProperty_t |
Data Fields | ||
---|---|---|
BTRMgrDeviceHandle | m_deviceHandle | |
BTRMGR_DeviceType_t | m_deviceType | |
char | m_name[64] | |
char | m_deviceAddress[64] | |
BTRMGR_RSSIValue_t | m_rssi | |
int | m_signalLevel | |
unsigned short | m_vendorID | |
unsigned char | m_isPaired | |
unsigned char | m_isConnected | |
unsigned char | m_isLowEnergyDevice | |
BTRMGR_DeviceServiceList_t | m_serviceInfo | |
BTRMGR_DeviceAdServiceData_t | m_adServiceData[32] |
struct _BTRMGR_ConnectedDevice_t |
Data Fields | ||
---|---|---|
BTRMgrDeviceHandle | m_deviceHandle | |
BTRMGR_DeviceType_t | m_deviceType | |
char | m_name[64] | |
char | m_deviceAddress[64] | |
BTRMGR_DeviceServiceList_t | m_serviceInfo | |
unsigned short | m_vendorID | |
unsigned char | m_isLowEnergyDevice | |
unsigned char | m_isConnected | |
BTRMGR_DevicePower_t | m_powerStatus |
struct _BTRMGR_PairedDevices_t |
Data Fields | ||
---|---|---|
BTRMgrDeviceHandle | m_deviceHandle | |
BTRMGR_DeviceType_t | m_deviceType | |
char | m_name[64] | |
char | m_deviceAddress[64] | |
BTRMGR_DeviceServiceList_t | m_serviceInfo | |
unsigned short | m_vendorID | |
unsigned char | m_isLowEnergyDevice | |
unsigned char | m_isConnected | |
unsigned char | m_isLastConnectedDevice | |
unsigned int | m_ui32DevClassBtSpec |
struct _BTRMGR_DiscoveredDevices_t |
Data Fields | ||
---|---|---|
BTRMgrDeviceHandle | m_deviceHandle | |
BTRMGR_DeviceType_t | m_deviceType | |
char | m_name[64] | |
char | m_deviceAddress[64] | |
unsigned short | m_vendorID | |
unsigned char | m_isPairedDevice | |
unsigned char | m_isConnected | |
unsigned char | m_isLowEnergyDevice | |
BTRMGR_RSSIValue_t | m_rssi | |
int | m_signalLevel | |
unsigned char | m_isDiscovered | |
unsigned char | m_isLastConnectedDevice | |
unsigned int | m_ui32DevClassBtSpec |
struct _BTRMGR_ConnectedDevicesList_t |
Data Fields | ||
---|---|---|
unsigned short | m_numOfDevices | |
BTRMGR_ConnectedDevice_t | m_deviceProperty[32] |
struct _BTRMGR_PairedDevicesList_t |
Data Fields | ||
---|---|---|
unsigned short | m_numOfDevices | |
BTRMGR_PairedDevices_t | m_deviceProperty[32] |
struct _BTRMGR_DiscoveredDevicesList_t |
Data Fields | ||
---|---|---|
unsigned short | m_numOfDevices | |
BTRMGR_DiscoveredDevices_t | m_deviceProperty[32] |
struct _BTRMGR_ExternalDevice_t |
Data Fields | ||
---|---|---|
BTRMgrDeviceHandle | m_deviceHandle | |
BTRMGR_DeviceType_t | m_deviceType | |
char | m_name[64] | |
char | m_deviceAddress[64] | |
BTRMGR_DeviceServiceList_t | m_serviceInfo | |
unsigned short | m_vendorID | |
unsigned char | m_isLowEnergyDevice | |
unsigned int | m_externalDevicePIN | |
unsigned char | m_requestConfirmation |
struct _BTRMGR_MediaElementInfo_t |
Data Fields | ||
---|---|---|
BTRMgrMediaElementHandle | m_mediaElementHdl | |
unsigned char | m_IsPlayable | |
char | m_mediaElementName[256] | |
BTRMGR_MediaTrackInfo_t | m_mediaTrackInfo |
struct _BTRMGR_MediaElementListInfo_t |
Data Fields | ||
---|---|---|
unsigned short | m_numberOfElements | |
BTRMGR_MediaElementInfo_t | m_mediaElementInfo[64] |
struct _BTRMGR_MediaDeviceStatus_t |
Data Fields | ||
---|---|---|
unsigned char | m_ui8mediaDevVolume | |
unsigned char | m_ui8mediaDevMute | |
BTRMGR_MediaControlCommand_t | m_enmediaCtrlCmd |
struct _BTRMGR_MediaInfo_t |
Data Fields | ||
---|---|---|
BTRMgrDeviceHandle | m_deviceHandle | |
BTRMGR_DeviceType_t | m_deviceType | |
char | m_name[64] | |
union _BTRMGR_MediaInfo_t | __unnamed__ |
union _BTRMGR_MediaInfo_t.__unnamed__ |
Data Fields | ||
---|---|---|
BTRMGR_MediaTrackInfo_t | m_mediaTrackInfo | |
BTRMGR_MediaPositionInfo_t | m_mediaPositionInfo | |
BTRMGR_MediaElementListInfo_t | m_mediaAlbumListInfo | |
BTRMGR_MediaElementListInfo_t | m_mediaArtistListInfo | |
BTRMGR_MediaElementListInfo_t | m_mediaGenreListInfo | |
BTRMGR_MediaElementListInfo_t | m_mediaCompilationInfo | |
BTRMGR_MediaElementListInfo_t | m_mediaPlayListInfo | |
BTRMGR_MediaElementListInfo_t | m_mediaTrackListInfo | |
char | m_mediaPlayerName[256] | |
unsigned char | m_mediaPlayerVolume | |
BTRMGR_MediaDeviceStatus_t | m_mediaDevStatus |
struct _BTRMGR_DeviceOpInfo_t |
Data Fields | ||
---|---|---|
BTRMgrDeviceHandle | m_deviceHandle | |
BTRMGR_DeviceType_t | m_deviceType | |
BTRMGR_DeviceOperationType_t | m_deviceOpType | |
char | m_deviceAddress[64] | |
char | m_name[64] | |
char | m_uuid[256] | |
BTRMGR_LeOp_t | m_leOpType | |
union _BTRMGR_DeviceOpInfo_t | __unnamed__ |
union _BTRMGR_DeviceOpInfo_t.__unnamed__ |
struct _BTRMGR_EventMessage_t |
Data Fields | ||
---|---|---|
unsigned char | m_adapterIndex | |
BTRMGR_Events_t | m_eventType | |
union _BTRMGR_EventMessage_t | __unnamed__ |
union _BTRMGR_EventMessage_t.__unnamed__ |
Data Fields | ||
---|---|---|
BTRMGR_DiscoveredDevices_t | m_discoveredDevice | |
BTRMGR_ExternalDevice_t | m_externalDevice | |
BTRMGR_PairedDevices_t | m_pairedDevice | |
BTRMGR_MediaInfo_t | m_mediaInfo | |
BTRMGR_DeviceOpInfo_t | m_deviceOpInfo |
struct _BTRMGR_EventResponse_t |
Data Fields | ||
---|---|---|
BTRMGR_Events_t | m_eventType | |
BTRMgrDeviceHandle | m_deviceHandle | |
char | m_writeData[256 *3] | |
union _BTRMGR_EventResponse_t | __unnamed__ |
union _BTRMGR_EventResponse_t.__unnamed__ |
struct _BTRMGR_UUID_t |
struct _BTRMGR_DiscoveryFilterHandle_t |
Data Fields | ||
---|---|---|
BTRMGR_UUID_t | m_btuuid | |
int | m_rssi | |
int | m_pathloss |
struct _BTRMGR_LeCustomAdvertisement_t |
BTRMGR_Result_t BTRMGR_Init | ( | void | ) |
This API initializes the bluetooth manager.
This API performs the following operations:
BTRMGR_RESULT_SUCCESS | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_DeInit | ( | void | ) |
BTRMGR_Result_t BTRMGR_RegisterForCallbacks | ( | const char * | apcProcessName | ) |
This API registers all the IARM call backs for BTRMGR and Third party Clients.
BTRMGR_RESULT_SUCCESS | on success, appropriate error code otherwise. |
Definition at line 100 of file btmgr_iarm_external_interface.c.
BTRMGR_Result_t BTRMGR_UnRegisterFromCallbacks | ( | const char * | apcProcessName | ) |
This API Unregisters all the IARM call backs for BTRMGR and Third party Clients.
BTRMGR_RESULT_SUCCESS | on success, appropriate error code otherwise. |
Definition at line 231 of file btmgr_iarm_external_interface.c.
BTRMGR_Result_t BTRMGR_GetNumberOfAdapters | ( | unsigned char * | pNumOfAdapters | ) |
BTRMGR_Result_t BTRMGR_ResetAdapter | ( | unsigned char | aui8AdapterIdx | ) |
This API is designed to reset the bluetooth adapter.
As of now, HAL implementation is not available for this API.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
eBTRMgrSuccess | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_SetAdapterName | ( | unsigned char | aui8AdapterIdx, |
const char * | pNameOfAdapter | ||
) |
This API is used to set the new name to the bluetooth adapter.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[in] | pNameOfAdapter | The name to set. |
eBTRMgrSuccess | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_GetAdapterName | ( | unsigned char | aui8AdapterIdx, |
char * | pNameOfAdapter | ||
) |
This API fetches the bluetooth adapter name.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[out] | pNameOfAdapter | Bluetooth adapter name. |
eBTRMgrSuccess | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_SetAdapterPowerStatus | ( | unsigned char | aui8AdapterIdx, |
unsigned char | power_status | ||
) |
This API sets the bluetooth adapter power to ON/OFF.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[in] | power_status | Value to set the power. 0 to OFF & 1 to ON. |
eBTRMgrSuccess | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_GetAdapterPowerStatus | ( | unsigned char | aui8AdapterIdx, |
unsigned char * | pPowerStatus | ||
) |
This API fetches the power status, either 0 or 1.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[out] | pPowerStatus | Indicates the power status. |
eBTRMgrSuccess | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_SetAdapterDiscoverable | ( | unsigned char | aui8AdapterIdx, |
unsigned char | discoverable, | ||
int | timeout | ||
) |
This API is to make the adapter discoverable until the given timeout.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[in] | discoverable | Value to turn on or off the discovery. |
[in] | timeout | Timeout to turn on discovery. |
eBTRMgrSuccess | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_IsAdapterDiscoverable | ( | unsigned char | aui8AdapterIdx, |
unsigned char * | pDiscoverable | ||
) |
This API checks the adapter is discoverable or not.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[out] | pDiscoverable | Indicates discoverable or not. |
eBTRMgrSuccess | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_StartDeviceDiscovery | ( | unsigned char | aui8AdapterIdx, |
BTRMGR_DeviceOperationType_t | aenBTRMgrDevOpT | ||
) |
BTRMGR_Result_t BTRMGR_StopDeviceDiscovery | ( | unsigned char | aui8AdapterIdx, |
BTRMGR_DeviceOperationType_t | aenBTRMgrDevOpT | ||
) |
This API terminates the scanning process.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[in] | aenBTRMgrDevOpT | Device operation type. |
eBTRMgrSuccess | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_GetDiscoveryStatus | ( | unsigned char | aui8AdapterIdx, |
BTRMGR_DiscoveryStatus_t * | aeDiscoveryStatus, | ||
BTRMGR_DeviceOperationType_t * | aenBTRMgrDevOpT | ||
) |
This API gives the discovery status.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[out] | aeDiscoveryStatus | Device discovery status. |
[out] | aenBTRMgrDevOpT | Device operation type. |
eBTRMgrSuccess | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_GetDiscoveredDevices | ( | unsigned char | aui8AdapterIdx, |
BTRMGR_DiscoveredDevicesList_t * | pDiscoveredDevices | ||
) |
This API fetches the list of devices scanned.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[out] | pDiscoveredDevices | Structure which holds the details of device scanned. |
eBTRMgrSuccess | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_PairDevice | ( | unsigned char | aui8AdapterIdx, |
BTRMgrDeviceHandle | ahBTRMgrDevHdl | ||
) |
This API is used to pair the device that you wish to pair.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[in] | ahBTRMgrDevHdl | Indicates the device handle. |
eBTRMgrSuccess | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_UnpairDevice | ( | unsigned char | aui8AdapterIdx, |
BTRMgrDeviceHandle | ahBTRMgrDevHdl | ||
) |
This API is used to remove the pairing information of the device selected.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[in] | ahBTRMgrDevHdl | Device handle. |
eBTRMgrSuccess | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_GetPairedDevices | ( | unsigned char | aui8AdapterIdx, |
BTRMGR_PairedDevicesList_t * | pPairedDevices | ||
) |
This API returns the list of devices paired.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[in] | pPairedDevices | Structure which holds the paired devices information. |
eBTRMgrSuccess | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_ConnectToDevice | ( | unsigned char | aui8AdapterIdx, |
BTRMgrDeviceHandle | ahBTRMgrDevHdl, | ||
BTRMGR_DeviceOperationType_t | connectAs | ||
) |
This API connects the device as audio sink/headset/audio src based on the device type specified.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[in] | ahBTRMgrDevHdl | Indicates device handle. |
[in] | connectAs | Device operation type. |
eBTRMgrSuccess | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_DisconnectFromDevice | ( | unsigned char | aui8AdapterIdx, |
BTRMgrDeviceHandle | ahBTRMgrDevHdl | ||
) |
This API terminates the current connection.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[in] | ahBTRMgrDevHdl | Indicates device handle. |
eBTRMgrSuccess | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_GetConnectedDevices | ( | unsigned char | aui8AdapterIdx, |
BTRMGR_ConnectedDevicesList_t * | pConnectedDevices | ||
) |
This API returns the list of devices connected.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[out] | pConnectedDevices | List of connected devices. |
eBTRMgrSuccess | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_GetDeviceProperties | ( | unsigned char | aui8AdapterIdx, |
BTRMgrDeviceHandle | ahBTRMgrDevHdl, | ||
BTRMGR_DevicesProperty_t * | pDeviceProperty | ||
) |
This API returns the device information that includes the device name, mac address, RSSI value etc.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[in] | ahBTRMgrDevHdl | Indicates device handle. |
[out] | pDeviceProperty | Device property information. |
eBTRMgrSuccess | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_StartAudioStreamingOut_StartUp | ( | unsigned char | aui8AdapterIdx, |
BTRMGR_DeviceOperationType_t | aenBTRMgrDevConT | ||
) |
This API initates the streaming from the device with default operation type.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[in] | aenBTRMgrDevConT | Device opeartion type. |
eBTRMgrSuccess | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_StartAudioStreamingOut | ( | unsigned char | aui8AdapterIdx, |
BTRMgrDeviceHandle | ahBTRMgrDevHdl, | ||
BTRMGR_DeviceOperationType_t | connectAs | ||
) |
This API initates the streaming from the device with the selected operation type.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[in] | ahBTRMgrDevHdl | Indicates device Handle. |
[in] | connectAs | Device operation type. |
eBTRMgrSuccess | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_StopAudioStreamingOut | ( | unsigned char | aui8AdapterIdx, |
BTRMgrDeviceHandle | ahBTRMgrDevHdl | ||
) |
This API terminates the streaming from the device.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[in] | ahBTRMgrDevHdl | Indicates device Handle. |
eBTRMgrSuccess | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_IsAudioStreamingOut | ( | unsigned char | aui8AdapterIdx, |
unsigned char * | pStreamingStatus | ||
) |
BTRMGR_Result_t BTRMGR_SetAudioStreamingOutType | ( | unsigned char | aui8AdapterIdx, |
BTRMGR_StreamOut_Type_t | type | ||
) |
This API is to set the audio type as primary or secondary.
Secondary audio support is not implemented yet. Always primary audio is played for now.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[in] | type | Streaming type primary/secondary |
eBTRMgrSuccess | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_StartAudioStreamingIn | ( | unsigned char | aui8AdapterIdx, |
BTRMgrDeviceHandle | ahBTRMgrDevHdl, | ||
BTRMGR_DeviceOperationType_t | connectAs | ||
) |
This API starts the audio streaming.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[in] | ahBTRMgrDevHdl | Device handle. |
[in] | connectAs | Device opeartion type. |
eBTRMgrSuccess | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_StopAudioStreamingIn | ( | unsigned char | aui8AdapterIdx, |
BTRMgrDeviceHandle | ahBTRMgrDevHdl | ||
) |
BTRMGR_Result_t BTRMGR_IsAudioStreamingIn | ( | unsigned char | aui8AdapterIdx, |
unsigned char * | pStreamingStatus | ||
) |
This API returns the audio streaming status.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[out] | pStreamingStatus | Streaming status. |
eBTRMgrSuccess | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_SetEventResponse | ( | unsigned char | aui8AdapterIdx, |
BTRMGR_EventResponse_t * | apstBTRMgrEvtRsp | ||
) |
This API handles the events received.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[in] | apstBTRMgrEvtRsp | Structure which holds the event response. |
eBTRMgrSuccess | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_MediaControl | ( | unsigned char | aui8AdapterIdx, |
BTRMgrDeviceHandle | ahBTRMgrDevHdl, | ||
BTRMGR_MediaControlCommand_t | mediaCtrlCmd | ||
) |
This API is used to perform the media control operations.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[in] | ahBTRMgrDevHdl | Device handle. |
[in] | mediaCtrlCmd | Indicates the play, pause, resume etc. |
eBTRMgrSuccess | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_GetDeviceVolumeMute | ( | unsigned char | aui8AdapterIdx, |
BTRMgrDeviceHandle | ahBTRMgrDevHdl, | ||
BTRMGR_DeviceOperationType_t | deviceOpType, | ||
unsigned char * | pui8Volume, | ||
unsigned char * | pui8Mute | ||
) |
This API is used to fetch the media volume and mute data.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[in] | ahBTRMgrDevHdl | Device handle. |
[in] | deviceOpType | device operation type audio out or in etc. |
[out] | pui8Volume | Media volume value. |
[out] | pui8Mute | Media mute set or not. |
eBTRMgrSuccess | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_SetDeviceVolumeMute | ( | unsigned char | aui8AdapterIdx, |
BTRMgrDeviceHandle | ahBTRMgrDevHdl, | ||
BTRMGR_DeviceOperationType_t | deviceOpType, | ||
unsigned char | ui8Volume, | ||
unsigned char | ui8Mute | ||
) |
This API is used to set the media volume and mute data.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[in] | ahBTRMgrDevHdl | Device handle. |
[in] | deviceOpType | device operation type audio out or in etc. |
[out] | ui8Volume | Media volume value. |
[out] | ui8Mute | Media mute set or not. |
eBTRMgrSuccess | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_GetMediaTrackInfo | ( | unsigned char | aui8AdapterIdx, |
BTRMgrDeviceHandle | ahBTRMgrDevHdl, | ||
BTRMGR_MediaTrackInfo_t * | mediaTrackInfo | ||
) |
This API fetches the media track info like title, genre, duration, number of tracks, current track number.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[in] | ahBTRMgrDevHdl | Device handle. |
[out] | mediaTrackInfo | Track info like title, genre, duration etc. |
eBTRMgrSuccess | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_GetMediaElementTrackInfo | ( | unsigned char | aui8AdapterIdx, |
BTRMgrDeviceHandle | ahBTRMgrDevHdl, | ||
BTRMgrMediaElementHandle | ahBTRMgrMedElementHdl, | ||
BTRMGR_MediaTrackInfo_t * | mediaTrackInfo | ||
) |
This API fetches the media track info like title, genre, duration, number of tracks, current track number.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[in] | ahBTRMgrDevHdl | Device handle. |
[in] | ahBTRMgrMedElementHdl | Media Element handle . |
[out] | mediaTrackInfo | Track info like title, genre, duration etc. |
eBTRMgrSuccess | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_GetMediaCurrentPosition | ( | unsigned char | aui8AdapterIdx, |
BTRMgrDeviceHandle | ahBTRMgrDevHdl, | ||
BTRMGR_MediaPositionInfo_t * | mediaPositionInfo | ||
) |
This API fetches the current position and total duration of the media.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[in] | ahBTRMgrDevHdl | Device handle. |
[out] | mediaPositionInfo | Media position info. |
BTRMGR_RESULT_SUCCESS | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_SetMediaElementActive | ( | unsigned char | aui8AdapterIdx, |
BTRMgrDeviceHandle | ahBTRMgrDevHdl, | ||
BTRMgrMediaElementHandle | ahBTRMgrMedElementHdl, | ||
BTRMGR_MediaElementType_t | aMediaElementType | ||
) |
This API sets the mentioned media element list active/in_scope for further operations on it.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[in] | ahBTRMgrDevHdl | Device handle. |
[in] | ahBTRMgrMedElementHdl | Media Element handle |
[in] | aui16MediaElementStartIdx | Starting index of the list. |
[in] | aui16MediaElementEndIdx | Ending index of the list |
[in] | aMediaElementType | Media Element Type. |
BTRMGR_RESULT_SUCCESS | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_GetMediaElementList | ( | unsigned char | aui8AdapterIdx, |
BTRMgrDeviceHandle | ahBTRMgrDevHdl, | ||
BTRMgrMediaElementHandle | ahBTRMgrMedElementHdl, | ||
unsigned short | aui16MediaElementStartIdx, | ||
unsigned short | aui16MediaElementEndIdx, | ||
unsigned char | abMediaElementListDepth, | ||
BTRMGR_MediaElementType_t | aMediaElementType, | ||
BTRMGR_MediaElementListInfo_t * | aMediaElementListInfo | ||
) |
This API gets the media element list.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[in] | ahBTRMgrDevHdl | Device handle. |
[in] | ahBTRMgrMedElementHdl | Media Element handle |
[in] | aui16MediaElementStartIdx | Starting index of the list. |
[in] | aui16MediaElementEndIdx | Ending index of the list |
[in] | aMediaElementType | Media Element Type. |
[out] | aMediaElementListInfo | Media Element List. |
BTRMGR_RESULT_SUCCESS | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_SelectMediaElement | ( | unsigned char | aui8AdapterIdx, |
BTRMgrDeviceHandle | ahBTRMgrDevHdl, | ||
BTRMgrMediaElementHandle | ahBTRMgrMedElementHdl, | ||
BTRMGR_MediaElementType_t | aMediaElementType | ||
) |
This API performs operation based on the element type selected.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[in] | ahBTRMgrDevHdl | Device handle. |
[in] | ahBTRMgrMedElementHdl | Media Element handle |
[in] | aMediaElementType | Media Element Type. |
BTRMGR_RESULT_SUCCESS | on success, appropriate error code otherwise. |
const char* BTRMGR_GetDeviceTypeAsString | ( | BTRMGR_DeviceType_t | type | ) |
BTRMGR_Result_t BTRMGR_SetAudioInServiceState | ( | unsigned char | aui8AdapterIdx, |
unsigned char | aui8State | ||
) |
This API Enable/Disables Audio-In on the specified bluetooth adapter.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[in] | aui8State | 0/1- Enable or Disable AudioIn service. |
BTRMGR_RESULT_SUCCESS | on success. |
BTRMGR_Result_t BTRMGR_SetHidGamePadServiceState | ( | unsigned char | aui8AdapterIdx, |
unsigned char | aui8State | ||
) |
This API Enable/Disables Hid GamePad on the specified bluetooth adapter.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[in] | aui8State | 0/1- Enable or Disable AudioIn service. |
BTRMGR_RESULT_SUCCESS | on success. |
BTRMGR_Result_t BTRMGR_GetLimitBeaconDetection | ( | unsigned char | aui8AdapterIdx, |
unsigned char * | isLimited | ||
) |
This API Gets Beacon Detection status on the specified bluetooth adapter.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[out] | isLimited | Current Beacon Detection Status. |
BTRMGR_RESULT_SUCCESS | on success. |
BTRMGR_Result_t BTRMGR_SetLimitBeaconDetection | ( | unsigned char | aui8AdapterIdx, |
unsigned char | isLimited | ||
) |
This API Sets Beacon Detection status on the specified bluetooth adapter.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[in] | isLimited | Current Beacon Detection Status. |
BTRMGR_RESULT_SUCCESS | on success. |
BTRMGR_Result_t BTRMGR_GetLeCharacteristicUUID | ( | unsigned char | aui8AdapterIdx, |
BTRMgrDeviceHandle | ahBTRMgrDevHdl, | ||
const char * | apBtrServiceUuid, | ||
char * | apBtrCharUuidList | ||
) |
This API fetches the characteristic uuid of Le device.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[in] | ahBTRMgrDevHdl | Device handle. |
[in] | apBtrServiceUuid | service UUID. |
[out] | apBtrCharUuidList | uuid list. |
BTRMGR_RESULT_SUCCESS | on success, appropriate error code otherwise. |
BTRMGR_Result_t BTRMGR_PerformLeOp | ( | unsigned char | aui8AdapterIdx, |
BTRMgrDeviceHandle | ahBTRMgrDevHdl, | ||
const char * | aBtrLeUuid, | ||
BTRMGR_LeOp_t | aLeOpType, | ||
char * | aLeOpArg, | ||
char * | rOpResult | ||
) |
This API performs LE operations on the specified bluetooth adapter.
[in] | aui8AdapterIdx | Index of bluetooth adapter. |
[in] | ahBTRMgrDevHdl | Device handle. |
[in] | aBtrLeUuid | LE device uuid. |
[in] | aLeOpType | LE device operation type. |
[out] | rOpResult | LE device operation result. |
BTRMGR_RESULT_SUCCESS | on success, appropriate error code otherwise. |