园林灌溉节水系统的设计_第1页
园林灌溉节水系统的设计_第2页
园林灌溉节水系统的设计_第3页
园林灌溉节水系统的设计_第4页
园林灌溉节水系统的设计_第5页
已阅读5页,还剩64页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

摘要 ---44-参考文献李冬冬,张立新,李春志,等.基于PLC控制的棉田水肥一体化控制系统设计[J].农机化研究,2021,43(6):5.王文婷,翟国亮,郭二旺,等.水肥一体化智能灌溉系统组成与设计[J].河南水利与南水北调,2021.安帅霖、韩子鑫、张明宇、孙鸿、杨晶.智能灌溉施肥水肥决策系统设计与应用效果分析[J].农业开发与装备,2020(11):2.王振民.温室水肥一体化灌溉控制系统的设计与应用[D].黑龙江八一农垦大学,2020.吴小李.基于云技术的水肥一体机控制系统设计思路[J].农业工程技术,2023,43(11):19-21.张守艳宗峰.基于物联网技术的水肥一体化智能灌溉系统设计[J].电子测试,2022,36(19):30-32.钟峰,唐东成.基于ZigBee的水肥一体化智能灌溉系统设计[J].南方农机,2020,51(22):2.李继学,李家春.水肥一体化远程自动控制系统设计及试验[J].农机化研究,2021.宋晨媛.基于LabVIEW的水肥一体机控制系统设计[J].农机化研究,2021.DOI:10.3969/j.issn.1003-188X.2021.11.027.李爽、崔翀翔、陈奕萌、缪宏、胡小琴、徐杰、杨铮.温室水肥一体化智能灌溉管控装置设计[J].农业装备技术,2020,46(5):2.杨亚男,袁英.智能灌溉控制系统的设计[J].科技资讯,2023,21(4):93-96.汪明霞,梁冰,侯礼婷,等.基于卫星遥感的水肥一体智能灌溉系统及其控制方法:CN202210052058.5[P].CN202210052058.5[2024-03-19].李贺,张立新,郭天圣,等.基于物联网的棉田节水灌溉自动控制系统设计[J].农机化研究,2024(5):66-71.王化琴,施国英,李天华,等.基于云平台的设施水肥一体化控制系统设计与实现[J].山东农业大学学报:自然科学版,2023,54(1):98-103.孙鸿、王婧、安帅霖、韩子鑫.浅谈智能灌溉施肥系统设计及应用[J].农业开发与装备,2020(11):2.张雪媛,张立新,娄晓康,等.基于物联网的棉田智慧灌溉系统的设计[J].农机化研究,2022,44(7):7.吴海龙,陶君怡,王璐.水肥一体化灌溉监控系统设计与应用[J].科技创新与应用,2021,11(12):3.陈胜萍.番茄水肥区域化智能灌溉系统:CN210247520U[2024-03-19].YangZ,OkiLR,SisnerozJA,etal.Effectoflandscapeirrigationregulationsonrunoffvolumefromlow-densityresidentialcatchmentsduringtwoCaliforniadroughts[J].Heliyon,2024,10(1).RestucciaR.Howartificialintelligencewillinfluencelandscapeirrigation[J].LandscapeManagement,2024(2):63.谢辞附录谢辞时光飞逝,大学生活即将结束,四年的学习生活使我受益匪浅。刚踏入大学的我,对好多有趣的课程充满兴趣。任课老师的讲课细心,实习也圆满结束,论文即将完成之际,我要向所有给予我支持、帮忙和鼓励的人表示我最诚挚的谢意。我要感谢我的指导老师张洪斌老师对我的教导。从论文的选题、构思、撰写到最终的定稿,张洪斌老师都给了我悉心的指导和热情的帮忙,使我的毕业论文能够顺利的完成。张洪斌老师对工作的认真态度,对学术的钻研精神和严谨的学风,对学生无限的关心都是值得我终生学习的。我还要感谢四年以来陪伴在我身边的朋友、宿友,感谢他们四年以来对我的支持,写论文的时候他们为我提出的有意的建议和看法,有了他们的鼓励和帮助,这四年以来因为有他们我才能充实的度过了四年的学习生活。最后感谢培养长大我的父母,感谢你们对我的养育之恩,谢谢你们在我求学生涯中给与我无微不至的信任和照顾,在我的学业和生活中一如既往地支持我、鼓励我,谢谢你们。毕业在即,在今后的工作和生活中,我会铭记师长们的教诲,继续不懈努力和进步,来报答父母和国家。附录附录A

