How nasa/cs works
CS is a cFS application that checks the integrity of onboard memory by calculating CRCs and comparing them with baselines established at startup. Its principal workflow is to initialize checksum definitions and state, perform background checks across system and user-selected regions, and report or recompute baselines in response to commands. The graph preserves the documented coverage areas and the command, compute, table-processing, and utility layers. Evidence is limited to the README, source-index references, and sampled excerpts; unsampled module interactions are not asserted.
Main entry points: cs_dispatch.c Command dispatch · cs_table_processing.c Definition processing · cs_compute.c CRC computation · cs_app.c CS application
Components 19
Application runtime
- CS application
fsw/src/cs_app.c - Command dispatch
fsw/src/cs_dispatch.c - EDS dispatch
fsw/src/cs_eds_dispatch.c - Startup initialization
fsw/src/cs_init.c
Command handling
- Application commands
fsw/src/cs_app_cmds.c - Checksum commands
fsw/src/cs_cmds.c - EEPROM commands
fsw/src/cs_eeprom_cmds.c - Memory commands
fsw/src/cs_memory_cmds.c - Table commands
fsw/src/cs_table_cmds.c
Checksum processing
- CRC computation
fsw/src/cs_compute.c - Background checks
fsw/src/cs_utils.c
Definitions and state
- Definition processing
fsw/src/cs_table_processing.c - Application definitions
fsw/tables/cs_apptbl.c - EEPROM definitions
fsw/tables/cs_eepromtbl.c - Memory definitions
fsw/tables/cs_memorytbl.c - Table definitions
fsw/tables/cs_tablestbl.c - CS configuration
config/default_cs_msgstruct.h
Other components
- Ground command source
- cFS services
Connections 24
- Ground command source → Command dispatch: sends commands
- Command dispatch → Checksum commands: routes commands
- Command dispatch → Application commands: routes commands
- Command dispatch → EEPROM commands: routes commands
- Command dispatch → Memory commands: routes commands
- Command dispatch → Table commands: routes commands
- CS application → Command dispatch: dispatches messages
- CS application → Startup initialization: initializes
- Startup initialization → Definition processing: initializes tables
- Checksum commands → CRC computation: requests recompute
fsw/src/cs_cmds.c - Checksum commands → Background checks: controls checks
fsw/src/cs_cmds.c - CRC computation → Background checks: uses check helpers
fsw/src/cs_compute.c - EEPROM commands → CRC computation: requests recompute
fsw/src/cs_eeprom_cmds.c - EEPROM commands → Background checks: uses check helpers
fsw/src/cs_eeprom_cmds.c - Memory commands → CRC computation: requests recompute
- Table commands → Definition processing: manages definitions
- CS application → cFS services: uses services
- Background checks → CRC computation: checks CRCs
- CRC computation → cFS services: reads system regions
- Definition processing → Application definitions: processes definitions
fsw/src/cs_table_processing.c - Definition processing → EEPROM definitions: processes definitions
fsw/src/cs_table_processing.c - Definition processing → Memory definitions: processes definitions
fsw/src/cs_table_processing.c - Definition processing → Table definitions: processes definitions
fsw/src/cs_table_processing.c - CS configuration → CS application: configures