Class BeagleBoneBoardInfoProvider.BeagleBoneBlackBoardInfo
- java.lang.Object
-
- com.diozero.sbc.BoardPinInfo
-
- com.diozero.sbc.BoardInfo
-
- com.diozero.internal.board.GenericLinuxArmBoardInfo
-
- com.diozero.internal.board.beaglebone.BeagleBoneBoardInfoProvider.BeagleBoneBlackBoardInfo
-
- Enclosing class:
- BeagleBoneBoardInfoProvider
public static class BeagleBoneBoardInfoProvider.BeagleBoneBlackBoardInfo extends GenericLinuxArmBoardInfo
Also works on the BeagleBone Green
-
-
Field Summary
Fields Modifier and Type Field Description static String
P8_HEADER
static String
P9_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 BeagleBoneBlackBoardInfo(LocalSystemInfo localSysInfo, String model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPwmChipNumberOverride(PinInfo pinInfo)
Get the PWM chip for the specified pin.void
oldPopulateBoardPinInfo()
-
Methods inherited from class com.diozero.internal.board.GenericLinuxArmBoardInfo
loadBoardPinInfoDefinition, populateBoardPinInfo
-
Methods inherited from class com.diozero.sbc.BoardInfo
compareMakeAndModel, createMmapGpio, 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, mapToSysFsGpioNumber
-
-
-
-
Field Detail
-
P9_HEADER
public static final String P9_HEADER
- See Also:
- Constant Field Values
-
P8_HEADER
public static final String P8_HEADER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BeagleBoneBlackBoardInfo
public BeagleBoneBlackBoardInfo(LocalSystemInfo localSysInfo, String model)
-
-
Method Detail
-
oldPopulateBoardPinInfo
public void oldPopulateBoardPinInfo()
-
getPwmChipNumberOverride
public int getPwmChipNumberOverride(PinInfo pinInfo)
Description copied from class:BoardPinInfo
Get the PWM chip for the specified pin. Only relevant for sysfs hardware PWM control, in particular on the BeagleBone Black where the PWM chip number can change between reboots.- Overrides:
getPwmChipNumberOverride
in classBoardPinInfo
- Parameters:
pinInfo
- object describing this pin- Returns:
- The PWM chip number for the requested PWM channel number, return -1 if not supported
-
-