package
0.0.0-20211205205814-168ccc21e67c
Repository: https://github.com/ziutek/emgo.git
Documentation: pkg.go.dev

# Functions

MakeDriver returns initialized SPI driver that uses provided SPI peripheral.
MakeDriverDMA returns initialized driver that uses provided SDMMC peripheral and DMA channel.
NewDriver provides convenient way to create heap allocated Driver struct.
NewDriverDMA provides convenient way to create heap allocated Driver struct.

# Constants

Block data transfer, block size: 1 B.
Block data transfer, block size: 128 B.
Block data transfer, block size: 16 B.
Block data transfer, block size: 16 KiB.
Block data transfer, block size: 1 KiB.
Block data transfer, block size: 2 B.
Block data transfer, block size: 256 B.
Block data transfer, block size: 2 KiB.
Block data transfer, block size: 32 B.
Block data transfer, block size: 4 B.
Block data transfer, block size: 4 KiB.
Block data transfer, block size: 512 B.
Block data transfer, block size: 64 B.
Block data transfer, block size: 8 B.
Block data transfer, block size: 8 KiB.
Single data bus line.
Four data bus lines.
Eight data bus lines.
Describes data bus width.
Pass SDMMC clock directly to CK pin.
Enables bus clock.
Command transfer in progress.
Enable CPSM (send command) / CPSM is enabled.
Command index.
Command response received, CRC OK.
Command sent (no response required).
Data block sent/received, CRC OK.
RemainBytes() == 0.
Enable data transfer.
Command response received, CRC failed.
Command response timeout.
Data response receifed, CRC failed.
Data response timeout.
Rx FIFO overrun.
Start bit not detected on all data signals.
Tx FIFO underrun.
Enables hardware flow controll.
Response expected.
SDIO specific operation.
SDIO interrupt request.
Long response.
Command and data changed on CK falling edge.
Enables power saving mode.
Receive data from card.
Read wait control using CK instead of D2.
Read wait start.
Read wait stop.
Data receive in progress.
Rx FIFO empty (32 empty words).
Rx FIFO full (32 valid words).
There are at least 8 valid words in Rx FIFO.
Rx FIFO not empty.
Send data to card.
Stream or SDIO multibyte data transfer.
SDIO suspend command.
Data transmit in progress.
Tx FIFO is empty (32 empty words).
Tx FIFO full (32 valid words).
There are at least 8 empty words in Tx FIFO.
Tx FIFO not empty.
Use DMA.
Disable command timeout and wait for IRQ.
Wait for end of data transfer before send cmd.

# Structs

Driver implements sdcard.Host interface.
DriverDMA implements sdcard.Host interface using DMA.

# Type aliases

DataCtrl represents Data Path State Machine (DPMS) configuration.