Subversion Repositories NaviCtrl

Compare Revisions

Ignore whitespace Rev 869 → Rev 870

/tags/V2.20f/ftphelper.h
0,0 → 1,36
#ifndef _FTPHELPER_H
#define _FTPHELPER_H
 
#define FTP_CMD_ERROR 255 // global ERROR - CMD
#define FTP_ERROR_NONE 0
#define FTP_ERROR_NO_SDCARD 1
#define FTP_ERROR_MOTOR_RUN 2
 
 
#define FTP_CMD_NONE 0
#define FTP_CMD_FINDFIRST 1
#define FTP_CMD_FINDNEXT 2
#define FTP_CMD_GET_CWD 3
#define FTP_CMD_SET_CWD 4
#define FTP_CMD_OPEN_FILE 5
#define FTP_CMD_GET_FILE_DATA 6
#define FTP_CMD_CLOSE_FILE 7
#define FTP_CMD_CREATE_FILE 8
#define FTP_CMD_SEND_FILE_DATA 9
#define FTP_CMD_DELETE_FILE 10
#define FTP_CMD_RMDIR 11
#define FTP_CMD_MKDIR 12
#define FTP_CMD_CDUP 13 // used by Total Commander
#define FTP_CMD_GET_KEYWORDS 14 // send keywords for compression
#define FTP_CMD_CHANGE_BAUDATE 15
#define FTP_CMD_PING 16
 
 
#define DATA_TRANSFER_SIZE 850 // size of 1 data block for filetransfer
 
char FTP_data[DATA_TRANSFER_SIZE+10]; // parameter from FTP_CMD_SET_CWD
 
extern void CheckFTPCommand(u8 FTP_command);
 
#endif