public void flush() { lock (procSyncObject) { PinProc.PRFlushWriteData(ProcHandle); } }
/////////////////////////////////////////////////////////////////////////////// /// PROC BOARD INTERACTIONS /////////////////////////////////////////////////////////////////////////////// public void watchdog_tickle() { lock (procSyncObject) { PinProc.PRDriverWatchdogTickle(ProcHandle); PinProc.PRFlushWriteData(ProcHandle); } }
public void driver_schedule(ushort number, uint schedule, ushort cycle_seconds, bool now) { DriverState state = this.driver_get_state(number); lock (procSyncObject) { PinProc.PRDriverStateSchedule(ref state, schedule, (byte)cycle_seconds, now); PinProc.PRDriverUpdateState(ProcHandle, ref state); PinProc.PRFlushWriteData(ProcHandle); } }
public void driver_disable(ushort number) { DriverState state = this.driver_get_state(number); lock (procSyncObject) { PinProc.PRDriverStateDisable(ref state); PinProc.PRDriverUpdateState(ProcHandle, ref state); PinProc.PRFlushWriteData(ProcHandle); } }
public void driver_pulsed_patter(ushort number, ushort milliseconds_on, ushort milliseconds_off, ushort milliseconds_overall_patter_time) { DriverState state = this.driver_get_state(number); lock (procSyncObject) { PinProc.PRDriverStatePulsedPatter(ref state, milliseconds_on, milliseconds_off, milliseconds_overall_patter_time); PinProc.PRDriverUpdateState(ProcHandle, ref state); PinProc.PRFlushWriteData(ProcHandle); } }
/////////////////////////////////////////////////////////////////////////////// /// DRIVER FUNCTIONS /////////////////////////////////////////////////////////////////////////////// public Result driver_pulse(ushort number, byte milliseconds) { DriverState state = this.driver_get_state(number); Result res; lock (procSyncObject) { PinProc.PRDriverStatePulse(ref state, milliseconds); res = PinProc.PRDriverUpdateState(ProcHandle, ref state); } if (res == Result.Success) { lock (procSyncObject) { res = PinProc.PRDriverWatchdogTickle(ProcHandle); res = PinProc.PRFlushWriteData(ProcHandle); } } return(res); }