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.
|
void |
clearReceivedPDOs() |
String |
info(int nodeID)
Returns the information for the given nodeID.
|
void |
init()
Deprecated.
no-op
|
void |
init(int master,
String baud,
String busName,
int nodeID)
Initialization of the master node.
|
boolean |
isReady() |
void |
quit()
Shuts down the master node.
|
void |
reset(int nodeId) |
long |
rsdo(int nodeId,
int index,
int subindex)
Send a read sdo command.
|
int |
scan()
Sends a scan on the can bus.
|
void |
setBootMessageListener(BootMessageListener bml) |
void |
setEmergencyMessageListener(EmergencyMessageListener eml) |
void |
setNMTStateOperational(int nodeId) |
void |
setPdoTimeout(long to) |
void |
setSdoTimeout(long to) |
void |
ssta(int nodeId)
Slave start
|
void |
ssto(int nodeId)
Slave stop
|
void |
start()
Deprecated.
no-op
|
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)
Send a write sdo command.
|
@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.DriverException@Command
void addReceivedPDO(int cobId)
throws org.lsst.ccs.drivers.commons.DriverException
cobId - org.lsst.ccs.drivers.commons.DriverException@Command
void clearReceivedPDOs()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command PDOData sync() throws org.lsst.ccs.drivers.commons.DriverException, org.lsst.ccs.drivers.commons.DriverTimeoutException, ConcurrentCallException
org.lsst.ccs.drivers.commons.DriverException - in case of a failure accessing the hardware, or if the hardware returns an errororg.lsst.ccs.drivers.commons.DriverTimeoutException - if the hardware doesn't respond within the specified timeoutConcurrentCallException - if a sync command is running and hasn't completed yet@Command
int scan()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command String info(int nodeID) throws org.lsst.ccs.drivers.commons.DriverException
nodeID - the node idorg.lsst.ccs.drivers.commons.DriverException@Command
void wsdo(int nodeId,
int index,
int subindex,
int size,
long data)
throws org.lsst.ccs.drivers.commons.DriverException,
org.lsst.ccs.drivers.commons.DriverTimeoutException,
ConcurrentCallException
nodeId - index - subindex - size - data - org.lsst.ccs.drivers.commons.DriverException - in case of a failure accessing the hardware, or if the hardware returns an errororg.lsst.ccs.drivers.commons.DriverTimeoutException - if the hardware doesn't respond within the specified timeoutConcurrentCallException - if a write sdo / read sdo command was sent on the same node and hasn't completed yet@Command
long rsdo(int nodeId,
int index,
int subindex)
throws org.lsst.ccs.drivers.commons.DriverException,
org.lsst.ccs.drivers.commons.DriverTimeoutException,
ConcurrentCallException
nodeId - index - subindex - org.lsst.ccs.drivers.commons.DriverException - in case of a failure accessing the hardware, or if the hardware returns an errororg.lsst.ccs.drivers.commons.DriverTimeoutException - if the hardware doesn't respond within the specified timeoutConcurrentCallException - if a write sdo / read sdo command was sent on the same node and hasn't completed yet@Command
void ssta(int nodeId)
throws org.lsst.ccs.drivers.commons.DriverException
nodeId - org.lsst.ccs.drivers.commons.DriverException@Command
void ssto(int nodeId)
throws org.lsst.ccs.drivers.commons.DriverException
nodeId - org.lsst.ccs.drivers.commons.DriverException@Command
void reset(int nodeId)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command
void quit()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Deprecated @Command void init() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Deprecated @Command void start() throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command
void stop()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command
boolean isReady()
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command void setEmergencyMessageListener(EmergencyMessageListener eml) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command void setBootMessageListener(BootMessageListener bml) throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command
void setSdoTimeout(long to)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command
void setPdoTimeout(long to)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverException@Command
void setNMTStateOperational(int nodeId)
throws org.lsst.ccs.drivers.commons.DriverException
org.lsst.ccs.drivers.commons.DriverExceptionCopyright © 2022 LSST. All rights reserved.