wiki:spec/Fls
Flash Driver


概要

  • API一覧
API ID
[Dec]
ID
[Hex]
R4.0.3 R4.2.2
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_BlankCheck 10 0x0A -
Fls_MainFunction 6 0x06
  • エラーコード一覧
エラーコード Dec Hex R4.0.3 R4.2.2 備考
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 1 0x01Production Errors(R4.0.3では値はDemにより決定される)
FLS_E_WRITE_FAILED 2 0x02Production Errors(R4.0.3では値はDemにより決定される)
FLS_E_READ_FAILED 3 0x03Production Errors(R4.0.3では値はDemにより決定される)
FLS_E_COMPARE_FAILED 4 0x04Production Errors(R4.0.3では値はDemにより決定される)
FLS_E_UNEXPECTED_FLASH_ID 5 0x05Production Errors(R4.0.3では値はDemにより決定される)

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_BlankCheck

Std_ReturnType Fls_BlankCheck(Fls_AddressType TargetAddress, Fls_LengthType Length)

Fls_MainFunction

void Fls_MainFunction(void)

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

FlsConfigSet

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

FlsAcErase

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsAcErase
  • 型:IntegerParam
  • 多重度:1
  • 上限値:4294967295
  • 下限値:0

FlsAcWrite

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsAcWrite
  • 型:IntegerParam
  • 多重度:1
  • 上限値:4294967295
  • 下限値:0

FlsCallCycle

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsCallCycle
  • 型:FloatParam
  • 多重度:1
  • 上限値:1
  • 下限値:0

FlsDefaultMode

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsDefaultMode
  • 型:EnumerationParam
  • 多重度:1
  • 選択肢:
    • MEMIF_MODE_FAST
    • MEMIF_MODE_SLOW
  • デフォルト値:MEMIF_MODE_SLOW

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
  • 上限値:4294967295
  • 下限値:0

FlsMaxReadNormalMode

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsMaxReadNormalMode
  • 型:IntegerParam
  • 多重度:1
  • 上限値:4294967295
  • 下限値:0

FlsMaxWriteFastMode

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsMaxWriteFastMode
  • 型:IntegerParam
  • 多重度:1
  • 上限値:4294967295
  • 下限値:0

FlsMaxWriteNormalMode

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsMaxWriteNormalMode
  • 型:IntegerParam
  • 多重度:1
  • 上限値:4294967295
  • 下限値:0

FlsProtection

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsProtection
  • 型:IntegerParam
  • 多重度:1
  • 上限値:4294967295
  • 下限値:0

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
  • 参照先:/AUTOSAR/EcucDefs/Dem/DemConfigSet/DemEventParameter

FLS_E_ERASE_FAILED

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsDemEventParameterRefs/FLS_E_ERASE_FAILED
  • 型:Reference
  • 多重度:0..1
  • 参照先:/AUTOSAR/EcucDefs/Dem/DemConfigSet/DemEventParameter

FLS_E_READ_FAILED

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsDemEventParameterRefs/FLS_E_READ_FAILED
  • 型:Reference
  • 多重度:0..1
  • 参照先:/AUTOSAR/EcucDefs/Dem/DemConfigSet/DemEventParameter

FLS_E_UNEXPECTED_FLASH_ID

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsDemEventParameterRefs/FLS_E_UNEXPECTED_FLASH_ID
  • 型:Reference
  • 多重度:0..1
  • 参照先:/AUTOSAR/EcucDefs/Dem/DemConfigSet/DemEventParameter

FLS_E_WRITE_FAILED

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsDemEventParameterRefs/FLS_E_WRITE_FAILED
  • 型:Reference
  • 多重度:0..1
  • 参照先:/AUTOSAR/EcucDefs/Dem/DemConfigSet/DemEventParameter

FlsExternalDriver

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

FlsSpiReference

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsExternalDriver/FlsSpiReference
  • 型:Reference
  • 多重度:1..*
  • 参照先:/AUTOSAR/EcucDefs/Spi/SpiDriver/SpiSequence

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
  • 上限値:65535
  • 下限値:0

