XenevaOS
Loading...
Searching...
No Matches
BluetoothAttribute.h
Go to the documentation of this file.
1
20#ifndef __EFI_BLUETOOTH_ATTRIBUTE_H__
21#define __EFI_BLUETOOTH_ATTRIBUTE_H__
22
23#define EFI_BLUETOOTH_ATTRIBUTE_SERVICE_BINDING_PROTOCOL_GUID \
24 { \
25 0x5639867a, 0x8c8e, 0x408d, { 0xac, 0x2f, 0x4b, 0x61, 0xbd, 0xc0, 0xbb, 0xbb } \
26 }
27
28#define EFI_BLUETOOTH_ATTRIBUTE_PROTOCOL_GUID \
29 { \
30 0x898890e9, 0x84b2, 0x4f3a, { 0x8c, 0x58, 0xd8, 0x57, 0x78, 0x13, 0xe0, 0xac } \
31 }
32
34
35#pragma pack(1)
36
37//
38// Bluetooth UUID
39//
40typedef struct {
42 union {
45 UINT8 Uuid128[16];
46 } Data;
48
49
50#define UUID_16BIT_TYPE_LEN 2
51#define UUID_32BIT_TYPE_LEN 4
52#define UUID_128BIT_TYPE_LEN 16
53
54#define BLUETOOTH_IS_ATTRIBUTE_OF_TYPE(a,t) ((a)->Type.Length == UUID_16BIT_TYPE_LEN && (a)->Type.Data.Uuid16 == (t))
55
56//
57// Bluetooth Attribute Permission
58//
76
83
89
96
103
108
109#pragma pack()
110
114
118
127
136
150typedef
154 IN VOID *Data,
155 IN UINTN DataLength,
157 );
158
184typedef
188 IN VOID *Data,
189 IN UINTN DataLength,
192 );
193
215typedef
222 );
223
238typedef
242 OUT UINTN *ServiceInfoSize,
243 OUT VOID **ServiceInfo
244 );
245
263typedef
267 OUT UINTN *DeviceInfoSize,
268 OUT VOID **DeviceInfo
269 );
270
277
278
281
282#endif
283
UINT64 UINTN
Definition ProcessorBind.h:118
#define EFIAPI
Definition ProcessorBind.h:172
unsigned int UINT32
Definition ProcessorBind.h:102
#define IN
Definition Base.h:347
#define OUT
Definition Base.h:352
EFI_STATUS(EFIAPI * EFI_BLUETOOTH_ATTRIBUTE_GET_DEVICE_INFO)(IN EFI_BLUETOOTH_ATTRIBUTE_PROTOCOL *This, OUT UINTN *DeviceInfoSize, OUT VOID **DeviceInfo)
Definition BluetoothAttribute.h:265
EFI_GUID gEfiBluetoothAttributeServiceBindingProtocolGuid
EFI_STATUS(EFIAPI * EFI_BLUETOOTH_ATTRIBUTE_GET_SERVICE_INFO)(IN EFI_BLUETOOTH_ATTRIBUTE_PROTOCOL *This, OUT UINTN *ServiceInfoSize, OUT VOID **ServiceInfo)
Definition BluetoothAttribute.h:240
EFI_STATUS(EFIAPI * EFI_BLUETOOTH_ATTRIBUTE_REGISTER_FOR_SERVER_NOTIFICATION)(IN EFI_BLUETOOTH_ATTRIBUTE_PROTOCOL *This, IN EFI_BLUETOOTH_ATTRIBUTE_CALLBACK_PARAMETER *CallbackParameter, IN EFI_BLUETOOTH_ATTRIBUTE_CALLBACK_FUNCTION Callback, IN VOID *Context)
Definition BluetoothAttribute.h:217
EFI_STATUS(EFIAPI * EFI_BLUETOOTH_ATTRIBUTE_CALLBACK_FUNCTION)(IN EFI_BLUETOOTH_ATTRIBUTE_PROTOCOL *This, IN VOID *Data, IN UINTN DataLength, IN VOID *Context)
Definition BluetoothAttribute.h:152
EFI_GUID gEfiBluetoothAttributeProtocolGuid
EFI_STATUS(EFIAPI * EFI_BLUETOOTH_ATTRIBUTE_SEND_REQUEST)(IN EFI_BLUETOOTH_ATTRIBUTE_PROTOCOL *This, IN VOID *Data, IN UINTN DataLength, IN EFI_BLUETOOTH_ATTRIBUTE_CALLBACK_FUNCTION Callback, IN VOID *Context)
Definition BluetoothAttribute.h:186
RETURN_STATUS EFI_STATUS
Definition UefiBaseType.h:33
#define VOID
Definition acefi.h:190
UINT32 void * Context
Definition acevents.h:322
unsigned short UINT16
Definition actypes.h:237
unsigned char UINT8
Definition actypes.h:236
Definition Bluetooth.h:44
UINT16 AttributeHandle
Definition BluetoothAttribute.h:116
UINT16 AttributeHandle
Definition BluetoothAttribute.h:112
Definition BluetoothAttribute.h:119
UINT8 AttributeOpCode
Definition BluetoothAttribute.h:121
EFI_BLUETOOTH_ATTRIBUTE_CALLBACK_PARAMETER_INDICATION Indication
Definition BluetoothAttribute.h:124
UINT32 Version
Definition BluetoothAttribute.h:120
EFI_BLUETOOTH_ATTRIBUTE_CALLBACK_PARAMETER_NOTIFICATION Notification
Definition BluetoothAttribute.h:123
Definition BluetoothAttribute.h:77
EFI_BLUETOOTH_UUID Type
Definition BluetoothAttribute.h:78
EFI_BLUETOOTH_ATTRIBUTE_PERMISSION AttributePermission
Definition BluetoothAttribute.h:81
UINT16 AttributeHandle
Definition BluetoothAttribute.h:80
UINT16 Length
Definition BluetoothAttribute.h:79
Definition BluetoothAttribute.h:104
EFI_BLUETOOTH_UUID CharacteristicDescriptorUuid
Definition BluetoothAttribute.h:106
EFI_BLUETOOTH_ATTRIBUTE_HEADER Header
Definition BluetoothAttribute.h:105
Definition BluetoothAttribute.h:97
EFI_BLUETOOTH_ATTRIBUTE_HEADER Header
Definition BluetoothAttribute.h:98
UINT8 CharacteristicProperties
Definition BluetoothAttribute.h:99
EFI_BLUETOOTH_UUID CharacteristicUuid
Definition BluetoothAttribute.h:101
UINT16 CharacteristicValueHandle
Definition BluetoothAttribute.h:100
Definition BluetoothAttribute.h:90
EFI_BLUETOOTH_ATTRIBUTE_HEADER Header
Definition BluetoothAttribute.h:91
UINT16 StartGroupHandle
Definition BluetoothAttribute.h:92
UINT16 EndGroupHandle
Definition BluetoothAttribute.h:93
EFI_BLUETOOTH_UUID ServiceUuid
Definition BluetoothAttribute.h:94
Definition BluetoothAttribute.h:84
EFI_BLUETOOTH_UUID ServiceUuid
Definition BluetoothAttribute.h:87
EFI_BLUETOOTH_ATTRIBUTE_HEADER Header
Definition BluetoothAttribute.h:85
UINT16 EndGroupHandle
Definition BluetoothAttribute.h:86
Definition BluetoothAttribute.h:128
BLUETOOTH_LE_ADDRESS DirectAddress
Definition BluetoothAttribute.h:131
UINT32 Version
Definition BluetoothAttribute.h:129
VOID * AdvertisementData
Definition BluetoothAttribute.h:134
UINTN AdvertisementDataSize
Definition BluetoothAttribute.h:133
UINT8 RSSI
Definition BluetoothAttribute.h:132
BLUETOOTH_LE_ADDRESS BD_ADDR
Definition BluetoothAttribute.h:130
Definition BluetoothAttribute.h:40
UINT16 Uuid16
Definition BluetoothAttribute.h:43
UINT32 Uuid32
Definition BluetoothAttribute.h:44
UINT8 Length
Definition BluetoothAttribute.h:41
Definition Base.h:281
Definition BluetoothAttribute.h:271
EFI_BLUETOOTH_ATTRIBUTE_REGISTER_FOR_SERVER_NOTIFICATION RegisterForServerNotification
Definition BluetoothAttribute.h:273
EFI_BLUETOOTH_ATTRIBUTE_GET_DEVICE_INFO GetDeviceInfo
Definition BluetoothAttribute.h:275
EFI_BLUETOOTH_ATTRIBUTE_SEND_REQUEST SendRequest
Definition BluetoothAttribute.h:272
EFI_BLUETOOTH_ATTRIBUTE_GET_SERVICE_INFO GetServiceInfo
Definition BluetoothAttribute.h:274
Definition BluetoothAttribute.h:59
UINT16 Writeable
Definition BluetoothAttribute.h:67
UINT16 WriteAuthentication
Definition BluetoothAttribute.h:69
UINT16 ReadAuthentication
Definition BluetoothAttribute.h:63
UINT16 WriteKeySize
Definition BluetoothAttribute.h:71
UINT16 WriteEncryption
Definition BluetoothAttribute.h:68
UINT16 WriteAuthorization
Definition BluetoothAttribute.h:70
UINT16 ReadAuthorization
Definition BluetoothAttribute.h:64
UINT16 Reserved2
Definition BluetoothAttribute.h:72
UINT16 Readable
Definition BluetoothAttribute.h:61
UINT32 Data32
Definition BluetoothAttribute.h:74
UINT16 ReadEncryption
Definition BluetoothAttribute.h:62
UINT16 Reserved1
Definition BluetoothAttribute.h:66
UINT16 ReadKeySize
Definition BluetoothAttribute.h:65