no-OS
Functions
edid.c File Reference

EDID control module source. More...

#include "edid.h"
#include <stdlib.h>
Include dependency graph for edid.c:

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 source.

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.

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

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.
Returns
void

◆ 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.
Returns
void

◆ 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.
Returns
void

◆ 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