MAX78000 Peripheral Driver API
Peripheral Driver API for the MAX78000
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
Cameraif

Modules

 CAMERAIF_Registers
 

Enumerations

enum  mxc_pcif_datawidth_t
 
enum  mxc_pcif_gpio_datawidth_t
 
enum  mxc_pcif_readmode_t
 
enum  mxc_pcif_timingsel_t
 

Functions

int MXC_PCIF_Init (mxc_pcif_gpio_datawidth_t gpioDataWidth)
 
void MXC_PCIF_SetDataWidth (mxc_pcif_datawidth_t datawidth)
 
void MXC_PCIF_SetTimingSel (mxc_pcif_timingsel_t timingsel)
 
void MXC_PCIF_SetThreshold (int fifo_thrsh)
 
void MXC_PCIF_EnableInt (uint32_t flags)
 
void MXC_PCIF_DisableInt (uint32_t flags)
 
void MXC_PCIF_Start (mxc_pcif_readmode_t readmode)
 
void MXC_PCIF_Stop (void)
 
unsigned int MXC_PCIF_GetData (void)
 

Detailed Description

Function Documentation

◆ MXC_PCIF_DisableInt()

void MXC_PCIF_DisableInt ( uint32_t  flags)

Disable camera interrupts.

Parameters
flagsInterrupt flags

◆ MXC_PCIF_EnableInt()

void MXC_PCIF_EnableInt ( uint32_t  flags)

Enable camera interrupts.

Parameters
flagsInterrupt flags

◆ MXC_PCIF_GetData()

unsigned int MXC_PCIF_GetData ( void  )

Read fifo of PCIF.

Returns
Value of fifo

◆ MXC_PCIF_Init()

int MXC_PCIF_Init ( mxc_pcif_gpio_datawidth_t  gpioDataWidth)

Initialize the Parallel Camera Interface.

Parameters
gpioDataWidthDesired datawidth for the camera interface (8, 10 or 12 bits).
Returns
E_NO_ERROR if successful, otherwise E_BAD_PARAM.

◆ MXC_PCIF_SetDataWidth()

void MXC_PCIF_SetDataWidth ( mxc_pcif_datawidth_t  datawidth)

Set data width for the camera interface.

Parameters
datawidth8/10/12 bit

◆ MXC_PCIF_SetThreshold()

void MXC_PCIF_SetThreshold ( int  fifo_thrsh)

Set camera FIFO threshold.

Parameters
fifo_thrshDesired FIFO threshold.

◆ MXC_PCIF_SetTimingSel()

void MXC_PCIF_SetTimingSel ( mxc_pcif_timingsel_t  timingsel)

Set the desired timing mode for the camera interface.

Parameters
timingselThere are two different timing modes. HSYNC/VSYNC and Data Stream.

◆ MXC_PCIF_Start()

void MXC_PCIF_Start ( mxc_pcif_readmode_t  readmode)

Start to capture image from camera interface.

Parameters
readmodeSingle mode or Continues mode