1 /* ----------------------------------------------------------------------------
\r
2 * SAM Software Package License
\r
3 * ----------------------------------------------------------------------------
\r
4 * Copyright (c) 2013, Atmel Corporation
\r
6 * All rights reserved.
\r
8 * Redistribution and use in source and binary forms, with or without
\r
9 * modification, are permitted provided that the following conditions are met:
\r
11 * - Redistributions of source code must retain the above copyright notice,
\r
12 * this list of conditions and the disclaimer below.
\r
14 * Atmel's name may not be used to endorse or promote products derived from
\r
15 * this software without specific prior written permission.
\r
17 * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
\r
18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
\r
19 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
\r
20 * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
\r
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
\r
22 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
\r
23 * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
\r
24 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
\r
25 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
\r
26 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\r
27 * ----------------------------------------------------------------------------
\r
32 /** \addtogroup isi_module
\r
34 * \section gmac_usage Usage
\r
35 * - ISI_Init: initialize ISI with default parameters
\r
36 * - ISI_EnableInterrupt: enable one or more interrupts
\r
37 * - ISI_DisableInterrupt: disable one or more interrupts
\r
38 * - ISI_Enable: enable isi module
\r
39 * - ISI_Disable: disable isi module
\r
40 * - ISI_CodecPathFull: enable codec path
\r
41 * - ISI_SetFrame: set frame rate
\r
42 * - ISI_BytesForOnePixel: return number of byte for one pixel
\r
43 * - ISI_StatusRegister: return ISI status register
\r
44 * - ISI_Reset: make a software reset
\r
52 /*----------------------------------------------------------------------------
\r
54 *----------------------------------------------------------------------------*/
\r
56 /** ISI descriptors */
\r
59 /** Current LCD index, used with AT91C_ISI_MAX_PREV_BUFFER */
\r
60 uint32_t CurrentLcdIndex;
\r
61 /** set if Fifo Codec Empty is present */
\r
62 volatile uint32_t DisplayCodec;
\r
63 /** upgrade for each Fifo Codec Overflow (statistics use) */
\r
64 uint32_t nb_codec_ovf;
\r
65 /** upgrade for each Fifo Preview Overflow (statistics use) */
\r
66 uint32_t nb_prev_ovf;
\r
69 /** Frame Buffer Descriptors */
\r
72 /** Address of the Current FrameBuffer */
\r
74 /** Address of the Control */
\r
76 /** Address of the Next FrameBuffer */
\r
78 }ISI_FrameBufferDescriptors;
\r
81 /*----------------------------------------------------------------------------
\r
82 * Exported functions
\r
83 *----------------------------------------------------------------------------*/
\r
84 extern void ISI_Enable(void);
\r
85 extern void ISI_Disable(void);
\r
86 extern void ISI_DmaChannelEnable(uint32_t channel);
\r
87 extern void ISI_DmaChannelDisable(uint32_t channel);
\r
88 extern void ISI_EnableInterrupt(uint32_t flag);
\r
89 extern void ISI_DisableInterrupt(uint32_t flag);
\r
90 extern void ISI_CodecPathFull(void);
\r
91 extern void ISI_SetFrame(uint32_t frate);
\r
92 extern uint8_t ISI_BytesForOnePixel(uint8_t bmpRgb);
\r
93 extern void ISI_Reset(void);
\r
94 extern void ISI_Init(pIsi_Video pVideo);
\r
95 extern uint32_t ISI_StatusRegister(void);
\r
97 #endif //#ifndef ISI_H
\r