Package com.diozero.sbc
Class UnknownBoardInfo
- java.lang.Object
-
- com.diozero.sbc.BoardPinInfo
-
- com.diozero.sbc.BoardInfo
-
- com.diozero.sbc.UnknownBoardInfo
-
public class UnknownBoardInfo extends BoardInfo
Attempt to handle generic boards that don't have explicit support within diozero
-
-
Field Summary
-
Fields inherited from class com.diozero.sbc.BoardInfo
UNKNOWN, UNKNOWN_ADC_VREF
-
Fields inherited from class com.diozero.sbc.BoardPinInfo
ADC_KEY_PREFIX, DAC_KEY_PREFIX, DEFAULT_ADC_NAME_PREFIX, DEFAULT_DAC_NAME_PREFIX, DEFAULT_GPIO_NAME_PREFIX, GPIO_KEY_PREFIX
-
-
Constructor Summary
Constructors Constructor Description UnknownBoardInfo(LocalSystemInfo localSysInfo)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BoardInfo
get(LocalSystemInfo localSysInfo)
Optional<PinInfo>
getByAdcNumber(int adcNumber)
Optional<PinInfo>
getByDacNumber(int dacNumber)
Optional<PinInfo>
getByGpioNumber(int gpio)
void
populateBoardPinInfo()
Pin initialisation is done separately to the constructor since all known BoardInfo instances get instantiated on startup by the Java ServiceLoader.-
Methods inherited from class com.diozero.sbc.BoardInfo
compareMakeAndModel, createMmapGpio, getAdcVRef, getLibraryPath, getLongName, getMake, getMemoryKb, getModel, getName, getOperatingSystemId, getOperatingSystemVersion, getPwmChip, toString
-
Methods inherited from class com.diozero.sbc.BoardPinInfo
addAdcPinInfo, addAdcPinInfo, addAdcPinInfo, addAdcPinInfo, addDacPinInfo, addDacPinInfo, addDacPinInfo, addDacPinInfo, addDacPinInfo, addGeneralPinInfo, addGeneralPinInfo, addGeneralPinInfo, addGeneralPinInfo, addGeneralPinInfo, addGpioPinInfo, addGpioPinInfo, addGpioPinInfo, addGpioPinInfo, addGpioPinInfo, addGpioPinInfo, addGpioPinInfo, addPwmPinInfo, addPwmPinInfo, addPwmPinInfo, addPwmPinInfo, addPwmPinInfo, getAdcPins, getByAdcNumberOrThrow, getByChipAndLineOffset, getByChipAndLineOffsetOrThrow, getByDacNumberOrThrow, getByGpioNumberOrThrow, getByName, getByPhysicalPin, getByPhysicalPinOrThrow, getByPwmNumber, getByPwmNumberOrThrow, getByPwmOrGpioNumber, getByPwmOrGpioNumberOrThrow, getDacPins, getGpioPins, getGpios, getHeaderNames, getHeaders, getHeaderValues, mapToSysFsGpioNumber
-
-
-
-
Constructor Detail
-
UnknownBoardInfo
public UnknownBoardInfo(LocalSystemInfo localSysInfo)
-
-
Method Detail
-
get
public static BoardInfo get(LocalSystemInfo localSysInfo)
-
populateBoardPinInfo
public void populateBoardPinInfo()
Pin initialisation is done separately to the constructor since all known BoardInfo instances get instantiated on startup by the Java ServiceLoader.- Specified by:
populateBoardPinInfo
in classBoardInfo
-
getByGpioNumber
public Optional<PinInfo> getByGpioNumber(int gpio)
- Overrides:
getByGpioNumber
in classBoardPinInfo
-
getByAdcNumber
public Optional<PinInfo> getByAdcNumber(int adcNumber)
- Overrides:
getByAdcNumber
in classBoardPinInfo
-
getByDacNumber
public Optional<PinInfo> getByDacNumber(int dacNumber)
- Overrides:
getByDacNumber
in classBoardPinInfo
-
-