public interface CanOpenInterface
| Modifier and Type | Method and Description |
|---|---|
void |
addReceivedPDO(int cobId)
Configures the pdo with the given cob_id for reception on the master node.
|
String |
info(int nodeID)
Returns the information for the given nodeID.
|
void |
init() |
void |
init(int master,
String baud,
String busName,
int nodeID)
Initialization of the master node.
|
boolean |
isReady() |
void |
quit() |
void |
reset(int nodeId) |
long |
rsdo(int nodeId,
int index,
int subindex)
Read device entry
|
int |
scan()
Sends a scan on the can bus.
|
void |
setBootMessageListener(BootMessageListener bml) |
void |
setEmergencyMessageListener(EmergencyMessageListener eml) |
void |
ssta(int nodeId)
Slave start
|
void |
ssto(int nodeId)
Slave stop
|
void |
start() |
void |
stop() |
PDOData |
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,
long data) |
@Command
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.DriverExceptionvoid addReceivedPDO(int cobId)
throws org.lsst.ccs.drivers.commons.DriverException
cobId - org.lsst.ccs.drivers.commons.DriverExceptionPDOData sync() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionint scan() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionString info(int nodeID) throws org.lsst.ccs.drivers.commons.DriverException
nodeID - the node idorg.lsst.ccs.drivers.commons.DriverExceptionvoid wsdo(int nodeId,
int index,
int subindex,
int size,
long 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.DriverExceptionlong rsdo(int nodeId,
int index,
int subindex)
throws org.lsst.ccs.drivers.commons.DriverException
nodeId - the node idindex - the indexsubindex - the subindexorg.lsst.ccs.drivers.commons.DriverExceptionvoid ssta(int nodeId) throws org.lsst.ccs.drivers.commons.DriverException
nodeId - org.lsst.ccs.drivers.commons.DriverExceptionvoid ssto(int nodeId) throws org.lsst.ccs.drivers.commons.DriverException
nodeId - org.lsst.ccs.drivers.commons.DriverExceptionvoid reset(int nodeId)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionvoid quit() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionvoid init() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionvoid start()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionvoid stop() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionboolean isReady()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionvoid setEmergencyMessageListener(EmergencyMessageListener eml) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionvoid setBootMessageListener(BootMessageListener bml) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2017 LSST. All rights reserved.