Sync inav to Gitea
Make sure docs are updated / settings_md (push) Canceled after 0s
Build firmware / test (push) Canceled after 0s
Build firmware / build-SITL-Windows (push) Canceled after 0s
Build firmware / build-SITL-Mac (push) Canceled after 0s
Build firmware / build-SITL-Linux (push) Canceled after 0s
Build firmware / build-SITL-Linux-arm64 (push) Canceled after 0s
Build firmware / upload-artifacts (push) Canceled after 0s
Build firmware / build-single-target (push) Canceled after 0s
Build firmware / build (9) (push) Canceled after 0s
Build firmware / build (8) (push) Canceled after 0s
Build firmware / build (7) (push) Canceled after 0s
Build firmware / build (6) (push) Canceled after 0s
Build firmware / build (5) (push) Canceled after 0s
Build firmware / build (4) (push) Canceled after 0s
Build firmware / build (3) (push) Canceled after 0s
Build firmware / build (2) (push) Canceled after 0s
Build firmware / build (14) (push) Canceled after 0s
Build firmware / build (13) (push) Canceled after 0s
Build firmware / build (12) (push) Canceled after 0s
Build firmware / build (11) (push) Canceled after 0s
Build firmware / build (10) (push) Canceled after 0s
Build firmware / build (1) (push) Canceled after 0s
Build firmware / build (0) (push) Canceled after 0s
Build firmware / detect (push) Canceled after 0s
Build pre-release / build (push) Canceled after 0s
Build pre-release / Release (push) Canceled after 0s

