44 ret += StringPrintf(
"ch1(%d) ", fb.
ch1Size);
45 for (
int i = 0; i < fb.
ch1Size; ++i)
50 ret += StringPrintf(
" ch2(%d) ", fb.
ch2Size);
51 for (
int i = 0; i < fb.
ch2Size; ++i)
const uint8_t railcom_decode[256]
Table for 8-to-6 decoding of railcom data.
std::string railcom_debug(const Feedback &fb)
Formats a dcc::Feedback message into a debug string.
uint8_t ch2Size
Number of bytes in channel two.
uint8_t ch1Size
Number of bytes in channel one.
uint8_t ch1Data[2]
Payload of channel 1.
uint8_t ch2Data[6]
Payload of channel 2.
Structure used for reading (railcom) feedback data from DCC / Railcom device drivers.