BUILD_IO_RW_DIRECT_ARG (Windows CE 5.0)
This macro builds a 32-bit argument for a direct I/O operation.
DWORD BUILD_IO_RW_DIRECT_ARG(RWFlag,
RAW,
Function,
Address,
Data);
Parameters
- RWFlag
[in] Set to SD_IO_OP_WRITE or SD_IO_OP_READ. - RAW
[in] Set to SD_IO_RW_NORMAL or SD_IO_RW_RAW. - Function
[in] 3-bit function number. - Address
[in] 17-bit register address. - Data
[in] 8-bit write data. Should be zero for a read operation.
Return Values
Returns a 32-bit argument for a Direct I/O operation.
Remarks
The SDReadWriteRegistersDirect function provides a more convenient method for performing direct I/O reads and writes.
Requirements
OS Versions: Windows CE 5.0 and later.
Header: Sdcard.h.
See Also
Secure Digital Card Driver Macros | SDReadWriteRegistersDirect
Send Feedback on this topic to the authors