|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.flightpanels.scs.CanAeroBusConnector
public class CanAeroBusConnector
Java port of the CanAeroBusConnector class of libcanaero, v1.0. Handles CAN Aerospace message header and decodes node services. For communicating with CAN Aerospace, various node services must be handled and some book keeping on connected clients must be done. This class handles all this.
| Constructor Summary | |
|---|---|
CanAeroBusConnector(ICanAeroDataManager manager,
INetworkConnector<can_t> connector,
short own_node_id,
short config_revision)
|
|
| Method Summary | |
|---|---|
short |
ownNodeId()
|
void |
receiveMessage(can_t message)
Processes service requests and responses, filters normal operation data. |
void |
receiveMessage(java.util.Vector<can_t> msg)
Processes service requests and responses, filters normal operation data. |
void |
send(can_t msg)
To be called synchronously |
void |
send(java.util.Vector<can_t> msg)
To be called synchronously |
void |
sendDRS(long request_id,
boolean id29,
short node_id)
Send data request service |
void |
sendIDS(short node_id)
|
void |
sendMCS(short node_id,
int module,
int mode)
Send module configuration service to a node |
void |
sendSTS(short node_id)
Send state transmission service to a node |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CanAeroBusConnector(ICanAeroDataManager manager,
INetworkConnector<can_t> connector,
short own_node_id,
short config_revision)
manager - handling incoming and outgoing data after protocol processingconnector - the network-accessing instanceown_node_id - your assigned node id or 255 for auto-configurationconfig_revision - minimum revision of SCS variables file required| Method Detail |
|---|
public short ownNodeId()
public void send(can_t msg)
IBusConnector
send in interface IBusConnector<can_t>msg - single message to sendpublic void send(java.util.Vector<can_t> msg)
IBusConnector
send in interface IBusConnector<can_t>msg - array of messages to sendpublic void sendSTS(short node_id)
node_id - addressed node, broadcast by default
public void sendMCS(short node_id,
int module,
int mode)
node_id - adressed node This node service should never be broadcasted,
since implementation is node-dependantmodule - node-dependantmode - node-dependant
public void sendDRS(long request_id,
boolean id29,
short node_id)
request_id - the CAN id you wantid29 - true for 29 bit, false for 11 bit CAN idnode_id - addressed node, broadcast by defaultpublic void sendIDS(short node_id)
public void receiveMessage(can_t message)
receiveMessage in interface IBusConnector<can_t>message - single packet receivedpublic void receiveMessage(java.util.Vector<can_t> msg)
receiveMessage in interface IBusConnector<can_t>msg - array of packets received
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||