public class CanFestivalJNI extends Object implements CanOpenInterface
| Constructor and Description |
|---|
CanFestivalJNI() |
| 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 |
clearCallBack()
to be used in case of timeout.
|
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)
Slave reset
|
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 |
setTimeoutMillis(long to) |
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 public void addReceivedPDO(int cobId)
CanOpenInterfaceaddReceivedPDO in interface CanOpenInterface@Command
public void init(int master,
String baud,
String busName,
int nodeID)
CanOpenInterfaceinit in interface CanOpenInterfacemaster - 1 for master, 0 for slave.baud - "125K","1M",...busName - the bus name (0 for can0, 1 for can1)nodeID - the nodeIDpublic void setEmergencyMessageListener(EmergencyMessageListener eml)
setEmergencyMessageListener in interface CanOpenInterfacepublic void setBootMessageListener(BootMessageListener bml)
setBootMessageListener in interface CanOpenInterface@Command public PDOData sync() throws org.lsst.ccs.drivers.commons.DriverException
sync in interface CanOpenInterfaceorg.lsst.ccs.drivers.commons.DriverException@Command public int scan()
CanOpenInterfacescan in interface CanOpenInterface@Command public String info(int nodeID) throws org.lsst.ccs.drivers.commons.DriverException
CanOpenInterfaceinfo in interface CanOpenInterfacenodeID - the node idorg.lsst.ccs.drivers.commons.DriverException@Command
public void wsdo(int nodeId,
int index,
int subindex,
int size,
long data)
throws org.lsst.ccs.drivers.commons.DriverException
wsdo in interface CanOpenInterfacenodeId - 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 org.lsst.ccs.drivers.commons.DriverException
CanOpenInterfacersdo in interface CanOpenInterfacenodeId - the node idindex - the indexsubindex - the subindexorg.lsst.ccs.drivers.commons.DriverExceptionpublic void ssta(int nodeId)
ssta in interface CanOpenInterfacenodeId - public void ssto(int nodeId)
ssto in interface CanOpenInterfacenodeId - public void reset(int nodeId)
reset in interface CanOpenInterfacenodeId - public void quit()
quit in interface CanOpenInterfacepublic void init()
init in interface CanOpenInterfacepublic void start()
start in interface CanOpenInterfacepublic void stop()
stop in interface CanOpenInterfacepublic boolean isReady()
isReady in interface CanOpenInterface@Command public void setTimeoutMillis(long to)
@Command public void clearCallBack()
Copyright © 2018 LSST. All rights reserved.