inc/ad7879.h File Reference

This graph shows which files directly or indirectly include this file:


Data Structures

struct  tscrAD7879_t
struct  tscrPosition
struct  tscrPressure

Defines

#define CONTROL_REGISTER_1   0x01
#define CONTROL_REGISTER_2   0x02
#define CONTROLREGISTER_3   0x03
#define AUX_VBAT_HIGH   0x04
#define AUX_VBAT_LOW   0x05
#define TEMP_HIGH   0x06
#define TEMP_LOW   0x07
#define X_PLUS   0x08
#define Y_PLUS   0x09
#define Z1   0x0A
#define Z2   0x0B
#define AUX_VBAT   0x0C
#define TEMP   0x0D
#define DEVICE_ID   0x0E
#define CHNL_ADD_MASK   0x7000
#define ADC_MODE_MASK   0x0C00
#define ACQ_MASK   0x0300
#define PM_MASK   0xC000
#define GPOI_MASK   0x3C00
#define AVG_MASK   0x0180
#define MEDIAN_MASK   0x0060
#define FCD_MASK   0x000F
#define PEN_INTERRUPT_ENABLE   0x8000
#define CHNL_ADD_Y_POSITION   0x7000
#define CHNL_ADD_X_POSITION   0x6000
#define CHNL_ADD_Z1   0x5000
#define CHNL_ADD_Z2   0x4000
#define CHNL_ADD_AUX   0x3000
#define CHNL_ADD_VBAT   0x2000
#define CHNL_ADD_TEMP   0x1000
#define ADC_MODE_NO_CONVERSION   0x0000
#define ADC_MODE_SINGLE_CONVERSION   0x0040
#define ADC_MODE_SLAVE   0x0800
#define ADC_MODE_MASER   0x0C00
#define ACQ_2_MICRO_S   0x0000
#define ACQ_4_MICRO_S   0x0100
#define ACQ_8_MICRO_S   0x0200
#define ACQ_16_MICRO_S   0x0300
#define PM_FULL_SHUTDOWN   0x0000
#define PM_DEPENDS_ADC_MODE   0x4000
#define PM_POWERED_UP   0x8000
#define GPIO_ENABLE   0x2000
#define GPIO_DATA_SET   0x1000
#define GPIO_INPUT   0x0800
#define GPIO_POLARITY_ACTIVE_HIGH   0x0400
#define NORMAL_CONVERSION   0x0200
#define SOFTWARE_RESET   0x08
#define AVG_2   0x0000
#define AVG_4   0x0080
#define AVG_8   0x0100
#define AVG_16   0x0180
#define MEDIAN_OFF   0x0000
#define MEDIAN_4   0x0020
#define MEDIAN_8   0x0040
#define MEDIAN_16   0x0060
#define INT_TEMP   0x8000
#define INT_AUX_VBAT   0x4000
#define INT_GPIO   0x1000
#define INT_AUX_VBAT_LOW   0x0800
#define INT_AUX_VBAT_HIGH   0x0400
#define INT_TEMP_LOW   0x0200
#define INT_TEMP_HIGH   0x0100
#define INCLUDE_X_PLUS   0x0080
#define INCLUDE_Y_PLUS   0x0040
#define INCLUDE_Z1   0x0020
#define INCLUDE_Z2   0x0010
#define INCLUDE_AUX   0x0008
#define INCLUDE_VBAT   0x0004
#define INCLUDE_TEMP   0x0002
#define TLL6527M_V_1_1_TOUCHSCREEN_RESISTANCE_X_PLATE   620
#define TLL6527M_V_1_1_TOUCHSCREEN_HEIGHT   240
#define TLL6527M_V_1_1_TOUCHSCREEN_WIDTH   320

Functions

int tscrAD7879_init (tscrAD7879_t *state, unsigned char slaveAddress, unsigned int width, unsigned int length, unsigned int resistanceX, unsigned char interruptEnable, unsigned char includeMeasurements)
int tscrAD7879_regSet (tscrAD7879_t *state, unsigned char reg, unsigned int value)
int tscrAD7879_regGet (tscrAD7879_t *state, unsigned char reg, unsigned int *value)
int tscrAD7879_positionGet (tscrAD7879_t *state, tscrPosition *position)
int gpioAD7879_pinSet (tscrAD7879_t *state)
int gpioAD7879_pinClear (tscrAD7879_t *state)
int gpioAD7879_pinGet (tscrAD7879_t *state, unsigned char *value)
int tscrAD7879_pressurePositionGet (tscrAD7879_t *state, tscrPosition *position, double *pressure)
int tscrAD7879_pressureGet (tscrAD7879_t *state, double *pressure)
int tscrAD7879_touchEventGet (tscrAD7879_t *state, tscrPosition *position, double *pressure)
int tscrAD7879_release (tscrAD7879_t *state)

Define Documentation

