3-phase PV router
Loading...
Searching...
No Matches
Reference Class Reference

The buffered TeleInfo class of the firmware, as it was (utoa() aside): the reference of the frame. Its frame differs in two places only (referenceFrame()): N and each V are sent unsigned. More...

Public Member Functions

const char * data () const
 
void endFrame ()
 
void send (const char *tag, int16_t value, uint8_t index=0)
 
void sendUnsigned (const char *tag, uint16_t value, uint8_t index=0)
 
size_t size () const
 
void startFrame ()
 

Private Member Functions

uint8_t calculateChecksum (size_t startPos, size_t endPos) const
 
void writeLine (const char *tag, uint8_t index, uint16_t magnitude, bool negative)
 
void writeTag (const char *tag, uint8_t index)
 

Private Attributes

char buffer [512] {}
 
size_t bufferPos { 0 }
 

Static Private Attributes

static const char CR { 0x0D }
 
static const char ETX { 0x03 }
 
static const char LF { 0x0A }
 
static const char STX { 0x02 }
 
static const char TAB { 0x09 }
 

Detailed Description

The buffered TeleInfo class of the firmware, as it was (utoa() aside): the reference of the frame. Its frame differs in two places only (referenceFrame()): N and each V are sent unsigned.

Definition at line 109 of file test_main.cpp.

Member Function Documentation

◆ calculateChecksum()

uint8_t Reference::calculateChecksum ( size_t startPos,
size_t endPos ) const
inlinenodiscardprivate

Definition at line 121 of file test_main.cpp.

Here is the caller graph for this function:

◆ data()

const char * Reference::data ( ) const
inlinenodiscard

Definition at line 190 of file test_main.cpp.

◆ endFrame()

void Reference::endFrame ( )
inline

Definition at line 185 of file test_main.cpp.

Here is the caller graph for this function:

◆ send()

void Reference::send ( const char * tag,
int16_t value,
uint8_t index = 0 )
inline

Definition at line 174 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendUnsigned()

void Reference::sendUnsigned ( const char * tag,
uint16_t value,
uint8_t index = 0 )
inline

Definition at line 180 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ size()

size_t Reference::size ( ) const
inlinenodiscard

Definition at line 194 of file test_main.cpp.

◆ startFrame()

void Reference::startFrame ( )
inline

Definition at line 168 of file test_main.cpp.

Here is the caller graph for this function:

◆ writeLine()

void Reference::writeLine ( const char * tag,
uint8_t index,
uint16_t magnitude,
bool negative )
inlineprivate

Definition at line 145 of file test_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeTag()

void Reference::writeTag ( const char * tag,
uint8_t index )
inlineprivate

Definition at line 132 of file test_main.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ buffer

char Reference::buffer[512] {}
private

Definition at line 118 of file test_main.cpp.

◆ bufferPos

size_t Reference::bufferPos { 0 }
private

Definition at line 119 of file test_main.cpp.

◆ CR

const char Reference::CR { 0x0D }
staticprivate

Definition at line 115 of file test_main.cpp.

◆ ETX

const char Reference::ETX { 0x03 }
staticprivate

Definition at line 113 of file test_main.cpp.

◆ LF

const char Reference::LF { 0x0A }
staticprivate

Definition at line 114 of file test_main.cpp.

◆ STX

const char Reference::STX { 0x02 }
staticprivate

Definition at line 112 of file test_main.cpp.

◆ TAB

const char Reference::TAB { 0x09 }
staticprivate

Definition at line 116 of file test_main.cpp.


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