no-OS
Loading...
Searching...
No Matches
max96793_diag.h File Reference
#include "max96793.h"
#include "gmsl_common.h"
Include dependency graph for max96793_diag.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  max96793_dev_diag_device_id_status
 Structure holding the device ID status of the MAX96793 device. More...
 
struct  max96793_dev_diag_device_revision_status
 Structure holding the device revision status of the MAX96793 device. More...
 
struct  max96793_pipe_diag_decode_error_status
 Structure holding the decode error status of the MAX96793 device. More...
 
struct  max96793_pipe_diag_idle_error_status
 Structure holding the idle error status of the MAX96793 device. More...
 
struct  max96793_link_diag_link_lock_status
 Structure holding the link lock status of the MAX96793 device. More...
 
struct  max96793_pipe_max_retrans_data
 
struct  max96793_pipe_diag_max_retransmission_error_status
 Structure holding the Max Retransmission Error Status. More...
 
struct  max96793_link_diag_line_fault_status
 Structure holding the line fault status of the MAX96793 device. More...
 
struct  max96793_csi_diag_pclkdet_status
 
struct  max96793_pipe_diag_vid_tx_overflow_status
 Structure holding the video transmit overflow status of the MAX96793 device. More...
 
struct  max96793_pipe_diag_vid_tx_pclk_drift_err_status
 Structure holding the video transmit pixel clock drift error status of the MAX96793 device. More...
 
struct  max96793_mem_diag_uncorrectable_2b_mem_ecc_err_status
 Structure holding the uncorrectable 2-bit memory ECC error status of the MAX96793 device. More...
 
struct  max96793_csi_diag_mipi_phy_err_details
 Structure holding the MIPI PHY error details of the MAX96793 device. More...
 
struct  max96793_csi_diag_mipi_ctrl_err_details
 Structure holding the MIPI controller error details of the MAX96793 device. More...
 
struct  max96793_csi_diag_mipi_rx_err_status
 Structure holding the MIPI RX error status of the MAX96793 device. More...
 
struct  max96793_link_diag_phy_low_power_err_status_details
 Structure holding the low power error status details of the MAX96793 device. More...
 
struct  max96793_link_diag_phy_low_power_err_status
 Structure holding the low power error status of the MAX96793 device. More...
 
struct  max96793_csi_diag_mipi_pkt_cnt_status
 Structure holding the MIPI packet count status of the MAX96793 device. More...
 
struct  max96793_pipe_diag_stream_id_status
 Structure holding the stream ID status of the MAX96793 device. More...
 
struct  max96793_link_diag_eom_status
 Structure holding the Eye Open Monitor (EOM) status of the MAX96793 device. More...
 
struct  max96793_dev_diag_rem_err_flg_status
 Structure to hold the Remote error flag status for the MAX96793 device. More...
 
struct  max96793_csi_diag_fec_active_status
 Structure to hold the Forward Error Correction (FEC) active status for the MAX96793 device. More...
 
struct  max96793_csi_video_stream_config
 Structure holding the video stream configuration of the MAX96793 device. More...
 
struct  max96793_lane_config_status
 Structure holding the lane configuration status of the MAX96793 device. More...
 
struct  max96793_pipe_diag_config_status
 Structure holding the pipe configuration status of the MAX96793 device. More...
 
struct  max96793_csi_diag_part_config_status
 Structure holding the CSI configuration status of the MAX96793 device. More...
 
struct  max96793_dev_diag_part_config_status
 Structure holding the device configuration status of the MAX96793 device. More...
 

Macros

#define MAX96793_CSI_DIAG_NUM_OF_MIPI_PKT_READ   (4U)
 
#define MAX96793_CSI_DIAG_MIPI_PKT_READ_DELAY   (10U)
 
#define MAX96793_MAX_LANE_COUNT   (4U)
 
#define MAX96793_MAX_VIDEO_STREAMS   (16U)
 
#define MAX96793_MAX_VIRTUAL_CHANNEL   (16U)
 

Enumerations

