Changes

Jump to navigation Jump to search
826 bytes added ,  00:16, 3 August 2020
Line 370: Line 370:  
=== GetBleScanResultsForGeneral ===
 
=== GetBleScanResultsForGeneral ===
 
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.
    
=== StartBleScanForPaired ===
 
=== StartBleScanForPaired ===
Line 385: Line 387:  
=== 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.
    
=== AcquireBleConnectionEvent ===
 
=== AcquireBleConnectionEvent ===
Line 393: Line 397:  
=== BleConnect ===
 
=== BleConnect ===
 
Takes a PID, an [[Bluetooth_Driver_services#Address|Address]], an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output.
 
Takes a PID, an [[Bluetooth_Driver_services#Address|Address]], an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output.
 +
 +
An error is thrown if the [[Bluetooth_Driver_services#Address|Address]] is already connected (listed in the [[Bluetooth_Driver_services#BleConnectionInfo|BleConnectionInfo]] from [[#BleGetConnectionState]]). An error is thrown if 4 [[#BleGetConnectionState|devices]] are already connected.
    
=== BleDisconnect ===
 
=== BleDisconnect ===
 
Takes an input u32, no output.
 
Takes an input u32, no output.
 +
 +
The u32 must match an Id in a [[Bluetooth_Driver_services#BleConnectionInfo|BleConnectionInfo]] from [[#BleGetConnectionState]] (0xFFFFFFFF is invalid). However, the error is immediately thrown on mismatch, therefore the Id has to match the first [[Bluetooth_Driver_services#BleConnectionInfo|BleConnectionInfo]].
    
=== BleGetConnectionState ===
 
=== BleGetConnectionState ===
 
Takes a PID, a type-0xA output buffer containing an array of [[Bluetooth_Driver_services#BleConnectionInfo|BleConnectionInfo]], an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns an output u8 total_out.
 
Takes a PID, a type-0xA output buffer containing an array of [[Bluetooth_Driver_services#BleConnectionInfo|BleConnectionInfo]], an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns an output u8 total_out.
 +
 +
Other cmds which use this internally use arraycount=4.
    
=== AcquireBlePairingEvent ===
 
=== AcquireBlePairingEvent ===
Line 407: Line 417:  
=== BlePairDevice ===
 
=== BlePairDevice ===
 
Takes an input [[Bluetooth_Driver_services#BleAdvertisePacketParameter|BleAdvertisePacketParameter]] and an u32, no output.
 
Takes an input [[Bluetooth_Driver_services#BleAdvertisePacketParameter|BleAdvertisePacketParameter]] and an u32, no output.
 +
 +
The u32 is handled the same as [[#BleDisconnect]].
    
=== BleUnPairDevice ===
 
=== BleUnPairDevice ===
 
Takes an input [[Bluetooth_Driver_services#BleAdvertisePacketParameter|BleAdvertisePacketParameter]] and an u32, no output.
 
Takes an input [[Bluetooth_Driver_services#BleAdvertisePacketParameter|BleAdvertisePacketParameter]] and an u32, no output.
 +
 +
The u32 is handled the same as [[#BleDisconnect]].
    
=== BleUnPairDevice2 ===
 
=== BleUnPairDevice2 ===

Navigation menu