36 #define DRIVER_NAME LCDTFT 39 #include <oc_stdlib.h> 48 #ifdef oC_LCDTFT_LLD_AVAILABLE 55 #define _________________________________________DEFINITIONS_SECTION________________________________________________________________________ 59 #undef _________________________________________DEFINITIONS_SECTION________________________________________________________________________ 67 #define _________________________________________TYPES_SECTION______________________________________________________________________________ 72 oC_LCDTFT_PixelClockPolarity_InputPixelClock = oC_LCDTFT_LLD_PixelClockPolarity_InputPixelClock,
73 oC_LCDTFT_PixelClockPolarity_InvertedInputPixe = oC_LCDTFT_LLD_PixelClockPolarity_InvertedInputPixelClock
74 } oC_LCDTFT_PixelClockPolarity_t;
78 oC_LCDTFT_Polarity_ActiveLow = oC_LCDTFT_LLD_Polarity_ActiveLow ,
79 oC_LCDTFT_Polarity_ActiveHigh = oC_LCDTFT_LLD_Polarity_ActiveHigh
80 } oC_LCDTFT_Polarity_t;
94 oC_Pixel_ResolutionUInt_t Width;
95 oC_Pixel_ResolutionUInt_t Height;
96 oC_ColorFormat_t ColorFormat;
99 oC_LCDTFT_Polarity_t HSyncPolarity;
100 oC_LCDTFT_Polarity_t VSyncPolarity;
101 oC_LCDTFT_Polarity_t DESyncPolarity;
102 oC_LCDTFT_PixelClockPolarity_t PixelClockPolarity;
120 #undef _________________________________________TYPES_SECTION______________________________________________________________________________ 127 #define _________________________________________INTERFACE_FUNCTIONS_SECTION________________________________________________________________ 136 extern oC_ErrorCode_t
oC_LCDTFT_Ioctl ( oC_LCDTFT_Context_t Context , oC_Ioctl_Command_t Command ,
void * Data );
137 extern oC_ErrorCode_t oC_LCDTFT_SetBackgroundColor ( oC_LCDTFT_Context_t Context , oC_Color_t Color , oC_ColorFormat_t ColorFormat );
138 extern oC_ErrorCode_t oC_LCDTFT_ReadBackgroundColor ( oC_LCDTFT_Context_t Context , oC_Color_t * outColor , oC_ColorFormat_t ColorFormat );
139 extern oC_ErrorCode_t oC_LCDTFT_ReadColorMap ( oC_LCDTFT_Context_t Context ,
oC_ColorMap_t ** outColorMap );
140 extern oC_ErrorCode_t oC_LCDTFT_SetResolution ( oC_LCDTFT_Context_t Context , oC_Pixel_ResolutionUInt_t Width , oC_Pixel_ResolutionUInt_t Height );
141 extern oC_ErrorCode_t oC_LCDTFT_ReadResolution ( oC_LCDTFT_Context_t Context , oC_Pixel_ResolutionUInt_t * outWidth , oC_Pixel_ResolutionUInt_t * outHeight );
143 #undef _________________________________________INTERFACE_FUNCTIONS_SECTION________________________________________________________________ oC_ErrorCode_t oC_LCDTFT_TurnOff(void)
Turns off the LCDTFT driver.
The file with frequency definitions.
double oC_Frequency_t
type to store frequency
oC_ErrorCode_t oC_LCDTFT_Ioctl(oC_LCDTFT_Context_t Context, oC_Ioctl_Command_t Command, void *Data)
handles input/output driver commands
oC_ErrorCode_t oC_LCDTFT_Configure(const oC_LCDTFT_Config_t *Config, oC_LCDTFT_Context_t *outContext)
configures LCDTFT pins to work
struct Context_t * oC_LCDTFT_Context_t
The LCDTFT context structure.
The file with interface for the color library.
The file with interface for driver creating.
The file with interface for the GPIO driver.
oC_ErrorCode_t oC_LCDTFT_TurnOn(void)
turns on the module
The file with interface for the GPIO driver.
The file with interface for IOCTL.
oC_ErrorCode_t oC_LCDTFT_Unconfigure(const oC_LCDTFT_Config_t *Config, oC_LCDTFT_Context_t *outContext)
Unconfigures the driver.
LCDTFT driver configuration structure.
The file with LLD interface for the LCDTFT driver.
bool oC_LCDTFT_IsTurnedOn(void)
checks if the driver is turned on