h3600_ts.h File Reference

#include <linux/ioctl.h>
Include dependency graph for h3600_ts.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  h3600_ts_calibration
struct  h3600_ts_event
struct  h3600_ts_return
struct  therm_dev
struct  battery_data
struct  h3600_battery
struct  h3600_eeprom_read_request
struct  h3600_eeprom_write_request
struct  h3600_spi_read_request
struct  h3600_spi_write_request
struct  h3600_ts_version
struct  h3600_ts_led
struct  h3600_ts_flite
struct  h3600_ts_backlight
struct  h3600_ts_contrast

Defines

#define H3600_BATT_CHEM_ALKALINE   0x01
#define H3600_BATT_CHEM_NICD   0x02
#define H3600_BATT_CHEM_NIMH   0x03
#define H3600_BATT_CHEM_LION   0x04
#define H3600_BATT_CHEM_LIPOLY   0x05
#define H3600_BATT_CHEM_NOT_INSTALLED   0x06
#define H3600_BATT_CHEM_UNKNOWN   0xff
#define H3600_AC_STATUS_AC_OFFLINE   0x00
#define H3600_AC_STATUS_AC_ONLINE   0x01
#define H3600_AC_STATUS_AC_BACKUP   0x02
#define H3600_AC_STATUS_AC_UNKNOWN   0xff
#define H3600_BATT_STATUS_HIGH   0x01
#define H3600_BATT_STATUS_LOW   0x02
#define H3600_BATT_STATUS_CRITICAL   0x04
#define H3600_BATT_STATUS_CHARGING   0x08
#define H3600_BATT_STATUS_CHARGE_MAIN   0x10
#define H3600_BATT_STATUS_DEAD   0x20
#define H3600_BATT_NOT_INSTALLED   0x20
#define H3600_BATT_STATUS_FULL   0x40
#define H3600_BATT_STATUS_NOBATT   0x80
#define H3600_BATT_STATUS_UNKNOWN   0xff
#define EEPROM_RD_BUFSIZ   6
#define EEPROM_WR_BUFSIZ   5
#define SPI_RD_BUFSIZ   16
#define SPI_WR_BUFSIZ   7
#define SPI_READ_STATUS_BYTE   0xffff
#define IOC_H3600_TS_MAGIC   'f'
#define GET_VERSION   _IOR(IOC_H3600_TS_MAGIC, 1, struct h3600_ts_version )
#define READ_EEPROM   _IOWR(IOC_H3600_TS_MAGIC, 2, struct h3600_eeprom_read_request)
#define WRITE_EEPROM   _IOWR(IOC_H3600_TS_MAGIC, 3, struct h3600_eeprom_write_request)
#define GET_THERMAL   _IOR(IOC_H3600_TS_MAGIC, 4, struct therm_dev)
#define LED_ON   _IOW(IOC_H3600_TS_MAGIC, 5, struct h3600_ts_led)
#define GET_BATTERY_STATUS   _IOR(IOC_H3600_TS_MAGIC, 6, struct h3600_battery)
#define FLITE_ON   _IOW(IOC_H3600_TS_MAGIC, 7, struct h3600_ts_flite)
#define READ_SPI   _IOWR(IOC_H3600_TS_MAGIC, 8, struct h3600_spi_read_request)
#define WRITE_SPI   _IOWR(IOC_H3600_TS_MAGIC, 9, struct h3600_spi_write_request)
#define TS_GET_CAL   _IOR(IOC_H3600_TS_MAGIC, 10, struct h3600_ts_calibration)
#define TS_SET_CAL   _IOW(IOC_H3600_TS_MAGIC, 11, struct h3600_ts_calibration)
#define TS_GET_BACKLIGHT   _IOR(IOC_H3600_TS_MAGIC, 20, struct h3600_ts_backlight)
#define TS_SET_BACKLIGHT   _IOW(IOC_H3600_TS_MAGIC, 20, struct h3600_ts_backlight)
#define TS_GET_CONTRAST   _IOR(IOC_H3600_TS_MAGIC, 21, struct h3600_ts_contrast)
#define TS_SET_CONTRAST   _IOW(IOC_H3600_TS_MAGIC, 21, struct h3600_ts_contrast)

Typedefs

