no-OS
Loading...
Searching...
No Matches
edid.h File Reference

EDID control module header. More...

#include <stdbool.h>
#include <stdint.h>
#include "wrapper.h"
Include dependency graph for edid.h:

Classes

struct  std_timing
 
struct  strg_desc
 
struct  mon_range_desc
 
struct  vsdb_block
 
struct  edid_struct
 
struct  cea_ext
 
struct  edid_info
 
struct  edid_audio_info
 

Macros

#define EDID_MSG   if(edid_msg_enable)DBG_MSG
 
#define STD_DESC_LEN   sizeof(struct std_timing)
 

Functions

uint8_t ADIAPI_mw_edid_parse (uint8_t *edid_ptr, uint16_t *spa_offset, uint8_t seg_num)
 
uint8_t ADIAPI_mw_edid_parse_silent (uint8_t *edid_ptr, uint16_t *spa_offset, uint8_t seg_num)
 
void ADIAPI_mw_edid_get_info (struct edid_info *info_ptr)
 
void ADIAPI_mw_edid_get_audio_info (struct edid_audio_info *audio_info_ptr)
 
void ADIAPI_mw_edid_enable_debug_msg (bool enable)
 

Detailed Description

EDID control module header.

Author
Andrei Drimbarean (andre.nosp@m.i.dr.nosp@m.imbar.nosp@m.ean@.nosp@m.analo.nosp@m.g.co.nosp@m.m)

Copyright 2019(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Macro Definition Documentation

◆ EDID_MSG

#define EDID_MSG   if(edid_msg_enable)DBG_MSG

◆ STD_DESC_LEN

#define STD_DESC_LEN   sizeof(struct std_timing)

Function Documentation

◆ ADIAPI_mw_edid_enable_debug_msg()

void ADIAPI_mw_edid_enable_debug_msg ( bool enable)

Enable or disable EDID verbose output.

Useful for debugging and getting information about the sink.

Parameters
[in]enable- True to enable sending EDID information to the serial connection, false to disable it.

◆ ADIAPI_mw_edid_get_audio_info()

void ADIAPI_mw_edid_get_audio_info ( struct edid_audio_info * audio_info_ptr)

Get the audio information about the last parsed EDID.

Parameters
[out]audio_info_ptr- Pointer to the EDID structure where to copy the information.

◆ ADIAPI_mw_edid_get_info()

void ADIAPI_mw_edid_get_info ( struct edid_info * info_ptr)

Get the information about the last parsed EDID.

Parameters
[out]info_ptr- Pointer to the EDID structure where to copy the information.

◆ ADIAPI_mw_edid_parse()

uint8_t ADIAPI_mw_edid_parse ( uint8_t * edid_ptr,
uint16_t * spa_offset,
uint8_t seg_num )

Parse and display the EDID message received.

Parameters
[in]edid_ptr- Pointer to the EDID message.
[out]spa_offset- Pointer to the SPA offset or 0
[in]seg_num- EDID segment number.
Returns
number of total additional segments, 0 if none or if checksum error in segment 0

◆ ADIAPI_mw_edid_parse_silent()

uint8_t ADIAPI_mw_edid_parse_silent ( uint8_t * edid_ptr,
uint16_t * spa_offset,
uint8_t seg_num )

Parse the EDID message received without displaying to the terminal.

Parameters
[in]edid_ptr- Pointer to the EDID message.
[out]spa_offset- Pointer to the SPA offset or 0
[in]seg_num- EDID segment number.
Returns
number of total additional segments, 0 if none or if checksum error in segment 0