uTL
micro Template library
|
Public Member Functions | |
SPI (uint32_t clk=100000) noexcept | |
![]() | |
uint32_t | clock () const |
void | clock (uint32_t c) |
set clock frequency of the bus More... | |
byte_t | tx_data (byte_t out) |
size_t | tx_data (const byte_t *out, byte_t *in, size_t n) |
Transmit a number of bytes to the spi bus and read the response. More... | |
byte_t | rx_data () |
size_t | rx_data (byte_t *in, size_t n) |
Receive a number of bytes from the spi bus while transmitting 0xFFs. More... | |
Additional Inherited Members | |
![]() | |
using | type = spi_bb_i< SPI, CPOL, CPHA, spi::bitOrder::MSB_First > |
Export type as identity meta-function. More... | |
![]() | |
using | type = spi_i< spi_bb_i< SPI, CPOL, CPHA, spi::bitOrder::MSB_First > > |
Export type as identity meta-function. More... | |
![]() | |
~spi_bb_i ()=default | |
spi_bb_i (uint32_t clk) noexcept | |
A default constructor. More... | |
![]() | |
spi_i ()=default | |
Allow constructor from derived only. More... | |
spi_i (const type &)=delete | |
No copies. More... | |
~spi_i ()=default | |
Allow destructor from derived only. More... | |
type & | operator= (const type &)=delete |
Definition at line 34 of file test_spi_impl.cpp.
|
inlinenoexcept |
Definition at line 42 of file test_spi_impl.cpp.