tvafe_general.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef _TVAFE_GENERAL_H
  2. #define _TVAFE_GENERAL_H
  3. // ***************************************************************************
  4. // *** enum definitions *********************************************
  5. // ***************************************************************************
  6. typedef enum tvafe_adc_ch_e {
  7. TVAFE_ADC_CH_NULL = 0,
  8. TVAFE_ADC_CH_PGA,
  9. TVAFE_ADC_CH_A,
  10. TVAFE_ADC_CH_B,
  11. TVAFE_ADC_CH_C,
  12. } tvafe_adc_ch_t;
  13. // ***************************************************************************
  14. // *** macro definitions *********************************************
  15. // ***************************************************************************
  16. #define TVAFE_EDID_CONFIG 0x03800050
  17. //#define LOG_ADC_CAL
  18. // ***************************************************************************
  19. // *** global parameters **********
  20. // ***************************************************************************
  21. extern enum tvafe_adc_pin_e tvafe_default_cvbs_out;
  22. extern const signed short tvafe_comp_hs_patch[TVIN_SIG_FMT_COMP_MAX - TVIN_SIG_FMT_VGA_MAX - 1];
  23. // *****************************************************************************
  24. // ******** function claims ********
  25. // *****************************************************************************
  26. enum tvafe_adc_pin_e tvafe_get_free_pga_pin(struct tvafe_pin_mux_s *pinmux);
  27. int tvafe_source_muxing(struct tvafe_info_s *info);
  28. void tvafe_vga_set_edid(struct tvafe_vga_edid_s *edid);
  29. void tvafe_vga_get_edid(struct tvafe_vga_edid_s *edid);
  30. void tvafe_set_cal_value(struct tvafe_adc_cal_s *para);
  31. void tvafe_get_cal_value(struct tvafe_adc_cal_s *para);
  32. bool tvafe_adc_cal(struct tvafe_info_s *info, struct tvafe_operand_s *operand);
  33. void tvafe_adc_clamp_adjust(struct tvafe_info_s *info);
  34. void tvafe_get_wss_data(struct tvafe_comp_wss_s *para);
  35. enum tvin_scan_mode_e tvafe_top_get_scan_mode(void);
  36. //enum tvin_field_mode_e tvafe_get_field_mode(void);
  37. void tvafe_reset_module(void);
  38. void tvafe_enable_module(bool enable);
  39. void tvafe_top_config(enum tvin_sig_fmt_e fmt);
  40. #endif // _TVAFE_GENERAL_H