sdioemb_cmd Struct Reference
[SDIO function driver API]

#include <sdio_api.h>


Data Fields

struct sdioemb_devowner
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


Detailed Description

An SDIO command, its status and response.

sdio_cmd is used to submit SDIO commands to a device and return its status and any response or data.


Field Documentation

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.

Parameters:
cmd the completed command.

Referenced by sdioemb_cmd_complete().

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().

SDIO command parameters and response.

Valid only if SDIOEMB_CMD_FLAG_CSPI is not set in flags.

CSPI command parameters and response.

Valid only if SDIOEMB_CMD_FLAG_CSPI is set in flags.

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().

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().

Data private to caller of sdioemb_start_cmd().


The documentation for this struct was generated from the following file:

Generated on Wed Oct 27 15:18:12 2010 for sdioemb by  doxygen 1.5.5