documentation
.HELP!
mTouch Documentation
void MTouchInit(void)
mTouch
previous page
next page
mTouch Cap Library Help
Contents
|
Index
|
Home
Previous
|
Up
|
Next
void MTouchInit(void)
Description:
this function initializes mTouch library.
API Reference
>
Common
>
void MTouchInit(void)
Microchip mTouchCap Software Library 1.41 - [July 18, 2012]
Copyright © 2012 Microchip Technology, Inc. All rights reserved.
Contents
|
Index
|
Home
previous page
start
next page
Menu
Homepage
Table of contents
Introduction
Software License Agreement
Overview
Acquisition Level
Sensors Level
Controls Level
Getting Started
mTouch Library Files
mTouch Library Configuration
Using API
Sensor Optimization (Debug Module)
Step 1. Optimal CTMU current selection
Step 2. Optimal CTMU charge delay selection
Step 3. Optimal oversampling factor selection
Step 4. Optimal press detection threshold selection
Optimization example
mTouch GUI
Sharing ADC between mTouch Library and Other Tasks
Code and RAM Memories Size
RAM
Code
Acquisition Time for One Sensor
Demo Projects
API Reference
Common
void MTouchInit(void)
MTouchSetCTMUCurrent(current)
Acquisition
MTouchAcquisition(void)
Sensors
void MTouchSetSensor(UINT8 sensorNumber, SFR tris, SFR lat, UINT8 ioBitNumber, UINT8 channelNumber, INT16 threshold, INT16 oversampling, INT8 chargeDelay)
MTouchSuspendSensor(sensorNumber)
MTouchResumeSensor(sensorNumber)
MTouchSetChargeDelay(sensorNumber, delay)
MTouchSetThreshold(sensorNumber, _threshold)
MTouchSetOversampling(sensorNumber, oversampling)
MTouchGetSensorState(sensorNumber)
MTouchInitializeSensor(sensorNumber)
Controls
void mTouchDecode(void)
void MTouchSetButton(UINT8 buttonNumber, UINT8 sensorNumber, UINT8 decode)
MTouchGetButtonState(buttonNumber)
void MTouchSetMatrixButton(UINT8 buttonNumber, UINT8 ch1SensorNumber, UINT8 ch2SensorNumber, UINT8 decode)
MTouchGetMatrixButtonState(buttonNumber)
void MTouchSet2ChSlider(UINT8 sliderNumber, UINT8 ch1SensorNumber, UINT8 ch2SensorNumber)
MTouchGet2ChSliderState(sliderNumber)
MTouchGet2ChSliderValue(sliderNumber)
void MTouchSet4ChSlider(UINT8 sliderNumber, UINT8 ch1SensorNumber, UINT8 ch2SensorNumber, UINT8 ch3SensorNumber, UINT8 ch4SensorNumber)
MTouchGet4ChSliderState(sliderNumber)
MTouchGet4ChSliderValue(sliderNumber)
Debug Module
void LogChar(char ch)
DEBUGCURRENT* MTouchDebugCurrent(UINT8 sensorNumber)
INT16 MTouchDebugThreshold(UINT8 sensorNumber)
DEBUGDELAY* MTouchDebugDelay(UINT8 sensorNumber)
void MTouchDebugLogDeltas(void)
void MTouchDebugLogAverages(void)
Structures and Enumerations
MTOUCHSENSORSTATE Enum
MTOUCHCONTROLSTATE Enum
MTOUCHCONTROLDECODE Enum
DEBUGCURRENT Struct
DEBUGDELAY Struct
Known Limitations
Resources
Get in touch
Submit feedback about this site to:
[email protected]