xosd.h File Reference

This is main header file of the Xilinx MVI On-Screen-Display (OSD) device driver. More...

#include "xosd_hw.h"
#include "xstatus.h"

Go to the source code of this file.

Data Structures

Defines

Interrupt types for setting up callbacks

Typedefs

Functions


Detailed Description

This is main header file of the Xilinx MVI On-Screen-Display (OSD) device driver.

An OSD is an image superimposed on a screen picture, commonly used by modern televisions, VCRs, and DVD players to display information such as volume, channel, and time.

Xilinx MVI OSD has the following main features:

For a full description of OSD features, please see the hardware spec.

Interrupt Service

Four interrupt types are supported:

Software Initialization

Please follow the example provided with this driver for the steps to use this driver.

Cache Coherency

Alignment

Limitations

BUS Interface

 MODIFICATION HISTORY:

 Ver   Who  Date     Changes
 ----- ---- -------- -------------------------------------------------------
 1.00a xd   08/18/08 First release
 1.01a xd   07/30/10 Added device version support; Supported doxygen; Fixed
                     CR #534952
 1.02a xd   12/21/10 Removed endian conversion for text bank loading
 

Definition in file xosd.h.


Define Documentation

#define XOSD_Disable ( InstancePtr   ) 

Value:

XOSD_WriteReg((InstancePtr)->Config.BaseAddress, XOSD_CTL, \
                XOSD_ReadReg((InstancePtr)->Config.BaseAddress, XOSD_CTL) & \
                        (~XOSD_CTL_EN_MASK))
This macro disables an OSD device.

Parameters:
InstancePtr is a pointer to the OSD device instance to be worked on.
Returns:
None.
Note:
C-style signature: void XOSD_Disable(XOSD *InstancePtr);

Definition at line 424 of file xosd.h.

#define XOSD_Enable ( InstancePtr   ) 

Value:

XOSD_WriteReg((InstancePtr)->Config.BaseAddress, XOSD_CTL, \
                XOSD_ReadReg((InstancePtr)->Config.BaseAddress, XOSD_CTL) | \
                        XOSD_CTL_EN_MASK)
This macro enables an OSD device.

Parameters:
InstancePtr is a pointer to the OSD device instance to be worked on.
Returns:
None.
Note:
C-style signature: void XOSD_Enable(XOSD *InstancePtr);

Definition at line 405 of file xosd.h.

#define XOSD_IntrClear ( InstancePtr,
IntrType   ) 

Value:

XOSD_WriteReg((InstancePtr)->Config.BaseAddress, XOSD_ISR, \
                          (IntrType) & XOSD_IXR_ALLINTR_MASK)
This macro clears/acknowledges pending interrupts of an OSD device.

Parameters:
InstancePtr is a pointer to the OSD device instance to be worked on.
IntrType is the pending interrupts to clear/acknowledge. Use OR'ing of XOSD_IXR_* constants defined in xosd_hw.h to create this parameter value.
Returns:
None
Note:
C-style signature: void XOSD_IntrClear(XOSD *InstancePtr, u32 IntrType)

Definition at line 619 of file xosd.h.

#define XOSD_IntrDisable ( InstancePtr,
IntrType   ) 

Value:

XOSD_WriteReg((InstancePtr)->Config.BaseAddress, XOSD_IER, \
                ((~(IntrType)) & XOSD_IXR_ALLINTR_MASK) & \
                XOSD_ReadReg((InstancePtr)->Config.BaseAddress, XOSD_IER))
This macro disables the given individual interrupt(s) on an OSD device.

Parameters:
InstancePtr is a pointer to the OSD device instance to be worked on.
IntrType is the type of the interrupts to disable. Use OR'ing of XOSD_IXR_* constants defined in xosd_hw.h to create this parameter value.
Returns:
None
Note:
Any other interrupt not covered by parameter IntrType, if enabled before this macro is called, will remain enabled.

