Detailed Description
The following values will be called from the Char LCD driver in order to give the platform control over the Char LCD device hardware. Users that may implement the Char LCD platform driver must create a plat_charlcd.h (and plat_charlcd.c) file to manage the following IO control codes with a __DEV_PLAT_IOCTL type function (dv_plat_ioctl member of the __DEVICE structure). See the __charlcdPlatIoCtl() example function.
The __DEV_PLAT_IOCTL function should return an appropriate error code like the following declared in Error codes.
- __DEV_OK Operation succeeded.
- __DEV_ERROR Error detected.
- __DEV_WRITE_ERROR Write error detected.
- __DEV_READ_ERROR Read error detected.
- __DEV_UNK_IOCTL The IO control code passed in the
code argument is unknown.
- __DEV_MEM_ERROR Memory error.
- __DEV_TIMEOUT Operation timeout.
- __DEV_BUSY Device is busy.
The return code for success is usually __DEV_OK unless another error code is specified in the list below.
Define Documentation
Called from __charlcdOpen() to initialize the hardware.
The platform should initialize all the required hardware to start the Char LCD device.
Definition at line 102 of file charlcd.h.
Turns on/off the Char LCD device.
Definition at line 112 of file charlcd.h.
Writes a 4-bits data on the data bus.
Definition at line 117 of file charlcd.h.
Writes a 8-bits data on the data bus.
Definition at line 122 of file charlcd.h.
Returns a byte indicating the status of each pin, being the MSB the pin D7.
Definition at line 128 of file charlcd.h.