public class CanopenMaster extends Object
| Constructor and Description |
|---|
CanopenMaster(CanOpenInterface coi) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSlave(CanopenSlave slave) |
String |
info(int nodeID)
Returns the information for the given nodeID.
|
void |
init(int master,
String baud,
String busName,
int nodeID)
Initialization of the master node.
|
long |
rsdo(int nodeId,
int index,
int subindex)
Read device entry
|
void |
sync()
Sends a sync message on the canbus and synchronously waits for the received
pdo configured in the master to be received.
|
void |
wsdo(int nodeId,
int index,
int subindex,
int size,
int data) |
public CanopenMaster(CanOpenInterface coi)
@Command
public void init(int master,
String baud,
String busName,
int nodeID)
throws org.lsst.ccs.drivers.commons.DriverException
master - 1 for master, 0 for slave.baud - "125K","1M",...busName - the bus name (0 for can0, 1 for can1)nodeID - the nodeIDorg.lsst.ccs.drivers.commons.DriverExceptionpublic void addSlave(CanopenSlave slave) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command
public void sync()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command public String info(int nodeID) throws org.lsst.ccs.drivers.commons.DriverException
nodeID - the node idorg.lsst.ccs.drivers.commons.DriverException@Command
public void wsdo(int nodeId,
int index,
int subindex,
int size,
int data)
throws org.lsst.ccs.drivers.commons.DriverException
nodeId - the node idindex - the indexsubindex - the sub indexsize - the sizedata - the dataorg.lsst.ccs.drivers.commons.DriverException@Command
public long rsdo(int nodeId,
int index,
int subindex)
throws SDOException,
org.lsst.ccs.drivers.commons.DriverException
nodeId - the node idindex - the indexsubindex - the subindexorg.lsst.ccs.drivers.commons.DriverExceptionSDOExceptionCopyright © 2021 LSST. All rights reserved.