![4.1.8LCDGetActiveFrame](/images/new-backgrounds/126441/12644143x1.webp)
Direct Drive LCD Design Guide
4.1.8LCDGetActiveFrame
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; |
|
…… | /* switch buffers */ |
frame_request = LCDGetActiveFrame(); | |
if (frame_request == 0) |
|
LCDSetActiveRaster(1); |
|
else |
|
LCDSetActiveRaster(0); |
|
|
|
21