CIRCT
19.0.0git
|
A ChannelPort which reads data from the accelerator. More...
#include <Ports.h>
Public Member Functions | |
virtual bool | read (MessageData &)=0 |
Specify a buffer to read into. More... | |
virtual std::future< MessageData > | readAsync () |
Asynchronous read. More... | |
ChannelPort (const Type *type) | |
Public Member Functions inherited from esi::ChannelPort | |
ChannelPort (const Type *type) | |
virtual | ~ChannelPort ()=default |
virtual void | connect () |
virtual void | disconnect () |
const Type * | getType () const |
A ChannelPort which reads data from the accelerator.
|
pure virtual |
Specify a buffer to read into.
Non-blocking. Returns true if message successfully recieved. Basic API, will likely change for performance and functionality reasons.
Referenced by readAsync().
|
virtual |
Asynchronous read.
Returns a future which will be set when the message is recieved. Could this subsume the synchronous read API? The default implementation of this is really bad and should be overridden. It simply polls read
in a loop.
Definition at line 46 of file Ports.cpp.
References read().
Referenced by PYBIND11_MODULE().