vdr  1.7.27
hdffcmd_hdmi.h
Go to the documentation of this file.
00001 /**********************************************************************
00002  *
00003  * HDFF firmware command interface library
00004  *
00005  * Copyright (C) 2011  Andreas Regel
00006  *
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License
00009  * as published by the Free Software Foundation; either version 2
00010  * of the License, or (at your option) any later version.
00011 
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016 
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the
00019  * Free Software Foundation, Inc.,
00020  * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00021  *
00022  *********************************************************************/
00023 
00024 #ifndef HDFFCMD_HDMI_H
00025 #define HDFFCMD_HDMI_H
00026 
00027 
00028 typedef enum HdffVideoMode_t
00029 {
00030     HDFF_VIDEO_MODE_576P50 = 18,
00031     HDFF_VIDEO_MODE_720P50 = 19,
00032     HDFF_VIDEO_MODE_1080I50 = 20,
00033     HDFF_VIDEO_MODE_576I50 = 22
00034 } HdffVideoMode_t;
00035 
00036 typedef enum HdffVideoModeAdaption_t
00037 {
00038     HDFF_VIDEO_MODE_ADAPT_OFF,
00039     HDFF_VIDEO_MODE_ADAPT_FRAME_RATE,
00040     HDFF_VIDEO_MODE_ADAPT_ONLY_FOR_HD,
00041     HDFF_VIDEO_MODE_ADAPT_ALWAYS
00042 } HdffVideoModeAdaption_t;
00043 
00044 typedef struct HdffHdmiConfig_t
00045 {
00046     int TransmitAudio;
00047     int ForceDviMode;
00048     int CecEnabled;
00049     HdffVideoModeAdaption_t VideoModeAdaption;
00050     char CecDeviceName[14];
00051 } HdffHdmiConfig_t;
00052 
00053 typedef enum HdffCecCommand_t
00054 {
00055     HDFF_CEC_COMMAND_TV_ON,
00056     HDFF_CEC_COMMAND_TV_OFF,
00057     HDFF_CEC_COMMAND_ACTIVE_SOURCE,
00058     HDFF_CEC_COMMAND_INACTIVE_SOURCE
00059 } HdffCecCommand_t;
00060 
00061 
00062 int HdffCmdHdmiSetVideoMode(int OsdDevice, HdffVideoMode_t VideoMode);
00063 
00064 int HdffCmdHdmiConfigure(int OsdDevice, const HdffHdmiConfig_t * Config);
00065 
00066 int HdffCmdHdmiSendCecCommand(int OsdDevice, HdffCecCommand_t Command);
00067 
00068 int HdffCmdHdmiSendRawCecCommand(int OsdDevice, uint8_t Destination,
00069                                  uint8_t Opcode, const uint8_t * Operand,
00070                                  uint8_t OperandLength);
00071 
00072 #endif /* HDFFCMD_HDMI_H */