cic.h 627 B

123456789101112131415161718192021222324
  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. char *get_cic_statefriendlyname( enum cicstates state );
  13. enum cicstates get_cic_state( void );
  14. void cic_init( int allow_pairmode );
  15. void cic_pair( int init_vmode, int init_d4 );
  16. void cic_videomode( int value );
  17. void cic_d4( int value );
  18. #endif