Beispiel #1
0
        public static double Get_I2C_Bit_Rate()
        {
            byte[] array  = new byte[65];
            double result = 0.0;

            if (Utilities.m_flags.HID_DeviceReady != false)            //(Utilities.m_flags.HID_read_handle != IntPtr.Zero)
            {
                Array.Clear(array, 0, array.Length);
                if (Basic.Get_Status_Packet(ref array))
                {
                    result = I2CM.calculate_baud_rate((ushort)array[51]);
                }
            }
            return(result);
        }
Beispiel #2
0
 public static bool InitializePksaForMtouchLV()
 {
     return((Device.Initialize_PICkitSerial() && I2CM.Configure_PICkitSerial_For_I2CMaster()) && Device.Set_Buffer_Flush_Parameters(true, true, 10, 5.0));
 }
Beispiel #3
0
        public static bool ReadDevToolData(byte p_slave_addr, byte p_num_bytes, ref byte[] p_data_array)
        {
            string text = "";

            return(I2CM.Read(p_slave_addr, 85, p_num_bytes, ref p_data_array, ref text));
        }