49 o <<
"index: " <<
static_cast<int>(sp.
index) <<
" address: " <<
"0x" << std::setw(2) << std::setfill(
'0') << std::hex << static_cast<int>(sp.
address) <<
" Data: ";
50 for (
size_t i = 0; i < sp.
data.size(); i++)
52 o <<
"0x" << std::setw(2) << std::setfill(
'0') << std::hex << static_cast<int>(sp.
data[i]) <<
" ";
55 std::cout << std::dec ;
uint8_t address
Adress denotes the actual function of the package.
icl_comm::ArrayBuilder & operator>>(icl_comm::ArrayBuilder &ab, SVHControlCommand &data)
overload stream operator to easily deserialize control commands for one channel
std::vector< uint8_t > data
Payload of the package.
icl_comm::ArrayBuilder & operator<<(icl_comm::ArrayBuilder &ab, const SVHControlCommand &data)
uint8_t index
Continuosly incremented counter per package.
The SerialPacket holds the (non generated) header and data of one message to the SVH-Hardware.