com.pi4j.boardinfo.definition.PinFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pi4j-core Show documentation
Show all versions of pi4j-core Show documentation
Pi4J Java API & Runtime Library
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;
}
}