public class PWMOutputImpl extends java.lang.Object implements PWMOutput
HardwareDevice.Manufacturer| Modifier and Type | Field and Description |
|---|---|
protected PWMOutputController |
controller |
protected int |
port |
| Constructor and Description |
|---|
PWMOutputImpl(PWMOutputController controller,
int port)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this device
|
java.lang.String |
getConnectionInfo()
Get connection information about this device in a human readable format
|
java.lang.String |
getDeviceName()
Returns a string suitable for display to the user as to the type of device.
|
HardwareDevice.Manufacturer |
getManufacturer()
Returns an indication of the manufacturer of this device.
|
int |
getPulseWidthOutputTime()
Get the pulse width output time for this port
|
int |
getPulseWidthPeriod()
Get the pulse width output
|
int |
getVersion()
Version
|
void |
resetDeviceConfigurationForOpMode()
Resets the device's configuration to that which is expected at the beginning of an OpMode.
|
void |
setPulseWidthOutputTime(int time)
Set the pulse width output time for this port.
|
void |
setPulseWidthPeriod(int period)
Set the pulse width output period.
|
protected PWMOutputController controller
protected int port
public PWMOutputImpl(PWMOutputController controller, int port)
controller - Digital port controller this port is attached toport - port on the digital port controllerpublic void setPulseWidthOutputTime(int time)
setPulseWidthOutputTime in interface PWMOutputtime - pulse width for the port in microseconds.public int getPulseWidthOutputTime()
getPulseWidthOutputTime in interface PWMOutputpublic void setPulseWidthPeriod(int period)
setPulseWidthPeriod in interface PWMOutputperiod - pulse repetition period in microseconds.public int getPulseWidthPeriod()
getPulseWidthPeriod in interface PWMOutputpublic HardwareDevice.Manufacturer getManufacturer()
HardwareDevicegetManufacturer in interface HardwareDevicepublic java.lang.String getDeviceName()
HardwareDevicegetDeviceName in interface HardwareDevicepublic java.lang.String getConnectionInfo()
HardwareDevicegetConnectionInfo in interface HardwareDevicepublic int getVersion()
HardwareDevicegetVersion in interface HardwareDevicepublic void resetDeviceConfigurationForOpMode()
HardwareDeviceresetDeviceConfigurationForOpMode in interface HardwareDevicepublic void close()
HardwareDeviceclose in interface HardwareDevice