wiki:spec_NVRAMManager
NVRAM Manager


概要

  • API一覧
API ID
[Dec]
ID
[Hex]
NvM_Init 0 0x00
NvM_SetDataIndex 1 0x01
NvM_GetDataIndex 2 0x02
NvM_SetBlockProtection 3 0x03
NvM_GetErrorStatus 4 0x04
NvM_GetVersionInfo 15 0x0F
NvM_SetRamBlockStatus 5 0x05
NvM_SetBlockLockStatus 19 0x13
NvM_ReadBlock 6 0x06
NvM_WriteBlock 7 0x07
NvM_RestoreBlockDefaults 8 0x08
NvM_EraseNvBlock 9 0x09
NvM_CancelWriteAll 10 0x0A
NvM_InvalidateNvBlock 11 0x0B
NvM_CancelJobs 16 0x10
NvM_ReadAll 12 0x0C
NvM_WriteAll 13 0x0D
NvM_JobEndNotification 17 0x11
NvM_JobErrorNotification 18 0x12
NvM_MainFunction 14 0x0E
  • エラーコード一覧
エラーコード Dec Hex
NVM_E_PARAM_BLOCK_ID 10 0x0A
NVM_E_PARAM_BLOCK_TYPE 11 0x0B
NVM_E_PARAM_BLOCK_DATA_IDX 12 0x0C
NVM_E_PARAM_ADDRESS 13 0x0D
NVM_E_PARAM_DATA 14 0x0E
NVM_E_PARAM_POINTER 15 0x0F

API仕様

NvM_Init

void NvM_Init(void)

NvM_SetDataIndex

Std_ReturnType NvM_SetDataIndex(NvM_BlockIdType BlockId, uint8 DataIndex)

NvM_GetDataIndex

Std_ReturnType NvM_GetDataIndex(NvM_BlockIdType BlockId, uint8* DataIndexPtr)

NvM_SetBlockProtection

Std_ReturnType NvM_SetBlockProtection(NvM_BlockIdType BlockId, boolean ProtectionEnabled)

NvM_GetErrorStatus

Std_ReturnType NvM_GetErrorStatus(NvM_BlockIdType BlockId, NvM_RequestResultType* RequestResultPtr)

NvM_GetVersionInfo

void NvM_GetVersionInfo(Std_VersionInfoType* versioninfo)

NvM_SetRamBlockStatus

Std_ReturnType NvM_SetRamBlockStatus(NvM_BlockIdType BlockId, boolean BlockChanged)

NvM_SetBlockLockStatus

void NvM_SetBlockLockStatus(NvM_BlockIdType BlockId, boolean BlockLocked)

NvM_ReadBlock

Std_ReturnType NvM_ReadBlock(NvM_BlockIdType BlockId, void* NvM_DstPtr)

NvM_WriteBlock

Std_ReturnType NvM_WriteBlock(NvM_BlockIdType BlockId, const void* NvM_SrcPtr)

NvM_RestoreBlockDefaults

Std_ReturnType NvM_RestoreBlockDefaults(NvM_BlockIdType BlockId, void* NvM_DestPtr)

NvM_EraseNvBlock

Std_ReturnType NvM_EraseNvBlock(NvM_BlockIdType BlockId)

NvM_CancelWriteAll

void NvM_CancelWriteAll(void)

NvM_InvalidateNvBlock

Std_ReturnType NvM_InvalidateNvBlock(NvM_BlockIdType BlockId)

NvM_CancelJobs

Std_ReturnType NvM_CancelJobs(NvM_BlockIdType BlockId)

NvM_ReadAll

void NvM_ReadAll(void)

NvM_WriteAll

void NvM_WriteAll(void)

NvM_JobEndNotification

void NvM_JobEndNotification(void)

NvM_JobErrorNotification

void NvM_JobErrorNotification(void)

NvM_MainFunction

void NvM_MainFunction(void)

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

NvMBlockDescriptor

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor
  • 型:Container
  • 多重度:1..65536

NvMBlockCrcType

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMBlockCrcType
  • 型:EnumerationParam
  • 多重度:0..1

NvMBlockJobPriority

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMBlockJobPriority
  • 型:IntegerParam
  • 多重度:1

NvMBlockManagementType

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMBlockManagementType
  • 型:EnumerationParam
  • 多重度:1

NvMBlockUseCrc

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMBlockUseCrc
  • 型:BooleanParam
  • 多重度:1

