CIRCT 23.0.0git
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
SerialCoordInput Struct Reference
Inheritance diagram for SerialCoordInput:
Inheritance graph
[legend]
Collaboration diagram for SerialCoordInput:
Collaboration graph
[legend]

Public Member Functions

 SerialCoordInput ()
 
void yTranslation (uint32_t yTrans)
 
uint32_t yTranslation () const
 
void xTranslation (uint32_t xTrans)
 
uint32_t xTranslation () const
 
void appendCoord (uint32_t x, uint32_t y)
 
const std::vector< SerialCoordData > & getCoords () const
 
size_t numSegments () const override
 Number of segments in the message.
 
Segment segment (size_t idx) const override
 Get a segment by index.
 
 SerialCoordInput (uint32_t xTrans, uint32_t yTrans, std::vector< SerialCoordData > &coords)
 
size_t numSegments () const override
 Number of segments in the message.
 
Segment segment (size_t idx) const override
 Get a segment by index.
 
- Public Member Functions inherited from esi::SegmentedMessageData
virtual ~SegmentedMessageData ()=default
 
size_t totalSize () const
 Total size across all segments.
 
bool empty () const
 True if totalSize() == 0.
 
MessageData toMessageData () const
 Flatten all segments into a standard MessageData.
 

Private Attributes

SerialCoordHeader header
 
std::vector< SerialCoordDatacoords
 
SerialCoordHeader footer
 

Detailed Description

Definition at line 1815 of file esitester.cpp.

Constructor & Destructor Documentation

◆ SerialCoordInput() [1/2]

SerialCoordInput::SerialCoordInput ( )
inline

◆ SerialCoordInput() [2/2]

SerialCoordInput::SerialCoordInput ( uint32_t  xTrans,
uint32_t  yTrans,
std::vector< SerialCoordData > &  coords 
)
inline

Member Function Documentation

◆ appendCoord()

void SerialCoordInput::appendCoord ( uint32_t  x,
uint32_t  y 
)
inline

Definition at line 1830 of file esitester.cpp.

References coords, SerialCoordHeader::coordsCount, and header.

◆ getCoords()

const std::vector< SerialCoordData > & SerialCoordInput::getCoords ( ) const
inline

Definition at line 1834 of file esitester.cpp.

References coords.

◆ numSegments() [1/2]

size_t SerialCoordInput::numSegments ( ) const
inlineoverridevirtual

Number of segments in the message.

Implements esi::SegmentedMessageData.

Definition at line 1836 of file esitester.cpp.

◆ numSegments() [2/2]

size_t SerialCoordInput::numSegments ( ) const
inlineoverridevirtual

Number of segments in the message.

Implements esi::SegmentedMessageData.

Definition at line 192 of file loopback.cpp.

◆ segment() [1/2]

Segment SerialCoordInput::segment ( size_t  idx) const
inlineoverridevirtual

Get a segment by index.

Implements esi::SegmentedMessageData.

Definition at line 1837 of file esitester.cpp.

References coords, header, and esi::Segment::size.

◆ segment() [2/2]

Segment SerialCoordInput::segment ( size_t  idx) const
inlineoverridevirtual

Get a segment by index.

Implements esi::SegmentedMessageData.

Definition at line 193 of file loopback.cpp.

References coords, footer, header, and esi::Segment::size.

◆ xTranslation() [1/2]

uint32_t SerialCoordInput::xTranslation ( ) const
inline

Definition at line 1829 of file esitester.cpp.

References header, and SerialCoordHeader::xTranslation.

◆ xTranslation() [2/2]

void SerialCoordInput::xTranslation ( uint32_t  xTrans)
inline

Definition at line 1828 of file esitester.cpp.

References header, and SerialCoordHeader::xTranslation.

◆ yTranslation() [1/2]

uint32_t SerialCoordInput::yTranslation ( ) const
inline

Definition at line 1827 of file esitester.cpp.

References header, and SerialCoordHeader::yTranslation.

◆ yTranslation() [2/2]

void SerialCoordInput::yTranslation ( uint32_t  yTrans)
inline

Definition at line 1826 of file esitester.cpp.

References header, and SerialCoordHeader::yTranslation.

Member Data Documentation

◆ coords

std::vector< SerialCoordData > SerialCoordInput::coords
private

Definition at line 1818 of file esitester.cpp.

Referenced by appendCoord(), getCoords(), segment(), and SerialCoordInput().

◆ footer

SerialCoordHeader SerialCoordInput::footer
private

Definition at line 180 of file loopback.cpp.

Referenced by segment(), and SerialCoordInput().

◆ header

SerialCoordHeader SerialCoordInput::header
private

The documentation for this struct was generated from the following files: