MCUXpresso SDK Documentation

Functions for product and feature queries#

This section describes functions used for product and feature queries.

vg_lite_get_product_info#

Description:

This function is used to identify the VGLite-compatible product.

Syntax:

uint32_t vg_lite_get_product_info (
       char            *name,
       uint32_t        *chip_id,
       uint32_t        *chip_rev
);

Parameters:

Name

Description

name

A character array to store the name of the chip.

chip_id

Stores an ID number for the chip.

chip_rev

Stores a revision number for the chip.

Parent topic:Functions for product and feature queries

vg_lite_get_info#

Description:

This function is used to query the VGLite driver information.

Syntax:

vg_lite_error_t vg_lite_get_info (
    vg_lite_info_t             *info
);

Parameters:

Name

Description

info

Points to the VGLite driver information structure, which includes the API version, header version, and release version

Parent topic:Functions for product and feature queries

vg_lite_get_register#

Description:

This function can be used to read a GPU AHB register value given the AHB byte address of a register. Refer to the appropriate Vivante GPU AHB register specification documents for register descriptions. The value range of AHB accessible addresses for VGLite cores is usually 0x0 to 0x1FF and 0xA00 to 0xA7F.

Syntax:

vg_lite_error_t vg_lite_get_register (
       vg_lite_uint32_t      address,
       vg_lite_uint32_t      *result
);

Parameters:

Name

Description

address

Byte Address of the register which value you want.

*result

The registers value.

Parent topic:Functions for product and feature queries

vg_lite_query_feature#

Description:

This function is used to query if a specific feature is available.

Syntax:

vg_lite_uint32_t vg_lite_query_feature (
    vg_lite_feature_t          feature
);

Parameters:

Name

Description

feature

Feature to be queried, as detailed in enum vg_lite_feature_t

Returns:

The feature is either not supported (0) or supported (1).

Parent topic:Functions for product and feature queries

vg_lite_get_mem_size#

Description:

This function queries whether there is any remaining allocated contiguous video memory. (available from June 2020)

Syntax:

vg_lite_error_t vg_lite_get_mem_size(
    vg_lite_uint32_t            *size
);

Parameters:

Name

Description

size

Pointer to the remaining allocated contiguous video memory.

Returns:

Returns VG_LITE_SUCCESS if the query is successful and memory is available. Returns VG_LITE_NO_CONTEXT if the driver is not initialized or there is no available memory.

Parent topic:Functions for product and feature queries

Parent topic:Hardware product and feature information