Milos RTOS v0.3.4a
Real Time Operating System
Platform IOCTLs
Collaboration diagram for Platform IOCTLs:

Defines

#define __CHARLCD_PLAT_INIT_HW   1
 Called from __charlcdOpen() to initialize the hardware.
#define __CHARLCD_PLAT_DEINIT_HW   2
 De-initialize the hardware. Called from __charlcdDeinit().
#define __CHARLCD_PLAT_SET_POWER   3
 Turns on/off the Char LCD device.
#define __CHARLCD_PLAT_WRITE_4   4
 Writes a 4-bits data on the data bus.
#define __CHARLCD_PLAT_WRITE_8   5
 Writes a 8-bits data on the data bus.
#define __CHARLCD_PLAT_GET_STATUS   6
 Returns a byte indicating the status of each pin, being the MSB the pin D7.

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.

The return code for success is usually __DEV_OK unless another error code is specified in the list below.


Define Documentation

#define __CHARLCD_PLAT_INIT_HW   1

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.

#define __CHARLCD_PLAT_DEINIT_HW   2

De-initialize the hardware. Called from __charlcdDeinit().

Definition at line 107 of file charlcd.h.

#define __CHARLCD_PLAT_SET_POWER   3

Turns on/off the Char LCD device.

Definition at line 112 of file charlcd.h.

#define __CHARLCD_PLAT_WRITE_4   4

Writes a 4-bits data on the data bus.

Definition at line 117 of file charlcd.h.

#define __CHARLCD_PLAT_WRITE_8   5

Writes a 8-bits data on the data bus.

Definition at line 122 of file charlcd.h.

#define __CHARLCD_PLAT_GET_STATUS   6

Returns a byte indicating the status of each pin, being the MSB the pin D7.

Definition at line 128 of file charlcd.h.

 All Data Structures Files Functions Variables Typedefs Defines