#include <spi.hpp>
|
using | resources = typelist< typename base_type::resources, typename mpl::spi_gpio_output_resources< gpio_sck_type, gpio_output_speed >::type, typename mpl::spi_gpio_input_resources< gpio_miso_type >::type, typename mpl::spi_gpio_output_resources< gpio_mosi_type, gpio_output_speed >::type > |
|
typedef SPI< spi_no > | SPIx |
|
typedef irq::spi< spi_no > | irq |
|
typedef rcc_spi_clock_resources< spi_no > | resources |
|
typedef reglist< regval< typename SPIx::CR1::MSTR, 1 >, regval< typename SPIx::CR1::SSI, 1 > > | master |
|
typedef regval< typename SPIx::CR1::MSTR, 0 > | slave |
|
typedef regval< typename SPIx::CR1::SSM, 1 > | software_slave_management |
|
typedef regval< typename SPIx::CR1::BR,(value==0 ? 0 :value >=clk_freq/2 ? 0 :value >=clk_freq/4 ? 1 :value >=clk_freq/8 ? 2 :value >=clk_freq/16 ? 3 :value >=clk_freq/32 ? 4 :value >=clk_freq/64 ? 5 :value >=clk_freq/128 ? 6 :7) > | max_frequency |
|
typedef typename std::enable_if< value==8||value==16, regval< typename SPIx::CR1::DFF, value==16 ? 1 :0 > >::type | data_size |
|
◆ resources
template<unsigned spi_no, typename system_clock_type , typename gpio_sck_type = void, typename gpio_miso_type = void, typename gpio_mosi_type = void, freq_t gpio_output_speed = mhz(50)>
using mptl::spi< spi_no, system_clock_type, gpio_sck_type, gpio_miso_type, gpio_mosi_type, gpio_output_speed >::resources = typelist< typename base_type::resources, typename mpl::spi_gpio_output_resources< gpio_sck_type, gpio_output_speed >::type, typename mpl::spi_gpio_input_resources< gpio_miso_type >::type, typename mpl::spi_gpio_output_resources< gpio_mosi_type, gpio_output_speed >::type > |
The documentation for this class was generated from the following file:
- arch/arm/cortex/stm32/f1/include/arch/spi.hpp