DCAITI Robot Hardware  1.0
Static Public Member Functions | Static Public Attributes | List of all members
UARTCom Class Reference

#include <UARTCom.hpp>

Static Public Member Functions

static void init (uint8_t *d)
 initializes uart communication More...
 
static void read (uint8_t *d)
 reads uart interface and stores the data into an uint8_t array More...
 
static void send (U_FrameType ft, uint8_t pll, U_Component c, uint8_t *pl)
 assembles and sends a uart package More...
 

Static Public Attributes

static uint8_t data [MAX_PACKET_LENGTH]
 

Member Function Documentation

◆ init()

void UARTCom::init ( uint8_t *  d)
static

initializes uart communication

initializes UART communication

Parameters
ddata package to be initialized
ddata package
Here is the call graph for this function:
Here is the caller graph for this function:

◆ read()

void UARTCom::read ( uint8_t *  d)
static

reads uart interface and stores the data into an uint8_t array

reads incoming bytes from serial port

Parameters
darray to store the data into
ddata package
Here is the call graph for this function:
Here is the caller graph for this function:

◆ send()

void UARTCom::send ( U_FrameType  ft,
uint8_t  pll,
U_Component  cp,
uint8_t *  pl 
)
static

assembles and sends a uart package

sends data package

Parameters
ftframetype of message
pllpayload length
ccomponent
plpayload
ftframetype
pllpayload length
cpcomponent
plpayload
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ data

uint8_t UARTCom::data
static

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