-
-
Notifications
You must be signed in to change notification settings - Fork 212
/
Copy pathvideo_modes.h
41 lines (35 loc) · 1.15 KB
/
video_modes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
******************************************************************************
* @file video_modes.h
* @author
* @version
* @date
* @brief
******************************************************************************
*/
#ifndef _VIDEO_MODES_H
#define _VIDEO_MODES_H
/* Includes ------------------------------------------------------------------*/
#include "edid.h"
/* Exported struct -----------------------------------------------------------*/
struct envie_edid_mode {
const char *name;
unsigned int pixel_clock;
unsigned int refresh;
unsigned int hactive;
unsigned int hback_porch;
unsigned int hfront_porch;
unsigned int hsync_len;
unsigned int vactive;
unsigned int vsync_len;
unsigned int vback_porch;
unsigned int vfront_porch;
unsigned int voffset;
unsigned int hpol : 1;
unsigned int vpol : 1;
};
/* Exported variables --------------------------------------------------------*/
extern struct envie_edid_mode envie_known_modes[];
/* Exported functions --------------------------------------------------------*/
enum edid_modes video_modes_get_edid(uint32_t h_check, uint32_t v_check);
#endif /* _VIDEO_MODES_H */