FlsPageSize

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsSectorList/FlsSector/FlsPageSize
  • 型:IntegerParam
  • 多重度:1
  • 上限値:4294967295
  • 下限値:0

FlsSectorSize

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsSectorList/FlsSector/FlsSectorSize
  • 型:IntegerParam
  • 多重度:1
  • 上限値:4294967295
  • 下限値:0

FlsSectorStartaddress

/AUTOSAR/EcucDefs/Fls/FlsConfigSet/FlsSectorList/FlsSector/FlsSectorStartaddress
  • 型:IntegerParam
  • 多重度:1
  • 上限値:4294967295
  • 下限値:0

FlsGeneral

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

FlsAcLoadOnJobStart

/AUTOSAR/EcucDefs/Fls/FlsGeneral/FlsAcLoadOnJobStart
  • 型:BooleanParam
  • 多重度:1
  • デフォルト値:false

FlsBaseAddress

/AUTOSAR/EcucDefs/Fls/FlsGeneral/FlsBaseAddress
  • 型:IntegerParam
  • 多重度:1
  • 上限値:4294967295
  • 下限値:0

FlsBlankCheckApi

/AUTOSAR/EcucDefs/Fls/FlsGeneral/FlsBlankCheckApi
  • 型:BooleanParam
  • 多重度:1
  • デフォルト値:false

FlsCancelApi

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

FlsCompareApi

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

FlsDevErrorDetect

/AUTOSAR/EcucDefs/Fls/FlsGeneral/FlsDevErrorDetect
  • 型:BooleanParam
  • 多重度:1
  • デフォルト値:true

FlsDriverIndex

/AUTOSAR/EcucDefs/Fls/FlsGeneral/FlsDriverIndex
  • 型:IntegerParam
  • 多重度:1
  • 上限値:254
  • 下限値:0

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
  • 上限値:4294967295
  • 下限値:0

FlsUseInterrupts

/AUTOSAR/EcucDefs/Fls/FlsGeneral/FlsUseInterrupts
  • 型:BooleanParam
  • 多重度:1
  • デフォルト値:false

FlsVersionInfoApi

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

FlsPublishedInformation

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

FlsAcLocationErase

/AUTOSAR/EcucDefs/Fls/FlsPublishedInformation/FlsAcLocationErase
  • 型:IntegerParam
  • 多重度:1
  • 上限値:4294967295
  • 下限値:0

FlsAcLocationWrite

/AUTOSAR/EcucDefs/Fls/FlsPublishedInformation/FlsAcLocationWrite
  • 型:IntegerParam
  • 多重度:1
  • 上限値:4294967295
  • 下限値:0

FlsAcSizeErase

/AUTOSAR/EcucDefs/Fls/FlsPublishedInformation/FlsAcSizeErase
  • 型:IntegerParam
  • 多重度:1
  • 上限値:4294967295
  • 下限値:0

FlsAcSizeWrite

/AUTOSAR/EcucDefs/Fls/FlsPublishedInformation/FlsAcSizeWrite
  • 型:IntegerParam
  • 多重度:1
  • 上限値:4294967295
  • 下限値:0

FlsEraseTime

/AUTOSAR/EcucDefs/Fls/FlsPublishedInformation/FlsEraseTime
  • 型:FloatParam
  • 多重度:1
  • 上限値:Inf
  • 下限値:0

FlsErasedValue

/AUTOSAR/EcucDefs/Fls/FlsPublishedInformation/FlsErasedValue
  • 型:IntegerParam
  • 多重度:1
  • 上限値:4294967295
  • 下限値:0

FlsExpectedHwId

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

FlsSpecifiedEraseCycles

/AUTOSAR/EcucDefs/Fls/FlsPublishedInformation/FlsSpecifiedEraseCycles
  • 型:IntegerParam
  • 多重度:1
  • 上限値:4294967295
  • 下限値:0

FlsWriteTime

/AUTOSAR/EcucDefs/Fls/FlsPublishedInformation/FlsWriteTime
  • 型:FloatParam
  • 多重度:1
  • 上限値:Inf
  • 下限値:0
Last modified 13 months ago Last modified on Sep 16, 2020, 3:03:12 PM
Note: See TracWiki for help on using the wiki.