wiki:spec_FlashDriver
Flash Driver


概要

  • API一覧
API ID
[Dec]
ID
[Hex]
Fls_Init 0 0x00
Fls_Erase 1 0x01
Fls_Write 2 0x02
Fls_Cancel 3 0x03
Fls_GetStatus 4 0x04
Fls_GetJobResult 5 0x05
Fls_Read 7 0x07
Fls_Compare 8 0x08
Fls_SetMode 9 0x09
Fls_GetVersionInfo 16 0x10
Fls_MainFunction 6 0x06
  • エラーコード一覧
    • "--"はDemにより決定される
エラーコード Dec Hex
FLS_E_PARAM_CONFIG 1 0x01
FLS_E_PARAM_ADDRESS 2 0x02
FLS_E_PARAM_LENGTH 3 0x03
FLS_E_PARAM_DATA 4 0x04
FLS_E_UNINIT 5 0x05
FLS_E_BUSY 6 0x06
FLS_E_VERIFY_ERASE_FAILED 7 0x07
FLS_E_VERIFY_WRITE_FAILED 8 0x08
FLS_E_TIMEOUT 9 0x09
FLS_E_PARAM_POINTER 10 0x0A
FLS_E_ERASE_FAILED -- --
FLS_E_WRITE_FAILED -- --
FLS_E_READ_FAILED -- --
FLS_E_COMPARE_FAILED -- --
FLS_E_UNEXPECTED_FLASH_ID -- --

API仕様

Fls_Init

void Fls_Init(const Fls_ConfigType* ConfigPtr)

Fls_Erase

Std_ReturnType Fls_Erase(Fls_AddressType TargetAddress,   Fls_LengthType Length)

Fls_Write

Std_ReturnType Fls_Write(Fls_AddressType TargetAddress, const uint8* SourceAddressPtr, Fls_LengthType Length)

Fls_Cancel

void Fls_Cancel(void)

Fls_GetStatus

MemIf_StatusType Fls_GetStatus(void)

Fls_GetJobResult

MemIf_JobResultType Fls_GetJobResult(void)

Fls_Read

Std_ReturnType Fls_Read(Fls_AddressType SourceAddress, uint8* TargetAddressPtr, Fls_LengthType Length)

Fls_Compare

Std_ReturnType Fls_Compare(Fls_AddressType SourceAddress, const uint8* TargetAddressPtr, Fls_LengthType Length)

Fls_SetMode

void Fls_SetMode(MemIf_ModeType Mode)

Fls_GetVersionInfo

void Fls_GetVersionInfo(Std_VersionInfoType* VersioninfoPtr)

Fls_MainFunction

void Fls_MainFunction(void)

コンフィギュレーション仕様

FlsConfigSet

/AUTOSAR/EcucDefs/Fls/FlsConfigSet
  • 型:Container
  • 多重度:1

FlsAcErase

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsAcErase
  • 型:IntegerParam
  • 多重度:1

FlsAcWrite

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsAcWrite
  • 型:IntegerParam
  • 多重度:1

FlsCallCycle

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsCallCycle
  • 型:FloatParam
  • 多重度:1

FlsDefaultMode

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsDefaultMode
  • 型:EnumerationParam
  • 多重度:1

FlsJobEndNotification

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsJobEndNotification
  • 型:FunctionName
  • 多重度:0..1

FlsJobErrorNotification

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsJobErrorNotification
  • 型:FunctionName
  • 多重度:0..1

FlsMaxReadFastMode

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsMaxReadFastMode
  • 型:IntegerParam
  • 多重度:1

FlsMaxReadNormalMode

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsMaxReadNormalMode
  • 型:IntegerParam
  • 多重度:1

FlsMaxWriteFastMode

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsMaxWriteFastMode
  • 型:IntegerParam
  • 多重度:1

FlsMaxWriteNormalMode

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsMaxWriteNormalMode
  • 型:IntegerParam
  • 多重度:1

FlsProtection

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsProtection
  • 型:IntegerParam
  • 多重度:1

FlsDemEventParameterRefs

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsDemEventParameterRefs
  • 型:Container
  • 多重度:0..1

FLS_E_COMPARE_FAILED

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsDemEventParameterRefs/FLS_E_COMPARE_FAILED
  • 型:Reference
  • 多重度:0..1

FLS_E_ERASE_FAILED

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsDemEventParameterRefs/FLS_E_ERASE_FAILED
  • 型:Reference
  • 多重度:0..1

FLS_E_READ_FAILED

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsDemEventParameterRefs/FLS_E_READ_FAILED
  • 型:Reference
  • 多重度:0..1

FLS_E_UNEXPECTED_FLASH_ID

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsDemEventParameterRefs/FLS_E_UNEXPECTED_FLASH_ID
  • 型:Reference
  • 多重度:0..1

FLS_E_WRITE_FAILED

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsDemEventParameterRefs/FLS_E_WRITE_FAILED
  • 型:Reference
  • 多重度:0..1

FlsExternalDriver

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsExternalDriver
  • 型:Container
  • 多重度:0..1

