public class CWrapperUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
buildRsdoCommand(int nodeID,
int index,
int subindex)
build a Can Open rsdo Command that can understand the C wrapper.
|
static String |
buildWsdoCommand(int nodeID,
int index,
int subindex,
int size,
long data)
build a Can Open wsdo Command that can understand the C wrapper.
|
static void |
checkCommand(String command) |
static org.lsst.ccs.drivers.canopenjni.PDOData |
createPDOData(String pdoLine)
Creates a PDOData.
|
static boolean |
isValidCommandWord(String command)
returns true if the command given as argument is an available CANopen command.
|
public static String buildWsdoCommand(int nodeID, int index, int subindex, int size, long data)
nodeID - index - subindex - size - data - public static String buildRsdoCommand(int nodeID, int index, int subindex)
nodeID - index - subindex - public static boolean isValidCommandWord(String command)
command - public static void checkCommand(String command)
command - IllegalArgumentException - if command is not a valid command.public static org.lsst.ccs.drivers.canopenjni.PDOData createPDOData(String pdoLine)
pdoLine - something like : "ADC1_1=10,ADC1_2=F53B, ...."Copyright © 2017 LSST. All rights reserved.