Sensorian  1.0
C API Reference Guide Library
CAP1203.c File Reference

CAP1203 driver. More...

#include "CAP1203.h"

Go to the source code of this file.

Functions

void CAP1203_Initialize (void)
 Basic configuration for the capacitive touch controller. Configures the sensor inactive mode and activates all three channels. More...
 
unsigned char CAP1203_ActiveMode (void)
 Configures the controller in active mode. More...
 
unsigned char CAP1203_StandbyMode (void)
 Configures the controller in standby mode. More...
 
unsigned char CAP1203_DeepSleep (void)
 Configures the controller in deep sleep mode. More...
 
unsigned char CAP1203_ResumeFromDeepSleep (void)
 Takes the controller out of deep sleep mode. More...
 
void CAP1203_ConfigureMultiTouch (touch_type number, unsigned char mulchan)
 Enables the multi-touch capability of the controller. More...
 
unsigned char CAP1203_MultitouchEvent (void)
 Return true if a multitouch event was detected. More...
 
void CAP1203_SetPowerButton (button_type button)
 Configures the button as a power button. More...
 
unsigned char CAP1203_ReadPowerButton (void)
 Read the status of the power button. More...
 
unsigned char CAP1203_ReadPressedButton (void)
 Return id indicating which button was pressed. More...
 
unsigned char CAP1203_GetStatusReg (void)
 Reads the status register. More...
 
void CAP1203_EnableInterrupt (button_type pin)
 Enable interrupt, the ALERT pin goes high once an interrupt occurs. More...
 
void CAP1203_SetSensitivity (sensitivity_type sensitivity)
 Sets the sensitivity of each channel. More...
 
unsigned char CAP1203_CheckSensorStatus (void)
 Checks the sensor status. More...
 
unsigned char CAP1203_ClearInterrupt (void)
 Clears any impending interrupts. More...
 
unsigned int CAP1203_ReadID (void)
 Returns product chip and manufacturing ID. More...
 
void CAP1203_Write (unsigned char reg, unsigned char data)
 Write data value to register address. More...
 
unsigned char CAP1203_Read (unsigned char reg)
 Reads data from register reg address. More...
 

Detailed Description

CAP1203 driver.

Author
D.Qendri
Date
28 May 2015

Definition in file CAP1203.c.

Function Documentation

unsigned char CAP1203_Read ( unsigned char  reg)

Reads data from register reg address.

Parameters
regRegister to read from
Returns
Register value

Definition at line 267 of file CAP1203.c.

void CAP1203_Write ( unsigned char  reg,
unsigned char  data 
)

Write data value to register address.

Parameters
regRegister to write to.
dataValue to write to register

Definition at line 257 of file CAP1203.c.