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);
 }
예제 #2
0
        /*
         * 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));
            }
        }
예제 #3
0
 /*
  * Function: Parse
  * Description: Parse peeked data from buffer
  */
 public int Parse(CircularFrameBuffer cfb)
 {
     cfb.Peek();
     return(Parse(cfb.PeekData.TuserLow));
 }