Class CANOpenMPDO
- java.lang.Object
-
- org.apache.plc4x.java.canopen.readwrite.CANOpenMPDO
-
- All Implemented Interfaces:
Message,Serializable
public class CANOpenMPDO extends Object implements Message
-
-
Field Summary
Fields Modifier and Type Field Description protected IndexAddressaddressprotected byte[]dataprotected shortnode
-
Constructor Summary
Constructors Constructor Description CANOpenMPDO(short node, IndexAddress address, byte[] data)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)IndexAddressgetAddress()byte[]getData()intgetLengthInBits()intgetLengthInBytes()shortgetNode()inthashCode()voidserialize(WriteBuffer writeBuffer)static CANOpenMPDOstaticParse(ReadBuffer readBuffer)static CANOpenMPDOstaticParse(ReadBuffer readBuffer, Object... args)StringtoString()
-
-
-
Field Detail
-
node
protected final short node
-
address
protected final IndexAddress address
-
data
protected final byte[] data
-
-
Constructor Detail
-
CANOpenMPDO
public CANOpenMPDO(short node, IndexAddress address, byte[] data)
-
-
Method Detail
-
getNode
public short getNode()
-
getAddress
public IndexAddress getAddress()
-
getData
public byte[] getData()
-
serialize
public void serialize(WriteBuffer writeBuffer) throws SerializationException
- Specified by:
serializein interfaceSerializable- Throws:
SerializationException
-
getLengthInBytes
public int getLengthInBytes()
- Specified by:
getLengthInBytesin interfaceMessage
-
getLengthInBits
public int getLengthInBits()
- Specified by:
getLengthInBitsin interfaceMessage
-
staticParse
public static CANOpenMPDO staticParse(ReadBuffer readBuffer, Object... args) throws ParseException
- Throws:
ParseException
-
staticParse
public static CANOpenMPDO staticParse(ReadBuffer readBuffer) throws ParseException
- Throws:
ParseException
-
-