mrfioc2  2.3.0
Public Member Functions | List of all members
evgDbus Class Reference

#include <evgDbus.h>

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

Public Member Functions

 evgDbus (const std::string &, const epicsUInt32, volatile epicsUInt8 *const)
 
 ~evgDbus ()
 
virtual void lock () const
 
virtual void unlock () const
 
void setSource (epicsUInt16)
 
epicsUInt16 getSource () const
 
- Public Member Functions inherited from mrf::ObjectInst< evgDbus >
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
 
child_iterator beginChild () const
 
child_iterator endChild () const
 
template<typename P >
mrf::auto_ptr< property< P > > getProperty (const char *pname)
 

Additional Inherited Members

- 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)
 
- Static Public Member Functions inherited from mrf::ObjectInst< evgDbus >
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< evgDbus >
 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 7 of file evgDbus.h.

Constructor & Destructor Documentation

◆ evgDbus()

evgDbus::evgDbus ( const std::string &  name,
const epicsUInt32  id,
volatile epicsUInt8 * const  pReg 
)

Definition at line 11 of file evgDbus.cpp.

12  :
14 m_id(id),
15 m_pReg(pReg) {
16 }
const std::string & name() const
Definition: object.h:393

◆ ~evgDbus()

evgDbus::~evgDbus ( )

Definition at line 18 of file evgDbus.cpp.

18  {
19 }

Member Function Documentation

◆ getSource()

epicsUInt16 evgDbus::getSource ( ) const

Definition at line 36 of file evgDbus.cpp.

36  {
37  epicsUInt32 dbusSrc = READ32(m_pReg, DBusSrc);
38  return dbusSrc & (0xf << (4 * m_id));
39 }
#define READ32(base, offset)
Definition: mrfCommonIO.h:114

◆ lock()

virtual void evgDbus::lock ( ) const
inlinevirtual

Implements mrf::Object.

Definition at line 13 of file evgDbus.h.

13 {};

◆ setSource()

void evgDbus::setSource ( epicsUInt16  src)

Definition at line 22 of file evgDbus.cpp.

22  {
23  epicsUInt32 mask = src << (4 * m_id);
24 
25  //Read-Modify-Write
26  epicsUInt32 dbusSrc = READ32(m_pReg, DBusSrc);
27 
28  //Zeroing out the bits that belong to this Dbus
29  dbusSrc = dbusSrc & ~(0xf << (4 * m_id));
30 
31  dbusSrc = dbusSrc | mask;
32  WRITE32(m_pReg, DBusSrc, dbusSrc);
33 }
#define READ32(base, offset)
Definition: mrfCommonIO.h:114
#define WRITE32(base, offset, value)
Definition: mrfCommonIO.h:119

◆ unlock()

virtual void evgDbus::unlock ( ) const
inlinevirtual

Implements mrf::Object.

Definition at line 14 of file evgDbus.h.

14 {};

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