Enum GlcdCommProtocol

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<GlcdCommProtocol>

    public enum GlcdCommProtocol
    extends java.lang.Enum<GlcdCommProtocol>
    Enumeration of communication protocols of a display controller
    Author:
    Rafael Ibasco
    • Enum Constant Detail

      • SPI_HW_4WIRE

        public static final GlcdCommProtocol SPI_HW_4WIRE
        4-Wire SPI (Hardware Implementation)
      • SPI_HW_4WIRE_2ND

        public static final GlcdCommProtocol SPI_HW_4WIRE_2ND
        4-Wire SPI (Hardware Implementation / If supported, second 4-wire hardware SPI)
      • SPI_SW_4WIRE

        public static final GlcdCommProtocol SPI_SW_4WIRE
        4-Wire SPI (Software Implementation)
      • SPI_HW_4WIRE_ST7920

        public static final GlcdCommProtocol SPI_HW_4WIRE_ST7920
        4-Wire SPI (Hardware Implementation)

        Note: mostly identical to SPI_HW_4WIRE, but does not use DC

      • SPI_HW_ST7920_2ND

        public static final GlcdCommProtocol SPI_HW_ST7920_2ND
        4-Wire SPI (Hardware Implementation)

        Note: mostly identical to SPI_HW_4WIRE, but does not use DC

      • SPI_SW_4WIRE_ST7920

        public static final GlcdCommProtocol SPI_SW_4WIRE_ST7920
        4-Wire SPI (Software Implementation)

        Note: mostly identical to SPI_SW_4WIRE, but does not use DC

      • SPI_SW_3WIRE

        public static final GlcdCommProtocol SPI_SW_3WIRE
        3-Wire SPI (Software Implementation)
      • SPI_HW_3WIRE

        public static final GlcdCommProtocol SPI_HW_3WIRE
        3-Wire SPI (Hardware Implementation / NOT CURRENTLY IMPLEMENTED)
      • I2C_SW

        public static final GlcdCommProtocol I2C_SW
        I2C Protocol (Software Implementation)
      • I2C_HW

        public static final GlcdCommProtocol I2C_HW
        I2C Hardware (Hardware Implementation)
      • I2C_HW_2ND

        public static final GlcdCommProtocol I2C_HW_2ND
        I2C Protocol (Hardware Implementation / If supported, use second hardware I2C)
      • SERIAL_HW

        public static final GlcdCommProtocol SERIAL_HW
        Serial communication (Hardware Implementation)
      • SERIAL_SW

        public static final GlcdCommProtocol SERIAL_SW
        Serial communication (Software Implementation)
      • PARALLEL_8080

        public static final GlcdCommProtocol PARALLEL_8080
        Parallel Communication: 8080 protocol
      • PARALLEL_6800

        public static final GlcdCommProtocol PARALLEL_6800
        Parallel Communication: 6800 protocol
      • PARALLEL_6800_KS0108

        public static final GlcdCommProtocol PARALLEL_6800_KS0108
        Special KS0108 protocol

        Note: Mostly identical to PARALLEL_6800, but has more chip select lines

      • SED1520

        public static final GlcdCommProtocol SED1520
        Special SED1520 protocol
    • Method Detail

      • values

        public static GlcdCommProtocol[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (GlcdCommProtocol c : GlcdCommProtocol.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static GlcdCommProtocol valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getDescription

        public java.lang.String getDescription()
      • getValue

        public int getValue()