TwiceAsNice
2019-02-18
|
#include <CDevice.h>
Public Member Functions | |
CoConCDevice (const Nice::JointPtr &_config) | |
ctor More... | |
virtual | ~CoConCDevice () |
dtor Does nothing. More... | |
virtual void | open () |
Open a communication channel with the device. More... | |
virtual void | close () |
Close the communication channel with the device. More... | |
virtual void | reset (Basda::DeviceAsync &=Basda::Device::s_async) |
This method might be called when the service will be reseted. More... | |
virtual void | version () |
This method returns the version string of the device. More... | |
virtual void | init (DeviceAsync &=Basda::Device::s_async) |
This method initialize the device and set the state to INIT. More... | |
virtual void | deinit (DeviceAsync &=Basda::Device::s_async) |
This method deinitialize the device and set the state to OFFLINE. More... | |
virtual void | activate (DeviceAsync &=Basda::Device::s_async) |
activate something More... | |
virtual void | deactivate (DeviceAsync &=Basda::Device::s_async) |
deactivate something More... | |
virtual bool | isReachable () |
read the reachability status from the property tree. More... | |
virtual void | resetCollision () |
Reset the status of the collisions on the board. More... | |
virtual Nice::BitSet | read () |
obtain the collision bits from the board. More... | |
virtual void | write (Nice::BitSet _collision) |
virtual enum Basda::DigitalIODevice::PortState | readOutputPort (int index) |
virtual void | setOutputPort (int portIndex, enum PortState desiredState) |
virtual Nice::JointPtrVector | description () |
read description More... | |
void | setChatType (Nice::ChatLinePtr _chat) |
Fix a communication type of the protocol for future use. More... | |
CoConCDevice (const Nice::JointPtr &_config) | |
virtual | ~CoConCDevice () |
virtual void | open () |
open device More... | |
virtual void | close () |
close device More... | |
virtual void | reset (Basda::DeviceAsync &=Basda::Device::s_async) |
reset the device More... | |
virtual void | version () |
version More... | |
virtual void | init (DeviceAsync &=Basda::Device::s_async) |
init the device More... | |
virtual void | deinit (DeviceAsync &=Basda::Device::s_async) |
deinit the device More... | |
virtual void | activate (DeviceAsync &=Basda::Device::s_async) |
activate the device More... | |
virtual void | deactivate (DeviceAsync &=Basda::Device::s_async) |
deactivate the device More... | |
virtual bool | isReachable () |
virtual void | resetCollision () |
virtual Nice::BitSet | read () |
read from the device all ports. More... | |
virtual void | write (Nice::BitSet _collision) |
virtual enum Basda::DigitalIODevice::PortState | readOutputPort (int index) |
virtual void | setOutputPort (int portIndex, enum PortState desiredState) |
virtual Nice::JointPtrVector | description () |
read description More... | |
void | setChatType (Nice::ChatLinePtr _chat) |
![]() | |
MoccaCDevice (const Nice::JointPtr &_config) | |
Constructor. More... | |
virtual | ~MoccaCDevice () |
Constructor. More... | |
MoccaCDevice (const Nice::JointPtr &_config) | |
Constructor. More... | |
virtual | ~MoccaCDevice () |
Constructor. More... | |
MoccaCDevice (const Nice::JointPtr &_config) | |
Constructor. More... | |
virtual | ~MoccaCDevice () |
Constructor. More... | |
![]() | |
DigitalIODevice (const Nice::JointPtr &_config) | |
DigitalIODevice (const Nice::JointPtr &_config) | |
DigitalIODevice (const Nice::JointPtr &_config) | |
![]() | |
Device (const Nice::JointPtr &_config) | |
constructor. This is an elementary (lazy) action which stores the name and gets configuration. More... | |
virtual | ~Device () |
destructor Does nothing More... | |
virtual void | setConfig (const Nice::JointPtr &_config) |
init with config tree ptr More... | |
Nice::JointPtr & | config () |
retrieve the property tree More... | |
std::string & | name () |
retrieve the name set at ctor time. More... | |
Device (const Nice::JointPtr &_config) | |
constructor. This is an elementary (lazy) action which stores the name and gets configuration. More... | |
virtual | ~Device () |
destructor Does nothing More... | |
virtual void | setConfig (const Nice::JointPtr &_config) |
init with config tree ptr More... | |
Nice::JointPtr & | config () |
retrieve the property tree More... | |
std::string & | name () |
retrieve the name set at ctor time. More... | |
Private Member Functions | |
void | createInstances () |
Populate the property tree at the MOD node. This does not involve any interaction with electronics. More... | |
void | setIsReachable (const bool _isReachable) |
Set the reachability status in the property tree. More... | |
void | createInstances () |
void | setIsReachable (const bool _isReachable) |
Private Attributes | |
MPIACoreProtocolPtr | m_protocol |
This member upholds the connection to the MoCon. More... | |
CoConCardPtr | m_card |
This member keeps the card object. More... | |
std::string | m_address |
int | m_cardNo |
int | m_moduleNo |
bool | m_isReachable |
Nice::Mutex | m_mutex |
Nice::Completion | m_completion |
Basda::CoConCDevice::CoConCDevice | ( | const Nice::JointPtr & | _config | ) |
ctor
_config | TAN configuration set. |
|
virtual |
dtor Does nothing.
Basda::CoConCDevice::CoConCDevice | ( | const Nice::JointPtr & | _config | ) |
|
virtual |
|
virtual |
activate something
_asynch | the call back object |
_asynch | the call back object |
Implements Basda::Device.
|
virtual |
activate the device
Implements Basda::Device.
|
virtual |
close device
Implements Basda::Device.
|
virtual |
Close the communication channel with the device.
This method might be called when the service goes in the OFFLINE state.
The connection to the collision controller will be closed.
This method might be called when the service goes in the OFFLINE state.
The connection to the collision controller will be closed.
Implements Basda::Device.
|
private |
|
private |
Populate the property tree at the MOD node. This does not involve any interaction with electronics.
|
virtual |
deactivate something
_asynch | the call back object |
_asynch | the call back object |
Implements Basda::Device.
|
virtual |
deactivate the device
Implements Basda::Device.
|
virtual |
deinit the device
Implements Basda::Device.
|
virtual |
This method deinitialize the device and set the state to OFFLINE.
_asynch | the call back object |
_asynch | the call back object |
Implements Basda::Device.
|
inlinevirtual |
read description
Implements Basda::DigitalIODevice.
|
inlinevirtual |
read description
Implements Basda::DigitalIODevice.
|
virtual |
This method initialize the device and set the state to INIT.
_asynch | the call back object |
_asynch | the call back object |
Implements Basda::Device.
|
virtual |
init the device
Implements Basda::Device.
|
virtual |
|
virtual |
Implements Basda::MoccaCDevice.
|
virtual |
open device
Implements Basda::Device.
|
virtual |
Open a communication channel with the device.
This method might be called when the service goes in the INIT state. It connects to the collision controller.
This method might be called when the service goes in the INIT state. It connects to the collision controller.
Implements Basda::Device.
|
virtual |
obtain the collision bits from the board.
Implements Basda::DigitalIODevice.
|
virtual |
read from the device all ports.
Implements Basda::DigitalIODevice.
|
virtual |
Implements Basda::DigitalIODevice.
|
virtual |
|
virtual |
reset the device
Implements Basda::Device.
|
virtual |
This method might be called when the service will be reseted.
The connection to the CoCon will be closed and opened again.
_asynch | the call back object |
The connection to the CoCon will be closed and opened again.
_asynch | the call back object |
Implements Basda::Device.
|
virtual |
|
virtual |
Implements Basda::MoccaCDevice.
void Basda::CoConCDevice::setChatType | ( | Nice::ChatLinePtr | _chat | ) |
Fix a communication type of the protocol for future use.
_chat |
void Basda::CoConCDevice::setChatType | ( | Nice::ChatLinePtr | _chat | ) |
Set the reachability status in the property tree.
_state | The new state on return. |
|
virtual |
Implements Basda::DigitalIODevice.
|
virtual |
|
virtual |
version
Implements Basda::Device.
|
virtual |
This method returns the version string of the device.
Implements Basda::Device.
|
virtual |
Implements Basda::DigitalIODevice.
|
virtual |
|
private |
|
private |
This member keeps the card object.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
This member upholds the connection to the MoCon.