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)
UnknownBoardInfo(String make, String model, int memoryKb, String libraryPath)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BoardInfo
get(LocalSystemInfo localSysInfo)
PinInfo
getByAdcNumber(int adcNumber)
PinInfo
getByDacNumber(int dacNumber)
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, getCpuTemperature, getI2CBusNumbers, getLibraryPath, getLongName, getMake, getMemoryKb, getModel, getName, 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, getByChipAndLineOffset, getByName, getByPwmNumber, getDacPins, getGpioPins, getGpios, 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 PinInfo getByGpioNumber(int gpio)
- Overrides:
getByGpioNumber
in classBoardPinInfo
-
getByAdcNumber
public PinInfo getByAdcNumber(int adcNumber)
- Overrides:
getByAdcNumber
in classBoardPinInfo
-
getByDacNumber
public PinInfo getByDacNumber(int dacNumber)
- Overrides:
getByDacNumber
in classBoardPinInfo
-
-