KWP_driver_implementation_20090216_v1.0

  • 格式:doc
  • 大小:843.00 KB
  • 文档页数:15
Reentrancy
No
Remarks
4.6
Syntax
Uint8 KWP_CalCheckSum(uint8 MsgLen)
Parameters
MsgLen: it is stand for the length of the response KWP packet
Return
Checksum
Notification
Reentrancy
No
Remarks
4.2
Syntax
void ReadMemoryByAddress(void)
Parameters
None
Return
None
Notification
Description
This function interpret the received KWP ReadMemoryByAddress packet and call the ReternReadKwp2000 function by the received address.
4.2ReadMemoryByAddress8
4.3RetrunReadKwp20009
4.4WriteMemoryByAddress10
4.5WriteKWP2000_MAP11
4.6KWP_CalCheckSum12
4.7KWP_CalRxCheckSum13
5Resources Configuration14
Reentrancy
No
Remarks
4.5
Syntax
Void WriteKWP200_MAP(void)
Parameters
None
Return
None
Notification
Description
This function get the data (two bytes) and the address from the request packet and write the received data to the specified address. Then it get ready for the response packet and call the base ASC function send the response packet.
5.1 Periperal Config14
5.2 Interrupt Config14
6Compile Environment15
1
1.1
Thisdocument describes the specification of the KWP driver to be developed in the frame of the GEMS-K1 project.
2.
Type
Description
Range
CircBufferTyp
Contain the information about the TxBuffer
KWP2000_STATUSTyp
Contain the information about the ASC status
3
This chapter describes the global variable.
V1.0,16thFeb2009
Zhongwen Zhu
Creation
Contents
1Introduction4
1.1 Overview4
1.2 Reference4
2. Type definition5
3Global Variable6
4 Function Definitions7
4.1KWP_RxMessageProc7
TianjinUniversity—Infineon Automotive Electronic Joint Laboratory
State Key Laboratory of Engines
TianJin University,China
Revision history
Version
ByMLeabharlann dificationsReturn
Checksum
Notification
Description
This functioncalculatethe checksum of the received KWP packet.
Reentrancy
No
Remarks
5
The resource used by KWP driver
5.1 Periperal Config
Source
Description
5.2 Interrupt Config
Source
SRN
TOS
Priority
Name
Description
6
Compile Tool:Tasking for Tricore
Reentrancy
No
Remarks
4.3
Syntax
Void RetrunReadKwp2000(Cal Int * table)
Parameters
None
Return
None
Notification
Description
This function get the data (two bytes) from the memory by the Address received from the request packet and get ready for the response packet. Then it call the base ASC function send the response packet.
Reentrancy
No
Remarks
4.4
Syntax
void WriteMemoryByAddress(void)
Parameters
None
Return
None
Notification
Description
This function interpret the received KWP WriteMemoryByAddress packet and call the WriteKWP200_MAP function by the received address.
Varialbes
Type
Description
4
4.1
Syntax
voidKWP_RxMessageProc(void);
Parameters
None
Return
None
Notification
Description
This is the command interpreter of the KWP driver.
The KWP driver make the ECU connect with the calibration tools easily and quickly.
1.2 Reference
[1]KWP_testSpec_20090216_v1.0.doc
[2] KWP_driver_implement_20090216_v1.0.doc
Description
This functioncalculatethe checksum of the response KWP packet.
Reentrancy
No
Remarks
4.7
Syntax
Uint8 KWP_CalRxCheckSum(uint8 MsgLen)
Parameters
MsgLen: it is stand for the length of the received KWP packet