text: /*******************************************************************************
  * File Name: Data_Reg_C_PM.c
  * Version 1.80
  *
  * Description:
  *  This file contains the setup, control, and status commands to support 
  *  the component operation in the low power mode. 
  *
  * Note:
  *
  ********************************************************************************
  * Copyright 2015, Cypress Semiconductor Corporation.  All rights reserved.
  * You may use this file only in accordance with the license, terms, conditions, 
  * disclaimers, and limitations in the end user license agreement accompanying 
  * the software package with which this file was provided.
  *******************************************************************************/
  
  #include "Data_Reg_C.h"
  
  /* Check for removal by optimization */
  #if !defined(Data_Reg_C_Sync_ctrl_reg__REMOVED)
  
  static Data_Reg_C_BACKUP_STRUCT  Data_Reg_C_backup = {0u};
  
      
  /*******************************************************************************
  * Function Name: Data_Reg_C_SaveConfig
  ********************************************************************************
  *
  * Summary:
  *  Saves the control register value.
  *
  * Parameters:
  *  None
  *
  * Return:
  *  None
  *
  *******************************************************************************/
  void Data_Reg_C_SaveConfig(void) 
  {
      Data_Reg_C_backup.controlState = Data_Reg_C_Control;
  }
  
  
  /*******************************************************************************
  * Function Name: Data_Reg_C_RestoreConfig
  ********************************************************************************
  *
  * Summary:
  *  Restores the control register value.
  *
  * Parameters:
  *  None
  *
  * Return:
  *  None
  *
  *
  *******************************************************************************/
  void Data_Reg_C_RestoreConfig(void) 
  {
       Data_Reg_C_Control = Data_Reg_C_backup.controlState;
  }
  
  
  /*******************************************************************************
  * Function Name: Data_Reg_C_Sleep
  ********************************************************************************
  *
  * Summary:
  *  Prepares the component for entering the low power mode.
  *
  * Parameters:
  *  None
  *
  * Return:
  *  None
  *
  *******************************************************************************/
  void Data_Reg_C_Sleep(void) 
  {
      Data_Reg_C_SaveConfig();
  }
  
  
  /*******************************************************************************
  * Function Name: Data_Reg_C_Wakeup
  ********************************************************************************
  *
  * Summary:
  *  Restores the component after waking up from the low power mode.
  *
  * Parameters:
  *  None
  *
  * Return:
  *  None
  *
  *******************************************************************************/
  void Data_Reg_C_Wakeup(void)  
  {
      Data_Reg_C_RestoreConfig();
  }
  
  #endif /* End check for removal by optimization */
  
  
  /* [] END OF FILE */
  