FOSSASAT-1B
Loading...
Searching...
No Matches
EEPROM Address Map
Collaboration diagram for EEPROM Address Map:

Macros

#define EEPROM_DEPLOYMENT_COUNTER_ADDR   0x0000
 
#define EEPROM_POWER_CONFIG_ADDR   0x0001
 
#define EEPROM_FIRST_RUN_ADDR   0x0002
 
#define EEPROM_RESTART_COUNTER_ADDR   0x0003
 
#define EEPROM_FSK_RECEIVE_LEN_ADDR   0x0005
 
#define EEPROM_LORA_RECEIVE_LEN_ADDR   0x0006
 
#define EEPROM_UPTIME_COUNTER_ADDR   0x0007
 
#define EEPROM_LOOP_COUNTER   0x000B
 Loop counter - only used to determine when to transmit full Morse beacon, so it doesn't matter when it overflows.
 
#define EEPROM_LORA_VALID_COUNTER_ADDR   0x000C
 
#define EEPROM_LORA_INVALID_COUNTER_ADDR   0x000E
 
#define EEPROM_FSK_VALID_COUNTER_ADDR   0x0010
 
#define EEPROM_FSK_INVALID_COUNTER_ADDR   0x0012
 
#define EEPROM_CALLSIGN_LEN_ADDR   0x0014
 
#define EEPROM_CALLSIGN_ADDR   0x0015
 
#define EEPROM_CHARGING_VOLTAGE_STATS_ADDR   0x0040
 
#define EEPROM_CHARGING_CURRENT_STATS_ADDR   0x0043
 
#define EEPROM_BATTERY_VOLTAGE_STATS_ADDR   0x0049
 
#define EEPROM_CELL_A_VOLTAGE_STATS_ADDR   0x004C
 
#define EEPROM_CELL_B_VOLTAGE_STATS_ADDR   0x004F
 
#define EEPROM_CELL_C_VOLTAGE_STATS_ADDR   0x0052
 
#define EEPROM_BATTERY_TEMP_STATS_ADDR   0x0055
 
#define EEPROM_BOARD_TEMP_STATS_ADDR   0x005B
 
#define EEPROM_MCU_TEMP_STATS_ADDR   0x0061
 

Detailed Description

Description Start Address End Address Length (bytes)
Deployment counter (uint8_t). 0x0000 0x0000 1
Power configuration (powerConfig_t). 0x0001 0x0001 1
First run (uint8_t). 0x0002 0x0002 1
Restart counter (uint16_t). 0x0003 0x0004 2
FSK receive window length (uint8_t). 0x0005 0x0005 1
LoRa receive window length (uint8_t). 0x0006 0x0006 1
Seconds elapsed since last reset (uint32_t). 0x0007 0x000A 4
Number of main loop iterations (uint8_t). 0x000B 0x000B 1
Number of received valid LoRa frames (uint16_t). 0x000C 0x000D 2
Number of received invalid LoRa frames (uint16_t). 0x000E 0x000F 2
Number of received valid FSK frames (uint16_t). 0x0010 0x0011 2
Number of received invalid FSK frames (uint16_t). 0x0012 0x0013 2
Length of callsign (uint8_t). 0x0014 0x0014 1
Callsign (C-string, max MAX_STRING_LENGTH bytes). 0x00015 0x0035 MAX_STRING_LENGTH
Charging voltage stats (min - avg - max, 3x uint8_t). 0x0040 0x0042 3
Charging current stats (min - avg - max, 3x int16_t). 0x0043 0x0048 6
Battery voltage stats (min - avg - max, 3x uint8_t). 0x0049 0x004B 3
Solar cell A voltage stats (min - avg - max, 3x uint8_t). 0x004C 0x004E 3
Solar cell B voltage stats (min - avg - max, 3x uint8_t). 0x004F 0x0051 3
Solar cell C voltage stats (min - avg - max, 3x uint8_t). 0x0052 0x0054 3
Battery temperature stats (min - avg - max, 3x int16_t). 0x0055 0x005A 6
Board temperature stats (min - avg - max, 3x int16_t). 0x005B 0x0060 6
MCU temperature stats (min - avg - max, 3x int8_t). 0x0061 0x0063 3
Total 72
Test:

(ID CONF_EEPROM_ADDR_MAP_T0) (SEV 1) Check that EEPROM_DEPLOYMENT_COUNTER_ADDR is functional, including restarts.

(ID CONF_EEPROM_ADDR_MAP_T1) (SEV 1) Check that EEPROM_POWER_CONFIG_ADDR is functional, including restarts.

(ID CONF_EEPROM_ADDR_MAP_T2) (SEV 1) Check that EEPROM_FIRST_RUN_ADDR is functional, including restarts.

(ID CONF_EEPROM_ADDR_MAP_T3) (SEV 1) Check that EEPROM_RESTART_COUNTER_ADDR is functional, including restarts.

(ID CONF_EEPROM_ADDR_MAP_T4) (SEV 1) Check that EEPROM_CALLSIGN_LEN_ADDR is functional, including restarts.

(ID CONF_EEPROM_ADDR_MAP_T5) (SEV 1) Check that EEPROM_CALLSIGN_ADDR is functional, including restarts.

Macro Definition Documentation

◆ EEPROM_BATTERY_TEMP_STATS_ADDR

#define EEPROM_BATTERY_TEMP_STATS_ADDR   0x0055
Start Address End Address
0x0055 0x005A

