|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrix.can.cbus.CbusMessage
public class CbusMessage
Class to allow use of CBUS concepts to access the underlying can message
| Field Summary | |
|---|---|
(package private) static org.slf4j.Logger |
log
|
| Constructor Summary | |
|---|---|
CbusMessage()
|
|
| Method Summary | |
|---|---|
static CanMessage |
getBootCheck(int c,
int header)
Microchip AN247 format message to send the checksum for comparison |
static CanMessage |
getBootEntry(int nn,
int header)
CBUS bootloader commands |
static CanMessage |
getBootInitialise(int a,
int header)
Microchip AN247 format message to initialise the bootloader and set the start address |
static CanMessage |
getBootNop(int a,
int header)
Microchip AN247 format NOP message to set address The CBUS bootloader uses extended ID frames |
static CanMessage |
getBootReset(int header)
Microchip AN247 format message to reset and enter normal mode |
static CanMessage |
getBootTest(int header)
Microchip AN247 format message to check if a module is in boot mode |
static CanMessage |
getBootWriteData(int[] d,
int header)
Microchip AN247 format message to write 8 bytes of data |
static int |
getDataLength(CanMessage m)
|
static int |
getDataLength(CanReply r)
|
static int |
getEvent(CanMessage m)
|
static int |
getEvent(CanReply r)
|
static int |
getEventType(CanMessage m)
|
static int |
getEventType(CanReply r)
|
static int |
getId(CanMessage m)
|
static int |
getId(CanReply r)
|
static int |
getNodeNumber(CanMessage m)
|
static int |
getNodeNumber(CanReply r)
|
static int |
getOpcode(CanMessage m)
|
static int |
getOpcode(CanReply r)
|
static CanMessage |
getOpsModeWriteCV(int mAddress,
boolean mLongAddr,
int cv,
int val,
int header)
CBUS Ops mode programmer commands |
static int |
getPri(CanMessage m)
|
static int |
getPri(CanReply r)
|
static CanMessage |
getReadCV(int cv,
int mode,
int header)
CBUS programmer commands |
static CanMessage |
getRequestTrackOff(int header)
|
static CanMessage |
getRequestTrackOn(int header)
CBUS Power commands |
static CanMessage |
getWriteCV(int cv,
int val,
int mode,
int header)
|
static boolean |
isArst(CanReply m)
|
static boolean |
isBootConfirm(CanReply r)
|
static boolean |
isBootError(CanReply r)
|
static boolean |
isBootOK(CanReply r)
|
static boolean |
isEvent(CanMessage m)
|
static boolean |
isEvent(CanReply r)
|
static boolean |
isRequestTrackOff(CanMessage m)
|
static boolean |
isRequestTrackOn(CanMessage m)
|
static boolean |
isTrackOff(CanReply m)
|
static boolean |
isTrackOn(CanReply m)
|
static void |
setId(CanMessage m,
int id)
|
static void |
setId(CanReply r,
int id)
|
static void |
setPri(CanMessage m,
int pri)
|
static void |
setPri(CanReply r,
int pri)
|
static String |
toAddress(CanMessage m)
|
static String |
toAddress(CanReply r)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static org.slf4j.Logger log
| Constructor Detail |
|---|
public CbusMessage()
| Method Detail |
|---|
public static int getId(CanMessage m)
public static int getPri(CanMessage m)
public static int getOpcode(CanMessage m)
public static int getDataLength(CanMessage m)
public static int getNodeNumber(CanMessage m)
public static int getEvent(CanMessage m)
public static int getEventType(CanMessage m)
public static boolean isEvent(CanMessage m)
public static void setId(CanMessage m,
int id)
public static void setPri(CanMessage m,
int pri)
public static String toAddress(CanMessage m)
public static boolean isRequestTrackOff(CanMessage m)
public static boolean isRequestTrackOn(CanMessage m)
public static int getId(CanReply r)
public static int getPri(CanReply r)
public static int getOpcode(CanReply r)
public static int getDataLength(CanReply r)
public static int getNodeNumber(CanReply r)
public static int getEvent(CanReply r)
public static int getEventType(CanReply r)
public static boolean isEvent(CanReply r)
public static void setId(CanReply r,
int id)
public static void setPri(CanReply r,
int pri)
public static String toAddress(CanReply r)
public static boolean isTrackOff(CanReply m)
public static boolean isTrackOn(CanReply m)
public static boolean isArst(CanReply m)
public static CanMessage getReadCV(int cv,
int mode,
int header)
public static CanMessage getWriteCV(int cv,
int val,
int mode,
int header)
public static CanMessage getOpsModeWriteCV(int mAddress,
boolean mLongAddr,
int cv,
int val,
int header)
public static CanMessage getRequestTrackOn(int header)
public static CanMessage getRequestTrackOff(int header)
public static CanMessage getBootEntry(int nn,
int header)
public static CanMessage getBootNop(int a,
int header)
public static CanMessage getBootReset(int header)
public static CanMessage getBootInitialise(int a,
int header)
public static CanMessage getBootCheck(int c,
int header)
public static CanMessage getBootTest(int header)
public static CanMessage getBootWriteData(int[] d,
int header)
public static boolean isBootError(CanReply r)
public static boolean isBootOK(CanReply r)
public static boolean isBootConfirm(CanReply r)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||