Пример #1
0
        public static ushort Get_Baud_Rate()
        {
            byte[] array  = new byte[65];
            ushort result = 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 = USART.calculate_baud_rate((ushort)((int)array[50] + ((int)array[51] << 8)));
                }
            }
            return(result);
        }
Пример #2
0
 public static bool Get_Aux_Status(ref bool p_aux1_state, ref bool p_aux2_state, ref bool p_aux1_dir, ref bool p_aux2_dir)
 {
     return(USART.Get_Aux_Status(ref p_aux1_state, ref p_aux2_state, ref p_aux1_dir, ref p_aux2_dir));
 }
Пример #3
0
 public static bool Tell_PKSA_To_Use_External_Voltage_Source()
 {
     return(USART.Tell_PKSA_To_Use_External_Voltage_Source());
 }
Пример #4
0
 public static bool Set_Source_Voltage(double p_voltage)
 {
     return(USART.Set_Source_Voltage(p_voltage));
 }
Пример #5
0
 public static bool Set_Aux2_State(bool p_state)
 {
     return(USART.Set_Aux2_State(p_state));
 }
Пример #6
0
 public static bool Set_Aux2_Direction(bool p_dir)
 {
     return(USART.Set_Aux2_Direction(p_dir));
 }
Пример #7
0
 public static bool Get_Source_Voltage(ref double p_voltage, ref bool p_PKSA_power)
 {
     return(USART.Get_Source_Voltage(ref p_voltage, ref p_PKSA_power));
 }