mrfioc2  2.3.0
Public Types | Public Member Functions | List of all members
CML Class Referenceabstract

#include <cml.h>

Inheritance diagram for CML:
Inheritance graph
[legend]
Collaboration diagram for CML:
Collaboration graph
[legend]

Public Types

enum  pattern {
  patternWaveform, patternRise, patternHigh, patternFall,
  patternLow
}
 
- Public Types inherited from mrf::Object
typedef m_obj_children_t::const_iterator child_iterator
 
typedef std::map< std::string, std::string > create_args_t
 
typedef Object *(* create_factory_t) (const std::string &name, const std::string &klass, const create_args_t &args)
 

Public Member Functions

 CML (const std::string &n)
 
virtual ~CML ()=0
 
virtual cmlMode mode () const =0
 
virtual void setMode (cmlMode)=0
 
virtual bool enabled () const =0
 
virtual void enable (bool)=0
 
virtual bool inReset () const =0
 
virtual void reset (bool)=0
 
virtual bool powered () const =0
 
virtual void power (bool)=0
 
virtual epicsUInt32 freqMultiple () const =0
 Speed of CML clock as a multiple of the event clock. More...
 
virtual double fineDelay () const =0
 delay by fraction of one event clock period. Units of sec More...
 
virtual void setFineDelay (double)=0
 
virtual bool polarityInvert () const =0
 Trigger level. More...
 
virtual void setPolarityInvert (bool)=0
 
virtual epicsUInt32 countHigh () const =0
 
virtual epicsUInt32 countLow () const =0
 
virtual epicsUInt32 countInit () const =0
 
virtual void setCountHigh (epicsUInt32)=0
 
virtual void setCountLow (epicsUInt32)=0
 
virtual void setCountInit (epicsUInt32)=0
 
virtual double timeHigh () const =0
 
virtual double timeLow () const =0
 
virtual double timeInit () const =0
 
virtual void setTimeHigh (double)=0
 
virtual void setTimeLow (double)=0
 
virtual void setTimeInit (double)=0
 
virtual bool recyclePat () const =0
 
virtual void setRecyclePat (bool)=0
 
virtual epicsUInt32 lenPattern (pattern) const =0
 
virtual epicsUInt32 lenPatternMax (pattern) const =0
 
virtual epicsUInt32 getPattern (pattern, unsigned char *, epicsUInt32) const =0
 
virtual void setPattern (pattern, const unsigned char *, epicsUInt32)=0
 
template<pattern P>
epicsUInt32 lenPattern () const
 
template<pattern P>
epicsUInt32 lenPatternMax () const
 
template<pattern P>
epicsUInt32 getPattern (unsigned char *b, epicsUInt32 l) const
 
template<pattern P>
void setPattern (const unsigned char *b, epicsUInt32 l)
 
void setModRaw (epicsUInt16 r)
 
epicsUInt16 modeRaw () const
 
- Public Member Functions inherited from mrf::ObjectInst< CML >
virtual propertyBasegetPropertyBase (const char *pname, const std::type_info &ptype)
 
virtual void visitProperties (bool(*cb)(propertyBase *, void *), void *arg)
 
- Public Member Functions inherited from mrf::Object
const std::string & name () const
 
const Objectparent () const
 
virtual void lock () const =0
 
virtual void unlock () const =0
 
child_iterator beginChild () const
 
child_iterator endChild () const
 
template<typename P >
mrf::auto_ptr< property< P > > getProperty (const char *pname)
 

Additional Inherited Members

- Static Public Member Functions inherited from mrf::ObjectInst< CML >
static int initObject ()
 
- Static Public Member Functions inherited from mrf::Object
static ObjectgetObject (const std::string &name)
 
static ObjectgetCreateObject (const std::string &name, const std::string &klass, const create_args_t &args=create_args_t())
 
static void addFactory (const std::string &klass, create_factory_t fn)
 
static void visitObjects (bool(*)(Object *, void *), void *)
 
- Protected Member Functions inherited from mrf::ObjectInst< CML >
 ObjectInst (const std::string &n)
 
 ObjectInst (const std::string &n, A a)
 
virtual ~ObjectInst ()
 
- Protected Member Functions inherited from mrf::Object
 Object (const std::string &n, const Object *par=0)
 
virtual ~Object ()=0
 

Detailed Description

Definition at line 25 of file cml.h.

Member Enumeration Documentation

◆ pattern

Enumerator
patternWaveform 
patternRise 
patternHigh 
patternFall 
patternLow 

Definition at line 28 of file cml.h.

Constructor & Destructor Documentation

◆ CML()

CML::CML ( const std::string &  n)
inlineexplicit

Definition at line 36 of file cml.h.

◆ ~CML()

CML::~CML ( )
pure virtual

Definition at line 88 of file evr.cpp.

89 {
90 }

Member Function Documentation

◆ countHigh()

virtual epicsUInt32 CML::countHigh ( ) const
pure virtual

Implemented in MRMCML.

◆ countInit()

virtual epicsUInt32 CML::countInit ( ) const
pure virtual

Implemented in MRMCML.

◆ countLow()

virtual epicsUInt32 CML::countLow ( ) const
pure virtual

Implemented in MRMCML.

◆ enable()

virtual void CML::enable ( bool  )
pure virtual

