emlib/src/em_emu.c
void EMU_BUThresRangeSet(EMU_BODMode_TypeDef mode, uint32_t value)
{
  EFM_ASSERT(value < 4);
  EFM_ASSERT(value <= (_EMU_BUACT_BUEXRANGE_MASK >> _EMU_BUACT_BUEXRANGE_SHIFT));

  switch (mode) {
    case emuBODMode_Active:
      EMU->BUACT = (EMU->BUACT & ~_EMU_BUACT_BUEXRANGE_MASK)
                   | (value << _EMU_BUACT_BUEXRANGE_SHIFT);
      break;
    case emuBODMode_Inactive:
      EMU->BUINACT = (EMU->BUINACT & ~_EMU_BUINACT_BUENRANGE_MASK)
                     | (value << _EMU_BUINACT_BUENRANGE_SHIFT);
      break;
  }
}
/***************************************************************************/
/**
 * @brief
 *  Configure Backup Power Domain BOD Threshold Range
 * @note
 *  These values are precalibrated
 * @param[in] mode Active or Inactive mode
 * @param[in] value
 ******************************************************************************/
@brief
Configure Backup Power Domain BOD Threshold Range
@note
These values are precalibrated
@param[in] mode Active or Inactive mode
@param[in] value
@brief Configure Backup Power Domain BOD Threshold Range @note These values are precalibrated @param [ in ] mode Active or Inactive mode @param [ in ] value
void EMU_BUThresRangeSet(EMU_BODMode_TypeDef mode, uint32_t value)
{
  EFM_ASSERT(value < 4);
  EFM_ASSERT(value <= (_EMU_BUACT_BUEXRANGE_MASK >> _EMU_BUACT_BUEXRANGE_SHIFT));
  switch (mode) {
    case emuBODMode_Active:
      EMU->BUACT = (EMU->BUACT & ~_EMU_BUACT_BUEXRANGE_MASK)
                   | (value << _EMU_BUACT_BUEXRANGE_SHIFT);
      break;
    case emuBODMode_Inactive:
      EMU->BUINACT = (EMU->BUINACT & ~_EMU_BUINACT_BUENRANGE_MASK)
                     | (value << _EMU_BUINACT_BUENRANGE_SHIFT);
      break;
  }
}
void EMU_BUThresRangeSet ( EMU_BODMode_TypeDef mode , uint32_t value ) { EFM_ASSERT ( value < 4 ) ; EFM_ASSERT ( value <= ( _EMU_BUACT_BUEXRANGE_MASK >> _EMU_BUACT_BUEXRANGE_SHIFT ) ) ; switch ( mode ) { case emuBODMode_Active : EMU -> BUACT = ( EMU -> BUACT & ~ _EMU_BUACT_BUEXRANGE_MASK ) | ( value << _EMU_BUACT_BUEXRANGE_SHIFT ) ; break ; case emuBODMode_Inactive : EMU -> BUINACT = ( EMU -> BUINACT & ~ _EMU_BUINACT_BUENRANGE_MASK ) | ( value << _EMU_BUINACT_BUENRANGE_SHIFT ) ; break ; } }
@brief
  Configure Backup Power Domain BOD Threshold Range
 @note
  These values are precalibrated
 @param[in] mode Active or Inactive mode
 @param[in] value
@brief Configure Backup Power Domain BOD Threshold Range @note These values are precalibrated @param [ in ] mode Active or Inactive mode @param [ in ] value