GM6000 Digital Heater Controller Branch: main
SDX-1330
Macros
StorageMap_.h File Reference

Detailed Description

This file contains the magic values for how data is laid out in the off-board EEPROM.

#include "colony_config.h"
#include "Cpl/Persistent/CrcChunk.h"
#include "Cpl/Persistent/MirroredChunk.h"
Include dependency graph for StorageMap_.h:

Go to the source code of this file.

Macros

#define AJAX_MAIN_APPLICATION_RECORDS_START_OFFSET   0
 Starting offset for Application Records.
 
#define AJAX_MAIN_MIRRORED_CHUNK_META_LEN   Cpl::Persistent::MirroredChunk::FRAME_OVERHEAD
 Metadata length for a Mirrored Chunk.
 
#define AJAX_MAIN_CRC_CHUNK_META_LEN   Cpl::Persistent::CrcChunk::FRAME_OVERHEAD
 Metadata length for a CRC Chunk.
 
#define OPTION_AJAX_MAIN_MAX_LOG_ENTRIES   256
 Maximum number of log entries.
 
#define AJAX_MAIN_USER_REGION_DATA_LEN   64
 USER Record/Region.
 
#define AJAX_MAIN_USER_REGION_RESERVED   64
 USER Record/Region

 
#define AJAX_MAIN_USER_REGION_LENGTH   ( AJAX_MAIN_USER_REGION_DATA_LEN + AJAX_MAIN_USER_REGION_RESERVED + AJAX_MAIN_MIRRORED_CHUNK_META_LEN )
 USER Record/Region.
 
#define AJAX_MAIN_USER_REGION_A_START_ADDRESS   ( AJAX_MAIN_APPLICATION_RECORDS_START_OFFSET )
 USER Record/Region.
 
#define AJAX_MAIN_USER_REGION_B_START_ADDRESS   ( AJAX_MAIN_USER_REGION_A_START_ADDRESS + AJAX_MAIN_USER_REGION_LENGTH )
 USER Record/Region

 
#define AJAX_MAIN_USER_REGION_NEXT_OFFSET   ( AJAX_MAIN_USER_REGION_B_START_ADDRESS + AJAX_MAIN_USER_REGION_LENGTH )
 USER Record/Region.
 
#define AJAX_MAIN_PERSONALITY_REGION_DATA_LEN   193
 PERSONALITY Record/Region.
 
#define AJAX_MAIN_PERSONALITY_REGION_RESERVED   64
 PERSONALITY Record/Region

 
#define AJAX_MAIN_PERSONALITY_REGION_LENGTH   ( AJAX_MAIN_PERSONALITY_REGION_RESERVED + AJAX_MAIN_PERSONALITY_REGION_DATA_LEN + AJAX_MAIN_MIRRORED_CHUNK_META_LEN )
 PERSONALITY Record/Region.
 
#define AJAX_MAIN_PERSONALITY_REGION_A_START_ADDRESS   ( AJAX_MAIN_USER_REGION_NEXT_OFFSET )
 PERSONALITY Record/Region.
 
#define AJAX_MAIN_PERSONALITY_REGION_B_START_ADDRESS   ( AJAX_MAIN_PERSONALITY_REGION_A_START_ADDRESS + AJAX_MAIN_PERSONALITY_REGION_LENGTH )
 PERSONALITY Record/Region.
 
#define AJAX_MAIN_PERSONALITY_REGION_NEXT_OFFSET   ( AJAX_MAIN_PERSONALITY_REGION_B_START_ADDRESS + AJAX_MAIN_PERSONALITY_REGION_LENGTH )
 PERSONALITY Record/Region.
 
#define AJAX_MAIN_METRICS_REGION_DATA_LEN   64
 METRICS Record/Region.
 
#define AJAX_MAIN_METRICS_REGION_RESERVED   64
 METRICS Record/Region

 
