IPC@CHIP® Graphics Library – API Documentation

Header image

Main page


Common Functions

Common initialisation functions, etc. More...

Functions

GcErrorCode gcInit (BOOL doubleBuffering, unsigned short screenWidth, unsigned short screenHeight, const GcInitParams *params)
 Initialise graphics controller and library.
GcErrorCode gcDeinit (void)
 De-initialise graphics controller and library.
GcErrorCode gcFlush (void)
 Finish set of drawing functions.
GcErrorCode gcEnableDoubleBuffering (BOOL enable)
 Enable/disable double buffering.
GcErrorCode gcSetBacklightIntensity (unsigned short intensity)
 Regulate backlight intensity.
GcErrorCode gcGetVersions (unsigned short *libraryVersion, unsigned short *firmwareVersion, unsigned short *hardwareRevision)
 Get library, firmware and hardware version.
GcErrorCode gcGetVersionsEx (unsigned short *libraryVersion, unsigned short *firmwareVersion, unsigned short *hardwareRevision, unsigned short *softwareInterfaceVersion)
 Get library, firmware, hardware and software interface version.
GcErrorCode gcGetMemoryUsage (long *usedBytes, long *freeBytes, long *usedBlocks, long *freeBlocks)
 Get information about usage of internal memory resources (GUI memory).
GcErrorCode gcGetHeapMemoryUsage (long *totalMem, long *freeBlocks, long *usedMem, long *freeMem, long *maxMem)
 Get information about usage of internal memory resources (heap memory).
GcErrorCode gcReadSensorData (short *temperature1, short *temperature2, unsigned short *ambient, unsigned short *proximity)
 Read some sensor data.
GcErrorCode gcSetLedIntensity (unsigned short intensity)
 Set the LED intensity.
GcErrorCode gcSaveI2cSlaveAddress (unsigned char address)
 Set a new I2C slave address.
GcErrorCode gcWatchdogStart (unsigned long timeout)
 Start the GC04 watchdog timer with the specified timeout.
void gcWatchdogRefresh ()
 Refresh the GC04 watchdog timer.
BOOL gcWatchdogReadResetFlag (BOOL reset)
 Read the Watchdog timer's Reset flag.

Detailed Description

This section holds functions that are either of essential importance for the whole graphics library or could not be assigned to one of the other sections. Among these are the initialisation and de-initialisation function.

The functions in this section are defined in the header file gclib_common.h, which will be automatically included along with gclib.h.






Top of page | Main page

Copyright © 2017 Beck IPC GmbH
Generated on Tue Jun 27 14:21:34 2017 by Doxygen 1.6.1