PX4 Firmware
PX4 Autopilot Software http://px4.io
|
#include <stdint.h>
#include <stdbool.h>
Go to the source code of this file.
Classes | |
struct | flash_file_token_t |
struct | sector_descriptor_t |
Macros | |
#define | PARAMETER_BUFFER_SIZE 512 |
Typedefs | |
typedef struct flash_file_token_t | flash_file_token_t |
typedef struct sector_descriptor_t | sector_descriptor_t |
Functions | |
__EXPORT int | parameter_flashfs_init (sector_descriptor_t *fconfig, uint8_t *buffer, uint16_t size) |
__EXPORT int | parameter_flashfs_read (flash_file_token_t ft, uint8_t **buffer, size_t *buf_size) |
__EXPORT int | parameter_flashfs_write (flash_file_token_t ft, uint8_t *buffer, size_t buf_size) |
__EXPORT int | parameter_flashfs_erase (void) |
__EXPORT int | parameter_flashfs_alloc (flash_file_token_t ft, uint8_t **buffer, size_t *buf_size) |
__EXPORT void | parameter_flashfs_free (void) |
Variables | |
__BEGIN_DECLS typedef uint32_t | flash_file_tokens_t |
__EXPORT const flash_file_token_t | parameters_token |
typedef struct flash_file_token_t flash_file_token_t |
typedef struct sector_descriptor_t sector_descriptor_t |
__EXPORT int parameter_flashfs_alloc | ( | flash_file_token_t | ft, |
uint8_t ** | buffer, | ||
size_t * | buf_size | ||
) |
__EXPORT int parameter_flashfs_erase | ( | void | ) |
__EXPORT void parameter_flashfs_free | ( | void | ) |
__EXPORT int parameter_flashfs_init | ( | sector_descriptor_t * | fconfig, |
uint8_t * | buffer, | ||
uint16_t | size | ||
) |
__EXPORT int parameter_flashfs_read | ( | flash_file_token_t | ft, |
uint8_t ** | buffer, | ||
size_t * | buf_size | ||
) |
Referenced by param_export_internal(), and param_import_internal().
__EXPORT int parameter_flashfs_write | ( | flash_file_token_t | ft, |
uint8_t * | buffer, | ||
size_t | buf_size | ||
) |
__BEGIN_DECLS typedef uint32_t flash_file_tokens_t |
__EXPORT const flash_file_token_t parameters_token |
Referenced by param_export_internal(), and param_import_internal().