Joint Level Control
Public Member Functions | Protected Attributes | List of all members
MessageBuilder Class Reference

This class and its subclasses handle the creation of the CAN-Frames needed to control the Hacker Herkules 5 BLDC. More...

#include <message_builder.h>

Inheritance diagram for MessageBuilder:
Inheritance graph
[legend]

Public Member Functions

 MessageBuilder (uint8_t address)
 Constructor of the MessageBuilder Class. More...
 
can_frame * getMessage ()
 gets the generated SocketCAN-Frame for utilisation by the callee. More...
 

Protected Attributes

uint8_t data [8]
 
uint8_t can_address
 

Detailed Description

This class and its subclasses handle the creation of the CAN-Frames needed to control the Hacker Herkules 5 BLDC.

Constructor & Destructor Documentation

◆ MessageBuilder()

MessageBuilder::MessageBuilder ( uint8_t  address)

Constructor of the MessageBuilder Class.

Parameters
addressCAN-ID of the to-be controlled BLDC

Member Function Documentation

◆ getMessage()

can_frame * MessageBuilder::getMessage ( )

gets the generated SocketCAN-Frame for utilisation by the callee.

Returns
can_frame pointer for easy plug into write()

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