All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pi4j.boardinfo.definition.PinFunction Maven / Gradle / Ivy

The newest version!
package com.pi4j.boardinfo.definition;

/**
 * List of pin functions in a header.
 */
public enum PinFunction {
    UART("Universal Asynchronous Receiver and Transmitter", "Asynchronous serial communication protocol"),
    GPCLK("General Purpose Clock", "Output a fixed frequency"),
    I2C("Inter Integrated Circuit", "Synchronous serial computer bus"),
    SPI("Serial Peripheral Interface", "Four-wire serial bus");

    private final String label;
    private final String description;

    PinFunction(String label, String description) {
        this.label = label;
        this.description = description;
    }

    public String getLabel() {
        return label;
    }

    public String getDescription() {
        return description;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy