#include <sfTkISerial.h>
◆ sfTkISerial()
sfTkISerial::sfTkISerial |
( |
| ) |
|
|
default |
◆ ~sfTkISerial()
virtual sfTkISerial::~sfTkISerial |
( |
| ) |
|
|
virtualdefault |
◆ read() [1/2]
virtual sfTkError_t sfTkISerial::read |
( |
uint8_t & |
data | ) |
|
|
inlinevirtual |
Read a single byte from the serial interface.
- Parameters
-
- Returns
- sfTkError_t Returns ksfTkErrOk on success, or ksfTkErrFail code
◆ read() [2/2]
virtual sfTkError_t sfTkISerial::read |
( |
uint8_t * |
data, |
|
|
size_t |
length, |
|
|
size_t & |
readBytes |
|
) |
| |
|
pure virtual |
Reads an array of bytes from the serial interface.
- Parameters
-
data | The data buffer to read into |
length | The length of the data buffer |
readBytes[out] | The number of bytes read |
- Returns
- sfTkError_t Returns ksfTkErrOk on success, or ksfTkErrFail code
◆ write() [1/2]
virtual sfTkError_t sfTkISerial::write |
( |
const uint8_t * |
data, |
|
|
size_t |
length |
|
) |
| |
|
pure virtual |
Writes an array of bytes to the serial interface.
- Parameters
-
data | The data to write |
length | The length of the data buffer |
- Returns
- sfTkError_t Returns ksfTkErrOk on success, or ksfTkErrFail code
◆ write() [2/2]
virtual sfTkError_t sfTkISerial::write |
( |
const uint8_t |
data | ) |
|
|
inlinevirtual |
Writes a single byte to the serial interface.
- Parameters
-
- Returns
- sfTkError_t Returns ksfTkErrOk on success, or ksfTkErrFail code
The documentation for this class was generated from the following file: