Represents a GenTL port. More...
#include <peak/port/peak_port.hpp>
Public Member Functions | |
| Port ()=delete | |
| ~Port ()=default | |
| Port (const class Port &other)=delete | |
| Port & | operator= (const class Port &other)=delete |
| Port (class Port &&other)=delete | |
| Port & | operator= (class Port &&other)=delete |
| PEAK_COMMON_NO_DISCARD RawInformation | Info (int32_t infoCommand) const |
| Delivers information based on the given GenTL info command. | |
| PEAK_COMMON_NO_DISCARD std::string | ID () const |
| Returns the ID. | |
| PEAK_COMMON_NO_DISCARD std::string | Name () const |
| Returns the name. | |
| PEAK_COMMON_NO_DISCARD std::string | VendorName () const |
| Returns the vendor name. | |
| PEAK_COMMON_NO_DISCARD std::string | ModelName () const |
| Returns the model name. | |
| PEAK_COMMON_NO_DISCARD std::string | Version () const |
| Returns the version. | |
| PEAK_COMMON_NO_DISCARD std::string | TLType () const |
| Returns the TL (transport layer) type. | |
| PEAK_COMMON_NO_DISCARD std::string | ModuleName () const |
| Returns the module name. | |
| PEAK_COMMON_NO_DISCARD Endianness | DataEndianness () const |
| Returns the data endianness. | |
| PEAK_COMMON_NO_DISCARD bool | IsReadable () const |
| Checks whether the port is readable. | |
| PEAK_COMMON_NO_DISCARD bool | IsWritable () const |
| Checks whether the port is writable. | |
| PEAK_COMMON_NO_DISCARD bool | IsAvailable () const |
| Checks whether the port is available. | |
| PEAK_COMMON_NO_DISCARD bool | IsImplemented () const |
| Checks whether the port is implemented. | |
| PEAK_COMMON_NO_DISCARD std::vector< uint8_t > | Read (uint64_t address, size_t numBytes) const |
| Reads a given amount of bytes at a given address. | |
| void | Write (uint64_t address, const std::vector< uint8_t > &bytes) const |
| Writes a given amount of bytes at a given address. | |
| PEAK_COMMON_NO_DISCARD std::vector< std::shared_ptr< PortURL > > | URLs () const |
| Returns the URLs. | |
Friends | |
| class | ClassCreator< Port > |
Represents a GenTL port.
This class allows to query information about a GenTL port and to enumerate its URLs.
|
delete |
|
default |
|
delete |
|
delete |
|
inline |
Returns the data endianness.
| InternalErrorException | An internal error has occurred. |
|
inline |
|
inline |
Delivers information based on the given GenTL info command.
| [in] | infoCommand | The GenTL info command. |
This function can be used to query information going beyond the predefined info functions, based on the GenTL info commands of the corresponding module.
Example (error handling is omitted):
| InternalErrorException | An internal error has occurred. |
|
inline |
Checks whether the port is available.
| InternalErrorException | An internal error has occurred. |
|
inline |
Checks whether the port is implemented.
| InternalErrorException | An internal error has occurred. |
|
inline |
Checks whether the port is readable.
| InternalErrorException | An internal error has occurred. |
|
inline |
Checks whether the port is writable.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the model name.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the module name.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the name.
| InternalErrorException | An internal error has occurred. |
|
inline |
Reads a given amount of bytes at a given address.
| [in] | address | The address to read at. |
| [in] | numBytes | The amount of bytes to read. |
| InvalidAddressException | Address is invalid |
| IOException | A communication error has occured, e.g. when the device is disconnected. |
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the TL (transport layer) type.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the URLs.
| IOException | A communication error has occured, e.g. when the device is disconnected. |
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the vendor name.
| InternalErrorException | An internal error has occurred. |
|
inline |
Returns the version.
| InternalErrorException | An internal error has occurred. |
|
inline |
Writes a given amount of bytes at a given address.
| [in] | address | The address to write at. |
| [in] | bytes | The bytes to write. |
| InvalidAddressException | Address is invalid |
| OutOfRangeException | The given value is out of range |
| IOException | A communication error has occured, e.g. when the device is disconnected. |
| InternalErrorException | An internal error has occurred. |
|
friend |