-
Notifications
You must be signed in to change notification settings - Fork 2
/
sink_device_id.h
34 lines (26 loc) · 1.44 KB
/
sink_device_id.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/****************************************************************************
Copyright (C) Cambridge Silicon Radio Ltd. 2011 - 2015.
*/
/*!
@file sink_device_id.h
@brief Interface to the sink Device Id profile functions.
*/
#ifndef _SINK_DEVICE_ID_H_
#define _SINK_DEVICE_ID_H_
#define VENDOR_ID_SOURCE_BT_SIG 0x0001 /* Indicates the Vendor Id has been assigned by the Bluetooth Special Interest Group */
#define VENDOR_ID_SOURCE_USB_IF 0x0002 /* Indicates the Vendor Id has been assigned by the USB Implementers Forum */
#define VENDOR_ID_SOURCE_UNDEFINED 0xFFFF
/* If DEVICE_ID_CONST is defined, the registered Device Id service record will use the following defines */
#define DEVICE_ID_VENDOR_ID_SOURCE VENDOR_ID_SOURCE_UNDEFINED
#define DEVICE_ID_VENDOR_ID 0xFFFF /* As assigned by the appropriate source */
#define DEVICE_ID_PRODUCT_ID 0xFFFF /* Customer specific */
#define DEVICE_ID_BCD_VERSION 0xFFFF /* Where 0xABCD = vAB.C.D */
bool RequestRemoteDeviceId (Task task, const bdaddr *bd_addr);
remote_device CheckRemoteDeviceId (const uint8 *attr_data, uint16 attr_data_size);
void RegisterDeviceIdServiceRecord( void );
uint16 GetDeviceIdEirDataSize( void );
uint16 WriteDeviceIdEirData( uint8 *p );
bool CheckEirDeviceIdData (uint16 size_eir_data, const uint8 *eir_data);
void ValidatePeerUseDeviceIdFeature(void);
void GetDeviceIdFullVersion(uint16 *buffer);
#endif