Home
last modified time | relevance | path

Searched refs:kLastByte (Results 1 – 2 of 2) sorted by relevance

/hardware/interfaces/automotive/can/1.0/tools/libprotocan/
DSignal.cpp41 kLastByte((start + length - 1) / 8), in Signal()
43 kFirstMask(calculateFirstByteMask(kFirstByte, kFirstBit, kLastByte, kLastMask)), in Signal()
49 CHECK(msg.payload.size() > kLastByte) in get()
53 if (kLastByte != kFirstByte) v = kLastMask & msg.payload[kLastByte]; in get()
55 for (int i = kLastByte - 1; i > kFirstByte; i--) { in get()
63 CHECK(msg.payload.size() > kLastByte) in set()
64 << "Signal requires message of length " << (kLastByte + 1) in set()
72 for (int i = kFirstByte + 1; i < kLastByte; i++) { in set()
77 if (kLastByte != kFirstByte) { in set()
78 msg.payload[kLastByte] = (msg.payload[kLastByte] & ~kLastMask) | (val & kLastMask); in set()
/hardware/interfaces/automotive/can/1.0/tools/libprotocan/include/libprotocan/
DSignal.h43 const uint16_t kLastByte; ///< Index of last byte that holds the signal variable