mci_sync_adtc_start

Send an ADTC command on the selected slot. An ADTC (Addressed Data Transfer Commands) command is used for read/write access.

bool mci_sync_adtc_start(
    struct mci_sync_desc * mci,
    uint32_t cmd,
    uint32_t arg,
    uint16_t block_size,
    uint16_t nb_block,
    bool access_block
)

Parameters

cmd

Type: uint32_t

Command definition.

arg

Type: uint32_t

Argument of the command.

block_size

Type: uint16_t

Block size used for the transfer.

nb_block

Type: uint16_t

Total number of blocks for this transfer

access_block

Type: bool

If true, the x_read_blocks() and x_write_blocks() functions must be used after this function. If false, the mci_read_word() and mci_write_word() functions must be used after this function.

Returns

Type: bool

True if success, otherwise false