simple-socket library 1.2.0
NET::can_frame Struct Reference

Structure to represent a CAN 2.0 Frame. More...

#include <CANFrame.h>

Public Member Functions

 operator const void * () const
 Constant Cast-Operator for use with sockets.
 
 operator void * ()
 Cast-Operator for use with sockets.
 
uint8_t & operator[] (unsigned index)
 Access to all data bytes.
 

Public Attributes

uint8_t _pad_ [3]
 
uint8_t data [8]
 
uint8_t dlc
 
can_id id
 

Detailed Description

Structure to represent a CAN 2.0 Frame.

Definition at line 21 of file CANFrame.h.

Member Function Documentation

◆ operator void *()

NET::can_frame::operator void * ( )
inline

Cast-Operator for use with sockets.

Definition at line 29 of file CANFrame.h.

◆ operator const void *()

NET::can_frame::operator const void * ( ) const
inline

Constant Cast-Operator for use with sockets.

Definition at line 32 of file CANFrame.h.

◆ operator[]()

uint8_t & NET::can_frame::operator[] ( unsigned index)
inline

Access to all data bytes.

Definition at line 35 of file CANFrame.h.

Member Data Documentation

◆ id

can_id NET::can_frame::id

Definition at line 23 of file CANFrame.h.

◆ dlc

uint8_t NET::can_frame::dlc

Definition at line 24 of file CANFrame.h.

◆ _pad_

uint8_t NET::can_frame::_pad_[3]

Definition at line 25 of file CANFrame.h.

◆ data

uint8_t NET::can_frame::data[8]

Definition at line 26 of file CANFrame.h.


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