RTXI  3.0.0
The Real-Time eXperiment Interface Reference Manual
Public Member Functions
Oscilloscope::Component Class Reference

#include <oscilloscope.hpp>

Inheritance diagram for Oscilloscope::Component:
Inheritance graph
Collaboration diagram for Oscilloscope::Component:
Collaboration graph

Public Member Functions

 Component (Widgets::Plugin *hplugin, const std::string &probe_name)
 
void flushFifo ()
 
RT::OS::FifogetFifoPtr ()
 
void execute () override
 
- Public Member Functions inherited from Widgets::Component
 Component (Widgets::Plugin *hplugin, const std::string &mod_name, const std::vector< IO::channel_t > &channels, const std::vector< Widgets::Variable::Info > &variables)
 
template<typename T >
getValue (const size_t &var_id)
 
template<typename T >
void setValue (const size_t &var_id, T value)
 
std::string getDescription (const size_t &var_id)
 
std::string getValueString (const size_t &var_id)
 
RT::State::state_t getState () const
 
void setState (RT::State::state_t state)
 
std::vector< Widgets::Variable::InfogetParametersInfo ()
 
Widgets::PlugingetHostPlugin ()
 
- Public Member Functions inherited from RT::Thread
 Thread (std::string n, const std::vector< IO::channel_t > &c)
 
 Thread (const Thread &connector)=default
 
Threadoperator= (const Thread &connector)=default
 
 Thread (Thread &&)=delete
 
Threadoperator= (Thread &&)=delete
 
 ~Thread () override=default
 
- Public Member Functions inherited from IO::Block
 Block (std::string blockname, const std::vector< channel_t > &channels, bool isdependent)
 
 Block (const Block &block)=default
 
Blockoperator= (const Block &block)=default
 
 Block (Block &&)=delete
 
Blockoperator= (Block &&)=delete
 
virtual ~Block ()=default
 
std::string getName () const
 
size_t getCount (flags_t type) const
 
std::string getChannelName (IO::flags_t type, size_t index) const
 
std::string getChannelDescription (IO::flags_t type, size_t index) const
 
void writeinput (size_t index, const double &data)
 
const double & readPort (IO::flags_t direction, size_t index)
 
bool dependent () const
 
bool getActive () const
 
void setActive (bool act)
 
void assignID (size_t block_id)
 
size_t getID () const
 

Additional Inherited Members

- Protected Member Functions inherited from IO::Block
double & readinput (size_t index)
 
void writeoutput (size_t index, const double &data)
 

Detailed Description

Definition at line 67 of file oscilloscope.hpp.

Constructor & Destructor Documentation

◆ Component()

Oscilloscope::Component::Component(Widgets::Pluginhplugin,
const std::string & probe_name 
)

Definition at line 785 of file oscilloscope.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ execute()

void Oscilloscope::Component::execute(void )
overridevirtual

Function called periodically by the realtime task.

See also
RT::System

Implements RT::Thread.

Definition at line 799 of file oscilloscope.cpp.

Here is the call graph for this function:

◆ flushFifo()

void Oscilloscope::Component::flushFifo()

Definition at line 834 of file oscilloscope.cpp.

Here is the call graph for this function:

◆ getFifoPtr()

RT::OS::Fifo* Oscilloscope::Component::getFifoPtr()
inline

Definition at line 74 of file oscilloscope.hpp.


The documentation for this class was generated from the following files: