38 static bool moduleInitialized =
false;
42 static int devicesRegistered=0;
49 DISPLAY_DEVICE_DRIVER_INIT_FUNCTIONS;
69 pDisplayDeviceDriverInitFunctions;
71 if (
false == moduleInitialized)
73 moduleInitialized =
true;
74 for (; *pDisplayDeviceDriverInitFunction; pDisplayDeviceDriverInitFunction++)
76 status = (*pDisplayDeviceDriverInitFunction)();
102 if (
false == moduleInitialized)
108 for (i=0; i<devicesRegistered; i++)
110 if (deviceTable[i].pDriverRefresh)
144 if (
false == moduleInitialized)
150 if (displayDeviceNo < DISPLAY_DEVICES_MAX)
176 if (
false == moduleInitialized)
182 if (devicesRegistered < DISPLAY_DEVICES_MAX)
184 memcpy(&deviceTable[devicesRegistered++], device,
sizeof(
DISPLAY_Device_t));
EMSTATUS DISPLAY_Init(void)
Initialize the DISPLAY module.
#define DISPLAY_EMSTATUS_NOT_ENOUGH_MEMORY
EMSTATUS DISPLAY_DeviceRegister(DISPLAY_Device_t *device)
Register a display device.
Display device backend interface.
EMSTATUS(* pDriverRefresh)(struct DISPLAY_Device_t *device)
Display device interface.
EMSTATUS DISPLAY_DriverRefresh(void)
Refresh all DISPLAY devices.
EMSTATUS(* pDisplayDeviceDriverInitFunction_t)(void)
#define DISPLAY_EMSTATUS_OK
Main configuration file for the DISPLAY driver software stack.
#define DISPLAY_EMSTATUS_OUT_OF_RANGE
EMSTATUS DISPLAY_DeviceGet(int displayDeviceNo, DISPLAY_Device_t *device)
Get the display device data structure corresponding to the device number.
#define DISPLAY_EMSTATUS_NOT_INITIALIZED