C-style signature: void XOSD_IntrDisable(XOSD *InstancePtr, u32 IntrType)

Definition at line 574 of file xosd.h.

#define XOSD_IntrDisableGlobal ( InstancePtr   )     XOSD_WriteReg((InstancePtr)->Config.BaseAddress, XOSD_GIER, 0)

This macro disables the global interrupt on an OSD device.

Parameters:
InstancePtr is a pointer to the OSD device instance to be worked on.
Returns:
None.
Note:
C-style signature: void XOSD_IntrDisableGlobal(XOSD *InstancePtr);

Definition at line 523 of file xosd.h.

#define XOSD_IntrEnable ( InstancePtr,
IntrType   ) 

Value:

XOSD_WriteReg((InstancePtr)->Config.BaseAddress, XOSD_IER, \
                ((IntrType) & XOSD_IXR_ALLINTR_MASK) | \
                XOSD_ReadReg((InstancePtr)->Config.BaseAddress, XOSD_IER))
This macro enables the given individual interrupt(s) on an OSD device.

Parameters:
InstancePtr is a pointer to the OSD device instance to be worked on.
IntrType is the type of the interrupts to enable. Use OR'ing of XOSD_IXR_* constants defined in xosd_hw.h to create this parameter value.
Returns:
None
Note:
The existing enabled interrupt(s) will remain enabled.

C-style signature: void XOSD_IntrEnable(XOSD *InstancePtr, u32 IntrType)

Definition at line 547 of file xosd.h.

#define XOSD_IntrEnableGlobal ( InstancePtr   ) 

Value:

XOSD_WriteReg((InstancePtr)->Config.BaseAddress, XOSD_GIER, \
                          XOSD_GIER_GIE_MASK)
This macro enables the global interrupt on an OSD device.

Parameters:
InstancePtr is a pointer to the OSD device instance to be worked on.
Returns:
None.
Note:
C-style signature: void XOSD_IntrEnableGlobal(XOSD *InstancePtr);

Definition at line 505 of file xosd.h.

#define XOSD_IntrGetPending ( InstancePtr   ) 

Value:

(XOSD_ReadReg((InstancePtr)->Config.BaseAddress, XOSD_IER) & \
        XOSD_ReadReg((InstancePtr)->Config.BaseAddress, XOSD_ISR) & \
        XOSD_IXR_ALLINTR_MASK)
This macro returns the pending interrupts of an OSD device.

Parameters:
InstancePtr is a pointer to the OSD device instance to be worked on.
Returns:
The pending interrupts of the OSD. Use XOSD_IXR_* constants defined in xosd_hw.h to interpret this value.
Note:
C-style signature: u32 XOSD_IntrGetPending(XOSD *InstancePtr)

Definition at line 595 of file xosd.h.

#define XOSD_RegUpdateDisable ( InstancePtr   ) 

Value:

XOSD_WriteReg((InstancePtr)->Config.BaseAddress, XOSD_CTL, \
                XOSD_ReadReg((InstancePtr)->Config.BaseAddress, XOSD_CTL) & \
                        (~XOSD_CTL_RUE_MASK))
This macro tell an OSD device to ignore the register updates.

Parameters:
InstancePtr is a pointer to the OSD device instance to be worked on.
Returns:
None.
Note:
C-style signature: void XOSD_RegUpdateDisable(XOSD *InstancePtr);

Definition at line 462 of file xosd.h.

#define XOSD_RegUpdateEnable ( InstancePtr   ) 

Value:

XOSD_WriteReg((InstancePtr)->Config.BaseAddress, XOSD_CTL, \
                XOSD_ReadReg((InstancePtr)->Config.BaseAddress, XOSD_CTL) | \
                        XOSD_CTL_RUE_MASK)
This macro tell an OSD device to pick up the register updates.

Parameters:
InstancePtr is a pointer to the OSD device instance to be worked on.
Returns:
None.
Note:
C-style signature: void XOSD_RegUpdateEnable(XOSD *InstancePtr);

