MCPcopy Create free account
hub / github.com/Seeed-Studio/Seeed_Arduino_CAN / parseCanExtId

Method parseCanExtId

src/can-serial.cpp:527–537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

525}
526
527void Can232::parseCanExtId() {
528 lw232CanId = (((INT32U)HexHelper::parseNibble(lw232Message[1])) << 28)
529 + (((INT32U)HexHelper::parseNibble(lw232Message[2])) << 24)
530 + (((INT32U)HexHelper::parseNibble(lw232Message[3])) << 20)
531 + (((INT32U)HexHelper::parseNibble(lw232Message[4])) << 16)
532 + (((INT32U)HexHelper::parseNibble(lw232Message[5])) << 12)
533 + (((INT32U)HexHelper::parseNibble(lw232Message[6])) << 8)
534 + (((INT32U)HexHelper::parseNibble(lw232Message[7])) << 4)
535 + (((INT32U)HexHelper::parseNibble(lw232Message[8])));
536 lw232CanId &= 0x1FFFFFFF;
537}
538
539void HexHelper::printFullByte(INT8U b) {
540 if (b < 0x10) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected