/* Sets the ACMP channel used for capacative sensing.  */
void ACMP_CapsenseChannelSet(ACMP_TypeDef *acmp, ACMP_Channel_TypeDef channel)
/* Sets the ACMP channel used for capacative sensing.  */
void ACMP_CapsenseChannelSet(ACMP_TypeDef *acmp, ACMP_Channel_TypeDef channel)
{
  EFM_ASSERT(channel < _ACMP_INPUTSEL_NEGSEL_1V25);
  SET_BIT_FIELD(acmp->INPUTSEL, _ACMP_INPUTSEL_POSSEL_MASK, channel,
                _ACMP_INPUTSEL_POSSEL_SHIFT);
}