/* This API will get the result of the conversion from the global result
 *
 * This API has been deprecated. Use ADC_MEASUREMENT_GetGlobalResult() to get the global result.
 * */
XMC_VADC_RESULT_SIZE_t ADC_MEASUREMENT_GetResult(ADC_MEASUREMENT_t *const handle_ptr)
{
  XMC_VADC_RESULT_SIZE_t result;

  XMC_ASSERT("ADC_MEASUREMENT_GetResult:Invalid handle_ptr", (handle_ptr != NULL))

  XMC_UNUSED_ARG(handle_ptr);

  result = ADC_MEASUREMENT_GetGlobalResult();
  return (result);
}
/* This API will get the result of a conversion for a specific channel. It will return the global result register
 *
 * This API has been deprecated. Use ADC_MEASUREMENT_GetGlobalDetailedResult() to get the global result.
 * */
uint32_t ADC_MEASUREMENT_GetDetailedResult(ADC_MEASUREMENT_t *const handle_ptr)
{
  uint32_t result;

  XMC_ASSERT("ADC_MEASUREMENT_GetDetailedResult:Invalid handle_ptr", (handle_ptr != NULL))

  XMC_UNUSED_ARG(handle_ptr);

  /* Needed only for XMC1100 devices to read global result register*/
  result = ADC_MEASUREMENT_GetGlobalDetailedResult();
  return (result);
}
Esempio n. 3
0
/* Disable the clock and Reset the ERU module. */
void XMC_ERU_Disable(XMC_ERU_t *const eru)
{
#if defined(XMC_ERU1)
  if (eru == XMC_ERU1)
  {
    XMC_SCU_RESET_AssertPeripheralReset(XMC_SCU_PERIPHERAL_RESET_ERU1);
#if defined(CLOCK_GATING_SUPPORTED)
      XMC_SCU_CLOCK_GatePeripheralClock(XMC_SCU_PERIPHERAL_CLOCK_ERU1);
    #endif
  }
#else
  XMC_UNUSED_ARG(eru);
#endif
}
void XMC_ERU_Disable(XMC_ERU_t *const eru)
{
    XMC_UNUSED_ARG(eru);
}