Choco OS  V.0.16.9.0
Join to the chocolate world
oc_lcdtft.c File Reference

The file with source for LCDTFT driver interface. More...

#include <oc_lcdtft.h>
#include <oc_lcdtft_lld.h>
#include <oc_compiler.h>
#include <oc_module.h>
#include <oc_intman.h>
#include <oc_null.h>
#include <oc_gpio.h>
#include <string.h>
#include <oc_driver.h>

Go to the source code of this file.

Data Structures

struct  Context_t
 stores ETH context More...
 

Functions

static bool IsContextCorrect (oC_LCDTFT_Context_t Context)
 Checks if the context of the LCDTFT driver is correct.
 
static oC_ErrorCode_t Context_New (const oC_LCDTFT_Config_t *Config, oC_LCDTFT_Context_t *outContext)
 
static oC_ErrorCode_t Context_Delete (oC_LCDTFT_Context_t *outContext)
 
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...
 

Variables

static const oC_Allocator_t Allocator
 

Detailed Description


File based on driver.c Ver 1.1.0

Author
Patryk Kubiak - (Created on: 2016-02-06 - 11:43:03)

Definition in file oc_lcdtft.c.

Function Documentation

static oC_ErrorCode_t Context_Delete ( oC_LCDTFT_Context_t outContext)
static

Release all memory needed by context

Definition at line 523 of file oc_lcdtft.c.

static oC_ErrorCode_t Context_New ( const oC_LCDTFT_Config_t Config,
oC_LCDTFT_Context_t outContext 
)
static

Allocates all memory needed by context

Definition at line 482 of file oc_lcdtft.c.

Variable Documentation

const oC_Allocator_t Allocator
static
Initial value:
= {
.Name = "lcdtft"
}

The 'Allocator' for this driver. It should be used for all LCDTFT driver kernel allocations.

Definition at line 117 of file oc_lcdtft.c.