Document number
205065
Version
Rev. N
Issue date
2019-02-04
Sirius OBC and TCM User Manual
Page
52
of
174
5.6.2. Data Structures
5.6.2.1. Struct massmem_cid_t
This struct is used as the target for reading the mass memory chip IDs. The byte array
constants
massmem_cid_MT29F32G08AFABA
and
massmem_cid_MT29F64G08AFAAA
are provided as chip id references for the possible chip types.
Type
Name Purpose
Array of 5 uint8_t
edac
Byte array for EDAC chip ID
Array of 5 uint8_t
chip0
Byte array for chip 0 ID
Array of 5 uint8_t
chip1
Byte array for chip 1 ID
Array of 5 uint8_t
chip2
Byte array for chip 2 ID
Array of 5 uint8_t
chip3
Byte array for chip 3 ID
5.6.2.2. Struct massmem_error_injection_t
This struct is used as a specification when manually injecting errors when writing to the the
mass memory.
Type
Name
Purpose
uint8_t
edac_error_injection Bits to be XOR:ed with generated EDAC byte
uint32_t data_error_injection Bits to be XOR:ed with supplied data
5.6.2.3. Struct massmem_ioctl_spare_area_args_t
This struct is used by the RTEMS API as the target when reading from spare area and data
simultaneously.
Type
Name
Purpose
uint32_t page_num What page to read/write
uint32_t
offset
Byte offset into spare area to read or write. Must be 32 word (of 4
bytes) aligned.
uint8_t *
data_buf
Pointer to buffer in which the data is to be stored, or to the data that is
to be written.
uint8_t *
edac_buf
Deprecated; this parameter will not be accessed.
uint32_t
size
Size to read/write in bytes. Must be 32 word (of 4 bytes) aligned.
5.6.2.4. Struct massmem_ioctl_error_injection_args_t
This structure is used by the RTEMS API in order to perform a special write call to inject
errors into the mass memory.