Package com.diozero.internal.board.chip
Class ChipBoardInfoProvider.CHIPBoardInfo
- java.lang.Object
-
- com.diozero.sbc.BoardPinInfo
-
- com.diozero.sbc.BoardInfo
-
- com.diozero.internal.board.GenericLinuxArmBoardInfo
-
- com.diozero.internal.board.chip.ChipBoardInfoProvider.CHIPBoardInfo
-
- Enclosing class:
- ChipBoardInfoProvider
public static final class ChipBoardInfoProvider.CHIPBoardInfo extends GenericLinuxArmBoardInfo
-
-
Field Summary
Fields Modifier and Type Field Description static String
U13_HEADER
static String
U14_HEADER
-
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 CHIPBoardInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MmapGpioInterface
createMmapGpio()
Instantiate the memory mapped GPIO interface for this board.int
mapToSysFsGpioNumber(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.internal.board.GenericLinuxArmBoardInfo
loadBoardPinInfoDefinition
-
Methods inherited from class com.diozero.sbc.BoardInfo
compareMakeAndModel, getAdcVRef, getLibraryPath, getLongName, getMake, getMemoryKb, getModel, getName, getOperatingSystemId, getOperatingSystemVersion, 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, getByAdcNumber, getByAdcNumberOrThrow, getByChipAndLineOffset, getByChipAndLineOffsetOrThrow, getByDacNumber, getByDacNumberOrThrow, getByGpioNumber, getByGpioNumberOrThrow, getByName, getByPhysicalPin, getByPhysicalPinOrThrow, getByPwmNumber, getByPwmNumberOrThrow, getByPwmOrGpioNumber, getByPwmOrGpioNumberOrThrow, getDacPins, getGpioPins, getGpios, getHeaderNames, getHeaders, getHeaderValues, getPwmChipNumberOverride
-
-
-
-
Field Detail
-
U13_HEADER
public static final String U13_HEADER
- See Also:
- Constant Field Values
-
U14_HEADER
public static final String U14_HEADER
- See Also:
- Constant Field Values
-
-
Method Detail
-
populateBoardPinInfo
public void populateBoardPinInfo()
Description copied from class:BoardInfo
Pin initialisation is done separately to the constructor since all known BoardInfo instances get instantiated on startup by the Java ServiceLoader.- Overrides:
populateBoardPinInfo
in classGenericLinuxArmBoardInfo
-
mapToSysFsGpioNumber
public int mapToSysFsGpioNumber(int gpio)
- Overrides:
mapToSysFsGpioNumber
in classBoardPinInfo
-
createMmapGpio
public MmapGpioInterface createMmapGpio()
Description copied from class:BoardInfo
Instantiate the memory mapped GPIO interface for this board. Not that the caller needs to callinitialise
prior to use.- Overrides:
createMmapGpio
in classBoardInfo
- Returns:
- the MMAP GPIO interface implementation for this board, null if there isn't one
-
-