#define AJAX_MAIN_METRICS_REGION_LENGTH   ( AJAX_MAIN_METRICS_REGION_RESERVED + AJAX_MAIN_METRICS_REGION_DATA_LEN + AJAX_MAIN_MIRRORED_CHUNK_META_LEN )
 METRICS Record/Region.
 
#define AJAX_MAIN_METRICS_REGION_A_START_ADDRESS   ( AJAX_MAIN_PERSONALITY_REGION_NEXT_OFFSET )
 METRICS Record/Region.
 
#define AJAX_MAIN_METRICS_REGION_B_START_ADDRESS   ( AJAX_MAIN_METRICS_REGION_A_START_ADDRESS + AJAX_MAIN_METRICS_REGION_LENGTH )
 METRICS Record/Region.
 
#define AJAX_MAIN_METRICS_REGION_NEXT_OFFSET   ( AJAX_MAIN_METRICS_REGION_B_START_ADDRESS + AJAX_MAIN_METRICS_REGION_LENGTH )
 METRICS Record/Region.
 
#define AJAX_MAIN_LOGINDEX_REGION_DATA_LEN   12
 LOGGING - Index Record/Region.
 
#define AJAX_MAIN_LOGINDEX_REGION_RESERVED   32
 METRICS Record/Region

 
#define AJAX_MAIN_LOGINDEX_REGION_LENGTH   ( AJAX_MAIN_LOGINDEX_REGION_RESERVED + AJAX_MAIN_LOGINDEX_REGION_DATA_LEN + AJAX_MAIN_MIRRORED_CHUNK_META_LEN )
 METRICS Record/Region.
 
#define AJAX_MAIN_LOGINDEX_REGION_A_START_ADDRESS   ( AJAX_MAIN_METRICS_REGION_NEXT_OFFSET )
 METRICS Record/Region.
 
#define AJAX_MAIN_LOGINDEX_REGION_B_START_ADDRESS   ( AJAX_MAIN_LOGINDEX_REGION_A_START_ADDRESS + AJAX_MAIN_LOGINDEX_REGION_LENGTH )
 METRICS Record/Region

 
#define AJAX_MAIN_LOGINDEX_REGION_NEXT_OFFSET   ( AJAX_MAIN_LOGINDEX_REGION_B_START_ADDRESS + AJAX_MAIN_LOGINDEX_REGION_LENGTH )
 METRICS Record/Region.
 
#define AJAX_MAIN_LOGENTRIES_REGION_DATA_LEN   ( 159 * OPTION_AJAX_MAIN_MAX_LOG_ENTRIES )
 LOGGING - Entries Record/Region.
 
#define AJAX_MAIN_LOGENTRIES_REGION_RESERVED   0
 METRICS Record/Region.
 
#define AJAX_MAIN_LOGENTRIES_REGION_LENGTH   ( AJAX_MAIN_LOGENTRIES_REGION_RESERVED + AJAX_MAIN_LOGENTRIES_REGION_DATA_LEN )
 METRICS Record/Region.
 
#define AJAX_MAIN_LOGENTRIES_REGION_START_ADDRESS   ( AJAX_MAIN_LOGINDEX_REGION_NEXT_OFFSET )
 METRICS Record/Region.
 
#define AJAX_MAIN_LOGENTRIES_REGION_NEXT_OFFSET   ( AJAX_MAIN_LOGENTRIES_REGION_START_ADDRESS + AJAX_MAIN_LOGENTRIES_REGION_LENGTH )
 METRICS Record/Region.
 

Macro Definition Documentation

◆ AJAX_MAIN_APPLICATION_RECORDS_START_OFFSET

#define AJAX_MAIN_APPLICATION_RECORDS_START_OFFSET   0

Starting offset for Application Records.

◆ AJAX_MAIN_CRC_CHUNK_META_LEN

#define AJAX_MAIN_CRC_CHUNK_META_LEN   Cpl::Persistent::CrcChunk::FRAME_OVERHEAD

