public abstract class CanopenSlave extends Object
| Modifier and Type | Field and Description |
|---|---|
protected CanopenMaster |
master |
protected int |
nodeId |
| Constructor and Description |
|---|
CanopenSlave(CanopenMaster master,
int nodeId) |
| Modifier and Type | Method and Description |
|---|---|
abstract int[] |
getCobIds() |
int |
getNodeId() |
abstract void |
onBootup()
Asynchronous reception of boot-up messages.
|
abstract void |
onEmergencyMessage(int errCode,
int errReg)
Asynchronous reception of CANopen emergency messages.
|
protected abstract void |
updateWithPDO(int cob_id,
long pdoVal)
Updates this node's inputs with the received pdos.
|
protected final CanopenMaster master
protected final int nodeId
public CanopenSlave(CanopenMaster master, int nodeId)
@Command public int getNodeId()
public abstract void onBootup()
public abstract void onEmergencyMessage(int errCode,
int errReg)
errCode - error codeerrReg - error registerprotected abstract void updateWithPDO(int cob_id,
long pdoVal)
cob_id - of the received pdopdoVal - content of the received pdopublic abstract int[] getCobIds()
Copyright © 2022 LSST. All rights reserved.