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 and DMA channels.
NewDriver provides convenient way to create heap allocated Driver struct.
# Constants
Baud rate = PCLK/128.
Baud rate = PCLK/16.
Baud rate = PCLK/2.
Baud rate = PCLK/256.
Baud rate = PCLK/32.
Baud rate = PCLK/4.
Baud rate = PCLK/64.
Baud rate = PCLK/8.
Periph is busy (not a real event).
Sample on first edge.
Sample on second edge.
Clock idle state is 0.
Clock idle state is 1.
Some hardware error occurs.
Full-duplex mode.
Half-duplex input mode.
Half-duplex output mode.
Hardware slave select.
Set NSS internally to high (requires SoftSS).
Set NSS internally to low (requires SoftSS).
Least significant bit first.
Master mode.
Most significant bit first.
Receive buffer not empty.
Slave mode.
Software slave select (use ISSLow, ISSHigh).
Transmit buffer empty.
# Type aliases
Duplex describes duplex mode.
Error is a bitfield that encodes possible peripheral errors.
Event is a bitfield that encodes possible peripheral events.