KaCanOpen
 All Classes Functions Variables Typedefs Enumerations Pages
Public Member Functions | Public Attributes | List of all members
kaco::Message Struct Reference

This struct represents a CANOpen message. More...

#include <message.h>

Public Member Functions

uint8_t get_node_id () const
 Extracts the node id from the COB-ID.
 
uint8_t get_function_code () const
 Extracts the function code from the COB-ID.
 
void print () const
 Prints the message to command line.
 

Public Attributes

uint16_t cob_id
 Message ID aka COB-ID.
 
uint8_t rtr
 Remote transmission request (0 if it's not an RTR message, 1 if it is an RTR message)
 
uint8_t len
 Message's length (0 to 8)
 
uint8_t data [8]
 Data bytes.
 

Detailed Description

This struct represents a CANOpen message.

Definition at line 39 of file message.h.


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