DBC Framework
DBC parsing and CAN signal decoding framework
Loading...
Searching...
No Matches
j1939.h
1
// SPDX-License-Identifier: MIT
2
#ifndef J1939_H
3
#define J1939_H
4
5
#include <cstdint>
6
11
inline
std::uint32_t ExtractJ1939Pgn(std::uint32_t canId) {
12
const
std::uint32_t pf = (canId >> 16U) & 0xFFU;
13
const
std::uint32_t pgn = (canId >> 8U) & 0x3FFFFU;
14
return
pf < 240U ? pgn & 0x3FF00U : pgn;
15
}
16
17
#endif
/* J1939_H */
core
j1939.h
Generated by
1.9.8