Line 68: |
Line 68: |
| | 27 || [5.1.0+] [[#StopBleScanForGeneral]] | | | 27 || [5.1.0+] [[#StopBleScanForGeneral]] |
| |- | | |- |
− | | 28 || [5.1.0+] GetBleScanResultsForGeneral | + | | 28 || [5.1.0+] [[#GetBleScanResultsForGeneral]] |
| |- | | |- |
− | | 29 || [5.1.0+] StartBleScanForPairedDevice | + | | 29 || [5.1.0+] [[#StartBleScanForPairedDevice]] |
| |- | | |- |
− | | 30 || [5.1.0+] StopBleScanForPairedDevice | + | | 30 || [5.1.0+] [[#StopBleScanForPairedDevice]] |
| |- | | |- |
− | | 31 || [5.1.0+] StartBleScanForSmartDevice | + | | 31 || [5.1.0+] [[#StartBleScanForSmartDevice]] |
| |- | | |- |
− | | 32 || [5.1.0+] StopBleScanForSmartDevice | + | | 32 || [5.1.0+] [[#StopBleScanForSmartDevice]] |
| |- | | |- |
− | | 33 || [5.1.0+] GetBleScanResultsForSmartDevice | + | | 33 || [5.1.0+] [[#GetBleScanResultsForSmartDevice]] |
| |- | | |- |
− | | 34 || [5.1.0+] AcquireBleConnectionEvent | + | | 34 || [5.1.0+] [[#AcquireBleConnectionEvent]] |
| |- | | |- |
| | 35 ([5.0.0-5.0.2] 24) || [5.0.0+] [[#BleConnect]] | | | 35 ([5.0.0-5.0.2] 24) || [5.0.0+] [[#BleConnect]] |
| |- | | |- |
− | | 36 || [5.1.0+] BleOverrideConnection | + | | 36 || [5.1.0+] [[#BleOverrideConnection]] |
| |- | | |- |
| | 37 ([5.0.0-5.0.2] 25) || [5.0.0+] [[#BleDisconnect]] | | | 37 ([5.0.0-5.0.2] 25) || [5.0.0+] [[#BleDisconnect]] |
Line 238: |
Line 238: |
| == StopBleScanForGeneral == | | == StopBleScanForGeneral == |
| No input/output. | | No input/output. |
| + | |
| + | == GetBleScanResultsForGeneral == |
| + | Takes a type-0x6 output buffer containing an array of [[Bluetooth_Driver_services#BleScanResult|BleScanResult]], returns an output u8 total_out. |
| + | |
| + | The max array entries is 10. |
| + | |
| + | == StartBleScanForPaired == |
| + | Takes a [[Bluetooth_Driver_services#BleAdvertisePacketParameter|BleAdvertisePacketParameter]], no output. |
| + | |
| + | == StopBleScanForPaired == |
| + | No input/output. |
| + | |
| + | == StartBleScanForSmartDevice == |
| + | Takes a [[Bluetooth_Driver_services#GattAttributeUuid|GattAttributeUuid]], no output. |
| + | |
| + | == StopBleScanForSmartDevice == |
| + | No input/output. |
| + | |
| + | == GetBleScanResultsForSmartDevice == |
| + | Takes a type-0x6 output buffer containing an array of [[Bluetooth_Driver_services#BleScanResult|BleScanResult]], returns an output u8 total_out. |
| + | |
| + | The max array entries is 10. |
| + | |
| + | == AcquireBleConnectionEvent == |
| + | No input, returns an output u8 and an Event handle with EventClearMode=1. |
| | | |
| == BleConnect == | | == BleConnect == |
| Takes an input [[Bluetooth_Driver_services#Address|Address]], no output. | | Takes an input [[Bluetooth_Driver_services#Address|Address]], no output. |
| + | |
| + | == BleOverrideConnection == |
| + | Takes an input u32, no output. |
| + | |
| + | The u32 is the same as the param for [[#BleDisconnect]]. |
| | | |
| == BleDisconnect == | | == BleDisconnect == |
Line 480: |
Line 510: |
| | 4 || [[#StopBleScanForGeneral_2|StopBleScanForGeneral]] | | | 4 || [[#StopBleScanForGeneral_2|StopBleScanForGeneral]] |
| |- | | |- |
− | | 5 || [[#GetBleScanResultsForGeneral]] | + | | 5 || [[#GetBleScanResultsForGeneral_2|GetBleScanResultsForGeneral]] |
| |- | | |- |
− | | 6 || [[#StartBleScanForPaired]] | + | | 6 || [[#StartBleScanForPaired_2|StartBleScanForPaired]] |
| |- | | |- |
− | | 7 || [[#StopBleScanForPaired]] | + | | 7 || [[#StopBleScanForPaired_2|StopBleScanForPaired]] |
| |- | | |- |
− | | 8 || [[#StartBleScanForSmartDevice]] | + | | 8 || [[#StartBleScanForSmartDevice_2|StartBleScanForSmartDevice]] |
| |- | | |- |
− | | 9 || [[#StopBleScanForSmartDevice]] | + | | 9 || [[#StopBleScanForSmartDevice_2|StopBleScanForSmartDevice]] |
| |- | | |- |
− | | 10 || [[#GetBleScanResultsForSmartDevice]] | + | | 10 || [[#GetBleScanResultsForSmartDevice_2|GetBleScanResultsForSmartDevice]] |
| |- | | |- |
− | | 17 || [[#AcquireBleConnectionEvent]] | + | | 17 || [[#AcquireBleConnectionEvent_2|AcquireBleConnectionEvent]] |
| |- | | |- |
| | 18 || [[#BleConnect_2|BleConnect]] | | | 18 || [[#BleConnect_2|BleConnect]] |
Line 563: |
Line 593: |
| Takes a PID, a type-0x6 output buffer containing an array of [[Bluetooth_Driver_services#BleScanResult|BleScanResult]], an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns an output u8 total_out. | | Takes a PID, a type-0x6 output buffer containing an array of [[Bluetooth_Driver_services#BleScanResult|BleScanResult]], an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns an output u8 total_out. |
| | | |
− | The max array entries is 10.
| + | This is similar to the [[#GetBleScanResultsForGeneral|btm]] cmd. |
| | | |
| === StartBleScanForPaired === | | === StartBleScanForPaired === |
| Takes a PID, a [[Bluetooth_Driver_services#BleAdvertisePacketParameter|BleAdvertisePacketParameter]], an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | | Takes a PID, a [[Bluetooth_Driver_services#BleAdvertisePacketParameter|BleAdvertisePacketParameter]], an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. |
| + | |
| + | This is similar to the [[#StartBleScanForPaired|btm]] cmd. |
| | | |
| === StopBleScanForPaired === | | === StopBleScanForPaired === |
| No input/output. | | No input/output. |
| + | |
| + | This is similar to the [[#StopBleScanForPaired|btm]] cmd. |
| | | |
| === StartBleScanForSmartDevice === | | === StartBleScanForSmartDevice === |
| Takes a PID, a [[Bluetooth_Driver_services#GattAttributeUuid|GattAttributeUuid]], an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | | Takes a PID, a [[Bluetooth_Driver_services#GattAttributeUuid|GattAttributeUuid]], an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. |
| + | |
| + | This is similar to the [[#StartBleScanForSmartDevice|btm]] cmd. |
| | | |
| === StopBleScanForSmartDevice === | | === StopBleScanForSmartDevice === |
| No input/output. | | No input/output. |
| + | |
| + | This is similar to the [[#StopBleScanForSmartDevice|btm]] cmd. |
| | | |
| === GetBleScanResultsForSmartDevice === | | === GetBleScanResultsForSmartDevice === |
| Takes a PID, a type-0x6 output buffer containing an array of [[Bluetooth_Driver_services#BleScanResult|BleScanResult]], an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns an output u8 total_out. | | Takes a PID, a type-0x6 output buffer containing an array of [[Bluetooth_Driver_services#BleScanResult|BleScanResult]], an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns an output u8 total_out. |
| | | |
− | The max array entries is 10.
| + | This is similar to the [[#GetBleScanResultsForSmartDevice|btm]] cmd. |
| | | |
| === AcquireBleConnectionEvent === | | === AcquireBleConnectionEvent === |
| No input, returns an output u8 and an Event handle with EventClearMode=1. | | No input, returns an output u8 and an Event handle with EventClearMode=1. |
| + | |
| + | This is similar to the [[#AcquireBleConnectionEvent|btm]] cmd. |
| | | |
| sdknso will Abort if the output u8 is value 0. | | sdknso will Abort if the output u8 is value 0. |