public class Maq20DiscretePWM extends Maq20DiscreteFunc
TIMEBASE_MSECS, TIMEBASE_SECS, TIMEBASE_USECS| Constructor and Description |
|---|
Maq20DiscretePWM(Maq20 maq,
int modId)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
enable(int chan)
Enables the PWM generator.
|
void |
enableOutput2(int chan,
boolean enable)
Sets the output 2 enabled state.
|
int |
getLowTime1(int chan)
Gets the low time for output 1.
|
int |
getLowTime2(int chan)
Gets the low time for output 2.
|
int |
getPeriod(int chan)
Gets the period.
|
int |
getTimebase(int chan)
Gets the timebase.
|
boolean |
isEnabled(int chan)
Gets whether the PWM generator is enabled.
|
boolean |
isOutput2Enabled(int chan)
Gets the output 2 enabled state.
|
void |
setLowTime1(int chan,
int time)
Sets the low time for output 1.
|
void |
setLowTime2(int chan,
int time)
Sets the low time for output 2.
|
void |
setPeriod(int chan,
int period)
Sets the period.
|
void |
setTimebase(int chan,
int base)
Sets the timebase.
|
armFunction, disarmFunction, isFunctionArmed, saveConfigreadDiscIn, readDiscIn, readDiscIn, readDiscOut, readDiscOut, readDiscOut, writeDisc, writeDisc, writeDiscpublic Maq20DiscretePWM(Maq20 maq, int modId) throws org.lsst.ccs.drivers.commons.DriverException
maq - The underlying Maq20 objectmodId - The module registration IDorg.lsst.ccs.drivers.commons.DriverExceptionpublic void enable(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The function channel (0 or 1)org.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isEnabled(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The function channel (0 or 1)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setTimebase(int chan,
int base)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The function channel (0 or 1)base - The encoded timebase valueorg.lsst.ccs.drivers.commons.DriverExceptionpublic int getTimebase(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The function channel (0 or 1)org.lsst.ccs.drivers.commons.DriverExceptionpublic void enableOutput2(int chan,
boolean enable)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The function channel (0 or 1)enable - Whether to enable output 2org.lsst.ccs.drivers.commons.DriverExceptionpublic boolean isOutput2Enabled(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The function channel (0 or 1)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setPeriod(int chan,
int period)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The function channel (0 or 1)period - The periodorg.lsst.ccs.drivers.commons.DriverExceptionpublic int getPeriod(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The function channel (0 or 1)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setLowTime1(int chan,
int time)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The function channel (0 or 1)time - The low timeorg.lsst.ccs.drivers.commons.DriverExceptionpublic int getLowTime1(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The function channel (0 or 1)org.lsst.ccs.drivers.commons.DriverExceptionpublic void setLowTime2(int chan,
int time)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The function channel (0 or 1)time - The low timeorg.lsst.ccs.drivers.commons.DriverExceptionpublic int getLowTime2(int chan)
throws org.lsst.ccs.drivers.commons.DriverException
chan - The function channel (0 or 1)org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2018 LSST. All rights reserved.