Can somebody explain me what this code means? I want to change this code so that i can send 1 Byte to a serial port.
Thx
// change function to write a byte to the serial port
char __fastcall serial::SendMessage(char *MessStruct, int MessLength)
{
int count;
int bcount;
DWORD dwBytesWritten;
char chksum = dle^stx^dle^etx;
if(!commValid) return 0;
sendBuffer[0] = dle; //indicate start of message
sendBuffer[1] = stx;
// change function to write a byte to the serial port
char __fastcall serial::SendMessageByte(char *MessStruct, int MessLength)
{
int bcount;
DWORD dwBytesWritten;