adv7533_reg.h
Go to the documentation of this file.
1 
22 /* Define to prevent recursive inclusion -------------------------------------*/
23 #ifndef ADV7533_REG_H
24 #define ADV7533_REG_H
25 
26 #include <stdint.h>
27 
28 #ifdef __cplusplus
29  extern "C" {
30 #endif
31 
32 /* Includes ------------------------------------------------------------------*/
52 #define ADV7533_MAIN_SYNC_REG 0x17U
53 #define ADV7533_MAIN_POWER_DOWN_REG 0x41U
54 #define ADV7533_MAIN_HPG_REG 0x42U
55 
63 #define ADV7533_CEC_DSI_INTERNAL_TIMING_REG 0x27U
64 #define ADV7533_CEC_DSI_TOTAL_WIDTH_H_REG 0x28U
65 #define ADV7533_CEC_DSI_TOTAL_WIDTH_L_REG 0x29U
66 #define ADV7533_CEC_DSI_HSYNC_H_REG 0x2AU
67 #define ADV7533_CEC_DSI_HSYNC_L_REG 0x2BU
68 #define ADV7533_CEC_DSI_HFP_H_REG 0x2CU
69 #define ADV7533_CEC_DSI_HFP_L_REG 0x2DU
70 #define ADV7533_CEC_DSI_HBP_H_REG 0x2EU
71 #define ADV7533_CEC_DSI_HBP_L_REG 0x2FU
72 
73 #define ADV7533_CEC_DSI_TOTAL_HEIGHT_H_REG 0x30U
74 #define ADV7533_CEC_DSI_TOTAL_HEIGHT_L_REG 0x31U
75 #define ADV7533_CEC_DSI_VSYNC_H_REG 0x32U
76 #define ADV7533_CEC_DSI_VSYNC_L_REG 0x33U
77 #define ADV7533_CEC_DSI_VFP_H_REG 0x34U
78 #define ADV7533_CEC_DSI_VFP_L_REG 0x35U
79 #define ADV7533_CEC_DSI_VBP_H_REG 0x36U
80 #define ADV7533_CEC_DSI_VBP_L_REG 0x37U
81 
84 #define ADV7533_CHIPID_ADDR0 0x00U
85 #define ADV7533_CHIPID_ADDR1 0x01U
86 
91 /* Exported macro ------------------------------------------------------------*/
92 
103 typedef int32_t (*ADV7533_Write_Func)(void *, uint16_t, uint8_t*, uint16_t);
104 typedef int32_t (*ADV7533_Read_Func) (void *, uint16_t, uint8_t*, uint16_t);
105 
106 typedef struct
107 {
110  void *handle;
111 } adv7533_ctx_t;
116 /* Exported functions --------------------------------------------------------*/
117 
121 int32_t adv7533_write_reg(adv7533_ctx_t *ctx, uint16_t reg, uint8_t *pdata, uint16_t length );
122 int32_t adv7533_read_reg(adv7533_ctx_t *ctx, uint16_t reg, uint8_t *pdata, uint16_t length );
123 
127 #ifdef __cplusplus
128 }
129 #endif
130 
131 #endif /* ADV7533_REG_H */
132 
144 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
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_Read_Func
int32_t(* ADV7533_Read_Func)(void *, uint16_t, uint8_t *, uint16_t)
Definition: adv7533_reg.h:104
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_Write_Func
int32_t(* ADV7533_Write_Func)(void *, uint16_t, uint8_t *, uint16_t)
Definition: adv7533_reg.h:103
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