Implemented in MRMCML.

◆ enabled()

virtual bool CML::enabled ( ) const
pure virtual

Implemented in MRMCML.

◆ fineDelay()

virtual double CML::fineDelay ( ) const
pure virtual

delay by fraction of one event clock period. Units of sec

Implemented in MRMCML.

◆ freqMultiple()

virtual epicsUInt32 CML::freqMultiple ( ) const
pure virtual

Speed of CML clock as a multiple of the event clock.

Implemented in MRMCML.

◆ getPattern() [1/2]

virtual epicsUInt32 CML::getPattern ( pattern  ,
unsigned char *  ,
epicsUInt32   
) const
pure virtual

Implemented in MRMCML.

◆ getPattern() [2/2]

template<pattern P>
epicsUInt32 CML::getPattern ( unsigned char *  b,
epicsUInt32  l 
) const
inline

Definition at line 98 of file cml.h.

98 {return this->getPattern(P,b,l);};
virtual epicsUInt32 getPattern(pattern, unsigned char *, epicsUInt32) const =0

◆ inReset()

virtual bool CML::inReset ( ) const
pure virtual

Implemented in MRMCML.

◆ lenPattern() [1/2]

virtual epicsUInt32 CML::lenPattern ( pattern  ) const
pure virtual

Implemented in MRMCML.

◆ lenPattern() [2/2]

template<pattern P>
epicsUInt32 CML::lenPattern ( ) const
inline

Definition at line 92 of file cml.h.

92 {return lenPattern(P);}
epicsUInt32 lenPattern() const
Definition: cml.h:92

◆ lenPatternMax() [1/2]

virtual epicsUInt32 CML::lenPatternMax ( pattern  ) const
pure virtual

Implemented in MRMCML.

◆ lenPatternMax() [2/2]

template<pattern P>
epicsUInt32 CML::lenPatternMax ( ) const
inline

Definition at line 94 of file cml.h.

94 {return lenPatternMax(P);}
epicsUInt32 lenPatternMax() const
Definition: cml.h:94

◆ mode()

virtual cmlMode CML::mode ( ) const
pure virtual

Implemented in MRMCML.

◆ modeRaw()

epicsUInt16 CML::modeRaw ( ) const
inline

Definition at line 105 of file cml.h.

105 {return (epicsUInt16)mode();};
virtual cmlMode mode() const =0

◆ polarityInvert()

virtual bool CML::polarityInvert ( ) const
pure virtual

Trigger level.

Implemented in MRMCML.

◆ power()

virtual void CML::power ( bool  )
pure virtual

Implemented in MRMCML.

◆ powered()

virtual bool CML::powered ( ) const
pure virtual

Implemented in MRMCML.

◆ recyclePat()

virtual bool CML::recyclePat ( ) const
pure virtual

Implemented in MRMCML.

◆ reset()

virtual void CML::reset ( bool  )
pure virtual

Implemented in MRMCML.

◆ setCountHigh()

virtual void CML::setCountHigh ( epicsUInt32  )
pure virtual

Implemented in MRMCML.

◆ setCountInit()

virtual void CML::setCountInit ( epicsUInt32  )
pure virtual

Implemented in MRMCML.

◆ setCountLow()

virtual void CML::setCountLow ( epicsUInt32  )
pure virtual

Implemented in MRMCML.

◆ setFineDelay()

virtual void CML::setFineDelay ( double  )
pure virtual

Implemented in MRMCML.

◆ setMode()

virtual void CML::setMode ( cmlMode  )
pure virtual

Implemented in MRMCML.

◆ setModRaw()

void CML::setModRaw ( epicsUInt16  r)
inline

Definition at line 104 of file cml.h.

104 {setMode((cmlMode)r);};
cmlMode
Definition: cml.h:18
virtual void setMode(cmlMode)=0

◆ setPattern() [1/2]

virtual void CML::setPattern ( pattern  ,
const unsigned char *  ,
epicsUInt32   
)
pure virtual

Implemented in MRMCML.

◆ setPattern() [2/2]

template<pattern P>
void CML::setPattern ( const unsigned char *  b,
epicsUInt32  l 
)
inline

Definition at line 102 of file cml.h.

102 {this->setPattern(P,b,l);};
virtual void setPattern(pattern, const unsigned char *, epicsUInt32)=0

◆ setPolarityInvert()

virtual void CML::setPolarityInvert ( bool  )
pure virtual

Implemented in MRMCML.

◆ setRecyclePat()

virtual void CML::setRecyclePat ( bool  )
pure virtual

Implemented in MRMCML.

◆ setTimeHigh()

virtual void CML::setTimeHigh ( double  )
pure virtual

Implemented in MRMCML.

◆ setTimeInit()

virtual void CML::setTimeInit ( double  )
pure virtual

Implemented in MRMCML.

◆ setTimeLow()

virtual void CML::setTimeLow ( double  )
pure virtual

Implemented in MRMCML.

◆ timeHigh()

virtual double CML::timeHigh ( ) const
pure virtual

Implemented in MRMCML.

◆ timeInit()

virtual double CML::timeInit ( ) const
pure virtual

Implemented in MRMCML.

◆ timeLow()

virtual double CML::timeLow ( ) const
pure virtual

Implemented in MRMCML.


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