1// **************************************************************************** 2// 3// CEchoGals_power.cpp 4// 5// Power management functions for the CEchoGals driver class. 6// Set editor tabs to 3 for your viewing pleasure. 7// 8// ---------------------------------------------------------------------------- 9// 10// This file is part of Echo Digital Audio's generic driver library. 11// Copyright Echo Digital Audio Corporation (c) 1998 - 2005 12// All rights reserved 13// www.echoaudio.com 14// 15// This library is free software; you can redistribute it and/or 16// modify it under the terms of the GNU Lesser General Public 17// License as published by the Free Software Foundation; either 18// version 2.1 of the License, or (at your option) any later version. 19// 20// This library is distributed in the hope that it will be useful, 21// but WITHOUT ANY WARRANTY; without even the implied warranty of 22// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 23// Lesser General Public License for more details. 24// 25// You should have received a copy of the GNU Lesser General Public 26// License along with this library; if not, write to the Free Software 27// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 28// 29// **************************************************************************** 30 31#include "CEchoGals.h" 32 33 34//=========================================================================== 35// 36// Tell the hardware to go into a low-power state - the converters are 37// shut off and the DSP powers down. 38// 39//=========================================================================== 40 41ECHOSTATUS CEchoGals::GoComatose() 42{ 43 // 44 // Pass the call through to the DSP comm object 45 // 46 return GetDspCommObject()->GoComatose(); 47 48} // GoComatose 49 50 51//=========================================================================== 52// 53// Tell the hardware to wake up - go back to the full-power state 54// 55// You can call WakeUp() if you just want to be sure 56// that the firmware is loaded OK 57// 58//=========================================================================== 59 60ECHOSTATUS CEchoGals::WakeUp() 61{ 62 // 63 // Load the firmware 64 // 65 ECHOSTATUS Status; 66 CDspCommObject *pDCO = GetDspCommObject(); 67 68 Status = pDCO->LoadFirmware(); 69 70 return Status; 71 72 73} // WakeUp 74 75 76