vdr  2.6.1
hdffcmd_hdmi.h
Go to the documentation of this file.
1 /**********************************************************************
2  *
3  * HDFF firmware command interface library
4  *
5  * Copyright (C) 2011 Andreas Regel
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11 
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16 
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the
19  * Free Software Foundation, Inc.,
20  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21  *
22  *********************************************************************/
23 
24 #ifndef HDFFCMD_HDMI_H
25 #define HDFFCMD_HDMI_H
26 
27 
28 typedef enum HdffVideoMode_t
29 {
35 
37 {
43 
44 typedef struct HdffHdmiConfig_t
45 {
50  char CecDeviceName[14];
52 
53 typedef enum HdffCecCommand_t
54 {
60 
61 
62 int HdffCmdHdmiSetVideoMode(int OsdDevice, HdffVideoMode_t VideoMode);
63 
64 int HdffCmdHdmiConfigure(int OsdDevice, const HdffHdmiConfig_t * Config);
65 
66 int HdffCmdHdmiSendCecCommand(int OsdDevice, HdffCecCommand_t Command);
67 
68 int HdffCmdHdmiSendRawCecCommand(int OsdDevice, uint8_t Destination,
69  uint8_t Opcode, const uint8_t * Operand,
70  uint8_t OperandLength);
71 
72 #endif /* HDFFCMD_HDMI_H */
HdffCecCommand_t
Definition: hdffcmd_hdmi.h:54
@ HDFF_CEC_COMMAND_ACTIVE_SOURCE
Definition: hdffcmd_hdmi.h:57
@ HDFF_CEC_COMMAND_TV_OFF
Definition: hdffcmd_hdmi.h:56
@ HDFF_CEC_COMMAND_INACTIVE_SOURCE
Definition: hdffcmd_hdmi.h:58
@ HDFF_CEC_COMMAND_TV_ON
Definition: hdffcmd_hdmi.h:55
HdffVideoModeAdaption_t
Definition: hdffcmd_hdmi.h:37
@ HDFF_VIDEO_MODE_ADAPT_FRAME_RATE
Definition: hdffcmd_hdmi.h:39
@ HDFF_VIDEO_MODE_ADAPT_ONLY_FOR_HD
Definition: hdffcmd_hdmi.h:40
@ HDFF_VIDEO_MODE_ADAPT_OFF
Definition: hdffcmd_hdmi.h:38
@ HDFF_VIDEO_MODE_ADAPT_ALWAYS
Definition: hdffcmd_hdmi.h:41
int HdffCmdHdmiSetVideoMode(int OsdDevice, HdffVideoMode_t VideoMode)
Definition: hdffcmd_hdmi.c:33
int HdffCmdHdmiSendCecCommand(int OsdDevice, HdffCecCommand_t Command)
Definition: hdffcmd_hdmi.c:78
int HdffCmdHdmiSendRawCecCommand(int OsdDevice, uint8_t Destination, uint8_t Opcode, const uint8_t *Operand, uint8_t OperandLength)
Definition: hdffcmd_hdmi.c:94
int HdffCmdHdmiConfigure(int OsdDevice, const HdffHdmiConfig_t *Config)
Definition: hdffcmd_hdmi.c:49
struct HdffHdmiConfig_t HdffHdmiConfig_t
HdffVideoMode_t
Definition: hdffcmd_hdmi.h:29
@ HDFF_VIDEO_MODE_1080I50
Definition: hdffcmd_hdmi.h:32
@ HDFF_VIDEO_MODE_576P50
Definition: hdffcmd_hdmi.h:30
@ HDFF_VIDEO_MODE_720P50
Definition: hdffcmd_hdmi.h:31
@ HDFF_VIDEO_MODE_576I50
Definition: hdffcmd_hdmi.h:33
char CecDeviceName[14]
Definition: hdffcmd_hdmi.h:50
HdffVideoModeAdaption_t VideoModeAdaption
Definition: hdffcmd_hdmi.h:49