|
CIRCT 23.0.0git
|
A port which writes data to the accelerator (from_host). More...
#include <Services.h>


Public Member Functions | |
| void | connect () |
| void | write (const MessageData &data) |
| virtual std::optional< std::string > | toString (bool oneLine=false) const override |
Public Member Functions inherited from esi::services::ServicePort | |
| virtual | ~ServicePort ()=default |
| BundlePort (AppID id, const BundleType *type, PortMap channels) | |
| Construct a port. | |
Public Member Functions inherited from esi::BundlePort | |
| BundlePort (AppID id, const BundleType *type, PortMap channels) | |
| Construct a port. | |
| virtual | ~BundlePort ()=default |
| AppID | getID () const |
| Get the ID of the port. | |
| WriteChannelPort & | getRawWrite (const std::string &name) const |
| Get access to the raw byte streams of a channel. | |
| ReadChannelPort & | getRawRead (const std::string &name) const |
| const PortMap & | getChannels () const |
| template<typename T > | |
| T * | getAs () const |
| Cast this Bundle port to a subclass which is actually useful. | |
| bool | poll () |
Calls poll on all channels in the bundle and returns true if any of them returned true. | |
Static Public Member Functions | |
| static FromHost * | get (AppID id, const BundleType *type, WriteChannelPort &dataPort) |
Static Public Member Functions inherited from esi::BundlePort | |
| static bool | isWrite (BundleType::Direction bundleDir) |
| Compute the direction of a channel given the bundle direction and the bundle port's direction. | |
Private Attributes | |
| WriteChannelPort * | dataPort = nullptr |
| bool | connected = false |
Friends | |
| class | ChannelService |
Additional Inherited Members | |
Protected Attributes inherited from esi::BundlePort | |
| AppID | id |
| const BundleType * | type |
| PortMap | channels |
A port which writes data to the accelerator (from_host).
Definition at line 315 of file Services.h.
| void ChannelService::FromHost::connect | ( | ) |
Definition at line 252 of file Services.cpp.
Referenced by NB_MODULE().
|
static |
Definition at line 247 of file Services.cpp.
|
inlineoverridevirtual |
Reimplemented from esi::services::ServicePort.
Definition at line 326 of file Services.h.
References esi::BundleType::findChannel(), esi::Type::toString(), and esi::BundlePort::type.
| void ChannelService::FromHost::write | ( | const MessageData & | data | ) |
Definition at line 263 of file Services.cpp.
|
friend |
Definition at line 316 of file Services.h.
|
private |
Definition at line 335 of file Services.h.
Referenced by esiaccel.types.FunctionPort::connect(), esiaccel.types.MetricPort::connect(), esiaccel.types.ToHostPort::connect(), esiaccel.types.FromHostPort::connect(), and esiaccel.types.CallbackPort::connect().
|
private |
Definition at line 334 of file Services.h.