| 1 | /***************************************************************************//** |
| 2 | * @file transmitter_defs.h |
| 3 | ******************************************************************************** |
| 4 | * Copyright 2013(c) Analog Devices, Inc. |
| 5 | * |
| 6 | * All rights reserved. |
| 7 | * |
| 8 | * Redistribution and use in source and binary forms, with or without |
| 9 | * modification, are permitted provided that the following conditions are met: |
| 10 | * - Redistributions of source code must retain the above copyright |
| 11 | * notice, this list of conditions and the following disclaimer. |
| 12 | * - Redistributions in binary form must reproduce the above copyright |
| 13 | * notice, this list of conditions and the following disclaimer in |
| 14 | * the documentation and/or other materials provided with the |
| 15 | * distribution. |
| 16 | * - Neither the name of Analog Devices, Inc. nor the names of its |
| 17 | * contributors may be used to endorse or promote products derived |
| 18 | * from this software without specific prior written permission. |
| 19 | * - The use of this software may or may not infringe the patent rights |
| 20 | * of one or more patent holders. This license does not release you |
| 21 | * from the requirement that you obtain separate licenses from these |
| 22 | * patent holders to use this software. |
| 23 | * - Use of the software either in source or binary form, must be run |
| 24 | * on or directly connected to an Analog Devices Inc. component. |
| 25 | * |
| 26 | * THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR |
| 27 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, |
| 28 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
| 29 | * IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, |
| 30 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 31 | * LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR |
| 32 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| 33 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| 34 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 35 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 36 | * |
| 37 | ******************************************************************************** |
| 38 | * SVN Revision: $WCREV$ |
| 39 | *******************************************************************************/ |
| 40 | |
| 41 | #ifndef _TRANSMITTER_DEFS_H_ |
| 42 | #define _TRANSMITTER_DEFS_H_ |
| 43 | |
| 44 | /******************************************************************************/ |
| 45 | /***************************** Include Files **********************************/ |
| 46 | /******************************************************************************/ |
| 47 | #include "atv_types.h" |
| 48 | #include "tx_lib.h" |
| 49 | |
| 50 | /******************************************************************************/ |
| 51 | /******************* Macros and Constants Definitions *************************/ |
| 52 | /******************************************************************************/ |
| 53 | #define MUTE_DISABLE 0x0 |
| 54 | #define MUTE_ENABLE 0x1 |
| 55 | |
| 56 | /******************************************************************************/ |
| 57 | /************************** Types Declarations ********************************/ |
| 58 | /******************************************************************************/ |
| 59 | typedef enum |
| 60 | { |
| 61 | MODE_XMT, /* Transmitter mode */ |
| 62 | MODE_NONE, /* None */ |
| 63 | MODE_INVALID /* Invalid value, for internal use only */ |
| 64 | }TRANSMITTER_OPER_MODE; |
| 65 | |
| 66 | typedef enum |
| 67 | { |
| 68 | REP_POWER_DOWN, |
| 69 | REP_POWER_UP |
| 70 | } TRANSMITTER_POWER_MODE; |
| 71 | |
| 72 | typedef enum |
| 73 | { |
| 74 | AUD_IN_I2S0, |
| 75 | AUD_IN_I2S1, |
| 76 | AUD_IN_I2S2, |
| 77 | AUD_IN_I2S3, |
| 78 | AUD_IN_I2S, |
| 79 | AUD_IN_SPDIF, |
| 80 | AUD_IN_DSD0, |
| 81 | AUD_IN_DSD1, |
| 82 | AUD_IN_DSD2, |
| 83 | AUD_IN_DSD3, |
| 84 | AUD_IN_DSD4, |
| 85 | AUD_IN_DSD5, |
| 86 | AUD_IN_DSD6, |
| 87 | AUD_IN_DSD7, |
| 88 | AUD_IN_DSD, |
| 89 | AUD_IN_DST, |
| 90 | AUD_IN_ALL |
| 91 | } TRANSMITTER_AUD_INTERFACE; |
| 92 | |
| 93 | typedef enum |
| 94 | { |
| 95 | OUT_MODE_HDMI, |
| 96 | OUT_MODE_DVI |
| 97 | }TRANSMITTER_OUTPUT_MODE; |
| 98 | |
| 99 | typedef struct |
| 100 | { |
| 101 | BOOL Changed; |
| 102 | TRANSMITTER_OPER_MODE Mode; |
| 103 | TRANSMITTER_POWER_MODE PowerMode; |
| 104 | TRANSMITTER_OUTPUT_MODE ReqOutputMode; |
| 105 | UCHAR InPixelBitsPerColor; |
| 106 | TX_IN_FORMAT InPixelFormat; |
| 107 | UCHAR InPixelStyle; |
| 108 | TX_CHAN_ALIGN InPixelAlignment; |
| 109 | TX_OUT_ENCODING OutPixelEncFormat; |
| 110 | TX_CS_MODE InColorSpace; |
| 111 | TX_CS_MODE OutColorSpace; |
| 112 | TRANSMITTER_AUD_INTERFACE AudInterface; |
| 113 | UINT16 DebugControl; |
| 114 | } TRANSMITTER_OPER_PARAMS; |
| 115 | |
| 116 | typedef struct |
| 117 | { |
| 118 | BOOL Hpd; |
| 119 | BOOL Msen; |
| 120 | }TX_STATUS_PKT; |
| 121 | |
| 122 | #endif |