Ymodem ESP32 1.0.0
Loading...
Searching...
No Matches
YmodemReceive.h
Go to the documentation of this file.
1
15#ifndef YMODEMRECEIVE_H
16#define YMODEMRECEIVE_H
17
18#include "YmodemUtils.h"
19
33int processDataPacket(uint8_t* packet_data, int packet_length, fs::File& ffd, unsigned int file_size, unsigned int* errors);
34
45void handleEOFPacket(unsigned int* file_done, unsigned int* errors);
46
56void extractFileInfo(uint8_t* packet_data, char* getname, int* size);
57
72int processHeaderPacket(uint8_t* packet_data, int packet_length, unsigned int maxsize, char* getname, int* size, unsigned int* errors);
73
93int processPacket(uint8_t* packet_data, int packet_length, fs::File& ffd, unsigned int maxsize, char* getname, unsigned int packets_received,
94 int* size, unsigned int* file_done, unsigned int* errors);
95
106int handleFileSession(fs::File& ffd, unsigned int maxsize, char* getname, unsigned int* session_done, unsigned int* errors);
107
108#endif // YMODEMRECEIVE_H
void handleEOFPacket(unsigned int *file_done, unsigned int *errors)
Handles the End Of File (EOF) packet in the Ymodem protocol.
int processHeaderPacket(uint8_t *packet_data, int packet_length, unsigned int maxsize, char *getname, int *size, unsigned int *errors)
Processes the header packet of a Ymodem transfer.
int processPacket(uint8_t *packet_data, int packet_length, fs::File &ffd, unsigned int maxsize, char *getname, unsigned int packets_received, int *size, unsigned int *file_done, unsigned int *errors)
Processes a received Ymodem packet.
int processDataPacket(uint8_t *packet_data, int packet_length, fs::File &ffd, unsigned int file_size, unsigned int *errors)
Processes a data packet received via Ymodem protocol.
int handleFileSession(fs::File &ffd, unsigned int maxsize, char *getname, unsigned int *session_done, unsigned int *errors)
Handles a file session for receiving data.
void extractFileInfo(uint8_t *packet_data, char *getname, int *size)
Extracts file information from a Ymodem packet.
Ymodem utility functions.