Choco OS
V.0.16.9.0
Join to the chocolate world
|
Common driver for LCD-TFT. More...
Functions | |
oC_ErrorCode_t | oC_LCDTFT_TurnOn (void) |
turns on the module More... | |
oC_ErrorCode_t | oC_LCDTFT_TurnOff (void) |
Turns off the LCDTFT driver. More... | |
bool | oC_LCDTFT_IsTurnedOn (void) |
checks if the driver is turned on More... | |
oC_ErrorCode_t | oC_LCDTFT_Configure (const oC_LCDTFT_Config_t *Config, oC_LCDTFT_Context_t *outContext) |
configures LCDTFT pins to work More... | |
oC_ErrorCode_t | oC_LCDTFT_Unconfigure (const oC_LCDTFT_Config_t *Config, oC_LCDTFT_Context_t *outContext) |
Unconfigures the driver. More... | |
oC_ErrorCode_t | oC_LCDTFT_Ioctl (oC_LCDTFT_Context_t Context, oC_Ioctl_Command_t Command, void *Data) |
handles input/output driver commands More... | |
oC_ErrorCode_t oC_LCDTFT_Configure | ( | const oC_LCDTFT_Config_t * | Config, |
oC_LCDTFT_Context_t * | outContext | ||
) |
The function is for configuration of the driver. Look at the oC_LCDTFT_Config_t structure description and fields list to get more info.
Config | Pointer to the configuration structure |
outContext | Destination for the driver context structure |
Definition at line 231 of file oc_lcdtft.c.
oC_ErrorCode_t oC_LCDTFT_Ioctl | ( | oC_LCDTFT_Context_t | Context, |
oC_Ioctl_Command_t | Command, | ||
void * | Data | ||
) |
The function is for handling input/output control commands. It will be called for non-standard operations from the userspace.
Context | Context of the driver |
Command | Command to execute |
Data | Data for the command or NULL if not used |
Definition at line 325 of file oc_lcdtft.c.
bool oC_LCDTFT_IsTurnedOn | ( | void | ) |
Definition at line 214 of file oc_lcdtft.c.
oC_ErrorCode_t oC_LCDTFT_TurnOff | ( | void | ) |
The function for turning off the LCDTFT driver. If the driver not started yet, it will return oC_ErrorCode_ModuleNotStartedYet
error code. It also turns off the LLD.
Definition at line 187 of file oc_lcdtft.c.
oC_ErrorCode_t oC_LCDTFT_TurnOn | ( | void | ) |
The function is for turning on the LCDTFT module. If the module is already turned on, it will return oC_ErrorCode_ModuleIsTurnedOn
error. It also turns on the LLD layer.
Definition at line 153 of file oc_lcdtft.c.
oC_ErrorCode_t oC_LCDTFT_Unconfigure | ( | const oC_LCDTFT_Config_t * | Config, |
oC_LCDTFT_Context_t * | outContext | ||
) |
The function is for reverting configuration from the oC_LCDTFT_Configure function.
Config | Pointer to the configuration |
outContext | Destination for the context structure |
Definition at line 286 of file oc_lcdtft.c.