enum  max96793_link_diag_lmn_status {
  MAX96793_LINK_DIAG_LMN_SHORT_TO_BAT = 0u ,
  MAX96793_LINK_DIAG_LMN_SHORT_TO_GND = 1u ,
  MAX96793_LINK_DIAG_LMN_NORMAL = 2u ,
  MAX96793_LINK_DIAG_LMN_LINE_OPEN = 3u ,
  MAX96793_LINK_DIAG_LMN_LINE_TO_LINE_SHORT = 4u
}
 Line fault monitor status. More...
 
enum  max96793_link_diag_lmn {
  MAX96793_LINK_LMN_0 = 0u ,
  MAX96793_LINK_LMN_1 = 1u
}
 Line fault monitor number. More...
 
enum  max96793_sensor_lane {
  MAX96793_SENSOR_LANE_0 = 0u ,
  MAX96793_SENSOR_LANE_1 = 1u ,
  MAX96793_SENSOR_LANE_2 = 2u ,
  MAX96793_SENSOR_LANE_3 = 3u
}
 Sensor lane number. More...
 
enum  max96793_serializer_lane {
  MAX96793_SERIALIZER_LANE_0 = 0u ,
  MAX96793_SERIALIZER_LANE_1 = 1u ,
  MAX96793_SERIALIZER_LANE_2 = 2u ,
  MAX96793_SERIALIZER_LANE_3 = 3u
}
 Serializer lane number. More...
 
enum  max96793_lane_polarity {
  MAX96793_LANE_POLARITY_NORMAL = 0u ,
  MAX96793_LANE_POLARITY_INVERSE = 1u
}
 Lane polarity. More...
 
enum  max96793_data_type {
  MAX96793_DATA_TYPE_DEFAULT = 0x0u ,
  MAX96793_DATA_TYPE_GENERIC8_A = 0x10u ,
  MAX96793_DATA_TYPE_GENERIC8_B = 0x11u ,
  MAX96793_DATA_TYPE_EMB8 = 0x12u ,
  MAX96793_DATA_TYPE_YUV422_8BIT = 0x1Eu ,
  MAX96793_DATA_TYPE_YUV422_10BIT = 0x1Fu ,
  MAX96793_DATA_TYPE_RGB565 = 0x22u ,
  MAX96793_DATA_TYPE_RGB666 = 0x23u ,
  MAX96793_DATA_TYPE_RGB888 = 0x24u ,
  MAX96793_DATA_TYPE_RAW8 = 0x2Au ,
  MAX96793_DATA_TYPE_RAW10 = 0x2Bu ,
  MAX96793_DATA_TYPE_RAW12 = 0x2Cu ,
  MAX96793_DATA_TYPE_RAW14 = 0x2Du ,
  MAX96793_DATA_TYPE_RAW16 = 0x2Eu ,
  MAX96793_DATA_TYPE_RAW20 = 0x2Fu ,
  MAX96793_DATA_TYPE_YUV422_12BIT = 0x30u ,
  MAX96793_DATA_TYPE_UDP8_A = 0x31u ,
  MAX96793_DATA_TYPE_UDP8_B = 0x32u ,
  MAX96793_DATA_TYPE_UDP8_C = 0x33u ,
  MAX96793_DATA_TYPE_UDP8_D = 0x34u ,
  MAX96793_DATA_TYPE_UDP8_E = 0x35u ,
  MAX96793_DATA_TYPE_UDP8_F = 0x36u ,
  MAX96793_DATA_TYPE_UDP8_G = 0x37u
}
 DATA Type for MAX96793 device. More...
 
