Logic Analyzer RPi
Logic Analyzer for the Raspberry Pi
 All Classes Files Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
microwire Class Reference

Example class decoding instructions sent to a NMC9314 EEPROM memory (Microwire interface) More...

#include <microwire.h>

Inheritance diagram for microwire:
protocol

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.
- Public Member Functions inherited from protocol
 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.
messagemosi_mess
 array of message decoded from mosi
messagemiso_mess
 array of message decoded from miso
uint32_t nmessage
 number of messages
- Public Attributes inherited from protocol
logic_input capture
 Contain the raw capture of all pins.

Detailed Description

Example class decoding instructions sent to a NMC9314 EEPROM memory (Microwire interface)

Constructor & Destructor Documentation

microwire::microwire ( uint8_t  pins[] = NULL,
uint8_t  npin = 4 
)

Constructor.

call init_acquisition()

Member Function Documentation

void microwire::decode ( void  )
virtual

Perform all the decoding.

This function decodes:

  • activity from CS pin,
  • transitions from CLK,
  • binary from MOSI and MISO
  • messages from MOSI binary,
  • messages from MISO binary

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.

int microwire::Draw ( mglGraph *  gr)
virtual

Draw all messages.

Parameters
grpointer to mglGraph object

Implements protocol.

Member Data Documentation

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

See Also
decode_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

See Also
decode_mosi()

The documentation for this class was generated from the following files: