SEcube open-source SDK
Public Member Functions | Public Attributes | List of all members
SEFILE_SECTOR Struct Reference

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]
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SEFILE_SECTOR()

SEFILE_SECTOR::SEFILE_SECTOR ( )

Constructor used to initialize all the fields of the struct to zero.

Member Data Documentation

◆ data

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.

◆ header

SEFILE_HEADER SEFILE_SECTOR::header

◆ len

uint16_t SEFILE_SECTOR::len

How many bytes are actually stored in this sector.

◆ signature

uint8_t SEFILE_SECTOR::signature[32]

Authenticated digest generated by the device


The documentation for this struct was generated from the following files: