Definition at line 54 of file Channel.hpp.
◆ ~ChannelObject()
virtual dw::framework::ChannelObject::~ChannelObject |
( |
| ) |
|
|
virtualdefault |
◆ connect()
virtual dwStatus dw::framework::ChannelObject::connect |
( |
dwTime_t |
timeout | ) |
|
|
pure virtual |
Establish connection over the channel's protocol.
- Parameters
-
[in] | timeout | The maximum time to attempt connection. timeout of zero implies to do most atomic connection attempt. |
- Returns
- DW_TIME_OUT The time out was reached before connection could be established. DW_CALL_NOT_ALLOWED There are no client interfaces to connect. DW_SUCCESS
◆ getConsumer()
Register a consumer client.
- Note
- The client interface is owned by the ChannelObject and should not be used after the ChannelObject has been destroyed.
-
allocates new objects to back the requested interface.
- Parameters
-
[in] | ref | A reference for the data to be transfered over the channel |
- Returns
- consumer interface
- Exceptions
-
if | parameters disallow consumer role. |
Referenced by dw::framework::PortInput< T >::bindChannel().
◆ getParams()
virtual const ChannelParams & dw::framework::ChannelObject::getParams |
( |
| ) |
const |
|
pure virtual |
◆ getProducer()
Register a producer client.
- Note
- The client interface is owned by the ChannelObject and should not be used after the ChannelObject has been destroyed.
-
This method shall only be called once per instance.
-
allocates new objects to back the requested interface.
- Parameters
-
[in] | ref | A reference for the data to be transfered over the channel |
- Returns
- producer interface
- Exceptions
-
if | parameters disallow producer role. |
Referenced by dw::framework::PortOutput< T >::bindChannelWithReference().
◆ hasClients()
virtual bool dw::framework::ChannelObject::hasClients |
( |
| ) |
const |
|
pure virtual |
Query if the channel has any clients
- Note
- The channel will not have client interfaces unless requested via getProducer or getConsumer.
◆ isConnected()
virtual bool dw::framework::ChannelObject::isConnected |
( |
| ) |
const |
|
pure virtual |
Query if the channel and its client interfaces are connected to downstream/upstream channels and are ready for use
The documentation for this class was generated from the following file: