cic.h 554 B

1234567891011121314151617181920212223
  1. #ifndef _CIC_H
  2. #define _CIC_H
  3. #define CIC_SAMPLECOUNT (100000)
  4. #define CIC_TOGGLE_THRESH_PAIR (2500)
  5. #define CIC_TOGGLE_THRESH_SCIC (10)
  6. #include <arm/NXP/LPC17xx/LPC17xx.h>
  7. #include "bits.h"
  8. enum cicstates { CIC_OK = 0, CIC_FAIL, CIC_PAIR, CIC_SCIC };
  9. enum cic_region { CIC_NTSC = 0, CIC_PAL };
  10. void print_cic_state(void);
  11. char *get_cic_statename(enum cicstates state);
  12. enum cicstates get_cic_state(void);
  13. void cic_init(int allow_pairmode);
  14. void cic_pair(int init_vmode, int init_d4);
  15. void cic_videomode(int value);
  16. void cic_d4(int value);
  17. #endif