Swadge ESP32-S2
APIs to develop for the Magfest Swadge
Toggle main menu visibility
Loading...
Searching...
No Matches
cnfs.h
Go to the documentation of this file.
1
53
54
#ifndef _HDW_CNFS_H_
55
#define _HDW_CNFS_H_
56
57
#include <stdint.h>
58
#include <stdbool.h>
59
#include <stddef.h>
60
61
#include "cnfs_image.h"
62
63
bool
initCnfs
(
void
);
64
bool
deinitCnfs
(
void
);
65
const
uint8_t*
cnfsGetFile
(cnfsFileIdx_t fIdx,
size_t
* flen);
66
uint8_t*
cnfsReadFile
(cnfsFileIdx_t fIdx,
size_t
* outsize,
bool
readToSpiRam);
67
68
#endif
cnfsGetFile
const uint8_t * cnfsGetFile(cnfsFileIdx_t fIdx, size_t *flen)
Get a pointer to a file, without needing to read it. Same rules that apply to cnfsGetFile,...
Definition
cnfs.c:65
initCnfs
bool initCnfs(void)
Initialize the CNFS file system. This is used to store assets like WSGs and fonts.
Definition
cnfs.c:34
cnfsReadFile
uint8_t * cnfsReadFile(cnfsFileIdx_t fIdx, size_t *outsize, bool readToSpiRam)
Read a file from CNFS into an output array. Files that are in the assets_image folder before compilat...
Definition
cnfs.c:90
deinitCnfs
bool deinitCnfs(void)
De-initialize the CNFS file system (right now a noop).
Definition
cnfs.c:51
main
utils
filesystem
cnfs.h
Generated by
1.17.0