11#ifndef FLASH_TYPES_H__
12#define FLASH_TYPES_H__
19#define FLS_ID_INIT 0x00u
20#define FLS_ID_ERASE 0x01u
21#define FLS_ID_WRITE 0x02u
22#define FLS_ID_CANCEL 0x03u
23#define FLS_ID_GETSTATUS 0x04u
24#define FLS_ID_GETJOBRESULT 0x05u
25#define FLS_ID_READ 0x07u
26#define FLS_ID_COMPARE 0x08u
27#define FLS_ID_SETMODE 0x09u
28#define FLS_ID_GETVERSIONINFO 0x10u
29#define FLS_ID_BLANKCHECK 0x0au
36#define FLS_E_PARAM_CONFIG 0x01u
37#define FLS_E_PARAM_ADDRESS 0x02u
38#define FLS_E_PARAM_LENGTH 0x03u
39#define FLS_E_PARAM_DATA 0x04u
40#define FLS_E_UNINIT 0x05u
41#define FLS_E_PARAM_POINTER 0x0au
42#define FLS_E_ALREADY_INITIALIZED 0x0bu
49#define FLS_E_BUSY 0x06u
50#define FLS_E_VERIFY_ERASE_FAILED 0x07u
51#define FLS_E_VERIFY_WRITE_FAILED 0x08u
52#define FLS_E_TIMEOUT 0x09u
59#define FLS_E_ERASE_FAILED 0x01u
60#define FLS_E_WRITE_FAILED 0x02u
61#define FLS_E_READ_FAILED 0x03u
62#define FLS_E_COMPARE_FAILED 0x04u
63#define FLS_E_UNEXPECTED_FLASH_ID 0x05u
struct _Fls_HwUnit Fls_HwUnit
Hardware control unit structure
struct _Fls_ConfigType Fls_ConfigType
Fls_ConfigType.
uint32 Fls_LengthType
Fls_LengthType.
Definition Fls_Types.h:84
uint32 Fls_AddressType
Fls_AddressType.
Definition Fls_Types.h:75
This file contains definitions and configurations for the NVIC.
Fls_ConfigType.
Definition Fls_Types.h:96
Fls_LengthType num_bytes
Definition Fls_Types.h:103
Fls_LengthType MaxReadMode
Definition Fls_Types.h:101
uint16 FlsNumberOfSectors
Definition Fls_Types.h:100
uint32 dummy
Definition Fls_Types.h:104
Fls_AddressType EraseStartAddress
Definition Fls_Types.h:98
Fls_AddressType MemoryBaseAddress
Definition Fls_Types.h:97
Fls_LengthType FlsSectorSize
Definition Fls_Types.h:99
Fls_LengthType MaxWriteMode
Definition Fls_Types.h:102
Hardware control unit structure
Definition Fls_Types.h:114
uint8 HwUnitState
Definition Fls_Types.h:116
const Fls_ConfigType * Config
Definition Fls_Types.h:115