#define ACQ_16_MICRO_S   0x0300

#define ACQ_2_MICRO_S   0x0000

#define ACQ_4_MICRO_S   0x0100

#define ACQ_8_MICRO_S   0x0200

#define ACQ_MASK   0x0300

#define ADC_MODE_MASER   0x0C00

#define ADC_MODE_MASK   0x0C00

#define ADC_MODE_NO_CONVERSION   0x0000

#define ADC_MODE_SINGLE_CONVERSION   0x0040

#define ADC_MODE_SLAVE   0x0800

#define AUX_VBAT   0x0C

#define AUX_VBAT_HIGH   0x04

#define AUX_VBAT_LOW   0x05

#define AVG_16   0x0180

#define AVG_2   0x0000

#define AVG_4   0x0080

#define AVG_8   0x0100

#define AVG_MASK   0x0180

#define CHNL_ADD_AUX   0x3000

#define CHNL_ADD_MASK   0x7000

#define CHNL_ADD_TEMP   0x1000

#define CHNL_ADD_VBAT   0x2000

#define CHNL_ADD_X_POSITION   0x6000

#define CHNL_ADD_Y_POSITION   0x7000

#define CHNL_ADD_Z1   0x5000

#define CHNL_ADD_Z2   0x4000

#define CONTROL_REGISTER_1   0x01

#define CONTROL_REGISTER_2   0x02

#define CONTROLREGISTER_3   0x03

#define DEVICE_ID   0x0E

#define FCD_MASK   0x000F

#define GPIO_DATA_SET   0x1000

#define GPIO_ENABLE   0x2000

#define GPIO_INPUT   0x0800

#define GPIO_POLARITY_ACTIVE_HIGH   0x0400

#define GPOI_MASK   0x3C00

#define INCLUDE_AUX   0x0008

#define INCLUDE_TEMP   0x0002

#define INCLUDE_VBAT   0x0004

#define INCLUDE_X_PLUS   0x0080

#define INCLUDE_Y_PLUS   0x0040

#define INCLUDE_Z1   0x0020

#define INCLUDE_Z2   0x0010

#define INT_AUX_VBAT   0x4000

#define INT_AUX_VBAT_HIGH   0x0400

#define INT_AUX_VBAT_LOW   0x0800

#define INT_GPIO   0x1000

#define INT_TEMP   0x8000

#define INT_TEMP_HIGH   0x0100

#define INT_TEMP_LOW   0x0200

#define MEDIAN_16   0x0060

#define MEDIAN_4   0x0020

#define MEDIAN_8   0x0040

#define MEDIAN_MASK   0x0060

#define MEDIAN_OFF   0x0000

#define NORMAL_CONVERSION   0x0200

#define PEN_INTERRUPT_ENABLE   0x8000

#define PM_DEPENDS_ADC_MODE   0x4000

#define PM_FULL_SHUTDOWN   0x0000

#define PM_MASK   0xC000

#define PM_POWERED_UP   0x8000

#define SOFTWARE_RESET   0x08

#define TEMP   0x0D

#define TEMP_HIGH   0x06

#define TEMP_LOW   0x07

#define TLL6527M_V_1_1_TOUCHSCREEN_HEIGHT   240

#define TLL6527M_V_1_1_TOUCHSCREEN_RESISTANCE_X_PLATE   620

#define TLL6527M_V_1_1_TOUCHSCREEN_WIDTH   320

#define X_PLUS   0x08

#define Y_PLUS   0x09

#define Z1   0x0A

#define Z2   0x0B


Function Documentation

int gpioAD7879_pinClear ( tscrAD7879_t state  ) 

int gpioAD7879_pinGet ( tscrAD7879_t state,
unsigned char *  value 
)

int gpioAD7879_pinSet ( tscrAD7879_t state  ) 

int tscrAD7879_init ( tscrAD7879_t state,
unsigned char  slaveAddress,
unsigned int  width,
unsigned int  length,
unsigned int  resistanceX,
unsigned char  interruptEnable,
unsigned char  includeMeasurements 
)

int tscrAD7879_positionGet ( tscrAD7879_t state,
tscrPosition position 
)

int tscrAD7879_pressureGet ( tscrAD7879_t state,
double *  pressure 
)

int tscrAD7879_pressurePositionGet ( tscrAD7879_t state,
tscrPosition position,
double *  pressure 
)

int tscrAD7879_regGet ( tscrAD7879_t state,
unsigned char  reg,
unsigned int *  value 
)

int tscrAD7879_regSet ( tscrAD7879_t state,
unsigned char  reg,
unsigned int  value 
)

int tscrAD7879_release ( tscrAD7879_t state  ) 

int tscrAD7879_touchEventGet ( tscrAD7879_t state,
tscrPosition position,
double *  pressure 
)


Generated on 3 Mar 2014 for PAL bare-c Library by  doxygen 1.4.7