OpenCPN Partial API docs
Loading...
Searching...
No Matches
CanHeader Class Reference

CAN v2.0 29 bit header as used by NMEA 2000. More...

Public Member Functions

 CanHeader (CanFrame frame)
 Construct a CanHeader by parsing a frame. More...
 
bool IsFastMessage () const
 Return true if header reflects a multipart fast message. More...
 

Public Attributes

unsigned char priority
 
unsigned char source
 
unsigned char destination
 
int pgn
 

Detailed Description

CAN v2.0 29 bit header as used by NMEA 2000.

Definition at line 96 of file comm_drv_n2k_socketcan.cpp.

Constructor & Destructor Documentation

◆ CanHeader() [1/2]

CanHeader::CanHeader ( )
inline

Definition at line 98 of file comm_drv_n2k_socketcan.cpp.

◆ CanHeader() [2/2]

CanHeader::CanHeader ( CanFrame  frame)

Construct a CanHeader by parsing a frame.

Definition at line 286 of file comm_drv_n2k_socketcan.cpp.

Member Function Documentation

◆ IsFastMessage()

bool CanHeader::IsFastMessage ( ) const

Return true if header reflects a multipart fast message.

Definition at line 309 of file comm_drv_n2k_socketcan.cpp.

Member Data Documentation

◆ destination

unsigned char CanHeader::destination

Definition at line 108 of file comm_drv_n2k_socketcan.cpp.

◆ pgn

int CanHeader::pgn

Definition at line 109 of file comm_drv_n2k_socketcan.cpp.

◆ priority

unsigned char CanHeader::priority

Definition at line 106 of file comm_drv_n2k_socketcan.cpp.

◆ source

unsigned char CanHeader::source

Definition at line 107 of file comm_drv_n2k_socketcan.cpp.


The documentation for this class was generated from the following file: