예제 #1
0
        unsafe public CANMsg GetCANMsg()
        {
            CANMsg msg = new CANMsg();

            msg.id = mID;

            for (int i = 0; i < mData.Length; i++)
            {
                msg.data[i] = mData[i];
            }

            msg.length = (byte)mData.Length;
            msg.flags  = 0x4;

            return(msg);
        }
예제 #2
0
 public static extern int canusb_Write( uint handle, ref CANMsg msg );
예제 #3
0
 public static extern int canusb_Read( uint handle, out CANMsg msg );
예제 #4
0
 public static extern int canusb_Write(uint handle, ref CANMsg msg);
예제 #5
0
 public static extern int canusb_Read(uint handle, out CANMsg msg);