24 #ifndef _FNET_FS_ROM_H_ 26 #define _FNET_FS_ROM_H_ 28 #if (FNET_CFG_FS && FNET_CFG_FS_ROM) || defined(__DOXYGEN__) 140 #define FNET_FS_ROM_NAME "fnet_rom" 145 #define FNET_FS_ROM_VERSION (2u) 147 #if defined(__cplusplus) 177 #if defined(__cplusplus) struct fnet_fs_rom_node fnet_fs_rom_node_t
FNET ROM file-system node. The node represents a file or a directory.
const fnet_fs_rom_node_t * nodes
Array of file-system nodes. The last node element must have all fields set to zero as the end-of-arra...
FNET ROM file-system image.
fnet_size_t data_size
Size of the file buffer pointed to by the data field. For a directory this field must be set to 0...
void fnet_fs_rom_unregister(void)
Unregisters the FNET ROM file system.
unsigned long fnet_size_t
Unsigned integer type representing the size in bytes.
const fnet_uint8_t * data
Pointer to a file-content buffer. For a directory this field must be set to 0.
const fnet_char_t * name
Name of a file or directory (null-terminated string).
fnet_uint32_t version
File-system version the FS image was generated for.
void fnet_fs_rom_register(void)
Registers the FNET ROM file system.
const fnet_char_t * name
File-system name (null-terminated string). Should be set to the FNET_FS_ROM_NAME. ...
char fnet_char_t
Type representing the charecter.
struct fnet_fs_rom_image fnet_fs_rom_image_t
FNET ROM file-system image.
FNET ROM file-system node. The node represents a file or a directory.
const struct fnet_fs_rom_node * parent_node
Pointer to the parent directory. For the root directory this field must be set to 0...