2.4.2 drivenshield_start

void drivenshield_start(uint8_t csd, uint8_t sds, uint8_t prescaler, uint8_t volatile *dst_addr, uint8_t value);

Description: This function is called by touch library before starting the dummy measurement. Here, EVSYS is configured to map PTC EOC event to start DMA transfer and DMA Transfer complete event to start PTC measurement. Timer’s count, period and compare channel registers are configured based on the current channel’s CSD, prescaler and acquisition frequency. The EVENT generated from the dummy measurement will start a DMA conversion (to configure proper oversampling to PTC) and when the DMA transfer is completed, PTC measurement is started using EVSYS. For some devices Filter Level registers are 32-bit.

Parameter:
TypeDescription
uint8_tCurrent Channel’s CSD Value.
uint8_tIndicates current acquisition frequency.
uint8_tCurrent Channel’s Prescaler Value.
uint8_t volatile *Address of PTC’s Filter Level Register. For some devices Filter Level registers are 32-bit.
uint8_tFilter Level value which needs to be written. For some devices Filter Level values are 32-bit.

Return: None