NvMBlockUseSyncMechanism

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMBlockUseSyncMechanism
  • 型:BooleanParam
  • 多重度:1

NvMBlockWriteProt

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMBlockWriteProt
  • 型:BooleanParam
  • 多重度:1

NvMBswMBlockStatusInformation

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMBswMBlockStatusInformation
  • 型:BooleanParam
  • 多重度:1

NvMCalcRamBlockCrc

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMCalcRamBlockCrc
  • 型:BooleanParam
  • 多重度:0..1

NvMInitBlockCallback

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMInitBlockCallback
  • 型:FunctionName
  • 多重度:0..1

NvMMaxNumOfReadRetries

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMMaxNumOfReadRetries
  • 型:IntegerParam
  • 多重度:1

NvMMaxNumOfWriteRetries

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMMaxNumOfWriteRetries
  • 型:IntegerParam
  • 多重度:1

NvMNvBlockBaseNumber

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMNvBlockBaseNumber
  • 型:IntegerParam
  • 多重度:1

NvMNvBlockLength

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMNvBlockLength
  • 型:IntegerParam
  • 多重度:1

NvMNvBlockNum

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMNvBlockNum
  • 型:IntegerParam
  • 多重度:1

NvMNvramBlockIdentifier

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMNvramBlockIdentifier
  • 型:IntegerParam
  • 多重度:1

NvMNvramDeviceId

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMNvramDeviceId
  • 型:IntegerParam
  • 多重度:1

NvMRamBlockDataAddress

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMRamBlockDataAddress
  • 型:StringParam
  • 多重度:0..1

NvMReadRamBlockFromNvCallback

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMReadRamBlockFromNvCallback
  • 型:FunctionName
  • 多重度:0..1

NvMResistantToChangedSw

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMResistantToChangedSw
  • 型:BooleanParam
  • 多重度:1

NvMRomBlockDataAddress

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMRomBlockDataAddress
  • 型:StringParam
  • 多重度:0..1

NvMRomBlockNum

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMRomBlockNum
  • 型:IntegerParam
  • 多重度:1

NvMSelectBlockForReadAll

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMSelectBlockForReadAll
  • 型:BooleanParam
  • 多重度:0..1

NvMSelectBlockForWriteAll

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMSelectBlockForWriteAll
  • 型:BooleanParam
  • 多重度:0..1

NvMSingleBlockCallback

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMSingleBlockCallback
  • 型:FunctionName
  • 多重度:0..1

NvMStaticBlockIDCheck

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMStaticBlockIDCheck
  • 型:BooleanParam
  • 多重度:1

NvMWriteBlockOnce

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMWriteBlockOnce
  • 型:BooleanParam
  • 多重度:1

NvMWriteRamBlockToNvCallback

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMWriteRamBlockToNvCallback
  • 型:FunctionName
  • 多重度:0..1

NvMWriteVerification

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMWriteVerification
  • 型:BooleanParam
  • 多重度:1

NvMWriteVerificationDataSize

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMWriteVerificationDataSize
  • 型:IntegerParam
  • 多重度:1

NvMTargetBlockReference

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMTargetBlockReference
  • 型:Container
  • 多重度:1

NvMEaRef

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMTargetBlockReference/NvMEaRef
  • 型:Container
  • 多重度:0..1

NvMNameOfEaBlock

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMTargetBlockReference/NvMEaRef/NvMNameOfEaBlock
  • 型:Reference
  • 多重度:1

NvMFeeRef

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMTargetBlockReference/NvMFeeRef
  • 型:Container
  • 多重度:0..1

NvMNameOfFeeBlock

/AUTOSAR/EcucDefs/NvM/NvMBlockDescriptor/NvMTargetBlockReference/NvMFeeRef/NvMNameOfFeeBlock
  • 型:Reference
  • 多重度:1

NvMCommon

/AUTOSAR/EcucDefs/NvM/NvMCommon
  • 型:Container
  • 多重度:1

NvMApiConfigClass

/AUTOSAR/EcucDefs/NvM/NvMCommon/NvMApiConfigClass
  • 型:EnumerationParam
  • 多重度:1

NvMBswMMultiBlockJobStatusInformation

/AUTOSAR/EcucDefs/NvM/NvMCommon/NvMBswMMultiBlockJobStatusInformation
  • 型:BooleanParam
  • 多重度:1

NvMCompiledConfigId

