Defines | Functions | Variables

mTouch_acquistion.c File Reference

Implements scanning procedure for the framework which performs the mTouch acquisition and provides an oversampled, scaled integer value representing the relative capacitance of the sensor. More...

#include "mTouch.h"
#include <caspic.h>
Include dependency graph for mTouch_acquistion.c:

Go to the source code of this file.

Defines

#define MTOUCH_ACQ_CAS_INCLUDE

Functions

void mTouch_DecimationFilter (void)
void mTouch_WaitForGoDone (void)
void mTouch_StoreScanA (void)
void mTouch_StoreScanB (void)
void mTouch_ChangeMode (void)
void mTouch_UpdateAccumulator2 (void)
 MTOUCH_SCAN_PROTOTYPES ()
void mTouch_Scan (void)
 Implements the framework's active-mode acquisition routine. Sometimes implemented as an ISR, sometimes as a normal function.
 MTOUCH_SCAN_FUNCTION (0)
 MTOUCH_SCAN_FUNCTION (1)
 MTOUCH_SCAN_FUNCTION (2)
 MTOUCH_SCAN_FUNCTION (3)
 MTOUCH_SCAN_FUNCTION (4)
 MTOUCH_SCAN_FUNCTION (5)
 MTOUCH_SCAN_FUNCTION (6)

Variables

const uint8_t mTouch_Oversample_Default [MTOUCH_NUMBER_SENSORS] = MTOUCH_UNIQUE_OVERSAMPLE_INIT
void(*const mTouch_ScanA [MTOUCH_NUMBER_SENSORS])(void) = MTOUCH_SCANA_VAR_INIT
void(*const mTouch_ScanB [MTOUCH_NUMBER_SENSORS])(void) = MTOUCH_SCANB_VAR_INIT
mTouch Acquisition ISR Variables

These variables are used by the ISR of the mTouch Framework and should not be directly accessed by the main loop application.

mTouch_AcquisitionData mTouch_acqData [MTOUCH_NUMBER_SENSORS]
 Internal mTouch acquisition variable structure.
mTouch_AcquisitionDatamTouch_previousSensor
uint16_t mTouch_sensorData [MTOUCH_NUMBER_SENSORS]
 Latch register storing the latest mTouch acquisition results.
uint16_t mTouch_lastResult
 Stores the last active-mode ADC result for differential calculation.
uint8_t mTouch_delayCount
 Delay counter variable used in CVD scan sequence.
uint8_t mTouch_currentScan
uint8_t mTouch_oversample [MTOUCH_NUMBER_SENSORS]
uint8_t mTouch_jitter = 0x55
 Stores the current random seed value for jittering.

Detailed Description

Implements scanning procedure for the framework which performs the mTouch acquisition and provides an oversampled, scaled integer value representing the relative capacitance of the sensor.

Definition in file mTouch_acquistion.c.


Define Documentation

#define MTOUCH_ACQ_CAS_INCLUDE

Function Documentation

void mTouch_ChangeMode ( void   )

Definition at line 508 of file mTouch_acquistion.c.

Here is the caller graph for this function:

void mTouch_DecimationFilter ( void   )

Definition at line 417 of file mTouch_acquistion.c.

Here is the caller graph for this function:

MTOUCH_SCAN_FUNCTION (  )
MTOUCH_SCAN_FUNCTION (  )
MTOUCH_SCAN_FUNCTION (  )
MTOUCH_SCAN_FUNCTION (  )
MTOUCH_SCAN_FUNCTION (  )
MTOUCH_SCAN_FUNCTION (  )
MTOUCH_SCAN_FUNCTION (  )
MTOUCH_SCAN_PROTOTYPES (  )
void mTouch_StoreScanA ( void   )

Definition at line 478 of file mTouch_acquistion.c.

Here is the caller graph for this function:

void mTouch_StoreScanB ( void   )

Definition at line 491 of file mTouch_acquistion.c.

Here is the caller graph for this function:

void mTouch_UpdateAccumulator2 ( void   )

Definition at line 545 of file mTouch_acquistion.c.

Here is the caller graph for this function:

void mTouch_WaitForGoDone ( void   )

Definition at line 472 of file mTouch_acquistion.c.

Here is the caller graph for this function:


Variable Documentation

mTouch_AcquisitionData mTouch_acqData[MTOUCH_NUMBER_SENSORS]

Internal mTouch acquisition variable structure.

Definition at line 72 of file mTouch_acquistion.c.

Definition at line 83 of file mTouch_acquistion.c.

uint8_t mTouch_oversample[MTOUCH_NUMBER_SENSORS]

Definition at line 88 of file mTouch_acquistion.c.

const uint8_t mTouch_Oversample_Default[MTOUCH_NUMBER_SENSORS] = MTOUCH_UNIQUE_OVERSAMPLE_INIT

Definition at line 166 of file mTouch_acquistion.c.

Definition at line 73 of file mTouch_acquistion.c.

void(*const mTouch_ScanA[MTOUCH_NUMBER_SENSORS])(void) = MTOUCH_SCANA_VAR_INIT

Definition at line 169 of file mTouch_acquistion.c.

void(*const mTouch_ScanB[MTOUCH_NUMBER_SENSORS])(void) = MTOUCH_SCANB_VAR_INIT

Definition at line 170 of file mTouch_acquistion.c.

uint16_t mTouch_sensorData[MTOUCH_NUMBER_SENSORS]

Latch register storing the latest mTouch acquisition results.

Definition at line 74 of file mTouch_acquistion.c.