CSGDRIVERIMPL.docx
- 文档编号:7648724
- 上传时间:2023-01-25
- 格式:DOCX
- 页数:9
- 大小:117.58KB
CSGDRIVERIMPL.docx
《CSGDRIVERIMPL.docx》由会员分享,可在线阅读,更多相关《CSGDRIVERIMPL.docx(9页珍藏版)》请在冰豆网上搜索。
CSGDRIVERIMPL
ComplexSignalGenerationDriverimplementation
TianjinUniversity—InfineonAutomotiveElectronicJointLaboratory
StateKeyLaboratoryofEngines
TianJinUniversity,China
Revisionhistory
Version
By
Modifications
V0.01,1stApril2007
HongChaoZhang
Firstdraft
Summary
1Introduction4
1.1Overview4
1.2Acronymsandabbreviation4
1.3Reference4
1.4Declaration4
2TypeDefinition5
3GlobalVariable6
3.1Channel6
4DriverFunction7
4.1CSG_Init()7
4.2CSG_Channel_Configt()7
4.3CSG_SetPulse_TT_Tb_Te()8
4.4CSG_SetPulse_TT_Tb_Te_MAE()8
4.5CSG_SetPulse_AT_Ae_PL_MAE()9
4.6CSG_CSG_SetPulse_AA_Ae_PL()9
4.7CSG_SetPulse_AT_Ae_PL_MAE()10
4.8CSG_SetPulse_AT_Ae_PL_MAE()10
5PinConfiguration11
5.1Output11
6CompileEnvironment12
7Note12
1Introduction
1.1Overview
Managingacombustionenginemeansgenerationoftheignitionandinjectionsignalsbasedonthecurrentenvironmentalconditionsoftheengine(e.g.,engineposition,speed,acceleration,temperature,airmassflow,exhaustemissions,etc.).
ThepurposeoftheComplexSignalGenerationDriveristodeliverproducecomplexsignal(ignitionandinjectionsignals)neededfortheEngineManagementapplication.accordingtotheparametercalculatedbytheECU.Thisapplicationisconceivedforafourstrokesengine.
ThisdocumentdescribeshowtousetheComplexSignalGenerationDriver.
1.2Acronymsandabbreviation
Acronym
Description
ECU
EngineControlUnit
EP
EnginePosition
EP_Driver
EnginePositionDriver
CSG
ComplexSignalGeneration
1.3Reference
[1]Enginepositiondriverspecificationdocument.doc.
[2]ComplexSignalGenerationspecificationdocument.doc.
1.4Declaration
MostoftheexpressionmethodandsomecontentsarereferstoEnginepositiondriverspecificationdocumentofInfineon.Ifthereareanyintrusionofcopyright,pleasestopusethisdocumentimmediatelyandtellus.
2TypeDefinition
Type
Description
Range
t_CSG_Boolean
UsedastheBooleantype
TRUE
FALSE
Otherstypeusedinthisdocumentrefesto“Complexsignalgenerationspecificationdocument”
3GlobalVariable
Thischapterdescribestheglobalvariablewhichcanbecalledinouterplace.
3.1Channel
Thisisastruct,inchargeofstoringthebasicconfigureinformationofthecorrespondingchannel.
MembersofSignalConsistencyModule
Type
Description
IsConfig
t_CSG_Boolean
Refersto“Enginepositiondriverspecificationdocument”
IsEnable
t_CSG_Boolean
Refersto“Enginepositiondriverspecificationdocument”
IsStart
t_CSG_Boolean
Refersto“Enginepositiondriverspecificationdocument”
PulseType
t_CSG_PulseType
Refersto“Enginepositiondriverspecificationdocument”
ActiveLevel
t_CSG_Level
Refersto“Enginepositiondriverspecificationdocument”
GTCA
Uint32
Refersto“Enginepositiondriverspecificationdocument”
GTCB
Uint32
Refersto“Enginepositiondriverspecificationdocument”
Pin
t_CSG_Pin
Refersto“Enginepositiondriverspecificationdocument”
4DriverFunction
Thischapterdescribesthedriverfunctionwhichcanbecalledinouterplace.
4.1CSG_Init()
Function
t_StatusCSG_Init(void)
Description
ThisistheinitializationfunctionoftheEngineDriverfunctionlibrary.ItisassumedthattheSFRsusedbythislibraryareintheirresetstate.
Parameters
None
RetrunValue
t_Statusthestatusoftheexecutionofthefunction
Note
4.2CSG_Channel_Configt()
Function
t_CSG_PulseTypeCSG_Channel_Config
(
unsignedintChannelId,
t_CSG_PulseTypePulseType,
t_CSG_LevelActiveLevel,
t_CSG_Status*RetrunStatus
)
Description
ThisfunctionconfigurestheCSGchannelsbeforeusingthischannel
Parameters
unsignedintChannelId,
t_CSG_PulseTypePulseType,
t_CSG_LevelActiveLevel,
t_CSG_Status*RetrunStatus
RetrunValue
t_Statusthestatusoftheexecutionofthefunction
Note
4.3CSG_SetPulse_TT_Tb_Te()
Function
t_CSG_StatusCSG_SetPulse_TT_Tb_Te
(
unsignedintChannelId,
t_CSG_TimeTimeBegin,
t_CSG_TimeTimeEnd
)
Description
Thisfunctiongivestarttoaplusgeneration,andconfiguretheparameterstructusedbythiskindofpulse
Parameters
ChannelIdspecifywhichchanneltobestartedTimeBeginthebeginpointofpulsereferringglobaltime
TimeEndtheendpointofpulsereferringglobaltime
RetrunValue
t_CSG_StatusThepresentpulsekindofthechannelwithChannelId
Note
4.4CSG_SetPulse_TT_Tb_Te_MAE()
Function
t_CSG_StatusCSG_SetPulse_TT_Tb_Te_MAE
(
unsignedintChannelId,
t_CSG_TimeTimeBegin,
t_CSG_TimeTimeEnd,
t_CSG_AngleAngleMax
)
Description
Thisfunctiongivestarttoaplusgeneration,andconfiguretheparameterstructusedbythiskindofpulse
Parameters
ChannelIdspecifywhichchanneltobestartedTimeBeginthebeginpointofpulsereferringglobaltime
TimeEndtheendpointofpulsereferringglobaltime
AngleMaxthemaximumendpointofpulsereferringglobalangle
RetrunValue
t_CSG_StatusThepresentpulsekindofthechannelwithChannelId
Note
4.5CSG_SetPulse_AT_Ae_PL_MAE()
Function
t_CSG_StatusCSG_SetPulse_AA_Ab_Ae
(
unsignedintChannelId,
t_CSG_AngleAngleBegin,
t_CSG_AngleAngleEnd
)
Description
Thisfunctiongivestarttoaplusgeneration,andconfiguretheparameterstructusedbythiskindofpulse
Parameters
ChannelIdspecifywhichchanneltobestartedAngleBeginthebeginepointofpulsereferringglobalangle
AngleEndtheendpointofpulsereferringglobalangle
RetrunValue
t_CSG_StatusThepresentpulsekindofthechannelwithChannelId
Note
4.6CSG_CSG_SetPulse_AA_Ae_PL()
Function
t_CSG_StatusCSG_SetPulse_AA_Ae_PL
(
unsignedintChannelId,
t_CSG_AngleAngleEnd,
t_CSG_TimePulseLength
)
Description
Thisfunctiongivestarttoaplusgeneration,andconfiguretheparameterstructusedbythiskindofpulse
Parameters
ChannelIdspecifywhichchanneltobestartedAngleEndtheendpointofpulsereferringglobalangle
PulseLengththepluslengthtobegenerated,unitsus
RetrunValue
t_CSG_StatusThepresentpulsekindofthechannelwithChannelId
Note
4.7CSG_SetPulse_AT_Ae_PL_MAE()
Function
t_CSG_StatusCSG_SetPulse_AT_Ab_PL_MAE
(
unsignedintChannelId,
t_CSG_AngleAngleBegin,
t_CSG_TimePulseLength,
t_CSG_AngleAngleMax
)
Description
Thisfunctiongivestarttoaplusgeneration,andconfiguretheparameterstructusedbythiskindofpulse
Parameters
ChannelIdspecifywhichchanneltobestartedAngleBeginthebeginepointofpulsereferringglobalangle
PulseLengththepluslengthtobegenerated,unitsus
AngleMaxthemaxangleendreferringtoglobalangle
RetrunValue
t_CSG_StatusThepresentpulsekindofthechannelwithChannelId
Note
4.8CSG_SetPulse_AT_Ae_PL_MAE()
Function
t_CSG_StatusCSG_SetPulse_AT_Ae_PL_MAE
(
unsignedintChannelId,
t_CSG_AngleAngleEnd,
t_CSG_TimePulseLength,
t_CSG_AngleAngleMax
)
Description
Thisfunctiongivestarttoaplusgeneration,andconfiguretheparameterstructusedbythiskindofpulse
Parameters
ChannelIdspecifywhichchanneltobestartedAngleEndtheendpointofpulsereferringglobalangle
PulseLengththepluslengthtobegenerated,unitsus
AngleMaxthemaxangleendreferringtoglobalangle
RetrunValue
t_CSG_StatusThepresentpulsekindofthechannelwithChannelId
Note
5PinConfiguration
ThepinusedinCSGDriver
5.1Output
Pinnumber
Type
Description
P0.8
Output
OutputofCSGchannel0
P0.9
Output
OutputofCSGchannel1
P0.11
Output
OutputofCSGchannel2
P0.12
Output
OutputofCSGchannel3
P1.0
Output
OutputofCSGchannel4
P1.3
Output
OutputofCSGchannel5
P1.4
Output
OutputofCSGchannel6
P01.5
Output
OutputofCSGchannel7
6CompileEnvironment
CompileTool:
TaskingforTricore
ConfigureoftheTasking:
enable“use32-Bitintegerforenumeration”
Path:
Project→ProjectOption→CCompiler→Language
7Note
Thisisthefirstdraftofthisdocument.Maybetherearesomeerrorandmistake.And,theroutinecodealsoneedtoimprove.ThemonitorroutinefortheCSGchannelisnotimplementedinthisversionofroutine.
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- CSGDRIVERIMPL