23#include "driver/gpio.h"
26#include <driver/uart.h>
52unsigned short crc16(
const unsigned char* buf,
unsigned long count);
139int32_t
Receive_Packet(uint8_t* data,
int* length, uint32_t timeout);
Ymodem protocol definitions and configuration.
void IRAM_ATTR LED_toggle()
Toggles the state of an LED.
void send_CRC16()
Sends the CRC16 checksum.
void send_ACKCRC16()
Sends an acknowledgment with CRC16.
unsigned short crc16(const unsigned char *buf, unsigned long count)
Computes the CRC-16 checksum for a given buffer.
int32_t Receive_Packet(uint8_t *data, int *length, uint32_t timeout)
Receives a packet of data.
void send_CA()
Sends the CA (Cancel) signal.
uint32_t Send_Byte(char c)
Sends a single byte of data.
void send_ACK()
Sends an acknowledgment (ACK) signal.
int32_t Receive_Byte(unsigned char *c, uint32_t timeout)
Receives a byte from a communication interface.
void send_NAK()
Sends a Negative Acknowledgement (NAK) signal.
void uart_consume()
Consumes data from the UART buffer.