emlib/src/em_csen.c
void CSEN_DMBaselineSet(CSEN_TypeDef *csen, uint32_t up, uint32_t down)
{
  EFM_ASSERT(up < 0x10000);
  EFM_ASSERT(down < 0x10000);

  csen->DMBASELINE = (up << _CSEN_DMBASELINE_BASELINEUP_SHIFT)
                     | (down << _CSEN_DMBASELINE_BASELINEDN_SHIFT);
}
/***************************************************************************/
/**
 * @brief
 *   Set the DM integrator initial value.
 *
 * @details
 *   Sets the initial value of the integrator(s) for the Delta Modulation (DM)
 *   converter. The initial value for the ramp-down integrator has no effect
 *   if low frequency attenuation was not selected by the mode initialization
 *   function @ref CSEN_InitMode().
 *
 * @note
 *   Confirm CSEN is idle before calling this function.
 *
 * @param[in] csen
 *   Pointer to CSEN peripheral register block.
 *
 * @param[in] up
 *   Initial value for the ramp-up integrator.
 *
 * @param[in] down
 *  Initial value for the ramp-down integrator. Has no effect if low frequency
 *  attenuation is not configured.
 ******************************************************************************/
@brief
Set the DM integrator initial value.

@details
Sets the initial value of the integrator(s) for the Delta Modulation (DM)
converter. The initial value for the ramp-down integrator has no effect
if low frequency attenuation was not selected by the mode initialization
function @ref CSEN_InitMode().

@note
Confirm CSEN is idle before calling this function.

@param[in] csen
Pointer to CSEN peripheral register block.

@param[in] up
Initial value for the ramp-up integrator.

@param[in] down
Initial value for the ramp-down integrator. Has no effect if low frequency
attenuation is not configured.
@brief Set the DM integrator initial value . @details Sets the initial value of the integrator ( s ) for the Delta Modulation ( DM ) converter . The initial value for the ramp - down integrator has no effect if low frequency attenuation was not selected by the mode initialization function @ref CSEN_InitMode () . @note Confirm CSEN is idle before calling this function . @param [ in ] csen Pointer to CSEN peripheral register block . @param [ in ] up Initial value for the ramp - up integrator . @param [ in ] down Initial value for the ramp - down integrator . Has no effect if low frequency attenuation is not configured .
void CSEN_DMBaselineSet(CSEN_TypeDef *csen, uint32_t up, uint32_t down)
{
  EFM_ASSERT(up < 0x10000);
  EFM_ASSERT(down < 0x10000);
  csen->DMBASELINE = (up << _CSEN_DMBASELINE_BASELINEUP_SHIFT)
                     | (down << _CSEN_DMBASELINE_BASELINEDN_SHIFT);
}
void CSEN_DMBaselineSet ( CSEN_TypeDef * csen , uint32_t up , uint32_t down ) { EFM_ASSERT ( up < 0x10000 ) ; EFM_ASSERT ( down < 0x10000 ) ; csen -> DMBASELINE = ( up << _CSEN_DMBASELINE_BASELINEUP_SHIFT ) | ( down << _CSEN_DMBASELINE_BASELINEDN_SHIFT ) ; }
@brief
   Set the DM integrator initial value.
@brief Set the DM integrator initial value .