mirror of https://github.com/jeelabs/esp-link.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
468 B
22 lines
468 B
#ifndef ESPFS_H
|
|
#define ESPFS_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
typedef enum {
|
|
ESPFS_INIT_RESULT_OK,
|
|
ESPFS_INIT_RESULT_NO_IMAGE,
|
|
ESPFS_INIT_RESULT_BAD_ALIGN,
|
|
} EspFsInitResult;
|
|
|
|
typedef struct EspFsFile EspFsFile;
|
|
|
|
bool espFsIsImage(const void* const flashAddress);
|
|
EspFsInitResult espFsInit(void *flashAddress);
|
|
EspFsFile *espFsOpen(char *fileName);
|
|
int espFsFlags(EspFsFile *fh);
|
|
int espFsRead(EspFsFile *fh, char *buff, int len);
|
|
void espFsClose(EspFsFile *fh);
|
|
|
|
|
|
#endif
|
|
|