Definition at line 332 of file configuration.h.

◆ EEPROM_BATTERY_VOLTAGE_STATS_ADDR

#define EEPROM_BATTERY_VOLTAGE_STATS_ADDR   0x0049
Start Address End Address
0x0049 0x004B

Definition at line 300 of file configuration.h.

◆ EEPROM_BOARD_TEMP_STATS_ADDR

#define EEPROM_BOARD_TEMP_STATS_ADDR   0x005B
Start Address End Address
0x005B 0x0060

Definition at line 340 of file configuration.h.

◆ EEPROM_CALLSIGN_ADDR

#define EEPROM_CALLSIGN_ADDR   0x0015
Start Address End Address
0x0015 0x0035

Definition at line 276 of file configuration.h.

◆ EEPROM_CALLSIGN_LEN_ADDR

#define EEPROM_CALLSIGN_LEN_ADDR   0x0014
Start Address End Address
0x00014 0x00014

Definition at line 268 of file configuration.h.

◆ EEPROM_CELL_A_VOLTAGE_STATS_ADDR

#define EEPROM_CELL_A_VOLTAGE_STATS_ADDR   0x004C
Start Address End Address
0x004C 0x004E

Definition at line 308 of file configuration.h.

◆ EEPROM_CELL_B_VOLTAGE_STATS_ADDR

#define EEPROM_CELL_B_VOLTAGE_STATS_ADDR   0x004F
Start Address End Address
0x004F 0x0051

Definition at line 316 of file configuration.h.

◆ EEPROM_CELL_C_VOLTAGE_STATS_ADDR

#define EEPROM_CELL_C_VOLTAGE_STATS_ADDR   0x0052
Start Address End Address
0x0052 0x0054

Definition at line 324 of file configuration.h.

◆ EEPROM_CHARGING_CURRENT_STATS_ADDR

#define EEPROM_CHARGING_CURRENT_STATS_ADDR   0x0043
Start Address End Address
0x0043 0x0048

Definition at line 292 of file configuration.h.

◆ EEPROM_CHARGING_VOLTAGE_STATS_ADDR

#define EEPROM_CHARGING_VOLTAGE_STATS_ADDR   0x0040
Start Address End Address
0x0040 0x0042

Definition at line 284 of file configuration.h.

◆ EEPROM_DEPLOYMENT_COUNTER_ADDR

#define EEPROM_DEPLOYMENT_COUNTER_ADDR   0x0000
Start Address End Address
0x0000 0x0000

Definition at line 171 of file configuration.h.

◆ EEPROM_FIRST_RUN_ADDR

#define EEPROM_FIRST_RUN_ADDR   0x0002
Start Address End Address
0x0002 0x0002

Definition at line 187 of file configuration.h.

◆ EEPROM_FSK_INVALID_COUNTER_ADDR

#define EEPROM_FSK_INVALID_COUNTER_ADDR   0x0012
Start Address End Address
0x0012 0x0013

Definition at line 260 of file configuration.h.

◆ EEPROM_FSK_RECEIVE_LEN_ADDR

#define EEPROM_FSK_RECEIVE_LEN_ADDR   0x0005
Start Address End Address
0x0005 0x0005

Definition at line 203 of file configuration.h.

◆ EEPROM_FSK_VALID_COUNTER_ADDR

#define EEPROM_FSK_VALID_COUNTER_ADDR   0x0010
Start Address End Address
0x0010 0x0011

Definition at line 252 of file configuration.h.

◆ EEPROM_LOOP_COUNTER

#define EEPROM_LOOP_COUNTER   0x000B

Loop counter - only used to determine when to transmit full Morse beacon, so it doesn't matter when it overflows.

Start Address End Address
0x000B 0x000B

Definition at line 227 of file configuration.h.

◆ EEPROM_LORA_INVALID_COUNTER_ADDR

#define EEPROM_LORA_INVALID_COUNTER_ADDR   0x000E
Start Address End Address
0x000E 0x000F

Definition at line 244 of file configuration.h.

◆ EEPROM_LORA_RECEIVE_LEN_ADDR

#define EEPROM_LORA_RECEIVE_LEN_ADDR   0x0006
Start Address End Address
0x0006 0x0006

Definition at line 211 of file configuration.h.

◆ EEPROM_LORA_VALID_COUNTER_ADDR

#define EEPROM_LORA_VALID_COUNTER_ADDR   0x000C
Start Address End Address
0x000C 0x000D

Definition at line 236 of file configuration.h.

◆ EEPROM_MCU_TEMP_STATS_ADDR

#define EEPROM_MCU_TEMP_STATS_ADDR   0x0061
Start Address End Address
0x0061 0x0063

Definition at line 348 of file configuration.h.

◆ EEPROM_POWER_CONFIG_ADDR

#define EEPROM_POWER_CONFIG_ADDR   0x0001
Start Address End Address
0x0001 0x0001

Definition at line 179 of file configuration.h.

◆ EEPROM_RESTART_COUNTER_ADDR

#define EEPROM_RESTART_COUNTER_ADDR   0x0003
Start Address End Address
0x0003 0x0004

Definition at line 195 of file configuration.h.

◆ EEPROM_UPTIME_COUNTER_ADDR

#define EEPROM_UPTIME_COUNTER_ADDR   0x0007
Start Address End Address
0x0007 0x000A

Definition at line 219 of file configuration.h.