public void PulseDriver(ushort driverNum, byte milliseconds) { DriverState state = new DriverState(); state.DriverNum = driverNum; PinProc.PRDriverStatePulse(ref state, milliseconds); PinProc.PRDriverUpdateState(ProcHandle, ref state); }
public static extern Result PRSwitchUpdateRule(IntPtr handle, byte switchNum, EventType eventType, ref SwitchRule rule, DriverState[] linkedDrivers, int numDrivers);
public static extern Result PRDriverUpdateState(IntPtr handle, ref DriverState driverState);
public static extern void PRDriverStateSchedule(ref DriverState state, UInt32 schedule, byte cycleSeconds, bool now);
public static extern void PRDriverStatePulsedPatter(ref DriverState state, UInt16 millisecondsOn, UInt16 millisecondsOff, UInt16 patterTime);
public static extern void PRDriverStatePulse(ref DriverState state, byte milliseconds);
public static extern void PRDriverStatePatter(ref DriverState state, UInt16 millisecondsOn, UInt16 millisecondsOff, UInt16 originalOnTime);
public static extern void PRDriverStateDisable(ref DriverState state);
public static extern Result PRDriverGetState(IntPtr handle, byte driverNum, ref DriverState driverState);