36#ifndef _FREERTOS_DRIVERS_ST_STM32SPI_HXX_
37#define _FREERTOS_DRIVERS_ST_STM32SPI_HXX_
59 Stm32SPI(
const char *
name, SPI_TypeDef *port, uint32_t interrupt,
77 int transfer(
struct spi_ioc_transfer *msg)
override;
const char * name
device name
This class provides a mutex API.
Private data for an SPI device.
void bus_lock()
Lock the bus shared by many chip selects.
void(* ChipSelectMethod)()
Function point for the chip select assert and deassert methods.
Specialization of SPI driver for STM32 devices.
int update_configuration() override
Update the configuration of the bus.
SPI_HandleTypeDef spiHandle_
Stm32 HAL device structure.
void disable() override
function to disable device
int transfer(struct spi_ioc_transfer *msg) override
Method to transmit/receive the data.
Stm32SPI()
Default constructor.
void enable() override
function to enable device
int transfer_polled(struct spi_ioc_transfer *msg) override
Method to transmit/receive the data.
#define DISALLOW_COPY_AND_ASSIGN(TypeName)
Removes default copy-constructor and assignment added by C++.