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

📄 gw.h

📁 这是应用SAM7X256做LonWorks网关的代码
💻 H
字号:
//{{NodeBuilder Code Wizard Start <CodeWizard Timestamp>
// Run on Fri Dec 28 21:24:20 2007, version 3.10.56
//
//}}NodeBuilder Code Wizard End

//////////////////////////////////////////////////////////////////////////////
// File: gw.H 
//
//
// Generated by NodeBuilder Code Wizard Version 3.10.56
// Copyright (c) 2001-2003 Echelon Corporation.  All rights reserved.
//                                                                                  
// ECHELON MAKES NO REPRESENTATION, WARRANTY, OR CONDITION OF
// ANY KIND, EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE OR IN
// ANY COMMUNICATION WITH YOU, INCLUDING, BUT NOT LIMITED TO,
// ANY IMPLIED WARRANTIES OF MERCHANTABILITY, SATISFACTORY
// QUALITY, FITNESS FOR ANY PARTICULAR PURPOSE, 
// NONINFRINGEMENT, AND THEIR EQUIVALENTS.
//
//
//  Written By:   
//
//	Description:
//
//	This file contains some global type and macro definitions and declarations.
//	It is recommended to place declarations of global application timers or I/O
//	objects within this file. Application timers or I/O objects that are
//	for exclusive use by a given fblock or fblock-array should be kept in the 
//	fblock-specific header file(s). 
//
//////////////////////////////////////////////////////////////////////////////

#ifndef _gw_H_
#define _gw_H_

// Configuration parameters storage. 
// Use the CP_STORAGE and CP_CONST_STORAGE macro to define the storage of configuration
// parameter in files. Note the CP template file is always considered 'const' and will 
// thus be linked into the CP_CONST_STORAGE segment.
#define CP_STORAGE far offchip eeprom
#define CP_CONST_STORAGE far offchip eeprom

// Functional blocks need to store non-volatile state variables
// Use the FBLOCK_PERSISTENT_STATUS_STORAGE and FBLOCK_STATUS_STORAGE macros to control
// linkage of these variables. You must make sure to provide a persistent location for
// FBLOCK_PERSISTENT_STATUS_STORAGE (such as 'onchip eeprom'). Persistent object status 
// information includes the enable/disable status; loosing persistency for this aspect
// might cause unexpected behavior and might cause harm or injury in conjunction with 
// physical machinery or equipment.
#define FBLOCK_PERSISTENT_STATUS_STORAGE onchip eeprom
// Some variables do not need to be saved across reset
#define FBLOCK_STATUS_STORAGE far
//
//{{NodeBuilder Code Wizard Start
// The NodeBuilder Code Wizard will add and remove code here.
// DO NOT EDIT the NodeBuilder Code Wizard generated code in these blocks 
// between {{NodeBuilder Code Wizard Start and }}NodeBuilder Code Wizard End

// <CP Access>
#define _USE_NO_CPARAMS_ACCESS
//
//<Node Description String>
//
//<External Name>
#define USE_EXTERNAL_NAME
//
//<Fblock Counts>
#define NodeObject_FBLOCK_COUNT 	1
//
//<Total Fblock Count>
#define TOTAL_FBLOCK_COUNT 	NodeObject_FBLOCK_COUNT 
//
//<Enable Changeable NV>
//
//<File List>
// Implements					Filename
// NB Device Template:			gw.nc
//								gw.h
// Common Functions:			E:\LonWorks评估项目\software\gwfiles\gw\common.h
//								E:\LonWorks评估项目\software\gwfiles\gw\common.nc
//								E:\LonWorks评估项目\software\gwfiles\gw\Filesys.h
// Node Object:					E:\LonWorks评估项目\software\gwfiles\gw\NodeObject.nc
//								E:\LonWorks评估项目\software\gwfiles\gw\NodeObject.h
//
//}}NodeBuilder Code Wizard End

// The file directory has: 
// The template file, the value file, and the constant value file by
// default.  If you add user-defined files, adjust NUM_FILES 
// accordingly. Adding user-defined files also requires the file directory
// to be updated accordingly (see filesys.nct). Please refer to
// filesys.* and filexfer.* files for more details about user-defined
// files.
#define NUM_FILES 3

//	The following code will be ignored if this Neuron C file is used
//	as a ShortStack Neuron C model file, because the expressions 
//	within the following #ifndef/#endif pair are not accepted
//	when compiling a ShortStack Neuron C model file.
// 	See www.echelon.com/shortstack for more information on the
// 	ShortStack products.

#ifndef _SHORTSTACK

// Code Wizard automatically generates an empty framework for support of
// changeable type network variables, including an empty framework for the
// get_nv_length_override system extension function (callback). 
// This callback mechanism must be enabled with the system_image_extensions
// compiler directive. The second compiler directive used here, 
// unknown_system_image_extension_isa_warning, allows for the same code
// to be build for targets that do support the callback technique (requires
// Neuron firmware version 14 or better), as well as for those that don't
// support that technique. See your NodeBuilder documentation for important
// details about changeable type network variables.

#ifdef	_HAS_CHANGEABLE_NV
#pragma system_image_extensions nv_length_override
#pragma unknown_system_image_extension_isa_warning
#endif	//	_HAS_CHANGEABLE_NV

// Code Wizard automatically calculates a recommended number of alias 
// table entries, which is larger than zero and a function of the total
// number of network variables being declared.
// Remove the "{{NodeBuilder Code Wizard Start <Alias Entries>" and
// "}}NodeBuilder Code Wizard End" tags in the lines following this 
// comment to disable that automatic calculation. Leave the related
// compiler directive (pragma) in the same place, and edit the parameter
// to that directive (the requested number of alias table entries)
// to provide your own number of alias table entries.
// Please note that a number of alias table entries MUST be given. The number
// can be zero, resulting in no support for LonWorks network variable aliases.
// It is highly recommended to support aliases, resources allowing, due to the
// benefits when incorporating the device into a network. 

//{{NodeBuilder Code Wizard Start <Alias Entries> 
#pragma num_alias_table_entries 	12
//
//}}NodeBuilder Code Wizard End

///
// If all configuration properties are implemented with 
// configuration network variables, instead of configuration
// parameters, you may choose to include FTP support for user_defined
// purpose allowing transfer of user-defined files.  You will need to 
// explicitly initialize the file directory in this case (See the 
// filesys.* and filexfer.* files for more details about user-defined
// files and the file transfer protocol). 
// #define _INCLUDE_FTP

//	Set address table size to maximum (15 entries). You may reduce the 
//	size of the address table as described in the Neuron C documentation,
//	however, it is highly recommended to maximize the size of the 
//	address table as resources allow.
#pragma num_addr_table_entries 15

#endif	// _shortstack

#endif // _gw_H_


⌨️ 快捷键说明

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