public class PWMOutput extends java.lang.Object implements HardwareDevice
Constructor and Description |
---|
PWMOutput(PWMOutputController controller,
int port)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this device
|
java.lang.String |
getConnectionInfo()
Get connection information about this device in a human readable format
|
java.lang.String |
getDeviceName()
Device Name
|
int |
getPulseWidthOutputTime()
Get the pulse width output time for this port
|
int |
getPulseWidthPeriod()
Get the pulse width output
|
int |
getVersion()
Version
|
void |
setPulseWidthOutputTime(int time)
Set the pulse width output time for this port.
|
void |
setPulseWidthPeriod(int period)
Set the pulse width output period.
|
public PWMOutput(PWMOutputController controller, int port)
controller
- Digital port controller this port is attached toport
- port on the digital port controllerpublic void setPulseWidthOutputTime(int time)
time
- pulse width for the port in microseconds.public int getPulseWidthOutputTime()
public void setPulseWidthPeriod(int period)
period
- pulse repetition period in microseconds.public int getPulseWidthPeriod()
public java.lang.String getDeviceName()
HardwareDevice
getDeviceName
in interface HardwareDevice
public java.lang.String getConnectionInfo()
HardwareDevice
getConnectionInfo
in interface HardwareDevice
public int getVersion()
HardwareDevice
getVersion
in interface HardwareDevice
public void close()
HardwareDevice
close
in interface HardwareDevice