TwiceAsNice  2019-02-18
Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
Basda::CoConCard Class Reference

#include <Card.h>

Inheritance diagram for Basda::CoConCard:
Inheritance graph
Collaboration diagram for Basda::CoConCard:
Collaboration graph

Classes

struct  CoConCardEvent
 This is the implementation of the handler for the incoming events and function errors. More...
 

Public Member Functions

 CoConCard (std::string _name, Nice::JointPtr _config, MPIACoreProtocolPtr &_protocol)
 
virtual ~CoConCard ()
 
void open ()
 
void close ()
 
void init ()
 
Nice::BitSet getCollision ()
 
void resetCollision ()
 
void simulateCollision (const Nice::BitSet _collision)
 
bool readOutputPort (unsigned int _index)
 
void setOutputPort (int _portIndex, enum Basda::DigitalIODevice::PortState _desiredState)
 
 CoConCard (std::string _name, Nice::JointPtr _config, MPIACoreProtocolPtr &_protocol)
 
virtual ~CoConCard ()
 
void open ()
 
void close ()
 
void init ()
 
Nice::BitSet getCollision ()
 
void resetCollision ()
 
void simulateCollision (const Nice::BitSet _collision)
 
bool readOutputPort (unsigned int _index)
 
void setOutputPort (int _portIndex, enum Basda::DigitalIODevice::PortState _desiredState)
 
- Public Member Functions inherited from Basda::MPIACoreCard
 MPIACoreCard (std::string _name, Nice::JointPtr _config, Basda::MPIACoreProtocolPtr _protocol)
 Constructor. More...
 
 ~MPIACoreCard ()
 Destructor. More...
 
std::string version ()
 The methods returns the current version string of the MPIA in-house electronic. More...
 
std::vector< unsigned int > getRegistration ()
 The methods returns all registered module and card that are registered at the MPIA in-house electronic. More...
 
void reset ()
 Resets the MPIA in-house electronic software and hardware. More...
 
void setXonXoff (const ValueSwitch::Constant _enable)
 Enables/disables the XOnXOff protocol. More...
 
bool getXonXoff ()
 Returns the status of the XOnXOff protocol. More...
 
void setSerialRate (const ValueSerialRate::Constant _baudRate)
 Sets the baud rate of the serial interface. More...
 
unsigned int getSerialRate ()
 Returns the current baud rate. More...
 
void setCANRate (const ValueCanRate::Constant _canRate)
 Sets the CAN rate of the CAN bus. More...
 
unsigned int getCANRate ()
 Returns the current CAN rate. More...
 
void setEventFlag (const ValueSwitch::Constant _eventMode)
 Sets the event message flag. More...
 
bool getEventFlag ()
 Returns the current event message flags. More...
 
void setInfoFlag (const ValueSwitch::Constant _infoMode)
 Sets the event message flag. More...
 
bool getInfoFlag ()
 Returns the current event message flags. More...
 
void setIPAddress (const std::string _ip)
 Sets the IP address of the MPIA in-house electronic. More...
 
std::string getIPAddress ()
 Returns the current IP address. More...
 
void setGateAddress (const std::string _gate)
 Sets the gate address of the MPIA in-house electronic. More...
 
std::string getGateAddress ()
 Returns the current gate address. More...
 
void setMaskAddress (const std::string _mask)
 Sets the mask address of the MPIA in-house electronic. More...
 
std::string getMaskAddress ()
 Returns the current mask address. More...
 
void setLinkTimeout (const unsigned int _timeout)
 Sets the Ethernet connection timeout. More...
 
int getLinkTimeout ()
 Returns the Ethernet connection timeout. More...
 
void waitForEvent ()
 Waits until an event is received in a certain time (timeout). More...
 
std::string getFatalError ()
 Returns the fatal error message. More...
 
void resetFatalError ()
 Resets the fatal error. More...
 
 MPIACoreCard (std::string _name, Nice::JointPtr _config, Basda::MPIACoreProtocolPtr _protocol)
 Constructor. More...
 
 ~MPIACoreCard ()
 Destructor. More...
 
std::string version ()
 The methods returns the current version string of the MPIA in-house electronic. More...
 
std::vector< unsigned int > getRegistration ()
 The methods returns all registered module and card that are registered at the MPIA in-house electronic. More...
 
void reset ()
 Resets the MPIA in-house electronic software and hardware. More...
 
void setXonXoff (const ValueSwitch::Constant _enable)
 Enables/disables the XOnXOff protocol. More...
 
bool getXonXoff ()
 Returns the status of the XOnXOff protocol. More...
 
void setSerialRate (const ValueSerialRate::Constant _baudRate)
 Sets the baud rate of the serial interface. More...
 
unsigned int getSerialRate ()
 Returns the current baud rate. More...
 
void setCANRate (const ValueCanRate::Constant _canRate)
 Sets the CAN rate of the CAN bus. More...
 
unsigned int getCANRate ()
 Returns the current CAN rate. More...
 
void setEventFlag (const ValueSwitch::Constant _eventMode)
 Sets the event message flag. More...
 
bool getEventFlag ()
 Returns the current event message flags. More...
 
void setInfoFlag (const ValueSwitch::Constant _infoMode)
 Sets the event message flag. More...
 
bool getInfoFlag ()
 Returns the current event message flags. More...
 
void setIPAddress (const std::string _ip)
 Sets the IP address of the MPIA in-house electronic. More...
 
std::string getIPAddress ()
 Returns the current IP address. More...
 
void setGateAddress (const std::string _gate)
 Sets the gate address of the MPIA in-house electronic. More...
 
std::string getGateAddress ()
 Returns the current gate address. More...
 