This commit is contained in:
2026-08-03 16:37:40 +08:00
commit dac37fd077
14095 changed files with 5603119 additions and 0 deletions
@@ -0,0 +1,89 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<title>Release Notes for ADV7533 Component Driver</title>
<style type="text/css">
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
</style>
<link rel="stylesheet" href="_htmresc/mini-st.css" />
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
<![endif]-->
</head>
<body>
<div class="row">
<div class="col-sm-12 col-lg-4">
<div class="card fluid">
<div class="sectione dark">
<center>
<h1 id="release-notes-for-adv7533-component-driver"><strong>Release Notes for ADV7533 Component Driver</strong></h1>
<p>Copyright © 2016 STMicroelectronics<br />
</p>
<a href="https://www.st.com" class="logo"><img src="_htmresc/st_logo.png" alt="ST logo" /></a>
</center>
</div>
</div>
<h1 id="license">License</h1>
This software component is licensed by ST under BSD 3-Clause license, the “License”; You may not use this component except in compliance with the License. You may obtain a copy of the License at:
<center>
<a href="https://opensource.org/licenses/BSD-3-Clause">https://opensource.org/licenses/BSD-3-Clause</a>
</center>
<h1 id="purpose">Purpose</h1>
<p>This driver provides a set of HDMI(audio and display) functions offered by ADV7533 component</p>
</div>
<div class="col-sm-12 col-lg-8">
<h1 id="update-history">Update History</h1>
<div class="collapse">
<input type="checkbox" id="collapse-section3" checked aria-hidden="true"> <label for="collapse-section3" aria-hidden="true"><strong>V2.0.1 / 23-November-2019</strong></label>
<div>
<h2 id="main-changes">Main Changes</h2>
<ul>
<li>Update st_logo.png inclusion path in Release notes</li>
</ul>
</div>
</div>
<div class="collapse">
<input type="checkbox" id="collapse-section2" checked aria-hidden="true"> <label for="collapse-section2" aria-hidden="true"><strong>V2.0.0 / 14-October-2019</strong></label>
<div>
<h2 id="main-changes-1">Main Changes</h2>
<ul>
<li>First Official release of ADV7533 BSP drivers in line with STM32Cube BSP drivers development guidelines (UM2298)</li>
<li>The component drivers are composed of
<ul>
<li>component core drivers files: adv7533.h/.c</li>
<li>component register drivers files: adv7533_reg.h/.c</li>
</ul></li>
</ul>
<h2 id="backward-compatibility">Backward Compatibility</h2>
<ul>
<li>This version breaks the compatibility with previous version</li>
</ul>
<h2 id="dependencies">Dependencies</h2>
<p>This software release is compatible with:</p>
<ul>
<li>BSP Common v6.0.1 or above</li>
</ul>
</div>
</div>
<div class="collapse">
<input type="checkbox" id="collapse-section1" checked aria-hidden="true"> <label for="collapse-section1" aria-hidden="true"><strong>V1.0.0 / 26-August-2016</strong></label>
<div>
<h2 id="main-changes-2">Main Changes</h2>
<ul>
<li>First official release of ADV7533 HDMI component driver</li>
</ul>
</div>
</div>
</div>
</div>
<footer class="sticky">
For complete documentation on <mark>STM32 Microcontrollers</mark> , visit: <span style="font-color: blue;"><a href="http://www.st.com/STM32">www.st.com</a></span>
</footer>
</body>
</html>
@@ -0,0 +1,92 @@
---
pagetitle: Release Notes for ADV7533 Component Driver
lang: en
---
::: {.row}
::: {.col-sm-12 .col-lg-4}
::: {.card .fluid}
::: {.sectione .dark}
<center>
# **Release Notes for ADV7533 Component Driver**
Copyright &copy; 2016 STMicroelectronics\
[![ST logo](_htmresc/st_logo.png)](https://www.st.com){.logo}
</center>
:::
:::
# License
This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this component except in
compliance with the License. You may obtain a copy of the License at:
<center>
[https://opensource.org/licenses/BSD-3-Clause](https://opensource.org/licenses/BSD-3-Clause)
</center>
# Purpose
This driver provides a set of HDMI(audio and display) functions offered by ADV7533 component
:::
::: {.col-sm-12 .col-lg-8}
# Update History
::: {.collapse}
<input type="checkbox" id="collapse-section3" checked aria-hidden="true">
<label for="collapse-section3" aria-hidden="true">__V2.0.1 / 23-November-2019__</label>
<div>
## Main Changes
- Update st_logo.png inclusion path in Release notes
</div>
:::
::: {.collapse}
<input type="checkbox" id="collapse-section2" checked aria-hidden="true">
<label for="collapse-section2" aria-hidden="true">__V2.0.0 / 14-October-2019__</label>
<div>
## Main Changes
- First Official release of ADV7533 BSP drivers in line with STM32Cube BSP drivers development guidelines (UM2298)
- The component drivers are composed of
- component core drivers files: adv7533.h/.c
- component register drivers files: adv7533_reg.h/.c
## Backward Compatibility
- This version breaks the compatibility with previous version
## Dependencies
This software release is compatible with:
- BSP Common v6.0.1 or above
</div>
:::
::: {.collapse}
<input type="checkbox" id="collapse-section1" checked aria-hidden="true">
<label for="collapse-section1" aria-hidden="true">__V1.0.0 / 26-August-2016__</label>
<div>
## Main Changes
- First official release of ADV7533 HDMI component driver
</div>
:::
:::
:::
<footer class="sticky">
For complete documentation on <mark>STM32 Microcontrollers</mark> ,
visit: [[www.st.com](http://www.st.com/STM32)]{style="font-color: blue;"}
</footer>
File diff suppressed because it is too large Load Diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

File diff suppressed because it is too large Load Diff
@@ -0,0 +1,272 @@
/**
******************************************************************************
* @file adv7533.h
* @author MCD Application Team
* @brief This file contains all the constants parameters for the ADV7533
* which is the HDMI bridge between DSI and HDMI
******************************************************************************
* @attention
*
* <h2><center>&copy; Copyright (c) 2016 STMicroelectronics.
* All rights reserved.</center></h2>
*
* This software component is licensed by ST under BSD 3-Clause license,
* the "License"; You may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
* opensource.org/licenses/BSD-3-Clause
*
******************************************************************************
*/
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef ADV7533_H
#define ADV7533_H
/* Includes ------------------------------------------------------------------*/
#include "adv7533_reg.h"
#include <stddef.h>
/** @addtogroup BSP
* @{
*/
/** @addtogroup Components
* @{
*/
/** @addtogroup ADV7533
* @{
*/
/** @defgroup ADV7533_Exported_Types Exported Types
* @{
*/
typedef int32_t (*ADV7533_Init_Func) (void);
typedef int32_t (*ADV7533_DeInit_Func) (void);
typedef int32_t (*ADV7533_GetTick_Func) (void);
typedef int32_t (*ADV7533_Delay_Func) (uint32_t);
typedef int32_t (*ADV7533_WriteReg_Func)(uint16_t, uint16_t, uint8_t*, uint16_t);
typedef int32_t (*ADV7533_ReadReg_Func) (uint16_t, uint16_t, uint8_t*, uint16_t);
typedef struct
{
uint32_t Frequency;
} ADV7533_Init_t;
typedef struct
{
ADV7533_Init_Func Init;
ADV7533_DeInit_Func DeInit;
uint16_t Address;
ADV7533_WriteReg_Func WriteReg;
ADV7533_ReadReg_Func ReadReg;
ADV7533_GetTick_Func GetTick;
} ADV7533_IO_t;
typedef struct
{
ADV7533_IO_t IO;
adv7533_ctx_t Ctx;
uint8_t IsInitialized;
} ADV7533_Object_t;
typedef struct
{
int32_t ( *Init ) ( ADV7533_Object_t *, ADV7533_Init_t* );
int32_t ( *DeInit ) ( ADV7533_Object_t * );
int32_t ( *ReadID ) ( ADV7533_Object_t *, uint32_t *);
int32_t ( *Play ) ( ADV7533_Object_t * );
int32_t ( *Pause ) ( ADV7533_Object_t * );
int32_t ( *Resume ) ( ADV7533_Object_t * );
int32_t ( *Stop ) ( ADV7533_Object_t *, uint32_t );
int32_t ( *SetFrequency ) ( ADV7533_Object_t *, uint32_t );
int32_t ( *GetFrequency ) ( ADV7533_Object_t *, uint32_t* );
int32_t ( *SetVolume ) ( ADV7533_Object_t *, uint8_t, uint8_t );
int32_t ( *GetVolume ) ( ADV7533_Object_t *, uint8_t );
int32_t ( *SetMute ) ( ADV7533_Object_t *, uint16_t );
int32_t ( *SetOutputMode ) ( ADV7533_Object_t *, uint16_t );
int32_t ( *SetResolution ) ( ADV7533_Object_t *, uint32_t );
int32_t ( *GetResolution ) ( ADV7533_Object_t *, uint32_t *);
int32_t ( *SetProtocol ) ( ADV7533_Object_t *, uint16_t );
int32_t ( *GetProtocol ) ( ADV7533_Object_t *);
int32_t ( *Reset ) ( ADV7533_Object_t * );
} ADV7533_Drv_t;
typedef struct
{
/* Control functions */
int32_t (*Init )(ADV7533_Object_t*, uint32_t, uint32_t);
int32_t (*DeInit )(ADV7533_Object_t*);
int32_t (*ReadID )(ADV7533_Object_t*, uint32_t*);
int32_t (*DisplayOn )(ADV7533_Object_t*);
int32_t (*DisplayOff )(ADV7533_Object_t*);
int32_t (*SetBrightness )(ADV7533_Object_t*, uint32_t);
int32_t (*GetBrightness )(ADV7533_Object_t*, uint32_t*);
int32_t (*SetOrientation )(ADV7533_Object_t*, uint32_t);
int32_t (*GetOrientation )(ADV7533_Object_t*, uint32_t*);
/* Drawing functions*/
int32_t ( *SetCursor ) (ADV7533_Object_t*, uint32_t, uint32_t);
int32_t ( *DrawBitmap ) (ADV7533_Object_t*, uint32_t, uint32_t, uint8_t *);
int32_t (*FillRGBRect ) (ADV7533_Object_t*, uint32_t, uint32_t, uint8_t *, uint32_t, uint32_t);
int32_t ( *DrawHLine ) (ADV7533_Object_t*, uint32_t, uint32_t, uint32_t, uint32_t);
int32_t ( *DrawVLine ) (ADV7533_Object_t*, uint32_t, uint32_t, uint32_t, uint32_t);
int32_t ( *FillRect ) (ADV7533_Object_t*, uint32_t, uint32_t, uint32_t, uint32_t, uint32_t);
int32_t ( *GetPixel ) (ADV7533_Object_t*, uint32_t, uint32_t, uint32_t*);
int32_t ( *SetPixel ) (ADV7533_Object_t*, uint32_t, uint32_t, uint32_t);
int32_t ( *GetXSize ) (ADV7533_Object_t*, uint32_t *);
int32_t ( *GetYSize ) (ADV7533_Object_t*, uint32_t *);
} ADV7533_LcdDrv_t;
/**
* @}
*/
/** @defgroup ADV7533_Exported_Constants Exported Constants
* @{
*/
#define ADV7533_OK (0)
#define ADV7533_ERROR (-1)
/**
* @brief AUDIO FREQUENCY
*/
#define ADV7533_FREQUENCY_192K 192000
#define ADV7533_FREQUENCY_176K 176400
#define ADV7533_FREQUENCY_96K 96000
#define ADV7533_FREQUENCY_88K 88200
#define ADV7533_FREQUENCY_48K 48000
#define ADV7533_FREQUENCY_44K 44100
#define ADV7533_FREQUENCY_32K 32000
#define ADV7533_FREQUENCY_22K 22050
#define ADV7533_FREQUENCY_16K 16000
#define ADV7533_FREQUENCY_11K 11025
#define ADV7533_FREQUENCY_8K 8000
/**
* @brief HDMI audio output DEVICE
*/
#define OUTPUT_DEVICE_ADV7533_HDMI 0x1000U
/**
* @brief ADV7533 I2C Addresses 0x7A / 0x78
*/
#define ADV7533_MAIN_I2C_ADDR 0x7AU
#define ADV7533_CEC_DSI_I2C_ADDR 0x78U
/**
* @brief ADV7533 Aspect ratio
*/
#define ADV7533_ASPECT_RATIO_16_9 00U
#define ADV7533_ASPECT_RATIO_4_3 01U
/**
* @brief ADV7533 Aspect ratio
*/
#define ADV7533_MODE_HDMI 00U
#define ADV7533_MODE_DVI 01U
/**
* @brief ADV7533 Main Features Parameters
*/
/** @Brief adv7533 ID
*/
#define ADV7533_ID 0x7533U
/* MUTE commands */
#define ADV7533_MUTE_ON 1U
#define ADV7533_MUTE_OFF 0U
/**
* @}
*/
/* Exported macro ------------------------------------------------------------*/
/** @defgroup ADV7533_Exported_Macros ADV7533 Exported Macros
* @{
*/
/**
* @}
*/
/* Exported functions --------------------------------------------------------*/
/** @addtogroup ADV7533_Exported_Functions
* @{
*/
int32_t ADV7533_RegisterBusIO (ADV7533_Object_t *pObj, ADV7533_IO_t *pIO);
/*------------------------------------------------------------------------------
HDMI video functions
------------------------------------------------------------------------------*/
int32_t ADV7533_Init(ADV7533_Object_t *pObj, uint32_t ColorCoding, uint32_t Orientation);
int32_t ADV7533_DisplayOn(ADV7533_Object_t *pObj);
int32_t ADV7533_DisplayOff(ADV7533_Object_t *pObj);
int32_t ADV7533_Configure(ADV7533_Object_t *pObj, uint8_t LaneNumber);
int32_t ADV7533_PatternEnable(ADV7533_Object_t *pObj);
int32_t ADV7533_PatternDisable(ADV7533_Object_t *pObj);
int32_t ADV7533_SetBrightness(ADV7533_Object_t *pObj, uint32_t Brightness);
int32_t ADV7533_GetBrightness(ADV7533_Object_t *pObj, uint32_t *Brightness);
int32_t ADV7533_SetOrientation(ADV7533_Object_t *pObj, uint32_t Orientation);
int32_t ADV7533_GetOrientation(ADV7533_Object_t *pObj, uint32_t *Orientation);
int32_t ADV7533_SetCursor(ADV7533_Object_t *pObj, uint32_t Xpos, uint32_t Ypos);
int32_t ADV7533_DrawBitmap(ADV7533_Object_t *pObj, uint32_t Xpos, uint32_t Ypos, uint8_t *pBmp);
int32_t ADV7533_FillRGBRect(ADV7533_Object_t *pObj, uint32_t Xpos, uint32_t Ypos, uint8_t *pData, uint32_t Width, uint32_t Height);
int32_t ADV7533_DrawHLine(ADV7533_Object_t *pObj, uint32_t Xpos, uint32_t Ypos, uint32_t Length, uint32_t Color);
int32_t ADV7533_DrawVLine(ADV7533_Object_t *pObj, uint32_t Xpos, uint32_t Ypos, uint32_t Length, uint32_t Color);
int32_t ADV7533_FillRect(ADV7533_Object_t *pObj, uint32_t Xpos, uint32_t Ypos, uint32_t Width, uint32_t Height, uint32_t Color);
int32_t ADV7533_SetPixel(ADV7533_Object_t *pObj, uint32_t Xpos, uint32_t Ypos, uint32_t Color);
int32_t ADV7533_GetPixel(ADV7533_Object_t *pObj, uint32_t Xpos, uint32_t Ypos, uint32_t *Color);
int32_t ADV7533_GetXSize(ADV7533_Object_t *pObj, uint32_t *XSize);
int32_t ADV7533_GetYSize(ADV7533_Object_t *pObj, uint32_t *YSize);
/*------------------------------------------------------------------------------
HDMI Audio functions
------------------------------------------------------------------------------*/
int32_t ADV7533_AudioInit(ADV7533_Object_t *pObj, ADV7533_Init_t *pInit);
int32_t ADV7533_DeInit(ADV7533_Object_t *pObj);
int32_t ADV7533_ReadID(ADV7533_Object_t *pObj, uint32_t *Id);
int32_t ADV7533_Play(ADV7533_Object_t *pObj);
int32_t ADV7533_Pause(ADV7533_Object_t *pObj);
int32_t ADV7533_Resume(ADV7533_Object_t *pObj);
int32_t ADV7533_Stop(ADV7533_Object_t *pObj, uint32_t CodecPdwnMode);
int32_t ADV7533_SetVolume(ADV7533_Object_t *pObj, uint8_t Volume, uint8_t InputOutput);
int32_t ADV7533_GetVolume(ADV7533_Object_t *pObj, uint8_t InputOutput);
int32_t ADV7533_SetMute(ADV7533_Object_t *pObj, uint16_t Cmd);
int32_t ADV7533_SetOutputMode(ADV7533_Object_t *pObj, uint16_t Output);
int32_t ADV7533_SetResolution(ADV7533_Object_t *pObj, uint32_t Resolution);
int32_t ADV7533_GetResolution(ADV7533_Object_t *pObj, uint32_t *Resolution);
int32_t ADV7533_SetProtocol(ADV7533_Object_t *pObj, uint16_t Protocol);
int32_t ADV7533_GetProtocol(ADV7533_Object_t *pObj);
int32_t ADV7533_SetFrequency(ADV7533_Object_t *pObj, uint32_t AudioFreq);
int32_t ADV7533_GetFrequency(ADV7533_Object_t *pObj, uint32_t *Frequency);
int32_t ADV7533_Reset(ADV7533_Object_t *pObj);
/**
* @}
*/
/* Audio driver structure */
extern ADV7533_Drv_t ADV7533_Driver;
/* LCD driver structure */
extern ADV7533_LcdDrv_t ADV7533_LCD_Driver;
#endif /* ADV7533_H */
/**
* @}
*/
/**
* @}
*/
/**
* @}
*/
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
@@ -0,0 +1,94 @@
/**
******************************************************************************
* @file adv7533_reg.c
* @author MCD Application Team
* @brief This file provides the ADV7533 DSI to HDMI bridge driver
******************************************************************************
* @attention
*
* <h2><center>&copy; Copyright (c) 2016 STMicroelectronics.
* All rights reserved.</center></h2>
*
* This software component is licensed by ST under BSD 3-Clause license,
* the "License"; You may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
* opensource.org/licenses/BSD-3-Clause
*
******************************************************************************
*/
/* Includes ------------------------------------------------------------------*/
#include "adv7533_reg.h"
/** @addtogroup BSP
* @{
*/
/** @addtogroup Components
* @{
*/
/** @addtogroup ADV7533
* @brief This file provides a set of functions needed to drive the
* adv7533 DSI-HDMI bridge.
* @{
*/
/* Private types -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private constants ---------------------------------------------------------*/
/** @defgroup ADV7533_Private_Constants ADV7533 Private Constants
* @{
*/
/**
* @}
*/
/** @addtogroup ADV7533_Exported_Functions
* @{
*/
/* Private functions ---------------------------------------------------------*/
/************** Generic Function *******************/
/*******************************************************************************
* Function Name : adv7533_read_reg
* Description : Generic Reading function. It must be fullfilled with either
* I2C or SPI reading functions
* Input : register Address, length of buffer
* Output : Data Read
*******************************************************************************/
int32_t adv7533_read_reg(adv7533_ctx_t *ctx, uint16_t reg, uint8_t *pdata, uint16_t length)
{
return ctx->ReadReg(ctx->handle, reg, pdata, length);
}
/*******************************************************************************
* Function Name : adv7533_write_reg
* Description : Generic Writing function. It must be fullfilled with either
* I2C or SPI writing function
* Input : register Address, Data to be written, length of buffer
* Output : None
*******************************************************************************/
int32_t adv7533_write_reg(adv7533_ctx_t *ctx, uint16_t reg, uint8_t *pdata, uint16_t length)
{
return ctx->WriteReg(ctx->handle, reg, pdata, length);
}
/**
* @}
*/
/**
* @}
*/
/**
* @}
*/
/**
* @}
*/
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
@@ -0,0 +1,144 @@
/**
******************************************************************************
* @file adv7533_reg.h
* @author MCD Application Team
* @brief This file contains all the constants parameters for the ADV7533
* which is the HDMI bridge between DSI and HDMI
******************************************************************************
* @attention
*
* <h2><center>&copy; Copyright (c) 2016 STMicroelectronics.
* All rights reserved.</center></h2>
*
* This software component is licensed by ST under BSD 3-Clause license,
* the "License"; You may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
* opensource.org/licenses/BSD-3-Clause
*
******************************************************************************
*/
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef ADV7533_REG_H
#define ADV7533_REG_H
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
/* Includes ------------------------------------------------------------------*/
/** @addtogroup BSP
* @{
*/
/** @addtogroup Components
* @{
*/
/** @addtogroup ADV7533
* @{
*/
/** @addtogroup ADV7533_Exported_Constants
* @{
*/
/**
* @brief ADV7533 Main Registers
*/
#define ADV7533_MAIN_SYNC_REG 0x17U
#define ADV7533_MAIN_POWER_DOWN_REG 0x41U
#define ADV7533_MAIN_HPG_REG 0x42U
/**
* @brief ADV7533 Main Features Parameters
*/
/**
* @brief ADV7533 CEC DSI Registers
*/
#define ADV7533_CEC_DSI_INTERNAL_TIMING_REG 0x27U
#define ADV7533_CEC_DSI_TOTAL_WIDTH_H_REG 0x28U
#define ADV7533_CEC_DSI_TOTAL_WIDTH_L_REG 0x29U
#define ADV7533_CEC_DSI_HSYNC_H_REG 0x2AU
#define ADV7533_CEC_DSI_HSYNC_L_REG 0x2BU
#define ADV7533_CEC_DSI_HFP_H_REG 0x2CU
#define ADV7533_CEC_DSI_HFP_L_REG 0x2DU
#define ADV7533_CEC_DSI_HBP_H_REG 0x2EU
#define ADV7533_CEC_DSI_HBP_L_REG 0x2FU
#define ADV7533_CEC_DSI_TOTAL_HEIGHT_H_REG 0x30U
#define ADV7533_CEC_DSI_TOTAL_HEIGHT_L_REG 0x31U
#define ADV7533_CEC_DSI_VSYNC_H_REG 0x32U
#define ADV7533_CEC_DSI_VSYNC_L_REG 0x33U
#define ADV7533_CEC_DSI_VFP_H_REG 0x34U
#define ADV7533_CEC_DSI_VFP_L_REG 0x35U
#define ADV7533_CEC_DSI_VBP_H_REG 0x36U
#define ADV7533_CEC_DSI_VBP_L_REG 0x37U
/** @Brief device ID register
*/
#define ADV7533_CHIPID_ADDR0 0x00U
#define ADV7533_CHIPID_ADDR1 0x01U
/**
* @}
*/
/* Exported macro ------------------------------------------------------------*/
/** @defgroup ADV7533_Exported_Macros ADV7533 Exported Macros
* @{
*/
/**
* @}
*/
/** @addtogroup ADV7533_Exported_Types
* @{
*/
typedef int32_t (*ADV7533_Write_Func)(void *, uint16_t, uint8_t*, uint16_t);
typedef int32_t (*ADV7533_Read_Func) (void *, uint16_t, uint8_t*, uint16_t);
typedef struct
{
ADV7533_Write_Func WriteReg;
ADV7533_Read_Func ReadReg;
void *handle;
} adv7533_ctx_t;
/**
* @}
*/
/* Exported functions --------------------------------------------------------*/
/** @addtogroup ADV7533_Exported_Functions
* @{
*/
int32_t adv7533_write_reg(adv7533_ctx_t *ctx, uint16_t reg, uint8_t *pdata, uint16_t length );
int32_t adv7533_read_reg(adv7533_ctx_t *ctx, uint16_t reg, uint8_t *pdata, uint16_t length );
/**
* @}
*/
#ifdef __cplusplus
}
#endif
#endif /* ADV7533_REG_H */
/**
* @}
*/
/**
* @}
*/
/**
* @}
*/
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/