SEcube open-source SDK
|
The SEFILE_SECTOR struct This data struct is the actual sector organization. The total size should ALWAYS be equal to SEFILE_SECTOR_SIZE. The first sector is used to hold ONLY the header. Thanks to the union data type, the developer can simply declare a sector and then choose if it is the header sector or not. More...
#include <SEfile.h>
Public Member Functions | |
SEFILE_SECTOR () | |
Public Attributes | |
union { | |
SEFILE_HEADER header | |
uint8_t data [SEFILE_LOGIC_DATA] | |
}; | |
uint16_t | len |
uint8_t | signature [32] |
The SEFILE_SECTOR struct This data struct is the actual sector organization. The total size should ALWAYS be equal to SEFILE_SECTOR_SIZE. The first sector is used to hold ONLY the header. Thanks to the union data type, the developer can simply declare a sector and then choose if it is the header sector or not.
SEFILE_SECTOR::SEFILE_SECTOR | ( | ) |
Constructor used to initialize all the fields of the struct to zero.
uint8_t SEFILE_SECTOR::data[SEFILE_LOGIC_DATA] |
In here it will be written the actual data. Since it is inside a union data type, the filename will be written from 32nd byte.
SEFILE_HEADER SEFILE_SECTOR::header |
See SEFILE_HEADER .
uint16_t SEFILE_SECTOR::len |
How many bytes are actually stored in this sector.
uint8_t SEFILE_SECTOR::signature[32] |
Authenticated digest generated by the device