111 #include "Std_Types.h"   115 #include "MemIf_Types.h"   116 #include <SchM_Fls.h>   136 #define FLS_SW_MAJOR_VERSION            (9U)   138 #define FLS_SW_MINOR_VERSION            (0U)   140 #define FLS_SW_PATCH_VERSION            (0U)   150 #define FLS_AR_RELEASE_MAJOR_VERSION    (4U)   152 #define FLS_AR_RELEASE_MINOR_VERSION    (3U)   154 #define FLS_AR_RELEASE_REVISION_VERSION (1U)   162 #define FLS_VENDOR_ID                   ((uint16) 44U)   164 #define FLS_MODULE_ID                   ((uint16) 92U)   166 #define FLS_INSTANCE_ID                 ((uint8) 0U)   187 #ifndef FLS_E_PARAM_CONFIG   189 #define FLS_E_PARAM_CONFIG                      ((uint8) 0x01U)   191 #ifndef FLS_E_PARAM_ADDRESS   193 #define FLS_E_PARAM_ADDRESS                     ((uint8) 0x02U)   195 #ifndef FLS_E_PARAM_LENGTH   197 #define FLS_E_PARAM_LENGTH                      ((uint8) 0x03U)   199 #ifndef FLS_E_PARAM_DATA   201 #define FLS_E_PARAM_DATA                        ((uint8) 0x04U)   205 #define FLS_E_UNINIT                            ((uint8) 0x05U)   209 #define FLS_E_BUSY                              ((uint8) 0x06U)   211 #ifndef FLS_E_PARAM_POINTER   213 #define FLS_E_PARAM_POINTER                     ((uint8) 0x0AU)   215 #ifndef FLS_E_VERIFY_ERASE_FAILED   217 #define FLS_E_VERIFY_ERASE_FAILED               ((uint8) 0x07U)   219 #ifndef FLS_E_VERIFY_WRITE_FAILED   221 #define FLS_E_VERIFY_WRITE_FAILED               ((uint8) 0x08U)   223 #ifndef FLS_E_TIMEOUT   225 #define FLS_E_TIMEOUT                           ((uint8) 0x09U)   230 #ifndef FLS_E_ERASE_FAILED   232 #define FLS_E_ERASE_FAILED                      ((uint8) 0x01U)   234 #ifndef FLS_E_WRITE_FAILED   236 #define FLS_E_WRITE_FAILED                      ((uint8) 0x02U)   238 #ifndef FLS_E_READ_FAILED   240 #define FLS_E_READ_FAILED                       ((uint8) 0x03U)   242 #ifndef FLS_E_COMPARE_FAILED   244 #define FLS_E_COMPARE_FAILED                    ((uint8) 0x04U)   246 #ifndef FLS_E_UNEXPECTED_FLASH_ID   248 #define FLS_E_UNEXPECTED_FLASH_ID               ((uint8) 0x05U)   260 #define FLS_SID_INIT                            ((uint8) 0x00U)   262 #define FLS_SID_ERASE                           ((uint8) 0x01U)   264 #define FLS_SID_WRITE                           ((uint8) 0x02U)   266 #define FLS_SID_CANCEL                          ((uint8) 0x03U)   268 #define FLS_SID_GET_STATUS                      ((uint8) 0x04U)   270 #define FLS_SID_GET_JOB_RESULT                  ((uint8) 0x05U)   272 #define FLS_SID_READ                            ((uint8) 0x07U)   274 #define FLS_SID_COMPARE                         ((uint8) 0x08U)   276 #define FLS_SID_SET_MODE                        ((uint8) 0x09U)   278 #define FLS_SID_GET_VERSION_INFO                ((uint8) 0x10U)   280 #define FLS_SID_BLANK_CHECK                     ((uint8) 0x0AU)   282 #define FLS_SID_MAIN_FUNCTION                   ((uint8) 0x06U)   333 typedef struct Fls_ConfigType_s
   381 FUNC(
void, FLS_CODE) 
Fls_SwitchMode(
boolean dacEnable, 
boolean xipEnable);
   482                     uint8 *TargetAddressPtr,
   513 #if (STD_ON == FLS_COMPARE_API)   546 #if (STD_ON == FLS_BLANK_CHECK_API)   567 #if (STD_ON == FLS_GET_STATUS_API)   591 #if (STD_ON == FLS_VERSION_INFO_API)   612 #if (STD_ON == FLS_GET_JOB_RESULT_API) 
Std_ReturnType Fls_GetVersionInfo(Std_VersionInfoType *versioninfo)
This service returns the version information of this module.
 
uint32 Fls_LengthType
Definition: Fls.h:175
 
Std_ReturnType Fls_Erase(Fls_AddressType TargetAddress, Fls_LengthType Length)
Erases flash sector(s).
 
uint64 ospiClkSpeed
Definition: Fls.h:355
 
boolean dtrEnable
Definition: Fls.h:357
 
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.
 
uint32 maxWriteNormalMode
Definition: Fls.h:344
 
void Fls_Init(const Fls_ConfigType *ConfigPtr)
Initializes the Flash Driver.
 
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...
 
Fls_JobErrorNotifyType Fls_JobErrorNotification
Definition: Fls.h:338
 
FLS Module Flashable Sectors and pages.
Definition: Fls.h:301
 
This file contains ISR function declaration for FLS MCAL driver.
 
MemIf_StatusType Fls_GetStatus(void)
Returns the driver state.
 
MemIf_JobResultType Fls_GetJobResult(void)
Returns the result of the last job.
 
Fls_LengthType numberOfSectors
Definition: Fls.h:303
 
Fls_JobEndNotifyType Fls_JobEndNotification
Definition: Fls.h:335
 
Std_ReturnType Fls_Read(Fls_AddressType SourceAddress, uint8 *TargetAddressPtr, Fls_LengthType Length)
Reads from flash memory..
 
uint32 blockSize
Definition: Fls.h:365
 
uint32 Fls_AddressType
Type of address type.
Definition: Fls.h:174
 
OSPI_xferLines
Number of lines used for OSPI read/write transaction.
Definition: Fls.h:316
 
uint32 flsBaudRateDiv
Definition: Fls.h:363
 
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.
 
boolean xipEnable
Definition: Fls.h:353
 
Fls_LengthType sectorPageSize
Definition: Fls.h:305
 
void Fls_Cancel(void)
Cancels an ongoing job.
 
uint32 maxReadNormalMode
Definition: Fls.h:341
 
This file contains generated pre compile configuration file for FLS MCAL driver.
 
OSPI_xferLines ospixferlines
Definition: Fls.h:361
 
boolean phyEnable
Definition: Fls.h:359
 
boolean dacEnable
Definition: Fls.h:351
 
Fls_AddressType sectorStartaddress
Definition: Fls.h:309
 
void Fls_SwitchMode(boolean dacEnable, boolean xipEnable)
Switch Mode of the OSPI Driver Parameters (in) : boolean dacEnable - should DAC mode be enaled or dis...
 
Fls_LengthType sectorSize
Definition: Fls.h:307
 
FLS Module Configuration Structure.
Definition: Fls.h:333