User manual
SCM3712 REFERENCE MANUAL 72
8.8.4.3. Output Buffer
NULL.
8.8.4.4. Return Value
Return Value
Value
Description
ERROR _SUCCESS 0 Successful execution
ERROR_GEN_FAILURE 31 Operation failed
ERROR_INSUFFICIENT_BUFFER 122 Input or output buffer too small
P2P Target Mode IOCTLs
8.8.5. IOCTL_TARGET_RECEIVE
8.8.5.1. Description
This IOCTL is used by the application to receive the data from the target device.
The target firmware / driver would do the following
- Automatically switch to P2P mode if the device is not in P2P mode. For this the target
parameters that are required to initialize the target must be sent by the application
through this IOCTL.
- Automatically send the response data to the initiator device for any incoming
connection requests. Based on the Status byte of the IOCTL_TARGET_RECEIVE,
the application can decide whether to send IOCTL_TARGET_SEND or not.
- Receive timeout can be specified in milliseconds in the range of 1000ms to 5000ms in
the input buffer offsets 27 and 28. If this parameter is 0, the firmware / driver would
use default receive timeout of 1000ms.