예제 #1
0
        public void driver_update_global_config(bool enable, bool polarity, bool use_clear, bool strobe_start_select,
                                                byte start_strobe_time, byte matrix_row_enable_index0, byte matrix_row_enable_index1,
                                                bool active_low_matrix_rows, bool tickle_stern_watchdog, bool encode_enables, bool watchdog_expired,
                                                bool watchdog_enable, ushort watchdog_reset_time)
        {
            lock (procSyncObject)
            {
                DriverGlobalConfig globals = new DriverGlobalConfig();
                globals.EnableOutputs         = enable;
                globals.GlobalPolarity        = polarity;
                globals.UseClear              = use_clear;
                globals.StrobeStartSelect     = strobe_start_select;
                globals.StartStrobeTime       = start_strobe_time;
                globals.MatrixRowEnableIndex0 = matrix_row_enable_index0;
                globals.MatrixRowEnableIndex1 = matrix_row_enable_index1;
                globals.ActiveLowMatrixRows   = active_low_matrix_rows;
                globals.TickleSternWatchdog   = tickle_stern_watchdog;
                globals.EncodeEnables         = encode_enables;
                globals.WatchdogExpired       = watchdog_expired;
                globals.WatchdogEnable        = watchdog_enable;
                globals.WatchdogResetTime     = watchdog_reset_time;

                PinProc.PRDriverUpdateGlobalConfig(ProcHandle, ref globals);
            }
        }