Package jpigpio.impl
Class CommonPigpio
java.lang.Object
jpigpio.impl.CommonPigpio
- All Implemented Interfaces:
JPigpio
- Direct Known Subclasses:
Pigpio
,PigpioSocket
public abstract class CommonPigpio extends java.lang.Object implements JPigpio
-
Field Summary
Fields inherited from interface jpigpio.JPigpio
PI_ALT0, PI_ALT1, PI_ALT2, PI_ALT3, PI_ALT4, PI_ALT5, PI_CLEAR, PI_DEFAULT_DUTYCYCLE_RANGE, PI_EITHER_EDGE, PI_FALLING_EDGE, PI_GPIO10, PI_GPIO11, PI_GPIO12, PI_GPIO13, PI_GPIO14, PI_GPIO15, PI_GPIO16, PI_GPIO17, PI_GPIO18, PI_GPIO19, PI_GPIO2, PI_GPIO20, PI_GPIO21, PI_GPIO22, PI_GPIO23, PI_GPIO24, PI_GPIO25, PI_GPIO26, PI_GPIO27, PI_GPIO3, PI_GPIO4, PI_GPIO5, PI_GPIO6, PI_GPIO7, PI_GPIO8, PI_GPIO9, PI_HIGH, PI_HW_CLK_MAX_FREQ, PI_HW_CLK_MIN_FREQ, PI_HW_PWM_MAX_FREQ, PI_HW_PWM_MIN_FREQ, PI_HW_PWM_RANGE, PI_I2C1_SCL, PI_I2C1_SDA, PI_INPUT, PI_LOW, PI_LSBFIRST, PI_MAX_DUTYCYCLE_RANGE, PI_MAX_SERVO_PULSEWIDTH, PI_MICROSECONDS, PI_MILLISECONDS, PI_MIN_DUTYCYCLE_RANGE, PI_MIN_SERVO_PULSEWIDTH, PI_MSBFIRST, PI_NO_TX_WAVE, PI_NTFY_FLAGS_ALIVE, PI_NTFY_FLAGS_GPIO, PI_NTFY_FLAGS_WDOG, PI_OFF, PI_ON, PI_OUTPUT, PI_PUD_DOWN, PI_PUD_OFF, PI_PUD_UP, PI_RISING_EDGE, PI_SCRIPT_FAILED, PI_SCRIPT_HALTED, PI_SCRIPT_INITING, PI_SCRIPT_RUNNING, PI_SCRIPT_WAITING, PI_SECONDS, PI_SERVO_OFF, PI_SET, PI_SPI_BAUD_125KHZ, PI_SPI_BAUD_1MHZ, PI_SPI_BAUD_250KHZ, PI_SPI_BAUD_2MHZ, PI_SPI_BAUD_4MHZ, PI_SPI_BAUD_500KHZ, PI_SPI_BAUD_8MHZ, PI_SPI_CE0, PI_SPI_CE1, PI_SPI_CHANNEL0, PI_SPI_CHANNEL1, PI_SPI_MISO, PI_SPI_MODE0, PI_SPI_MODE1, PI_SPI_MODE2, PI_SPI_MODE3, PI_SPI_MOSI, PI_SPI_SCLK, PI_TIMEOUT, PI_WAVE_MODE_ONE_SHOT, PI_WAVE_MODE_ONE_SHOT_SYNC, PI_WAVE_MODE_REPEAT, PI_WAVE_MODE_REPEAT_SYNC, PI_WAVE_NOT_FOUND
-
Constructor Summary
Constructors Constructor Description CommonPigpio()
-
Method Summary
Modifier and Type Method Description void
gpioDelay(long delay, int type)
void
gpioShiftOut(int gpioData, int gpioClock, boolean clockLevel, boolean bitOrder, byte value)
Shift out a byte of data to a given pin.void
gpioShiftOut(int gpioData, int gpioClock, boolean bitOrder, byte value)
Shift out a byte of data to a given pin.void
gpioShiftOut(GPIO gpioData, GPIO gpioClock, boolean clockLevel, boolean bitOrder, byte value)
void
gpioShiftOut(GPIO gpioData, GPIO gpioClock, boolean bitOrder, byte value)
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jpigpio.JPigpio
addCallback, getCurrentTick, getPWMDutycycle, getPWMFrequency, getPWMRange, getPWMRealRange, getServoPulseWidth, gpioDelay, gpioGetMode, gpioInitialize, gpioRead, gpioServo, gpioSetAlertFunc, gpioSetMode, gpioSetPullUpDown, gpioTerminate, gpioTick, gpioTrigger, gpioWrite, gpioxPulseAndWait, i2cClose, i2cOpen, i2cReadDevice, i2cWriteDevice, notifyBegin, notifyClose, notifyOpen, notifyPause, reconnect, removeCallback, serialClose, serialDataAvailable, serialOpen, serialRead, serialReadByte, serialWrite, serialWriteByte, setDebug, setPWMDutycycle, setPWMFrequency, setPWMRange, setServoPulseWidth, setWatchdog, spiClose, spiOpen, spiRead, spiWrite, spiXfer, waveAddGeneric, waveAddNew, waveAddSerial, waveClear, waveCreate, waveDelete, waveSendOnce, waveSendRepeat, waveTxBusy, waveTxStop
-
Constructor Details
-
CommonPigpio
public CommonPigpio()
-
-
Method Details
-
gpioShiftOut
public void gpioShiftOut(int gpioData, int gpioClock, boolean bitOrder, byte value) throws PigpioExceptionShift out a byte of data to a given pin. Note that this function is implemented in Javacode.- Specified by:
gpioShiftOut
in interfaceJPigpio
- Parameters:
gpioData
- The gpio to which to write the data.gpioClock
- The clock gpio to pulse. The clock level is high.bitOrder
- The order of the bitsvalue
- The value of the byte to write.- Throws:
PigpioException
- on pigpiod error
-
gpioShiftOut
public void gpioShiftOut(GPIO gpioData, GPIO gpioClock, boolean bitOrder, byte value) throws PigpioException- Specified by:
gpioShiftOut
in interfaceJPigpio
- Throws:
PigpioException
-
gpioShiftOut
public void gpioShiftOut(int gpioData, int gpioClock, boolean clockLevel, boolean bitOrder, byte value) throws PigpioExceptionShift out a byte of data to a given pin. Note that this function is implemented in Javacode.- Specified by:
gpioShiftOut
in interfaceJPigpio
- Parameters:
gpioData
- The gpio to which to write the data.gpioClock
- The clock gpio to pulse.clockLevel
- The value of the clock pulsebitOrder
- The order of the bitsvalue
- The value of the byte to write.- Throws:
PigpioException
- on pigpiod error
-
gpioShiftOut
public void gpioShiftOut(GPIO gpioData, GPIO gpioClock, boolean clockLevel, boolean bitOrder, byte value) throws PigpioException- Specified by:
gpioShiftOut
in interfaceJPigpio
- Throws:
PigpioException
-
gpioDelay
- Specified by:
gpioDelay
in interfaceJPigpio
- Throws:
PigpioException
-