次の方法で共有


BUILD_IO_RW_DIRECT_ARG (Compact 2013)

3/26/2014

This macro builds a 32-bit argument for a direct I/O operation.

Syntax

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 Value

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

Header

sdcard.h

See Also

Reference

Secure Digital (SD) Card Driver Macros
SDReadWriteRegistersDirect