Bluetooth Driver services: Difference between revisions

No edit summary
Line 688: Line 688:


== ReadGattCharacteristic ==
== ReadGattCharacteristic ==
Takes an input bool, an u8, an u32, a [[#GattId]], a [[#GattId]], no output.
Takes an input bool PrimaryService, an u8, an u32 ConnectionHandle, a [[#GattId]], a [[#GattId]], no output.


This is used by [[HID_services|hid]] and [[BTM_services|btm]].
This is used by [[HID_services|hid]] and [[BTM_services|btm]].


== ReadGattDescriptor ==
== ReadGattDescriptor ==
Takes an input bool, an u8, an u32, a [[#GattId]], a [[#GattId]], a [[#GattId]], no output.
Takes an input bool PrimaryService, an u8, an u32 ConnectionHandle, a [[#GattId]], a [[#GattId]], a [[#GattId]], no output.


This is used by [[HID_services|hid]].
This is used by [[HID_services|hid]].


== WriteGattCharacteristic ==
== WriteGattCharacteristic ==
Takes a type-0x9 input buffer, a bool, an u8, a bool, an u32, a [[#GattId]], a [[#GattId]], no output.
Takes a type-0x9 input buffer, a bool PrimaryService, an u8, a bool, an u32 ConnectionHandle, a [[#GattId]], a [[#GattId]], no output.


The buffer size must be <=0x258.
The buffer size must be <=0x258.
Line 705: Line 705:


== WriteGattDescriptor ==
== WriteGattDescriptor ==
Takes a type-0x9 input buffer, a bool, an u8, an u32, a [[#GattId]], a [[#GattId]], a [[#GattId]], no output.
Takes a type-0x9 input buffer, a bool PrimaryService, an u8, an u32 ConnectionHandle, a [[#GattId]], a [[#GattId]], a [[#GattId]], no output.


The buffer size must be <=0x258.
The buffer size must be <=0x258.
Line 712: Line 712:


== RegisterGattNotification ==
== RegisterGattNotification ==
Takes an input bool, an u32, a [[#GattId]], a [[#GattId]], no output.
Takes an input bool, an u32 ConnectionHandle, a [[#GattId]], a [[#GattId]], no output.


This is used by [[HID_services|hid]] and [[BTM_services|btm]].
This is used by [[HID_services|hid]] and [[BTM_services|btm]].


== UnregisterGattNotification ==
== UnregisterGattNotification ==
Takes an input bool, an u32, a [[#GattId]], a [[#GattId]], no output.
Takes an input bool, an u32 ConnectionHandle, a [[#GattId]], a [[#GattId]], no output.


This is used by [[HID_services|hid]].
This is used by [[HID_services|hid]].
Line 1,068: Line 1,068:
! Description
! Description
|-
|-
| 0x0 || 0x4 || Id, 0xFFFFFFFF ([5.0.0-5.0.2] 0xFFFF) is invalid.
| 0x0 || 0x4 || ConnectionHandle, 0xFFFFFFFF ([5.0.0-5.0.2] 0xFFFF) is invalid.
|-
|-
| 0x4 || 0x6 || [[#Address]]
| 0x4 || 0x6 || [[#Address]]