Quantcast
Channel: Data converters
Viewing all articles
Browse latest Browse all 38650

Forum Post: Wheel definition Problem on CCS (capacitive touch library)

$
0
0

Hello, I´m trying to define a wheel capacitive sensor. I previously checked a couple of examples  on slac490 zip file and I found the CapTouchBoosterPack_UserExperience example and it define the sensor as follow:

const struct Sensor wheel =
{
       //.halDefinition = fRO_PINOSC_TA0_SW,
         .halDefinition = RO_PINOSC_TA0_WDTp,
         .numElements = 4,
         .points = 64,
         .sensorThreshold = 75,
          .baseOffset = 0,
          // Pointer to elements
         .arrayPtr[0] = &volume_up, // point to first element
         .arrayPtr[1] = &right,
         .arrayPtr[2] = &volume_down,
         .arrayPtr[3] = &left,
          // Timer Information
         //.measGateSource= GATE_WDT_SMCLK, // 0->SMCLK, 1-> ACLK
         //.accumulationCycles= WDTp_GATE_32768 //32768
          .accumulationCycles= WDTp_GATE_8192 // 8192
         //.accumulationCycles= WDTp_GATE_512 //512
         //.accumulationCycles= WDTp_GATE_64 //64
         //.accumulationCycles = 32
};

Previously I made the characterization and works  well, but when I enable  ILLEGAL_SLIDER_WHEEL_POSITION and  WHEEL definitions in the file "structure.h" and add .points and .sensorThreshold variables, CCS  indicates the following compilation errors:

Have you any idea what may be happening?

Thanks for your time for read this question.


Viewing all articles
Browse latest Browse all 38650

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>