communication_macros.inc

Brief:  Communication related macro definitions

Includes

serial_interface_macros.inc parallel_interface_macros.inc

Macros
m_comm_read_packet

Read a data packet packet from the specified interface

PEAK cycles: ~ cycle - depends on configuration

Pseudo code:

data_reg = value;
Parameters
INTERFACE

PARALLEL16 : 16 bit paralllel interface PARALLEL8  : 8 bit paralllel interface SPI  : SPI interface

dataReg

To store read data packet

CONFIG

Dependent on the invoked macro

m_comm_read_frame

Read a data frame composed of packets from the specified interface

PEAK cycles: ~ cycle - depends on configuration

Pseudo code:

data_reg = value;
Parameters
INTERFACE

PARALLEL16 : 16 bit paralllel interface PARALLEL8  : 8 bit paralllel interface SPI  : SPI interface

NO_OF_PACKETS

Number of data packets per frame

WAIT_CSRD

Delay required between CS and SCLK trigger

tempDataReg

To store read serial data packet temporarily

packetId

To track Packet indices (8 bits wide)

dataRegBaseAddr

(8 bits) Address of starting data register => register R1.bx must be used

CONFIG

Dependent on the invoked macro