ESP3D  3.0
Firmware for ESP boards connected to 3D Printer
GcodeHost Class Reference

#include <gcode_host.h>

Public Member Functions

 GcodeHost ()
 
 ~GcodeHost ()
 
bool begin (bool waitwhenidle=false)
 
void end ()
 
void handle ()
 
bool sendCommand (const char *command, bool checksum=false, bool wait4ack=true, const char *ack=nullptr)
 
uint32_t currentCommandNumber ()
 
void setCommandNumber (uint32_t n)
 
bool resetCommandNumbering ()
 
uint8_t Checksum (const char *command, uint32_t commandSize)
 
String CheckSumCommand (const char *command, uint32_t commandnb)
 
size_t wait_for_data (uint32_t timeout=DEFAULT_TIMOUT)
 
bool wait_for_ack (uint32_t timeout=DEFAULT_TIMOUT, bool checksum=false, const char *ack=nullptr)
 
bool purge (uint32_t timeout=DEFAULT_TIMOUT)
 
uint32_t Get_commandNumber (String &response)
 
bool waitWhenIdle ()
 
uint8_t getErrorNum ()
 
bool processFile (const char *filename, level_authenticate_type auth_type, ESP3DOutput *output)
 
bool processFSFile (const char *filename, level_authenticate_type auth_type, ESP3DOutput *output)
 
bool processLine (const char *line, level_authenticate_type auth_type, ESP3DOutput *output)
 
bool processscript (const char *line)
 

Detailed Description

Definition at line 42 of file gcode_host.h.

Constructor & Destructor Documentation

◆ GcodeHost()

GcodeHost::GcodeHost ( )

Definition at line 32 of file gcode_host.cpp.

◆ ~GcodeHost()

GcodeHost::~GcodeHost ( )

Definition at line 39 of file gcode_host.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ begin()

bool GcodeHost::begin ( bool  waitwhenidle = false)

Definition at line 44 of file gcode_host.cpp.

Here is the call graph for this function:

◆ Checksum()

uint8_t GcodeHost::Checksum ( const char *  command,
uint32_t  commandSize 
)

Definition at line 60 of file gcode_host.cpp.

Here is the caller graph for this function:

◆ CheckSumCommand()

String GcodeHost::CheckSumCommand ( const char *  command,
uint32_t  commandnb 
)

Definition at line 72 of file gcode_host.cpp.

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

◆ currentCommandNumber()

uint32_t GcodeHost::currentCommandNumber ( )
inline

Definition at line 51 of file gcode_host.h.

◆ end()

void GcodeHost::end ( )

Definition at line 51 of file gcode_host.cpp.

Here is the caller graph for this function:

◆ Get_commandNumber()

uint32_t GcodeHost::Get_commandNumber ( String &  response)

Definition at line 264 of file gcode_host.cpp.

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

◆ getErrorNum()

uint8_t GcodeHost::getErrorNum ( )
inline

Definition at line 70 of file gcode_host.h.

◆ handle()

void GcodeHost::handle ( )

Definition at line 56 of file gcode_host.cpp.

◆ processFile()

bool GcodeHost::processFile ( const char *  filename,
level_authenticate_type  auth_type,
ESP3DOutput output 
)

Definition at line 389 of file gcode_host.cpp.

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

◆ processFSFile()

bool GcodeHost::processFSFile ( const char *  filename,
level_authenticate_type  auth_type,
ESP3DOutput output 
)

Definition at line 286 of file gcode_host.cpp.

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

◆ processLine()

bool GcodeHost::processLine ( const char *  line,
level_authenticate_type  auth_type,
ESP3DOutput output 
)

Definition at line 355 of file gcode_host.cpp.

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

◆ processscript()

bool GcodeHost::processscript ( const char *  line)

Definition at line 340 of file gcode_host.cpp.

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

◆ purge()

bool GcodeHost::purge ( uint32_t  timeout = DEFAULT_TIMOUT)

Definition at line 235 of file gcode_host.cpp.

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

◆ resetCommandNumbering()

bool GcodeHost::resetCommandNumbering ( )

Definition at line 89 of file gcode_host.cpp.

Here is the call graph for this function:

◆ sendCommand()

bool GcodeHost::sendCommand ( const char *  command,
bool  checksum = false,
bool  wait4ack = true,
const char *  ack = nullptr 
)

Definition at line 174 of file gcode_host.cpp.

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

◆ setCommandNumber()

void GcodeHost::setCommandNumber ( uint32_t  n)
inline

Definition at line 55 of file gcode_host.h.

◆ wait_for_ack()

bool GcodeHost::wait_for_ack ( uint32_t  timeout = DEFAULT_TIMOUT,
bool  checksum = false,
const char *  ack = nullptr 
)

Definition at line 106 of file gcode_host.cpp.

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

◆ wait_for_data()

size_t GcodeHost::wait_for_data ( uint32_t  timeout = DEFAULT_TIMOUT)

Definition at line 80 of file gcode_host.cpp.

Here is the call graph for this function:

◆ waitWhenIdle()

bool GcodeHost::waitWhenIdle ( )
inline

Definition at line 66 of file gcode_host.h.


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