Interface for FSI communication
Definition at line 48 of file FsiCom.hpp.
|
| static constexpr char | LOG_TAG [] {"IChannelFsiCom"} |
| |
◆ createFactory
◆ ~IChannelFsiCom()
| virtual dw::framework::IChannelFsiCom::~IChannelFsiCom |
( |
| ) |
|
|
virtualdefault |
◆ connect()
| virtual bool dw::framework::IChannelFsiCom::connect |
( |
| ) |
|
|
pure virtual |
Connect to a specified FSI endpoint.
- Returns
- true if no errors were reported during connection, false otherwise
◆ create()
| static std::shared_ptr< IChannelFsiCom > dw::framework::IChannelFsiCom::create |
( |
uint8_t |
numChannels, |
|
|
const char * |
compat, |
|
|
createFactory & |
overrider |
|
) |
| |
|
static |
Create the FSI channel.
- Parameters
-
| [in] | numChannels | the numChannel parameter for FSI |
| [in] | compat | compat string for FSI |
| [in] | overrider | if provided, this custom function will be used for creating the channel |
- Returns
- the channel object
◆ disconnect()
| virtual void dw::framework::IChannelFsiCom::disconnect |
( |
| ) |
|
|
pure virtual |
Disconnect from a connected FSI endpoint.
◆ isConnected()
| virtual bool dw::framework::IChannelFsiCom::isConnected |
( |
| ) |
|
|
pure virtual |
Check if FSI endpoint is connected.
- Returns
- true if connected, false otherwise
◆ read()
| virtual int32_t dw::framework::IChannelFsiCom::read |
( |
void * |
buff, |
|
|
uint32_t |
size, |
|
|
uint32_t & |
readBytes |
|
) |
| |
|
pure virtual |
Read from a connected FSI endpoint.
- Parameters
-
| [in,out] | buff | the buffer to be filled |
| [in] | size | the size of the buffer |
| [out] | readBytes | bytes read from FSI |
- Returns
- POSIX errno indicating if write is successful
◆ registerClient()
| bool dw::framework::IChannelFsiCom::registerClient |
( |
bool |
consumer | ) |
|
Register a FSI connection.
- Parameters
-
| [in] | consumer | indicate if the channel to be registered is a consumer |
- Returns
- true if registration is successful. Registration is only successful if only a single consumer or producer is registered.
◆ unregisterClient()
| void dw::framework::IChannelFsiCom::unregisterClient |
( |
bool |
consumer | ) |
|
Unregister a FSI connection.
- Parameters
-
| [in] | consumer | indicate if the channel to be unregistered is a consumer |
◆ waitForEvent()
| virtual int32_t dw::framework::IChannelFsiCom::waitForEvent |
( |
dwTime_t |
timeout_us | ) |
|
|
pure virtual |
Wait for a buffer to be available to read.
- Parameters
-
| [in] | timeout_us | the amount of time to wait for event |
- Returns
- POSIX errno indicating if there is data available
◆ write()
| virtual int32_t dw::framework::IChannelFsiCom::write |
( |
void * |
buff, |
|
|
uint32_t |
size, |
|
|
uint32_t & |
writtenBytes |
|
) |
| |
|
pure virtual |
Write to a connected FSI endpoint.
- Parameters
-
| [in] | buff | the buffer to be written to FSI |
| [in] | size | the size of the buffer |
| [out] | writtenBytes | bytes written to FSI |
- Returns
- POSIX errno indicating if write is successful
◆ LOG_TAG
| constexpr char dw::framework::IChannelFsiCom::LOG_TAG[] {"IChannelFsiCom"} |
|
staticconstexpr |
The documentation for this class was generated from the following file: