emlib/src/em_emu.c
bool EMU_VmonChannelStatusGet(EMU_VmonChannel_TypeDef channel)
{
  uint32_t bit;
  switch (channel) {
    case emuVmonChannel_AVDD:
      bit = _EMU_STATUS_VMONAVDD_SHIFT;
      break;
    case emuVmonChannel_ALTAVDD:
      bit = _EMU_STATUS_VMONALTAVDD_SHIFT;
      break;
    case emuVmonChannel_DVDD:
      bit = _EMU_STATUS_VMONDVDD_SHIFT;
      break;
    case emuVmonChannel_IOVDD0:
      bit = _EMU_STATUS_VMONIO0_SHIFT;
      break;
    default:
      EFM_ASSERT(false);
      bit = 0;
  }

  return BUS_RegBitRead(&EMU->STATUS, bit);
}
/***************************************************************************/
/**
 * @brief
 *   Get the status of a voltage monitor channel.
 *
 * @param[in] channel
 *   VMON channel to get status for
 *
 * @return
 *   Status of the selected VMON channel. True if channel is triggered.
 ******************************************************************************/
@brief
Get the status of a voltage monitor channel.

@param[in] channel
VMON channel to get status for

@return
Status of the selected VMON channel. True if channel is triggered.
@brief Get the status of a voltage monitor channel . @param [ in ] channel VMON channel to get status for @return Status of the selected VMON channel . True if channel is triggered .
bool EMU_VmonChannelStatusGet(EMU_VmonChannel_TypeDef channel)
{
  uint32_t bit;
  switch (channel) {
    case emuVmonChannel_AVDD:
      bit = _EMU_STATUS_VMONAVDD_SHIFT;
      break;
    case emuVmonChannel_ALTAVDD:
      bit = _EMU_STATUS_VMONALTAVDD_SHIFT;
      break;
    case emuVmonChannel_DVDD:
      bit = _EMU_STATUS_VMONDVDD_SHIFT;
      break;
    case emuVmonChannel_IOVDD0:
      bit = _EMU_STATUS_VMONIO0_SHIFT;
      break;
    default:
      EFM_ASSERT(false);
      bit = 0;
  }
  return BUS_RegBitRead(&EMU->STATUS, bit);
}
bool EMU_VmonChannelStatusGet ( EMU_VmonChannel_TypeDef channel ) { uint32_t bit ; switch ( channel ) { case emuVmonChannel_AVDD : bit = _EMU_STATUS_VMONAVDD_SHIFT ; break ; case emuVmonChannel_ALTAVDD : bit = _EMU_STATUS_VMONALTAVDD_SHIFT ; break ; case emuVmonChannel_DVDD : bit = _EMU_STATUS_VMONDVDD_SHIFT ; break ; case emuVmonChannel_IOVDD0 : bit = _EMU_STATUS_VMONIO0_SHIFT ; break ; default : EFM_ASSERT ( false ) ; bit = 0 ; } return BUS_RegBitRead ( & EMU -> STATUS , bit ) ; }
@brief
   Get the status of a voltage monitor channel.
@brief Get the status of a voltage monitor channel .