typedef struct h3600_ts_calibration TS_CAL
typedef struct h3600_ts_event TS_EVENT
typedef struct h3600_ts_return TS_RET
typedef struct therm_dev THERM_DEV
typedef struct
h3600_eeprom_read_request 
EEPROM_READ
typedef struct
h3600_eeprom_write_request 
EEPROM_WRITE
typedef struct
h3600_spi_read_request 
SPI_READ
typedef struct
h3600_spi_write_request 
SPI_WRITE
typedef struct h3600_ts_version VER_RET
typedef struct h3600_ts_led LED_IN
typedef struct h3600_ts_flite FLITE_IN

Enumerations

enum  h3600_ts_minor_devices { TS_MINOR = 0, TSRAW_MINOR = 1, KEY_MINOR = 2 }
enum  power_button_mode { PBM_SUSPEND = 0, PBM_GENERATE_KEYPRESS = 1 }
enum  flite_mode { FLITE_MODE1 = 1, FLITE_AUTO_MODE = 1, FLITE_MANUAL_MODE = 2, FLITE_GET_LIGHT_SENSOR = 3 }
enum  flite_pwr { FLITE_PWR_OFF = 0, FLITE_PWR_ON = 1 }

Define Documentation

#define EEPROM_RD_BUFSIZ   6

Definition at line 126 of file h3600_ts.h.

#define EEPROM_WR_BUFSIZ   5

Definition at line 127 of file h3600_ts.h.

#define FLITE_ON   _IOW(IOC_H3600_TS_MAGIC, 7, struct h3600_ts_flite)

Definition at line 222 of file h3600_ts.h.

#define GET_BATTERY_STATUS   _IOR(IOC_H3600_TS_MAGIC, 6, struct h3600_battery)

Definition at line 221 of file h3600_ts.h.

#define GET_THERMAL   _IOR(IOC_H3600_TS_MAGIC, 4, struct therm_dev)

Definition at line 219 of file h3600_ts.h.

#define GET_VERSION   _IOR(IOC_H3600_TS_MAGIC, 1, struct h3600_ts_version )

Definition at line 216 of file h3600_ts.h.

#define H3600_AC_STATUS_AC_BACKUP   0x02

Definition at line 95 of file h3600_ts.h.

#define H3600_AC_STATUS_AC_OFFLINE   0x00

Definition at line 93 of file h3600_ts.h.

#define H3600_AC_STATUS_AC_ONLINE   0x01

Definition at line 94 of file h3600_ts.h.

#define H3600_AC_STATUS_AC_UNKNOWN   0xff

Definition at line 96 of file h3600_ts.h.

#define H3600_BATT_CHEM_ALKALINE   0x01

Definition at line 84 of file h3600_ts.h.

#define H3600_BATT_CHEM_LION   0x04

Definition at line 87 of file h3600_ts.h.

#define H3600_BATT_CHEM_LIPOLY   0x05

Definition at line 88 of file h3600_ts.h.

#define H3600_BATT_CHEM_NICD   0x02

Definition at line 85 of file h3600_ts.h.

#define H3600_BATT_CHEM_NIMH   0x03

Definition at line 86 of file h3600_ts.h.

#define H3600_BATT_CHEM_NOT_INSTALLED   0x06

Definition at line 89 of file h3600_ts.h.

#define H3600_BATT_CHEM_UNKNOWN   0xff

Definition at line 90 of file h3600_ts.h.

#define H3600_BATT_NOT_INSTALLED   0x20

Definition at line 105 of file h3600_ts.h.

#define H3600_BATT_STATUS_CHARGE_MAIN   0x10

Definition at line 103 of file h3600_ts.h.

#define H3600_BATT_STATUS_CHARGING   0x08

Definition at line 102 of file h3600_ts.h.

#define H3600_BATT_STATUS_CRITICAL   0x04

Definition at line 101 of file h3600_ts.h.

#define H3600_BATT_STATUS_DEAD   0x20

Definition at line 104 of file h3600_ts.h.

#define H3600_BATT_STATUS_FULL   0x40

Definition at line 106 of file h3600_ts.h.

#define H3600_BATT_STATUS_HIGH   0x01

Definition at line 99 of file h3600_ts.h.

#define H3600_BATT_STATUS_LOW   0x02

Definition at line 100 of file h3600_ts.h.

#define H3600_BATT_STATUS_NOBATT   0x80

Definition at line 107 of file h3600_ts.h.

#define H3600_BATT_STATUS_UNKNOWN   0xff

Definition at line 108 of file h3600_ts.h.