Metadata length for a CRC Chunk.

◆ AJAX_MAIN_LOGENTRIES_REGION_DATA_LEN

#define AJAX_MAIN_LOGENTRIES_REGION_DATA_LEN   ( 159 * OPTION_AJAX_MAIN_MAX_LOG_ENTRIES )

LOGGING - Entries Record/Region.

◆ AJAX_MAIN_LOGENTRIES_REGION_LENGTH

#define AJAX_MAIN_LOGENTRIES_REGION_LENGTH   ( AJAX_MAIN_LOGENTRIES_REGION_RESERVED + AJAX_MAIN_LOGENTRIES_REGION_DATA_LEN )

METRICS Record/Region.

◆ AJAX_MAIN_LOGENTRIES_REGION_NEXT_OFFSET

#define AJAX_MAIN_LOGENTRIES_REGION_NEXT_OFFSET   ( AJAX_MAIN_LOGENTRIES_REGION_START_ADDRESS + AJAX_MAIN_LOGENTRIES_REGION_LENGTH )

METRICS Record/Region.

◆ AJAX_MAIN_LOGENTRIES_REGION_RESERVED

#define AJAX_MAIN_LOGENTRIES_REGION_RESERVED   0

METRICS Record/Region.

◆ AJAX_MAIN_LOGENTRIES_REGION_START_ADDRESS

#define AJAX_MAIN_LOGENTRIES_REGION_START_ADDRESS   ( AJAX_MAIN_LOGINDEX_REGION_NEXT_OFFSET )

METRICS Record/Region.

◆ AJAX_MAIN_LOGINDEX_REGION_A_START_ADDRESS

#define AJAX_MAIN_LOGINDEX_REGION_A_START_ADDRESS   ( AJAX_MAIN_METRICS_REGION_NEXT_OFFSET )

METRICS Record/Region.

◆ AJAX_MAIN_LOGINDEX_REGION_B_START_ADDRESS

#define AJAX_MAIN_LOGINDEX_REGION_B_START_ADDRESS   ( AJAX_MAIN_LOGINDEX_REGION_A_START_ADDRESS + AJAX_MAIN_LOGINDEX_REGION_LENGTH )

METRICS Record/Region

◆ AJAX_MAIN_LOGINDEX_REGION_DATA_LEN

#define AJAX_MAIN_LOGINDEX_REGION_DATA_LEN   12

LOGGING - Index Record/Region.

◆ AJAX_MAIN_LOGINDEX_REGION_LENGTH

METRICS Record/Region.

◆ AJAX_MAIN_LOGINDEX_REGION_NEXT_OFFSET

#define AJAX_MAIN_LOGINDEX_REGION_NEXT_OFFSET   ( AJAX_MAIN_LOGINDEX_REGION_B_START_ADDRESS + AJAX_MAIN_LOGINDEX_REGION_LENGTH )

METRICS Record/Region.

◆ AJAX_MAIN_LOGINDEX_REGION_RESERVED

#define AJAX_MAIN_LOGINDEX_REGION_RESERVED   32

METRICS Record/Region

◆ AJAX_MAIN_METRICS_REGION_A_START_ADDRESS

#define AJAX_MAIN_METRICS_REGION_A_START_ADDRESS   ( AJAX_MAIN_PERSONALITY_REGION_NEXT_OFFSET )

METRICS Record/Region.

◆ AJAX_MAIN_METRICS_REGION_B_START_ADDRESS

#define AJAX_MAIN_METRICS_REGION_B_START_ADDRESS   ( AJAX_MAIN_METRICS_REGION_A_START_ADDRESS + AJAX_MAIN_METRICS_REGION_LENGTH )

METRICS Record/Region.

◆ AJAX_MAIN_METRICS_REGION_DATA_LEN

#define AJAX_MAIN_METRICS_REGION_DATA_LEN   64

METRICS Record/Region.