/AUTOSAR/EcucDefs/NvM/NvMCommon/NvMCompiledConfigId
  • 型:IntegerParam
  • 多重度:1

NvMCrcNumOfBytes

/AUTOSAR/EcucDefs/NvM/NvMCommon/NvMCrcNumOfBytes
  • 型:IntegerParam
  • 多重度:1

NvMDatasetSelectionBits

/AUTOSAR/EcucDefs/NvM/NvMCommon/NvMDatasetSelectionBits
  • 型:IntegerParam
  • 多重度:1

NvMDevErrorDetect

/AUTOSAR/EcucDefs/NvM/NvMCommon/NvMDevErrorDetect
  • 型:BooleanParam
  • 多重度:1

NvMDrvModeSwitch

/AUTOSAR/EcucDefs/NvM/NvMCommon/NvMDrvModeSwitch
  • 型:BooleanParam
  • 多重度:1

NvMDynamicConfiguration

/AUTOSAR/EcucDefs/NvM/NvMCommon/NvMDynamicConfiguration
  • 型:BooleanParam
  • 多重度:1

NvMJobPrioritization

/AUTOSAR/EcucDefs/NvM/NvMCommon/NvMJobPrioritization
  • 型:BooleanParam
  • 多重度:1

NvMMultiBlockCallback

/AUTOSAR/EcucDefs/NvM/NvMCommon/NvMMultiBlockCallback
  • 型:FunctionName
  • 多重度:0..1

NvMPollingMode

/AUTOSAR/EcucDefs/NvM/NvMCommon/NvMPollingMode
  • 型:BooleanParam
  • 多重度:1

NvMRepeatMirrorOperations

/AUTOSAR/EcucDefs/NvM/NvMCommon/NvMRepeatMirrorOperations
  • 型:IntegerParam
  • 多重度:1

NvMSetRamBlockStatusApi

/AUTOSAR/EcucDefs/NvM/NvMCommon/NvMSetRamBlockStatusApi
  • 型:BooleanParam
  • 多重度:1

NvMSizeImmediateJobQueue

/AUTOSAR/EcucDefs/NvM/NvMCommon/NvMSizeImmediateJobQueue
  • 型:IntegerParam
  • 多重度:0..1

NvMSizeStandardJobQueue

/AUTOSAR/EcucDefs/NvM/NvMCommon/NvMSizeStandardJobQueue
  • 型:IntegerParam
  • 多重度:1

NvMVersionInfoApi

/AUTOSAR/EcucDefs/NvM/NvMCommon/NvMVersionInfoApi
  • 型:BooleanParam
  • 多重度:1

NvmDemEventParameterRefs

/AUTOSAR/EcucDefs/NvM/NvmDemEventParameterRefs
  • 型:Container
  • 多重度:0..1

NVM_E_INTEGRITY_FAILED

/AUTOSAR/EcucDefs/NvM/NvmDemEventParameterRefs/NVM_E_INTEGRITY_FAILED
  • 型:Reference
  • 多重度:0..1

NVM_E_LOSS_OF_REDUNDANCY

/AUTOSAR/EcucDefs/NvM/NvmDemEventParameterRefs/NVM_E_LOSS_OF_REDUNDANCY
  • 型:Reference
  • 多重度:0..1

NVM_E_QUEUE_OVERFLOW

/AUTOSAR/EcucDefs/NvM/NvmDemEventParameterRefs/NVM_E_QUEUE_OVERFLOW
  • 型:Reference
  • 多重度:0..1

NVM_E_REQ_FAILED

/AUTOSAR/EcucDefs/NvM/NvmDemEventParameterRefs/NVM_E_REQ_FAILED
  • 型:Reference
  • 多重度:0..1

NVM_E_VERIFY_FAILED

/AUTOSAR/EcucDefs/NvM/NvmDemEventParameterRefs/NVM_E_VERIFY_FAILED
  • 型:Reference
  • 多重度:0..1

NVM_E_WRITE_PROTECTED

/AUTOSAR/EcucDefs/NvM/NvmDemEventParameterRefs/NVM_E_WRITE_PROTECTED
  • 型:Reference
  • 多重度:0..1

NVM_E_WRONG_BLOCK_ID

/AUTOSAR/EcucDefs/NvM/NvmDemEventParameterRefs/NVM_E_WRONG_BLOCK_ID
  • 型:Reference
  • 多重度:0..1
Last modified 2 years ago Last modified on 23/01/15 14:09:38