adv7533_reg.c
Go to the documentation of this file.
1 
20 /* Includes ------------------------------------------------------------------*/
21 #include "adv7533_reg.h"
22 
37 /* Private types -------------------------------------------------------------*/
38 /* Private variables ---------------------------------------------------------*/
39 /* Private constants ---------------------------------------------------------*/
51 /* Private functions ---------------------------------------------------------*/
52 
53 /************** Generic Function *******************/
54 /*******************************************************************************
55 * Function Name : adv7533_read_reg
56 * Description : Generic Reading function. It must be fullfilled with either
57 * I2C or SPI reading functions
58 * Input : register Address, length of buffer
59 * Output : Data Read
60 *******************************************************************************/
61 int32_t adv7533_read_reg(adv7533_ctx_t *ctx, uint16_t reg, uint8_t *pdata, uint16_t length)
62 {
63  return ctx->ReadReg(ctx->handle, reg, pdata, length);
64 }
65 
66 /*******************************************************************************
67 * Function Name : adv7533_write_reg
68 * Description : Generic Writing function. It must be fullfilled with either
69 * I2C or SPI writing function
70 * Input : register Address, Data to be written, length of buffer
71 * Output : None
72 *******************************************************************************/
73 int32_t adv7533_write_reg(adv7533_ctx_t *ctx, uint16_t reg, uint8_t *pdata, uint16_t length)
74 {
75  return ctx->WriteReg(ctx->handle, reg, pdata, length);
76 }
77 
94 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
adv7533_reg.h
This file contains all the constants parameters for the ADV7533 which is the HDMI bridge between DSI ...
adv7533_ctx_t::handle
void * handle
Definition: adv7533_reg.h:110
adv7533_ctx_t::WriteReg
ADV7533_Write_Func WriteReg
Definition: adv7533_reg.h:108
adv7533_ctx_t
Definition: adv7533_reg.h:106
adv7533_ctx_t::ReadReg
ADV7533_Read_Func ReadReg
Definition: adv7533_reg.h:109
adv7533_write_reg
int32_t adv7533_write_reg(adv7533_ctx_t *ctx, uint16_t reg, uint8_t *pdata, uint16_t length)
Definition: adv7533_reg.c:73
adv7533_read_reg
int32_t adv7533_read_reg(adv7533_ctx_t *ctx, uint16_t reg, uint8_t *pdata, uint16_t length)
Definition: adv7533_reg.c:61


picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:13:47