embeddedlibrary
reusable software modules for embedded systems
spi_settings_t Struct Reference

spi settings structure More...

#include <spi.h>

Data Fields

uint8_t channel
 channel number of module to be configured
 
uint32_t bit_rate
 
uint8_t mode
 depends on processor clock settings and SPI peripheral More...
 
hal_spi_settings_t hal_settings
 processor specific settings More...
 

Detailed Description

spi settings structure

Field Documentation

uint32_t bit_rate

bit_rate of SPI clock, not guaranteed to be accurate,

hal_spi_settings_t hal_settings

processor specific settings

  • Mode 0 idle clock is low, data changes on high to low clock edge
  • Mode 1 idle clock is low, data changes on low to high clock edge
  • Mode 2 idle clock is high, data changes on low to high clock edge
  • Mode 3 idle clock is high, data changes on high to low clock edge
uint8_t mode

depends on processor clock settings and SPI peripheral

SPI mode select


The documentation for this struct was generated from the following file: