GP1212A02: Adding select font size command.
8 /* Cmake will define MyLibrary_EXPORTS on Windows when it
9 configures to build a shared library. If you are going to use
10 another build system on windows or create the visual studio
11 projects by hand you need to define MyLibrary_EXPORTS when
12 building a DLL on windows.
14 // We are using the Visual Studio Compiler and building Shared libraries
17 #if defined(MiniDisplay_EXPORTS)
18 #define MDAPI __declspec(dllexport)
20 #define MDAPI __declspec(dllimport)
21 #endif /* MyLibrary_EXPORTS */
22 #else /* defined (_WIN32) */
26 typedef void* MiniDisplayDevice;
30 EMiniDisplayAutoDetect=0, /*Not yet implemented*/
31 EMiniDisplayFutabaGP1212A01,
32 EMiniDisplayFutabaGP1212A02,
33 EMiniDisplayAutoDetectFailed
39 EMiniDisplayRequestNone,
40 EMiniDisplayRequestDeviceId,
41 EMiniDisplayRequestFirmwareRevision,
42 EMiniDisplayRequestPowerSupplyStatus
46 //Open & Close functions
47 extern "C" MDAPI MiniDisplayDevice MiniDisplayOpen(TMiniDisplayType aType);
48 extern "C" MDAPI void MiniDisplayClose(MiniDisplayDevice aDevice);
51 Clear our MiniDisplay.
52 @param [IN] The device to apply this command to.
54 extern "C" MDAPI void MiniDisplayClear(MiniDisplayDevice aDevice);
58 @param [IN] The device to apply this command to.
60 extern "C" MDAPI void MiniDisplayFill(MiniDisplayDevice aDevice);
63 Swap our MiniDisplay buffers committing our back buffer content to the screen.
64 @param [IN] The device to apply this command to.
66 extern "C" MDAPI void MiniDisplaySwapBuffers(MiniDisplayDevice aDevice);
69 Provide maximum brightness level for the given device.
70 @param [IN] The device to apply this command to.
71 @return Maximum brightness level.
73 extern "C" MDAPI int MiniDisplayMaxBrightness(MiniDisplayDevice aDevice);
76 Provide minimum brightness level for the given device.
77 @param [IN] The device to apply this command to.
78 @return Minimum brightness level.
80 extern "C" MDAPI int MiniDisplayMinBrightness(MiniDisplayDevice aDevice);
83 Set device brightness level.
84 @param [IN] The device to apply this command to.
85 @param [IN] Brightness level
87 extern "C" MDAPI void MiniDisplaySetBrightness(MiniDisplayDevice aDevice, int aBrightness);
90 Provide pixels width of our display.
91 @param [IN] The device to apply this command to.
92 @return Width in pixels.
94 extern "C" MDAPI int MiniDisplayWidthInPixels(MiniDisplayDevice aDevice);
97 Provide pixels height of our display.
98 @param [IN] The device to apply this command to.
99 @return Height in pixels.
101 extern "C" MDAPI int MiniDisplayHeightInPixels(MiniDisplayDevice aDevice);
105 @param [IN] The device to apply this command to.
106 @param [IN] Pixel X coordinate.
107 @param [IN] Pixel Y coordinate.
108 @param [IN] Pixel value.
110 extern "C" MDAPI void MiniDisplaySetPixel(MiniDisplayDevice aDevice, int aX, int aY, int aValue);
112 //TODO: Have an API to specify pixel depth
116 @param [IN] The device to apply this command to.
119 extern "C" MDAPI wchar_t* MiniDisplayVendor(MiniDisplayDevice aDevice);
122 Provide product name.
123 @param [IN] The device to apply this command to.
124 @return Product name.
126 extern "C" MDAPI wchar_t* MiniDisplayProduct(MiniDisplayDevice aDevice);
129 Provide Serial number.
130 @param [IN] The device to apply this command to.
131 @return Serial number name.
133 extern "C" MDAPI wchar_t* MiniDisplaySerialNumber(MiniDisplayDevice aDevice);
137 @param [IN] The device to apply this command to.
139 extern "C" MDAPI void MiniDisplayRequest(MiniDisplayDevice aDevice, TMiniDisplayRequest aRequest);
142 Tell whether or not a request is pending.
143 @param [IN] The device to apply this command to.
144 @return true if we have a request pending, false otherwise.
146 extern "C" MDAPI bool MiniDisplayRequestPending(MiniDisplayDevice aDevice);
150 Provide the current request if any.
151 @param [IN] The device to apply this command to.
152 @return The current request if any.
154 extern "C" MDAPI TMiniDisplayRequest MiniDisplayCurrentRequest(MiniDisplayDevice aDevice);
158 Cancel any pending request.
159 @param [IN] The device to apply this command to.
161 extern "C" MDAPI void MiniDisplayCancelRequest(MiniDisplayDevice aDevice);
164 Attempt request completion.
165 @param [IN] The device to apply this command to.
167 extern "C" MDAPI TMiniDisplayRequest MiniDisplayAttemptRequestCompletion(MiniDisplayDevice aDevice);
171 @param [IN] The device to apply this command to.
172 @return Device ID name.
174 extern "C" MDAPI char* MiniDisplayDeviceId(MiniDisplayDevice aDevice);
177 Provide firmware revision.
178 @param [IN] The device to apply this command to.
179 @return Firmware revision name.
181 extern "C" MDAPI char* MiniDisplayFirmwareRevision(MiniDisplayDevice aDevice);
184 Get power supply status.
185 @param [IN] The device to apply this command to.
187 extern "C" MDAPI bool MiniDisplayPowerSupplyStatus(MiniDisplayDevice aDevice);
190 Turn device Power ON.
191 @param [IN] The device to apply this command to.
193 extern "C" MDAPI void MiniDisplayPowerOn(MiniDisplayDevice aDevice);
196 Turn device Power OFF.
197 @param [IN] The device to apply this command to.
199 extern "C" MDAPI void MiniDisplayPowerOff(MiniDisplayDevice aDevice);
202 Specifies whether or not this display supports power ON/OFF functions.
203 @param [IN] The device to apply this command to.
204 @return True if one can turn display power on and off, false otherwise.
206 extern "C" MDAPI bool MiniDisplaySupportPowerOnOff(MiniDisplayDevice aDevice);
210 @param [IN] The device to apply this command to.
212 extern "C" MDAPI void MiniDisplayShowClock(MiniDisplayDevice aDevice);
216 @param [IN] The device to apply this command to.
218 extern "C" MDAPI void MiniDisplayHideClock(MiniDisplayDevice aDevice);
221 Specifies whether or not this display supports clock functions.
222 @param [IN] The device to apply this command to.
223 @return True if this display supports built-in clock, false otherwise.
225 extern "C" MDAPI bool MiniDisplaySupportClock(MiniDisplayDevice aDevice);