28.1.2.11 mci_os_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_os_adtc_start(
struct mci_os_desc *const desc,
uint32_t cmd,
uint32_t arg,
uint16_t block_size,
uint16_t nb_block,
bool access_block
)
Parameters
- desc
-
Type: struct mci_os_desc Struct *const
Mci os descriptor
- 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 block 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