ParseCANID (FUN)ΒΆ

FUNCTION ParseCANID

Parses a CANID and returns J1939 specific information

InOut:

Scope

Name

Type

Comment

Input

dwCANID

DWORD

CANID to be parsed

Output

dwPGN

DWORD

parameter group number (for P2P: PDU specific will be set to 0; see by DestinationAddress)

eType

PG_TYPE

parameter group type: broadcast or P2P

bySourceAddress

BYTE

ECU source address

byDestinationAddress

BYTE

ECU destination address (only valid for P2P)

byPriority

BYTE

J1939 priority