?? codec.h
字號(hào):
//****************************************************************************
//
// Copyright (C) SEIKO EPSON CORP. 2007
//
// File name: codec.h
// This is codec CS42L51 calls head file
//
// Revision history
// 2008.03.06 1st version
//
//****************************************************************************
#ifndef DRV_CODEC_H
#define DRV_CODEC_H
#include "c33l17.h"
#ifdef EVENT_ON
#include "evt.h"
#include "system.h"
#endif
//-------------------------------------------------------
// macro declaration
//-------------------------------------------------------
//#define CODEC_HWMODE
#define CODEC_DMAXFER
#define CODEC_ISRUN (1L)
#define CODEC_ENDOP (2L)
#define SAMPLE_8KHZ (0L)
#define SAMPLE_16KHZ (1L)
#define SAMPLE_24KHZ (2L)
#define SAMPLE_32KHZ (3L)
#define SAMPLE_44KHZ (4L)
//-------------------------------------------------------
// control IO declaration
//-------------------------------------------------------
#define CODEC_CS PD(8, 5)
#define CODEC_RST PD(3, 3)
#define CODEC_CS_L CODEC_CS =0
#define CODEC_CS_H CODEC_CS =1
#define CODEC_RST_L CODEC_RST =0
#define CODEC_RST_H CODEC_RST =1
#define CHIP_ADDR (0x94)
#define CHIP_WR (CHIP_ADDR | 0)
#define CHIP_RD (CHIP_ADDR | 1)
//-------------------------------------------------------
// function declaration
//-------------------------------------------------------
extern void codec_SampleRate(unsigned int ulRate);
extern int codec_ChkState(void);
extern void codec_Out(unsigned int ulSampleRate, unsigned short *pucData,
unsigned int ulLen);
extern void codec_StartOut(unsigned short *pucData, unsigned int ulLen);
extern void codec_StopOut(void);
extern void codec_In(unsigned int ulSampleRate, unsigned short *pucData,
unsigned int ulLen);
extern void codec_StartIn(unsigned short *pucData, unsigned int ulLen);
extern void codec_StopIn(void);
#endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -