i2ctospi 2.0.0.0
Configure SPI Interface

Macros

#define I2CTOSPI_CONFIGURE_SPI_ORDER_MSB_FIRST   0x00
 
#define I2CTOSPI_CONFIGURE_SPI_ORDER_LSB_FIRST   0x20
 
#define I2CTOSPI_CONFIGURE_SPI_MODE_SPICLK_LOW_LEADING_EDGE   0x00
 
#define I2CTOSPI_CONFIGURE_SPI_MODE_SPICLK_LOW_TRAILING_EDGE   0x04
 
#define I2CTOSPI_CONFIGURE_SPI_MODE_SPICLK_HIGH_LEADING_EDGE   0x08
 
#define I2CTOSPI_CONFIGURE_SPI_MODE_SPICLK_HIGH_TRAILING_EDGE   0x0C
 
#define I2CTOSPI_CONFIGURE_SPI_CLOCK_RATE_1843kHz   0x00
 
#define I2CTOSPI_CONFIGURE_SPI_CLOCK_RATE_461kHz   0x01
 
#define I2CTOSPI_CONFIGURE_SPI_CLOCK_RATE_115kHz   0x02
 
#define I2CTOSPI_CONFIGURE_SPI_CLOCK_RATE_58kHz   0x03
 

Detailed Description

Macro Definition Documentation

◆ I2CTOSPI_CONFIGURE_SPI_CLOCK_RATE_115kHz

#define I2CTOSPI_CONFIGURE_SPI_CLOCK_RATE_115kHz   0x02

◆ I2CTOSPI_CONFIGURE_SPI_CLOCK_RATE_1843kHz

#define I2CTOSPI_CONFIGURE_SPI_CLOCK_RATE_1843kHz   0x00

◆ I2CTOSPI_CONFIGURE_SPI_CLOCK_RATE_461kHz

#define I2CTOSPI_CONFIGURE_SPI_CLOCK_RATE_461kHz   0x01

◆ I2CTOSPI_CONFIGURE_SPI_CLOCK_RATE_58kHz

#define I2CTOSPI_CONFIGURE_SPI_CLOCK_RATE_58kHz   0x03

◆ I2CTOSPI_CONFIGURE_SPI_MODE_SPICLK_HIGH_LEADING_EDGE

#define I2CTOSPI_CONFIGURE_SPI_MODE_SPICLK_HIGH_LEADING_EDGE   0x08

◆ I2CTOSPI_CONFIGURE_SPI_MODE_SPICLK_HIGH_TRAILING_EDGE

#define I2CTOSPI_CONFIGURE_SPI_MODE_SPICLK_HIGH_TRAILING_EDGE   0x0C

◆ I2CTOSPI_CONFIGURE_SPI_MODE_SPICLK_LOW_LEADING_EDGE

#define I2CTOSPI_CONFIGURE_SPI_MODE_SPICLK_LOW_LEADING_EDGE   0x00

◆ I2CTOSPI_CONFIGURE_SPI_MODE_SPICLK_LOW_TRAILING_EDGE

#define I2CTOSPI_CONFIGURE_SPI_MODE_SPICLK_LOW_TRAILING_EDGE   0x04

◆ I2CTOSPI_CONFIGURE_SPI_ORDER_LSB_FIRST

#define I2CTOSPI_CONFIGURE_SPI_ORDER_LSB_FIRST   0x20

◆ I2CTOSPI_CONFIGURE_SPI_ORDER_MSB_FIRST

#define I2CTOSPI_CONFIGURE_SPI_ORDER_MSB_FIRST   0x00