public DriverState driver_state_schedule(DriverState state, uint schedule, byte seconds, bool now) { lock (procSyncObject) { PinProc.PRDriverStateSchedule(ref state, schedule, seconds, now); } return(state); }
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); } }