Exemplo n.º 1
0
/*******************************************************************************
* Function Name: WaveDAC8_1_Wakeup
********************************************************************************
*
* Summary:
*  Restores the component configuration. Should be called
*  just after awaking from sleep.
*  
* Parameters:  
*  None
*
* Return: 
*  void
*
* Global variables:
*  WaveDAC8_1_backup:  The structure field 'enableState' is used to 
*  restore the enable state of block after wakeup from sleep mode.
*
* Reentrant:
*  No
*
*******************************************************************************/
void WaveDAC8_1_Wakeup(void) 
{
	WaveDAC8_1_RestoreConfig();

	if(WaveDAC8_1_backup.enableState == 1u)
	{
		WaveDAC8_1_Enable();
	}
}
Exemplo n.º 2
0
/*******************************************************************************
* Function Name: WaveDAC8_1_Start
********************************************************************************
*
* Summary:
*  The start function initializes the voltage DAC with the default values,
*  and sets the power to the given level.  A power level of 0, is the same as
*  executing the stop function.
*
* Parameters:
*  None
*
* Return:
*  None
*
* Reentrant:
*  No
*
*******************************************************************************/
void WaveDAC8_1_Start(void)
{
    /* If not Initialized then initialize all required hardware and software */
    if(WaveDAC8_1_initVar == 0u)
    {
        WaveDAC8_1_Init();
        WaveDAC8_1_initVar = 1u;
    }

    WaveDAC8_1_Enable();
}