MT2523 API Reference  LinkIt SDK v4
Typedef
HAL » G2D

Overview

Typedefs

typedef bool(* hal_g2d_callback_t) (void *)
 Defines the prototype of the G2D callback function. More...
 

Typedef Documentation

typedef bool(* hal_g2d_callback_t) (void *)

Defines the prototype of the G2D callback function.

The callback is invoked whenever the G2D engine completes an operation, such as draws an overlay, makes a rotation or fills a rectangle.
Example code:

1 hal_g2d_register_callback(g2dHandle, DrawLayerToDisply);
2 ...
3 hal_g2d_overlay_start(g2dHandle);

The DrawLayerToDisplay() function will be called after the hal_g2d_overlay_start() process is complete.