vicpsync.h File Reference


Detailed Description

VICPSYNC Interface Definitions - Framework support package for synchronization between codec and VICP usage. This package allows algorithms to wait on interrupt completion of individual functional units of the VICP * coprocessor.

#include <ti/xdais/ialg.h>
#include <ti/sdo/fc/ires/vicp/ires_vicp2.h>
Include dependency graph for vicpsync.h:

Go to the source code of this file.

Data Structures

struct  VICPSYNC_Params
 The module configuration structure for VICPSYNC implementation. More...

Defines

#define VICPSYNC_GTNAME   "ti.sdo.fc.vicpsync"

Enumerations

enum  VICPSYNC_ResourceType {
  VICPSYNC_IMX0,
  VICPSYNC_IMX1,
  VICPSYNC_MJCP,
  VICPSYNC_NSF
}
 

Resource types for which the API can be called.

More...
enum  VICPSYNC_InterruptLine {
  VICPSYNC_FIXED,
  VICPSYNC_FLEXIBLE
}
 

Interrupt line that can be specified for each Resource type.

More...
enum  VICPSYNC_InterruptType {
  VICPSYNC_IRQ,
  VICPSYNC_FIQ
}
 

Interrupt type that can be specified for each Resource type.

More...
enum  VICPSYNC_Status {
  VICPSYNC_OK,
  VICPSYNC_EFAIL,
  VICPSYNC_ENORESOURCE
}

Functions

VICPSYNC_Status VICPSYNC_start (IALG_Handle handle, VICPSYNC_ResourceType res, VICPSYNC_InterruptType intType, VICPSYNC_InterruptLine intLine, IRES_VICP2_Handle vicpHandle)
 This is the top level function that allows ARM-side algorithms to mark beginning of the usage of individual functional units of VICP.
VICPSYNC_Status VICPSYNC_wait (IRES_VICP2_Handle vicpHandle, VICPSYNC_ResourceType res)
 This is the top level function that allows the ARM-side algorithms to wait for interrupt corresponding to the functional unit of the VICP to fire.
Bool VICPSYNC_done (IRES_VICP2_Handle vicpHandle, VICPSYNC_ResourceType res)
 This is the top level function that allows the ARM-side algorithms to query the status of the interrupt corresponding to the functional unit that was configured using VICPSYNC_start call.
VICPSYNC_Status VICPSYNC_unregister (IRES_VICP2_Handle vicpHandle, VICPSYNC_ResourceType res)
 This is the top level function that allows the ARM-side algorithms to unregister the ISR associated with the VICP resource that may have been previously registered via a call to VICPSYNC_start.

Variables

VICPSYNC_Params VICPSYNC_PARAMS
 Default module configuration structure (defined in vicpsync.c).

Copyright 2010, Texas Instruments Incorporated