園林灌溉節(jié)水系統(tǒng)的設(shè)計(jì)_第1頁
園林灌溉節(jié)水系統(tǒng)的設(shè)計(jì)_第2頁
園林灌溉節(jié)水系統(tǒng)的設(shè)計(jì)_第3頁
園林灌溉節(jié)水系統(tǒng)的設(shè)計(jì)_第4頁
園林灌溉節(jié)水系統(tǒng)的設(shè)計(jì)_第5頁
已閱讀5頁,還剩64頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

摘要 ---44-參考文獻(xiàn)李冬冬,張立新,李春志,等.基于PLC控制的棉田水肥一體化控制系統(tǒng)設(shè)計(jì)[J].農(nóng)機(jī)化研究,2021,43(6):5.王文婷,翟國亮,郭二旺,等.水肥一體化智能灌溉系統(tǒng)組成與設(shè)計(jì)[J].河南水利與南水北調(diào),2021.安帥霖、韓子鑫、張明宇、孫鴻、楊晶.智能灌溉施肥水肥決策系統(tǒng)設(shè)計(jì)與應(yīng)用效果分析[J].農(nóng)業(yè)開發(fā)與裝備,2020(11):2.王振民.溫室水肥一體化灌溉控制系統(tǒng)的設(shè)計(jì)與應(yīng)用[D].黑龍江八一農(nóng)墾大學(xué),2020.吳小李.基于云技術(shù)的水肥一體機(jī)控制系統(tǒng)設(shè)計(jì)思路[J].農(nóng)業(yè)工程技術(shù),2023,43(11):19-21.張守艷宗峰.基于物聯(lián)網(wǎng)技術(shù)的水肥一體化智能灌溉系統(tǒng)設(shè)計(jì)[J].電子測(cè)試,2022,36(19):30-32.鐘峰,唐東成.基于ZigBee的水肥一體化智能灌溉系統(tǒng)設(shè)計(jì)[J].南方農(nóng)機(jī),2020,51(22):2.李繼學(xué),李家春.水肥一體化遠(yuǎn)程自動(dòng)控制系統(tǒng)設(shè)計(jì)及試驗(yàn)[J].農(nóng)機(jī)化研究,2021.宋晨媛.基于LabVIEW的水肥一體機(jī)控制系統(tǒng)設(shè)計(jì)[J].農(nóng)機(jī)化研究,2021.DOI:10.3969/j.issn.1003-188X.2021.11.027.李爽、崔翀翔、陳奕萌、繆宏、胡小琴、徐杰、楊錚.溫室水肥一體化智能灌溉管控裝置設(shè)計(jì)[J].農(nóng)業(yè)裝備技術(shù),2020,46(5):2.楊亞男,袁英.智能灌溉控制系統(tǒng)的設(shè)計(jì)[J].科技資訊,2023,21(4):93-96.汪明霞,梁冰,侯禮婷,等.基于衛(wèi)星遙感的水肥一體智能灌溉系統(tǒng)及其控制方法:CN202210052058.5[P].CN202210052058.5[2024-03-19].李賀,張立新,郭天圣,等.基于物聯(lián)網(wǎng)的棉田節(jié)水灌溉自動(dòng)控制系統(tǒng)設(shè)計(jì)[J].農(nóng)機(jī)化研究,2024(5):66-71.王化琴,施國英,李天華,等.基于云平臺(tái)的設(shè)施水肥一體化控制系統(tǒng)設(shè)計(jì)與實(shí)現(xiàn)[J].山東農(nóng)業(yè)大學(xué)學(xué)報(bào):自然科學(xué)版,2023,54(1):98-103.孫鴻、王婧、安帥霖、韓子鑫.淺談智能灌溉施肥系統(tǒng)設(shè)計(jì)及應(yīng)用[J].農(nóng)業(yè)開發(fā)與裝備,2020(11):2.張雪媛,張立新,婁曉康,等.基于物聯(lián)網(wǎng)的棉田智慧灌溉系統(tǒng)的設(shè)計(jì)[J].農(nóng)機(jī)化研究,2022,44(7):7.吳海龍,陶君怡,王璐.水肥一體化灌溉監(jiān)控系統(tǒng)設(shè)計(jì)與應(yīng)用[J].科技創(chuàng)新與應(yīng)用,2021,11(12):3.陳勝萍.番茄水肥區(qū)域化智能灌溉系統(tǒng):CN210247520U[2024-03-19].YangZ,OkiLR,SisnerozJA,etal.Effectoflandscapeirrigationregulationsonrunoffvolumefromlow-densityresidentialcatchmentsduringtwoCaliforniadroughts[J].Heliyon,2024,10(1).RestucciaR.Howartificialintelligencewillinfluencelandscapeirrigation[J].LandscapeManagement,2024(2):63.謝辭附錄謝辭時(shí)光飛逝,大學(xué)生活即將結(jié)束,四年的學(xué)習(xí)生活使我受益匪淺。剛踏入大學(xué)的我,對(duì)好多有趣的課程充滿興趣。任課老師的講課細(xì)心,實(shí)習(xí)也圓滿結(jié)束,論文即將完成之際,我要向所有給予我支持、幫忙和鼓勵(lì)的人表示我最誠摯的謝意。我要感謝我的指導(dǎo)老師張洪斌老師對(duì)我的教導(dǎo)。從論文的選題、構(gòu)思、撰寫到最終的定稿,張洪斌老師都給了我悉心的指導(dǎo)和熱情的幫忙,使我的畢業(yè)論文能夠順利的完成。張洪斌老師對(duì)工作的認(rèn)真態(tài)度,對(duì)學(xué)術(shù)的鉆研精神和嚴(yán)謹(jǐn)?shù)膶W(xué)風(fēng),對(duì)學(xué)生無限的關(guān)心都是值得我終生學(xué)習(xí)的。我還要感謝四年以來陪伴在我身邊的朋友、宿友,感謝他們四年以來對(duì)我的支持,寫論文的時(shí)候他們?yōu)槲姨岢龅挠幸獾慕ㄗh和看法,有了他們的鼓勵(lì)和幫助,這四年以來因?yàn)橛兴麄兾也拍艹鋵?shí)的度過了四年的學(xué)習(xí)生活。最后感謝培養(yǎng)長大我的父母,感謝你們對(duì)我的養(yǎng)育之恩,謝謝你們?cè)谖仪髮W(xué)生涯中給與我無微不至的信任和照顧,在我的學(xué)業(yè)和生活中一如既往地支持我、鼓勵(lì)我,謝謝你們。畢業(yè)在即,在今后的工作和生活中,我會(huì)銘記師長們的教誨,繼續(xù)不懈努力和進(jìn)步,來報(bào)答父母和國家。附錄附錄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等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論