|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpeak.can.basic.TPCANMsg
public class TPCANMsg
Defines a CAN message.
| Field Summary | |
|---|---|
static byte |
MSGTYPE_EXTENDED
29bit message type (extended) |
static byte |
MSGTYPE_RTR
Remote request |
static byte |
MSGTYPE_STANDARD
11bit message type (standard) |
| Constructor Summary | |
|---|---|
TPCANMsg()
Default constructor |
|
TPCANMsg(int id,
byte type,
byte length,
byte[] data)
Constructs a new message object. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Clones this message object. |
byte[] |
getData()
Gets the data of this message. |
int |
getID()
Gets the id of this message. |
byte |
getLength()
Gets the length of this message. |
byte |
getType()
Gets the type of this message. |
void |
setData(byte[] data,
byte length)
Sets the data and length of this message. |
void |
setID(int id)
Sets the id of this message. |
void |
setLength(byte length)
Sets the length of this message. |
void |
setType(byte type)
Sets the type of this message. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte MSGTYPE_STANDARD
public static final byte MSGTYPE_RTR
public static final byte MSGTYPE_EXTENDED
| Constructor Detail |
|---|
public TPCANMsg()
public TPCANMsg(int id,
byte type,
byte length,
byte[] data)
id - the message idtype - the message typelength - the message lengthdata - the message data| Method Detail |
|---|
public void setID(int id)
id - the message id
public void setData(byte[] data,
byte length)
data - the message datalength - the message lengthpublic void setLength(byte length)
length - the length of the messagepublic void setType(byte type)
type - the message typepublic int getID()
public byte[] getData()
public byte getLength()
public byte getType()
public java.lang.Object clone()
clone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||