|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICommunicationProtocol
Interface for communication protocol layers used between the common layer and connection protocols.
Field Summary | |
---|---|
static String |
P_KEP
Identifier for the KEP protocol. |
static String |
P_KREP
Identifier for the KReP protocol. |
Method Summary | |
---|---|
void |
addCommunicationListener(ICommunicationListener listener)
Adds a communication listener that is notified of all transferred data. |
void |
continuousRun()
When executed the target is set to continuous mode. |
int[] |
getExecutionTrace()
Requests an execution trace for the last tick command. |
String |
getTargetInfo()
Requests target information from the target and translates the received return string. |
boolean |
loadProgram(IAssembler program,
IProgressMonitor monitor)
Loads a program onto the connected target. |
void |
removeCommunicationListener(ICommunicationListener listener)
Removes a communication listener from the list. |
void |
reset()
Resets the current program on the target. |
void |
stopContinuous()
Stops continuous mode and returns to single tick mode. |
int |
tick(int maxSignals,
LinkedList<Signal> inputs,
LinkedList<Signal> outputs)
Performs a program tick by sending the global input signal status, executing the tick command and reading the global output signal status. |
boolean |
verifyCommunication()
Verifies communication by sending a command and receiving a return string. |
Field Detail |
---|
static final String P_KEP
static final String P_KREP
Method Detail |
---|
void addCommunicationListener(ICommunicationListener listener)
listener
- listener to be addedvoid removeCommunicationListener(ICommunicationListener listener)
listener
- listener to be removedboolean verifyCommunication() throws CommunicationException
CommunicationException
- when no return string could be readString getTargetInfo() throws CommunicationException
CommunicationException
- when the return string is invalidboolean loadProgram(IAssembler program, IProgressMonitor monitor) throws CommunicationException, LoadException
program
- array of hex encoded instructionsmonitor
- progress-monitor, null if nothing shall be displayed
CommunicationException
- when the program string has an invalid length
LoadException
- cannot execute this programvoid reset() throws CommunicationException
CommunicationException
- when an invalid reply was receivedint tick(int maxSignals, LinkedList<Signal> inputs, LinkedList<Signal> outputs) throws CommunicationException
maxSignals
- number of signals in the current program.inputs
- input signalsoutputs
- An empty list of output signals, the actual outputs are added by the tick function.
CommunicationException
- when an invalid reply was receivedint[] getExecutionTrace() throws CommunicationException
CommunicationException
- when the received trace is invalidvoid continuousRun() throws CommunicationException
CommunicationException
- when an exception occurs while sending the commandvoid stopContinuous() throws CommunicationException
CommunicationException
- when an invalid reply was received
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |