|
RDK Documentation (Open Sourced RDK Components)
|
26 #ifndef __BTR_CORE_BT_IFCE_H__
27 #define __BTR_CORE_BT_IFCE_H__
38 #define BT_MAX_STR_LEN 256
44 #define BT_MAX_DEV_PATH_LEN 64 //BT_MAX_STR_LEN/4
52 #define BT_MAX_UUID_STR_LEN 64 //BT_MAX_STR_LEN/4
57 #define BT_MAX_NUM_DEVICE 32
64 #define BT_MAX_DEVICE_PROFILE 32
69 #define BT_MAX_NUM_ADAPTERS 4
74 #define BT_MAX_SERVICE_DATA_LEN 32
80 #define BT_UUID_A2DP_SOURCE "0000110a-0000-1000-8000-00805f9b34fb"
85 #define BT_UUID_A2DP_SINK "0000110b-0000-1000-8000-00805f9b34fb"
90 #define BT_UUID_GATT_TILE_1 "0000feed-0000-1000-8000-00805f9b34fb"
95 #define BT_UUID_GATT_TILE_2 "0000feec-0000-1000-8000-00805f9b34fb"
100 #define BT_UUID_GATT_TILE_3 "0000febe-0000-1000-8000-00805f9b34fb"
105 #define BT_UUID_HFP_AG "0000111f-0000-1000-8000-00805f9b34fb"
110 #define BT_UUID_HFP_HS "0000111e-0000-1000-8000-00805f9b34fb"
116 #define BT_MEDIA_CODEC_SBC 0x00
121 #define BT_MEDIA_CODEC_MPEG12 0x01
126 #define BT_MEDIA_CODEC_MPEG24 0x02
131 #define BT_MEDIA_CODEC_ATRAC 0x03
135 #define BT_MEDIA_CODEC_VENDOR 0xFF
140 #define BT_MEDIA_CODEC_PCM 0x00
143 #define BT_MAX_NUM_GATT_SERVICE 4
144 #define BT_MAX_NUM_GATT_CHAR 10
145 #define BT_MAX_NUM_GATT_DESC 4
146 #define BT_MAX_GATT_OP_DATA_LEN BT_MAX_STR_LEN * 3
150 #define BT_GATT_CHAR_FLAG_READ 1 << 0
151 #define BT_GATT_CHAR_FLAG_WRITE 1 << 1
152 #define BT_GATT_CHAR_FLAG_ENCRYPT_READ 1 << 2
153 #define BT_GATT_CHAR_FLAG_ENCRYPT_WRITE 1 << 3
154 #define BT_GATT_CHAR_FLAG_ENCRYPT_AUTHENTICATED_READ 1 << 4
155 #define BT_GATT_CHAR_FLAG_ENCRYPT_AUTHENTICATED_WRITE 1 << 5
156 #define BT_GATT_CHAR_FLAG_SECURE_READ 1 << 6
157 #define BT_GATT_CHAR_FLAG_SECURE_WRITE 1 << 7
158 #define BT_GATT_CHAR_FLAG_NOTIFY 1 << 8
159 #define BT_GATT_CHAR_FLAG_INDICATE 1 << 9
160 #define BT_GATT_CHAR_FLAG_BROADCAST 1 << 10
161 #define BT_GATT_CHAR_FLAG_WRITE_WITHOUT_RESPONSE 1 << 11
162 #define BT_GATT_CHAR_FLAG_AUTHENTICATED_SIGNED_WRITES 1 << 12
163 #define BT_GATT_CHAR_FLAG_RELIABLE_WRITE 1 << 13
164 #define BT_GATT_CHAR_FLAG_WRITABLE_AUXILIARIES 1 << 14
167 #define BT_MAX_NUM_GATT_CHAR_FLAGS 15
168 #define BT_MAX_NUM_GATT_DESC_FLAGS 8
170 typedef unsigned long long int tBTMediaItemId;
181 enBTDevHFPAudioGateway,
194 enBTDCTablet = 0x11Cu,
195 enBTDCSmartPhone = 0x20Cu,
196 enBTDCWearableHeadset = 0x404u,
197 enBTDCHandsfree = 0x408u,
198 enBTDCReserved = 0x40Cu,
199 enBTDCMicrophone = 0x410u,
200 enBTDCLoudspeaker = 0x414u,
201 enBTDCHeadphones = 0x418u,
202 enBTDCPortableAudio = 0x41Cu,
203 enBTDCCarAudio = 0x420u,
205 enBTDCHIFIAudioDevice = 0x428u,
207 enBTDCVideoCamera = 0x430u,
208 enBTDCCamcoder = 0x434u,
209 enBTDCVideoMonitor = 0x438u,
211 enBTDCVideoConference = 0x440u,
212 enBTDCKeyboard = 0x540u,
213 enBTDCMouse = 0x580u,
214 enBTDCMouseKeyBoard = 0x5C0u,
215 enBTDCJoystick = 0x504u,
216 enBTDCGamePad = 0x508u,
217 enBTDCAudioRemote = 0x50Cu,
219 enBTDCUnknown = 0x000u
236 enBTGattCharacteristic,
249 enBTDevStScanInProgress,
252 enBTDevStPairingRequest,
253 enBTDevStPairingInProgress,
256 enBTDevStConnectInProgress,
258 enBTDevStDisconnected,
259 enBTDevStPropChanged,
270 enBTAdpOpFindPairedDev,
271 enBTAdpOpCreatePairedDev,
272 enBTAdpOpCreatePairedDevASync,
273 enBTAdpOpRemovePairedDev,
283 enBTLeGattOpReadValue,
284 enBTLeGattOpWriteValue,
285 enBTLeGattOpStartNotify,
286 enBTLeGattOpStopNotify,
299 enBTAdPropDiscoverable,
300 enBTAdPropDiscoverableTimeOut,
301 enBTAdPropDiscoveryStatus,
313 enBTDevPropConnected,
337 enBTMedControlPropConnected,
338 enBTMedControlPropPath,
339 enBTMedControlUnknown
349 enBTMedPlayerPropName,
350 enBTMedPlayerPropType,
351 enBTMedPlayerPropSubtype,
352 enBTMedPlayerPropEqualizer,
353 enBTMedPlayerPropShuffle,
354 enBTMedPlayerPropScan,
355 enBTMedPlayerPropRepeat,
356 enBTMedPlayerPropPosition,
357 enBTMedPlayerPropStatus,
358 enBTMedPlayerPropTrack,
359 enBTMedPlayerPropBrowsable,
360 enBTMedPlayerPropSearchable,
361 enBTMedPlayerPropPlaylist,
362 enBTMedPlayerPropUnknown
371 enBTMedFolderPropName,
372 enBTMedFolderPropNumberOfItems
382 enBTGattSPropPrimary,
384 enBTGattSPropServPath,
395 enBTGattCPropService,
397 enBTGattCPropNotifying,
408 enBTGattCharFlagRead,
409 enBTGattCharFlagWrite,
410 enBTGattCharFlagEncryptRead,
411 enBTGattCharFlagEncryptWrite,
412 enBTGattCharFlagEncryptAuthenticatedRead,
413 enBTGattCharFlagEncryptAuthenticatedWrite,
414 enBTGattCharFlagSecureRead,
415 enBTGattCharFlagSecureWrite,
416 enBTGattCharFlagNotify,
417 enBTGattCharFlagIndicate,
418 enBTGattCharFlagBroadcast,
419 enBTGattCharFlagWriteWithoutResponse,
420 enBTGattCharFlagAuthenticatedSignedWrites,
421 enBTGattCharFlagReliableWrite,
422 enBTGattCharFlagWritableAuxiliaries,
423 enBTGattCharFlagUnknown
433 enBTGattDPropCharacteristic,
445 enBTMedTransportStNone,
446 enBTMedTransportStIdle,
447 enBTMedTransportStPending,
448 enBTMedTransportStActive
457 enBTMedPlayerStPlaying,
458 enBTMedPlayerStStopped,
459 enBTMedPlayerStPaused,
460 enBTMedPlayerStForwardSeek,
461 enBTMedPlayerStReverseSeek,
471 enBTMedPlayerEqualizerOff,
472 enBTMedPlayerEqualizerOn
481 enBTMedPlayerShuffleOff,
482 enBTMedPlayerShuffleAllTracks,
483 enBTMedPlayerShuffleGroup
492 enBTMedPlayerScanOff,
493 enBTMedPlayerScanAllTracks,
494 enBTMedPlayerScanGroup
504 enBTMedPlayerRpSingleTrack,
505 enBTMedPlayerRpAllTracks,
515 enBTMedPlayerTypAudio,
516 enBTMedPlayerTypVideo,
517 enBTMedPlayerTypAudioBroadcasting,
518 enBTMedPlayerTypVideoBroadcasting
527 enBTMedPlayerSbTypAudioBook,
528 enBTMedPlayerSbTypPodcast
537 enBTMediaItemTypUnknown,
538 enBTMediaItemTypAudio,
539 enBTMediaItemTypVideo,
540 enBTMediaItemTypFolder
549 typedef enum _enBTMediaStatusUpdate {
550 enBTMediaTransportUpdate,
551 enBTMediaPlayerUpdate,
552 enBTMediaPlaylistUpdate,
553 enBTMediaBrowserUpdate
554 } enBTMediaStatusUpdate;
580 enBTMediaCtrlPrevious,
581 enBTMediaCtrlFastForward,
583 enBTMediaCtrlVolumeUp,
584 enBTMediaCtrlVolumeDown,
585 enBTMediaCtrlEqlzrOff,
586 enBTMediaCtrlEqlzrOn,
587 enBTMediaCtrlShflOff,
588 enBTMediaCtrlShflAllTracks,
589 enBTMediaCtrlShflGroup,
591 enBTMediaCtrlRptSingleTrack,
592 enBTMediaCtrlRptAllTracks,
593 enBTMediaCtrlRptGroup,
597 typedef enum _enBTMediaFolderType {
598 enBTMediaFldTypAlbum,
599 enBTMediaFldTypArtist,
600 enBTMediaFldTypGenre,
601 enBTMediaFldTypCompilation,
603 enBTMediaFldTypPlayList,
604 enBTMediaFldTypTrackList,
606 } enBTMediaFolderType;
629 unsigned int ui32Class;
633 unsigned int ui32PairableTimeout;
634 unsigned int ui32DiscoverableTimeout;
652 int bServiceResolved;
653 unsigned short ui16Vendor;
654 unsigned short ui16VendorSource;
655 unsigned short ui16Product;
656 unsigned short ui16Version;
657 unsigned int ui32Class;
659 unsigned short ui16Appearance;
674 unsigned short numberOfDevices;
680 unsigned int uuid_value;
694 unsigned int ui32TrackNumber;
695 unsigned int ui32Duration;
696 unsigned int ui32NumberOfTracks;
706 unsigned char m_mediaTransportVolume;
714 unsigned char m_mediaPlayerBrowsable;
715 unsigned char m_mediaPlayerSearchable;
716 unsigned char m_mediaPlayerConnected;
717 unsigned int m_mediaPlayerPosition;
722 unsigned int m_mediaFolderNumberOfItems;
730 enBTMediaFolderType eMediaFolderType;
731 tBTMediaItemId ui32BTMediaItemId;
732 unsigned int ui32NumberOfItems;
741 unsigned short descFlags;
742 char propertyValue[BT_MAX_GATT_OP_DATA_LEN];
750 unsigned short ui16NumberOfGattDesc;
751 unsigned short charFlags;
752 char value[BT_MAX_GATT_OP_DATA_LEN];
759 unsigned char serviceType;
761 unsigned short ui16NumberOfGattChar;
766 int nNumGattServices;
771 unsigned short ManfID;
772 unsigned int lenManfData;
773 unsigned char data[BT_MAX_GATT_OP_DATA_LEN];
778 uint8_t data[BT_MAX_GATT_OP_DATA_LEN];
790 unsigned char bTxPower;
798 typedef int (*fPtr_BtrCore_BTNegotiateMediaCb)(
void* apBtMediaCapsInput,
void** appBtMediaCapsOutput,
enBTDeviceType aenBTDeviceType,
enBTMediaType aenBTMediaType,
void* apUserData);
799 typedef int (*fPtr_BtrCore_BTTransportPathMediaCb)(
const char* apBtMediaTransportPath,
const char* apBtMediaUUID,
void* apBtMediaCaps,
enBTDeviceType aenBTDeviceType,
enBTMediaType aenBTMediaType,
void* apUserData);
800 typedef int (*fPtr_BtrCore_BTMediaPlayerPathCb)(
const char* apcBTMediaPlayerPath,
void* apUserData);
801 typedef int (*fPtr_BtrCore_BTConnIntimCb)(
enBTDeviceType aeBtDeviceType,
stBTDeviceInfo* apstBTDeviceInfo,
unsigned int aui32devPassKey,
unsigned char ucIsReqConfirmation,
void* apUserData);
803 typedef int (*fPtr_BtrCore_BTMediaBrowserPathCb)(
stBTMediaBrowserUpdate* apstBtMediaBsrUpdate,
unsigned char ucItemScope,
const char* apcBtDevAddr,
void* apUserData);
804 typedef int (*fPtr_BtrCore_BTLeGattPathCb)(
enBTOpIfceType enBtOpIfceType,
enBTLeGattOp aenGattOp,
const char* apBtGattPath,
const char* apcBtDevAddr,
enBTDeviceState aenBTDeviceState,
void* apLeCbData,
void* apUserData);
805 typedef int (*fPtr_BtrCore_BTLeAdvertisementCb)(
const char* apBtAdvPath,
stBTLeCustomAdv** appstBtCoreLeCustomAdv,
void* apUserData);
814 int (*p_ConnAuth_callback) ();
870 int BtrCore_BTRegisterAgent (
void* apBtConn,
const char* apBtAdapter,
const char* apBtAgentPath,
const char *capabilities);
1053 int BtrCore_BTGetPairedDevices (
void* apBtConn,
const char* apBtAdapter,
unsigned int* apui32PairedDevCnt,
char** apcArrPairedDevPath);
1187 const char* apBtUUID,
void* apBtMediaCapabilities,
int apBtMediaCapabilitiesSize,
int abBtMediaDelayReportEnable);
1346 int BtrCore_BTChangeMediaFolder (
void* apstBtIfceHdl,
const char* apBtmediaPlayerObjectPath,
const char* apBtdestMediaFolderPath);
1362 int BtrCore_BTSelectMediaFolderItems (
void* apstBtIfceHdl,
const char* apBtMediaPlayerObjectPath,
unsigned int apBtMediaFolderStartIndex,
unsigned int apBtMediaFolderEndIndex,
const char* apBtMediaFilter,
int apBtMediaFilterSize);
1453 int BtrCore_BTRegisterAdapterStatusUpdateCb (
void* apBtConn, fPtr_BtrCore_BTAdapterStatusUpdateCb afpcBAdapterStatusUpdate,
void* apUserData);
1454 int BtrCore_BTRegisterDevStatusUpdateCb (
void* apBtConn, fPtr_BtrCore_BTDevStatusUpdateCb afpcBDevStatusUpdate,
void* apUserData);
1455 int BtrCore_BTRegisterMediaStatusUpdateCb (
void* apBtConn, fPtr_BtrCore_BTMediaStatusUpdateCb afpcBMediaStatusUpdate,
void* apUserData);
1456 int BtrCore_BTRegisterConnIntimationCb (
void* apBtConn, fPtr_BtrCore_BTConnIntimCb afpcBConnIntim,
void* apUserData);
1457 int BtrCore_BTRegisterConnAuthCb (
void* apBtConn, fPtr_BtrCore_BTConnAuthCb afpcBConnAuth,
void* apUserData);
1458 int BtrCore_BTRegisterNegotiateMediaCb (
void* apBtConn,
const char* apBtAdapter,
1459 fPtr_BtrCore_BTNegotiateMediaCb afpcBNegotiateMedia,
void* apUserData);
1460 int BtrCore_BTRegisterTransportPathMediaCb (
void* apBtConn,
const char* apBtAdapter,
1461 fPtr_BtrCore_BTTransportPathMediaCb afpcBTransportPathMedia,
void* apUserData);
1462 int BtrCore_BTRegisterMediaPlayerPathCb (
void* apBtConn,
const char* apBtAdapter,
1463 fPtr_BtrCore_BTMediaPlayerPathCb afpcBTMediaPlayerPath,
void* apUserData);
1464 int BtrCore_BTRegisterMediaBrowserUpdateCb (
void* apBtConn, fPtr_BtrCore_BTMediaBrowserPathCb afpcBTMediaBrowserPath,
void* apUserData);
1465 int BtrCore_BTRegisterLEGattInfoCb (
void* apBtConn,
const char* apBtAdapter, fPtr_BtrCore_BTLeGattPathCb afpcBLeGattPath,
void* apUserData);
1466 int BtrCore_BTRegisterLEAdvInfoCb(
void* apBtConn,
const char* apBtAdapter, fPtr_BtrCore_BTLeAdvertisementCb afpcBLeAdvPath,
void* apUserData);
1468 #endif // __BTR_CORE_BT_IFCE_H__
int BtrCore_BTStopDiscovery(void *apBtConn, const char *apBtAdapter, const char *apBtAgentPath)
This API is used to stop discovering Bluetooth adapter.
int BtrCore_BTDevMediaControl(void *apBtConn, const char *apmediaPlayerPath, enBTMediaControlCmd aenBTMediaOper)
This API is used to control the media device.
int BtrCore_BTEnableEnhancedRetransmissionMode(void *apstBtIfceHdl)
This API is used to Enable Enhanced Retransmission on all BT adapter.
int BtrCore_BTUnregisterAgent(void *apBtConn, const char *apBtAdapter, const char *apBtAgentPath)
Using this API, DBus object path is unregistered with bluetooth agent path and current adapter's path...
int BtrCore_BTRegisterLeGatt(void *apBtConn, const char *apBtAdapter)
This API is used to invoke the bluez API gatt service method call RegisterApplication.
int BtrCore_BTGetPairedDeviceInfo(void *apBtConn, const char *apBtAdapter, stBTPairedDeviceInfo *pPairedDeviceInfo)
This API fetches all BT paired devices' device information.
#define BT_MAX_NUM_ADAPTERS
Bluetooth max number of bluetooth adapters that can be connected over USB/UART.
int BtrCore_BTReleaseAdapterPath(void *apBtConn, const char *apBtAdapter)
Using this API the path assigned to the current Bluetooth Adapter is released.
int BtrCore_BTPlayMediaTrackItem(void *apstBtIfceHdl, const char *apBtMediaItemObjectPath)
This API is used to Play the mentioned media track.
_enBTMediaPlayerType
Bluetooth Media Players' Type.
int BtrCore_BTRegisterMedia(void *apBtConn, const char *apBtAdapter, enBTDeviceType aenBTDevType, enBTMediaType aenBTMediaType, const char *apBtUUID, void *apBtMediaCapabilities, int apBtMediaCapabilitiesSize, int abBtMediaDelayReportEnable)
This API is used to register a media device.
enum _enBTMediaType enBTMediaType
Bluetooth Media types.
enum _enBTMediaControlProp enBTMediaControlProp
Bluetooth Media Control Properties.
int BtrCore_BTSetDevDataAckTimeout(void *apBtConn, unsigned int aui32AckTOutms)
This API is used to release the acquired device data path.
int BtrCore_BTDisableEnhancedRetransmissionMode(void *apstBtIfceHdl)
This API is used to Disable Enhanced Retransmission on all BT adapter.
int BtrCore_BTSetProp(void *apBtConn, const char *apcOpIfcePath, enBTOpIfceType aenBtOpIfceType, unBTOpIfceProp aunBtOpIfceProp, void *apvVal)
This API sets different properties of different BT devices and services.
enum _enBTDeviceProp enBTDeviceProp
Bluetooth device properties.
_enBTGattDescProp
Bluetooth Gatt Descriptor properties.
int BtrCore_BTConnectDevice(void *apBtConn, const char *apDevPath, enBTDeviceType aenBTDevType)
This API is used to establish the connection with a BT device.
_enBTDeviceProp
Bluetooth device properties.
char * BtrCore_BTGetAdapterPath(void *apBtConn, const char *apBtAdapter)
Using this API adapter path is fetched from Dbus object path.
int BtrCore_BTRegisterLeAdvertisement(void *apstBtIfceHdl, const char *apBtAdapter)
This API is used to invoke the bluez API advertisement method call RegisterAdvertisment.
_enBTDeviceClass
Bluetooth device classes.
_enBTDeviceType
Bluetooth device types.
_enBTMediaPlayerProp
Bluetooth Media Player Properties.
enum _enBTDeviceType enBTDeviceType
Bluetooth device types.
_enBTMediaPlayerStatus
Bluetooth Media Player Status.
_enBTGattCharProp
Bluetooth Gatt characteristic properties.
int BtrCore_BTGetPairedDevices(void *apBtConn, const char *apBtAdapter, unsigned int *apui32PairedDevCnt, char **apcArrPairedDevPath)
This API fetches all the paired devices' paths and number of paired devices.
enum _enBTMediaFolderProp enBTMediaFolderProp
Bluetooth Media Folder Properties.
int BtrCore_BTStopLEDiscovery(void *apBtConn, const char *apBtAdapter, const char *apBtAgentPath)
This API is used to stop discovering low energy Bluetooth adapter.
void * BtrCore_BTInitGetConnection(void)
This API Initializes the Bluetooth core and fetches DBus connection and returns a handle to the insta...
enum _enBTMediaPlayerStatus enBTMediaPlayerStatus
Bluetooth Media Player Status.
char * BtrCore_BTGetAgentPath(void *apBtConn)
Using this API, a default Path is assigned to the Bluetooth Agent.
int BtrCore_BTPerformAdapterOp(void *apBtConn, const char *apBtAdapter, const char *apBtAgentPath, const char *apcDevPath, enBTAdapterOp aenBTAdpOp)
This API is used to perform BT adapter operations.
tBTMediaItemId BtrCore_BTGetCommonParentMediaItemId(tBTMediaItemId aBTcurrMediaItemId, tBTMediaItemId aBTdestMediaItemId)
This API is used to get the mediaItemID of the node which is the immediate common parent of the src a...
enum _enBTAdapterProp enBTAdapterProp
Bluetooth adapter properties.
int BtrCore_BTGetIfceNameVersion(void *apBtConn, char *apBtOutIfceName, char *apBtOutVersion)
using this API, Bluetooth interface version is obtained from bluetooth daemon of the kernel and defau...
enum _enBTMediaPlayerScan enBTMediaPlayerScan
Bluetooth Media Players' Scan State.
_enBTLeGattOp
Bluetooth Gatt operations.
int BtrCore_BTReleaseDevDataPath(void *apBtConn, char *apcDevTransportPath)
This API is used to release the acquired device data path.
int BtrCore_BTStartLEDiscovery(void *apBtConn, const char *apBtAdapter, const char *apBtAgentPath)
This API is used to discover the low energy Bluetooth adapter.
int BtrCore_BTGetMediaFolderNumberOfItems(void *apBtConn, const char *apBtMediaPlayerPath, unsigned int *aui32NumberOfItems)
This API is used to get the number of items in the current media folder.
enum _enBTGattServiceProp enBTGattServiceProp
Bluetooth Gatt service properties.
enum _enBTMediaControlCmd enBTMediaControlCmd
Bluetooth Media Controls.
_enBTAdapterOp
Bluetooth Adapter operations.
enum _enBTMediaPlayerEqualizer enBTMediaPlayerEqualizer
Bluetooth Media Players' Equalizer State.
_enBTMediaControlProp
Bluetooth Media Control Properties.
int BtrCore_BTAcquireDevDataPath(void *apBtConn, char *apcDevTransportPath, int *dataPathFd, int *dataReadMTU, int *dataWriteMTU)
This API is used to acquire device data path.
enum _enBTDeviceState enBTDeviceState
Bluetooth device state.
int BtrCore_BTStopClassicDiscovery(void *apBtConn, const char *apBtAdapter, const char *apBtAgentPath)
This API is used to stop discovering Classic Bluetooth Devices.
enum _enBTMediaTransportState enBTMediaTransportState
Bluetooth Media transport states.
_enBTMediaItemType
Bluetooth Media Items' Type.
#define BT_MAX_UUID_STR_LEN
Bluetooth max uuid length.
_enBTMediaControlCmd
Bluetooth Media Controls.
_enBTMediaPlayerScan
Bluetooth Media Players' Scan State.
_enBTAdapterProp
Bluetooth adapter properties.
#define BT_MAX_NUM_DEVICE
Bluetooth max number of devices that can be connected.
int BtrCore_BTRegisterAgent(void *apBtConn, const char *apBtAdapter, const char *apBtAgentPath, const char *capabilities)
using this API, DBus object path is registered with bluetooth agent path and current adapter's path.
int BtrCore_BTPerformLeGattOp(void *apBtConn, const char *apBtLePath, enBTOpIfceType aenBTOpIfceType, enBTLeGattOp aenBTLeGattOp, char *apLeGatOparg1, char *apLeGatOparg2, char *rpLeOpRes)
This API is used to perform gatt services of the BT device .
int BtrCore_BTGetProp(void *apBtConn, const char *apcOpIfcePath, enBTOpIfceType aenBtOpIfceType, unBTOpIfceProp aunBtOpIfceProp, void *apvVal)
This API gets different properties of different BT devices and services.
int BtrCore_BTUnRegisterMedia(void *apBtConn, const char *apBtAdapter, enBTDeviceType aenBTDevType, enBTMediaType aenBTMediaType)
This API is used to unregister the media device.
enum _enBTGattDescProp enBTGattDescProp
Bluetooth Gatt Descriptor properties.
enum _enBTGattCharProp enBTGattCharProp
Bluetooth Gatt characteristic properties.
int BtrCore_BTGetMediaPlayerProperty(void *apBtConn, const char *apBtObjectPath, const char *mediaProperty, void *mediaPropertyValue)
This API is used to get media player property value using the object path of BT device and media prop...
int BtrCore_BTChangeMediaFolder(void *apstBtIfceHdl, const char *apBtmediaPlayerObjectPath, const char *apBtdestMediaFolderPath)
This API is used to change from the current media folder path to another path.
int BtrCore_BTStartClassicDiscovery(void *apBtConn, const char *apBtAdapter, const char *apBtAgentPath)
This API is used to discover the Classic Bluetooth Devices.
#define BT_MAX_SERVICE_DATA_LEN
Bluetooth Advertising Service Data max length.
enum _enBTMediaPlayerProp enBTMediaPlayerProp
Bluetooth Media Player Properties.
enum _enBTMediaPlayerSubtype enBTMediaPlayerSubtype
Bluetooth Media Players' Subtype.
int BtrCore_BTGetAdapterList(void *apBtConn, unsigned int *apBtNumAdapters, char *apcArrBtAdapterPath[4])
This API obtains adapter list from Dbus object path.
_enBTMediaTransportProp
Bluetooth Media transport properties.
int BtrCore_BTUnRegisterLeGatt(void *apBtConn, const char *apBtAdapter)
This API is used to invoke the bluez API gatt service method call UnRegisterApplication.
enum _enBTAdapterOp enBTAdapterOp
Bluetooth Adapter operations.
enum _enBTGattCharFlagProp enBTGattCharFlagProp
Bluetooth Gatt characteristic Flag properties.
int BtrCore_BTStartDiscovery(void *apBtConn, const char *apBtAdapter, const char *apBtAgentPath)
This API is used to discover the Bluetooth adapter.
enum _enBTDeviceClass enBTDeviceClass
Bluetooth device classes.
_enBTGattCharFlagProp
Bluetooth Gatt characteristic Flag properties.
enum _enBTMediaPlayerRepeat enBTMediaPlayerRepeat
Bluetooth Media Players' Repeat States.
int BtrCore_BTGetTransportState(void *apBtConn, const char *apBtDataPath, void *state)
This API is used to get the state of the BT device .
_enBTMediaTransportState
Bluetooth Media transport states.
int BtrCore_BTIsDeviceConnectable(void *apBtConn, const char *apcDevPath)
This API is used to run device connectable command.
int BtrCore_BTDeInitReleaseConnection(void *apBtConn)
This API DeInitializes the Bluetooth core and releases the DBus connection.
int BtrCore_BTSetMediaProperty(void *apBtConn, const char *apBtAdapterPath, char *mediaProperty, char *pValue)
This API is used to set the media property of the BT device .
int BtrCore_BTGetTrackInformation(void *apBtConn, const char *apBtmediaPlayerObjectPath, stBTMediaTrackInfo *lpstBTMediaTrackInfo)
This API is used to retrieve the information about the track that is being played on BT media device.
_enBTOpType
Bluetooth device operation types.
_enBTMediaPlayerSubtype
Bluetooth Media Players' Subtype.
int BtrCore_BTDisconnectDevice(void *apBtConn, const char *apDevPath, enBTDeviceType aenBTDevType)
This API is used to diconnect a BT device.
enum _enBTMediaTransportProp enBTMediaTransportProp
Bluetooth Media transport properties.
_enBTMediaType
Bluetooth Media types.
enum _enBTMediaPlayerShuffle enBTMediaPlayerShuffle
Bluetooth Media Players' Shuffle State.
enum _enBTMediaItemType enBTMediaItemType
Bluetooth Media Items' Type.
#define BT_MAX_STR_LEN
Bluetooth max string length.
_enBTMediaFolderProp
Bluetooth Media Folder Properties.
enum _enBTOpType enBTOpIfceType
Bluetooth device operation types.
int BtrCore_BTReleaseAgentPath(void *apBtConn)
Using this API the path assigned to the Bluetooth Agent is released.
_enBTGattServiceProp
Bluetooth Gatt service properties.
#define BT_MAX_DEV_PATH_LEN
Bluetooth max device path length.
_enBTDeviceState
Bluetooth device state.
char * BtrCore_BTGetMediaPlayerPath(void *apBtConn, const char *apBtDevPath)
A Path is assigned to Media player using Bluetooth device path.
int BtrCore_BTFindServiceSupported(void *apBtConn, const char *apcDevPath, const char *apcSearchString, char *apcDataString)
This API is used to find all supported services and fetch the profiles of all those devices.
_enBTMediaPlayerShuffle
Bluetooth Media Players' Shuffle State.
_enBTMediaPlayerRepeat
Bluetooth Media Players' Repeat States.
enum _enBTLeGattOp enBTLeGattOp
Bluetooth Gatt operations.
#define BT_MAX_DEVICE_PROFILE
Bluetooth max number of device profiles that are allowed. Device Profiles are definitions of possible...
int BtrCore_BTSelectMediaFolderItems(void *apstBtIfceHdl, const char *apBtMediaPlayerObjectPath, unsigned int apBtMediaFolderStartIndex, unsigned int apBtMediaFolderEndIndex, const char *apBtMediaFilter, int apBtMediaFilterSize)
This API is used to list the media items in the current folder.
_enBTMediaPlayerEqualizer
Bluetooth Media Players' Equalizer State.
enum _enBTMediaPlayerType enBTMediaPlayerType
Bluetooth Media Players' Type.
int BtrCore_BTDiscoverDeviceServices(void *apBtConn, const char *apcDevPath, stBTDeviceSupportedServiceList *pProfileList)
This API is used to discover the supported services and fetch the profiles of all those devices.
int BtrCore_BTSendReceiveMessages(void *apBtConn)
This API is used to read, write and dispatch BT device information.