BTM services: Difference between revisions
No edit summary |
No edit summary |
||
Line 307: | Line 307: | ||
=== AcquireBleScanEvent === | === AcquireBleScanEvent === | ||
No input, returns an output Event handle. | No input, returns an output Event handle with EventClearMode=1. | ||
=== GetBleScanFilterParameter === | === GetBleScanFilterParameter === | ||
Takes an input u16, returns | Takes an input u16, returns a [[#BleAdvertisePacketParameter]]. | ||
=== GetBleScanFilterParameter2 === | === GetBleScanFilterParameter2 === | ||
Takes an input u16, returns | Takes an input u16, returns a [[#GattAttributeUuid]]. | ||
=== StartBleScanForGeneral === | === StartBleScanForGeneral === | ||
Takes a PID, a [[#BleAdvertisePacketParameter]], an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], no output. | |||
=== StopBleScanForGeneral === | === StopBleScanForGeneral === | ||
No input/output. | |||
=== GetBleScanResultsForGeneral === | === GetBleScanResultsForGeneral === | ||
Takes a PID, a type-0x6 output buffer containing an array of [[#BleScanResult]], an [[Applet_Manager_services#AppletResourceUserId|AppletResourceUserId]], returns an output u8. | |||
=== StartBleScanForPaired === | === StartBleScanForPaired === | ||
Line 371: | Line 374: | ||
=== UnregisterBleGattDataPath === | === UnregisterBleGattDataPath === | ||
= BleAdvertisePacketParameter = | |||
This is "nn::bluetooth::BleAdvertisePacketParameter". This is a 8-byte struct with 1-byte alignment. | |||
= GattAttributeUuid = | |||
This is "nn::bluetooth::GattAttributeUuid". This is a 0x14-byte struct with 4-byte alignment. | |||
= BleScanResult = | |||
This is "nn::bluetooth::BleScanResult". This is a 0x148-byte struct. | |||
[[Category:Services]] | [[Category:Services]] |