📄 fm5767.h
字号:
/****************************************************************************
* Copyright(C) All rights Reserved. *
* Compiler : TI Code Composer OMAP 2.1 *
* FileName : FM5767.h *
* Description : Device driver for FM Module *
* Author : Daniel Lin *
* Revision History: *
* 2004/04/02 : First Coding *
****************************************************************************/
#ifndef __FM5767_H__
#define __FM5767_H__
/*--------------------------------------------------------------------------*
* Include Files *
*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*
* External Dependancies *
*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*
* Const, Macro, type definition *
*--------------------------------------------------------------------------*/
#define FM_I2C_ID 0xC0 /* FM Module I2C Write Address */
/*--------------------------------------------------------------------------*
* External Functions *
*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*
* External Variables *
*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*
* Global Functions *
*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*
* Global Variables *
*--------------------------------------------------------------------------*/
typedef char CHAR;
typedef unsigned char UCHAR;
typedef int INT;
typedef unsigned int UINT;
typedef short SHORT;
typedef unsigned short USHORT;
typedef long LONG;
typedef unsigned long ULONG;
/*--------------------------------------------------------------------------*
* Local Variables Declartaion *
*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*
* FM Module register status *
*---------------------------------------------------------------------------*
* Write Byte *
*--------------------------------------------------------------------------*/
#define DEV_FM_Not_Mute 0 /* normal output or mute */
#define DEV_FM_Mute 1
#define DEV_FM_Not_Search 0 /* in search mode or not */
#define DEV_FM_Now_Search 1
#define DEV_FM_Search_Down 0 /* search up / down */
#define DEV_FM_Search_Up 1
#define DEV_FM_Search_All_Level 0 /* search stop level */
#define DEV_FM_Search_Low_Level 1
#define DEV_FM_Search_Mid_Level 2
#define DEV_FM_Search_High_Level 3
#define DEV_FM_Low_Side 0 /* low / high side injection */
#define DEV_FM_High_Side 1
#define DEV_FM_Stereo 0 /* stereo / forced mono */
#define DEV_FM_Set_Mono 1
#define DEV_FM_Out_Right 0 /* right output / mute */
#define DEV_FM_Mute_Right 1
#define DEV_FM_Out_Left 0 /* left output / mute */
#define DEV_FM_Mute_Left 1
#define DEV_FM_SWP1_Low 0 /* port1 low */
#define DEV_FM_SWP1_High 1 /* port1 high */
#define DEV_FM_SWP2_Low 0 /* port2 low */
#define DEV_FM_SWP2_High 1 /* port2 high */
#define DEV_FM_Not_Standby 0 /* in standby mode or not */
#define DEV_FM_Now_Standby 1
#define DEV_FM_US_EU_Band 0 /* US/EU band limits */
#define DEV_FM_Japan_Band 1 /* Japan band limits */
#define DEV_FM_XTAL_13M 0 /* Xtal = 13M Hz */
#define DEV_FM_XTAL_32768 1 /* XTAL = 32.678k Hz */
#define DEV_FM_SMute_Off 0 /* soft mute or not */
#define DEV_FM_SMute_On 1
#define DEV_FM_HCC_Off 0 /* high cut control on / off */
#define DEV_FM_HCC_On 1
#define DEV_FM_SNC_Off 0 /* stereo noise cancelling on / off */
#define DEV_FM_SNC_On 1
#define DEV_FM_SI_Port 0 /* SW1 is software programmable port1 */
#define DEV_FM_SI_Flag 1 /* SW1 is output for ready flag */
#define DEV_FM_PLLREF_Off 0 /* reference for PLL on / off */
#define DEV_FM_PLLREF_On 1
#define DEV_FM_DTC_50us 0 /* De-emphasis time constant 50us */
#define DEV_FM_DTC_75us 1 /* De-emphasis time constant 75us */
/*--------------------------------------------------------------------------*
* Read Byte *
*--------------------------------------------------------------------------*/
#define DEV_FM_RF_Low 0 /* Read flag 0 = no station has been found */
#define DEV_FM_RF_High 1 /* Read flag 1 = station has been found or */
#define DEV_FM_BLF_Low 0 /* band limits has no been reached */
#define DEV_FM_BLF_High 1 /* band limits has been reached */
#define DEV_FM_Recv_Mono 0 /* mono reception */
#define DEV_FM_Recv_Stereo 1 /* stereo reception */
/*--------------------------------------------------------------------------*
* Else *
*--------------------------------------------------------------------------*/
#define DEV_FM_PLL_Ref_65_Dis 0 /* 6.5 MHz reference not enabled */
#define DEV_FM_PLL_Ref_65_En 1 /* 6.5 MHz reference for PLL enabled */
/*--------------------------------------------------------------------------*
* Code *
*--------------------------------------------------------------------------*/
#endif // __FM5767_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -