#include <uhd/types/serial.hpp>
Public Types | |
enum | edge_t { EDGE_RISE = 'r', EDGE_FALL = 'f' } |
Public Member Functions | |
spi_config_t (edge_t edge=EDGE_RISE) | |
spi_config_t (edge_t edge, size_t divider) | |
Public Attributes | |
edge_t | mosi_edge |
on what edge is the mosi data valid? More... | |
edge_t | miso_edge |
on what edge is the miso data valid? More... | |
bool | use_custom_divider |
Set the clock speed for this transaction. More... | |
size_t | divider |
Optionally set the SPI clock divider for this transaction. More... | |
The SPI configuration struct: Used to configure a SPI transaction interface.
Create a new spi config.
edge | the default edge for mosi and miso |
uhd::spi_config_t::spi_config_t | ( | edge_t | edge, |
size_t | divider | ||
) |
Create a new spi config with custom divider.
edge | the default edge for mosi and miso |
divider | the divider setting to use |
size_t uhd::spi_config_t::divider |
Optionally set the SPI clock divider for this transaction.
edge_t uhd::spi_config_t::miso_edge |
on what edge is the miso data valid?
edge_t uhd::spi_config_t::mosi_edge |
on what edge is the mosi data valid?
bool uhd::spi_config_t::use_custom_divider |
Set the clock speed for this transaction.