piSmasher Configuration Libraries
piSmasher peripheral device configuration libraries
vtc.h
Go to the documentation of this file.
1 
46 #ifndef __VTC_H
47 #define __VTC_H
48 
49 #ifdef __cplusplus
50 extern "C" {
51 #endif
52 
53 enum vtc_mode {
68  VTC_MODE_PAL,
69 };
70 
71 struct vtc_dev {
72  void *base;
73  int fd;
74 };
75 
76 int vtc_init(struct vtc_dev *dev, const char *devname);
77 int vtc_gen_enable(struct vtc_dev *dev, bool en);
78 int vtc_enable(struct vtc_dev *dev, bool en);
79 int vtc_set_generator_video_mode(struct vtc_dev *dev, enum vtc_mode mode);
80 int vtc_enable_interrupts(struct vtc_dev *dev);
81 int vtc_det_enable(struct vtc_dev *dev, bool en);
82 int vtc_det_dump(struct vtc_dev *dev);
83 
84 #ifdef __cplusplus
85 }
86 #endif
87 
88 #endif /* __VTC_H */
Definition: vtc.h:67
vtc_mode
Definition: vtc.h:52
int vtc_set_generator_video_mode(struct vtc_dev *dev, enum vtc_mode mode)
Set Video Generator Video Mode.
Definition: vtc.c:962
Definition: vtc.h:70
Definition: vtc.h:57
Definition: vtc.h:61
Definition: vtc.h:58
Definition: vtc.h:66
int vtc_gen_enable(struct vtc_dev *dev, bool en)
Enable Video Timing Generator.
Definition: vtc.c:656
Definition: vtc.h:65
Definition: vtc.h:63
Definition: vtc.h:60
Definition: vtc.h:64
Definition: vtc.h:56
Definition: vtc.h:53
int vtc_det_enable(struct vtc_dev *dev, bool en)
Enable Video Timing Detector.
Definition: vtc.c:678
Definition: vtc.h:59
int vtc_init(struct vtc_dev *dev, const char *devname)
Video Timing Controller Initialization.
Definition: vtc.c:1095
Definition: vtc.h:55
int vtc_enable(struct vtc_dev *dev, bool en)
Enable Video Timing Controller.
Definition: vtc.c:632
Definition: vtc.h:54
Definition: vtc.h:62