Definition at line 443 of file xosd.h.

#define XOSD_Reset ( InstancePtr   ) 

Value:

{ \
        XOSD_WriteReg((InstancePtr)->Config.BaseAddress, XOSD_RST, \
                          XOSD_RST_RESET); \
        XOSD_WriteReg((InstancePtr)->Config.BaseAddress, XOSD_CTL, 0); \
        (InstancePtr)->InstructionInExternalMem = 0; \
        (InstancePtr)->ScreenHeight = 0; \
        (InstancePtr)->ScreenWidth = 0; \
}
This macro resets an OSD device.

Parameters:
InstancePtr is a pointer to the OSD device instance to be worked on.
Returns:
None.
Note:
C-style signature: void XOSD_Reset(XOSD *InstancePtr);

Definition at line 481 of file xosd.h.


Typedef Documentation

typedef void(* XOSD_CallBack)(void *CallBackRef)

Callback type for all interrupts except error interrupt.

Parameters:
CallBackRef is a callback reference passed in by the upper layer when setting the callback functions, and passed back to the upper layer when the callback is invoked.

Definition at line 334 of file xosd.h.

typedef void(* XOSD_ErrorCallBack)(void *CallBackRef, u32 ErrorMask)

Callback type for Error interrupt.

Parameters:
CallBackRef is a callback reference passed in by the upper layer when setting the callback functions, and passed back to the upper layer when the callback is invoked.
ErrorMask is a bit mask indicating the cause of the error. Its value equals 'OR'ing one or more XOSD_IXR_* values defined in xosd_hw.h

Definition at line 346 of file xosd.h.


Function Documentation

int XOSD_CfgInitialize ( XOSD InstancePtr,
XOSD_Config CfgPtr,
u32  EffectiveAddr 
)

This function initializes an OSD device.

This function must be called prior to using an OSD device. Initialization of an OSD includes setting up the instance data, and ensuring the hardware is in a quiescent state.

Parameters:
InstancePtr is a pointer to the OSD device instance to be worked on.
CfgPtr points to the configuration structure associated with the OSD device.
EffectiveAddr is the base address of the device. If address translation is being used, then this parameter must reflect the virtual base address. Otherwise, the physical address should be used.
Returns:
XST_SUCCESS

Definition at line 109 of file xosd.c.

void XOSD_CreateInstruction ( XOSD InstancePtr,
u32 *  InstructionPtr,
u8  GcIndex,
u16  ObjType,
u8  ObjSize,
u16  XStart,
u16  YStart,
u16  XEnd,
u16  YEnd,
u8  TextIndex,
u8  ColorIndex 
)

This function creates an instruction for an OSD.

Parameters:
InstancePtr is a pointer to the OSD device instance to be worked on.
InstructionPtr is a pointer to the instruction buffer to be populated with the instruction to be created. The upper level application is responsible for allocating this instruction buffer.
GcIndex indicates the Graphics Controller that will consume the instruction. Valid value range is from 0 to (The Number of Layers) - 1. The layer's type must be set to XOSD_LAYER_TYPE_GPU (defined in xosd_hw.h) for this function to work properly.
ObjType indicates the type of object to draw. Use one of XOSD_INS_OPCODE_... constants defined in xosd_hw.h.
ObjSize indicates line width of boxes and lines and the text scale factor for text boxes.
XStart indicates the horizontal start pixel of the Object.
YStart indicates the vertical start line of the Object.
XEnd indicates the horizontal end pixel of the Object.
YEnd indicates the vertical end line of the Object.
TextIndex indicates the string index.
ColorIndex indicates the color index.
Returns:
NONE.

Definition at line 958 of file xosd.c.

void XOSD_DisableLayer ( XOSD InstancePtr,
u8  LayerIndex 
)

This function disables an OSD layer.

