![]() |
snickerdoodle Platform Controller
firmware for STM32F0 platform controller
|
Data Structures | |
| struct | sd_spi_packet |
| SPI packet structure. More... | |
| struct | sd_spi_dev |
| SPI device structure. More... | |
Enumerations | |
| enum | sd_spi_error { SD_SPI_SUCCESS = 0x4A0D, SD_SPI_NULL_ERROR, SD_SPI_LOCKED, SD_SPI_TIMEOUT, SD_SPI_ERROR } |
| SPI error enumeration. More... | |
| enum | sd_spi_state { SD_SPI_INITIALIZED = 0x0E60, SD_SPI_READY, SD_SPI_BUSY, SD_SPI_OVERFLOW } |
| SPI state enumeration. More... | |
| enum | sd_spi_rx_state { SD_SPI_RX_WAITING, SD_SPI_RX_LENGTH, SD_SPI_RX_PACKET } |
| SPI receive state enumeration. More... | |
| enum sd_spi_error |
#include <Inc/sd_spi.h>
SPI error enumeration.
| Enumerator | |
|---|---|
| SD_SPI_SUCCESS | Successful execution |
| SD_SPI_NULL_ERROR | NULL pointer error |
| SD_SPI_LOCKED | The buffer is being used |
| SD_SPI_TIMEOUT | The operation timed out |
| SD_SPI_ERROR | General execution error |
| enum sd_spi_rx_state |
#include <Inc/sd_spi.h>
SPI receive state enumeration.
| Enumerator | |
|---|---|
| SD_SPI_RX_WAITING | Waiting to receive command byte |
| SD_SPI_RX_LENGTH | Waiting to receive packet length |
| SD_SPI_RX_PACKET | Packet receive in process |
| enum sd_spi_state |
#include <Inc/sd_spi.h>
SPI state enumeration.
| Enumerator | |
|---|---|
| SD_SPI_INITIALIZED | SPI initialized |
| SD_SPI_READY | SPI ready |
| SD_SPI_BUSY | SPI in use |
| SD_SPI_OVERFLOW | SPI buffer has been overrun |