RTEMS 6.1-rc2
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
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
 

Macros

#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.
 

Function Documentation

◆ ISI_BytesForOnePixel()

uint8_t ISI_BytesForOnePixel ( uint8_t  bmpRgb)

Get the number of byte per pixels.

Parameters
bmpRgbBMP type can be YUV or RGB

◆ ISI_calcScalerFactor()

void ISI_calcScalerFactor ( void  )

calculate scaler factor automatically.

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

◆ ISI_DisableInterrupt()

void ISI_DisableInterrupt ( uint32_t  flag)

Disable ISI interrupt.

Parameters
flagof interrupt to disable

◆ ISI_DmaChannelDisable()

void ISI_DmaChannelDisable ( uint32_t  channel)

Disable ISI Dma channel.

Parameters
channelto be disabled

◆ ISI_DmaChannelEnable()

void ISI_DmaChannelEnable ( uint32_t  channel)

Enable ISI Dma channel.

Parameters
channelto be enabled

◆ ISI_EnableInterrupt()

void ISI_EnableInterrupt ( uint32_t  flag)

Enable ISI interrupt.

Parameters
flagof interrupt to enable

◆ ISI_RgbPixelMapping()

void ISI_RgbPixelMapping ( uint32_t  wRgbPixelMapping)

Defines RGB pattern when RGB_MODE is set to 1.

Parameters
wRgbPixelMappingRGB pattern

◆ ISI_RgbSwapMode()

void ISI_RgbSwapMode ( uint32_t  swapMode)

Enables RGB swap.

Parameters
swapMode0: D7-R7, 1: D0-R7

◆ ISI_SetBlank()

void ISI_SetBlank ( uint8_t  hBlank,
uint8_t  vBlank 
)

Set the windows blank.

Parameters
hBlankpixel clock periods to wait before the beginning of a line.
vBlanklines are skipped at the beginning of the frame.

◆ ISI_setDmaInCodecPath()

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

Configure DMA for Codec path.

Parameters
baseFrameBufDescPreview Descriptor Address.
dmaCtrlDMA Preview Control.
frameBufferStartAddrDMA Preview Base Address.

◆ ISI_setDmaInPreviewPath()

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

Configure DMA for preview path.

Parameters
baseFrameBufDescPreview Descriptor Address.
dmaCtrlDMA Preview Control.
frameBufferStartAddrDMA Preview Base Address.

◆ ISI_SetFrameRate()

void ISI_SetFrameRate ( uint32_t  frame)

Set frame rate.

Parameters
frameframe rate capture

◆ ISI_setGrayScaleMode()

void ISI_setGrayScaleMode ( uint32_t  wPixelFormat)

Input image is assumed to be grayscale-coded.

Parameters
wPixelFormat0: 2 pixels per word, 1:1 pixel per word.

◆ ISI_setInputStream()

void ISI_setInputStream ( uint32_t  wStreamMode)

Set data stream format.

Parameters
wStreamMode0: YUV input, 1: RGB 8:8:8/5:6:5 input

◆ ISI_SetMatrix4Rgb2Yuv()

void ISI_SetMatrix4Rgb2Yuv ( ISI_R2Y rgb2yuv)

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

Parameters
rgb2yuvstructure of RGB to YUV parameters.

◆ ISI_SetMatrix4Yuv2Rgb()

void ISI_SetMatrix4Yuv2Rgb ( ISI_Y2R yuv2rgb)

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

Parameters
yuv2rgbstructure of YUV to RBG parameters.

◆ ISI_setPreviewSize()

void ISI_setPreviewSize ( uint32_t  hSize,
uint32_t  vSize 
)

Set preview size.

Parameters
hSizeHorizontal Preview size (640 max only in RGB mode).
vSizeVertical Preview size (480 max only in RGB mode).

◆ ISI_SetSensorSize()

void ISI_SetSensorSize ( uint32_t  hSize,
uint32_t  vSize 
)

Set vertical and horizontal Size of the Image Sensor.

Parameters
hSizeHorizontal size of the Image sensor [0..2047].
vSizeVertical size of the Image sensor [0..2047].

◆ ISI_StatusRegister()

uint32_t ISI_StatusRegister ( void  )

Return ISI status register.

Returns
Status of ISI register

◆ ISI_YCrCbFormat()

void ISI_YCrCbFormat ( uint32_t  wYuvSwapMode)

Defines YCrCb swap format.

Parameters
wYuvSwapModeYUV Swap format