fastcat 0.13.15
C++ EtherCAT Device Command & Control Library
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
fastcat::SchmittTrigger Class Reference

#include "schmitt_trigger.h"

Inheritance diagram for fastcat::SchmittTrigger:
Inheritance graph
[legend]
Collaboration diagram for fastcat::SchmittTrigger:
Collaboration graph
[legend]

Public Member Functions

 SchmittTrigger ()
 
bool ConfigFromYaml (const YAML::Node &node) override
 
bool Read () override
 
- Public Member Functions inherited from fastcat::DeviceBase
virtual ~DeviceBase ()
 
virtual FaultType Process ()
 
virtual bool Write (DeviceCmd &cmd)
 
virtual void Fault ()
 
virtual void Reset ()
 
virtual void SetInitializationTime (double time_sec, double monotonic_time_sec)
 
void RegisterCmdQueue (std::shared_ptr< ThreadSafeQueue< DeviceCmd > > cmd_queue)
 
std::string GetName ()
 
std::shared_ptr< DeviceState > GetState ()
 
void SetTime (double time, double monotonic_time)
 
void SetLoopPeriod (double loop_period)
 

Protected Attributes

double low_threshold_ {0}
 
double high_threshold_ {0}
 
- Protected Attributes inherited from fastcat::DeviceBase
std::string name_
 unique device name
 
double last_monotonic_time_ = 0.0
 
double loop_period_ = 0.0
 only some devices need
 
double initialization_time_sec_ = -1
 only some devices need
 
double monotonic_initialization_time_sec_ = -1
 only some devices need
 
bool device_fault_active_ = false
 device-level fault, manager also has fault status flag
 
std::shared_ptr< DeviceState > state_
 Fastcat state data.
 
std::shared_ptr< ThreadSafeQueue< DeviceCmd > > cmd_queue_
 for intra-device commands
 

Additional Inherited Members

- Public Attributes inherited from fastcat::DeviceBase
std::vector< Signal > signals_
 

Constructor & Destructor Documentation

◆ SchmittTrigger()

fastcat::SchmittTrigger::SchmittTrigger ( )

Member Function Documentation

◆ ConfigFromYaml()

bool fastcat::SchmittTrigger::ConfigFromYaml ( const YAML::Node &  node)
overridevirtual

Implements fastcat::DeviceBase.

Here is the call graph for this function:

◆ Read()

bool fastcat::SchmittTrigger::Read ( )
overridevirtual

Implements fastcat::DeviceBase.

Here is the call graph for this function:

Member Data Documentation

◆ high_threshold_

double fastcat::SchmittTrigger::high_threshold_ {0}
protected

◆ low_threshold_

double fastcat::SchmittTrigger::low_threshold_ {0}
protected

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