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

📄 defines.h

📁 2.4G无线音箱的接收程序,采用ATMEGA8单片机和STS公司的无线模块完成
💻 H
字号:
/******************************************************************************
*
* Purpose:      defines.h
*
* Creator:      Rob Lansbergen
*
* Version:		$Revision: 15 $
*
* File Name:	$Workfile: defines.h $
*
* Author:		Rob Lansbergen
*
* Check in:		$Author: Chong.cheeleong $
*
* The information is provided 揳s is?without any express or implied warranty
* of any kind, * including warranties of merchantability, noninfringement of
* intellectual property, or fitness for any particular purpose. In no event sha
* Wireless Sound Solutions and/or its affiliate companies, or its suppliers be
* liable for any damages whatsoever arising out of the use of or inability to
* use the information or the materials. Wireless Sound Solutions, its affiliate
* companies, and its suppliers further do not warrant the accuracy or
* completeness of information, text, graphics, or other items contained within
* materials. Wireless Sound Solutions, Inc., may make changes to materials, or
* the products described within, at any time, without notice.
* ?007 Wireless Sound Solutions. All rights reserved. Wireless Sound Solutions
* STS and STS-wireless are trademarks of Wireless Sound Solutions.
******************************************************************************/
#ifndef APPL_DEFINES_H
#define APPL_DEFINES_H


/*
 * GENERAL APPLICATION INCLUDE FILES
 */
#include "Application_defines.h"
#include "Address_Map_80.h"
#include "MCU_Reg_Init_Def.h"
#include "iic.h"
#include "codecs.h"
#include "putchar.h"
#include "main_func.h"
#include "DARR80_Func.h"
#include "DARR_Data_Msg_easy.h"
#include "continuous_TX_RX_80.h"
#include "Func_Volume.h"
#include "Func_Connect.h"
#include "Func_MU_CU_Swap.h"
#include "Func_ABCD_Flip.h"
#include "Func_Auto_NAMG.h"
#include "Func_Own_WLAN_Detection.h"
#include "Func_Auto_Configuration_Detection.h"	
//#include "Func_LCD.h"

/*
** GENERAL DEFINES
** ---------------
*/

#define TRUE  1
#define FALSE 0

#define I2C_SLAVE_ADDRESS 0x80

#define ACK	 0
#define NACK 1

#define STR_A	 0
#define STR_B	 1
#define STR_C	 2
#define STR_D	 3
#define STR_FREE 0x80 + 3

#define MASTER 1
#define SLAVE  0

/* Type for Data FSM */
#define MSG_TYPE_WRITE_WITHOUT_ACK 0x10
#define MSG_TYPE_WRITE_WITH_ACK	   0x20
#define MSG_TYPE_READ		   	   0x30

/* Timing Defines */
#define TIME_100_MSEC   10
#define TIME_200_MSEC   20
#define TIME_400_MSEC   40
#define TIME_1_SEC	   100
#define TIME_5_SEC	   500
#define TIME_10_SEC	  1000
#define TIME_20_SEC	  2000
#define TIME_60_SEC	  6000

/* Application Type Defines */
#define APPL_TYPE_CONFERENCE 0x00
#define APPL_TYPE_HEADSET	 0x01
#define APPL_TYPE_MICROPHONE 0x02
#define APPL_TYPE_NACK 		 0x04
#define APPL_TYPE_NACK_ST 	 0x07
#define APPL_TYPE_CONT		 0x09
#define APPL_TYPE_ACK 		 0x0D

/* Other Defines */
#define TX_CONTINUOUS_INDEX 0x06
#define NAMG_DEFAULT 	    0x75 /* range 0x70 - 0x7F */

#endif   /* APPL_DEFINES_H */

⌨️ 快捷键说明

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