Questa funzione esegue l'impostazione dei dati che servono per rispondere ad una messaggio BCC.
Sintassi |
bool bcc_h_setup (bcc_msguser struRx, bcc_msguser struTx, i32 len) |
||||||
---|---|---|---|---|---|---|---|
struRx |
Struttura bcc_msguser in cui è stato ricevuto il messaggio. |
||||||
struTx |
Struttura bcc_msguser usata per i dati da inviare. NOTA: La struttura dei dati da spedire può essere la stessa dei dati ricevuti. |
||||||
len |
Lunghezza dei dati dei messaggi (max 255 byte). |
||||||
Risultato |
Rende:
|
||||||
Validità |
Rule, Task. |
||||||
Note |
Le operazioni eseguite sono (logicamente) le seguenti: 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 |
La risposta viene indirizzata al sorgente e viene utilizzato lo stesso dispositivo fisico.
Esempio di utilizzo:
|