This function performs the setting of data needed to respond to a BCC message.
Syntax |
bool bcc_h_setup (bcc_msguser struRx, bcc_msguser struTx, i32 len) |
||||||
---|---|---|---|---|---|---|---|
struRx |
Structure bcc_msguser in which the message was received |
||||||
struTx |
Structure bcc_msguser used for the data to be sent NOTE: The structure of the data to be sent can be the same as the data received. |
||||||
len |
Length of message data (max 255 bytes) |
||||||
Result |
Returns:
|
||||||
Validity |
Rule, Task |
||||||
Note |
The operations performed are (logically) as follows: struTx.resSys1 = struRx.resSys1 struTx.resSys2 = struRx.resSys2 struTx.bccID = struRx.bccID struTx.DST = struRx.SR struTx.DCH = struRx.SCH struTx.SRC = struRx.DST struTx.SCH = struRx.DCH struTx.MSG = BCC_ACK (0x1) struTx.LEN = len struTx.PID = struRx.PID struTx.DLC = 0xFF |
The response is sent to the source and the same physical device is used.
Example of use:
|