⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pingpongpio.h

📁 CIRRUS 93XX系列windows mobile 6.0 BSP
💻 H
字号:
//**********************************************************************
//                                                                      
// Filename: pingpongpio.h
//                                                                      
// Description: Contians the class information for the software (FAKE)
//              DMA.
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Use of this source code is subject to the terms of the Cirrus end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to 
// use this source code. For a copy of the EULA, please see the 
// EULA.RTF on your install media.
//
// Copyright(c) Cirrus Logic Corporation 2005, All Rights Reserved                       
//                                                                      
//**********************************************************************

#ifndef _H_PINGPONGPIO
#define _H_PINGPONGPIO

class PingPongSwDma : public PingPongDma
{
    public:
        PingPongSwDma(void);
        virtual             ~PingPongSwDma(void);


        MMRESULT Initialize
        (
			void *			pWaveDevice,
            ULONG           ulBufferSize,
            BOOL            bAC97,
            BOOL            bPlayBack
        );

        virtual MMRESULT    Start(void);
        virtual MMRESULT    Stop(void);
        virtual MMRESULT    Pause(void);
        virtual void        Flush(void);
        virtual ULONG       CurrentPosition(void);

    protected:

        static  DWORD WINAPI IST(LPVOID lpParam);
        CRITICAL_SECTION    m_Critsec;
        volatile ULONG *    m_pulDma;
        BOOL                m_bPlayBack;
        ULONG               m_ulSysIntr;
        BOOL                m_bExitThread;
        HANDLE              m_hEvent;
        HANDLE              m_hThread;
};


#endif // _H_PINGPONGPIO

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -