wiki:spec_MCUDriver
MCU Driver


概要

  • API一覧
API ID
[Dec]
ID
[Hex]
Mcu_Init 0 0x00
Mcu_InitRamSection 1 0x01
Mcu_InitClock 2 0x02
Mcu_DistributePllClock 3 0x03
Mcu_GetPllStatus 4 0x04
Mcu_GetResetReason 5 0x05
Mcu_GetResetRawValue 6 0x06
Mcu_PerformReset 7 0x07
Mcu_SetMode 8 0x08
Mcu_GetVersionInfo 9 0x09
Mcu_GetRamState 4 0x04
  • エラーコード一覧
    • "--"はDemにより決定される
エラーコード Dec Hex
MCU_E_PARAM_CONFIG 10 0x0A
MCU_E_PARAM_CLOCK 11 0x0B
MCU_E_PARAM_MODE 12 0x0C
MCU_E_PARAM_RAMSECTION 13 0x0D
MCU_E_PLL_NOT_LOCKED 14 0x0E
MCU_E_UNINIT 15 0x0F
MCU_E_PARAM_POINTER 16 0x10
MCU_E_CLOCK_FAILURE -- --

API仕様

Mcu_Init

void Mcu_Init(const Mcu_ConfigType* ConfigPtr)

Mcu_InitRamSection

Std_ReturnType Mcu_InitRamSection(Mcu_RamSectionType RamSection)

Mcu_InitClock

Std_ReturnType Mcu_InitClock(Mcu_ClockType ClockSetting)

Mcu_DistributePllClock

void Mcu_DistributePllClock(void)

Mcu_GetPllStatus

Mcu_PllStatusType Mcu_GetPllStatus(void)

Mcu_GetResetReason

Mcu_ResetType Mcu_GetResetReason(void)

Mcu_GetResetRawValue

Mcu_RawResetType Mcu_GetResetRawValue(void)

Mcu_PerformReset

void Mcu_PerformReset(void)

Mcu_SetMode

void Mcu_SetMode(Mcu_ModeType McuMode)

Mcu_GetVersionInfo

void Mcu_GetVersionInfo(Std_VersionInfoType* versioninfo)

Mcu_GetRamState

Mcu_RamStateType Mcu_GetRamState(void)

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

McuGeneralConfiguration

/AUTOSAR/EcucDefs/Mcu/McuGeneralConfiguration
  • 型:Container
  • 多重度:1

McuDevErrorDetect

/AUTOSAR/EcucDefs/Mcu/McuGeneralConfiguration/McuDevErrorDetect
  • 型:BooleanParam
  • 多重度:1

McuGetRamStateApi

/AUTOSAR/EcucDefs/Mcu/McuGeneralConfiguration/McuGetRamStateApi
  • 型:BooleanParam
  • 多重度:1

McuInitClock

/AUTOSAR/EcucDefs/Mcu/McuGeneralConfiguration/McuInitClock
  • 型:BooleanParam
  • 多重度:1

McuNoPll

/AUTOSAR/EcucDefs/Mcu/McuGeneralConfiguration/McuNoPll
  • 型:BooleanParam
  • 多重度:1

McuPerformResetApi

/AUTOSAR/EcucDefs/Mcu/McuGeneralConfiguration/McuPerformResetApi
  • 型:BooleanParam
  • 多重度:1

McuVersionInfoApi

/AUTOSAR/EcucDefs/Mcu/McuGeneralConfiguration/McuVersionInfoApi
  • 型:BooleanParam
  • 多重度:1

McuModuleConfiguration

/AUTOSAR/EcucDefs/Mcu/McuModuleConfiguration
  • 型:Container
  • 多重度:1

McuClockSrcFailureNotification

/AUTOSAR/EcucDefs/Mcu/McuModuleConfiguration/McuClockSrcFailureNotification
  • 型:EnumerationParam
  • 多重度:1

McuNumberOfMcuModes

/AUTOSAR/EcucDefs/Mcu/McuModuleConfiguration/McuNumberOfMcuModes
  • 型:IntegerParam
  • 多重度:1

McuRamSectors

/AUTOSAR/EcucDefs/Mcu/McuModuleConfiguration/McuRamSectors
  • 型:IntegerParam
  • 多重度:1

McuResetSetting

/AUTOSAR/EcucDefs/Mcu/McuModuleConfiguration/McuResetSetting
  • 型:IntegerParam
  • 多重度:0..1

McuClockSettingConfig

/AUTOSAR/EcucDefs/Mcu/McuModuleConfiguration/McuClockSettingConfig
  • 型:Container
  • 多重度:1..*

McuClockSettingId

/AUTOSAR/EcucDefs/Mcu/McuModuleConfiguration/McuClockSettingConfig/McuClockSettingId
  • 型:IntegerParam
  • 多重度:1

McuClockReferencePoint

/AUTOSAR/EcucDefs/Mcu/McuModuleConfiguration/McuClockSettingConfig/McuClockReferencePoint
  • 型:Container
  • 多重度:1..*

McuClockReferencePointFrequency

/AUTOSAR/EcucDefs/Mcu/McuModuleConfiguration/McuClockSettingConfig/McuClockReferencePoint/McuClockReferencePointFrequency
  • 型:FloatParam
  • 多重度:1

McuDemEventParameterRefs

/AUTOSAR/EcucDefs/Mcu/McuModuleConfiguration/McuDemEventParameterRefs
  • 型:Container
  • 多重度:0..1

MCU_E_CLOCK_FAILURE

/AUTOSAR/EcucDefs/Mcu/McuModuleConfiguration/McuDemEventParameterRefs/MCU_E_CLOCK_FAILURE
  • 型:Reference
  • 多重度:0..1

McuModeSettingConf

/AUTOSAR/EcucDefs/Mcu/McuModuleConfiguration/McuModeSettingConf
  • 型:Container
  • 多重度:1..*

McuMode

/AUTOSAR/EcucDefs/Mcu/McuModuleConfiguration/McuModeSettingConf/McuMode
  • 型:IntegerParam
  • 多重度:1

McuRamSectorSettingConf

/AUTOSAR/EcucDefs/Mcu/McuModuleConfiguration/McuRamSectorSettingConf
  • 型:Container
  • 多重度:0..*

McuRamDefaultValue

/AUTOSAR/EcucDefs/Mcu/McuModuleConfiguration/McuRamSectorSettingConf/McuRamDefaultValue
  • 型:IntegerParam
  • 多重度:1

McuRamSectionBaseAddress

/AUTOSAR/EcucDefs/Mcu/McuModuleConfiguration/McuRamSectorSettingConf/McuRamSectionBaseAddress
  • 型:IntegerParam
  • 多重度:1

McuRamSectionSize

/AUTOSAR/EcucDefs/Mcu/McuModuleConfiguration/McuRamSectorSettingConf/McuRamSectionSize
  • 型:IntegerParam
  • 多重度:1

McuPublishedInformation

/AUTOSAR/EcucDefs/Mcu/McuPublishedInformation
  • 型:Container
  • 多重度:1

McuResetReasonConf

/AUTOSAR/EcucDefs/Mcu/McuPublishedInformation/McuResetReasonConf
  • 型:Container
  • 多重度:1..*

McuResetReason

/AUTOSAR/EcucDefs/Mcu/McuPublishedInformation/McuResetReasonConf/McuResetReason
  • 型:IntegerParam
  • 多重度:1
Last modified 2 years ago Last modified on 09/01/15 15:47:03