Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
settings.h File Reference

Persistent settings interface. More...

#include "std.h"
#include "generated/settings.h"
+ Include dependency graph for settings.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define settings_StoreSettings(_v)   { settings_store_flag = _v; settings_store(); }
 

Functions

void settings_init (void)
 
int32_t settings_store (void)
 store settings marked as persistent to flash More...
 
int32_t persistent_write (uint32_t ptr, uint32_t size)
 
int32_t persistent_read (uint32_t ptr, uint32_t size)
 

Variables

bool_t settings_store_flag
 flag for setting feedback. More...
 

Detailed Description

Persistent settings interface.

Definition in file settings.h.

Macro Definition Documentation

#define settings_StoreSettings (   _v)    { settings_store_flag = _v; settings_store(); }

Definition at line 38 of file settings.h.

Referenced by superbitrf_receive_packet_cb().

Function Documentation

int32_t persistent_read ( uint32_t  ptr,
uint32_t  size 
)

Definition at line 256 of file settings_arch.c.

References FlashInfo::addr, FCHK, flash_detect(), FSIZ, FlashInfo::page_size, and pflash_checksum().

Referenced by settings_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int32_t persistent_write ( uint32_t  ptr,
uint32_t  size 
)

Definition at line 244 of file settings_arch.c.

References flash_detect(), FSIZ, FlashInfo::page_size, pflash_checksum(), and pflash_program_bytes().

Referenced by settings_store().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void settings_init ( void  )

Definition at line 41 of file settings.c.

References pers_settings, and persistent_read().

Referenced by init_ap(), and main_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int32_t settings_store ( void  )

store settings marked as persistent to flash

Returns
0 on success

Definition at line 53 of file settings.c.

References FALSE, pers_settings, persistent_write(), settings_store_flag, and TRUE.

+ Here is the call graph for this function:

Variable Documentation

bool_t settings_store_flag

flag for setting feedback.

if TRUE, was stored sucessfully. Also settings still need a variable, pure function call not possible yet.

Definition at line 38 of file settings.c.

Referenced by settings_store().