Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## avrora.sim.mcu
Interface Microcontroller.Pin.Input

All Known Implementing Classes:
  CC1000Radio.SerialConfigurationInterface.PDATAInput

Enclosing interface:
  Microcontroller.Pin

public static interface Microcontroller.Pin.Input

The `Input` interface represents an input pin. When the pin is configured to be an input and the microcontroller attempts to read from this pin, the installed instance of this interface will be called.

Method Summary
`void` | `disableInput()` The `disableInput()` method is called by the simulator when the program changes the direction of the pin.
`void` | `enableInput()` The `enableInput()` method is called by the simulator when the program changes the direction of the pin.
`boolean` | `read()` The `read()` method is called by the simulator when the program attempts to read the level of the pin.

Method Detail

### enableInput

    public void enableInput()

  The `enableInput()` method is called by the simulator when the program changes the direction of the pin. The device connected to this pin can then take action accordingly.

### disableInput

    public void disableInput()

  The `disableInput()` method is called by the simulator when the program changes the direction of the pin. The device connected to this pin can then take action accordingly.

### read

    public boolean read()

  The `read()` method is called by the simulator when the program attempts to read the level of the pin. The device can then compute and return the current level of the pin.

  Returns:
    true if the level of the pin is high; false otherwise

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD