APM:Libraries
Classes | Public Types | Static Public Member Functions | Static Private Attributes | Friends | List of all members
StorageManager Class Reference

#include <StorageManager.h>

Collaboration diagram for StorageManager:
[legend]

Classes

struct  StorageArea
 

Public Types

enum  StorageType {
  StorageParam = 0, StorageFence = 1, StorageRally = 2, StorageMission = 3,
  StorageKeys = 4, StorageBindInfo = 5
}
 

Static Public Member Functions

static void erase (void)
 
static void set_layout_copter (void)
 

Static Private Attributes

static const StorageArea layout_copter [STORAGE_NUM_AREAS]
 
static const StorageArea layout_default [STORAGE_NUM_AREAS]
 
static const StorageArealayout = layout_default
 

Friends

class StorageAccess
 

Detailed Description

Definition at line 42 of file StorageManager.h.

Member Enumeration Documentation

◆ StorageType

Enumerator
StorageParam 
StorageFence 
StorageRally 
StorageMission 
StorageKeys 
StorageBindInfo 

Definition at line 45 of file StorageManager.h.

Member Function Documentation

◆ erase()

void StorageManager::erase ( void  )
static

Definition at line 92 of file StorageManager.cpp.

Here is the call graph for this function:

◆ set_layout_copter()

static void StorageManager::set_layout_copter ( void  )
inlinestatic

Definition at line 58 of file StorageManager.h.

Friends And Related Function Documentation

◆ StorageAccess

friend class StorageAccess
friend

Definition at line 43 of file StorageManager.h.

Member Data Documentation

◆ layout

const StorageManager::StorageArea * StorageManager::layout = layout_default
staticprivate

Definition at line 70 of file StorageManager.h.

Referenced by set_layout_copter().

◆ layout_copter

const StorageManager::StorageArea StorageManager::layout_copter
staticprivate
Initial value:
= {
{ StorageParam, 0, 1536},
{ StorageMission, 1536, 2422},
{ StorageRally, 3958, 90},
{ StorageFence, 4048, 48},
}

Definition at line 68 of file StorageManager.h.

Referenced by set_layout_copter().

◆ layout_default

const StorageManager::StorageArea StorageManager::layout_default
staticprivate
Initial value:
= {
{ StorageParam, 0, 1280},
{ StorageMission, 1280, 2506},
{ StorageRally, 3786, 150},
{ StorageFence, 3936, 160},
}

Definition at line 69 of file StorageManager.h.


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