whycyhl
2022-05-05 94861120b14313f81fc666e612c48c9e8a81f1e7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/************************** Copyright (c) **********************************
**                 FUZHOU FUGUANG ELECTRONICS Co.,LTD.
**                        ¸£Öݸ£¹âµç×ÓÓÐÏÞ¹«Ë¾
**                       http://www.fuguang.com
**
**-------------- File Info -------------------------------------------------
** File name:            FileManage.h
** Last modified Date:  2008-11-16
** Last Version:        1.0
** Descriptions:        Tested datas management functions
**
**--------------------------------------------------------------------------
** Created by:            mxpopstar
** Created date:        2008-11-16
** Version:                1.0
** Descriptions:        The original version
**
**--------------------------------------------------------------------------
** Modified by:            mxpopstar
** Modified date:        2008-11-20
** Version:
** Descriptions:        Tested datas management functions
**
***************************************************************************/
//
 
#ifndef FM_H
#define FM_H
 
#define usb_device  0 
#define comm_device  1 //ת´æÊý¾ÝʱÓÃUSB»òCOMM
#define usb_stm32U    2
#define usb_samd21U    3
void FileManageInit(void);
unsigned char DSPFileManagePage(void);
void GetAndDspMemoryRest(const unsigned int dspx, const unsigned int dspy);
void DrawFMButton(unsigned char itemcount);
void DSPFileList(void);
void GetFileManageButtonDown(void);
unsigned char GetMemoryRest(void);
unsigned char FileExists(void);
unsigned char CreateFile(void);
void SaveFile(volatile const FBO_Data *fbodata);
void CloseFile(volatile const FBO_Data *data, const unsigned char stoptype);
void ReadFile(unsigned char filetag, unsigned char device);
void DeleteFile(unsigned char filetag);
 
typedef struct _file
{
    unsigned char AlreadyCreated;    
    unsigned char FileHandle;
    unsigned long FileAddr;
    unsigned long FileInfAddr;    
}STRUCTFILE;
 
#endif
//