![]() |
Ultibo API
C/C++ API for Ultibo Core
|
#include <mmc.h>
Data Fields | |
| DEVICE | device |
| The Device entry for this SDHCI. | |
| uint32_t | sdhciid |
| Unique Id of this SDHCI in the SDHCI table. | |
| uint32_t | sdhcistate |
| SDHCI state (eg SDHCI_STATE_ENABLED). | |
| sdhci_host_start_proc | hoststart |
| A Host specific HostStart method implementing a standard SDHCI host interface. | |
| sdhci_host_stop_proc | hoststop |
| A Host specific HostStop method implementing a standard SDHCI host interface. | |
| sdhci_host_lock_proc | hostlock |
| A Host specific HostLock method implementing a standard SDHCI host interface. | |
| sdhci_host_unlock_proc | hostunlock |
| A Host specific HostUnlock method implementing a standard SDHCI host interface. | |
| sdhci_host_signal_proc | hostsignal |
| A Host specific HostSignal method implementing a standard SDHCI host interface. | |
| sdhci_host_read_byte_proc | hostreadbyte |
| A Host specific HostReadByte method implementing a standard SDHCI host interface (Or nil if the default method is suitable). | |
| sdhci_host_read_word_proc | hostreadword |
| A Host specific HostReadWord method implementing a standard SDHCI host interface (Or nil if the default method is suitable). | |
| sdhci_host_read_long_proc | hostreadlong |
| A Host specific HostReadLong method implementing a standard SDHCI host interface (Or nil if the default method is suitable). | |
| sdhci_host_write_byte_proc | hostwritebyte |
| A Host specific HostWriteByte method implementing a standard SDHCI host interface (Or nil if the default method is suitable). | |
| sdhci_host_write_word_proc | hostwriteword |
| A Host specific HostWriteWord method implementing a standard SDHCI host interface (Or nil if the default method is suitable). | |
| sdhci_host_write_long_proc | hostwritelong |
| A Host specific HostWriteLong method implementing a standard SDHCI host interface (Or nil if the default method is suitable). | |
| sdhci_host_reset_proc | hostreset |
| A Host specific HostReset method implementing a standard SDHCI host interface (Or nil if the default method is suitable). | |
| sdhci_host_hardware_reset_proc | hosthardwarereset |
| A Host specific HostHardwareReset method implementing a standard SDHCI host interface (Or nil if the default method is suitable). | |
| sdhci_host_set_power_proc | hostsetpower |
| A Host specific HostSetPower method implementing a standard SDHCI host interface (Or nil if the default method is suitable). | |
| sdhci_host_set_clock_proc | hostsetclock |
| A Host specific HostSetClock method implementing a standard SDHCI host interface (Or nil if the default method is suitable). | |
| sdhci_host_set_timing_proc | hostsettiming |
| A Host specific HostSetTiming method implementing a standard SDHCI host interface (Or nil if the default method is suitable). | |
| sdhci_host_set_buswidth_proc | hostsetbuswidth |
| A Host specific HostSetBusWidth method implementing a standard SDHCI host interface (Or nil if the default method is suitable). | |
| sdhci_host_set_clock_divider_proc | hostsetclockdivider |
| sdhci_host_set_control_register_proc | hostsetcontrolregister |
| sdhci_host_prepare_dma_proc | hostpreparedma |
| A Host specific HostPrepareDMA method implementing a standard SDHCI host interface (Or nil if the default method is suitable). | |
| sdhci_host_start_dma_proc | hoststartdma |
| A Host specific HostStartDMA method implementing a standard SDHCI host interface (Or nil if the default method is suitable). | |
| sdhci_host_stop_dma_proc | hoststopdma |
| A Host specific HostStopDMA method implementing a standard SDHCI host interface (Or nil if the default method is suitable). | |
| sdhci_host_setup_card_irq_proc | hostsetupcardirq |
| A Host specific HostSetupCardIRQ method implementing a standard SDHCI host interface (Or nil if the default method is suitable). | |
| sdhci_host_complete_card_irq_proc | hostcompletecardirq |
| A Host specific HostCompleteCardIRQ method implementing a standard SDHCI host interface (Or nil if the default method is suitable). | |
| mmc_device_initialize_proc | deviceinitialize |
| A Device specific DeviceInitialize method implementing a standard MMC device interface (Or nil if the default method is suitable). | |
| mmc_device_deinitialize_proc | devicedeinitialize |
| A Device specific DeviceDeinitialize method implementing a standard MMC device interface (Or nil if the default method is suitable). | |
| mmc_device_get_card_detect_proc | devicegetcarddetect |
| A Device specific DeviceGetCardDetect method implementing a standard MMC device interface (Or nil if the default method is suitable). | |
| mmc_device_get_write_protect_proc | devicegetwriteprotect |
| A Device specific DeviceGetWriteProtect method implementing a standard MMC device interface (Or nil if the default method is suitable). | |
| mmc_device_send_command_proc | devicesendcommand |
| A Device specific DeviceSendCommand method implementing a standard MMC device interface (Or nil if the default method is suitable). | |
| mmc_device_set_ios_proc | devicesetios |
| A Device specific DeviceSetIOS method implementing a standard MMC device interface (Or nil if the default method is suitable). | |
| SPIN_HANDLE | spin |
| Host lock (Spin) for use by interrupt handlers. | |
| MUTEX_HANDLE | lock |
| Host lock (Mutex) for use by other functions. | |
| void * | address |
| Host register base address. | |
| uint32_t | version |
| Host version information. | |
| uint32_t | quirks |
| Host quirks/bugs flags. | |
| uint32_t | quirks2 |
| Host additional quirks/bugs flags. | |
| uint32_t | clock |
| Host current clock. | |
| uint32_t | power |
| Host current power. | |
| uint32_t | timing |
| Host current timing. | |
| uint32_t | buswidth |
| Host current bus width. | |
| uint32_t | interrupts |
| Host interrupts to be handled. | |
| uint32_t | voltages |
| Host configured voltage flags. | |
| uint32_t | capabilities |
| Host configured capabilities flags. | |
| uint32_t | capabilities2 |
| Host configured additional capabilities flags. | |
| uint32_t | timeoutfrequency |
| Host configured timeout clock frequency (KHz). | |
| uint32_t | minimumfrequency |
| Host configured minimum frequency (Hz). | |
| uint32_t | maximumfrequency |
| Host configured maximum frequency (Hz). | |
| uint32_t | maximumblocksize |
| Host configured maximum block size. | |
| uint32_t | maximumblockcount |
| Host configured maximum block count. | |
| uint32_t | maximumrequestsize |
| Host configured maximum request size. | |
| uint32_t | maximumbusytimeout |
| Host configured maximum busy timeout (Milliseconds). | |
| uint32_t | minimumdmasize |
| Minimum size for DMA read or write (Use PIO if less). | |
| uint32_t | maximumpioblocks |
| Maximum blocks for PIO read or write (Use DMA if greater). | |
| LONGBOOL | presetenabled |
| Version 3.00 Preset Values Enabled (If applicable). | |
| LONGBOOL | cardirqenabled |
| SDIO card interrupt is enabled. | |
| WORKER_HANDLE | cardirqworker |
| SDIO card interrupt current worker. | |
| MMC_DEVICE * | cardirqdevice |
| SDIO card interrupt device. | |
| uint32_t | cardirqcount |
| SDIO card interrupt function registered count. | |
| MMC_COMMAND * | command |
| Currently processing command. | |
| SEMAPHORE_HANDLE | wait |
| Command completed semaphore. | |
| LONGBOOL | usedma |
| Use DMA for the current data transfer. | |
| DMA_DATA | dmadata |
| External DMA data descriptor for current request (If applicable). | |
| SEMAPHORE_HANDLE | dmawait |
| External DMA completed semaphore. | |
| uint32_t | dmaslave |
| External DMA slave (DREQ) Id for this device (If applicable). | |
| void * | dmabuffer |
| DMA bounce buffer for the current request (If applicable). | |
| uint32_t | dmadirection |
| DMA data direction for current request (If applicable). | |
| uint32_t | sdmaboundary |
| SDMA buffer boundary argument. | |
| SDHCI_ADMA2_DESCRIPTOR64_V4 * | admatable |
| ADMA descriptors for current request (If applicable). | |
| void * | admabuffer |
| ADMA alignment buffers for the current request (If applicable). | |
| uint32_t | admatablesize |
| ADMA descriptor table size in bytes (If applicable). | |
| uint32_t | admatablecount |
| ADMA descriptor table entry count (If applicable). | |
| uint32_t | admabuffersize |
| ADMA alignment buffers size in bytes (If applicable). | |
| uint32_t | admadescriptorsize |
| ADMA descriptor size in bytes (If applicable). | |
| uint32_t | presetvoltages |
| Host predefined voltage flags. | |
| uint32_t | presetcapabilities |
| Host predefined capabilities flags. | |
| uint32_t | presetcapabilities2 |
| Host predefined additional capabilities flags. | |
| uint32_t | clockminimum |
| Host predefined minimum clock frequency. | |
| uint32_t | clockmaximum |
| Host predefined maximum clock frequency. | |
| uint32_t | driverstageregister |
| Host predefined driver stage register (DSR). | |
| LONGBOOL | enablev4mode |
| Enable SDHCI version 4 protocol support. | |
| uint32_t | requestcount |
| Number of requests that have been submitted to this host. | |
| uint32_t | requesterrors |
| Number of requests that have failed on this host. | |
| uint32_t | datarequestcount |
| Number of data requests that have been submitted to this host. | |
| uint32_t | commandrequestcount |
| Number of command requests that have been submitted to this host. | |
| uint32_t | piodatatransfercount |
| Number of data requests that have been submitted for PIO transfer on this host. | |
| uint32_t | dmadatatransfercount |
| Number of data requests that have been submitted for DMA transfer on this host. | |
| uint32_t | interruptcount |
| Number of interrupt requests received by the host. | |
| uint32_t | datainterruptcount |
| Number of data interrupt requests received by the host. | |
| uint32_t | commandinterruptcount |
| Number of command interrupt requests received by the host. | |
| SDHCI_HOST * | prev |
| Previous entry in SDHCI table. | |
| SDHCI_HOST * | next |
| Next entry in SDHCI table. | |
| DEVICE device |
The Device entry for this SDHCI.
| uint32_t sdhciid |
Unique Id of this SDHCI in the SDHCI table.
| uint32_t sdhcistate |
SDHCI state (eg SDHCI_STATE_ENABLED).
| sdhci_host_start_proc hoststart |
A Host specific HostStart method implementing a standard SDHCI host interface.
| sdhci_host_stop_proc hoststop |
A Host specific HostStop method implementing a standard SDHCI host interface.
| sdhci_host_lock_proc hostlock |
A Host specific HostLock method implementing a standard SDHCI host interface.
| sdhci_host_unlock_proc hostunlock |
A Host specific HostUnlock method implementing a standard SDHCI host interface.
| sdhci_host_signal_proc hostsignal |
A Host specific HostSignal method implementing a standard SDHCI host interface.
| sdhci_host_read_byte_proc hostreadbyte |
A Host specific HostReadByte method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
| sdhci_host_read_word_proc hostreadword |
A Host specific HostReadWord method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
| sdhci_host_read_long_proc hostreadlong |
A Host specific HostReadLong method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
| sdhci_host_write_byte_proc hostwritebyte |
A Host specific HostWriteByte method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
| sdhci_host_write_word_proc hostwriteword |
A Host specific HostWriteWord method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
| sdhci_host_write_long_proc hostwritelong |
A Host specific HostWriteLong method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
| sdhci_host_reset_proc hostreset |
A Host specific HostReset method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
| sdhci_host_hardware_reset_proc hosthardwarereset |
A Host specific HostHardwareReset method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
| sdhci_host_set_power_proc hostsetpower |
A Host specific HostSetPower method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
| sdhci_host_set_clock_proc hostsetclock |
A Host specific HostSetClock method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
| sdhci_host_set_timing_proc hostsettiming |
A Host specific HostSetTiming method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
| sdhci_host_set_buswidth_proc hostsetbuswidth |
A Host specific HostSetBusWidth method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
| sdhci_host_set_clock_divider_proc hostsetclockdivider |
| sdhci_host_set_control_register_proc hostsetcontrolregister |
| sdhci_host_prepare_dma_proc hostpreparedma |
A Host specific HostPrepareDMA method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
| sdhci_host_start_dma_proc hoststartdma |
A Host specific HostStartDMA method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
| sdhci_host_stop_dma_proc hoststopdma |
A Host specific HostStopDMA method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
| sdhci_host_setup_card_irq_proc hostsetupcardirq |
A Host specific HostSetupCardIRQ method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
| sdhci_host_complete_card_irq_proc hostcompletecardirq |
A Host specific HostCompleteCardIRQ method implementing a standard SDHCI host interface (Or nil if the default method is suitable).
| mmc_device_initialize_proc deviceinitialize |
A Device specific DeviceInitialize method implementing a standard MMC device interface (Or nil if the default method is suitable).
| mmc_device_deinitialize_proc devicedeinitialize |
A Device specific DeviceDeinitialize method implementing a standard MMC device interface (Or nil if the default method is suitable).
| mmc_device_get_card_detect_proc devicegetcarddetect |
A Device specific DeviceGetCardDetect method implementing a standard MMC device interface (Or nil if the default method is suitable).
| mmc_device_get_write_protect_proc devicegetwriteprotect |
A Device specific DeviceGetWriteProtect method implementing a standard MMC device interface (Or nil if the default method is suitable).
| mmc_device_send_command_proc devicesendcommand |
A Device specific DeviceSendCommand method implementing a standard MMC device interface (Or nil if the default method is suitable).
| mmc_device_set_ios_proc devicesetios |
A Device specific DeviceSetIOS method implementing a standard MMC device interface (Or nil if the default method is suitable).
| SPIN_HANDLE spin |
Host lock (Spin) for use by interrupt handlers.
| MUTEX_HANDLE lock |
Host lock (Mutex) for use by other functions.
| void* address |
Host register base address.
| uint32_t version |
Host version information.
| uint32_t quirks |
Host quirks/bugs flags.
| uint32_t quirks2 |
Host additional quirks/bugs flags.
| uint32_t clock |
Host current clock.
| uint32_t power |
Host current power.
| uint32_t timing |
Host current timing.
| uint32_t buswidth |
Host current bus width.
| uint32_t interrupts |
Host interrupts to be handled.
| uint32_t voltages |
Host configured voltage flags.
| uint32_t capabilities |
Host configured capabilities flags.
| uint32_t capabilities2 |
Host configured additional capabilities flags.
| uint32_t timeoutfrequency |
Host configured timeout clock frequency (KHz).
| uint32_t minimumfrequency |
Host configured minimum frequency (Hz).
| uint32_t maximumfrequency |
Host configured maximum frequency (Hz).
| uint32_t maximumblocksize |
Host configured maximum block size.
| uint32_t maximumblockcount |
Host configured maximum block count.
| uint32_t maximumrequestsize |
Host configured maximum request size.
| uint32_t maximumbusytimeout |
Host configured maximum busy timeout (Milliseconds).
| uint32_t minimumdmasize |
Minimum size for DMA read or write (Use PIO if less).
| uint32_t maximumpioblocks |
Maximum blocks for PIO read or write (Use DMA if greater).
| LONGBOOL presetenabled |
Version 3.00 Preset Values Enabled (If applicable).
| LONGBOOL cardirqenabled |
SDIO card interrupt is enabled.
| WORKER_HANDLE cardirqworker |
SDIO card interrupt current worker.
| MMC_DEVICE* cardirqdevice |
SDIO card interrupt device.
| uint32_t cardirqcount |
SDIO card interrupt function registered count.
| MMC_COMMAND* command |
Currently processing command.
| SEMAPHORE_HANDLE wait |
Command completed semaphore.
| LONGBOOL usedma |
Use DMA for the current data transfer.
| DMA_DATA dmadata |
External DMA data descriptor for current request (If applicable).
| SEMAPHORE_HANDLE dmawait |
External DMA completed semaphore.
| uint32_t dmaslave |
External DMA slave (DREQ) Id for this device (If applicable).
| void* dmabuffer |
DMA bounce buffer for the current request (If applicable).
| uint32_t dmadirection |
DMA data direction for current request (If applicable).
| uint32_t sdmaboundary |
SDMA buffer boundary argument.
| SDHCI_ADMA2_DESCRIPTOR64_V4* admatable |
ADMA descriptors for current request (If applicable).
| void* admabuffer |
ADMA alignment buffers for the current request (If applicable).
| uint32_t admatablesize |
ADMA descriptor table size in bytes (If applicable).
| uint32_t admatablecount |
ADMA descriptor table entry count (If applicable).
| uint32_t admabuffersize |
ADMA alignment buffers size in bytes (If applicable).
| uint32_t admadescriptorsize |
ADMA descriptor size in bytes (If applicable).
| uint32_t presetvoltages |
Host predefined voltage flags.
| uint32_t presetcapabilities |
Host predefined capabilities flags.
| uint32_t presetcapabilities2 |
Host predefined additional capabilities flags.
| uint32_t clockminimum |
Host predefined minimum clock frequency.
| uint32_t clockmaximum |
Host predefined maximum clock frequency.
| uint32_t driverstageregister |
Host predefined driver stage register (DSR).
| LONGBOOL enablev4mode |
Enable SDHCI version 4 protocol support.
| uint32_t requestcount |
Number of requests that have been submitted to this host.
| uint32_t requesterrors |
Number of requests that have failed on this host.
| uint32_t datarequestcount |
Number of data requests that have been submitted to this host.
| uint32_t commandrequestcount |
Number of command requests that have been submitted to this host.
| uint32_t piodatatransfercount |
Number of data requests that have been submitted for PIO transfer on this host.
| uint32_t dmadatatransfercount |
Number of data requests that have been submitted for DMA transfer on this host.
| uint32_t interruptcount |
Number of interrupt requests received by the host.
| uint32_t datainterruptcount |
Number of data interrupt requests received by the host.
| uint32_t commandinterruptcount |
Number of command interrupt requests received by the host.
| SDHCI_HOST* prev |
Previous entry in SDHCI table.
| SDHCI_HOST* next |
Next entry in SDHCI table.