Changes between Version 20 and Version 21 of Writing Rules/Tlmt
- Timestamp:
- Dec 27, 2007, 11:02:53 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Writing Rules/Tlmt
v20 v21 182 182 == D.2) Sending a VCI response packet == 183 183 184 To send a VCI response packet the '''cmdReceived()''' function must use the '''rspSend()''' method, that is a member function of the class ''' VciTargetPort''', and has the following prototype:184 To send a VCI response packet the '''cmdReceived()''' function must use the '''rspSend()''' method, that is a member function of the class '''!VciTargetPort''', and has the following prototype: 185 185 {{{ 186 186 void rspSend( vci_rsp_t *cmd, … … 191 191 == D.3) Target Constructor == 192 192 193 The constructor of the class '''my_target''' must initialize all the member variables, including the '''p_vci''' port. The '''cmdReceived()''' call-back function being executed in the context of the thread sending the command packet, a link between the '''p_vci''' port and the call-back function must be established.193 The constructor of the class '''my_target''' must initialize all the member variables, including the '''p_vci''' port. The '''cmdReceived()''' call-back function being executed in the context of the thread sending the command packet, a link between the '''p_vci''' port and the call-back function must be established. 194 194 The '''!VciTargetPort''' constructor must be called with the following arguments: 195 195 {{{