#include <ymodem_tx.h>
Inheritance diagram for YModemTx:

Definition at line 38 of file ymodem_tx.h.
Public Types | |
| enum | TxError { ErrorInputStreamError = -300, ErrorReceiverNotBehaving = -301, ErrorTranferTerminatedByReceiver = -302, ErrorFileNameTooLong = -303 } |
Public Member Functions | |
| YModemTx (SerialPort &port) | |
| int | SendX (InStream &in, unsigned timeout, bool kMode) |
| int | SendY (const char *fileName, size_t size, InStream &in, unsigned timeout) |
Private Member Functions | |
| int | SendInitialise (unsigned timeout) |
| int | SendBlock (const uint8_t *data, size_t size) |
| int | SendData (const uint8_t *data, size_t size) |
| int | SendAll (InStream &in) |
| int | MakeBlock0 (uint8_t *buffer, const char *fileName, size_t fileSize) |
| int | ProcessResponse (int c) |
Private Attributes | |
| size_t | BlockNumber |
| bool | SendCRC |
| bool | WaitForBlockACK |
| bool | Use1KBlocks |
| uint8_t | ModeChar |
| int | CancelCount |
Classes | |
| class | InStream |
|
|
Enumeration of possible error values.
Definition at line 95 of file ymodem_tx.h. |
|
|
Construct a Y-Modem object which will transmit data over the given port.
Definition at line 369 of file ymodem_tx.cpp. |
|
||||||||||||||||
|
Send data using X-Modem.
Definition at line 375 of file ymodem_tx.cpp. |
|
||||||||||||||||||||
|
Send data using Y-Modem.
Definition at line 385 of file ymodem_tx.cpp. |
|
|
Begin the Y-Modem transfer.
Definition at line 78 of file ymodem_tx.cpp. |
|
||||||||||||
|
Send a single block of data. A zero sized block terminates the transfer.
Definition at line 135 of file ymodem_tx.cpp. |
|
||||||||||||
|
Send data. A zero sized block terminates the transfer.
Definition at line 270 of file ymodem_tx.cpp. |
|
|
Send an entire stread of data.
Definition at line 294 of file ymodem_tx.cpp. |
|
||||||||||||||||
|
Construct the data for the first block of a Y-Modem transfer.
Definition at line 326 of file ymodem_tx.cpp. |
|
|
Process response from receiver.
Definition at line 54 of file ymodem_tx.cpp. |
1.4.4