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

📄 func_auto_configuration_detection.h

📁 2.4G无线音箱的接收程序,采用ATMEGA8单片机和STS公司的无线模块完成
💻 H
字号:
/******************************************************************************
*
* Purpose:      Automatic Configuration Detection Functions
*
* Creator:      Rob Lansbergen
*
* Version:		$Revision: 2 $
*
* File Name:	$Workfile: Func_Auto_Configuration_Detection.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.                  
* 2007 Wireless Sound Solutions. All rights reserved. Wireless Sound Solutions
* STS and STS-wireless are trademarks of Wireless Sound Solutions.        
******************************************************************************/


#ifndef AUTO_CONFIGURATION_FUNC_H
#define AUTO_CONFIGURATION_FUNC_H

/* Loacal Data */
/*
 * MU Change Application Message
 * Byte 1  : 0x70
 * Byte 2  : Use_Application
 * Byte 16 : Checksum.
 */
#define MSG_TYPE_APPLICATION_CHANGE_REQ 0x70 

extern unsigned char Auto_Configuration_State;
extern volatile unsigned int AutoConfig_NoSync_Delay_Cntr;		
extern volatile unsigned char AutoConfig_InSync_Leadtime;	
extern volatile unsigned char AutoConfig_PDDC_Disable_Cntr;	

void Handle_Auto_Config_Detection_MainLoop(void);
void Handle_MU_Change_Config_RXMsg(void);

#define Init_Process 			0
#define InSync_Leadtime		1
#define Sync_State			2
#define Debounce_Sync		3
#define Auto_Config_Check	4

#define CONFIG_SCAN_TIME_300MS 		30
#define LOW_POWER_SEARCH_60SEC 		60
#define CONFIG_SCAN_TIME_5SEC 			500

#endif/*AUTO_CONFIGURATION_FUNC_H*/

⌨️ 快捷键说明

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