Class MDASM_DIO

    • Field Detail

      • channel

        int channel
    • Constructor Detail

      • MDASM_DIO

        public MDASM_DIO​(int channel,
                         boolean out)
        Create a digital I/O on a MDASM pin.
        Parameters:
        channel - select module channel 11-15 or 27-31
        out - set I/O direction, true => output, false => input.
    • Method Detail

      • set

        public void set​(boolean val)
        Set the TTL signal value val of this digital I/O.
        Parameters:
        val - the TTL-Signal value
      • get

        public boolean get()
        Read the TTL signal of this digital I/O.
        Returns:
        the TTL value of the corresponding channel.