8 #ifndef INCLUDED_GR_UHD_RFNOC_MB_CONTROLLER_H
9 #define INCLUDED_GR_UHD_RFNOC_MB_CONTROLLER_H
14 #include <uhd/types/time_spec.hpp>
29 static constexpr
size_t DEFAULT_MB_INDEX = 0;
30 static constexpr
size_t ALL_MBOARDS =
static_cast<size_t>(-1);
32 using sptr = std::shared_ptr<rfnoc_mb_controller>;
39 const size_t mb_index = ALL_MBOARDS);
83 const size_t tk_idx = 0) = 0;
90 const size_t tk_idx = 0) = 0;
94 virtual ::uhd::time_spec_t
get_time_now(
const size_t tk_idx = 0)
const = 0;
The abstract base class for all 'terminal' processing blocks.
Definition: gnuradio-runtime/include/gnuradio/block.h:65
std::shared_ptr< rfnoc_graph > sptr
Definition: rfnoc_graph.h:32
Definition: rfnoc_mb_controller.h:27
virtual std::string get_time_source() const =0
Get the current time source.
virtual std::vector< std::string > get_clock_sources() const =0
Get available clock sources.
virtual void set_time_next_pps(const ::uhd::time_spec_t &time, const size_t tk_idx=0)=0
Set the motherboard time at the next PPS edge.
virtual void set_time_source(const std::string &source)=0
Set the time source for the motherboard.
virtual ::uhd::time_spec_t get_time_now(const size_t tk_idx=0) const =0
Get the current motherboard time.
virtual std::string get_clock_source() const =0
Get the current clock source.
std::shared_ptr< rfnoc_mb_controller > sptr
Definition: rfnoc_mb_controller.h:32
virtual void set_mb_index(const size_t mb_index)=0
Set the motherboard index this controller manages.
virtual void set_clock_source(const std::string &source)=0
Set the clock source for the motherboard.
virtual void synchronize(::uhd::time_spec_t &time)=0
Synchronize time across multiple motherboards.
virtual void set_rfnoc_graph(rfnoc_graph::sptr graph)=0
Set the RFNoC graph this controller is associated with.
virtual ::uhd::time_spec_t get_time_last_pps(const size_t tk_idx=0) const =0
Get the time at the last PPS edge.
static sptr make(rfnoc_graph::sptr graph=nullptr, const size_t mb_index=ALL_MBOARDS)
Factory function to create an RFNoC motherboard controller block.
virtual std::vector< std::string > get_time_sources() const =0
Get available time sources.
virtual size_t get_mb_index() const =0
Get the motherboard index this controller manages.
virtual void set_time_now(const ::uhd::time_spec_t &time, const size_t tk_idx=0)=0
Set the motherboard time.
#define GR_UHD_API
Definition: gr-uhd/include/gnuradio/uhd/api.h:18
GNU Radio logging wrapper.
Definition: basic_block.h:29