![]() |
Arduino Core for STM32
1.0
|
This file contains class with methods to handle SPI periphery. More...
#include "HardwareCRC.h"
Go to the source code of this file.
Classes | |
class | SPISettings |
Class, that holds SPI settings. More... | |
class | HardwareSPI |
This class is for handling SPI periphery. More... | |
class | HardwareSPI_O |
This class is for handling SPI periphery, but is more optimized for speed same as arduino SPI class. More... | |
Macros | |
#define | SPI_HAS_TRANSACTION 1 |
Macro contains 1 when SPI supports transactions. More... | |
#define | SPI_CLOCK_DIV2 SPI_BAUDRATEPRESCALER_2 |
#define | SPI_CLOCK_DIV4 SPI_BAUDRATEPRESCALER_4 |
#define | SPI_CLOCK_DIV8 SPI_BAUDRATEPRESCALER_8 |
#define | SPI_CLOCK_DIV16 SPI_BAUDRATEPRESCALER_16 |
#define | SPI_CLOCK_DIV32 SPI_BAUDRATEPRESCALER_32 |
#define | SPI_CLOCK_DIV64 SPI_BAUDRATEPRESCALER_64 |
#define | SPI_CLOCK_DIV128 SPI_BAUDRATEPRESCALER_128 |
#define | SPI_CLOCK_DIV256 SPI_BAUDRATEPRESCALER_256 |
#define | SPI_MASTER SPI_MODE_MASTER |
#define | SPI_SLAVE SPI_MODE_SLAVE |
Enumerations | |
enum | SPI_Status { SPI_OK = HAL_OK, SPI_ERR = HAL_ERROR, SPI_BUSY_ERR = HAL_BUSY, SPI_TIMEOUT = HAL_TIMEOUT, SPI_GEN_ERR, SPI_ERR_LOCKED, SPI_CRC_ERR } |
Enumerations of SPI status codes. More... | |
enum | SPI_ErrorCode { SPI_ERROR_NONE = HAL_SPI_ERROR_NONE, SPI_ERROR_MODF = HAL_SPI_ERROR_MODF, SPI_ERROR_CRC = HAL_SPI_ERROR_CRC, SPI_ERROR_OVR = HAL_SPI_ERROR_OVR, SPI_ERROR_DMA = HAL_SPI_ERROR_DMA, SPI_ERROR_FLAG = HAL_SPI_ERROR_FLAG, SPI_ERROR_ABORT = HAL_SPI_ERROR_ABORT } |
Enumerations of SPI Hardware error codes. More... | |
enum | SPI_CRCLength { SPI_CRC_DATAWIDTH = 0, SPI_CRC_1BYTE = 8, SPI_CRC_2BYTES = 16 } |
Enumerations of SPI CRC lengths. More... | |
Variables | |
const uint8_t | SPI_MODE0 = 0x00 |
CPOL: 0 CPHA: 0. More... | |
const uint8_t | SPI_MODE1 = 0x01 |
CPOL: 0 CPHA: 1. More... | |
const uint8_t | SPI_MODE2 = 0x10 |
CPOL: 1 CPHA: 0. More... | |
const uint8_t | SPI_MODE3 = 0x11 |
CPOL: 1 CPHA: 1. More... | |
This file contains class with methods to handle SPI periphery.
#define SPI_HAS_TRANSACTION 1 |
Macro contains 1 when SPI supports transactions.
enum SPI_Status |
Enumerations of SPI status codes.
enum SPI_ErrorCode |
Enumerations of SPI Hardware error codes.
enum SPI_CRCLength |