Parameters:
InstancePtr is a pointer to the OSD device instance to be worked on.
LayerIndex indicates which layer to be worked on. Valid value range is from 0 to (the number of layers implemented in the device - 1).
Returns:
NONE.

Definition at line 673 of file xosd.c.

void XOSD_EnableLayer ( XOSD InstancePtr,
u8  LayerIndex 
)

This function enables an OSD layer.

Parameters:
InstancePtr is a pointer to the OSD device instance to be worked on.
LayerIndex indicates which layer to be worked on. Valid value range is from 0 to (the number of layers implemented in the device - 1).
Returns:
NONE.

Definition at line 634 of file xosd.c.

void XOSD_GetBackgroundColor ( XOSD InstancePtr,
u8 *  RedPtr,
u8 *  BluePtr,
u8 *  GreenPtr 
)

This function gets the Background color used by the OSD output.

Parameters:
InstancePtr is a pointer to the OSD device instance to be worked on.
RedPtr will point to the red value used in the background color after this function returns.
BluePtr will point to the blue value used in the background color after this function returns.
GreenPtr will point to the green value used in the background color after this function returns.
Returns:
NONE.

Definition at line 302 of file xosd.c.

void XOSD_GetLayerAlpha ( XOSD InstancePtr,
u8  LayerIndex,
u8 *  GlobalAlphaEnblePtr,
u8 *  GlobalAlphaValuePtr 
)

This function gets the Alpha value and mode of an OSD layer.

Parameters:
InstancePtr is a pointer to the OSD device instance to be worked on.
LayerIndex indicates which layer to be worked on. Valid value range is from 0 to (the number of layers implemented in the device - 1).
GlobalAlphaEnblePtr will point to a flag indicating whether the global Alpha is enabled on a layer after this function returns. Flag 1 indicates that the global Alpha is enabled, 0 indicates that it is not.
GlobalAlphaValuePtr will point to the transparent level after this function returns. 0 for 100% transparent, 255 for 0% transparent (100% opaque).
Returns:
NONE.

Definition at line 505 of file xosd.c.

void XOSD_GetLayerDimension ( XOSD InstancePtr,
u8  LayerIndex,
u16 *  XStartPtr,
u16 *  YStartPtr,
u16 *  XSizePtr,
u16 *  YSizePtr 
)

This function gets the start position and size of an OSD layer.

Parameters:
InstancePtr is a pointer to the OSD device instance to be worked on.
LayerIndex indicates which layer to be worked on. Valid value range is from 0 to (the number of layers implemented in the device - 1).
XStartPtr will point to the Horizontal start pixel value of origin of the layer after this function returns.
YStartPtr will point to the Vertical start line of origin of the layer after this function returns.
XSizePtr will point to the Horizontal Size value of the layer after this function returns.
YSizePtr will point to the Vertical Size value of the layer after this function returns.
Returns:
NONE.

Definition at line 399 of file xosd.c.

void XOSD_GetLayerPriority ( XOSD InstancePtr,
u8  LayerIndex,
u8 *  PriorityPtr 
)

This function gets the priority of an OSD layer.

Parameters:
InstancePtr is a pointer to the OSD device instance to be worked on.
LayerIndex indicates which layer to be worked on. Valid value range is from 0 to (the number of layers implemented in the device - 1).
PriorityPtr will point to the priority used on the layer after this function returns. Use XOSD_LAYER_PRIORITY_... defined in xosd_hw.h to interpret the value.
Returns:
NONE.

Definition at line 596 of file xosd.c.

void XOSD_GetScreenSize ( XOSD InstancePtr,
u32 *  WidthPtr,
u32 *  HeightPtr 
)

This function gets the screen size of the OSD Output.

Parameters:
InstancePtr is a pointer to the OSD device instance to be worked on.
WidthPtr will point to the width of the OSD output after this function returns.
HeightPtr will point to the height of the OSD output after this function returns.
Returns:
NONE.

