Prusa MINI Firmware overview
|
◆ SPI_1LINE_TX
#define SPI_1LINE_TX |
( |
|
__HANDLE__ | ) |
((__HANDLE__)->Instance->CR1 |= SPI_CR1_BIDIOE) |
Set the SPI transmit-only mode.
- Parameters
-
<strong>HANDLE</strong> | specifies the SPI Handle. This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. |
- Return values
-
◆ SPI_1LINE_RX
#define SPI_1LINE_RX |
( |
|
__HANDLE__ | ) |
((__HANDLE__)->Instance->CR1 &= (~SPI_CR1_BIDIOE)) |
Set the SPI receive-only mode.
- Parameters
-
<strong>HANDLE</strong> | specifies the SPI Handle. This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. |
- Return values
-
◆ SPI_RESET_CRC
#define SPI_RESET_CRC |
( |
|
__HANDLE__ | ) |
|
Value:do{(__HANDLE__)->Instance->CR1 &= (uint16_t)(~SPI_CR1_CRCEN);\
(__HANDLE__)->Instance->CR1 |= SPI_CR1_CRCEN;}while(0U)
Reset the CRC calculation of the SPI.
- Parameters
-
<strong>HANDLE</strong> | specifies the SPI Handle. This parameter can be SPI where x: 1, 2, or 3 to select the SPI peripheral. |
- Return values
-
◆ IS_SPI_MODE
#define IS_SPI_MODE |
( |
|
MODE | ) |
|
◆ IS_SPI_DIRECTION
#define IS_SPI_DIRECTION |
( |
|
MODE | ) |
|
◆ IS_SPI_DIRECTION_2LINES
◆ IS_SPI_DIRECTION_2LINES_OR_1LINE
#define IS_SPI_DIRECTION_2LINES_OR_1LINE |
( |
|
MODE | ) |
|
◆ IS_SPI_DATASIZE
#define IS_SPI_DATASIZE |
( |
|
DATASIZE | ) |
|
◆ IS_SPI_CPOL
#define IS_SPI_CPOL |
( |
|
CPOL | ) |
|
◆ IS_SPI_CPHA
#define IS_SPI_CPHA |
( |
|
CPHA | ) |
|
◆ IS_SPI_NSS
#define IS_SPI_NSS |
( |
|
NSS | ) |
|
◆ IS_SPI_BAUDRATE_PRESCALER
#define IS_SPI_BAUDRATE_PRESCALER |
( |
|
PRESCALER | ) |
|
◆ IS_SPI_FIRST_BIT
#define IS_SPI_FIRST_BIT |
( |
|
BIT | ) |
|
◆ IS_SPI_TIMODE
#define IS_SPI_TIMODE |
( |
|
MODE | ) |
|
◆ IS_SPI_CRC_CALCULATION
#define IS_SPI_CRC_CALCULATION |
( |
|
CALCULATION | ) |
|
◆ IS_SPI_CRC_POLYNOMIAL
#define IS_SPI_CRC_POLYNOMIAL |
( |
|
POLYNOMIAL | ) |
(((POLYNOMIAL) >= 0x01U) && ((POLYNOMIAL) <= 0xFFFFU)) |
#define SPI_FIRSTBIT_MSB
Definition: stm32f4xx_hal_spi.h:251
#define SPI_BAUDRATEPRESCALER_2
Definition: stm32f4xx_hal_spi.h:236
#define SPI_FIRSTBIT_LSB
Definition: stm32f4xx_hal_spi.h:252
#define SPI_POLARITY_HIGH
Definition: stm32f4xx_hal_spi.h:209
#define SPI_DIRECTION_2LINES
Definition: stm32f4xx_hal_spi.h:189
#define SPI_BAUDRATEPRESCALER_16
Definition: stm32f4xx_hal_spi.h:239
#define SPI_BAUDRATEPRESCALER_256
Definition: stm32f4xx_hal_spi.h:243
#define SPI_TIMODE_DISABLE
Definition: stm32f4xx_hal_spi.h:260
#define SPI_BAUDRATEPRESCALER_32
Definition: stm32f4xx_hal_spi.h:240
#define SPI_NSS_HARD_INPUT
Definition: stm32f4xx_hal_spi.h:227
#define SPI_CRCCALCULATION_DISABLE
Definition: stm32f4xx_hal_spi.h:269
#define SPI_MODE_SLAVE
Definition: stm32f4xx_hal_spi.h:180
#define SPI_CRCCALCULATION_ENABLE
Definition: stm32f4xx_hal_spi.h:270
#define SPI_PHASE_2EDGE
Definition: stm32f4xx_hal_spi.h:218
#define SPI_NSS_SOFT
Definition: stm32f4xx_hal_spi.h:226
#define SPI_BAUDRATEPRESCALER_4
Definition: stm32f4xx_hal_spi.h:237
#define SPI_BAUDRATEPRESCALER_64
Definition: stm32f4xx_hal_spi.h:241
#define SPI_BAUDRATEPRESCALER_128
Definition: stm32f4xx_hal_spi.h:242
#define SPI_PHASE_1EDGE
Definition: stm32f4xx_hal_spi.h:217
#define SPI_DATASIZE_16BIT
Definition: stm32f4xx_hal_spi.h:200
#define SPI_POLARITY_LOW
Definition: stm32f4xx_hal_spi.h:208
#define SPI_DIRECTION_1LINE
Definition: stm32f4xx_hal_spi.h:191
#define SPI_MODE_MASTER
Definition: stm32f4xx_hal_spi.h:181
#define SPI_TIMODE_ENABLE
Definition: stm32f4xx_hal_spi.h:261
#define SPI_NSS_HARD_OUTPUT
Definition: stm32f4xx_hal_spi.h:228
#define SPI_BAUDRATEPRESCALER_8
Definition: stm32f4xx_hal_spi.h:238
#define SPI_DATASIZE_8BIT
Definition: stm32f4xx_hal_spi.h:199
#define SPI_DIRECTION_2LINES_RXONLY
Definition: stm32f4xx_hal_spi.h:190