enum  max96793_video_stream {
  MAX96793_VID_STREAM_0 = 0u ,
  MAX96793_VID_STREAM_1 = 1u ,
  MAX96793_VID_STREAM_2 = 2u ,
  MAX96793_VID_STREAM_3 = 3u ,
  MAX96793_VID_STREAM_4 = 4u ,
  MAX96793_VID_STREAM_5 = 5u ,
  MAX96793_VID_STREAM_6 = 6u ,
  MAX96793_VID_STREAM_7 = 7u ,
  MAX96793_VID_STREAM_8 = 8u ,
  MAX96793_VID_STREAM_9 = 9u ,
  MAX96793_VID_STREAM_10 = 10u ,
  MAX96793_VID_STREAM_11 = 11u ,
  MAX96793_VID_STREAM_12 = 12u ,
  MAX96793_VID_STREAM_13 = 13u ,
  MAX96793_VID_STREAM_14 = 14u ,
  MAX96793_VID_STREAM_15 = 15u
}
 Enumerates video streams for MAX96793 device. More...
 
enum  max96793_port { MAX96793_PORT_B = 1u }
 Enumerates ports for MAX96793 device. More...
 
enum  max96793_data_type_size {
  MAX96793_DT_SIZE_0 = 0U ,
  MAX96793_DT_SIZE_8 = 8U ,
  MAX96793_DT_SIZE_10 = 10U ,
  MAX96793_DT_SIZE_12 = 12U ,
  MAX96793_DT_SIZE_14 = 14U ,
  MAX96793_DT_SIZE_16 = 16U ,
  MAX96793_DT_SIZE_18 = 18U ,
  MAX96793_DT_SIZE_20 = 20U ,
  MAX96793_DT_SIZE_24 = 24U
}
 Enumerates data type size for MAX96793 device. More...
 

Functions

int max96793_dev_diag_get_device_id (struct gmsl_dev *dev, void *dev_id_status, bool *diag_err)
 Retrieve the device ID of the MAX96793 device.
 
int max96793_dev_diag_check_device_rev (struct gmsl_dev *dev, void *dev_revision_status, bool *diag_err)
 Retrieve the device revision status of the MAX96793 device.
 
int max96793_dev_diag_check_part_config_status (struct gmsl_dev *dev, void *part_config_status, bool *diag_err)
 Check the part configuration status of the MAX96793 device.
 
int max96793_link_diag_check_decode_error_status (struct gmsl_dev *dev, void *decode_err_status, bool *diag_err)
 Check decode error status for MAX96793 link diagnostics.
 
int max96793_link_diag_check_idle_error_status (struct gmsl_dev *dev, void *idle_err_status, bool *diag_err)
 Check the idle error status of the MAX96793 link.
 
int max96793_link_diag_check_link_lock_status (struct gmsl_dev *dev, void *link_lock_status, bool *diag_err)
 Check the link lock status of the MAX96793 device.
 
int max96793_link_diag_check_max_retransmission_error_status (struct gmsl_dev *dev, void *max_retransmission_status, bool *diag_err)
 Checks the maximum retransmission error status for the MAX96793 device.
 
int max96793_csi_diag_check_mipi_rx_err_status (struct gmsl_dev *dev, void *mipi_rx_err_status, bool *diag_err)
 Check the MIPI RX error status of the MAX96793 serializer.
 
int max96793_csi_diag_check_vid_tx_pclk_drift_err_status (struct gmsl_dev *dev, void *vid_tx_pclk_drift_status, bool *diag_err)
 Check the video transmitter PCLK drift error status of the MAX96793 serializer.
 
int max96793_link_diag_check_line_fault_status (struct gmsl_dev *dev, void *line_fault_status, bool *diag_err)
 Check the line fault status of the MAX96793 device.
 
int max96793_csi_diag_check_pclk_detect_status (struct gmsl_dev *dev, void *pclk_detect_status, bool *diag_err)
 Check the PCLK detect status of the MAX96793 serializer.
 
int max96793_pipe_diag_check_vid_tx_overflow_status (struct gmsl_dev *dev, void *vid_tx_ovrflw_status, bool *diag_err)
 Check the video transmitter overflow status of the MAX96793 serializer.
 
int max96793_mem_diag_check_uncorrectable_2b_mem_ecc_err_status (struct gmsl_dev *dev, void *uncorrectable_2b_mem_ecc_err_status, bool *diag_err)
 Check the 2-bit uncorrectable memory ECC errors seen in any memories of the MAX96793 serializer.
 
