STM32G0 MCAL 0.0.1
Tiny MCAL for educational purpose.
Loading...
Searching...
No Matches
Fls.h
Go to the documentation of this file.
1
14#ifndef FLASH_H__
15#define FLASH_H__
16
17#include "Fls_Cfg.h"
18#include "MemIf.h"
19
20void Fls_Init( const Fls_ConfigType *ConfigPtr );
22Std_ReturnType Fls_Write( Fls_AddressType TargetAddress, const uint8 *SourceAddressPtr, Fls_LengthType Length );
23#if FLS_CANCEL_API == STD_ON /* cppcheck-suppress misra-c2012-20.9 ; it is necesary to use a define for this function */
24void Fls_Cancel( void );
25#endif
26#if FLS_GET_STATUS_API == STD_ON /* cppcheck-suppress misra-c2012-20.9 ; it is necesary to use a define for this function */
28#endif
29#if FLS_GET_JOB_RESULT_API == STD_ON /* cppcheck-suppress misra-c2012-20.9 ; it is necesary to use a define for this function */
31#endif
32Std_ReturnType Fls_Read( Fls_AddressType SourceAddress, uint8 *TargetAddressPtr, Fls_LengthType Length );
33#if FLS_COMPARE_API == STD_ON /* cppcheck-suppress misra-c2012-20.9 ; it is necesary to use a define for this function */
34Std_ReturnType Fls_Compare( Fls_AddressType SourceAddress, const uint8 *TargetAddressPtr, Fls_LengthType Length );
35#endif
36#if FLS_SET_MODE_API == STD_ON /* cppcheck-suppress misra-c2012-20.9 ; it is necesary to use a define for this function */
37void Fls_SetMode( MemIf_ModeType Mode );
38#endif
39#if FLS_GET_VERSION_INFO_API == STD_ON /* cppcheck-suppress misra-c2012-20.9 ; it is necesary to use a define for this function */
40void Fls_GetVersionInfo( Std_VersionInfoType *VersioninfoPtr );
41#endif
42#if FLS_BLANK_CHECK_API == STD_ON /* cppcheck-suppress misra-c2012-20.9 ; it is necesary to use a define for this function */
44#endif
45
46#endif
Std_ReturnType Fls_BlankCheck(Fls_AddressType TargetAddress, Fls_LengthType Length)
Fls_BlankCheck
Definition Fls.c:463
Std_ReturnType Fls_Read(Fls_AddressType SourceAddress, uint8 *TargetAddressPtr, Fls_LengthType Length)
Fls_Read
Definition Fls.c:286
MemIf_StatusType Fls_GetStatus(void)
Fls_GetStatus
Definition Fls.c:222
Std_ReturnType Fls_Erase(Fls_AddressType TargetAddress, Fls_LengthType Length)
Fls_Erase
Definition Fls.c:93
void Fls_Init(const Fls_ConfigType *ConfigPtr)
Fls_Init
Definition Fls.c:52
MemIf_JobResultType Fls_GetJobResult(void)
Fls_GetJobResult
Definition Fls.c:253
void Fls_SetMode(MemIf_ModeType Mode)
Fls_SetMode
Definition Fls.c:401
Std_ReturnType Fls_Write(Fls_AddressType TargetAddress, const uint8 *SourceAddressPtr, Fls_LengthType Length)
Fls_Write
Definition Fls.c:145
void Fls_GetVersionInfo(Std_VersionInfoType *VersioninfoPtr)
Fls_GetVersionInfo
Definition Fls.c:427
Std_ReturnType Fls_Compare(Fls_AddressType SourceAddress, const uint8 *TargetAddressPtr, Fls_LengthType Length)
Fls_Compare
Definition Fls.c:345
void Fls_Cancel(void)
Fls_Cancel
Definition Fls.c:196
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
Memory Abstraction Interface
enum _MemIf_StatusType MemIf_StatusType
Denotes the current status of the underlying abstraction module and device drive.
enum _MemIf_JobResultType MemIf_JobResultType
Denotes the result of the last job.
enum _MemIf_ModeType MemIf_ModeType
Denotes the operation mode of the underlying abstraction modules and device drivers.
unsigned char uint8
Definition Platform_Types.h:94
struct Std_VersionInfoType_Tag Std_VersionInfoType
This structure is used to request the version of a BSW module using the [Module name]_GetVersionInfo(...
uint8 Std_ReturnType
This type can be used as standard API return type which is shared between the RTE and the BSW modules...
Definition Std_Types.h:22