emlib/src/em_vdac.c
void VDAC_ChannelOutputSet(VDAC_TypeDef *vdac,
                           unsigned int channel,
                           uint32_t value)
{
  switch (channel) {
    case 0:
      VDAC_Channel0OutputSet(vdac, value);
      break;
    case 1:
      VDAC_Channel1OutputSet(vdac, value);
      break;
    default:
      EFM_ASSERT(0);
      break;
  }
}
/***************************************************************************/
/**
 * @brief
 *   Set the output signal of a VDAC channel to a given value.
 *
 * @details
 *   This function sets the output signal of a VDAC channel by writing @p value
 *   to the corresponding CHnDATA register.
 *
 * @param[in] vdac
 *   Pointer to VDAC peripheral register block.
 *
 * @param[in] channel
 *   Channel number to set output of.
 *
 * @param[in] value
 *   Value to write to the channel output register CHnDATA.
 ******************************************************************************/
@brief
Set the output signal of a VDAC channel to a given value.

@details
This function sets the output signal of a VDAC channel by writing @p value
to the corresponding CHnDATA register.

@param[in] vdac
Pointer to VDAC peripheral register block.

@param[in] channel
Channel number to set output of.

@param[in] value
Value to write to the channel output register CHnDATA.
@brief Set the output signal of a VDAC channel to a given value . @details This function sets the output signal of a VDAC channel by writing @p value to the corresponding CHnDATA register . @param [ in ] vdac Pointer to VDAC peripheral register block . @param [ in ] channel Channel number to set output of . @param [ in ] value Value to write to the channel output register CHnDATA .
void VDAC_ChannelOutputSet(VDAC_TypeDef *vdac,
                           unsigned int channel,
                           uint32_t value)
{
  switch (channel) {
    case 0:
      VDAC_Channel0OutputSet(vdac, value);
      break;
    case 1:
      VDAC_Channel1OutputSet(vdac, value);
      break;
    default:
      EFM_ASSERT(0);
      break;
  }
}
void VDAC_ChannelOutputSet ( VDAC_TypeDef * vdac , unsigned int channel , uint32_t value ) { switch ( channel ) { case 0 : VDAC_Channel0OutputSet ( vdac , value ) ; break ; case 1 : VDAC_Channel1OutputSet ( vdac , value ) ; break ; default : EFM_ASSERT ( 0 ) ; break ; } }
@brief
   Set the output signal of a VDAC channel to a given value.
@brief Set the output signal of a VDAC channel to a given value .