public class PWM extends IMCMessage
Modifier and Type | Field and Description |
---|---|
static int |
ID_STATIC |
DEFAULT_ENTITY_ID, DEFAULT_SYSTEM_ID
Constructor and Description |
---|
PWM() |
PWM(IMCDefinition defs) |
PWM(IMCMessage msg) |
PWM(short id,
long period,
long duty_cycle) |
Modifier and Type | Method and Description |
---|---|
static PWM |
clone(IMCMessage msg) |
static PWM |
create(java.lang.Object... values) |
long |
getDutyCycle() |
short |
getId() |
long |
getPeriod() |
PWM |
setDutyCycle(long duty_cycle) |
PWM |
setId(short id) |
PWM |
setPeriod(long period) |
asJSON, asXml, cloneMessage, cloneMessage, compareTo, copyFrom, decodeTupleList, dump, encodeTupleList, get, getAbbrev, getAsNumber, getAsString, getBitmask, getDate, getDouble, getDst, getDstEnt, getFieldNames, getFloat, getHeader, getHeaderValue, getInteger, getLong, getLongFieldName, getLongName, getMessage, getMessage, getMessageList, getMessageList, getMessageType, getMgid, getPayloadSize, getProtocolFactory, getRawData, getSize, getSourceName, getSrc, getSrcEnt, getString, getString, getTimestamp, getTimestampMillis, getTupleList, getTypeOf, getUnitsOf, getValue, getValues, hasFlag, hexdump, isNull, isPeriodic, main, makeImmutable, parseXml, payloadMD5, serialize, serialize, setBitMask, setDst, setDstEnt, setHeader, setMessageList, setSrc, setSrcEnt, setTimestamp, setTimestampMillis, setType, setValue, setValues, toString, validate
public static final int ID_STATIC
public PWM()
public PWM(IMCMessage msg)
public PWM(IMCDefinition defs)
public PWM(short id, long period, long duty_cycle)
public static PWM create(java.lang.Object... values)
public static PWM clone(IMCMessage msg) throws java.lang.Exception
java.lang.Exception
public short getId()
public long getPeriod()
public long getDutyCycle()
public PWM setId(short id)
id
- Channel Identifierpublic PWM setPeriod(long period)
period
- Period (µs)public PWM setDutyCycle(long duty_cycle)
duty_cycle
- Duty Cycle (µs)