Document number
205065
Version
Rev. N
Issue date
2019-02-04
Sirius OBC and TCM User Manual
Page
60
of
174
Return value
Description
-EINVAL
Indicates one or more of:
•
The page number is out of
range
•
Size is 0
•
Size is larger than page
size
•
Size is not a multiple of 4
•
The data or EDAC buffer is
NULL
The data buffer is not 4-byte
aligned
-EIO
The mass memory write
operation failed, the block
should be marked as a bad
block
5.6.3.8. Get page bytes
Get the available page size in bytes.
•
If the BSP is compiled without BSP_AAC_MASSMEM_ENABLE_32GB defined,
the value will always be equal to the static define MASSMEM_PAGE_BYTES
regardless of the chip type in use.
•
If the BSP is compiled with BSP_AAC_MASSMEM_ENABLE_32GB defined, the
value will differ based on the chip type in use, but will always be less or equal to the
static define MASSMEM_PAGE_BYTES_MAX.
This is provided in order to support the runtime-determined size usage mode, see 5.6.4.5.
5.6.3.9. Get spare area bytes
Get the available spare area size in bytes.
•
If the BSP is compiled without BSP_AAC_MASSMEM_ENABLE_32GB defined,
the value will always be equal to the static define
MASSMEM_SPARE_AREA_BYTES regardless of the chip type in use.
•
If the BSP is compiled with BSP_AAC_MASSMEM_ENABLE_32GB defined, the
value will differ based on the chip type in use, but will always be less or equal to the
static define MASSMEM_SPARE_AREA_BYTES_MAX.
Command
Value type Direction Description
MASSMEM_IO_GET_PAGE_BYTES
uint32_t*
out
Pointer to variable in which the available page
size in bytes is to be stored.