111#include "Std_Types.h"
116#include "MemIf_Types.h"
137#define FLS_SW_MAJOR_VERSION (11U)
139#define FLS_SW_MINOR_VERSION (0U)
141#define FLS_SW_PATCH_VERSION (0U)
151#define FLS_AR_RELEASE_MAJOR_VERSION (4U)
153#define FLS_AR_RELEASE_MINOR_VERSION (3U)
155#define FLS_AR_RELEASE_REVISION_VERSION (1U)
163#define FLS_VENDOR_ID ((uint16) 44U)
165#define FLS_MODULE_ID ((uint16) 92U)
167#define FLS_INSTANCE_ID ((uint8) 0U)
188#ifndef FLS_E_PARAM_CONFIG
190#define FLS_E_PARAM_CONFIG ((uint8) 0x01U)
192#ifndef FLS_E_PARAM_ADDRESS
194#define FLS_E_PARAM_ADDRESS ((uint8) 0x02U)
196#ifndef FLS_E_PARAM_LENGTH
198#define FLS_E_PARAM_LENGTH ((uint8) 0x03U)
200#ifndef FLS_E_PARAM_DATA
202#define FLS_E_PARAM_DATA ((uint8) 0x04U)
206#define FLS_E_UNINIT ((uint8) 0x05U)
210#define FLS_E_BUSY ((uint8) 0x06U)
212#ifndef FLS_E_PARAM_POINTER
214#define FLS_E_PARAM_POINTER ((uint8) 0x0AU)
216#ifndef FLS_E_VERIFY_ERASE_FAILED
218#define FLS_E_VERIFY_ERASE_FAILED ((uint8) 0x07U)
220#ifndef FLS_E_VERIFY_WRITE_FAILED
222#define FLS_E_VERIFY_WRITE_FAILED ((uint8) 0x08U)
226#define FLS_E_TIMEOUT ((uint8) 0x09U)
231#ifndef FLS_E_ERASE_FAILED
233#define FLS_E_ERASE_FAILED ((uint8) 0x01U)
235#ifndef FLS_E_WRITE_FAILED
237#define FLS_E_WRITE_FAILED ((uint8) 0x02U)
239#ifndef FLS_E_READ_FAILED
241#define FLS_E_READ_FAILED ((uint8) 0x03U)
243#ifndef FLS_E_COMPARE_FAILED
245#define FLS_E_COMPARE_FAILED ((uint8) 0x04U)
247#ifndef FLS_E_UNEXPECTED_FLASH_ID
249#define FLS_E_UNEXPECTED_FLASH_ID ((uint8) 0x05U)
261#define FLS_SID_INIT ((uint8) 0x00U)
263#define FLS_SID_ERASE ((uint8) 0x01U)
265#define FLS_SID_WRITE ((uint8) 0x02U)
267#define FLS_SID_CANCEL ((uint8) 0x03U)
269#define FLS_SID_GET_STATUS ((uint8) 0x04U)
271#define FLS_SID_GET_JOB_RESULT ((uint8) 0x05U)
273#define FLS_SID_READ ((uint8) 0x07U)
275#define FLS_SID_COMPARE ((uint8) 0x08U)
277#define FLS_SID_SET_MODE ((uint8) 0x09U)
279#define FLS_SID_GET_VERSION_INFO ((uint8) 0x10U)
281#define FLS_SID_BLANK_CHECK ((uint8) 0x0AU)
283#define FLS_SID_MAIN_FUNCTION ((uint8) 0x06U)
316typedef struct Fls_ConfigType_s
461 uint8 *TargetAddressPtr,
492#if (STD_ON == FLS_COMPARE_API)
525#if (STD_ON == FLS_BLANK_CHECK_API)
546#if (STD_ON == FLS_GET_STATUS_API)
570#if (STD_ON == FLS_VERSION_INFO_API)
591#if (STD_ON == FLS_GET_JOB_RESULT_API)
625#if ( FLS_CANCEL_API == STD_ON )
This file contains generated pre compile configuration file for FLS MCAL driver.
This file contains ISR function declaration for FLS MCAL driver.
Std_ReturnType Fls_Read(Fls_AddressType SourceAddress, uint8 *TargetAddressPtr, Fls_LengthType Length)
Reads from flash memory..
Std_ReturnType Fls_GetVersionInfo(Std_VersionInfoType *versioninfo)
This service returns the version information of this module.
MemIf_StatusType Fls_GetStatus(void)
Returns the driver state.
Std_ReturnType Fls_BlankCheck(Fls_AddressType Address, Fls_LengthType Length)
The function Fls_BlankCheck shall verify, whether a given memory area has been erased but not (yet) p...
Std_ReturnType Fls_Erase(Fls_AddressType TargetAddress, Fls_LengthType Length)
Erases flash sector(s).
void Fls_Init(const Fls_ConfigType *ConfigPtr)
Initializes the Flash Driver.
MemIf_JobResultType Fls_GetJobResult(void)
Returns the result of the last job.
void Fls_MainFunction(void)
Performs the processing of jobs.
Std_ReturnType Fls_Write(Fls_AddressType TargetAddress, const uint8 *SourceAddressPtr, Fls_LengthType Length)
Writes one or more complete flash pages.
void Fls_SwitchMode(boolean dacEnable, boolean xipEnable)
Switch Mode of the OSPI Driver Parameters (in) : boolean dacEnable - should DAC mode be enaled or dis...
Std_ReturnType Fls_Compare(Fls_AddressType SourceAddress, const uint8 *TargetAddressPtr, Fls_LengthType Length)
Compares the contents of an area of flash memory with that of an application data buffer.
OSPI_xferLines
Number of lines used for OSPI read/write transaction.
Definition Fls.h:300
uint32 Fls_LengthType
Definition Fls.h:176
void Fls_Cancel(void)
Cancels an ongoing job.
uint32 Fls_AddressType
Type of address type.
Definition Fls.h:175
uint32 blockSize
Definition Fls.h:344
boolean dacEnable
Definition Fls.h:330
uint32 flsBaudRateDiv
Definition Fls.h:342
uint32 maxWriteNormalMode
Definition Fls.h:327
OSPI_xferLines ospixferlines
Definition Fls.h:340
uint32 maxReadNormalMode
Definition Fls.h:324
Fls_JobErrorNotifyType Fls_JobErrorNotification
Definition Fls.h:321
boolean xipEnable
Definition Fls.h:332
boolean phyEnable
Definition Fls.h:338
uint64 ospiClkSpeed
Definition Fls.h:334
Fls_JobEndNotifyType Fls_JobEndNotification
Definition Fls.h:318
boolean dtrEnable
Definition Fls.h:336
@ OSPI_XFER_LINES_SINGLE
Definition Fls.h:301
@ OSPI_XFER_LINES_DUAL
Definition Fls.h:303
@ OSPI_XFER_LINES_OCTAL
Definition Fls.h:307
@ OSPI_XFER_LINES_QUAD
Definition Fls.h:305
FLS Module Configuration Structure.
Definition Fls.h:317