FlsSpiReference

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsExternalDriver/FlsSpiReference
  • 型:Reference
  • 多重度:1..*

FlsSectorList

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsSectorList
  • 型:Container
  • 多重度:1

FlsSector

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsSectorList/FlsSector
  • 型:Container
  • 多重度:1..*

FlsNumberOfSectors

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsSectorList/FlsSector/FlsNumberOfSectors
  • 型:IntegerParam
  • 多重度:1

FlsPageSize

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsSectorList/FlsSector/FlsPageSize
  • 型:IntegerParam
  • 多重度:1

FlsSectorSize

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsSectorList/FlsSector/FlsSectorSize
  • 型:IntegerParam
  • 多重度:1

FlsSectorStartaddress

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsSectorList/FlsSector/FlsSectorStartaddress
  • 型:IntegerParam
  • 多重度:1

FlsGeneral

/AUTOSAR/EcucDefs/Fls/FlsGeneral
  • 型:Container
  • 多重度:1

FlsAcLoadOnJobStart

/AUTOSAR/EcucDefs/Fls/FlsGeneral/FlsAcLoadOnJobStart
  • 型:BooleanParam
  • 多重度:1

FlsBaseAddress

/AUTOSAR/EcucDefs/Fls/FlsGeneral/FlsBaseAddress
  • 型:IntegerParam
  • 多重度:1

FlsCancelApi

/AUTOSAR/EcucDefs/Fls/FlsGeneral/FlsCancelApi
  • 型:BooleanParam
  • 多重度:1

FlsCompareApi

/AUTOSAR/EcucDefs/Fls/FlsGeneral/FlsCompareApi
  • 型:BooleanParam
  • 多重度:1

FlsDevErrorDetect

/AUTOSAR/EcucDefs/Fls/FlsGeneral/FlsDevErrorDetect
  • 型:BooleanParam
  • 多重度:1

FlsDriverIndex

/AUTOSAR/EcucDefs/Fls/FlsGeneral/FlsDriverIndex
  • 型:IntegerParam
  • 多重度:1

FlsGetJobResultApi

/AUTOSAR/EcucDefs/Fls/FlsGeneral/FlsGetJobResultApi
  • 型:BooleanParam
  • 多重度:1

FlsGetStatusApi

/AUTOSAR/EcucDefs/Fls/FlsGeneral/FlsGetStatusApi
  • 型:BooleanParam
  • 多重度:1

FlsSetModeApi

/AUTOSAR/EcucDefs/Fls/FlsGeneral/FlsSetModeApi
  • 型:BooleanParam
  • 多重度:1

FlsTotalSize

/AUTOSAR/EcucDefs/Fls/FlsGeneral/FlsTotalSize
  • 型:IntegerParam
  • 多重度:1

FlsUseInterrupts

/AUTOSAR/EcucDefs/Fls/FlsGeneral/FlsUseInterrupts
  • 型:BooleanParam
  • 多重度:1

FlsVersionInfoApi

/AUTOSAR/EcucDefs/Fls/FlsGeneral/FlsVersionInfoApi
  • 型:BooleanParam
  • 多重度:1

FlsPublishedInformation

/AUTOSAR/EcucDefs/Fls/FlsPublishedInformation
  • 型:Container
  • 多重度:1

FlsAcLocationErase

/AUTOSAR/EcucDefs/Fls/FlsPublishedInformation/FlsAcLocationErase
  • 型:IntegerParam
  • 多重度:1

FlsAcLocationWrite

/AUTOSAR/EcucDefs/Fls/FlsPublishedInformation/FlsAcLocationWrite
  • 型:IntegerParam
  • 多重度:1

FlsAcSizeErase

/AUTOSAR/EcucDefs/Fls/FlsPublishedInformation/FlsAcSizeErase
  • 型:IntegerParam
  • 多重度:1

FlsAcSizeWrite

/AUTOSAR/EcucDefs/Fls/FlsPublishedInformation/FlsAcSizeWrite
  • 型:IntegerParam
  • 多重度:1

FlsEraseTime

/AUTOSAR/EcucDefs/Fls/FlsPublishedInformation/FlsEraseTime
  • 型:FloatParam
  • 多重度:1

FlsErasedValue

/AUTOSAR/EcucDefs/Fls/FlsPublishedInformation/FlsErasedValue
  • 型:IntegerParam
  • 多重度:1

FlsExpectedHwId

/AUTOSAR/EcucDefs/Fls/FlsPublishedInformation/FlsExpectedHwId
  • 型:StringParam
  • 多重度:1

FlsSpecifiedEraseCycles

/AUTOSAR/EcucDefs/Fls/FlsPublishedInformation/FlsSpecifiedEraseCycles
  • 型:IntegerParam
  • 多重度:1

FlsWriteTime

/AUTOSAR/EcucDefs/Fls/FlsPublishedInformation/FlsWriteTime
  • 型:FloatParam
  • 多重度:1
Last modified 2 years ago Last modified on 09/01/15 16:19:39