#define IOC_H3600_TS_MAGIC   'f'

Definition at line 213 of file h3600_ts.h.

#define LED_ON   _IOW(IOC_H3600_TS_MAGIC, 5, struct h3600_ts_led)

Definition at line 220 of file h3600_ts.h.

#define READ_EEPROM   _IOWR(IOC_H3600_TS_MAGIC, 2, struct h3600_eeprom_read_request)

Definition at line 217 of file h3600_ts.h.

#define READ_SPI   _IOWR(IOC_H3600_TS_MAGIC, 8, struct h3600_spi_read_request)

Definition at line 223 of file h3600_ts.h.

#define SPI_RD_BUFSIZ   16

Definition at line 128 of file h3600_ts.h.

#define SPI_READ_STATUS_BYTE   0xffff

Definition at line 155 of file h3600_ts.h.

#define SPI_WR_BUFSIZ   7

Definition at line 129 of file h3600_ts.h.

#define TS_GET_BACKLIGHT   _IOR(IOC_H3600_TS_MAGIC, 20, struct h3600_ts_backlight)

Definition at line 229 of file h3600_ts.h.

#define TS_GET_CAL   _IOR(IOC_H3600_TS_MAGIC, 10, struct h3600_ts_calibration)

Definition at line 225 of file h3600_ts.h.

Referenced by ts_show_calibration().

#define TS_GET_CONTRAST   _IOR(IOC_H3600_TS_MAGIC, 21, struct h3600_ts_contrast)

Definition at line 231 of file h3600_ts.h.

#define TS_SET_BACKLIGHT   _IOW(IOC_H3600_TS_MAGIC, 20, struct h3600_ts_backlight)

Definition at line 230 of file h3600_ts.h.

#define TS_SET_CAL   _IOW(IOC_H3600_TS_MAGIC, 11, struct h3600_ts_calibration)

Definition at line 226 of file h3600_ts.h.

Referenced by ts_set_calibration(), and ts_write_calibration().

#define TS_SET_CONTRAST   _IOW(IOC_H3600_TS_MAGIC, 21, struct h3600_ts_contrast)

Definition at line 232 of file h3600_ts.h.

#define WRITE_EEPROM   _IOWR(IOC_H3600_TS_MAGIC, 3, struct h3600_eeprom_write_request)

Definition at line 218 of file h3600_ts.h.

#define WRITE_SPI   _IOWR(IOC_H3600_TS_MAGIC, 9, struct h3600_spi_write_request)

Definition at line 224 of file h3600_ts.h.


Typedef Documentation

typedef struct h3600_ts_flite FLITE_IN
typedef struct h3600_ts_led LED_IN
typedef struct therm_dev THERM_DEV
typedef struct h3600_ts_calibration TS_CAL
typedef struct h3600_ts_event TS_EVENT
typedef struct h3600_ts_return TS_RET
typedef struct h3600_ts_version VER_RET

Enumeration Type Documentation

enum flite_mode
Enumerator:
FLITE_MODE1 
FLITE_AUTO_MODE 
FLITE_MANUAL_MODE 
FLITE_GET_LIGHT_SENSOR 

Definition at line 181 of file h3600_ts.h.

00181                 {
00182         FLITE_MODE1 = 1,
00183    FLITE_AUTO_MODE   = 1,     /* for reference only */
00184    FLITE_MANUAL_MODE = 2,     /* Use this normally? */
00185    FLITE_GET_LIGHT_SENSOR = 3 /* Returns light reading in "brightness" field */
00186 };

enum flite_pwr
Enumerator:
FLITE_PWR_OFF 
FLITE_PWR_ON 

Definition at line 187 of file h3600_ts.h.

00187                {
00188         FLITE_PWR_OFF = 0,
00189         FLITE_PWR_ON  = 1
00190 };

Enumerator:
TS_MINOR 
TSRAW_MINOR 
KEY_MINOR 

Definition at line 43 of file h3600_ts.h.

00043                             {
00044    TS_MINOR    = 0,
00045    TSRAW_MINOR = 1,
00046    KEY_MINOR   = 2
00047 };

Enumerator:
PBM_SUSPEND 
PBM_GENERATE_KEYPRESS 

Definition at line 72 of file h3600_ts.h.

00072                        {
00073    PBM_SUSPEND           = 0,
00074    PBM_GENERATE_KEYPRESS = 1
00075 };

Generated by  doxygen 1.6.2-20100208