Share via


BUILD_IO_RW_EXTENDED_ARG (Compact 2013)

3/26/2014

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

Syntax

DWORD BUILD_IO_RW_EXTENDED_ARG(
    Read_Write,
    BlockMode,
    Function,
    Address,
    IncrementAddress,
    Count
);

Parameters

  • Read_Write
    [in] Set to SD_IO_OP_WRITE or SD_IO_OP_READ.
  • BlockMode
    [in] Set to SD_IO_BLOCK_MODE or SD_IO_BYTE_MODE.
  • Function
    [in] 3-bit function number.
  • Address
    [in] 17-bit register address.
  • IncrementAddress
    [in] Set to SD_IO_INCREMENT_ADDRESS or SD_IO_FIXED_ADDRESS.
  • Count
    [IN] 9-bit byte or block count.

Return Value

Returns a 32-bit argument for an extended I/O operation.

Requirements

Header

sdcard.h

See Also

Reference

Secure Digital (SD) Card Driver Macros