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

Method parseCanStdId

src/can-serial.cpp:520–525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

518
519
520void Can232::parseCanStdId() {
521 lw232CanId = (((INT32U)HexHelper::parseNibble(lw232Message[1])) << 8)
522 + (((INT32U)HexHelper::parseNibble(lw232Message[2])) << 4)
523 + (((INT32U)HexHelper::parseNibble(lw232Message[3])));
524 lw232CanId &= 0x7FF;
525}
526
527void Can232::parseCanExtId() {
528 lw232CanId = (((INT32U)HexHelper::parseNibble(lw232Message[1])) << 28)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected