28 #ifndef CORE_SETTINGS_H
29 #define CORE_SETTINGS_H
32 #include "pprzlink/pprzlink_device.h"
33 #include "pprzlink/pprzlink_transport.h"
44 #define settings_StoreSettings(_v) { settings_store_flag = _v; settings_store(); }
45 #define settings_ClearSettings(_v) { settings_clear_flag = _v; settings_clear(); }
int32_t persistent_write(void *ptr, uint32_t size)
void settings_parse_msg_GET_SETTING(struct link_device *dev, struct transport_tx *trans, uint8_t *buf)
int32_t persistent_read(void *ptr, uint32_t size)
int32_t settings_clear(void)
clear all persistent settings from flash
int32_t persistent_clear(void)
void settings_parse_msg_SETTING(struct link_device *dev, struct transport_tx *trans, uint8_t *buf)
bool settings_store_flag
flag for setting feedback.
int32_t settings_store(void)
store settings marked as persistent to flash
static const struct usb_device_descriptor dev
int int32_t
Typedef defining 32 bit int type.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.