e2prom.h 952 B

123456789101112131415161718192021222324252627282930313233343536
  1. /******************************************************************************
  2. 版权所有:
  3. 文件名称: e2prom.h
  4. 文件版本: 01.01
  5. 创建作者: sunxi
  6. 创建日期: 2008-08-06
  7. 功能说明: e2prom驱动程序。
  8. 其它说明:
  9. 修改记录:
  10. */
  11. #ifndef _E2PROM_H
  12. #define _E2PROM_H
  13. /*------------------------------ 外部函数接口 -----------------------------------
  14. */
  15. int e2prom_init(void);
  16. int e2prom_exit(void);
  17. int e2prom_read(uint32_t offset,unsigned char * buffer,uint32_t length);
  18. int e2prom_write(uint32_t offset,unsigned char * buffer,uint32_t length);
  19. int e2prom_test(void);
  20. int ac_e2prom_init(void);
  21. int ac_e2prom_exit(void);
  22. int ac_e2prom_read(unsigned char addr,uint32_t offset,unsigned char * buffer,uint32_t length);
  23. int ac_e2prom_write(unsigned char addr,uint32_t offset,unsigned char * buffer,uint32_t length);
  24. int ac_e2prom_test(void);
  25. int e2prom_reinit(void);
  26. #endif
  27. /*------------------------------ 文件结束 -------------------------------------
  28. */