Class MPWMSM_DIO

    • Field Detail

      • channel

        int channel
    • Constructor Detail

      • MPWMSM_DIO

        public MPWMSM_DIO​(int channel,
                          boolean out)
        Create a digital I/O on a MPWM pin.
        Parameters:
        channel - Select module channel. Allowed values are 0..3, 6..9 or 0..3, 16-19.
        out - Set I/O direction, true => output, false => input.
    • Method Detail

      • set

        public void set​(boolean val)
        Set the TTL-Signal value val of the output.
        Parameters:
        val - The TTL-Signal value
      • get

        public boolean get()
        Read the TTL-Signal of the input.
        Returns:
        The TTL value of the corresponding channel.