STM32G0 MCAL 0.0.1
Tiny MCAL for educational purpose.
Loading...
Searching...
No Matches
Fls_Types.h File Reference

Flash Driver Types More...

#include "Registers.h"

Go to the source code of this file.

Data Structures

struct  _Fls_ConfigType
 Fls_ConfigType. More...
 
struct  _Fls_HwUnit
 Hardware control unit structure More...
 

Macros

#define FLS_ID_INIT   0x00u
 
#define FLS_ID_ERASE   0x01u
 
#define FLS_ID_WRITE   0x02u
 
#define FLS_ID_CANCEL   0x03u
 
#define FLS_ID_GETSTATUS   0x04u
 
#define FLS_ID_GETJOBRESULT   0x05u
 
#define FLS_ID_READ   0x07u
 
#define FLS_ID_COMPARE   0x08u
 
#define FLS_ID_SETMODE   0x09u
 
#define FLS_ID_GETVERSIONINFO   0x10u
 
#define FLS_ID_BLANKCHECK   0x0au
 
#define FLS_E_PARAM_CONFIG   0x01u
 
#define FLS_E_PARAM_ADDRESS   0x02u
 
#define FLS_E_PARAM_LENGTH   0x03u
 
#define FLS_E_PARAM_DATA   0x04u
 
#define FLS_E_UNINIT   0x05u
 
#define FLS_E_PARAM_POINTER   0x0au
 
#define FLS_E_ALREADY_INITIALIZED   0x0bu
 
#define FLS_E_BUSY   0x06u
 
#define FLS_E_VERIFY_ERASE_FAILED   0x07u
 
#define FLS_E_VERIFY_WRITE_FAILED   0x08u
 
#define FLS_E_TIMEOUT   0x09u
 
#define FLS_E_ERASE_FAILED   0x01u
 
#define FLS_E_WRITE_FAILED   0x02u
 
#define FLS_E_READ_FAILED   0x03u
 
#define FLS_E_COMPARE_FAILED   0x04u
 
#define FLS_E_UNEXPECTED_FLASH_ID   0x05u
 

Typedefs

typedef uint32 Fls_AddressType
 Fls_AddressType.
 
typedef uint32 Fls_LengthType
 Fls_LengthType.
 
typedef struct _Fls_ConfigType Fls_ConfigType
 Fls_ConfigType.
 
typedef struct _Fls_HwUnit Fls_HwUnit
 Hardware control unit structure
 

Detailed Description

Flash Driver Types

Author
Christopher Bogarin

The header contains the type definitions that are used by the Flash module. The file is implemnted as a means of abstraction from the hardware, this way we can avoid to include Arch headers in the actual driver header, making the low level interfaces available for upper layers.

Typedef Documentation

◆ Fls_AddressType

Fls_AddressType.

Used as address offset from the configured flash base address to access a certain flash memory area.

Requirement
SWS_Fls_00369, SWS_Fls_00216

◆ Fls_ConfigType

Fls_ConfigType.

A pointer to such a structure is provided to the flash driver initialization routine for configuration of the driver and flash memory hardware.

Requirement
SWS_Fls_00368

◆ Fls_HwUnit

typedef struct _Fls_HwUnit Fls_HwUnit

Hardware control unit structure

This structure contains the hardware unit configuration and the state of the hardware unit pointers to controller structures.

◆ Fls_LengthType

Fls_LengthType.

Specifies the number of bytes to read/write/erase/compare.

Requirement
SWS_Fls_00370