Lines Matching defs:sync
50 the sync[] is a protocol-identification/sync thingy:
52 if ((read_byte[0] & sync[0]) == sync[1]) then we are at the beggining of the
53 a packet. Next data bytes are OK... if ((read_byte[i] & sync[2]) == 0))
58 uint8 sync[3];
308 return B_ERROR; // not enough, or out-of-sync, data.
324 // sync with data stream, if not, just skip data until we regain sync.
351 if ((c & mp[fMouseID].sync[0]) != mp[fMouseID].sync[1]) {
352 LOG(("Out of sync: skipping byte = %x\n", c));
364 if ((data[i] & mp[fMouseID].sync[2]) != 0) {
365 LOG(("Out of sync: wrong data byte = %x\n", data[i]));