📄 nodeobject.h
字号:
//{{NodeBuilder Code Wizard Start <CodeWizard Timestamp>
// Run on Fri Dec 28 21:24:20 2007, version 3.10.56
//
//}}NodeBuilder Code Wizard End
#ifndef _LP_NODE_H
#define _LP_NODE_H
//////////////////////////////////////////////////////////////////
// File: NodeObject.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: NodeBuilder Code Wizard
//
// Description: Node Object functions header file
// This file contains type and macro definitions as well as variable
// and prototype declarations that are associated with the node object
// within this device.
// This file also contains the prototype for the node object's director
// function, which itself is defined in NodeObject.nc (please see there
// for details).
//
//////////////////////////////////////////////////////////////////
#include "common.h"
//{{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
//<Include Enum Type Headers>
#include <snvt_rq.h>
#include <snvt_rvu.h>
//
//<Forward FBDirector>
extern void NodeObjectDirector(unsigned uFblockIndex, int nCommand);
//
//<Fblock CP Family Declarations>
//
//<Fblock Input NV Declarations>
network input SNVT_obj_request nviRequest;
network input SNVT_temp_f nviTemp;
network input SNVT_reg_val nviLevel;
network input SNVT_switch nviPumpSts;
network input SNVT_switch nviHeatSts;
//
//<Fblock Output NV Declarations>
network output sync SNVT_obj_status nvoStatus;
network output SNVT_switch nvoPumpCtl;
network output SNVT_switch nvoHeatCtl;
//
//<Fblock Declaration>
fblock SFPTnodeObject {
nviRequest implements nviRequest;
nvoStatus implements nvoStatus;
nviTemp implementation_specific (1) nviImpTempF;
nviLevel implementation_specific (2) nviImpRegVal;
nviPumpSts implementation_specific (3) nviImpSwitch;
nviHeatSts implementation_specific (4) nviImpSwitch1;
nvoPumpCtl implementation_specific (5) nviImpSwitch2;
nvoHeatCtl implementation_specific (6) nviImpSwitch3;
director NodeObjectDirector;
} NodeObject
#ifdef USE_EXTERNAL_NAME
external_name("NodeObject")
#endif
;
//
//<NodeObjIndex Variable>
#define NODEOBJ_INDEX (NodeObject::global_index)
//
//<NodeObjRequest Variable>
#define NBCW_NODE_REQUEST nviRequest
//
//<NodeObjStatus Variable>
#define NBCW_NODE_STATUS nvoStatus
//
//}}NodeBuilder Code Wizard End
#define getObjStatus(fblockIndex) (&fblockData[fblockIndex].objectStatus)
#define fblockFailSelftest(fblockIndex) (fblockData[fblockIndex].objectStatus.fail_self_test)
#define fblockOverrange(fblockIndex) (fblockData[fblockIndex].objectStatus.over_range)
#define fblockUnderrange(fblockIndex) (fblockData[fblockIndex].objectStatus.under_range)
#define fblockLockedOut(fblockIndex) (fblockData[fblockIndex].objectStatus.locked_out)
extern const SNVT_obj_status NodeObjectReportMask;
//
#endif // _LP_NODE_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -