Direct Drive LCD Design Guide
4.1.8 LCDGetActiveFrame
Request which memory frame is currently displayed
Format
uI16 LCDGetActiveFrame(void);
Parameters
none
Return Values
Index of active frame raster.
Properties
Prototyped in file ”DirectLCD.h”
Implemented in file “DirectLCD_SBF.c” for H8S family or “DirectLCD_XBCFT.c” for H8SX family.
Description
Request which memory frame is currently displayed. Note that this function only returns valid information
when LCDSetActiveRaster is used to control the display content (as opposed to LCDSetLineSource).
Note that LCDSetActiveRaster, LCDSetRasterOffset and LCDSetLineSource are similar in function and
interact.
Example
uI16 frame_request;
……
frame_request = LCDGetActiveFrame(); /* switch buffers */
if (frame_request == 0)
LCDSetActiveRaster(1);
else
LCDSetActiveRaster(0);
21