libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
SPI clock polarity
Collaboration diagram for SPI clock polarity:

Macros

#define SPI_CR1_CPOL_CLK_TO_0_WHEN_IDLE   (0 << 1)
 
#define SPI_CR1_CPOL_CLK_TO_1_WHEN_IDLE   (1 << 1)
 

Detailed Description

Macro Definition Documentation

◆ SPI_CR1_CPOL_CLK_TO_0_WHEN_IDLE

#define SPI_CR1_CPOL_CLK_TO_0_WHEN_IDLE   (0 << 1)

Definition at line 193 of file spi_common_all.h.

◆ SPI_CR1_CPOL_CLK_TO_1_WHEN_IDLE

#define SPI_CR1_CPOL_CLK_TO_1_WHEN_IDLE   (1 << 1)

Definition at line 194 of file spi_common_all.h.