tcapAD7147_t Struct Reference

tcapAD7147_t More...

#include <ad7147.h>


Data Fields

unsigned char slaveAddress
unsigned int cinLowInterrupt
unsigned int cinHighInterrupt
unsigned int cinCompleteInterrupt
unsigned int bank2_reg [AD7147_NUM_BANK2_REG]
unsigned int powerControl
unsigned int stageCalEnable
unsigned int ambCompControl0
unsigned int ambCompControl1
unsigned int ambCompControl2
unsigned char numButtons
char buttonsname [AD7147_NUM_BUTTONS][AD7147_BUTTON_NAME_MAX_LEN]
unsigned char buttonsChange [AD7147_NUM_BUTTONS]
unsigned char buttonsstatus [AD7147_NUM_BUTTONS]


Detailed Description

tcapAD7147_t

This structure is used to store the state of the AD7147 touch cap and the various bit setting and register values. It also stores the button names and button change status and button status.

Parameters:
slaveAddress unsigned char The slave address of the device
cinLowInterrupt unsigned int The Low interrupt enable register
cinHighInterrupt unsigned int The High interrupt enable register
cinCompleteInterrupt unsigned int The complete interrupt enable register
bank2_reg unsigned int The bank 2 registers
powerControl unsigned int The power control register
stageCalEnable unsigned int The state Calibration Enable register
ambCompControl0 unsigned int The AMB_COMP_CTRL0 register
ambCompControl1 unsigned int The AMB_COMP_CTRL1 register
ambCompControl2 unsigned int The AMB_COMP_CTRL2 register
numButtons unsigned char The number of buttons
buttonsname char The name of each of the buttons mapped
buttonsChange unsigned char The buttons which has had a state change
buttonsstatusunsigned char The state of the button(1 for touched, 0 for not touched)


Field Documentation

unsigned int tcapAD7147_t::ambCompControl0

unsigned int tcapAD7147_t::ambCompControl1

unsigned int tcapAD7147_t::ambCompControl2

unsigned int tcapAD7147_t::bank2_reg[AD7147_NUM_BANK2_REG]

unsigned char tcapAD7147_t::buttonsChange[AD7147_NUM_BUTTONS]

char tcapAD7147_t::buttonsname[AD7147_NUM_BUTTONS][AD7147_BUTTON_NAME_MAX_LEN]

unsigned char tcapAD7147_t::buttonsstatus[AD7147_NUM_BUTTONS]

unsigned int tcapAD7147_t::cinCompleteInterrupt

unsigned int tcapAD7147_t::cinHighInterrupt

unsigned int tcapAD7147_t::cinLowInterrupt

unsigned char tcapAD7147_t::numButtons

unsigned int tcapAD7147_t::powerControl

unsigned char tcapAD7147_t::slaveAddress

unsigned int tcapAD7147_t::stageCalEnable


The documentation for this struct was generated from the following file:
Generated on 3 Mar 2014 for PAL bare-c Library by  doxygen 1.4.7