hpi.H
上传用户:jcsy2001
上传日期:2013-11-29
资源大小:201k
文件大小:1k
开发平台:

C/C++

  1. /////////////////hpi.h////////////////////////////////
  2. typedef struct Command_D{
  3.   unsigned char CLass;
  4.   unsigned long len;
  5.   unsigned char Parameter[32];
  6. } Command_Def;
  7. typedef struct Response_D{
  8.   unsigned char Result;
  9.   unsigned long len;
  10. } Response_Def;
  11. #define MaxLFNum 20
  12. typedef struct ShowFileName_D{
  13.   unsigned char LongName[256]; //long file name,end by 00 00
  14.   unsigned char item[32]; //short file name & dir
  15. } ShowFileName_Def;
  16. void UartSendRsp(void);
  17. unsigned char UartHandler(void);
  18. unsigned char List(void);
  19. unsigned char OpenFile(unsigned char *pBuffer);
  20. unsigned char ReadFile(unsigned long readLength,unsigned char *pBuffer);
  21. unsigned char SetFilePointer(unsigned long pointer);
  22. unsigned char CreateFile(unsigned long len,unsigned char *pBuffer,unsigned char *pName);
  23. unsigned char WriteFile(unsigned long writeLength,unsigned char *pBuffer);
  24. unsigned char RemoveFile(unsigned char *pBuffer);
  25. unsigned char GetCapacity(void);
  26. unsigned char CreateDir(unsigned long len,unsigned char *pBuffer,unsigned char *pName);
  27. unsigned char DownDir(unsigned char *pBuffer);
  28. unsigned char UpDir(void);
  29. unsigned char UpRootDir(void);
  30. unsigned char RemoveDir(unsigned char *pBuffer);