#include <ymodem_rx.h>
Inheritance diagram for YModemRx:

Definition at line 38 of file ymodem_rx.h.
Public Types | |
| enum | RxError { ErrorOutputStreamError = -400, ErrorTransmitterNotBehaving = -401, ErrorTranferTerminatedByTransmitter = -402, ErrorReceivedBadData = -403, ErrorMultipleFilesSent = -404 } |
Public Member Functions | |
| YModemRx (SerialPort &port) | |
| int | ReceiveX (OutStream &out, unsigned timeout, bool useCrc) |
| int | ReceiveY (OutStream &out, unsigned timeout, bool gMode) |
Private Member Functions | |
| int | ReceiveInitialise (OutStream &out, unsigned timeout) |
| int | ReceiveBlock (OutStream &out) |
| int | OutChar (uint8_t c) |
Private Attributes | |
| size_t | BlockNumber |
| bool | ExpectCRC |
| bool | SendBlockACK |
| uint8_t | ModeChar |
| uint8_t | NAKChar |
Classes | |
| class | OutBlock0 |
| class | OutStream |
|
|
Enumeration of possible error values.
Definition at line 106 of file ymodem_rx.h. |
|
|
Construct a Y-Modem object which will transmit data over the given port.
Definition at line 45 of file ymodem_rx.cpp. |
|
||||||||||||||||
|
Receive data using X-Modem.
Definition at line 208 of file ymodem_rx.cpp. |
|
||||||||||||||||
|
Receive data using Y-Modem.
Definition at line 314 of file ymodem_rx.cpp. |
|
||||||||||||
|
Receive first block of data.
Definition at line 188 of file ymodem_rx.cpp. |
|
|
Receive a block of data. If ExpectCRC is true, possible formats of blocks are:
Definition at line 81 of file ymodem_rx.cpp. |
|
|
Transmit a single character.
Definition at line 58 of file ymodem_rx.cpp. |
1.4.4