distortos  v0.7.0
object-oriented C++ RTOS for microcontrollers
STM32-SPIv1.hpp
Go to the documentation of this file.
1 
12 #ifndef SOURCE_CHIP_STM32_PERIPHERALS_SPIV1_INCLUDE_DISTORTOS_CHIP_STM32_SPIV1_HPP_
13 #define SOURCE_CHIP_STM32_PERIPHERALS_SPIV1_INCLUDE_DISTORTOS_CHIP_STM32_SPIV1_HPP_
14 
16 
17 namespace distortos
18 {
19 
20 namespace chip
21 {
22 
23 class SpiPeripheral;
24 
25 /*---------------------------------------------------------------------------------------------------------------------+
26 | global functions
27 +---------------------------------------------------------------------------------------------------------------------*/
28 
42 void configureSpi(const SpiPeripheral& spiPeripheral, devices::SpiMode mode, uint32_t clockFrequency,
43  uint8_t wordLength, bool lsbFirst);
44 
45 } // namespace chip
46 
47 } // namespace distortos
48 
49 #endif // SOURCE_CHIP_STM32_PERIPHERALS_SPIV1_INCLUDE_DISTORTOS_CHIP_STM32_SPIV1_HPP_
SpiMode enum class header.
SpiMode
Definition: SpiMode.hpp:29
void configureSpi(const SpiPeripheral &spiPeripheral, devices::SpiMode mode, uint32_t clockFrequency, uint8_t wordLength, bool lsbFirst)
Configures parameters of raw SPI peripheral.
Definition: STM32-SPIv1.cpp:30
Top-level namespace of distortos project.
Definition: buttons.hpp:33