116 #include "Std_Types.h" 120 #include "MemIf_Types.h" 121 #include <SchM_Fls.h> 140 #define FLS_SW_MAJOR_VERSION (1U) 142 #define FLS_SW_MINOR_VERSION (3U) 144 #define FLS_SW_PATCH_VERSION (2U) 154 #define FLS_AR_RELEASE_MAJOR_VERSION (4U) 156 #define FLS_AR_RELEASE_MINOR_VERSION (3U) 158 #define FLS_AR_RELEASE_REVISION_VERSION (1U) 166 #define FLS_VENDOR_ID ((uint16) 44U) 168 #define FLS_MODULE_ID ((uint16) 92U) 170 #define FLS_INSTANCE_ID ((uint8) 0U) 191 #ifndef FLS_E_PARAM_CONFIG 193 #define FLS_E_PARAM_CONFIG ((uint8) 0x01U) 195 #ifndef FLS_E_PARAM_ADDRESS 197 #define FLS_E_PARAM_ADDRESS ((uint8) 0x02U) 199 #ifndef FLS_E_PARAM_LENGTH 201 #define FLS_E_PARAM_LENGTH ((uint8) 0x03U) 203 #ifndef FLS_E_PARAM_DATA 205 #define FLS_E_PARAM_DATA ((uint8) 0x04U) 209 #define FLS_E_UNINIT ((uint8) 0x05U) 213 #define FLS_E_BUSY ((uint8) 0x06U) 215 #ifndef FLS_E_PARAM_POINTER 217 #define FLS_E_PARAM_POINTER ((uint8) 0x0AU) 219 #ifndef FLS_E_VERIFY_ERASE_FAILED 221 #define FLS_E_VERIFY_ERASE_FAILED ((uint8) 0x07U) 223 #ifndef FLS_E_VERIFY_WRITE_FAILED 225 #define FLS_E_VERIFY_WRITE_FAILED ((uint8) 0x08U) 227 #ifndef FLS_E_TIMEOUT 229 #define FLS_E_TIMEOUT ((uint8) 0x09U) 234 #ifndef FLS_E_ERASE_FAILED 236 #define FLS_E_ERASE_FAILED ((uint8) 0x01U) 238 #ifndef FLS_E_WRITE_FAILED 240 #define FLS_E_WRITE_FAILED ((uint8) 0x02U) 242 #ifndef FLS_E_READ_FAILED 244 #define FLS_E_READ_FAILED ((uint8) 0x03U) 246 #ifndef FLS_E_COMPARE_FAILED 248 #define FLS_E_COMPARE_FAILED ((uint8) 0x04U) 250 #ifndef FLS_E_UNEXPECTED_FLASH_ID 252 #define FLS_E_UNEXPECTED_FLASH_ID ((uint8) 0x05U) 264 #define FLS_SID_INIT ((uint8) 0x00U) 266 #define FLS_SID_ERASE ((uint8) 0x01U) 268 #define FLS_SID_WRITE ((uint8) 0x02U) 270 #define FLS_SID_CANCEL ((uint8) 0x03U) 272 #define FLS_SID_GET_STATUS ((uint8) 0x04U) 274 #define FLS_SID_GET_JOB_RESULT ((uint8) 0x05U) 276 #define FLS_SID_READ ((uint8) 0x07U) 278 #define FLS_SID_COMPARE ((uint8) 0x08U) 280 #define FLS_SID_SET_MODE ((uint8) 0x09U) 282 #define FLS_SID_GET_VERSION_INFO ((uint8) 0x10U) 284 #define FLS_SID_BLANK_CHECK ((uint8) 0x0AU) 286 #define FLS_SID_MAIN_FUNCTION ((uint8) 0x06U) 327 typedef struct Fls_ConfigType_s
369 FUNC(
void, FLS_CODE)
Fls_SwitchMode(
boolean dacEnable,
boolean xipEnable);
470 uint8 *TargetAddressPtr,
501 #if (STD_ON == FLS_COMPARE_API) 534 #if (STD_ON == FLS_BLANK_CHECK_API) 555 #if (STD_ON == FLS_GET_STATUS_API) 579 #if (STD_ON == FLS_VERSION_INFO_API) 600 #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:177
Std_ReturnType Fls_Erase(Fls_AddressType TargetAddress, Fls_LengthType Length)
Erases flash sector(s).
uint64 ospiClkSpeed
Definition: Fls.h:349
boolean dtrEnable
Definition: Fls.h:351
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:338
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:332
FLS Module Flashable Sectors and pages.
Definition: Fls.h:306
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:308
Fls_JobEndNotifyType Fls_JobEndNotification
Definition: Fls.h:329
Std_ReturnType Fls_Read(Fls_AddressType SourceAddress, uint8 *TargetAddressPtr, Fls_LengthType Length)
Reads from flash memory..
uint32 Fls_AddressType
Type of address type.
Definition: Fls.h:176
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:347
Fls_LengthType sectorPageSize
Definition: Fls.h:310
uint32 maxReadNormalMode
Definition: Fls.h:335
This file contains generated pre compile configuration file for FLS MCAL driver.
boolean phyEnable
Definition: Fls.h:353
boolean dacEnable
Definition: Fls.h:345
Fls_AddressType sectorStartaddress
Definition: Fls.h:314
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:312
FLS Module Configuration Structure.
Definition: Fls.h:327