8 #ifndef __DEVICEINTERACE_H
9 #define __DEVICEINTERACE_H
13 #define DI_MAX_NUMBER_OF_FILES_TO_LIST 100
14 #define DI_MAX_FILENAME_LENGTH 60
19 #define DEVICE_PROGRAM 2
22 #define DEVICE_WAITING 0
23 #define DEVICE_GET_LISTING 1
24 #define DEVICE_DELETE 2
25 #define DEVICE_RENAME 3
26 #define DEVICE_COPY_TO_USB 4
27 #define DEVICE_COPY_TO_FTP 5
28 #define DEVICE_COPY_TO_LOCAL 6
29 #define DEVICE_PREVIEW 7
30 #define DEVICE_EXISTS 8
34 #define DEVICE_IN_PROGRESS 1
35 #define DEVICE_SUCCESS 2
36 #define DEVICE_FAILED 3
37 #define DEVICE_FAILED_DELETE 4
38 #define DEVICE_FAILED_COPY 5
39 #define DEVICE_FAILED_RENAME 6
40 #define DEVICE_FAILED_COPY_TO_USB 7
41 #define DEVICE_FAILED_COPY_TO_LOCAL 8
42 #define DEVICE_FAILED_COPY_TO_FTP 9
43 #define DEVICE_FAILED_NOT_EXISTS 10
44 #define DEVICE_FAILED_IN_PROGRESS 11
47 #define FILE_CLEAR_ATTRIBUTES 0x00
48 #define FILE_READWRITE 0x01
49 #define FILE_READONLY 0x02
50 #define FILE_SUBDIRECTORY 0x04
51 #define FILE_NEW 0x80 // Special case for identifying the option for creating a new file
56 uint8 attributes[DI_MAX_NUMBER_OF_FILES_TO_LIST];
58 uc_string_60 listing[DI_MAX_NUMBER_OF_FILES_TO_LIST];
88 file_listing_t * device_interface_request(uint8 z_device, uint8 z_request,
char * z_arg1,
89 char * z_arg2,
char * z_arg3,
char * z_arg4,
90 char * z_arg5, uint8 z_arg6);
92 void device_interface_run_task (
void);
93 void device_interface_stop_task (
void);
Definition: device_interface.h:53
Definition: device_interface.h:62