SAMV71 Xplained Ultra Software Package 1.3

isi.h File Reference

Go to the source code of this file.

Data Structures

struct  ISI_Descriptors
struct  ISI_FrameBufferDescriptors
struct  ISI_Y2R
struct  ISI_R2Y

Defines

#define YUV_INPUT   0
#define RGB_INPUT   1
#define GRAYSCALE_INPUT   2

Functions

void ISI_Enable (void)
 Enable ISI.
void ISI_Disable (void)
 Disable ISI.
void ISI_DmaChannelEnable (uint32_t channel)
 Enable ISI Dma channel.
void ISI_DmaChannelDisable (uint32_t channel)
 Disable ISI Dma channel.
void ISI_EnableInterrupt (uint32_t flag)
 Enable ISI interrupt.
void ISI_DisableInterrupt (uint32_t flag)
 Disable ISI interrupt.
void ISI_CodecPathFull (void)
 Enable Codec path for capture next frame.
void ISI_SetFrameRate (uint32_t frame)
 Set frame rate.
uint8_t ISI_BytesForOnePixel (uint8_t bmpRgb)
 Get the number of byte per pixels.
void ISI_Reset (void)
 Reset ISI.
void ISI_Init (pIsi_Video pVideo)
uint32_t ISI_StatusRegister (void)
 Return ISI status register.
void ISI_SetBlank (uint8_t hBlank, uint8_t vBlank)
 Set the windows blank.
void ISI_SetSensorSize (uint32_t hSize, uint32_t vSize)
 Set vertical and horizontal Size of the Image Sensor.
void ISI_RgbPixelMapping (uint32_t wRgbPixelMapping)
 Defines RGB pattern when RGB_MODE is set to 1.
void ISI_RgbSwapMode (uint32_t swapMode)
 Enables RGB swap.
void ISI_YCrCbFormat (uint32_t wYuvSwapMode)
 Defines YCrCb swap format.
void ISI_setGrayScaleMode (uint32_t wPixelFormat)
 Input image is assumed to be grayscale-coded.
void ISI_setInputStream (uint32_t wStreamMode)
 Set data stream format.
void ISI_setPreviewSize (uint32_t hSize, uint32_t vSize)
 Set preview size.
void ISI_calcScalerFactor (void)
 calculate scaler factor automatically.
void ISI_setDmaInPreviewPath (uint32_t baseFrameBufDesc, uint32_t dmaCtrl, uint32_t frameBufferStartAddr)
 Configure DMA for preview path.
void ISI_setDmaInCodecPath (uint32_t baseFrameBufDesc, uint32_t dmaCtrl, uint32_t frameBufferStartAddr)
 Configure DMA for Codec path.
void ISI_SetMatrix4Yuv2Rgb (ISI_Y2R *yuv2rgb)
 ISI set matrix for YUV to RGB color space for preview path.
void ISI_SetMatrix4Rgb2Yuv (ISI_R2Y *rgb2yuv)
 ISI set matrix for RGB to YUV color space for codec path.

Detailed Description

Definition in file isi.h.


Function Documentation

uint8_t ISI_BytesForOnePixel ( uint8_t  bmpRgb  ) 

Get the number of byte per pixels.

Parameters:
bmpRgb BMP type can be YUV or RGB

Definition at line 154 of file isi.c.

Here is the call graph for this function:

void ISI_calcScalerFactor ( void   ) 

calculate scaler factor automatically.

Note:
The sensor size and preview size for LCD was configured before this setting.

Definition at line 291 of file isi.c.

Here is the call graph for this function:

void ISI_DisableInterrupt ( uint32_t  flag  ) 

Disable ISI interrupt.

Parameters:
flag of interrupt to disable

Definition at line 112 of file isi.c.

Here is the call graph for this function:

void ISI_DmaChannelDisable ( uint32_t  channel  ) 

Disable ISI Dma channel.

Parameters:
channel to be disabled

Definition at line 81 of file isi.c.

Here is the call graph for this function:

void ISI_DmaChannelEnable ( uint32_t  channel  ) 

Enable ISI Dma channel.

Parameters:
channel to be enabled

Definition at line 72 of file isi.c.

Here is the call graph for this function:

void ISI_EnableInterrupt ( uint32_t  flag  ) 

Enable ISI interrupt.