附录B#ifndefMAC_API_H#defineMAC_API_H#ifdef__cplusplusextern"C"{#endif/**Includes**/#include"hal_types.h"#include"saddr.h"#include"sdata.h"/**Constants**//*Status*/#defineMAC_SUCCESS0x00/*Operationsuccessful*/#defineMAC_AUTOACK_PENDING_ALL_ON0xFE/*TheAUTOPENDpendingallisturnedon*/#defineMAC_AUTOACK_PENDING_ALL_OFF0xFF/*TheAUTOPENDpendingallisturnedoff*/#defineMAC_BEACON_LOSS0xE0/*Thebeaconwaslostfollowingasynchronizationrequest*/#defineMAC_CHANNEL_ACCESS_FAILURE0xE1/*Theoperationordatarequestfailedbecauseofactivityonthechannel*/#defineMAC_COUNTER_ERROR0xDB/*Theframecounterpuportedlyappliedbytheoriginatorofthereceivedframeisinvalid*/#defineMAC_DENIED0xE2/*TheMACwasnotabletoenterlowpowermode.*/#defineMAC_DISABLE_TRX_FAILURE0xE3/*Unused*/#defineMAC_FRAME_TOO_LONG0xE5/*ThereceivedframeorframeresultingfromanoperationordatarequestistoolongtobeprocessedbytheMAC*/#defineMAC_IMPROPER_KEY_TYPE0xDC/*Thekeypurportedlyappliedbytheoriginatorofthereceivedframeisnotallowed*/#defineMAC_IMPROPER_SECURITY_LEVEL0xDD/*Thesecuritylevelpurportedlyappliedbytheoriginatorofthereceivedframedoesnotmeettheminimumsecuritylevel*/#defineMAC_INVALID_ADDRESS0xF5/*Thedatarequestfailedbecauseneitherthesourceaddressnordestinationaddressparameterswerepresent*/#defineMAC_INVALID_GTS0xE6/*Unused*/#defineMAC_INVALID_HANDLE0xE7/*Thepurgerequestcontainedaninvalidhandle*/#defineMAC_INVALID_INDEX0xF9/*Unused*/#defineMAC_INVALID_PARAMETER0xE8/*TheAPIfunctionparameterisoutofrange*/#defineMAC_LIMIT_REACHED0xFA/*ThescanterminatedbecausethePANdescriptorstoragelimitwasreached*/#defineMAC_NO_ACK0xE9/*Theoperationordatarequestfailedbecausenoacknowledgementwasreceived*/#defineMAC_NO_BEACON0xEA/*Thescanrequestfailedbecausenobeaconswerereceivedortheorphanscanfailedbecausenocoordinatorrealignmentwasreceived*/#defineMAC_NO_DATA0xEB/*Theassociaterequestfailedbecausenoassociateresponsewasreceivedorthepollrequestdidnotreturnanydata*/#defineMAC_NO_SHORT_ADDRESS0xEC/*Theshortaddressparameterofthestartrequestwasinvalid*/#defineMAC_ON_TIME_TOO_LONG0xF6/*Unused*/#defineMAC_OUT_OF_CAP0xED/*Unused*/#defineMAC_PAN_ID_CONFLICT0xEE/*APANidentifierconflicthasbeendetectedandcommunicatedtothePANcoordinator*/#defineMAC_PAST_TIME0xF7/*Unused*/#defineMAC_READ_ONLY0xFB/*Asetrequestwasissuedwitharead-onlyidentifier*/#defineMAC_REALIGNMENT0xEF/*Acoordinatorrealignmentcommandhasbeenreceived*/#defineMAC_SCAN_IN_PROGRESS0xFC/*Thescanrequestfailedbecauseascanisalreadyinprogress*/#defineMAC_SECURITY_ERROR0xE4/*Cryptographicprocessingofthereceivedsecureframefailed*/#defineMAC_SUPERFRAME_OVERLAP0xFD/*Thebeaconstarttimeoverlappedthecoordinatortransmissiontime*/#defineMAC_TRACKING_OFF0xF8/*Thestartrequestfailedbecausethedeviceisnottrackingthebeaconofitscoordinator*/#defineMAC_TRANSACTION_EXPIRED0xF0/*Theassociateresponse,disassociaterequest,orindirectdatatransmissionfailedbecausethepeerdevicedidnotrespondbeforethetransactionexpiredorwaspurged*/#defineMAC_TRANSACTION_OVERFLOW0xF1/*TherequestfailedbecauseMACdatabuffersarefull*/#defineMAC_TX_ACTIVE0xF2/*Unused*/#defineMAC_UNAVAILABLE_KEY0xF3/*Theoperationordatarequestfailedbecausethesecuritykeyisnotavailable*/#defineMAC_UNSUPPORTED_ATTRIBUTE0xF4/*Thesetorgetrequestfailedbecausetheattributeisnotsupported*/#defineMAC_UNSUPPORTED_LEGACY0xDE/*Thereceivedframewassecuredwithlegacysecuritywhichisnotsupported*/#defineMAC_UNSUPPORTED_SECURITY0xDF/*Thesecurityofthereceivedframeisnotsupported*/#defineMAC_UNSUPPORTED0x18/*Theoperationisnotsupportedinthecurrentconfiguration*/#defineMAC_BAD_STATE0x19/*Theoperationcouldnotbeperformedinthecurrentstate*/#defineMAC_NO_RESOURCES0x1A/*Theoperationcouldnotbecompletedbecausenomemoryresourceswereavailable*/#defineMAC_ACK_PENDING0x1B/*Forinternaluseonly*/#defineMAC_NO_TIME0x1C/*Forinternaluseonly*/#defineMAC_TX_ABORTED0x1D/*Forinternaluseonly*/#defineMAC_DUPLICATED_ENTRY0x1E/*Forinternaluseonly-Aduplicatedentryisaddedtothesourcematchingtable*//*MACSecurityLevel*/#defineMAC_SEC_LEVEL_NONE0x00/*Nosecurityisused*/#defineMAC_SEC_LEVEL_MIC_320x01/*MIC-32authenticationisused*/#defineMAC_SEC_LEVEL_MIC_640x02/*MIC-64authenticationisused*/#defineMAC_SEC_LEVEL_MIC_1280x03/*MIC-128authenticationisused*/#defineMAC_SEC_LEVEL_ENC0x04/*AESencryptionisused*/#defineMAC_SEC_LEVEL_ENC_MIC_320x05/*AESencryptionandMIC-32authenticationareused*/#defineMAC_SEC_LEVEL_ENC_MIC_640x06/*AESencryptionandMIC-64authenticationareused*/#defineMAC_SEC_LEVEL_ENC_MIC_1280x07/*AESencryptionandMIC-128authenticationareused*//*KeyIdentifierMode*/#defineMAC_KEY_ID_MODE_NONE0x00/*Keyisisnotused*/#defineMAC_KEY_ID_MODE_IMPLICIT0x00/*Keyisdeterminedimplicitly*/#defineMAC_KEY_ID_MODE_10x01/*Keyisdeterminedfromthe1-bytekeyindex*/#defineMAC_KEY_ID_MODE_40x02/*Keyisdeterminedfromthe4-bytekeyindex*/#defineMAC_KEY_ID_MODE_80x03/*Keyisdeterminedfromthe8-bytekeyindex*//*Keyidentifierfieldlengthinbytes*/#defineMAC_KEY_ID_IMPLICIT_LEN0#defineMAC_KEY_ID_1_LEN1#defineMAC_KEY_ID_4_LEN5#defineMAC_KEY_ID_8_LEN9/*Keysourcemaximumlengthinbytes*/#defineMAC_KEY_SOURCE_MAX_LEN8/*Dataconstants*/#if!defined(MAC_MAX_FRAME_SIZE)#defineMAC_MAX_FRAME_SIZE102/*Maximumapplicationdatalengthwithoutsecurity*/#endif#defineMAC_DATA_OFFSET24/*BytesrequiredforMACheaderindataframe*/#defineMAC_ENC_OFFSET5/*Dataoffsetrequiredforencryptionheader*/#defineMAC_MIC_32_LEN4/*LengthrequiredforMIC-32authentication*/#defineMAC_MIC_64_LEN8/*LengthrequiredforMIC-64authentication*/#defineMAC_MIC_128_LEN16/*LengthrequiredforMIC-128authentication*//*TXOptions*/#defineMAC_TXOPTION_ACK0x01/*Acknowledgedtransmission.TheMACwillattempttoretransmittheframeuntilitisacknowledged*/#defineMAC_TXOPTION_GTS0x02/*GTStransmission(unused)*/#defineMAC_TXOPTION_INDIRECT0x04/*Indirecttransmission.TheMACwillqueuethedataandwaitforthedestinationdevicetopollforit.Thiscanonlybeusedbyacoordinatordevice*/#defineMAC_TXOPTION_NO_RETRANS0x10/*Thisproprietaryoptionpreventstheframefrombeingretransmitted*/#defineMAC_TXOPTION_NO_CNF0x20/*ThisproprietaryoptionpreventsaMAC_MCPS_DATA_CNFeventfrombeingsentforthisframe*/#defineMAC_TXOPTION_ALT_BE0x40/*UsePIBvalueMAC_ALT_BEfortheminimumbackoffexponent*/#defineMAC_TXOPTION_PWR_CHAN0x80/*UsethepowerandchannelvaluesinmacDataReq_tinsteadofthePIBvalues*//*Channels*/#defineMAC_CHAN_1111#defineMAC_CHAN_1212#defineMAC_CHAN_1313#defineMAC_CHAN_1414#defineMAC_CHAN_1515#defineMAC_CHAN_1616#defineMAC_CHAN_1717#defineMAC_CHAN_1818#defineMAC_CHAN_1919#defineMAC_CHAN_2020#defineMAC_CHAN_2121#defineMAC_CHAN_2222#defineMAC_CHAN_2323#defineMAC_CHAN_2424#defineMAC_CHAN_2525#defineMAC_CHAN_2626#defineMAC_CHAN_2727#defineMAC_CHAN_2828#defineMAC_CHAN_11_MASKMAC_CHAN_MASK(MAC_CHAN_11)#defineMAC_CHAN_12_MASKMAC_CHAN_MASK(MAC_CHAN_12)#defineMAC_CHAN_13_MASKMAC_CHAN_MASK(MAC_CHAN_13)#defineMAC_CHAN_14_MASKMAC_CHAN_MASK(MAC_CHAN_14)#defineMAC_CHAN_15_MASKMAC_CHAN_MASK(MAC_CHAN_15)#defineMAC_CHAN_16_MASKMAC_CHAN_MASK(MAC_CHAN_16)#defineMAC_CHAN_17_MASKMAC_CHAN_MASK(MAC_CHAN_17)#defineMAC_CHAN_18_MASKMAC_CHAN_MASK(MAC_CHAN_18)#defineMAC_CHAN_19_MASKMAC_CHAN_MASK(MAC_CHAN_19)#defineMAC_CHAN_20_MASKMAC_CHAN_MASK(MAC_CHAN_20)#defineMAC_CHAN_21_MASKMAC_CHAN_MASK(MAC_CHAN_21)#defineMAC_CHAN_22_MASKMAC_CHAN_MASK(MAC_CHAN_22)#defineMAC_CHAN_23_MASKMAC_CHAN_MASK(MAC_CHAN_23)#defineMAC_CHAN_24_MASKMAC_CHAN_MASK(MAC_CHAN_24)#defineMAC_CHAN_25_MASKMAC_CHAN_MASK(MAC_CHAN_25)#defineMAC_CHAN_26_MASKMAC_CHAN_MASK(MAC_CHAN_26)#defineMAC_CHAN_27_MASKMAC_CHAN_MASK(MAC_CHAN_27)#defineMAC_CHAN_28_MASKMAC_CHAN_MASK(MAC_CHAN_28)/*ChannelPage*/#defineMAC_CHANNEL_PAGE_00/*2.4GHzbandusingO-QPSK*/#defineMAC_CHANNEL_PAGE_11/*868and915MHzbandsusingASK*/#defineMAC_CHANNEL_PAGE_22/*868and915MHzbandsusingO-QPSK*//*CapabilityInformation*/#defineMAC_CAPABLE_PAN_COORD0x01/*DeviceiscapableofbecomingaPANcoordinator*/#defineMAC_CAPABLE_FFD0x02/*DeviceisanFFD*/#defineMAC_CAPABLE_MAINS_POWER0x04/*Deviceismainspoweredratherthanbatterypowered*/#defineMAC_CAPABLE_RX_ON_IDLE0x08/*Devicehasitsreceiveronwhenidle*/#defineMAC_CAPABLE_SECURITY0x40/*Deviceiscapableofsendingandreceivingsecuredframes*/#defineMAC_CAPABLE_ALLOC_ADDR0x80/*Requestallocationofashortaddressintheassociateprocedure*//*StandardPIBGetandSetAttributes*/#defineMAC_ACK_WAIT_DURATION0x40/*Themaximumnumberofsymbolstowaitforanacknowledgmentframe*/#defineMAC_ASSOCIATION_PERMIT0x41/*TRUEifacoordinatoriscurrentlyallowingassociation*/#defineMAC_AUTO_REQUEST0x42/*TRUEifadeviceautomaticallysendsadatarequestifitsaddressislistedinthebeaconframe*/#defineMAC_BATT_LIFE_EXT0x43/*TRUEifbatterylifeextensionisenabled*/#defineMAC_BATT_LIFE_EXT_PERIODS0x44/*Thenumberofbackoffperiodsduringwhichthereceiverisenabledfollowingabeaconinbatterylifeextensionmode*/#defineMAC_BEACON_PAYLOAD0x45/*Thecontentsofthebeaconpayload*/#defineMAC_BEACON_PAYLOAD_LENGTH0x46/*Thelengthinbytesofthebeaconpayload*/#defineMAC_BEACON_ORDER0x47/*Howoftenthecoordinatortransmitsabeacon*/#defineMAC_BEACON_TX_TIME0x48/*Thetimethedevicetransmitteditslastbeaconframe,inbackoffperiodunits*/#defineMAC_BSN0x49/*Thebeaconsequencenumber*/#defineMAC_COORD_EXTENDED_ADDRESS0x4A/*Theextendedaddressofthecoordinatorwithwhichthedeviceisassociated*/#defineMAC_COORD_SHORT_ADDRESS0x4B/*Theshortaddressassignedtothecoordinatorwithwhichthedeviceisassociated.AvalueofMAC_ADDR_USE_EXTindicatesthatthecoordinatorisusingitsextendedaddress*/#defineMAC_DSN0x4C/*ThedataorMACcommandframesequencenumber*/#defineMAC_GTS_PERMIT0x4D/*TRUEifthePANcoordinatoracceptsGTSrequests*/#defineMAC_MAX_CSMA_BACKOFFS0x4E/*ThemaximumnumberofbackoffstheCSMA-CAalgorithmwillattemptbeforedeclaringachannelfailure*/#defineMAC_MIN_BE0x4F/*TheminimumvalueofthebackoffexponentintheCSMA-CAalgorithm.Ifthisvalueissetto0,collisionavoidanceisdisabledduringthefirstiterationofthealgorithm.AlsofortheslottedversionoftheCSMA-CAalgorithmwiththebatterylifeextensionenabled,theminimumvalueofthebackoffexponentwillbeatleast2*/#defineMAC_PAN_ID0x50/*ThePANidentifier.Ifthisvalueis0xffff,thedeviceisnotassociated*/#defineMAC_PROMISCUOUS_MODE0x51/*TRUEiftheMACisinpromiscuousmode*/#defineMAC_RX_ON_WHEN_IDLE0x52/*TRUEiftheMACenablesitsreceiverduringidleperiods*/#defineMAC_SHORT_ADDRESS0x53/*TheshortaddressthatthedeviceusestocommunicateinthePAN.IfthedeviceisaPANcoordinator,thisvalueshallbesetbeforecallingMAC_StartReq().Otherwisethevalueisallocatedduringassociation.ValueMAC_ADDR_USE_EXTindicatesthatthedeviceisassociatedbutnotusingashortaddress*/#defineMAC_SUPERFRAME_ORDER0x54/*Thisspecifiesthelengthoftheactiveportionofthesuperframe*/#defineMAC_TRANSACTION_PERSISTENCE_TIME0x55/*Themaximumtimeinbeaconintervalsthatatransactionisstoredbyacoordinatorandindicatedinthebeacon*/#defineMAC_ASSOCIATED_PAN_COORD0x56/*TRUEifthedeviceisassociatedtothePANcoordinator*/#defineMAC_MAX_BE0x57/*ThemaximumvalueofthebackoffexponentintheCSMA-CAalgorithm*/#defineMAC_MAX_FRAME_TOTAL_WAIT_TIME0x58/*ThemaximumnumberofCAPsymbolsinabeacon-enabledPAN,orsymbolsinanonbeacon-enabledPAN,towaitforaframeintendedasaresponsetoadatarequestframe*/#defineMAC_MAX_FRAME_RETRIES0x59/*Themaximumnumberofretriesallowedafteratransmissionfailure*/#defineMAC_RESPONSE_WAIT_TIME0x5A/*ThemaximumnumberofsymbolsadeviceshallwaitforaresponsecommandtobeavailablefollowingarequestcommandinmultiplesofaBaseSuperframeDuration*/#defineMAC_SYNC_SYMBOL_OFFSET0x5B/*ThetimestampoffsetfromSFDinsymbols*/#defineMAC_TIMESTAMP_SUPPORTED0x5C/*TRUEiftheMACsupportsRXandTXtimestamps*/#defineMAC_SECURITY_ENABLED0x5D/*TRUEifsecurityisenabled*//*ProprietaryPIBGetandSetAttributes*/#defineMAC_PHY_TRANSMIT_POWER0xE0/*Thetransmitpowerinunitsof-1dBm*/#defineMAC_LOGICAL_CHANNEL0xE1/*Thelogicalchannel*/#defineMAC_EXTENDED_ADDRESS0xE2/*Theextendedaddressofthedevice*/#defineMAC_ALT_BE0xE3/*alternateminimumbackoffexponent*/#defineMAC_DEVICE_BEACON_ORDER0xE4/*Devicebeaconorder*/#defineMAC_PHY_TRANSMIT_POWER_SIGNED0xE5/*Duplicatetransmitpowerattribute*insigned(2'scomplement)dBmunit*//*DisassociateReason*/#defineMAC_DISASSOC_COORD1/*Thecoordinatorwishesthedevicetodisassociate*/#defineMAC_DISASSOC_DEVICE2/*Thedeviceitselfwishestodisassociate*//*ScanType*/#defineMAC_SCAN_ED0/*Energydetectscan.Thedevicewilltunetoeachchannelandperformandenergymeasurement.Thelistofchannelsandtheirassociatedmeasurementswillbereturnedattheendofthescan*/#defineMAC_SCAN_ACTIVE1/*Activescan.Thedevicetunestoeachchannel,sendsabeaconrequestandlistensforbeacons.ThePANdescriptorsarereturnedattheendofthescan*/#defineMAC_SCAN_PASSIVE2/*Passivescan.Thedevicetunestoeachchannelandlistensforbeacons.ThePANdescriptorsarereturnedattheendofthescan*/#defineMAC_SCAN_ORPHAN3/*Orphanscan.Thedevicetunestoeachchannelandsendsanorphannotificationtotryandfinditscoordinator.Thestatusisreturnedattheendofthescan*//*Specialaddressvalues*/#defineMAC_ADDR_USE_EXT0xFFFE/*Shortaddressvalueindicatingextendedaddressisused*/#defineMAC_SHORT_ADDR_BROADCAST0xFFFF/*Broadcastshortaddress*/#defineMAC_SHORT_ADDR_NONE0xFFFF/*Shortaddresswhenthereisnoshortaddress*//*Commstatusindicationreasons*/#defineMAC_COMM_ASSOCIATE_RSP0/*EventsentinresponsetoMAC_AssociateRsp()*/#defineMAC_COMM_ORPHAN_RSP1/*EventsentinresponsetoMAC_OrphanRsp()*/#defineMAC_COMM_RX_SECURE2/*Eventsentasaresultofreceivingasecureframe*//*PowerMode*/#defineMAC_PWR_ON0/*MACandradiohardwareispoweredon*/#defineMAC_PWR_SLEEP_LITE1/*MACandradiohardwarearepartiallypoweredoff*/#defineMAC_PWR_SLEEP_DEEP2/*MACandradiohardwarearefullypoweredoff*//*MACCallbackEvents*/#defineMAC_MLME_ASSOCIATE_IND1/*Associateindication*/#defineMAC_MLME_ASSOCIATE_CNF2/*Associateconfirm*/#defineMAC_MLME_DISASSOCIATE_IND3/*Disassociateindication*/#defineMAC_MLME_DISASSOCIATE_CNF4/*Disassociateconfirm*/#defineMAC_MLME_BEACON_NOTIFY_IND5/*Beaconnotifyindication*/#defineMAC_MLME_ORPHAN_IND6/*Orphanindication*/#defineMAC_MLME_SCAN_CNF7/*Scanconfirm*/#defineMAC_MLME_START_CNF8/*Startconfirm*/#defineMAC_MLME_SYNC_LOSS_IND9/*Synclossindication*/#defineMAC_MLME_POLL_CNF10/*Pollconfirm*/#defineMAC_MLME_COMM_STATUS_IND11/*Communicationstatusindication*/#defineMAC_MCPS_DATA_CNF12/*Dataconfirm*/#defineMAC_MCPS_DATA_IND13/*Dataindication*/#defineMAC_MCPS_PURGE_CNF14/*Purgeconfirm*/#defineMAC_PWR_ON_CNF15/*Poweronconfirm*/#defineMAC_MLME_POLL_IND16/*Pollindication*/#defineMAC_RANDOM_SEED_LEN16/*Returnsthenumberofshortaddressesinthependingaddressspecification*/#defineMAC_PEND_NUM_SHORT(pendAddrSpec)((pendAddrSpec)&0x07)/*Returnsthenumberofextendedaddressesinthependingaddressspecification*/#defineMAC_PEND_NUM_EXT(pendAddrSpec)(((pendAddrSpec)&0x70)>>4)/*Returnsthelengthinbytesofthependingaddressfieldsinthebeacon*/#defineMAC_PEND_FIELDS_LEN(pendAddrSpec)((MAC_PEND_NUM_SHORT(pendAddrSpec)*2)+\(MAC_PEND_NUM_EXT(pendAddrSpec)*8))/*Thefollowingmacrosareprovidedtohelpparsethesuperframespecification*/#defineMAC_SFS_BEACON_ORDER(s)((s)&0x0F)/*returnsthebeaconorder*/#defineMAC_SFS_SUPERFRAME_ORDER(s)(((s)>>4)&0x0F)/*returnsthebeaconorder*/#defineMAC_SFS_FINAL_CAP_SLOT(s)(((s)>>8)&0x0F)/*returnsthefinalCAPslot*/#defineMAC_SFS_BLE(s)(((s)>>12)&0x01)/*returnsthebatterylifeextensionbit*/#defineMAC_SFS_PAN_COORDINATOR(s)(((s)>>14)&0x01)/*returnsthePANcoordinatorbit*/#defineMAC_SFS_ASSOCIATION_PERMIT(s)((s)>>15)/*returnstheassociationpermitbit*//*MACeventheadertype*/typedefstruct{uint8event;/*MACevent*/uint8status;/*MACstatus*/}macEventHdr_t;/*Commonsecuritytype*/typedefstruct{uint8keySource[MAC_KEY_SOURCE_MAX_LEN];/*Keysource*/uint8securityLevel;/*Securitylevel*/uint8keyIdMode;/*Keyidentifiermode*/uint8keyIndex;/*Keyindex*/}macSec_t;/*Forinternaluseonly*/typedefstruct{uint32timestamp;uint16timestamp2;uint16timeToLive;uint8frameType;uint8txOptions;uint8txMode;uint8txSched;uint8retries;uint8channel;uint8power;uint8mpduLinkQuality;uint8correlation;int8rssi;}macTxIntData_t;/*Forinternaluseonly*/typedefstruct{uint8frameType;uint8flags;}macRxIntData_t;/*Datarequestparameterstype*/typedefstruct{sAddr_tdstAddr;/*Theaddressofthedestinationdevice*/uint16dstPanId;/*ThePANIDofthedestinationdevice*/uint8srcAddrMode;/*Thesourceaddressmode*/uint8msduHandle;/*Application-definedhandlevalueassociatedwiththisdatarequest*/uint8txOptions;/*TXoptionsbitmask*/uint8channel;/*Transmitthedataframeonthischannel*/uint8power;/*Transmitthedataframeatthispowerlevel*/}macDataReq_t;/*MCPSdatarequesttype*/typedefstruct{macEventHdr_thdr;/*Internaluseonly*/sData_tmsdu;/*Datapointerandlength*/macTxIntData_tinternal;/*Internaluseonly*/macSec_tsec;/*Securityparameters*/macDataReq_tmac;/*Datarequestparameters*/}macMcpsDataReq_t;/*Dataindicationparameterstype*/typedefstruct{sAddr_tsrcAddr;/*Theaddressofthesendingdevice*/sAddr_tdstAddr;/*Theaddressofthedestinationdevice*/uint32timestamp;/*Thetime,inbackoffs,atwhichthedatawerereceived*/uint16timestamp2;/*Thetime,ininternalMACtimerunits,atwhichthedatawerereceived*/uint16srcPanId;/*ThePANIDofthesendingdevice*/uint16dstPanId;/*ThePANIDofthedestinationdevice*/uint8mpduLinkQuality;/*Thelinkqualityofthereceiveddataframe*/uint8correlation;/*Therawcorrelationvalueofthereceiveddataframe*/int8rssi;/*ThereceivedRFpowerinunitsdBm*/uint8dsn;/*Thedatasequencenumberofthereceivedframe*/}macDataInd_t;/*MCPSdataindicationtype*/typedefstruct{macEventHdr_thdr;/*Internaluseonly*/sData_tmsdu;/*Datapointerandlength*/

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论