Bluetooth Driver services: Difference between revisions
No edit summary |
No edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 534: | Line 534: | ||
== TriggerConnection == | == TriggerConnection == | ||
Takes an input [[#Address]] and | Takes an input [[#Address]] and a u16 timeout, no output. | ||
This is used by [[BTM_services|btm]]. | This is used by [[BTM_services|btm]]. | ||
Line 541: | Line 541: | ||
The funcptr does the following: | The funcptr does the following: | ||
* Calls a func, returning the ret on failure. This uses a BSA extension (message 0x8CE), with the | * Calls a func, returning the ret on failure. This uses a BSA extension (message 0x8CE), with the u16 timeout being used with this. | ||
* Then another func is called, with the input [[#Address]], with the ret from here being returned. This throws an error if the device isn't paired. This opens a HID-Host connection to the specified [[#Address]]. The passed sec_mask is 0x12 (Inbound/outbound authentication required), and brcm_mask is set for enabling TBFC Page. | * Then another func is called, with the input [[#Address]], with the ret from here being returned. This throws an error if the device isn't paired. This opens a HID-Host connection to the specified [[#Address]]. The passed sec_mask is 0x12 (Inbound/outbound authentication required), and brcm_mask is set for enabling TBFC Page. | ||
The handler for the above message with the used bit flag does the following: | The handler for the above message with the used bit flag does the following: | ||
* Uses HCI vendor command 0xFCC2 with param_len=0xE. Param data: | * Uses HCI vendor command 0xFCC2 (TBFC Write Parameters) with param_len=0xE. Param data: u16 timeout value is inserted into the following tAPP_TM_TBFC_PARAM structure initialized with default values. The default host trigger timeout used elsewhere is 0x1800. | ||
{| class="wikitable" border="1" | |||
|- | |||
! Offset | |||
! Size | |||
! Description | |||
! Value | |||
|- | |||
| 0x0 | |||
| 0x1 | |||
| BfcEnable | |||
| 0x1 | |||
|- | |||
| 0x1 | |||
| 0x1 | |||
| Frequency1 | |||
| 0x0 | |||
|- | |||
| 0x2 | |||
| 0x1 | |||
| Frequency2 | |||
| 0x18 | |||
|- | |||
| 0x3 | |||
| 0x1 | |||
| Frequency3 | |||
| 0x4E | |||
|- | |||
| 0x4 | |||
| 0x1 | |||
| AccessCodeLength | |||
| 0x20 | |||
|- | |||
| 0x5 | |||
| 0x2 | |||
| HostScanInterval | |||
| 0x200 | |||
|- | |||
| 0x7 | |||
| 0x2 | |||
| HostTriggerTimeout | |||
| timeout | |||
|- | |||
| 0x9 | |||
| 0x2 | |||
| HidScanInterval | |||
| 0x200 | |||
|- | |||
| 0xB | |||
| 0x1 | |||
| HidScanRetry | |||
| 0x3 | |||
|- | |||
| 0xC | |||
| 0x1 | |||
| DontDisturb | |||
| 0x0 | |||
|- | |||
| 0xD | |||
| 0x1 | |||
| WakeUpMask | |||
| 0x0 | |||
|} | |||
== AddPairedDeviceInfo == | == AddPairedDeviceInfo == | ||
Line 2,297: | Line 2,359: | ||
| CYW4356A3_001.004.009.0092.0095 | | CYW4356A3_001.004.009.0092.0095 | ||
|- | |- | ||
| [15.0.0- | | [15.0.0-20.1.0] | ||
| BSA0106_01.60.00_ | | BSA0106_01.60.00_ | ||
| Hayward_T3_RC_20210224 | | Hayward_T3_RC_20210224 |