Definition at line 236 of file xosd.c.

void XOSD_GetVersion ( XOSD InstancePtr,
u16 *  Major,
u16 *  Minor,
u16 *  Revision 
)

This function returns the version of an OSD device.

Parameters:
InstancePtr is a pointer to the OSD device instance to be worked on.
Major points to an unsigned 16-bit variable that will be assigned with the major version number after this function returns. Value range is from 0x0 to 0xF.
Minor points to an unsigned 16-bit variable that will be assigned with the minor version number after this function returns. Value range is from 0x00 to 0xFF.
Revision points to an unsigned 16-bit variable that will be assigned with the revision version number after this function returns. Value range is from 0xA to 0xF.
Returns:
None.
Note:
Example: Device version should read v2.01.c if major version number is 0x2, minor version number is 0x1, and revision version number is 0xC.

Definition at line 1271 of file xosd.c.

void XOSD_IntrHandler ( void *  InstancePtr  ) 

This function is the interrupt handler for the On-Screen-Display driver.

This handler reads the pending interrupt from the IER/ISR, determines the source of the interrupts, calls according callbacks, and finally clears the interrupts.

The application is responsible for connecting this function to the interrupt system. Application beyond this driver is also responsible for providing callbacks to handle interrupts and installing the callbacks using XOSD_SetCallBack() during initialization phase. An example delivered with this driver demonstrates how this could be done.

Parameters:
InstancePtr is a pointer to the XOSD instance that just interrupted.
Returns:
None.
Note:
None.

Definition at line 92 of file xosd_intr.c.

void XOSD_LoadCharacterSetBank ( XOSD InstancePtr,
u8  GcIndex,
u8  BankIndex,
u32 *  CharSetData 
)

This function loads Character Set data (font) into an OSD Graphics Controller Bank.

Parameters:
InstancePtr is a pointer to the OSD device instance to be worked on.
GcIndex indicates which Graphics Controller to work on. Valid value range is from 0 to (The Number of Layers) - 1. The layer's type must be set to XOSD_LAYER_TYPE_GPU (defined in xosd_hw.h) for this function to work properly.
BankIndex indicates which GC Bank to be worked on. Valid value range is from 0 to XOSD_GC_BANK_NUM - 1.
CharSetData points to the Character Set data to be loaded.
Returns:
NONE.

Definition at line 771 of file xosd.c.

void XOSD_LoadColorLUTBank ( XOSD InstancePtr,
u8  GcIndex,
u8  BankIndex,
u32 *  ColorData 
)

This function loads color LUT data into an OSD Graphics Controller Bank.

Parameters:
InstancePtr is a pointer to the OSD device instance to be worked on.
GcIndex indicates which Graphics Controller to work on. Valid value range is from 0 to (The Number of Layers) - 1. The layer's type must be set to XOSD_LAYER_TYPE_GPU (defined in xosd_hw.h) for this function to work properly.
BankIndex indicates which GC Bank to be worked on. Valid value range is from 0 to XOSD_GC_BANK_NUM - 1.
ColorData points to the color LUT data to be loaded.
Returns:
NONE.

Definition at line 715 of file xosd.c.

void XOSD_LoadInstructionList ( XOSD InstancePtr,
u8  GcIndex,
u8  BankIndex,
u32 *  InstSetPtr,
u32  InstNum 
)

This function load an instruction list to be used by an Graphic Controller in an OSD device.

Parameters:
InstancePtr is a pointer to the OSD device instance to be worked on.
GcIndex indicates which Graphics Controller to work on. Valid value range is from 0 to (The Number of Layers) - 1. The layer's type must be set to XOSD_LAYER_TYPE_GPU (defined in xosd_hw.h) for this function to work properly.
BankIndex indicates which GC Bank to be worked on. Valid value range is from 0 to XOSD_GC_BANK_NUM.
InstSetPtr is a pointer to the start of the instruction list to load into the OSD device. The last instruction in the list must has XOSD_INS_OPCODE_END type.
InstNum indicates the number of the instructions in the list to load. Valid value range is from 1 to the half of the size of the instruction memory created for the Graphic Controller
Returns:
NONE.

