Public Member Functions | Public Attributes | List of all members
driver_svh::SVHSerialPacket Struct Reference

The SerialPacket holds the (non generated) header and data of one message to the SVH-Hardware. More...

#include <SVHSerialPacket.h>

Public Member Functions

bool operator== (const SVHSerialPacket &other) const
 Compares two SVHSerialPackets objects. More...
 
 SVHSerialPacket (size_t _data_length=0, uint8_t _address=SVH_GET_CONTROL_FEEDBACK)
 SVHSerialPacket contains the send and received data in raw format (bytewise) More...
 

Public Attributes

uint8_t address
 Adress denotes the actual function of the package. More...
 
std::vector< uint8_tdata
 Payload of the package. More...
 
uint8_t index
 Continuosly incremented counter per package. More...
 

Detailed Description

The SerialPacket holds the (non generated) header and data of one message to the SVH-Hardware.

Definition at line 66 of file SVHSerialPacket.h.

Constructor & Destructor Documentation

driver_svh::SVHSerialPacket::SVHSerialPacket ( size_t  _data_length = 0,
uint8_t  _address = SVH_GET_CONTROL_FEEDBACK 
)
inline

SVHSerialPacket contains the send and received data in raw format (bytewise)

Parameters
data_lengthinitial size to set the data length to. NOTE: To deserialize a packet this value HAS TO BE SET!

Definition at line 80 of file SVHSerialPacket.h.

Member Function Documentation

bool driver_svh::SVHSerialPacket::operator== ( const SVHSerialPacket other) const
inline

Compares two SVHSerialPackets objects.

Definition at line 87 of file SVHSerialPacket.h.

Member Data Documentation

uint8_t driver_svh::SVHSerialPacket::address

Adress denotes the actual function of the package.

Definition at line 72 of file SVHSerialPacket.h.

std::vector<uint8_t> driver_svh::SVHSerialPacket::data

Payload of the package.

Definition at line 74 of file SVHSerialPacket.h.

uint8_t driver_svh::SVHSerialPacket::index

Continuosly incremented counter per package.

Note
Continuous counter is currently not used by this software, the hw will just copy the send counter back to the response

Definition at line 70 of file SVHSerialPacket.h.


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


schunk_svh_driver
Author(s): Georg Heppner
autogenerated on Mon Jun 10 2019 15:04:59