#include <ymodem.h>
Inheritance diagram for YModem:

Definition at line 46 of file ymodem.h.
Protected Types | |
| enum | ControlCharacters |
| enum | Error { ErrorTimeout = -200, ErrorBlockRetriesExceded = -201 } |
Protected Member Functions | |
| YModem (SerialPort &port) | |
| uint8_t | Checksum (const uint8_t *data, size_t size) |
| uint16_t | CRC16 (const uint8_t *data, size_t size) |
| uint16_t | UpdateCRC16 (uint16_t crcIn, uint8_t byte) |
| int | InChar (unsigned timeout) |
| void | Cancel () |
Protected Attributes | |
| SerialPort & | Port |
|
|
Enumeration of control characted used in communications protocol. |
|
|
Enumeration of possible error values. |
|
||||||||||||
|
Checksum a block of data.
Definition at line 66 of file ymodem.cpp. |
|
||||||||||||
|
Calculate CRC for a block of data.
Definition at line 54 of file ymodem.cpp. |
|
||||||||||||
|
Update CRC value by accumulating another byte of data.
Definition at line 36 of file ymodem.cpp. |
|
|
Receive a single character. If the timeout period is exceeded, ErrorTimeout is returned.
Definition at line 76 of file ymodem.cpp. |
|
|
Send CANcel sequence. Definition at line 88 of file ymodem.cpp. |
|
|
The serial port to use for communications. |
1.4.4