lib_ringfs_func.h 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. /*********************************************************
  2. //file :lib_ringfs_func.h
  3. //author :libo
  4. //date :2022/10/28
  5. //version :V1.0
  6. //brief :GSP HAL层GPIO接口H文件
  7. *********************************************************/
  8. #ifndef LIB_RINGFS_FUNC_H
  9. #define LIB_RINGFS_FUNC_H
  10. /* Includes----------------------------------------------------------------------------------*/
  11. #define USE_LIB_RINGFS_W25Q 1
  12. #include <inttypes.h>
  13. /* Public macro------------------------------------------------------------------------------*/
  14. /* Public define-----------------------------------------------------------------------------*/
  15. /* Public typedef----------------------------------------------------------------------------*/
  16. /* public function---------------------------------------------------------------------------*/
  17. int lib_ringfs_init(int object_size);
  18. void lib_ringfs_test(void const *argument); //文件操作主函数
  19. int32_t lib_ringfs_push(void *object, size_t size);
  20. int32_t lib_ringfs_pop(void *object, size_t size);
  21. uint32_t lib_ringfs_obj_cnt_estimate(void);
  22. uint32_t lib_ringfs_obj_cnt_exact(void);
  23. #endif /*********LIB_RINGFS_FUNC_H****************/
  24. /******************************the end of file************************************************/