14 namespace uhd {
namespace features {
40 using sptr = std::shared_ptr<spi_getter_iface>;
49 return "SPI Getter Interface";
58 const std::vector<uhd::features::spi_periph_config_t>& spi_periph_config)
Definition: discoverable_feature.hpp:26
feature_id_t
An enum of all features supported by the driver. When creating a new.
Definition: discoverable_feature.hpp:32
@ SPI_GETTER_IFACE
Definition: discoverable_feature.hpp:40
std::shared_ptr< discoverable_feature > sptr
Definition: discoverable_feature.hpp:28
Definition: spi_getter_iface.hpp:38
virtual ~spi_getter_iface()=default
std::string get_feature_name() const
Returns a human-readable string name of this feature.
Definition: spi_getter_iface.hpp:47
static discoverable_feature::feature_id_t get_feature_id()
Definition: spi_getter_iface.hpp:42
virtual uhd::spi_iface::sptr get_spi_ref(const std::vector< uhd::features::spi_periph_config_t > &spi_periph_config) const =0
std::shared_ptr< spi_iface > sptr
Definition: serial.hpp:124
#define UHD_API
Definition: config.h:87
Definition: build_info.hpp:12
Definition: spi_getter_iface.hpp:21
uint8_t periph_cs
Indicates which GPIO line to use for the CS signal.
Definition: spi_getter_iface.hpp:23
uint8_t periph_sdi
Indicates which GPIO line to use for the SDI signal.
Definition: spi_getter_iface.hpp:26
uint8_t periph_sdo
Indicates which GPIO line to use for the SDO signal.
Definition: spi_getter_iface.hpp:29
uint8_t periph_clk
Indicates which GPIO line to use for the SCLK signal.
Definition: spi_getter_iface.hpp:32