📄 lm4548.h
字号:
// LM4548.h: interface for the CLM4548 class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_LM4548_H__D83C6B8F_79AC_48E0_93AB_483A7721F189__INCLUDED_)
#define AFX_LM4548_H__D83C6B8F_79AC_48E0_93AB_483A7721F189__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "AC97Codec.h"
// vendor IDs for the LM4548
static const LM4548_ID1 = 0x4E53;
static const LM4548_ID2 = 0x4300;
// Codec specific registers
#define LM4548_GENERAL_PURPOSE 0x20
#define LM4548_MODEM_RATE 0x24
#define LM4548_POWERDOWN_CTRL_STAT 0x26
#define LM4548_EXT_AUDIO_CTRL_STAT 0x2A
#define LM4548_PCM_FRONT_DAC_RATE 0x2C
#define LM4548_PCM_LR_ADC_RATE 0x32
class CLM4548 : public CAC97Codec
{
public:
CLM4548(CCX5530Audio *pController);
virtual ~CLM4548();
virtual bool Reset(void);
virtual bool SetSampleRate(bool bInput, DWORD dwFrequency);
static bool QueryIDs(WORD wID1, WORD wID2){ return wID1 == LM4548_ID1 && wID2 == LM4548_ID2;}
};
#endif // !defined(AFX_LM4548_H__D83C6B8F_79AC_48E0_93AB_483A7721F189__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -