Class MIO_DIO

  • All Implemented Interfaces:
    Iarm32, Izynq7000

    public class MIO_DIO
    extends Object
    implements Izynq7000
    Driver to use the MIO pins on the MicroZed board as digital input or outputs.
    The driver supports digital functions on MIO0, MIO9 .. MIO15.
    Please make sure, that no other driver uses the same pins for alternative functions.
    • Constructor Detail

      • MIO_DIO

        public MIO_DIO()
    • Method Detail

      • init

        public static void init​(int channel,
                                boolean out)
        Initialize a MIO pin as digital I/O.
        Parameters:
        channel - Select pin 0, 9 .. 15
        out - Set I/O direction,true =>output, false => input
      • in

        public static boolean in​(int channel)
        Read the digital value of the corresponding channel
        Parameters:
        channel - Select pin 0, 9 .. 15
        Returns:
        Logical level of channel
      • out

        public static void out​(int channel,
                               boolean val)
        Set the logical level val of the corresponding channel
        Parameters:
        channel - Select pin 0, 9 .. 15
        val - Logical level