beautypg.com

Rane RPD 1 User Manual

Page 16

background image

Manual-16

*(Ptr++) = L_LSB ;
if (L_LSB == 0xFB)

*(Ptr++) = 0xFB;

// Expand the original packet into the new buffer

for (x=0;x{

*(Ptr++) = Buff[x];
if (Buff[x] == 0xFB)
*(Ptr++) = 0xFB;

}

// Add the Checksum byte (or Bytes if Checksum == FB)

*(Ptr++) = CheckSum ;
if (CheckSum == 0xFB)

*(Ptr++) = 0xFB;

// Copy the expanded packet back into the original buffer

memcpy(Buff,Packet,NewLen);
return NewLen;

}

©Rane Corporation 10802 47th Ave. W., Mukilteo WA 98275-5098 TEL (425)355-6000 FAX (425)347-7757 WEB http://www.rane.com

103071