void setMaskAddress (const std::string _mask)
 Sets the mask address of the MPIA in-house electronic. More...
 
std::string getMaskAddress ()
 Returns the current mask address. More...
 
void setLinkTimeout (const unsigned int _timeout)
 Sets the Ethernet connection timeout. More...
 
int getLinkTimeout ()
 Returns the Ethernet connection timeout. More...
 
void waitForEvent ()
 Waits until an event is received in a certain time (timeout). More...
 
std::string getFatalError ()
 Returns the fatal error message. More...
 
void resetFatalError ()
 Resets the fatal error. More...
 

Private Types

typedef IceUtil::Handle< CoConCardEventCoConCoduleEventPtr
 
typedef IceUtil::Handle< CoConCardEventCoConCoduleEventPtr
 

Private Member Functions

void addInternalProperties ()
 
void addInternalProperties ()
 

Private Attributes

Nice::BitSet m_collision
 

Additional Inherited Members

- Protected Member Functions inherited from Basda::MPIACore
 MPIACore (std::string _name, Nice::JointPtr _config, const MPIACoreProtocolPtr _protocol)
 
 ~MPIACore ()
 
template<typename Type >
Type checkAttribute (const std::string &_node, const std::string &_attributeName, const Type &_default)
 
template<typename RT >
std::vector< RT > getVector (const std::string &_str)
 This is a generic method to convert a data string to a vector. More...
 
std::string name ()
 
 MPIACore (std::string _name, Nice::JointPtr _config, const MPIACoreProtocolPtr _protocol)
 
 ~MPIACore ()
 
template<typename Type >
Type checkAttribute (const std::string &_node, const std::string &_attributeName, const Type &_default)
 
template<typename RT >
std::vector< RT > getVector (const std::string &_str)
 This is a generic method to convert a data string to a vector. More...
 
std::string name ()
 
- Static Protected Member Functions inherited from Basda::MPIACore
template<typename RT >
static RT getValue (const std::string &_str)
 This is a generic method to convert a data string to a number. More...
 
template<typename RT >
static RT getValue (const std::string &_str)
 This is a generic method to convert a data string to a number. More...
 
- Protected Attributes inherited from Basda::MPIACore
std::string m_name
 
std::string m_address
 member of the connection address More...
 
unsigned int m_cardNo
 member of the card number More...
 
unsigned int m_moduleNo
 member of the module number More...
 
HandlerPtr m_handler
 
MPIACoreProtocolPtr m_protocol
 member of the protocol to communicate with the MPIA in-house electronic. More...
 
Nice::JointPtr m_config
 member of the root of the configuration tree More...
 
bool m_warning
 

Member Typedef Documentation

◆ CoConCoduleEventPtr [1/2]

typedef IceUtil::Handle<CoConCardEvent> Basda::CoConCard::CoConCoduleEventPtr
private

◆ CoConCoduleEventPtr [2/2]

typedef IceUtil::Handle<CoConCardEvent> Basda::CoConCard::CoConCoduleEventPtr
private

Constructor & Destructor Documentation

◆ CoConCard() [1/2]

Basda::CoConCard::CoConCard ( std::string  _name,
Nice::JointPtr  _config,
MPIACoreProtocolPtr _protocol 
)

◆ ~CoConCard() [1/2]

virtual Basda::CoConCard::~CoConCard ( )
inlinevirtual

◆ CoConCard() [2/2]

Basda::CoConCard::CoConCard ( std::string  _name,
Nice::JointPtr  _config,
MPIACoreProtocolPtr _protocol 
)

◆ ~CoConCard() [2/2]

virtual Basda::CoConCard::~CoConCard ( )
inlinevirtual

Member Function Documentation

◆ addInternalProperties() [1/2]

void Basda::CoConCard::addInternalProperties ( )
private

◆ addInternalProperties() [2/2]

void Basda::CoConCard::addInternalProperties ( )
private

◆ close() [1/2]

void Basda::CoConCard::close ( )

◆ close() [2/2]

void Basda::CoConCard::close ( )

◆ getCollision() [1/2]

Nice::BitSet Basda::CoConCard::getCollision ( )

◆ getCollision() [2/2]

Nice::BitSet Basda::CoConCard::getCollision ( )

◆ init() [1/2]

void Basda::CoConCard::init ( )

◆ init() [2/2]

void Basda::CoConCard::init ( )

◆ open() [1/2]

void Basda::CoConCard::open ( )

◆ open() [2/2]

void Basda::CoConCard::open ( )

◆ readOutputPort() [1/2]

bool Basda::CoConCard::readOutputPort ( unsigned int  _index)

◆ readOutputPort() [2/2]

bool Basda::CoConCard::readOutputPort ( unsigned int  _index)

◆ resetCollision() [1/2]

void Basda::CoConCard::resetCollision ( )

◆ resetCollision() [2/2]

void Basda::CoConCard::resetCollision ( )

◆ setOutputPort() [1/2]

void Basda::CoConCard::setOutputPort ( int  _portIndex,
enum Basda::DigitalIODevice::PortState  _desiredState 
)

◆ setOutputPort() [2/2]

void Basda::CoConCard::setOutputPort ( int  _portIndex,
enum Basda::DigitalIODevice::PortState  _desiredState 
)

◆ simulateCollision() [1/2]

void Basda::CoConCard::simulateCollision ( const Nice::BitSet  _collision)

◆ simulateCollision() [2/2]

void Basda::CoConCard::simulateCollision ( const Nice::BitSet  _collision)

Member Data Documentation

◆ m_collision

Nice::BitSet Basda::CoConCard::m_collision
private

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