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

#include <serial_service.h>

Inheritance diagram for SerialService:
Inheritance graph
Collaboration diagram for SerialService:
Collaboration graph

Public Member Functions

 SerialService ()
 
 ~SerialService ()
 
bool begin ()
 
bool end ()
 
void handle ()
 
bool reset ()
 
long baudRate ()
 
const long * get_baudratelist (uint8_t *count)
 
void flush ()
 
void swap ()
 
uint availableForWrite ()
 
int available ()
 
bool is_valid_baudrate (long br)
 
size_t write (uint8_t c)
 
size_t write (const uint8_t *buffer, size_t size)
 
size_t write (const char *s)
 
size_t write (unsigned long n)
 
size_t write (long n)
 
size_t write (unsigned int n)
 
size_t write (int n)
 
int read ()
 
size_t readBytes (uint8_t *sbuf, size_t len)
 
bool started ()
 

Detailed Description

Definition at line 28 of file serial_service.h.

Constructor & Destructor Documentation

◆ SerialService()

SerialService::SerialService ( )

Definition at line 48 of file serial_service.cpp.

◆ ~SerialService()

SerialService::~SerialService ( )

Definition at line 55 of file serial_service.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ available()

int SerialService::available ( )

Definition at line 248 of file serial_service.cpp.

Here is the caller graph for this function:

◆ availableForWrite()

uint SerialService::availableForWrite ( )

Definition at line 243 of file serial_service.cpp.

Here is the caller graph for this function:

◆ baudRate()

long SerialService::baudRate ( )

Definition at line 196 of file serial_service.cpp.

Here is the caller graph for this function:

◆ begin()

bool SerialService::begin ( )

Definition at line 61 of file serial_service.cpp.

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

◆ end()

bool SerialService::end ( )

Definition at line 87 of file serial_service.cpp.

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

◆ flush()

void SerialService::flush ( )

Definition at line 263 of file serial_service.cpp.

Here is the caller graph for this function:

◆ get_baudratelist()

const long * SerialService::get_baudratelist ( uint8_t *  count)

Definition at line 99 of file serial_service.cpp.

Here is the caller graph for this function:

◆ handle()

void SerialService::handle ( )

Definition at line 120 of file serial_service.cpp.

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

◆ is_valid_baudrate()

bool SerialService::is_valid_baudrate ( long  br)

Definition at line 108 of file serial_service.cpp.

Here is the caller graph for this function:

◆ read()

int SerialService::read ( )

Definition at line 253 of file serial_service.cpp.

◆ readBytes()

size_t SerialService::readBytes ( uint8_t *  sbuf,
size_t  len 
)

Definition at line 258 of file serial_service.cpp.

Here is the caller graph for this function:

◆ reset()

bool SerialService::reset ( )

Definition at line 189 of file serial_service.cpp.

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

◆ started()

bool SerialService::started ( )
inline

Definition at line 68 of file serial_service.h.

Here is the caller graph for this function:

◆ swap()

void SerialService::swap ( )

Definition at line 268 of file serial_service.cpp.

Here is the caller graph for this function:

◆ write() [1/7]

size_t SerialService::write ( const char *  s)
inline

Definition at line 46 of file serial_service.h.

Here is the call graph for this function:

◆ write() [2/7]

size_t SerialService::write ( const uint8_t *  buffer,
size_t  size 
)

Definition at line 217 of file serial_service.cpp.

Here is the call graph for this function:

◆ write() [3/7]

size_t SerialService::write ( int  n)
inline

Definition at line 62 of file serial_service.h.

Here is the call graph for this function:

◆ write() [4/7]

size_t SerialService::write ( long  n)
inline

Definition at line 54 of file serial_service.h.

Here is the call graph for this function:

◆ write() [5/7]

size_t SerialService::write ( uint8_t  c)

Definition at line 212 of file serial_service.cpp.

Here is the caller graph for this function:

◆ write() [6/7]

size_t SerialService::write ( unsigned int  n)
inline

Definition at line 58 of file serial_service.h.

Here is the call graph for this function:

◆ write() [7/7]

size_t SerialService::write ( unsigned long  n)
inline

Definition at line 50 of file serial_service.h.

Here is the call graph for this function:

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