DEBUGCURRENT* MTouchDebugCurrent(UINT8 sensorNumber)

mTouch

mTouch Cap Library Help
DEBUGCURRENT* MTouchDebugCurrent(UINT8 sensorNumber)

 

Description:The function adjusts CTMU current to charge the sensor to 75% of AVdd for unpressed state  when charge delay is 8. Before the adjustment MTOUCH_CTMU_CURRENT parameter in mTouchConfig.h must be set to 0x01 and sensor must be initialized with MTouchSetSensor(...). The CTMU current result can be set to MTOUCH_CTMU_CURRENT parameter directly. 

Parameters: 

  • sensorNumber - sensor number.

Returns: the function returns a pointer to the structure with the CTMU current settings value and corresponding error in the sensor charge delay.

Microchip mTouchCap Software Library 1.41 - [July 18, 2012]
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.