Definition at line 1036 of file xosd.c.

void XOSD_LoadTextBank ( XOSD InstancePtr,
u8  GcIndex,
u8  BankIndex,
u32 *  TextData 
)

This function loads Text data into an OSD Graphics Controller Bank.

Parameters:
InstancePtr is a pointer to the OSD device instance to be worked on.
GcIndex indicates which Graphics Controller to work on. Valid value range is from 0 to (The Number of Layers) - 1. The layer's type must be set to XOSD_LAYER_TYPE_GPU (defined in xosd_hw.h) for this function to work properly.
BankIndex indicates which GC Bank to be worked on. Valid value range is from 0 to XOSD_GC_BANK_NUM - 1.
TextData points to the Text data to be loaded.
Returns:
NONE.

Definition at line 830 of file xosd.c.

XOSD_Config* XOSD_LookupConfig ( u16  DeviceId  ) 

XOSD_LookupConfig returns a reference to an XOSD_Config structure based on the unique device id, DeviceId.

The return value will refer to an entry in the device configuration table defined in the xosd_g.c file.

Parameters:
DeviceId is the unique device ID of the device for the lookup operation.
Returns:
XOSD_LookupConfig returns a reference to a config record in the configuration table (in xosd_g.c) corresponding to DeviceId, or NULL if no match is found.

Definition at line 100 of file xosd_sinit.c.

void XOSD_SetActiveBank ( XOSD InstancePtr,
u8  GcIndex,
u8  ColorBankIndex,
u8  CharBankIndex,
u8  TextBankIndex,
u8  InstructionBankIndex 
)

This function chooses active banks for a GC in an OSD device.

Parameters:
InstancePtr is a pointer to the OSD device instance to be worked on.
GcIndex indicates which Graphics Controller to work on. Valid value range is from 0 to (The Number of Layers) - 1. The layer's type must be set to XOSD_LAYER_TYPE_GPU (defined in xosd_hw.h) for this function to work properly.
ColorBankIndex indicates the Color LUT bank to be choose as active.
CharBankIndex indicates the Character Set bank to be choose as active.
TextBankIndex indicates the Text Data bank to be choose as active.
InstructionBankIndex indicates the Instruction bank to be choose as active.
Returns:
NONE.

Definition at line 890 of file xosd.c.

void XOSD_SetBackgroundColor ( XOSD InstancePtr,
u8  Red,
u8  Blue,
u8  Green 
)

This function sets the Background color used by the OSD output.

Parameters:
InstancePtr is a pointer to the OSD device instance to be worked on.
Red indicates the red value used in the background color.
Blue indicates the blue value used in the background color.
Green indicates the green value used in the background color.
Returns:
NONE.

Definition at line 266 of file xosd.c.

void XOSD_SetBlankPolarity ( XOSD InstancePtr,
int  VerticalBlankPolarity,
int  HorizontalBlankPolarity 
)

This function chooses the type of Vertical and Horizontal Blank Input Polarities.

Parameters:
InstancePtr is a pointer to the OSD device instance to be worked on.
VerticalBlankPolarity indicates the type of vertical blank input polarity. Use any non-0 value for Active High and 0 for Active Low.
HorizontalBlankPolarity indicates the type of horizontal blank input polarity. Use any non-0 value for Active High and 0 for Active Low.
Returns:
NONE.

Definition at line 161 of file xosd.c.

int XOSD_SetCallBack ( XOSD InstancePtr,
u32  HandlerType,
void *  CallBackFunc,
void *  CallBackRef 
)

