com.flash3388.flashlib.io.AnalogOutput Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flashlib.core.io Show documentation
Show all versions of flashlib.core.io Show documentation
Robotics development framework (flashlib.core.io)
The newest version!
package com.flash3388.flashlib.io;
/**
* Interface for analog output ports. This interface is used by devices
* which require analog output ports for output, allowing for different implementations.
*
* @since FlashLib 1.2.0
*/
public interface AnalogOutput extends AnalogPort {
/**
* Sets the analog output value for the port. This corresponds to
* a voltage value and depends on the used implementation.
*
* @param value analog output value
*/
void setValue(int value);
/**
* Gets the current analog value measured on the port. This corresponds to
* a voltage value and depends on the used implementation.
*
* @return analog input value
*/
int getValue();
/**
* Sets the analog output voltage for the port.
*
* @param voltage analog output voltage in volts
*/
void setVoltage(double voltage);
/**
* Gets the current analog voltage measured on the port.
*
* @return analog input voltage in volts
*/
double getVoltage();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy