Datasheet

EA uniTFT Vorläufig
SMALL PROTOCOLL
For the calculation of the checksum, a simple 8-bit sum check (modulo 256) is performed for this protocol type.
//---------------------------------------------------------------------------
-
//Function: buffer2bcc()
//input: ptr data, len
//output: ---
//Descr: Byte bcc of a buffer
//---------------------------------------------------------------------------
-
UBYTE buffer2bcc(UBYTE *dat, UBYTE anz)
{
UBYTE bcc = 0;
while(anz--)
bcc += *dat++;
return bcc;
}
Technische Änderung vorbehalten.
Wir übernehmen keine Haftung für Druckfehler und Applikationsbeispiele..
Seite 44