I am trying to implement a "smart" plug-in to simulate UART I/O (for PIC24F series), using existing UART simulator.
In MPLABX 3.20, we have to do a
Stimulus ->
Register Injection with a file, setting
Trigger as
Message and
Format as
Pkt.
This action is not specified in MPLABX SDK (or I can't find it).
The actions we can perform to a
SFR object, is
write() that can't be used because it is Read-Only, and
privilegedWrite() that can write data to any register.
I suppose that this will have same results as using
Stimulus ->
Pin/Register Actions, that is not injecting data to UART.
There is also available a
Peripheral object for each UART. In that a
PeripheralObserver can be added, in order to monitor any changes. But there is not any "inject" function.
So how
Stimulus ->
Register Injection action can be implemented in Java, in a byte to byte controlled procedure?
Is there any "special" class for UARTs that we should use?
Finally I Have to mention that there is not any Reference Help for SDK (like that for Android).
We should have a tree of all Classes, as also some info for each constant, variable and method.
(There is a list of them in .../MPLAB_X/doc/Simulator/index.html but it does not seems to be complete)