◆ AJAX_MAIN_METRICS_REGION_LENGTH

METRICS Record/Region.

◆ AJAX_MAIN_METRICS_REGION_NEXT_OFFSET

#define AJAX_MAIN_METRICS_REGION_NEXT_OFFSET   ( AJAX_MAIN_METRICS_REGION_B_START_ADDRESS + AJAX_MAIN_METRICS_REGION_LENGTH )

METRICS Record/Region.

◆ AJAX_MAIN_METRICS_REGION_RESERVED

#define AJAX_MAIN_METRICS_REGION_RESERVED   64

METRICS Record/Region

◆ AJAX_MAIN_MIRRORED_CHUNK_META_LEN

#define AJAX_MAIN_MIRRORED_CHUNK_META_LEN   Cpl::Persistent::MirroredChunk::FRAME_OVERHEAD

Metadata length for a Mirrored Chunk.

◆ AJAX_MAIN_PERSONALITY_REGION_A_START_ADDRESS

#define AJAX_MAIN_PERSONALITY_REGION_A_START_ADDRESS   ( AJAX_MAIN_USER_REGION_NEXT_OFFSET )

PERSONALITY Record/Region.

◆ AJAX_MAIN_PERSONALITY_REGION_B_START_ADDRESS

#define AJAX_MAIN_PERSONALITY_REGION_B_START_ADDRESS   ( AJAX_MAIN_PERSONALITY_REGION_A_START_ADDRESS + AJAX_MAIN_PERSONALITY_REGION_LENGTH )

PERSONALITY Record/Region.

◆ AJAX_MAIN_PERSONALITY_REGION_DATA_LEN

#define AJAX_MAIN_PERSONALITY_REGION_DATA_LEN   193

PERSONALITY Record/Region.

◆ AJAX_MAIN_PERSONALITY_REGION_LENGTH

PERSONALITY Record/Region.

◆ AJAX_MAIN_PERSONALITY_REGION_NEXT_OFFSET

#define AJAX_MAIN_PERSONALITY_REGION_NEXT_OFFSET   ( AJAX_MAIN_PERSONALITY_REGION_B_START_ADDRESS + AJAX_MAIN_PERSONALITY_REGION_LENGTH )

PERSONALITY Record/Region.

◆ AJAX_MAIN_PERSONALITY_REGION_RESERVED

#define AJAX_MAIN_PERSONALITY_REGION_RESERVED   64

PERSONALITY Record/Region

◆ AJAX_MAIN_USER_REGION_A_START_ADDRESS

#define AJAX_MAIN_USER_REGION_A_START_ADDRESS   ( AJAX_MAIN_APPLICATION_RECORDS_START_OFFSET )

USER Record/Region.

◆ AJAX_MAIN_USER_REGION_B_START_ADDRESS

#define AJAX_MAIN_USER_REGION_B_START_ADDRESS   ( AJAX_MAIN_USER_REGION_A_START_ADDRESS + AJAX_MAIN_USER_REGION_LENGTH )

USER Record/Region

◆ AJAX_MAIN_USER_REGION_DATA_LEN

#define AJAX_MAIN_USER_REGION_DATA_LEN   64

USER Record/Region.

◆ AJAX_MAIN_USER_REGION_LENGTH

USER Record/Region.

◆ AJAX_MAIN_USER_REGION_NEXT_OFFSET

#define AJAX_MAIN_USER_REGION_NEXT_OFFSET   ( AJAX_MAIN_USER_REGION_B_START_ADDRESS + AJAX_MAIN_USER_REGION_LENGTH )

USER Record/Region.

◆ AJAX_MAIN_USER_REGION_RESERVED

#define AJAX_MAIN_USER_REGION_RESERVED   64

USER Record/Region

◆ OPTION_AJAX_MAIN_MAX_LOG_ENTRIES

#define OPTION_AJAX_MAIN_MAX_LOG_ENTRIES   256

Maximum number of log entries.