Skip to content

Struct daisy::SpiHandle::Config

ClassList > daisy > SpiHandle > Config

Public Types

Type Name
enum BaudPrescaler
enum ClockPhase
enum ClockPolarity
enum Direction
enum Mode
enum NSS
enum Peripheral

Public Attributes

Type Name
BaudPrescaler baud_prescaler
ClockPhase clock_phase
ClockPolarity clock_polarity
unsigned long datasize
Direction direction
Pin miso
Mode mode
Pin mosi
Pin nss
NSS nss
Peripheral periph
struct daisy::SpiHandle::Config pin_config
Pin sclk

Public Functions

Type Name
Config ()

Public Types Documentation

enum BaudPrescaler

enum daisy::SpiHandle::Config::BaudPrescaler {
    PS_2,
    PS_4,
    PS_8,
    PS_16,
    PS_32,
    PS_64,
    PS_128,
    PS_256
};

enum ClockPhase

enum daisy::SpiHandle::Config::ClockPhase {
    ONE_EDGE,
    TWO_EDGE
};

enum ClockPolarity

enum daisy::SpiHandle::Config::ClockPolarity {
    LOW,
    HIGH
};

enum Direction

enum daisy::SpiHandle::Config::Direction {
    TWO_LINES,
    TWO_LINES_TX_ONLY,
    TWO_LINES_RX_ONLY,
    ONE_LINE
};

enum Mode

enum daisy::SpiHandle::Config::Mode {
    MASTER,
    SLAVE
};

enum NSS

enum daisy::SpiHandle::Config::NSS {
    SOFT,
    HARD_INPUT,
    HARD_OUTPUT
};

enum Peripheral

enum daisy::SpiHandle::Config::Peripheral {
    SPI_1,
    SPI_2,
    SPI_3,
    SPI_4,
    SPI_5,
    SPI_6
};

Public Attributes Documentation

variable baud_prescaler

BaudPrescaler daisy::SpiHandle::Config::baud_prescaler;

variable clock_phase

ClockPhase daisy::SpiHandle::Config::clock_phase;

variable clock_polarity

ClockPolarity daisy::SpiHandle::Config::clock_polarity;

variable datasize

unsigned long daisy::SpiHandle::Config::datasize;

variable direction

Direction daisy::SpiHandle::Config::direction;

variable miso

Pin daisy::SpiHandle::Config::miso;

&


variable mode

Mode daisy::SpiHandle::Config::mode;

variable mosi

Pin daisy::SpiHandle::Config::mosi;

&


variable nss [½]

Pin daisy::SpiHandle::Config::nss;

&


variable nss [2/2]

NSS daisy::SpiHandle::Config::nss;

variable periph

Peripheral daisy::SpiHandle::Config::periph;

variable pin_config

struct daisy::SpiHandle::Config daisy::SpiHandle::Config::pin_config;

variable sclk

Pin daisy::SpiHandle::Config::sclk;

&


Public Functions Documentation

function Config

inline daisy::SpiHandle::Config::Config () 


The documentation for this class was generated from the following file external-docs/libDaisy/src/per/spi.h