public DriverState driver_state_patter(DriverState state, ushort milliseconds_on, ushort milliseconds_off, ushort original_on_time) { lock (procSyncObject) { PinProc.PRDriverStatePatter(ref state, milliseconds_on, milliseconds_off, original_on_time); } return(state); }
public void driver_patter(ushort number, ushort milliseconds_on, ushort milliseconds_off, ushort original_on_time) { DriverState state = this.driver_get_state(number); lock (procSyncObject) { PinProc.PRDriverStatePatter(ref state, milliseconds_on, milliseconds_off, original_on_time); PinProc.PRDriverUpdateState(ProcHandle, ref state); PinProc.PRFlushWriteData(ProcHandle); } }