Subversion Repositories NaviCtrl

Rev

Rev 433 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 433 Rev 435
1
#ifndef _FTPHELPER_H
1
#ifndef _FTPHELPER_H
2
#define _FTPHELPER_H
2
#define _FTPHELPER_H
3
 
3
 
4
                                                                           
4
                                                                           
5
#define FTP_CMD_ERROR                   255     // global ERROR - CMD
5
#define FTP_CMD_ERROR                   255     // global ERROR - CMD
6
#define FTP_ERROR_NONE                  0
6
#define FTP_ERROR_NONE                  0
7
#define FTP_ERROR_NO_SDCARD             1
7
#define FTP_ERROR_NO_SDCARD             1
8
#define FTP_ERROR_MOTOR_RUN             2
8
#define FTP_ERROR_MOTOR_RUN             2
9
 
9
 
10
 
10
 
11
#define FTP_CMD_NONE                    0
11
#define FTP_CMD_NONE                    0
12
#define FTP_CMD_FINDFIRST               1
12
#define FTP_CMD_FINDFIRST               1
13
#define FTP_CMD_FINDNEXT                2
13
#define FTP_CMD_FINDNEXT                2
14
#define FTP_CMD_GET_CWD                 3
14
#define FTP_CMD_GET_CWD                 3
15
#define FTP_CMD_SET_CWD                 4
15
#define FTP_CMD_SET_CWD                 4
16
#define FTP_CMD_OPEN_FILE               5
16
#define FTP_CMD_OPEN_FILE               5
17
#define FTP_CMD_GET_FILE_DATA   6
17
#define FTP_CMD_GET_FILE_DATA   6
18
#define FTP_CMD_CLOSE_FILE              7
18
#define FTP_CMD_CLOSE_FILE              7
19
#define FTP_CMD_CREATE_FILE             8
19
#define FTP_CMD_CREATE_FILE             8
20
#define FTP_CMD_SEND_FILE_DATA  9
20
#define FTP_CMD_SEND_FILE_DATA  9
21
#define FTP_CMD_DELETE_FILE             10
21
#define FTP_CMD_DELETE_FILE             10
22
#define FTP_CMD_RMDIR                   11
22
#define FTP_CMD_RMDIR                   11
23
#define FTP_CMD_MKDIR                   12
23
#define FTP_CMD_MKDIR                   12
24
#define FTP_CMD_CDUP                    13      // used by Total Commander
24
#define FTP_CMD_CDUP                    13      // used by Total Commander
-
 
25
#define FTP_CMD_GET_KEYWORDS    14      // send keywords for compression
25
 
26
 
26
 
27
 
27
 
28
 
28
 
29
 
29
#define DATA_TRANSFER_SIZE              750  // size of 1 data block for filetransfer
30
#define DATA_TRANSFER_SIZE              750  // size of 1 data block for filetransfer
30
 
31
 
31
char FTP_data[DATA_TRANSFER_SIZE+10];                                   // parameter from FTP_CMD_SET_CWD
32
char FTP_data[DATA_TRANSFER_SIZE+10];                                   // parameter from FTP_CMD_SET_CWD
32
 
33
 
33
extern void CheckFTPCommand(u8 FTP_command);
34
extern void CheckFTPCommand(u8 FTP_command);
34
 
35
 
35
#endif
36
#endif
36
 
37