Skyward boardcore
Loading...
Searching...
No Matches
Boardcore::DataAsciiRequest Struct Reference

Structure that contains all the parameters for the request to be sent. More...

#include <MBLoadCellData.h>

Public Member Functions

void setChecksum ()
 In base of the address and the request parameter calculates the checksum.
 
std::string to_string ()
 Transforms the request into a string to be sent over serial.
 

Public Attributes

char beginStr [2] = "$"
 
char addr [3] = "01"
 
char value [7] = ""
 
char req [6]
 
char ck [3]
 
char CR [2] = "\r"
 

Detailed Description

Structure that contains all the parameters for the request to be sent.

Definition at line 201 of file MBLoadCellData.h.

Member Function Documentation

◆ setChecksum()

void Boardcore::DataAsciiRequest::setChecksum ( )
inline

In base of the address and the request parameter calculates the checksum.

Definition at line 214 of file MBLoadCellData.h.

◆ to_string()

std::string Boardcore::DataAsciiRequest::to_string ( )
inline

Transforms the request into a string to be sent over serial.

Returns
The string representing the request to be sent.

Definition at line 233 of file MBLoadCellData.h.

Member Data Documentation

◆ addr

char Boardcore::DataAsciiRequest::addr[3] = "01"

Definition at line 204 of file MBLoadCellData.h.

◆ beginStr

char Boardcore::DataAsciiRequest::beginStr[2] = "$"

Definition at line 203 of file MBLoadCellData.h.

◆ ck

char Boardcore::DataAsciiRequest::ck[3]

Definition at line 207 of file MBLoadCellData.h.

◆ CR

char Boardcore::DataAsciiRequest::CR[2] = "\r"

Definition at line 208 of file MBLoadCellData.h.

◆ req

char Boardcore::DataAsciiRequest::req[6]

Definition at line 206 of file MBLoadCellData.h.

◆ value

char Boardcore::DataAsciiRequest::value[7] = ""

Definition at line 205 of file MBLoadCellData.h.


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