Example class decoding instructions sent to a NMC9314 EEPROM memory (Microwire interface) More...
#include <microwire.h>
Public Member Functions | |
microwire (uint8_t pins[]=NULL, uint8_t npin=4) | |
Constructor. | |
~microwire () | |
Destructor. | |
void | decode () |
Perform all the decoding. | |
void | decode_mosi () |
function extracting messages from MOSI | |
void | decode_miso () |
function extracting messages from MISO | |
int | Draw (mglGraph *gr) |
Draw all messages. | |
![]() | |
protocol (uint8_t pins[]=NULL, uint8_t npin=0) | |
Example constructor. | |
virtual void | init_acquisition (uint8_t pins[], uint8_t npin) |
Initialize acquisition. May not be redeclared. | |
virtual void | acquire (uint32_t npoint=2000, float period=1.0) |
Start acquisition. May not be redeclared. | |
virtual void | Save (const char *filename) |
Save acquisition data. May not be redeclared. | |
virtual void | Load (const char *filename) |
Load acquisition data. May not be redeclared. |
Public Attributes | |
activity | cs |
Contain the activity. | |
transition | clk |
Contain the clock transitions. | |
binary | mosi |
Contain the MOSI binary data. | |
binary | miso |
Contain the MISO binary data. | |
message * | mosi_mess |
array of message decoded from mosi | |
message * | miso_mess |
array of message decoded from miso | |
uint32_t | nmessage |
number of messages | |
![]() | |
logic_input | capture |
Contain the raw capture of all pins. |
Example class decoding instructions sent to a NMC9314 EEPROM memory (Microwire interface)
microwire::microwire | ( | uint8_t | pins[] = NULL , |
uint8_t | npin = 4 |
||
) |
Constructor.
call init_acquisition()
|
virtual |
Perform all the decoding.
This function decodes:
Implements protocol.
void microwire::decode_miso | ( | ) |
function extracting messages from MISO
Puts the extracted messages array in miso_mess, from binary miso and activity cs.
void microwire::decode_mosi | ( | ) |
function extracting messages from MOSI
Puts the extracted messages array in mosi_mess, from binary mosi and activity cs.
|
virtual |
transition microwire::clk |
Contain the clock transitions.
Determined from CLK pin
activity microwire::cs |
Contain the activity.
Determined from CS pin
binary microwire::miso |
Contain the MISO binary data.
Determined from MISO pin rawdata, clock transitions and activity
message* microwire::miso_mess |
array of message decoded from miso
binary microwire::mosi |
Contain the MOSI binary data.
Determined from MOSI pin rawdata, clock transitions and activity
message* microwire::mosi_mess |
array of message decoded from mosi