// Note: A constructor summary is auto-generated by the doc builder. /// <summary></summary> /// <param name="socket">The socket for the digital output interface.</param> /// <param name="pin">The pin used by the digital output interface.</param> /// <param name="initialState">The initial state to place on the digital output interface port.</param> /// <param name="module">The module using this interface (which can be null if unspecified).</param> public DigitalOutput(Socket socket, Socket.Pin pin, bool initialState, Module module) { Cpu.Pin reservedPin = socket.ReservePin(pin, module); // native implementation is preferred to an indirected one if (reservedPin == Cpu.Pin.GPIO_NONE && socket.DigitalOutputIndirector != null) Interface = socket.DigitalOutputIndirector(socket, pin, initialState, module); else Interface = new NativeDigitalOutput(socket, pin, initialState, module, reservedPin); }
// Note: A constructor summary is auto-generated by the doc builder. /// <summary></summary> /// <param name="socket">The socket for the digital output interface.</param> /// <param name="pin">The pin used by the digital output interface.</param> /// <param name="initialState">The initial state to place on the digital output interface port.</param> /// <param name="module">The module using this interface (which can be null if unspecified).</param> public DigitalOutput(Socket socket, Socket.Pin pin, bool initialState, Module module) { Cpu.Pin reservedPin = socket.ReservePin(pin, module); // native implementation is preferred to an indirected one if (reservedPin == Cpu.Pin.GPIO_NONE && socket.DigitalOutputIndirector != null) { Interface = socket.DigitalOutputIndirector(socket, pin, initialState, module); } else { Interface = new NativeDigitalOutput(socket, pin, initialState, module, reservedPin); } }