|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
Driver Operations SDHC driver operations More...
#include <zephyr/drivers/sdhc.h>
Data Fields | |
| int(* | reset )(const struct device *dev) |
| OPT reset SDHC controller state | |
| int(* | request )(const struct device *dev, struct sdhc_command *cmd, struct sdhc_data *data) |
| REQ Send command to SDHC. | |
| int(* | set_io )(const struct device *dev, struct sdhc_io *ios) |
| REQ set I/O properties of SDHC | |
| int(* | get_card_present )(const struct device *dev) |
| REQ check for SDHC card presence | |
| int(* | execute_tuning )(const struct device *dev) |
| OPT run SDHC tuning | |
| int(* | card_busy )(const struct device *dev) |
| REQ check if SD card is busy | |
| int(* | get_host_props )(const struct device *dev, struct sdhc_host_props *props) |
| REQ Get SD host controller properties. | |
| int(* | enable_interrupt )(const struct device *dev, sdhc_interrupt_cb_t callback, int sources, void *user_data) |
| OPT Enable SDHC interrupt sources. | |
| int(* | disable_interrupt )(const struct device *dev, int sources) |
| OPT Disable SDHC interrupt sources. | |
Driver Operations SDHC driver operations
This is the driver API structure any SDHC driver needs to define. It contains function pointers to the operations the driver implements, as well as any other driver-specific constant data.
Members marked with REQ MUST be set by the driver, whereas those marked with OPT are optional.
| int(* sdhc_driver_api::card_busy) (const struct device *dev) |
REQ check if SD card is busy
| int(* sdhc_driver_api::disable_interrupt) (const struct device *dev, int sources) |
OPT Disable SDHC interrupt sources.
| int(* sdhc_driver_api::enable_interrupt) (const struct device *dev, sdhc_interrupt_cb_t callback, int sources, void *user_data) |
OPT Enable SDHC interrupt sources.
| int(* sdhc_driver_api::execute_tuning) (const struct device *dev) |
OPT run SDHC tuning
| int(* sdhc_driver_api::get_card_present) (const struct device *dev) |
REQ check for SDHC card presence
| int(* sdhc_driver_api::get_host_props) (const struct device *dev, struct sdhc_host_props *props) |
REQ Get SD host controller properties.
| int(* sdhc_driver_api::request) (const struct device *dev, struct sdhc_command *cmd, struct sdhc_data *data) |
REQ Send command to SDHC.
| int(* sdhc_driver_api::reset) (const struct device *dev) |
OPT reset SDHC controller state
REQ set I/O properties of SDHC