APM:Libraries
AP_ROMFS.h
Go to the documentation of this file.
1 /*
2  implement a file store for embedded firmware images
3  */
4 
5 #include <AP_HAL/AP_HAL.h>
6 
7 class AP_ROMFS {
8 public:
9  // find an embedded file
10  static const uint8_t *find_file(const char *name, uint32_t &size);
11 
12 private:
13  struct embedded_file {
14  const char *filename;
15  uint32_t size;
16  const uint8_t *contents;
17  };
18  static const struct embedded_file files[];
19 };
const char * name
Definition: BusTest.cpp:11
const char * filename
Definition: AP_ROMFS.h:14
const uint8_t * contents
Definition: AP_ROMFS.h:16
static const uint8_t * find_file(const char *name, uint32_t &size)
Definition: AP_ROMFS.cpp:30
static const struct embedded_file files[]
Definition: AP_ROMFS.h:18