Пример #1
0
 /// <summary>
 /// Returns a digital input/output interface associated with the specified pin on this module.
 /// </summary>
 /// <param name="pin">The pin to assign to the interface.</param>
 /// <param name="initialState">
 ///  The initial state to place on the interface port;
 ///  this value becomes effective as soon as the port is enabled as an output port.
 /// </param>
 /// <param name="glitchFilterMode">
 ///  A value from the <see cref="T:Microsoft.Gadgeteer.Interfaces.GlitchFilterMode"/> enumeration that specifies
 ///  whether to enable the glitch filter on this interface.
 /// </param>
 /// <param name="resistorMode">The resistor mode for the interface port.</param>
 /// <returns>The interface.</returns>
 /// <exception cref="System.Exception">
 ///  The specified pin has already been reserved on this module.
 /// </exception>
 public Interfaces.DigitalIO SetupDigitalIO(Socket.Pin pin, bool initialState, Interfaces.GlitchFilterMode glitchFilterMode, Interfaces.ResistorMode resistorMode)
 {
     return(new Interfaces.DigitalIO(BreakoutSocket, pin, initialState, glitchFilterMode, resistorMode, this));
 }
Пример #2
0
 /// <summary>
 /// Returns an interrupt input interface associated with the specified pin on this module.
 /// </summary>
 /// <param name="pin">The pin to assign to the interface.</param>
 /// <param name="glitchFilterMode">
 ///  A value from the <see cref="T:Microsoft.Gadgeteer.Interfaces.GlitchFilterMode"/> enumeration that specifies
 ///  whether to enable the glitch filter on this interface.
 /// </param>
 /// <param name="resistorMode">The resistor mode for the interface port.</param>
 /// <param name="interruptMode">The interrupt mode for the interface port.</param>
 /// <returns>The interface</returns>
 /// <exception cref="System.Exception">
 ///  The specified pin has already been reserved on this module.
 /// </exception>
 public Interfaces.InterruptInput SetupInterruptInput(Socket.Pin pin, Interfaces.GlitchFilterMode glitchFilterMode, Interfaces.ResistorMode resistorMode, Interfaces.InterruptMode interruptMode)
 {
     return(new Interfaces.InterruptInput(BreakoutSocket, pin, glitchFilterMode, resistorMode, interruptMode, this));
 }
Пример #3
0
 /// <summary>
 /// Returns a digital input interface associated with the specified pin on this module.
 /// </summary>
 /// <param name="pin">The pin to assign to the interface.</param>
 /// <param name="glitchFilterMode">
 ///  A value from the <see cref="T:Microsoft.Gadgeteer.Interfaces.GlitchFilterMode"/> enumeration that specifies
 ///  whether to enable the glitch filter on this interface.
 /// </param>
 /// <param name="resistorMode">The resistor mode for the interface port.</param>
 /// <returns>The interface.</returns>
 /// <exception cref="System.Exception">
 ///  The specified pin has already been reserved on this module.
 /// </exception>
 public Interfaces.DigitalInput SetupDigitalInput(Socket.Pin pin, Interfaces.GlitchFilterMode glitchFilterMode, Interfaces.ResistorMode resistorMode)
 {
     return(new Interfaces.DigitalInput(BreakoutSocket, pin, glitchFilterMode, resistorMode, this));
 }