rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Functions
can_rx.h File Reference

Functions

uint32_t getFourBytesLsb (const CANRxFrame &frame, int offset)
 
uint16_t getTwoBytesLsb (const CANRxFrame &frame, int offset)
 
uint16_t getTwoBytesMsb (const CANRxFrame &frame, int offset)
 

Function Documentation

◆ getFourBytesLsb()

uint32_t getFourBytesLsb ( const CANRxFrame frame,
int  offset 
)

Definition at line 119 of file can_rx.cpp.

119 {
120 return (frame.data8[offset + 3] << 24) +
121 (frame.data8[offset + 2] << 16) +
122 (frame.data8[offset + 1] << 8) +
123 frame.data8[offset];
124}
uint8_t data8[8]
Frame data.
Definition can_mocks.h:55
uint16_t offset
Definition tunerstudio.h:0

Referenced by processCanRequestCalibration().

Here is the caller graph for this function:

◆ getTwoBytesLsb()

uint16_t getTwoBytesLsb ( const CANRxFrame frame,
int  offset 
)

Definition at line 126 of file can_rx.cpp.

126 {
127 return (frame.data8[offset + 1] << 8) + frame.data8[offset];
128}

Referenced by getShiftedLSB_intel(), processBMW_e46(), processBMW_e90(), and processCanUserControl().

Here is the caller graph for this function:

◆ getTwoBytesMsb()

uint16_t getTwoBytesMsb ( const CANRxFrame frame,
int  offset 
)

Definition at line 130 of file can_rx.cpp.

130 {
131 return (frame.data8[offset] << 8) + frame.data8[offset + 1];
132}

Referenced by processNissan(), and processNissanSecondVss().

Here is the caller graph for this function:

Go to the source code of this file.