This routine installs an asynchronous callback function for the given HandlerType:.

 HandlerType		   Callback Function Type
 -----------------------  ---------------------------
 XOSD_HANDLER_VBISTART	   XOSD_CallBack
 XOSD_HANDLER_VBIEND	   XOSD_CallBack
 XOSD_HANDLER_FRAMEDONE   XOSD_CallBack
 XOSD_HANDLER_ERROR	   XOSD_ErrCallBack

 HandlerType		   Invoked by this driver when:
 -----------------------  --------------------------------------------------
 XOSD_HANDLER_VBISTART	   A Vertical Blank Interval Start Interrupt happens
 XOSD_HANDLER_VBIEND	   A Vertical Blank Interval End Interrupt happens
 XOSD_HANDLER_FRAMEDONE   A Frame Done Interrupt happens
 XOSD_HANDLER_ERROR	   An error condition happens

 

Parameters:
InstancePtr is a pointer to the XOSD instance to be worked on.
HandlerType specifies which callback is to be attached.
CallbackFunc is the address of the callback function.
CallbackRef is a user data item that will be passed to the callback function when it is invoked.
Returns:
  • XST_SUCCESS when handler is installed.
  • XST_INVALID_PARAM when HandlerType is invalid.
Note:
Invoking this function for a handler that already has been installed replaces it with the new handler.

Definition at line 175 of file xosd_intr.c.

void XOSD_SetLayerAlpha ( XOSD InstancePtr,
u8  LayerIndex,
u8  GlobalAlphaEnble,
u8  GlobalAlphaValue 
)

This function sets the Alpha value and mode of an OSD layer.

Parameters:
InstancePtr is a pointer to the OSD device instance to be worked on.
LayerIndex indicates which layer to be worked on. Valid value range is from 0 to (the number of layers implemented in the device - 1).
GlobalAlphaEnble indicates whether to enable the global Alpha. Use any non-0 value to enable the global Alpha, and 0 to disable it.
GlobalAlphaValue indicates the transparent level. 0 for 100% transparent, 255 for 0% transparent (100% opaque). This argument will be ignored if parameter GlobalAlphaEnble has value 0.
Returns:
NONE.

Definition at line 452 of file xosd.c.

void XOSD_SetLayerDimension ( XOSD InstancePtr,
u8  LayerIndex,
u16  XStart,
u16  YStart,
u16  XSize,
u16  YSize 
)

This function sets the start position and size of an OSD layer.

Parameters:
InstancePtr is a pointer to the OSD device instance to be worked on.
LayerIndex indicates which layer to be worked on. Valid value range is from 0 to (the number of layers implemented in the device - 1).
XStart indicates the Horizontal start pixel of origin of the layer.
YStart indicates the Vertical start line of origin of the layer.
XSize indicates the Horizontal Size of the layer.
YSize indicates the Vertical Size of the layer.
Returns:
NONE.

Definition at line 341 of file xosd.c.

void XOSD_SetLayerPriority ( XOSD InstancePtr,
u8  LayerIndex,
u8  Priority 
)

This function sets the priority of an OSD layer.

Parameters:
InstancePtr is a pointer to the OSD device instance to be worked on.
LayerIndex indicates which layer to be worked on. Valid value range is from 0 to (the number of layers implemented in the device - 1).
Priority indicates the priority to be applied on the layer. Use one of XOSD_LAYER_PRIORITY_0 (the lowest priority) through XOSD_LAYER_PRIORITY_7 (the highest priority) defined in xosd_hw.h
Returns:
NONE.

Definition at line 552 of file xosd.c.

void XOSD_SetScreenSize ( XOSD InstancePtr,
u32  Width,
u32  Height 
)

This function sets the screen size of the OSD Output.

Parameters:
InstancePtr is a pointer to the OSD device instance to be worked on.
Width defines the width of the OSD output
Height defines the height of the OSD output
Returns:
NONE.

Definition at line 199 of file xosd.c.


Copyright © 1995-2010 Xilinx, Inc. All rights reserved.