Files
ESP-Miner/components/asic/include/serial.h
2025-04-04 15:09:45 +02:00

20 lines
371 B
C

#ifndef SERIAL_H_
#define SERIAL_H_
#include "esp_err.h"
typedef enum
{
JOB_PACKET = 0,
CMD_PACKET = 1,
} packet_type_t;
int SERIAL_send(uint8_t *, int, bool);
esp_err_t SERIAL_init(void);
void SERIAL_debug_rx(void);
int16_t SERIAL_rx(uint8_t *, uint16_t, uint16_t);
void SERIAL_clear_buffer(void);
esp_err_t SERIAL_set_baud(int baud);
#endif /* SERIAL_H_ */