资源描述:
《Neuron C Programmers Guide.pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、Neuron®CProgrammer'sGuideRevision5Corporation078-0002-01EEchelon,LNS,LonBuilder,LonManager,LonMaker,LonTalk,LONWORKS,Neuron,NodeBuilder,3120,3150,andtheEchelonlogoaretrademarksofEchelonCorporationregisteredintheUnitedStatesandothercountries.LONMARKandShortStackaretrademarks
2、ofEchelonCorporation.TouchMemoryisatrademarkoftheDallasSemiconductorCorp.Otherbrandandproductnamesaretrademarksorregisteredtrademarksoftheirrespectiveholders.®NeuronChips,SerialLonTalkAdapters,andotherOEMProductswerenotdesignedforuseinequipmentorsystemswhichinvolvedangertoh
3、umanhealthorsafetyorariskofpropertydamageandEchelonassumesnoresponsibilityorliabilityforuseoftheseproductsinsuchapplications.PartsmanufacturedbyvendorsotherthanEchelonandreferencedinthisdocumenthavebeendescribedforillustrativepurposesonly,andmaynothavebeentestedbyEchelon.It
4、istheresponsibilityofthecustomertodeterminethesuitabilityofthesepartsforeachapplication.ECHELONMAKESNOREPRESENTATION,WARRANTY,ORCONDITIONOFANYKIND,EXPRESS,IMPLIED,STATUTORY,OROTHERWISEORINANYCOMMUNICATIONWITHYOU,INCLUDING,BUTNOTLIMITEDTO,ANYIMPLIEDWARRANTIESOFMERCHANTABILIT
5、Y,SATISFACTORYQUALITY,FITNESSFORANYPARTICULARPURPOSE,NONINFRINGEMENT,ANDTHEIREQUIVALENTS.Nopartofthispublicationmaybereproduced,storedinaretrievalsystem,ortransmitted,inanyformorbyanymeans,electronic,mechanical,photocopying,recording,orotherwise,withoutthepriorwrittenpermis
6、sionofEchelonCorporation.DocumentNo.29300PrintedintheUnitedStatesofAmerica.Copyright©1990-2001byEchelonCorporationEchelonCorporation550MeridianAvenueSanJose,CA.USA95126www.echelon.comiiPrefacePrefaceThismanualdescribeshowtowriteprogramsusingthe®NeuronClanguage.NeuronCisapro
7、gramminglanguagebasedonANSICthatisdesignedforNeuronChipsandSmartTransceivers.Itincludesnetworkcommunication,I/O,andevent-handlingextensionstoANSIC,whichmakeita®powerfultoolforthedevelopmentofLONWORKSapplications.KeyconceptsinprogrammingwithNeuronCareexplainedthroughtheuseof
8、specificcodeexamplesanddiagrams.AgeneralmethodologyfordesigningandimplementingaLON