📄 tea5767.h
字号:
/************** Control TEA5767 102 Module *************************
Device : ATmega8
File name : tea5767.h
Description : Defines and prototypes for tea5767
Last change: 17 Jan 2008 Heway
****************************************************************************/
/*--- Avoid including this file more than once ---*/
#ifndef __TEA5767_INCLUDED
#define __TEA5767_INCLUDED
/*===========================================================================
** 1 Global constants
**===========================================================================*/
//
//
/*===========================================================================
** 2 Global macros
**===========================================================================*/
/*===========================================================================
** 3 Global variables declaration
**===========================================================================*/
/*===========================================================================
** 4. Global Functions prototype
**===========================================================================*/
//Function definitions
/*===========================================================================
** 函数: Init_Tea5767
** 功能: 初始化Tea5767
** 入口参数: 无
** 出口参数: 无
**===========================================================================*/
extern void Init_Tea5767(unsigned long);
/*===========================================================================
** 函数: Write_Data
** 功能: 写tea5767数据
** 入口参数: 需要发送的字节指针 senddata
** 出口参数: 无
**===========================================================================*/
extern unsigned char Write_5767(unsigned char * senddata);
/*===========================================================================
** 函数: Read_Data
** 功能: 读Tea5767数据
** 入口参数: 接收字节指针 recievedata
** 出口参数: 无
**===========================================================================*/
extern unsigned char Read_5767(unsigned char * recievedata);
/*===========================================================================
** 函数: Send_Byte
** 功能: 发送单个字节到Tea5767
** 入口参数: 一个字节 data
** 出口参数: 无
**===========================================================================*/
void i2c_5767_write8bit( unsigned char dat);
/*===========================================================================
** 函数: Receive_Byte
** 功能: 接收单个字节
** 入口参数: 一个字节 data
** 出口参数: 无
**===========================================================================*/
unsigned char i2c_5767_read8bit(void);
/*===========================================================================
** 函数: Send_START
** 功能: 发送开始
** 入口参数: 无
** 出口参数: 无
**===========================================================================*/
void i2c_5767_start(void);
/*===========================================================================
** 函数: i2c_5767_stop
** 功能: 结束
** 入口参数: 无
** 出口参数: 无
**===========================================================================*/
void i2c_5767_stop(void);
unsigned char i2c_5767_receive_ack(void);
void i2c_5767_send_ack();
extern unsigned long PLL_2_Freq(unsigned int PLL);
//Freq 1k
extern unsigned int Freq_2_PLL(unsigned long Freq);
extern void Set_Freq(unsigned long freq);
extern void Search_up(unsigned long freq);
extern void Search_down(unsigned long freq);
extern void Set_Mute(unsigned long freq);
#endif /* Match the re-definition guard */
/*===========================================================================
** END OF FILE
**===========================================================================*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -