theCore C++ embedded framework
skel/export/aux/spi.hpp File Reference

Contains platform driver skeleton for SPI bus. More...

#include <ecl/assert.h>
#include <common/bus.hpp>
Include dependency graph for skel/export/aux/spi.hpp:

Data Structures

struct  ecl::skel::spi_cfg< ch >
 Base template class for the SPI configuration. More...
 
class  ecl::skel::spi< ch >
 Driver implementation for SPI. More...
 

Namespaces

 ecl
 
 ecl::skel
 

Enumerations

enum  ecl::skel::spi_channel { ecl::skel::spi_channel::ch1, ecl::skel::spi_channel::ch2, ecl::skel::spi_channel::ch3 }
 List of avaliable SPI channels. More...
 
enum  ecl::skel::spi_type { ecl::skel::spi_type::master }
 SPI master/slave selection. More...
 
enum  ecl::skel::spi_cpol { ecl::skel::spi_cpol::low, ecl::skel::spi_cpol::high }
 SPI clock polarity. More...
 
enum  ecl::skel::spi_cpha { ecl::skel::spi_cpha::low, ecl::skel::spi_cpha::high }
 SPI clock phase. More...
 

Detailed Description

Contains platform driver skeleton for SPI bus.

This file can be used when creating new platform to speedup SPI driver development.