first commit
This commit is contained in:
32
application/ws63/hsf/xmodem.h
Executable file
32
application/ws63/hsf/xmodem.h
Executable file
@ -0,0 +1,32 @@
|
||||
/* xmodem.h
|
||||
*
|
||||
* Copyright (C) 2017 ShangHai High-flying Electronics Technology Co.,Ltd.
|
||||
*
|
||||
* This file is part of HSF.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _XMODEM_H_
|
||||
#define _XMODEM_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
typedef int (*xmodem_send_callback_t)(unsigned char *data, int len);
|
||||
|
||||
typedef int (*xmodem_recv_callback_t)(unsigned char *data, int len, int timeout);
|
||||
|
||||
typedef int (*xmodem_setfile_callback_t)(unsigned char *data, int len, unsigned int offset);
|
||||
|
||||
|
||||
int xmodem_receive_process(int wait, xmodem_send_callback_t send, xmodem_recv_callback_t recv, xmodem_setfile_callback_t write);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif/* _XMODEM_H_ */
|
||||
|
Reference in New Issue
Block a user