Critical Link MityCam SoC Firmware  1.0
Critical Link MityCam SoC Firmware
LatticeMIPI.cpp File Reference

This file contains the implementation for the Lattice MIPI SPI interface class. More...

#include "LatticeMIPI.h"
#include "StatusReporter/StatusReporter.h"
#include "libdaq/gpio.h"
Include dependency graph for LatticeMIPI.cpp:

Macros

#define REG_MAGIC_OFFSET   0
 
#define REG_CTRL_OFFSET   1
 
#define REG_VER_OFFSET   2
 
#define REG_NUM_LANES_OFFSET   3
 
#define REG_MAGIC   0xDE
 
#define REG_CTRL_BIT_SRST   (1<<0)
 
#define REG_CTRL_BIT_DPHY_PD   (1<<1)
 
#define REG_CTRL_BIT_DPHY_SRST   (1<<2)
 
#define REG_CTRL_BIT_RST_BYTE_FR   (1<<3)
 
#define REG_CTRL_BIT_RST_BYTE   (1<<4)
 
#define REG_CTRL_BIT_PRBSEN   (1<<5)
 

Detailed Description

This file contains the implementation for the Lattice MIPI SPI interface class.

Macro Definition Documentation

◆ REG_CTRL_BIT_DPHY_PD

#define REG_CTRL_BIT_DPHY_PD   (1<<1)

◆ REG_CTRL_BIT_DPHY_SRST

#define REG_CTRL_BIT_DPHY_SRST   (1<<2)

◆ REG_CTRL_BIT_PRBSEN

#define REG_CTRL_BIT_PRBSEN   (1<<5)

◆ REG_CTRL_BIT_RST_BYTE

#define REG_CTRL_BIT_RST_BYTE   (1<<4)

◆ REG_CTRL_BIT_RST_BYTE_FR

#define REG_CTRL_BIT_RST_BYTE_FR   (1<<3)

◆ REG_CTRL_BIT_SRST

#define REG_CTRL_BIT_SRST   (1<<0)

◆ REG_CTRL_OFFSET

#define REG_CTRL_OFFSET   1

◆ REG_MAGIC

#define REG_MAGIC   0xDE

◆ REG_MAGIC_OFFSET

#define REG_MAGIC_OFFSET   0

◆ REG_NUM_LANES_OFFSET

#define REG_NUM_LANES_OFFSET   3

◆ REG_VER_OFFSET

#define REG_VER_OFFSET   2