daisy::SpiHandle::Config
#include <spi.h>
Public Types
Public Functions
Public Attributes
Public Types Documentation
enum Peripheral
Enumerator |
Value |
Description |
SPI_1 |
|
|
SPI_2 |
|
|
SPI_3 |
|
|
SPI_4 |
|
|
SPI_5 |
|
|
SPI_6 |
|
|
enum Mode
Enumerator |
Value |
Description |
MASTER |
|
|
SLAVE |
|
|
enum Direction
Enumerator |
Value |
Description |
TWO_LINES |
|
|
TWO_LINES_TX_ONLY |
|
|
TWO_LINES_RX_ONLY |
|
|
ONE_LINE |
|
|
enum ClockPolarity
Enumerator |
Value |
Description |
LOW |
|
|
HIGH |
|
|
enum ClockPhase
Enumerator |
Value |
Description |
ONE_EDGE |
|
|
TWO_EDGE |
|
|
enum NSS
Enumerator |
Value |
Description |
SOFT |
|
|
HARD_INPUT |
|
|
HARD_OUTPUT |
|
|
enum BaudPrescaler
Enumerator |
Value |
Description |
PS_2 |
|
|
PS_4 |
|
|
PS_8 |
|
|
PS_16 |
|
|
PS_32 |
|
|
PS_64 |
|
|
PS_128 |
|
|
PS_256 |
|
|
Public Functions Documentation
function Config
Public Attributes Documentation
variable sclk
&
variable miso
&
variable mosi
&
variable nss
&
variable pin_config
struct daisy::SpiHandle::Config::@16 pin_config;
variable periph
variable mode
variable direction
variable datasize
variable clock_polarity
ClockPolarity clock_polarity;
variable clock_phase
variable nss
variable baud_prescaler
BaudPrescaler baud_prescaler;
Updated on 2024-01-03 at 19:41:01 +0000