APM:Libraries
Classes | Public Member Functions | Static Public Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
F4Light::Storage Class Reference

#include <Storage.h>

Inheritance diagram for F4Light::Storage:
[legend]
Collaboration diagram for F4Light::Storage:
[legend]

Classes

struct  Item
 

Public Member Functions

 Storage ()
 
void init ()
 
void read_block (void *dst, uint16_t src, size_t n)
 
void write_block (uint16_t dst, const void *src, size_t n)
 
- Public Member Functions inherited from AP_HAL::Storage
virtual void _timer_tick (void)
 

Static Public Member Functions

static void late_init (bool defer)
 
static uint8_t read_byte (uint16_t loc)
 
static void write_byte (uint16_t loc, uint8_t value)
 

Static Private Member Functions

static void _write_byte (uint16_t loc, uint8_t value)
 
static uint8_t _read_byte (uint16_t loc)
 
static void write_word (uint16_t loc, uint16_t value)
 
static void do_on_disarm ()
 
static void error_parse (uint16_t status)
 
static void write_thread ()
 

Static Private Attributes

static bool write_deferred
 
static volatile uint16_t rd_ptr = 0
 
static volatile uint16_t wr_ptr = 0
 
static Item queue [EEPROM_QUEUE_LEN]
 
static void * _task
 
static uint8_t eeprom_buffer [BOARD_STORAGE_SIZEIN_CCM
 

Detailed Description

Definition at line 32 of file Storage.h.

Constructor & Destructor Documentation

◆ Storage()

Storage::Storage ( )

Definition at line 78 of file Storage.cpp.

Member Function Documentation

◆ _read_byte()

uint8_t Storage::_read_byte ( uint16_t  loc)
staticprivate

Definition at line 145 of file Storage.cpp.

Referenced by read_byte().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _write_byte()

void Storage::_write_byte ( uint16_t  loc,
uint8_t  value 
)
staticprivate

Definition at line 202 of file Storage.cpp.

Referenced by write_block(), and write_byte().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ do_on_disarm()

void Storage::do_on_disarm ( )
staticprivate

Definition at line 252 of file Storage.cpp.

Referenced by late_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ error_parse()

void Storage::error_parse ( uint16_t  status)
staticprivate

Definition at line 87 of file Storage.cpp.

Referenced by _read_byte(), _write_byte(), do_on_disarm(), init(), read_block(), write_thread(), and write_word().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init()

void Storage::init ( void  )
virtual

Implements AP_HAL::Storage.

Definition at line 113 of file Storage.cpp.

Here is the call graph for this function:

◆ late_init()

void Storage::late_init ( bool  defer)
static

Definition at line 82 of file Storage.cpp.

Here is the call graph for this function:

◆ read_block()

void Storage::read_block ( void *  dst,
uint16_t  src,
size_t  n 
)
virtual

Implements AP_HAL::Storage.

Definition at line 161 of file Storage.cpp.

Here is the call graph for this function:

◆ read_byte()

uint8_t Storage::read_byte ( uint16_t  loc)
static

Definition at line 136 of file Storage.cpp.

Referenced by read_block().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_block()

void Storage::write_block ( uint16_t  dst,
const void *  src,
size_t  n 
)
virtual

Implements AP_HAL::Storage.

Definition at line 221 of file Storage.cpp.

Here is the call graph for this function:

◆ write_byte()

void Storage::write_byte ( uint16_t  loc,
uint8_t  value 
)
static

Definition at line 191 of file Storage.cpp.

Here is the call graph for this function:

◆ write_thread()

void Storage::write_thread ( )
staticprivate

Definition at line 294 of file Storage.cpp.

Referenced by init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write_word()

void Storage::write_word ( uint16_t  loc,
uint16_t  value 
)
staticprivate

Definition at line 268 of file Storage.cpp.

Referenced by _write_byte(), do_on_disarm(), and write_block().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _task

void * Storage::_task
staticprivate

Definition at line 68 of file Storage.h.

Referenced by init(), and write_word().

◆ IN_CCM

uint8_t eeprom_buffer [BOARD_STORAGE_SIZE] F4Light::Storage::IN_CCM
staticprivate

Definition at line 73 of file Storage.h.

◆ queue

Item F4Light::Storage::queue[EEPROM_QUEUE_LEN]
staticprivate

Definition at line 67 of file Storage.h.

Referenced by write_thread(), and write_word().

◆ rd_ptr

volatile uint16_t Storage::rd_ptr = 0
staticprivate

Definition at line 65 of file Storage.h.

Referenced by write_thread(), and write_word().

◆ wr_ptr

volatile uint16_t Storage::wr_ptr = 0
staticprivate

Definition at line 66 of file Storage.h.

Referenced by write_thread(), and write_word().

◆ write_deferred

bool F4Light::Storage::write_deferred
staticprivate

Definition at line 59 of file Storage.h.

Referenced by late_init(), write_block(), and write_byte().


The documentation for this class was generated from the following files: