public static void SetDestInterface(byte portNumber, CircularFrameBuffer cfb) { Emu.Status = 0xff; cfb.Peek(); cfb.PeekData.TuserLow = (cfb.PeekData.TuserLow & 0xFFFFFFFF00FFFFFF) | ((ulong)portNumber << 24); cfb.UpdatePeek(cfb.PeekData); }
/* * Function: Parse * Description: Parse peeked data from buffer */ public int Parse(CircularFrameBuffer cfb) { //while (!cfb.CanAdvance()) return 2; cfb.Peek(); //lock (cfb.PeekData) { return(Parse(cfb.PeekData.Tdata0, cfb.PeekData.Tdata1, cfb.PeekData.TuserLow)); } }
/* * Function: Parse * Description: Parse peeked data from buffer */ public int Parse(CircularFrameBuffer cfb) { cfb.Peek(); return(Parse(cfb.PeekData.TuserLow)); }