pinebuds/utils/xyzmodem/xyzmodem.h

16 lines
334 B
C
Raw Normal View History

2022-08-15 04:20:27 -05:00
#ifndef __XYZ_MODEM__
#define __XYZ_MODEM__
/*
* start xmodem transfer
* param: wait, connect timeout in seconds
* return, 0 is ok
* other value is error;
*/
int xmodem_start_xfer(uint32_t wait);
int xmodem_stop_xfer(void);
int xmodem_send_stream(const uint8_t *data, size_t size, int ascii);
#endif /*__XYZ_MODEM__*/