int max96793_link_diag_check_phy_low_power_state_error_status (struct gmsl_dev *dev, void *lp_err_status, bool *diag_err)
 Check the PHY error details of the MAX96793 serializer.
 
int max96793_csi_diag_check_mipi_phy_pkt_cnt_status (struct gmsl_dev *dev, void *mipi_pkt_cnt_err_status, bool *diag_err)
 Check the MIPI PHY packet count status of MAX96793 serializer.
 
int max96793_pipe_diag_check_stream_id (struct gmsl_dev *dev, void *stream_id_status, bool *diag_err)
 Check the stream ID status of the MAX96793 serializer.
 
int max96793_link_diag_check_eye_open_monitor_status (struct gmsl_dev *dev, void *eom_status, bool *diag_err)
 Check the Eye Open Monitor (EOM) status of the MAX96793 device.
 
int max96793_csi_diag_check_fec_status (struct gmsl_dev *dev, void *fec_active_status, bool *diag_err)
 Check if FEC (Forward Error Correction) is enabled and running on the MAX96793 device.
 
int max96793_dev_diag_check_remote_error_status (struct gmsl_dev *dev, void *rem_err_status, bool *diag_err)
 Check the remote error flag status of the MAX96793 device.
 
int max96793_link_diag_get_link_lock_status (struct gmsl_dev *dev, bool *locked)
 Get the link lock status of the MAX96793 serializer.
 
int max96793_dev_diag_get_errb_status (struct gmsl_dev *dev, bool *errb)
 Get the status of Error flag (ERRB) in the MAX96793 serializer.
 

Macro Definition Documentation

◆ MAX96793_CSI_DIAG_MIPI_PKT_READ_DELAY

#define MAX96793_CSI_DIAG_MIPI_PKT_READ_DELAY   (10U)

Delay in milliseconds to read the next MIPI packet

◆ MAX96793_CSI_DIAG_NUM_OF_MIPI_PKT_READ

#define MAX96793_CSI_DIAG_NUM_OF_MIPI_PKT_READ   (4U)

Number of iterations to read MIPI packets

◆ MAX96793_MAX_LANE_COUNT

#define MAX96793_MAX_LANE_COUNT   (4U)

Maximum number of lanes

◆ MAX96793_MAX_VIDEO_STREAMS

#define MAX96793_MAX_VIDEO_STREAMS   (16U)

Maximum number of video streams

◆ MAX96793_MAX_VIRTUAL_CHANNEL

#define MAX96793_MAX_VIRTUAL_CHANNEL   (16U)

Maximum number of virtual channels

Enumeration Type Documentation

◆ max96793_data_type

DATA Type for MAX96793 device.

Enumerator
MAX96793_DATA_TYPE_DEFAULT 

Default

MAX96793_DATA_TYPE_GENERIC8_A 

GENERIC8

MAX96793_DATA_TYPE_GENERIC8_B 

GENERIC8

MAX96793_DATA_TYPE_EMB8 

EMBEDDED

MAX96793_DATA_TYPE_YUV422_8BIT 

YUV422 8-bit

MAX96793_DATA_TYPE_YUV422_10BIT 

YUV422 10-bit

MAX96793_DATA_TYPE_RGB565 

RGB565

MAX96793_DATA_TYPE_RGB666 

RGB666

MAX96793_DATA_TYPE_RGB888 

RGB888

MAX96793_DATA_TYPE_RAW8 

RAW8

MAX96793_DATA_TYPE_RAW10 

RAW10

MAX96793_DATA_TYPE_RAW12 

RAW12

MAX96793_DATA_TYPE_RAW14 

RAW14

MAX96793_DATA_TYPE_RAW16 

RAW16

MAX96793_DATA_TYPE_RAW20 

RAW20

MAX96793_DATA_TYPE_YUV422_12BIT 

YUV422 12-bit

MAX96793_DATA_TYPE_UDP8_A 

UDP8

MAX96793_DATA_TYPE_UDP8_B 

