ARMEBS4  revision-26.06.2015
Data Structures | Enumerations | Variables
SPI bus

SPI (Serial Peripheral Interface) bus. More...

Collaboration diagram for SPI bus:

Data Structures

struct  spi_bus_private_t
 SPI specific data. More...
 

Enumerations

enum  spi_option_e {
  SPI_OPTION_MASTER,
  SPI_OPTION_SLAVE,
  SPI_OPTION_MODE_0,
  SPI_OPTION_MODE_1,
  SPI_OPTION_MODE_2,
  SPI_OPTION_MODE_3,
  SPI_OPTION_CS_LOW,
  SPI_OPTION_CS_HIGH
}
 SPI specific options. More...
 

Variables

const struct heivs_bus_t bus_spi [BSP_SPI_BUS_COUNT]
 All SPI busses.
 

Detailed Description

SPI (Serial Peripheral Interface) bus.

Warning
At this time only the master functionality of the bus is implemented.

Enumeration Type Documentation

SPI specific options.

Enumerator
SPI_OPTION_MASTER 

Master mode.

SPI_OPTION_SLAVE 

Slave mode.

Warning
Not yet implemented
SPI_OPTION_MODE_0 

Mode 0 : CPOL = 0, CPHA = 0.

SPI_OPTION_MODE_1 

Mode 1 : CPOL = 0, CPHA = 1.

SPI_OPTION_MODE_2 

Mode 2 : CPOL = 1, CPHA = 0.

SPI_OPTION_MODE_3 

Mode 3 : CPOL = 1, CPHA = 1.

SPI_OPTION_CS_LOW 

Chip select active low.

SPI_OPTION_CS_HIGH 

Chip select active high.

Definition at line 24 of file stm32_spi.h.