Ymodem ESP32 1.0.0
Loading...
Searching...
No Matches
YmodemPaquets.h
Go to the documentation of this file.
1
11#ifndef YMODEMPAQUETS_H
12#define YMODEMPAQUETS_H
13
14#include "YmodemUtils.h"
15
27void Ymodem_PrepareIntialPacket(uint8_t* data, char* fileName, uint32_t length);
28
38void Ymodem_PrepareLastPacket(uint8_t* data);
39
48void Ymodem_PreparePacket(uint8_t* data, uint8_t pktNo, uint32_t sizeBlk, fs::File& ffd);
49
62uint8_t Ymodem_WaitResponse(uint8_t ackchr, uint8_t tmo);
63
64#endif // YMODEMPAQUETS_H
void Ymodem_PrepareIntialPacket(uint8_t *data, char *fileName, uint32_t length)
Prepares the initial packet for Ymodem transmission.
void Ymodem_PreparePacket(uint8_t *data, uint8_t pktNo, uint32_t sizeBlk, fs::File &ffd)
Prepares a Ymodem packet with the given data.
uint8_t Ymodem_WaitResponse(uint8_t ackchr, uint8_t tmo)
Waits for a specific response character within a given timeout period.
void Ymodem_PrepareLastPacket(uint8_t *data)
Prepares the last packet for Ymodem transmission.
Ymodem utility functions.