UDP8

MAX96793_DATA_TYPE_UDP8_C 

UDP8

MAX96793_DATA_TYPE_UDP8_D 

UDP8

MAX96793_DATA_TYPE_UDP8_E 

UDP8

MAX96793_DATA_TYPE_UDP8_F 

UDP8

MAX96793_DATA_TYPE_UDP8_G 

UDP8

◆ max96793_data_type_size

Enumerates data type size for MAX96793 device.

Enumerator
MAX96793_DT_SIZE_0 

Data type size 0

MAX96793_DT_SIZE_8 

Data type size 8

MAX96793_DT_SIZE_10 

Data type size 10

MAX96793_DT_SIZE_12 

Data type size 12

MAX96793_DT_SIZE_14 

Data type size 14

MAX96793_DT_SIZE_16 

Data type size 16

MAX96793_DT_SIZE_18 

Data type size 18

MAX96793_DT_SIZE_20 

Data type size 20

MAX96793_DT_SIZE_24 

Data type size 24

◆ max96793_lane_polarity

Lane polarity.

Enumerator
MAX96793_LANE_POLARITY_NORMAL 

Lane polarity normal

MAX96793_LANE_POLARITY_INVERSE 

Lane polarity inverse

◆ max96793_link_diag_lmn

Line fault monitor number.

Enumerator
MAX96793_LINK_LMN_0 

Line fault monitor 0

MAX96793_LINK_LMN_1 

Line fault monitor 1

◆ max96793_link_diag_lmn_status

Line fault monitor status.

Enumerator
MAX96793_LINK_DIAG_LMN_SHORT_TO_BAT 

Short to battery

MAX96793_LINK_DIAG_LMN_SHORT_TO_GND 

Short to GND

MAX96793_LINK_DIAG_LMN_NORMAL 

Normal operation

MAX96793_LINK_DIAG_LMN_LINE_OPEN 

Line open

MAX96793_LINK_DIAG_LMN_LINE_TO_LINE_SHORT 

Line to line short

◆ max96793_port

Enumerates ports for MAX96793 device.

Enumerator
MAX96793_PORT_B 

Port B

◆ max96793_sensor_lane

Sensor lane number.

Enumerator
MAX96793_SENSOR_LANE_0 

Sensor lane 0

MAX96793_SENSOR_LANE_1 

Sensor lane 1

MAX96793_SENSOR_LANE_2 

Sensor lane 2

MAX96793_SENSOR_LANE_3 

Sensor lane 3

◆ max96793_serializer_lane

Serializer lane number.

Enumerator
MAX96793_SERIALIZER_LANE_0 

Serializer lane 0

MAX96793_SERIALIZER_LANE_1 

Serializer lane 1

MAX96793_SERIALIZER_LANE_2 

Serializer lane 2

MAX96793_SERIALIZER_LANE_3 

Serializer lane 3

◆ max96793_video_stream

Enumerates video streams for MAX96793 device.

Enumerator
MAX96793_VID_STREAM_0 

Video Stream index 0

MAX96793_VID_STREAM_1 

Video Stream index 1

MAX96793_VID_STREAM_2 

Video Stream index 2

MAX96793_VID_STREAM_3 

Video Stream index 3

MAX96793_VID_STREAM_4 

Video Stream index 4

MAX96793_VID_STREAM_5 

Video Stream index 5

MAX96793_VID_STREAM_6 

Video Stream index 6

MAX96793_VID_STREAM_7 

Video Stream index 7

MAX96793_VID_STREAM_8 

Video Stream index 8

MAX96793_VID_STREAM_9 

Video Stream index 9

MAX96793_VID_STREAM_10 

Video Stream index 10

MAX96793_VID_STREAM_11 

Video Stream index 11

MAX96793_VID_STREAM_12 

Video Stream index 12

MAX96793_VID_STREAM_13 

Video Stream index 13

MAX96793_VID_STREAM_14 

Video Stream index 14

MAX96793_VID_STREAM_15 

Video Stream index 15