Appendix A: System Routines — Operating System
931
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
FL_getHardwareParmBlock
(continued)
Example:
HARDWARE_PARM_BLOCK *hpb = FL_getHardwareParmBlock();
.
.
.
/* Is LCDBitsTall field available in Hardware Parameter Block? */
if (hpb->len >= OFFSETOF(HARDWARE_PARM_BLOCK, LCDBitsTall))
{
/* Yes, use hpb values */
LCDHeight = hpb->LCDBitsTall;
LCDWidth = hpb->LCDBitsWide;
}
else /* No, assume the smallest display */
{
LCDHeight = 100;
LCDWidth = 160;
}