Nut/OS  4.10.3
API Reference
at91_isi.h
Go to the documentation of this file.
00001 #ifndef _ARCH_ARM_AT91_ISI_H_
00002 #define _ARCH_ARM_AT91_ISI_H_
00003 
00004 /*
00005  * Copyright (C) 2010 by egnite GmbH
00006  *
00007  * All rights reserved.
00008  *
00009  * Redistribution and use in source and binary forms, with or without
00010  * modification, are permitted provided that the following conditions
00011  * are met:
00012  *
00013  * 1. Redistributions of source code must retain the above copyright
00014  *    notice, this list of conditions and the following disclaimer.
00015  * 2. Redistributions in binary form must reproduce the above copyright
00016  *    notice, this list of conditions and the following disclaimer in the
00017  *    documentation and/or other materials provided with the distribution.
00018  * 3. Neither the name of the copyright holders nor the names of
00019  *    contributors may be used to endorse or promote products derived
00020  *    from this software without specific prior written permission.
00021  *
00022  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00023  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00024  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
00025  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
00026  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
00027  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
00028  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
00029  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
00030  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00031  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
00032  * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00033  * SUCH DAMAGE.
00034  *
00035  * For additional information see http://www.ethernut.de/
00036  */
00037 
00051 
00054 #define ISI_CR1_OFF             0x00000000  
00055 #define ISI_CR1    (ISI_BASE + ISI_CR1_OFF) 
00056 #define ISI_RST                 0x00000001  
00057 #define ISI_DIS                 0x00000002  
00058 #define ISI_HSYNC_POL           0x00000004  
00059 #define ISI_VSYNC_POL           0x00000008  
00060 #define ISI_PIXCLK_POL          0x00000010  
00061 #define ISI_EMB_SYNC            0x00000040  
00062 #define ISI_CRC_SYNC            0x00000080  
00063 #define ISI_FRATE               0x00000700  
00064 #define ISI_FRATE_LSB                   8   
00065 #define ISI_FULL                0x00001000  
00066 #define ISI_THMASK              0x00006000  
00067 #define ISI_THMASK_4_8_16_BURST 0x00000000  
00068 #define ISI_THMASK_8_16_BURST   0x00002000  
00069 #define ISI_THMASK_16_BURST     0x00004000  
00070 #define ISI_CODEC_ON            0x00008000  
00071 #define ISI_SLD                 0x00FF0000  
00072 #define ISI_SLD_LSB                     16  
00073 #define ISI_SFD                 0xFF000000  
00074 #define ISI_SFD_LSB                     24  
00076 
00077 
00079 #define ISI_CR2_OFF             0x00000004  
00080 #define ISI_CR2    (ISI_BASE + ISI_CR2_OFF) 
00081 #define ISI_IM_VSIZE            0x000007FF  
00082 #define ISI_IM_VSIZE_LSB                0   
00083 #define ISI_GS_MODE             0x00000800  
00084 #define ISI_RGB_MODE            0x00001000  
00085 #define ISI_GRAYSCALE           0x00002000  
00086 #define ISI_RGB_SWAP            0x00004000  
00087 #define ISI_COL_SPACE           0x00008000  
00088 #define ISI_IM_HSIZE            0x07FF0000  
00089 #define ISI_IM_HSIZE_LSB                16  
00090 #define ISI_YCC_SWAP            0x30000000  
00091 #define ISI_YCC_SWAP_DEFAULT    0x00000000  
00092 #define ISI_YCC_SWAP_MODE1      0x10000000  
00093 #define ISI_YCC_SWAP_MODE2      0x20000000  
00094 #define ISI_YCC_SWAP_MODE3      0x30000000  
00095 #define ISI_RGB_CFG             0xC0000000  
00096 #define ISI_RGB_CFG_DEFAULT     0x00000000  
00097 #define ISI_RGB_CFG_MODE1       0x40000000  
00098 #define ISI_RGB_CFG_MODE2       0x80000000  
00099 #define ISI_RGB_CFG_MODE3       0xC0000000  
00101 
00102 
00104 #define ISI_SR_OFF              0x00000008  
00105 #define ISI_SR      (ISI_BASE + ISI_SR_OFF) 
00106 #define ISI_IER_OFF             0x0000000C  
00107 #define ISI_IER    (ISI_BASE + ISI_IER_OFF) 
00108 #define ISI_IDR_OFF             0x00000010  
00109 #define ISI_IDR    (ISI_BASE + ISI_IDR_OFF) 
00110 #define ISI_IMR_OFF             0x00000014  
00111 #define ISI_IMR    (ISI_BASE + ISI_IMR_OFF) 
00112 #define ISI_SOF                 0x00000001  
00113 #define ISI_DIS                 0x00000002  
00114 #define ISI_SOFTRST             0x00000004  
00115 #define ISI_CDC_PND             0x00000008  
00116 #define ISI_CRC_ERR             0x00000010  
00117 #define ISI_FO_C_OVF            0x00000020  
00118 #define ISI_FO_P_OVF            0x00000040  
00119 #define ISI_FO_P_EMP            0x00000080  
00120 #define ISI_FO_C_EMP            0x00000100  
00121 #define ISI_FR_OVR              0x00000200  
00123 
00124 
00126 #define ISI_PSIZE_OFF           0x00000020  
00127 #define ISI_PSIZE (ISI_BASE + ISI_PSIZE_OFF) 
00128 #define ISI_PREV_VSIZE          0x000003FF  
00129 #define ISI_PREV_VSIZE_LSB              0   
00130 #define ISI_PREV_HSIZE          0x03FF0000  
00131 #define ISI_PREV_HSIZE_LSB              16  
00133 
00134 
00136 #define ISI_PDECF_OFF           0x00000024  
00137 #define ISI_PDECF (ISI_BASE + ISI_PDECF_OFF) 
00138 #define ISI_DEC_FACTOR          0x000000FF  
00139 #define ISI_DEC_FACTOR_LSB              0   
00141 
00142 
00144 #define ISI_PPFBD_OFF           0x00000028  
00145 #define ISI_PPFBD (ISI_BASE + ISI_PPFBD_OFF) 
00147 
00148 
00150 #define ISI_CDBA_OFF            0x0000002C  
00151 #define ISI_CDBA  (ISI_BASE + ISI_CDBA_OFF) 
00153 
00154 
00156 #define ISI_Y2R_SET0_OFF        0x00000030  
00157 #define ISI_Y2R_SET0 (ISI_BASE + ISI_Y2R_SET0_OFF) 
00158 #define ISI_Y2R_C0              0x000000FF  
00159 #define ISI_Y2R_C0_LSB                  0   
00160 #define ISI_Y2R_C1              0x0000FF00  
00161 #define ISI_Y2R_C1_LSB                  8   
00162 #define ISI_Y2R_C2              0x00FF0000  
00163 #define ISI_Y2R_C2_LSB                  16  
00164 #define ISI_Y2R_C3              0xFF000000  
00165 #define ISI_Y2R_C3_LSB                  24  
00167 
00168 
00170 #define ISI_Y2R_SET1_OFF        0x00000034  
00171 #define ISI_Y2R_SET1 (ISI_BASE + ISI_Y2R_SET1_OFF) 
00172 #define ISI_Y2R_C4              0x000001FF  
00173 #define ISI_Y2R_C4_LSB                  0   
00174 #define ISI_Y2R_YOFF            0x00001000  
00175 #define ISI_Y2R_CROFF           0x00002000  
00176 #define ISI_Y2R_CBOFF           0x00004000  
00178 
00179 
00181 #define ISI_R2Y_SET0_OFF        0x00000038  
00182 #define ISI_R2Y_SET0 (ISI_BASE + ISI_R2Y_SET0_OFF) 
00183 #define ISI_R2Y_C0              0x000000FF  
00184 #define ISI_R2Y_C0_LSB                  0   
00185 #define ISI_R2Y_C1              0x0000FF00  
00186 #define ISI_R2Y_C1_LSB                  8   
00187 #define ISI_R2Y_C2              0x00FF0000  
00188 #define ISI_R2Y_C2_LSB                  16  
00189 #define ISI_R2Y_ROFF            0x01000000  
00191 
00192 
00194 #define ISI_R2Y_SET1_OFF        0x0000003C  
00195 #define ISI_R2Y_SET1 (ISI_BASE + ISI_R2Y_SET1_OFF) 
00196 #define ISI_R2Y_C3              0x000000FF  
00197 #define ISI_R2Y_C3_LSB                  0   
00198 #define ISI_R2Y_C4              0x0000FF00  
00199 #define ISI_R2Y_C4_LSB                  8   
00200 #define ISI_R2Y_C5              0x00FF0000  
00201 #define ISI_R2Y_C5_LSB                  16  
00202 #define ISI_R2Y_GOFF            0x01000000  
00204 
00205 
00207 #define ISI_R2Y_SET2_OFF        0x00000040  
00208 #define ISI_R2Y_SET2 (ISI_BASE + ISI_R2Y_SET2_OFF) 
00209 #define ISI_R2Y_C6              0x000000FF  
00210 #define ISI_R2Y_C6_LSB                  0   
00211 #define ISI_R2Y_C7              0x0000FF00  
00212 #define ISI_R2Y_C7_LSB                  8   
00213 #define ISI_R2Y_C8              0x00FF0000  
00214 #define ISI_R2Y_C8_LSB                  16  
00215 #define ISI_R2Y_BOFF            0x01000000  
00217 
00218 
00220 #endif /* _ARCH_ARM_AT91_ISI_H_ */
00221