#include <sdio_api.h>
Data Fields | |
struct sdioemb_dev * | owner |
void(* | callback )(struct sdioemb_cmd *cmd) |
unsigned | flags |
struct sdioemb_cmd_resp | sdio |
struct cspi_cmd_resp | cspi |
uint8_t * | data |
size_t | len |
enum sdioemb_cmd_status | status |
void * | priv |
sdio_cmd is used to submit SDIO commands to a device and return its status and any response or data.
struct sdioemb_dev* sdioemb_cmd::owner [read] |
The SDIO device which submitted the command. Set by the core.
Referenced by sdioemb_start_cmd().
void(* sdioemb_cmd::callback)(struct sdioemb_cmd *cmd) |
Called by the core when the command has been completed.
Called in: interrupt context.
cmd | the completed command. |
Referenced by sdioemb_cmd_complete().
unsigned sdioemb_cmd::flags |
Set of flags specifying the response type, data transfer direction and other parameters.
For SDIO commands set at least one of the response types:
and any of the additional flags:
For CSPI commands set:
Referenced by sdioemb_cmd_complete().
struct sdioemb_cmd_resp sdioemb_cmd::sdio [read] |
SDIO command parameters and response.
Valid only if SDIOEMB_CMD_FLAG_CSPI is not set in flags.
struct cspi_cmd_resp sdioemb_cmd::cspi [read] |
CSPI command parameters and response.
Valid only if SDIOEMB_CMD_FLAG_CSPI is set in flags.
uint8_t* sdioemb_cmd::data |
Buffer of data to read or write.
Must be set to NULL if the command is not a data transfer.
Referenced by sdioemb_start_cmd().
size_t sdioemb_cmd::len |
Length of data in octets.
len must be either: less than the device's sdio_dev::blocksize; or a multiple of the device's sdio_dev::blocksize.
Referenced by sdioemb_start_cmd().
Status of the command after it has completed.
Referenced by sdioemb_cmd_complete().
void* sdioemb_cmd::priv |
Data private to caller of sdioemb_start_cmd().