Parameters:
flag of interrupt to enable

Definition at line 103 of file isi.c.

Here is the call graph for this function:

void ISI_RgbPixelMapping ( uint32_t  wRgbPixelMapping  ) 

Defines RGB pattern when RGB_MODE is set to 1.

Parameters:
wRgbPixelMapping RGB pattern

Definition at line 224 of file isi.c.

Here is the call graph for this function:

void ISI_RgbSwapMode ( uint32_t  swapMode  ) 

Enables RGB swap.

Parameters:
swapMode 0: D7-R7, 1: D0-R7

Definition at line 238 of file isi.c.

Here is the call graph for this function:

void ISI_SetBlank ( uint8_t  hBlank,
uint8_t  vBlank 
)

Set the windows blank.

Parameters:
hBlank pixel clock periods to wait before the beginning of a line.
vBlank lines are skipped at the beginning of the frame.

Definition at line 199 of file isi.c.

Here is the call graph for this function:

void ISI_setDmaInCodecPath ( uint32_t  baseFrameBufDesc,
uint32_t  dmaCtrl,
uint32_t  frameBufferStartAddr 
)

Configure DMA for Codec path.

Parameters:
baseFrameBufDesc Preview Descriptor Address.
dmaCtrl DMA Preview Control.
frameBufferStartAddr DMA Preview Base Address.

Definition at line 322 of file isi.c.

Here is the call graph for this function:

void ISI_setDmaInPreviewPath ( uint32_t  baseFrameBufDesc,
uint32_t  dmaCtrl,
uint32_t  frameBufferStartAddr 
)

Configure DMA for preview path.

Parameters:
baseFrameBufDesc Preview Descriptor Address.
dmaCtrl DMA Preview Control.
frameBufferStartAddr DMA Preview Base Address.

Definition at line 308 of file isi.c.

Here is the call graph for this function:

void ISI_SetFrameRate ( uint32_t  frame  ) 

Set frame rate.

Parameters:
frame frame rate capture

Definition at line 141 of file isi.c.

Here is the call graph for this function:

void ISI_setGrayScaleMode ( uint32_t  wPixelFormat  ) 

Input image is assumed to be grayscale-coded.

Parameters:
wPixelFormat 0: 2 pixels per word, 1:1 pixel per word.

Definition at line 258 of file isi.c.

Here is the call graph for this function:

void ISI_setInputStream ( uint32_t  wStreamMode  ) 

Set data stream format.

Parameters:
wStreamMode 0: YUV input, 1: RGB 8:8:8/5:6:5 input

Definition at line 269 of file isi.c.

Here is the call graph for this function:

void ISI_SetMatrix4Rgb2Yuv ( ISI_R2Y rgb2yuv  ) 

ISI set matrix for RGB to YUV color space for codec path.

Parameters:
rgb2yuv structure of RGB to YUV parameters.

Definition at line 351 of file isi.c.

Here is the call graph for this function:

void ISI_SetMatrix4Yuv2Rgb ( ISI_Y2R yuv2rgb  ) 

ISI set matrix for YUV to RGB color space for preview path.

Parameters:
yuv2rgb structure of YUV to RBG parameters.

Definition at line 334 of file isi.c.

Here is the call graph for this function:

void ISI_setPreviewSize ( uint32_t  hSize,
uint32_t  vSize 
)

Set preview size.

Parameters:
hSize Horizontal Preview size (640 max only in RGB mode).
vSize Vertical Preview size (480 max only in RGB mode).

Definition at line 280 of file isi.c.

Here is the call graph for this function:

void ISI_SetSensorSize ( uint32_t  hSize,
uint32_t  vSize 
)

Set vertical and horizontal Size of the Image Sensor.

Parameters:
hSize Horizontal size of the Image sensor [0..2047].
vSize Vertical size of the Image sensor [0..2047].

Definition at line 210 of file isi.c.

Here is the call graph for this function:

uint32_t ISI_StatusRegister ( void   ) 

Return ISI status register.

Returns:
Status of ISI register

Definition at line 121 of file isi.c.

Here is the call graph for this function:

void ISI_YCrCbFormat ( uint32_t  wYuvSwapMode  ) 

Defines YCrCb swap format.

Parameters:
wYuvSwapMode YUV Swap format

Definition at line 248 of file isi.c.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines