Represents a GenTL port.
More...
#include <peak/port/peak_port.hpp>
Represents a GenTL port.
This class allows to query information about a GenTL port and to enumerate its URLs.
◆ Port() [1/3]
| peak::core::Port::Port |
( |
| ) |
|
|
delete |
◆ ~Port()
| peak::core::Port::~Port |
( |
| ) |
|
|
default |
◆ Port() [2/3]
| peak::core::Port::Port |
( |
const class Port & |
other | ) |
|
|
delete |
◆ Port() [3/3]
| peak::core::Port::Port |
( |
class Port && |
other | ) |
|
|
delete |
◆ DataEndianness()
| Endianness peak::core::Port::DataEndianness |
( |
| ) |
const |
|
inline |
Returns the data endianness.
- Returns
- Data endianness
- Since
- 1.0
- Exceptions
-
◆ ID()
| std::string peak::core::Port::ID |
( |
| ) |
const |
|
inline |
Returns the ID.
- Returns
- ID
- Since
- 1.0
- Exceptions
-
◆ Info()
Delivers information based on the given GenTL info command.
- Parameters
-
| [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):
auto info = object->Info(GenTL::XX_INFO_XX);
{
uint64_t uint64Var = *reinterpret_cast<const uint64_t*>(info.data.data());
}
{
...
}
...
- Returns
- Raw information according to the passed info command
- Since
- 1.0
- Exceptions
-
◆ IsAvailable()
| bool peak::core::Port::IsAvailable |
( |
| ) |
const |
|
inline |
Checks whether the port is available.
- Returns
- True, if the port is available.
-
False otherwise.
- Since
- 1.0
- Exceptions
-
◆ IsImplemented()
| bool peak::core::Port::IsImplemented |
( |
| ) |
const |
|
inline |
Checks whether the port is implemented.
- Returns
- True, if the port is implemented.
-
False otherwise.
- Since
- 1.0
- Exceptions
-
◆ IsReadable()
| bool peak::core::Port::IsReadable |
( |
| ) |
const |
|
inline |
Checks whether the port is readable.
- Returns
- True, if the port is readable
-
False otherwise.
- Since
- 1.0
- Exceptions
-
◆ IsWritable()
| bool peak::core::Port::IsWritable |
( |
| ) |
const |
|
inline |
Checks whether the port is writable.
- Returns
- True, if the port is writable.
-
False otherwise.
- Since
- 1.0
- Exceptions
-
◆ ModelName()
| std::string peak::core::Port::ModelName |
( |
| ) |
const |
|
inline |
Returns the model name.
- Returns
- Model name
- Since
- 1.0
- Exceptions
-
◆ ModuleName()
| std::string peak::core::Port::ModuleName |
( |
| ) |
const |
|
inline |
Returns the module name.
- Returns
- Module name
- Since
- 1.0
- Exceptions
-
◆ Name()
| std::string peak::core::Port::Name |
( |
| ) |
const |
|
inline |
Returns the name.
- Returns
- Name
- Since
- 1.0
- Exceptions
-
◆ operator=() [1/2]
| Port& peak::core::Port::operator= |
( |
const class Port & |
other | ) |
|
|
delete |
◆ operator=() [2/2]
| Port& peak::core::Port::operator= |
( |
class Port && |
other | ) |
|
|
delete |
◆ Read()
| std::vector< uint8_t > peak::core::Port::Read |
( |
uint64_t |
address, |
|
|
size_t |
numBytes |
|
) |
| const |
|
inline |
Reads a given amount of bytes at a given address.
- Parameters
-
| [in] | address | The address to read at. |
| [in] | numBytes | The amount of bytes to read. |
- Returns
- Read bytes
- Since
- 1.0
- Exceptions
-
◆ TLType()
| std::string peak::core::Port::TLType |
( |
| ) |
const |
|
inline |
Returns the TL (transport layer) type.
- Returns
- TL type
- Since
- 1.0
- Exceptions
-
◆ URLs()
| std::vector< std::shared_ptr< PortURL > > peak::core::Port::URLs |
( |
| ) |
const |
|
inline |
Returns the URLs.
- Returns
- URLs
- Since
- 1.0
- Exceptions
-
◆ VendorName()
| std::string peak::core::Port::VendorName |
( |
| ) |
const |
|
inline |
Returns the vendor name.
- Returns
- Vendor name
- Since
- 1.0
- Exceptions
-
◆ Version()
| std::string peak::core::Port::Version |
( |
| ) |
const |
|
inline |
Returns the version.
- Returns
- Version
- Since
- 1.0
- Exceptions
-
◆ Write()
| void peak::core::Port::Write |
( |
uint64_t |
address, |
|
|
const std::vector< uint8_t > & |
bytes |
|
) |
| const |
|
inline |
Writes a given amount of bytes at a given address.
- Parameters
-
| [in] | address | The address to write at. |
| [in] | bytes | The bytes to write. |
- Since
- 1.0
- Exceptions
-
◆ ClassCreator< Port >
| friend class ClassCreator< Port > |
|
friend |
The documentation for this class was generated from the following file: