hw_usb.h 221 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611
  1. //*****************************************************************************
  2. //
  3. // hw_usb.h - Macros for use in accessing the USB registers.
  4. //
  5. // Copyright (c) 2007-2012 Texas Instruments Incorporated. All rights reserved.
  6. // Software License Agreement
  7. //
  8. // Redistribution and use in source and binary forms, with or without
  9. // modification, are permitted provided that the following conditions
  10. // are met:
  11. //
  12. // Redistributions of source code must retain the above copyright
  13. // notice, this list of conditions and the following disclaimer.
  14. //
  15. // Redistributions in binary form must reproduce the above copyright
  16. // notice, this list of conditions and the following disclaimer in the
  17. // documentation and/or other materials provided with the
  18. // distribution.
  19. //
  20. // Neither the name of Texas Instruments Incorporated nor the names of
  21. // its contributors may be used to endorse or promote products derived
  22. // from this software without specific prior written permission.
  23. //
  24. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  25. // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  26. // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  27. // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  28. // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  29. // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  30. // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  31. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  32. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  33. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  34. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  35. //
  36. // This is part of revision 9453 of the Stellaris Firmware Development Package.
  37. //
  38. //*****************************************************************************
  39. #ifndef __HW_USB_H__
  40. #define __HW_USB_H__
  41. //*****************************************************************************
  42. //
  43. // The following are defines for the Univeral Serial Bus register offsets.
  44. //
  45. //*****************************************************************************
  46. #define USB_O_FADDR 0x00000000 // USB Device Functional Address
  47. #define USB_O_POWER 0x00000001 // USB Power
  48. #define USB_O_TXIS 0x00000002 // USB Transmit Interrupt Status
  49. #define USB_O_RXIS 0x00000004 // USB Receive Interrupt Status
  50. #define USB_O_TXIE 0x00000006 // USB Transmit Interrupt Enable
  51. #define USB_O_RXIE 0x00000008 // USB Receive Interrupt Enable
  52. #define USB_O_IS 0x0000000A // USB General Interrupt Status
  53. #define USB_O_IE 0x0000000B // USB Interrupt Enable
  54. #define USB_O_FRAME 0x0000000C // USB Frame Value
  55. #define USB_O_EPIDX 0x0000000E // USB Endpoint Index
  56. #define USB_O_TEST 0x0000000F // USB Test Mode
  57. #define USB_O_FIFO0 0x00000020 // USB FIFO Endpoint 0
  58. #define USB_O_FIFO1 0x00000024 // USB FIFO Endpoint 1
  59. #define USB_O_FIFO2 0x00000028 // USB FIFO Endpoint 2
  60. #define USB_O_FIFO3 0x0000002C // USB FIFO Endpoint 3
  61. #define USB_O_FIFO4 0x00000030 // USB FIFO Endpoint 4
  62. #define USB_O_FIFO5 0x00000034 // USB FIFO Endpoint 5
  63. #define USB_O_FIFO6 0x00000038 // USB FIFO Endpoint 6
  64. #define USB_O_FIFO7 0x0000003C // USB FIFO Endpoint 7
  65. #define USB_O_FIFO8 0x00000040 // USB FIFO Endpoint 8
  66. #define USB_O_FIFO9 0x00000044 // USB FIFO Endpoint 9
  67. #define USB_O_FIFO10 0x00000048 // USB FIFO Endpoint 10
  68. #define USB_O_FIFO11 0x0000004C // USB FIFO Endpoint 11
  69. #define USB_O_FIFO12 0x00000050 // USB FIFO Endpoint 12
  70. #define USB_O_FIFO13 0x00000054 // USB FIFO Endpoint 13
  71. #define USB_O_FIFO14 0x00000058 // USB FIFO Endpoint 14
  72. #define USB_O_FIFO15 0x0000005C // USB FIFO Endpoint 15
  73. #define USB_O_DEVCTL 0x00000060 // USB Device Control
  74. #define USB_O_TXFIFOSZ 0x00000062 // USB Transmit Dynamic FIFO Sizing
  75. #define USB_O_RXFIFOSZ 0x00000063 // USB Receive Dynamic FIFO Sizing
  76. #define USB_O_TXFIFOADD 0x00000064 // USB Transmit FIFO Start Address
  77. #define USB_O_RXFIFOADD 0x00000066 // USB Receive FIFO Start Address
  78. #define USB_O_CONTIM 0x0000007A // USB Connect Timing
  79. #define USB_O_VPLEN 0x0000007B // USB OTG VBUS Pulse Timing
  80. #define USB_O_FSEOF 0x0000007D // USB Full-Speed Last Transaction
  81. // to End of Frame Timing
  82. #define USB_O_LSEOF 0x0000007E // USB Low-Speed Last Transaction
  83. // to End of Frame Timing
  84. #define USB_O_TXFUNCADDR0 0x00000080 // USB Transmit Functional Address
  85. // Endpoint 0
  86. #define USB_O_TXHUBADDR0 0x00000082 // USB Transmit Hub Address
  87. // Endpoint 0
  88. #define USB_O_TXHUBPORT0 0x00000083 // USB Transmit Hub Port Endpoint 0
  89. #define USB_O_TXFUNCADDR1 0x00000088 // USB Transmit Functional Address
  90. // Endpoint 1
  91. #define USB_O_TXHUBADDR1 0x0000008A // USB Transmit Hub Address
  92. // Endpoint 1
  93. #define USB_O_TXHUBPORT1 0x0000008B // USB Transmit Hub Port Endpoint 1
  94. #define USB_O_RXFUNCADDR1 0x0000008C // USB Receive Functional Address
  95. // Endpoint 1
  96. #define USB_O_RXHUBADDR1 0x0000008E // USB Receive Hub Address Endpoint
  97. // 1
  98. #define USB_O_RXHUBPORT1 0x0000008F // USB Receive Hub Port Endpoint 1
  99. #define USB_O_TXFUNCADDR2 0x00000090 // USB Transmit Functional Address
  100. // Endpoint 2
  101. #define USB_O_TXHUBADDR2 0x00000092 // USB Transmit Hub Address
  102. // Endpoint 2
  103. #define USB_O_TXHUBPORT2 0x00000093 // USB Transmit Hub Port Endpoint 2
  104. #define USB_O_RXFUNCADDR2 0x00000094 // USB Receive Functional Address
  105. // Endpoint 2
  106. #define USB_O_RXHUBADDR2 0x00000096 // USB Receive Hub Address Endpoint
  107. // 2
  108. #define USB_O_RXHUBPORT2 0x00000097 // USB Receive Hub Port Endpoint 2
  109. #define USB_O_TXFUNCADDR3 0x00000098 // USB Transmit Functional Address
  110. // Endpoint 3
  111. #define USB_O_TXHUBADDR3 0x0000009A // USB Transmit Hub Address
  112. // Endpoint 3
  113. #define USB_O_TXHUBPORT3 0x0000009B // USB Transmit Hub Port Endpoint 3
  114. #define USB_O_RXFUNCADDR3 0x0000009C // USB Receive Functional Address
  115. // Endpoint 3
  116. #define USB_O_RXHUBADDR3 0x0000009E // USB Receive Hub Address Endpoint
  117. // 3
  118. #define USB_O_RXHUBPORT3 0x0000009F // USB Receive Hub Port Endpoint 3
  119. #define USB_O_TXFUNCADDR4 0x000000A0 // USB Transmit Functional Address
  120. // Endpoint 4
  121. #define USB_O_TXHUBADDR4 0x000000A2 // USB Transmit Hub Address
  122. // Endpoint 4
  123. #define USB_O_TXHUBPORT4 0x000000A3 // USB Transmit Hub Port Endpoint 4
  124. #define USB_O_RXFUNCADDR4 0x000000A4 // USB Receive Functional Address
  125. // Endpoint 4
  126. #define USB_O_RXHUBADDR4 0x000000A6 // USB Receive Hub Address Endpoint
  127. // 4
  128. #define USB_O_RXHUBPORT4 0x000000A7 // USB Receive Hub Port Endpoint 4
  129. #define USB_O_TXFUNCADDR5 0x000000A8 // USB Transmit Functional Address
  130. // Endpoint 5
  131. #define USB_O_TXHUBADDR5 0x000000AA // USB Transmit Hub Address
  132. // Endpoint 5
  133. #define USB_O_TXHUBPORT5 0x000000AB // USB Transmit Hub Port Endpoint 5
  134. #define USB_O_RXFUNCADDR5 0x000000AC // USB Receive Functional Address
  135. // Endpoint 5
  136. #define USB_O_RXHUBADDR5 0x000000AE // USB Receive Hub Address Endpoint
  137. // 5
  138. #define USB_O_RXHUBPORT5 0x000000AF // USB Receive Hub Port Endpoint 5
  139. #define USB_O_TXFUNCADDR6 0x000000B0 // USB Transmit Functional Address
  140. // Endpoint 6
  141. #define USB_O_TXHUBADDR6 0x000000B2 // USB Transmit Hub Address
  142. // Endpoint 6
  143. #define USB_O_TXHUBPORT6 0x000000B3 // USB Transmit Hub Port Endpoint 6
  144. #define USB_O_RXFUNCADDR6 0x000000B4 // USB Receive Functional Address
  145. // Endpoint 6
  146. #define USB_O_RXHUBADDR6 0x000000B6 // USB Receive Hub Address Endpoint
  147. // 6
  148. #define USB_O_RXHUBPORT6 0x000000B7 // USB Receive Hub Port Endpoint 6
  149. #define USB_O_TXFUNCADDR7 0x000000B8 // USB Transmit Functional Address
  150. // Endpoint 7
  151. #define USB_O_TXHUBADDR7 0x000000BA // USB Transmit Hub Address
  152. // Endpoint 7
  153. #define USB_O_TXHUBPORT7 0x000000BB // USB Transmit Hub Port Endpoint 7
  154. #define USB_O_RXFUNCADDR7 0x000000BC // USB Receive Functional Address
  155. // Endpoint 7
  156. #define USB_O_RXHUBADDR7 0x000000BE // USB Receive Hub Address Endpoint
  157. // 7
  158. #define USB_O_RXHUBPORT7 0x000000BF // USB Receive Hub Port Endpoint 7
  159. #define USB_O_TXFUNCADDR8 0x000000C0 // USB Transmit Functional Address
  160. // Endpoint 8
  161. #define USB_O_TXHUBADDR8 0x000000C2 // USB Transmit Hub Address
  162. // Endpoint 8
  163. #define USB_O_TXHUBPORT8 0x000000C3 // USB Transmit Hub Port Endpoint 8
  164. #define USB_O_RXFUNCADDR8 0x000000C4 // USB Receive Functional Address
  165. // Endpoint 8
  166. #define USB_O_RXHUBADDR8 0x000000C6 // USB Receive Hub Address Endpoint
  167. // 8
  168. #define USB_O_RXHUBPORT8 0x000000C7 // USB Receive Hub Port Endpoint 8
  169. #define USB_O_TXFUNCADDR9 0x000000C8 // USB Transmit Functional Address
  170. // Endpoint 9
  171. #define USB_O_TXHUBADDR9 0x000000CA // USB Transmit Hub Address
  172. // Endpoint 9
  173. #define USB_O_TXHUBPORT9 0x000000CB // USB Transmit Hub Port Endpoint 9
  174. #define USB_O_RXFUNCADDR9 0x000000CC // USB Receive Functional Address
  175. // Endpoint 9
  176. #define USB_O_RXHUBADDR9 0x000000CE // USB Receive Hub Address Endpoint
  177. // 9
  178. #define USB_O_RXHUBPORT9 0x000000CF // USB Receive Hub Port Endpoint 9
  179. #define USB_O_TXFUNCADDR10 0x000000D0 // USB Transmit Functional Address
  180. // Endpoint 10
  181. #define USB_O_TXHUBADDR10 0x000000D2 // USB Transmit Hub Address
  182. // Endpoint 10
  183. #define USB_O_TXHUBPORT10 0x000000D3 // USB Transmit Hub Port Endpoint
  184. // 10
  185. #define USB_O_RXFUNCADDR10 0x000000D4 // USB Receive Functional Address
  186. // Endpoint 10
  187. #define USB_O_RXHUBADDR10 0x000000D6 // USB Receive Hub Address Endpoint
  188. // 10
  189. #define USB_O_RXHUBPORT10 0x000000D7 // USB Receive Hub Port Endpoint 10
  190. #define USB_O_TXFUNCADDR11 0x000000D8 // USB Transmit Functional Address
  191. // Endpoint 11
  192. #define USB_O_TXHUBADDR11 0x000000DA // USB Transmit Hub Address
  193. // Endpoint 11
  194. #define USB_O_TXHUBPORT11 0x000000DB // USB Transmit Hub Port Endpoint
  195. // 11
  196. #define USB_O_RXFUNCADDR11 0x000000DC // USB Receive Functional Address
  197. // Endpoint 11
  198. #define USB_O_RXHUBADDR11 0x000000DE // USB Receive Hub Address Endpoint
  199. // 11
  200. #define USB_O_RXHUBPORT11 0x000000DF // USB Receive Hub Port Endpoint 11
  201. #define USB_O_TXFUNCADDR12 0x000000E0 // USB Transmit Functional Address
  202. // Endpoint 12
  203. #define USB_O_TXHUBADDR12 0x000000E2 // USB Transmit Hub Address
  204. // Endpoint 12
  205. #define USB_O_TXHUBPORT12 0x000000E3 // USB Transmit Hub Port Endpoint
  206. // 12
  207. #define USB_O_RXFUNCADDR12 0x000000E4 // USB Receive Functional Address
  208. // Endpoint 12
  209. #define USB_O_RXHUBADDR12 0x000000E6 // USB Receive Hub Address Endpoint
  210. // 12
  211. #define USB_O_RXHUBPORT12 0x000000E7 // USB Receive Hub Port Endpoint 12
  212. #define USB_O_TXFUNCADDR13 0x000000E8 // USB Transmit Functional Address
  213. // Endpoint 13
  214. #define USB_O_TXHUBADDR13 0x000000EA // USB Transmit Hub Address
  215. // Endpoint 13
  216. #define USB_O_TXHUBPORT13 0x000000EB // USB Transmit Hub Port Endpoint
  217. // 13
  218. #define USB_O_RXFUNCADDR13 0x000000EC // USB Receive Functional Address
  219. // Endpoint 13
  220. #define USB_O_RXHUBADDR13 0x000000EE // USB Receive Hub Address Endpoint
  221. // 13
  222. #define USB_O_RXHUBPORT13 0x000000EF // USB Receive Hub Port Endpoint 13
  223. #define USB_O_TXFUNCADDR14 0x000000F0 // USB Transmit Functional Address
  224. // Endpoint 14
  225. #define USB_O_TXHUBADDR14 0x000000F2 // USB Transmit Hub Address
  226. // Endpoint 14
  227. #define USB_O_TXHUBPORT14 0x000000F3 // USB Transmit Hub Port Endpoint
  228. // 14
  229. #define USB_O_RXFUNCADDR14 0x000000F4 // USB Receive Functional Address
  230. // Endpoint 14
  231. #define USB_O_RXHUBADDR14 0x000000F6 // USB Receive Hub Address Endpoint
  232. // 14
  233. #define USB_O_RXHUBPORT14 0x000000F7 // USB Receive Hub Port Endpoint 14
  234. #define USB_O_TXFUNCADDR15 0x000000F8 // USB Transmit Functional Address
  235. // Endpoint 15
  236. #define USB_O_TXHUBADDR15 0x000000FA // USB Transmit Hub Address
  237. // Endpoint 15
  238. #define USB_O_TXHUBPORT15 0x000000FB // USB Transmit Hub Port Endpoint
  239. // 15
  240. #define USB_O_RXFUNCADDR15 0x000000FC // USB Receive Functional Address
  241. // Endpoint 15
  242. #define USB_O_RXHUBADDR15 0x000000FE // USB Receive Hub Address Endpoint
  243. // 15
  244. #define USB_O_RXHUBPORT15 0x000000FF // USB Receive Hub Port Endpoint 15
  245. #define USB_O_CSRL0 0x00000102 // USB Control and Status Endpoint
  246. // 0 Low
  247. #define USB_O_CSRH0 0x00000103 // USB Control and Status Endpoint
  248. // 0 High
  249. #define USB_O_COUNT0 0x00000108 // USB Receive Byte Count Endpoint
  250. // 0
  251. #define USB_O_TYPE0 0x0000010A // USB Type Endpoint 0
  252. #define USB_O_NAKLMT 0x0000010B // USB NAK Limit
  253. #define USB_O_TXMAXP1 0x00000110 // USB Maximum Transmit Data
  254. // Endpoint 1
  255. #define USB_O_TXCSRL1 0x00000112 // USB Transmit Control and Status
  256. // Endpoint 1 Low
  257. #define USB_O_TXCSRH1 0x00000113 // USB Transmit Control and Status
  258. // Endpoint 1 High
  259. #define USB_O_RXMAXP1 0x00000114 // USB Maximum Receive Data
  260. // Endpoint 1
  261. #define USB_O_RXCSRL1 0x00000116 // USB Receive Control and Status
  262. // Endpoint 1 Low
  263. #define USB_O_RXCSRH1 0x00000117 // USB Receive Control and Status
  264. // Endpoint 1 High
  265. #define USB_O_RXCOUNT1 0x00000118 // USB Receive Byte Count Endpoint
  266. // 1
  267. #define USB_O_TXTYPE1 0x0000011A // USB Host Transmit Configure Type
  268. // Endpoint 1
  269. #define USB_O_TXINTERVAL1 0x0000011B // USB Host Transmit Interval
  270. // Endpoint 1
  271. #define USB_O_RXTYPE1 0x0000011C // USB Host Configure Receive Type
  272. // Endpoint 1
  273. #define USB_O_RXINTERVAL1 0x0000011D // USB Host Receive Polling
  274. // Interval Endpoint 1
  275. #define USB_O_TXMAXP2 0x00000120 // USB Maximum Transmit Data
  276. // Endpoint 2
  277. #define USB_O_TXCSRL2 0x00000122 // USB Transmit Control and Status
  278. // Endpoint 2 Low
  279. #define USB_O_TXCSRH2 0x00000123 // USB Transmit Control and Status
  280. // Endpoint 2 High
  281. #define USB_O_RXMAXP2 0x00000124 // USB Maximum Receive Data
  282. // Endpoint 2
  283. #define USB_O_RXCSRL2 0x00000126 // USB Receive Control and Status
  284. // Endpoint 2 Low
  285. #define USB_O_RXCSRH2 0x00000127 // USB Receive Control and Status
  286. // Endpoint 2 High
  287. #define USB_O_RXCOUNT2 0x00000128 // USB Receive Byte Count Endpoint
  288. // 2
  289. #define USB_O_TXTYPE2 0x0000012A // USB Host Transmit Configure Type
  290. // Endpoint 2
  291. #define USB_O_TXINTERVAL2 0x0000012B // USB Host Transmit Interval
  292. // Endpoint 2
  293. #define USB_O_RXTYPE2 0x0000012C // USB Host Configure Receive Type
  294. // Endpoint 2
  295. #define USB_O_RXINTERVAL2 0x0000012D // USB Host Receive Polling
  296. // Interval Endpoint 2
  297. #define USB_O_TXMAXP3 0x00000130 // USB Maximum Transmit Data
  298. // Endpoint 3
  299. #define USB_O_TXCSRL3 0x00000132 // USB Transmit Control and Status
  300. // Endpoint 3 Low
  301. #define USB_O_TXCSRH3 0x00000133 // USB Transmit Control and Status
  302. // Endpoint 3 High
  303. #define USB_O_RXMAXP3 0x00000134 // USB Maximum Receive Data
  304. // Endpoint 3
  305. #define USB_O_RXCSRL3 0x00000136 // USB Receive Control and Status
  306. // Endpoint 3 Low
  307. #define USB_O_RXCSRH3 0x00000137 // USB Receive Control and Status
  308. // Endpoint 3 High
  309. #define USB_O_RXCOUNT3 0x00000138 // USB Receive Byte Count Endpoint
  310. // 3
  311. #define USB_O_TXTYPE3 0x0000013A // USB Host Transmit Configure Type
  312. // Endpoint 3
  313. #define USB_O_TXINTERVAL3 0x0000013B // USB Host Transmit Interval
  314. // Endpoint 3
  315. #define USB_O_RXTYPE3 0x0000013C // USB Host Configure Receive Type
  316. // Endpoint 3
  317. #define USB_O_RXINTERVAL3 0x0000013D // USB Host Receive Polling
  318. // Interval Endpoint 3
  319. #define USB_O_TXMAXP4 0x00000140 // USB Maximum Transmit Data
  320. // Endpoint 4
  321. #define USB_O_TXCSRL4 0x00000142 // USB Transmit Control and Status
  322. // Endpoint 4 Low
  323. #define USB_O_TXCSRH4 0x00000143 // USB Transmit Control and Status
  324. // Endpoint 4 High
  325. #define USB_O_RXMAXP4 0x00000144 // USB Maximum Receive Data
  326. // Endpoint 4
  327. #define USB_O_RXCSRL4 0x00000146 // USB Receive Control and Status
  328. // Endpoint 4 Low
  329. #define USB_O_RXCSRH4 0x00000147 // USB Receive Control and Status
  330. // Endpoint 4 High
  331. #define USB_O_RXCOUNT4 0x00000148 // USB Receive Byte Count Endpoint
  332. // 4
  333. #define USB_O_TXTYPE4 0x0000014A // USB Host Transmit Configure Type
  334. // Endpoint 4
  335. #define USB_O_TXINTERVAL4 0x0000014B // USB Host Transmit Interval
  336. // Endpoint 4
  337. #define USB_O_RXTYPE4 0x0000014C // USB Host Configure Receive Type
  338. // Endpoint 4
  339. #define USB_O_RXINTERVAL4 0x0000014D // USB Host Receive Polling
  340. // Interval Endpoint 4
  341. #define USB_O_TXMAXP5 0x00000150 // USB Maximum Transmit Data
  342. // Endpoint 5
  343. #define USB_O_TXCSRL5 0x00000152 // USB Transmit Control and Status
  344. // Endpoint 5 Low
  345. #define USB_O_TXCSRH5 0x00000153 // USB Transmit Control and Status
  346. // Endpoint 5 High
  347. #define USB_O_RXMAXP5 0x00000154 // USB Maximum Receive Data
  348. // Endpoint 5
  349. #define USB_O_RXCSRL5 0x00000156 // USB Receive Control and Status
  350. // Endpoint 5 Low
  351. #define USB_O_RXCSRH5 0x00000157 // USB Receive Control and Status
  352. // Endpoint 5 High
  353. #define USB_O_RXCOUNT5 0x00000158 // USB Receive Byte Count Endpoint
  354. // 5
  355. #define USB_O_TXTYPE5 0x0000015A // USB Host Transmit Configure Type
  356. // Endpoint 5
  357. #define USB_O_TXINTERVAL5 0x0000015B // USB Host Transmit Interval
  358. // Endpoint 5
  359. #define USB_O_RXTYPE5 0x0000015C // USB Host Configure Receive Type
  360. // Endpoint 5
  361. #define USB_O_RXINTERVAL5 0x0000015D // USB Host Receive Polling
  362. // Interval Endpoint 5
  363. #define USB_O_TXMAXP6 0x00000160 // USB Maximum Transmit Data
  364. // Endpoint 6
  365. #define USB_O_TXCSRL6 0x00000162 // USB Transmit Control and Status
  366. // Endpoint 6 Low
  367. #define USB_O_TXCSRH6 0x00000163 // USB Transmit Control and Status
  368. // Endpoint 6 High
  369. #define USB_O_RXMAXP6 0x00000164 // USB Maximum Receive Data
  370. // Endpoint 6
  371. #define USB_O_RXCSRL6 0x00000166 // USB Receive Control and Status
  372. // Endpoint 6 Low
  373. #define USB_O_RXCSRH6 0x00000167 // USB Receive Control and Status
  374. // Endpoint 6 High
  375. #define USB_O_RXCOUNT6 0x00000168 // USB Receive Byte Count Endpoint
  376. // 6
  377. #define USB_O_TXTYPE6 0x0000016A // USB Host Transmit Configure Type
  378. // Endpoint 6
  379. #define USB_O_TXINTERVAL6 0x0000016B // USB Host Transmit Interval
  380. // Endpoint 6
  381. #define USB_O_RXTYPE6 0x0000016C // USB Host Configure Receive Type
  382. // Endpoint 6
  383. #define USB_O_RXINTERVAL6 0x0000016D // USB Host Receive Polling
  384. // Interval Endpoint 6
  385. #define USB_O_TXMAXP7 0x00000170 // USB Maximum Transmit Data
  386. // Endpoint 7
  387. #define USB_O_TXCSRL7 0x00000172 // USB Transmit Control and Status
  388. // Endpoint 7 Low
  389. #define USB_O_TXCSRH7 0x00000173 // USB Transmit Control and Status
  390. // Endpoint 7 High
  391. #define USB_O_RXMAXP7 0x00000174 // USB Maximum Receive Data
  392. // Endpoint 7
  393. #define USB_O_RXCSRL7 0x00000176 // USB Receive Control and Status
  394. // Endpoint 7 Low
  395. #define USB_O_RXCSRH7 0x00000177 // USB Receive Control and Status
  396. // Endpoint 7 High
  397. #define USB_O_RXCOUNT7 0x00000178 // USB Receive Byte Count Endpoint
  398. // 7
  399. #define USB_O_TXTYPE7 0x0000017A // USB Host Transmit Configure Type
  400. // Endpoint 7
  401. #define USB_O_TXINTERVAL7 0x0000017B // USB Host Transmit Interval
  402. // Endpoint 7
  403. #define USB_O_RXTYPE7 0x0000017C // USB Host Configure Receive Type
  404. // Endpoint 7
  405. #define USB_O_RXINTERVAL7 0x0000017D // USB Host Receive Polling
  406. // Interval Endpoint 7
  407. #define USB_O_TXMAXP8 0x00000180 // USB Maximum Transmit Data
  408. // Endpoint 8
  409. #define USB_O_TXCSRL8 0x00000182 // USB Transmit Control and Status
  410. // Endpoint 8 Low
  411. #define USB_O_TXCSRH8 0x00000183 // USB Transmit Control and Status
  412. // Endpoint 8 High
  413. #define USB_O_RXMAXP8 0x00000184 // USB Maximum Receive Data
  414. // Endpoint 8
  415. #define USB_O_RXCSRL8 0x00000186 // USB Receive Control and Status
  416. // Endpoint 8 Low
  417. #define USB_O_RXCSRH8 0x00000187 // USB Receive Control and Status
  418. // Endpoint 8 High
  419. #define USB_O_RXCOUNT8 0x00000188 // USB Receive Byte Count Endpoint
  420. // 8
  421. #define USB_O_TXTYPE8 0x0000018A // USB Host Transmit Configure Type
  422. // Endpoint 8
  423. #define USB_O_TXINTERVAL8 0x0000018B // USB Host Transmit Interval
  424. // Endpoint 8
  425. #define USB_O_RXTYPE8 0x0000018C // USB Host Configure Receive Type
  426. // Endpoint 8
  427. #define USB_O_RXINTERVAL8 0x0000018D // USB Host Receive Polling
  428. // Interval Endpoint 8
  429. #define USB_O_TXMAXP9 0x00000190 // USB Maximum Transmit Data
  430. // Endpoint 9
  431. #define USB_O_TXCSRL9 0x00000192 // USB Transmit Control and Status
  432. // Endpoint 9 Low
  433. #define USB_O_TXCSRH9 0x00000193 // USB Transmit Control and Status
  434. // Endpoint 9 High
  435. #define USB_O_RXMAXP9 0x00000194 // USB Maximum Receive Data
  436. // Endpoint 9
  437. #define USB_O_RXCSRL9 0x00000196 // USB Receive Control and Status
  438. // Endpoint 9 Low
  439. #define USB_O_RXCSRH9 0x00000197 // USB Receive Control and Status
  440. // Endpoint 9 High
  441. #define USB_O_RXCOUNT9 0x00000198 // USB Receive Byte Count Endpoint
  442. // 9
  443. #define USB_O_TXTYPE9 0x0000019A // USB Host Transmit Configure Type
  444. // Endpoint 9
  445. #define USB_O_TXINTERVAL9 0x0000019B // USB Host Transmit Interval
  446. // Endpoint 9
  447. #define USB_O_RXTYPE9 0x0000019C // USB Host Configure Receive Type
  448. // Endpoint 9
  449. #define USB_O_RXINTERVAL9 0x0000019D // USB Host Receive Polling
  450. // Interval Endpoint 9
  451. #define USB_O_TXMAXP10 0x000001A0 // USB Maximum Transmit Data
  452. // Endpoint 10
  453. #define USB_O_TXCSRL10 0x000001A2 // USB Transmit Control and Status
  454. // Endpoint 10 Low
  455. #define USB_O_TXCSRH10 0x000001A3 // USB Transmit Control and Status
  456. // Endpoint 10 High
  457. #define USB_O_RXMAXP10 0x000001A4 // USB Maximum Receive Data
  458. // Endpoint 10
  459. #define USB_O_RXCSRL10 0x000001A6 // USB Receive Control and Status
  460. // Endpoint 10 Low
  461. #define USB_O_RXCSRH10 0x000001A7 // USB Receive Control and Status
  462. // Endpoint 10 High
  463. #define USB_O_RXCOUNT10 0x000001A8 // USB Receive Byte Count Endpoint
  464. // 10
  465. #define USB_O_TXTYPE10 0x000001AA // USB Host Transmit Configure Type
  466. // Endpoint 10
  467. #define USB_O_TXINTERVAL10 0x000001AB // USB Host Transmit Interval
  468. // Endpoint 10
  469. #define USB_O_RXTYPE10 0x000001AC // USB Host Configure Receive Type
  470. // Endpoint 10
  471. #define USB_O_RXINTERVAL10 0x000001AD // USB Host Receive Polling
  472. // Interval Endpoint 10
  473. #define USB_O_TXMAXP11 0x000001B0 // USB Maximum Transmit Data
  474. // Endpoint 11
  475. #define USB_O_TXCSRL11 0x000001B2 // USB Transmit Control and Status
  476. // Endpoint 11 Low
  477. #define USB_O_TXCSRH11 0x000001B3 // USB Transmit Control and Status
  478. // Endpoint 11 High
  479. #define USB_O_RXMAXP11 0x000001B4 // USB Maximum Receive Data
  480. // Endpoint 11
  481. #define USB_O_RXCSRL11 0x000001B6 // USB Receive Control and Status
  482. // Endpoint 11 Low
  483. #define USB_O_RXCSRH11 0x000001B7 // USB Receive Control and Status
  484. // Endpoint 11 High
  485. #define USB_O_RXCOUNT11 0x000001B8 // USB Receive Byte Count Endpoint
  486. // 11
  487. #define USB_O_TXTYPE11 0x000001BA // USB Host Transmit Configure Type
  488. // Endpoint 11
  489. #define USB_O_TXINTERVAL11 0x000001BB // USB Host Transmit Interval
  490. // Endpoint 11
  491. #define USB_O_RXTYPE11 0x000001BC // USB Host Configure Receive Type
  492. // Endpoint 11
  493. #define USB_O_RXINTERVAL11 0x000001BD // USB Host Receive Polling
  494. // Interval Endpoint 11
  495. #define USB_O_TXMAXP12 0x000001C0 // USB Maximum Transmit Data
  496. // Endpoint 12
  497. #define USB_O_TXCSRL12 0x000001C2 // USB Transmit Control and Status
  498. // Endpoint 12 Low
  499. #define USB_O_TXCSRH12 0x000001C3 // USB Transmit Control and Status
  500. // Endpoint 12 High
  501. #define USB_O_RXMAXP12 0x000001C4 // USB Maximum Receive Data
  502. // Endpoint 12
  503. #define USB_O_RXCSRL12 0x000001C6 // USB Receive Control and Status
  504. // Endpoint 12 Low
  505. #define USB_O_RXCSRH12 0x000001C7 // USB Receive Control and Status
  506. // Endpoint 12 High
  507. #define USB_O_RXCOUNT12 0x000001C8 // USB Receive Byte Count Endpoint
  508. // 12
  509. #define USB_O_TXTYPE12 0x000001CA // USB Host Transmit Configure Type
  510. // Endpoint 12
  511. #define USB_O_TXINTERVAL12 0x000001CB // USB Host Transmit Interval
  512. // Endpoint 12
  513. #define USB_O_RXTYPE12 0x000001CC // USB Host Configure Receive Type
  514. // Endpoint 12
  515. #define USB_O_RXINTERVAL12 0x000001CD // USB Host Receive Polling
  516. // Interval Endpoint 12
  517. #define USB_O_TXMAXP13 0x000001D0 // USB Maximum Transmit Data
  518. // Endpoint 13
  519. #define USB_O_TXCSRL13 0x000001D2 // USB Transmit Control and Status
  520. // Endpoint 13 Low
  521. #define USB_O_TXCSRH13 0x000001D3 // USB Transmit Control and Status
  522. // Endpoint 13 High
  523. #define USB_O_RXMAXP13 0x000001D4 // USB Maximum Receive Data
  524. // Endpoint 13
  525. #define USB_O_RXCSRL13 0x000001D6 // USB Receive Control and Status
  526. // Endpoint 13 Low
  527. #define USB_O_RXCSRH13 0x000001D7 // USB Receive Control and Status
  528. // Endpoint 13 High
  529. #define USB_O_RXCOUNT13 0x000001D8 // USB Receive Byte Count Endpoint
  530. // 13
  531. #define USB_O_TXTYPE13 0x000001DA // USB Host Transmit Configure Type
  532. // Endpoint 13
  533. #define USB_O_TXINTERVAL13 0x000001DB // USB Host Transmit Interval
  534. // Endpoint 13
  535. #define USB_O_RXTYPE13 0x000001DC // USB Host Configure Receive Type
  536. // Endpoint 13
  537. #define USB_O_RXINTERVAL13 0x000001DD // USB Host Receive Polling
  538. // Interval Endpoint 13
  539. #define USB_O_TXMAXP14 0x000001E0 // USB Maximum Transmit Data
  540. // Endpoint 14
  541. #define USB_O_TXCSRL14 0x000001E2 // USB Transmit Control and Status
  542. // Endpoint 14 Low
  543. #define USB_O_TXCSRH14 0x000001E3 // USB Transmit Control and Status
  544. // Endpoint 14 High
  545. #define USB_O_RXMAXP14 0x000001E4 // USB Maximum Receive Data
  546. // Endpoint 14
  547. #define USB_O_RXCSRL14 0x000001E6 // USB Receive Control and Status
  548. // Endpoint 14 Low
  549. #define USB_O_RXCSRH14 0x000001E7 // USB Receive Control and Status
  550. // Endpoint 14 High
  551. #define USB_O_RXCOUNT14 0x000001E8 // USB Receive Byte Count Endpoint
  552. // 14
  553. #define USB_O_TXTYPE14 0x000001EA // USB Host Transmit Configure Type
  554. // Endpoint 14
  555. #define USB_O_TXINTERVAL14 0x000001EB // USB Host Transmit Interval
  556. // Endpoint 14
  557. #define USB_O_RXTYPE14 0x000001EC // USB Host Configure Receive Type
  558. // Endpoint 14
  559. #define USB_O_RXINTERVAL14 0x000001ED // USB Host Receive Polling
  560. // Interval Endpoint 14
  561. #define USB_O_TXMAXP15 0x000001F0 // USB Maximum Transmit Data
  562. // Endpoint 15
  563. #define USB_O_TXCSRL15 0x000001F2 // USB Transmit Control and Status
  564. // Endpoint 15 Low
  565. #define USB_O_TXCSRH15 0x000001F3 // USB Transmit Control and Status
  566. // Endpoint 15 High
  567. #define USB_O_RXMAXP15 0x000001F4 // USB Maximum Receive Data
  568. // Endpoint 15
  569. #define USB_O_RXCSRL15 0x000001F6 // USB Receive Control and Status
  570. // Endpoint 15 Low
  571. #define USB_O_RXCSRH15 0x000001F7 // USB Receive Control and Status
  572. // Endpoint 15 High
  573. #define USB_O_RXCOUNT15 0x000001F8 // USB Receive Byte Count Endpoint
  574. // 15
  575. #define USB_O_TXTYPE15 0x000001FA // USB Host Transmit Configure Type
  576. // Endpoint 15
  577. #define USB_O_TXINTERVAL15 0x000001FB // USB Host Transmit Interval
  578. // Endpoint 15
  579. #define USB_O_RXTYPE15 0x000001FC // USB Host Configure Receive Type
  580. // Endpoint 15
  581. #define USB_O_RXINTERVAL15 0x000001FD // USB Host Receive Polling
  582. // Interval Endpoint 15
  583. #define USB_O_RQPKTCOUNT1 0x00000304 // USB Request Packet Count in
  584. // Block Transfer Endpoint 1
  585. #define USB_O_RQPKTCOUNT2 0x00000308 // USB Request Packet Count in
  586. // Block Transfer Endpoint 2
  587. #define USB_O_RQPKTCOUNT3 0x0000030C // USB Request Packet Count in
  588. // Block Transfer Endpoint 3
  589. #define USB_O_RQPKTCOUNT4 0x00000310 // USB Request Packet Count in
  590. // Block Transfer Endpoint 4
  591. #define USB_O_RQPKTCOUNT5 0x00000314 // USB Request Packet Count in
  592. // Block Transfer Endpoint 5
  593. #define USB_O_RQPKTCOUNT6 0x00000318 // USB Request Packet Count in
  594. // Block Transfer Endpoint 6
  595. #define USB_O_RQPKTCOUNT7 0x0000031C // USB Request Packet Count in
  596. // Block Transfer Endpoint 7
  597. #define USB_O_RQPKTCOUNT8 0x00000320 // USB Request Packet Count in
  598. // Block Transfer Endpoint 8
  599. #define USB_O_RQPKTCOUNT9 0x00000324 // USB Request Packet Count in
  600. // Block Transfer Endpoint 9
  601. #define USB_O_RQPKTCOUNT10 0x00000328 // USB Request Packet Count in
  602. // Block Transfer Endpoint 10
  603. #define USB_O_RQPKTCOUNT11 0x0000032C // USB Request Packet Count in
  604. // Block Transfer Endpoint 11
  605. #define USB_O_RQPKTCOUNT12 0x00000330 // USB Request Packet Count in
  606. // Block Transfer Endpoint 12
  607. #define USB_O_RQPKTCOUNT13 0x00000334 // USB Request Packet Count in
  608. // Block Transfer Endpoint 13
  609. #define USB_O_RQPKTCOUNT14 0x00000338 // USB Request Packet Count in
  610. // Block Transfer Endpoint 14
  611. #define USB_O_RQPKTCOUNT15 0x0000033C // USB Request Packet Count in
  612. // Block Transfer Endpoint 15
  613. #define USB_O_RXDPKTBUFDIS 0x00000340 // USB Receive Double Packet Buffer
  614. // Disable
  615. #define USB_O_TXDPKTBUFDIS 0x00000342 // USB Transmit Double Packet
  616. // Buffer Disable
  617. #define USB_O_EPC 0x00000400 // USB External Power Control
  618. #define USB_O_EPCRIS 0x00000404 // USB External Power Control Raw
  619. // Interrupt Status
  620. #define USB_O_EPCIM 0x00000408 // USB External Power Control
  621. // Interrupt Mask
  622. #define USB_O_EPCISC 0x0000040C // USB External Power Control
  623. // Interrupt Status and Clear
  624. #define USB_O_DRRIS 0x00000410 // USB Device RESUME Raw Interrupt
  625. // Status
  626. #define USB_O_DRIM 0x00000414 // USB Device RESUME Interrupt Mask
  627. #define USB_O_DRISC 0x00000418 // USB Device RESUME Interrupt
  628. // Status and Clear
  629. #define USB_O_GPCS 0x0000041C // USB General-Purpose Control and
  630. // Status
  631. #define USB_O_VDC 0x00000430 // USB VBUS Droop Control
  632. #define USB_O_VDCRIS 0x00000434 // USB VBUS Droop Control Raw
  633. // Interrupt Status
  634. #define USB_O_VDCIM 0x00000438 // USB VBUS Droop Control Interrupt
  635. // Mask
  636. #define USB_O_VDCISC 0x0000043C // USB VBUS Droop Control Interrupt
  637. // Status and Clear
  638. #define USB_O_IDVRIS 0x00000444 // USB ID Valid Detect Raw
  639. // Interrupt Status
  640. #define USB_O_IDVIM 0x00000448 // USB ID Valid Detect Interrupt
  641. // Mask
  642. #define USB_O_IDVISC 0x0000044C // USB ID Valid Detect Interrupt
  643. // Status and Clear
  644. #define USB_O_DMASEL 0x00000450 // USB DMA Select
  645. #define USB_O_PP 0x00000FC0 // USB Peripheral Properties
  646. //*****************************************************************************
  647. //
  648. // The following are defines for the bit fields in the USB_O_FADDR register.
  649. //
  650. //*****************************************************************************
  651. #define USB_FADDR_M 0x0000007F // Function Address
  652. #define USB_FADDR_S 0
  653. //*****************************************************************************
  654. //
  655. // The following are defines for the bit fields in the USB_O_POWER register.
  656. //
  657. //*****************************************************************************
  658. #define USB_POWER_ISOUP 0x00000080 // Isochronous Update
  659. #define USB_POWER_SOFTCONN 0x00000040 // Soft Connect/Disconnect
  660. #define USB_POWER_RESET 0x00000008 // RESET Signaling
  661. #define USB_POWER_RESUME 0x00000004 // RESUME Signaling
  662. #define USB_POWER_SUSPEND 0x00000002 // SUSPEND Mode
  663. #define USB_POWER_PWRDNPHY 0x00000001 // Power Down PHY
  664. //*****************************************************************************
  665. //
  666. // The following are defines for the bit fields in the USB_O_TXIS register.
  667. //
  668. //*****************************************************************************
  669. #define USB_TXIS_EP15 0x00008000 // TX Endpoint 15 Interrupt
  670. #define USB_TXIS_EP14 0x00004000 // TX Endpoint 14 Interrupt
  671. #define USB_TXIS_EP13 0x00002000 // TX Endpoint 13 Interrupt
  672. #define USB_TXIS_EP12 0x00001000 // TX Endpoint 12 Interrupt
  673. #define USB_TXIS_EP11 0x00000800 // TX Endpoint 11 Interrupt
  674. #define USB_TXIS_EP10 0x00000400 // TX Endpoint 10 Interrupt
  675. #define USB_TXIS_EP9 0x00000200 // TX Endpoint 9 Interrupt
  676. #define USB_TXIS_EP8 0x00000100 // TX Endpoint 8 Interrupt
  677. #define USB_TXIS_EP7 0x00000080 // TX Endpoint 7 Interrupt
  678. #define USB_TXIS_EP6 0x00000040 // TX Endpoint 6 Interrupt
  679. #define USB_TXIS_EP5 0x00000020 // TX Endpoint 5 Interrupt
  680. #define USB_TXIS_EP4 0x00000010 // TX Endpoint 4 Interrupt
  681. #define USB_TXIS_EP3 0x00000008 // TX Endpoint 3 Interrupt
  682. #define USB_TXIS_EP2 0x00000004 // TX Endpoint 2 Interrupt
  683. #define USB_TXIS_EP1 0x00000002 // TX Endpoint 1 Interrupt
  684. #define USB_TXIS_EP0 0x00000001 // TX and RX Endpoint 0 Interrupt
  685. //*****************************************************************************
  686. //
  687. // The following are defines for the bit fields in the USB_O_RXIS register.
  688. //
  689. //*****************************************************************************
  690. #define USB_RXIS_EP15 0x00008000 // RX Endpoint 15 Interrupt
  691. #define USB_RXIS_EP14 0x00004000 // RX Endpoint 14 Interrupt
  692. #define USB_RXIS_EP13 0x00002000 // RX Endpoint 13 Interrupt
  693. #define USB_RXIS_EP12 0x00001000 // RX Endpoint 12 Interrupt
  694. #define USB_RXIS_EP11 0x00000800 // RX Endpoint 11 Interrupt
  695. #define USB_RXIS_EP10 0x00000400 // RX Endpoint 10 Interrupt
  696. #define USB_RXIS_EP9 0x00000200 // RX Endpoint 9 Interrupt
  697. #define USB_RXIS_EP8 0x00000100 // RX Endpoint 8 Interrupt
  698. #define USB_RXIS_EP7 0x00000080 // RX Endpoint 7 Interrupt
  699. #define USB_RXIS_EP6 0x00000040 // RX Endpoint 6 Interrupt
  700. #define USB_RXIS_EP5 0x00000020 // RX Endpoint 5 Interrupt
  701. #define USB_RXIS_EP4 0x00000010 // RX Endpoint 4 Interrupt
  702. #define USB_RXIS_EP3 0x00000008 // RX Endpoint 3 Interrupt
  703. #define USB_RXIS_EP2 0x00000004 // RX Endpoint 2 Interrupt
  704. #define USB_RXIS_EP1 0x00000002 // RX Endpoint 1 Interrupt
  705. //*****************************************************************************
  706. //
  707. // The following are defines for the bit fields in the USB_O_TXIE register.
  708. //
  709. //*****************************************************************************
  710. #define USB_TXIE_EP15 0x00008000 // TX Endpoint 15 Interrupt Enable
  711. #define USB_TXIE_EP14 0x00004000 // TX Endpoint 14 Interrupt Enable
  712. #define USB_TXIE_EP13 0x00002000 // TX Endpoint 13 Interrupt Enable
  713. #define USB_TXIE_EP12 0x00001000 // TX Endpoint 12 Interrupt Enable
  714. #define USB_TXIE_EP11 0x00000800 // TX Endpoint 11 Interrupt Enable
  715. #define USB_TXIE_EP10 0x00000400 // TX Endpoint 10 Interrupt Enable
  716. #define USB_TXIE_EP9 0x00000200 // TX Endpoint 9 Interrupt Enable
  717. #define USB_TXIE_EP8 0x00000100 // TX Endpoint 8 Interrupt Enable
  718. #define USB_TXIE_EP7 0x00000080 // TX Endpoint 7 Interrupt Enable
  719. #define USB_TXIE_EP6 0x00000040 // TX Endpoint 6 Interrupt Enable
  720. #define USB_TXIE_EP5 0x00000020 // TX Endpoint 5 Interrupt Enable
  721. #define USB_TXIE_EP4 0x00000010 // TX Endpoint 4 Interrupt Enable
  722. #define USB_TXIE_EP3 0x00000008 // TX Endpoint 3 Interrupt Enable
  723. #define USB_TXIE_EP2 0x00000004 // TX Endpoint 2 Interrupt Enable
  724. #define USB_TXIE_EP1 0x00000002 // TX Endpoint 1 Interrupt Enable
  725. #define USB_TXIE_EP0 0x00000001 // TX and RX Endpoint 0 Interrupt
  726. // Enable
  727. //*****************************************************************************
  728. //
  729. // The following are defines for the bit fields in the USB_O_RXIE register.
  730. //
  731. //*****************************************************************************
  732. #define USB_RXIE_EP15 0x00008000 // RX Endpoint 15 Interrupt Enable
  733. #define USB_RXIE_EP14 0x00004000 // RX Endpoint 14 Interrupt Enable
  734. #define USB_RXIE_EP13 0x00002000 // RX Endpoint 13 Interrupt Enable
  735. #define USB_RXIE_EP12 0x00001000 // RX Endpoint 12 Interrupt Enable
  736. #define USB_RXIE_EP11 0x00000800 // RX Endpoint 11 Interrupt Enable
  737. #define USB_RXIE_EP10 0x00000400 // RX Endpoint 10 Interrupt Enable
  738. #define USB_RXIE_EP9 0x00000200 // RX Endpoint 9 Interrupt Enable
  739. #define USB_RXIE_EP8 0x00000100 // RX Endpoint 8 Interrupt Enable
  740. #define USB_RXIE_EP7 0x00000080 // RX Endpoint 7 Interrupt Enable
  741. #define USB_RXIE_EP6 0x00000040 // RX Endpoint 6 Interrupt Enable
  742. #define USB_RXIE_EP5 0x00000020 // RX Endpoint 5 Interrupt Enable
  743. #define USB_RXIE_EP4 0x00000010 // RX Endpoint 4 Interrupt Enable
  744. #define USB_RXIE_EP3 0x00000008 // RX Endpoint 3 Interrupt Enable
  745. #define USB_RXIE_EP2 0x00000004 // RX Endpoint 2 Interrupt Enable
  746. #define USB_RXIE_EP1 0x00000002 // RX Endpoint 1 Interrupt Enable
  747. //*****************************************************************************
  748. //
  749. // The following are defines for the bit fields in the USB_O_IS register.
  750. //
  751. //*****************************************************************************
  752. #define USB_IS_VBUSERR 0x00000080 // VBUS Error
  753. #define USB_IS_SESREQ 0x00000040 // SESSION REQUEST
  754. #define USB_IS_DISCON 0x00000020 // Session Disconnect
  755. #define USB_IS_CONN 0x00000010 // Session Connect
  756. #define USB_IS_SOF 0x00000008 // Start of Frame
  757. #define USB_IS_BABBLE 0x00000004 // Babble Detected
  758. #define USB_IS_RESET 0x00000004 // RESET Signaling Detected
  759. #define USB_IS_RESUME 0x00000002 // RESUME Signaling Detected
  760. #define USB_IS_SUSPEND 0x00000001 // SUSPEND Signaling Detected
  761. //*****************************************************************************
  762. //
  763. // The following are defines for the bit fields in the USB_O_IE register.
  764. //
  765. //*****************************************************************************
  766. #define USB_IE_VBUSERR 0x00000080 // Enable VBUS Error Interrupt
  767. #define USB_IE_SESREQ 0x00000040 // Enable Session Request
  768. #define USB_IE_DISCON 0x00000020 // Enable Disconnect Interrupt
  769. #define USB_IE_CONN 0x00000010 // Enable Connect Interrupt
  770. #define USB_IE_SOF 0x00000008 // Enable Start-of-Frame Interrupt
  771. #define USB_IE_BABBLE 0x00000004 // Enable Babble Interrupt
  772. #define USB_IE_RESET 0x00000004 // Enable RESET Interrupt
  773. #define USB_IE_RESUME 0x00000002 // Enable RESUME Interrupt
  774. #define USB_IE_SUSPND 0x00000001 // Enable SUSPEND Interrupt
  775. //*****************************************************************************
  776. //
  777. // The following are defines for the bit fields in the USB_O_FRAME register.
  778. //
  779. //*****************************************************************************
  780. #define USB_FRAME_M 0x000007FF // Frame Number
  781. #define USB_FRAME_S 0
  782. //*****************************************************************************
  783. //
  784. // The following are defines for the bit fields in the USB_O_EPIDX register.
  785. //
  786. //*****************************************************************************
  787. #define USB_EPIDX_EPIDX_M 0x0000000F // Endpoint Index
  788. #define USB_EPIDX_EPIDX_S 0
  789. //*****************************************************************************
  790. //
  791. // The following are defines for the bit fields in the USB_O_TEST register.
  792. //
  793. //*****************************************************************************
  794. #define USB_TEST_FORCEH 0x00000080 // Force Host Mode
  795. #define USB_TEST_FIFOACC 0x00000040 // FIFO Access
  796. #define USB_TEST_FORCEFS 0x00000020 // Force Full-Speed Mode
  797. //*****************************************************************************
  798. //
  799. // The following are defines for the bit fields in the USB_O_FIFO0 register.
  800. //
  801. //*****************************************************************************
  802. #define USB_FIFO0_EPDATA_M 0xFFFFFFFF // Endpoint Data
  803. #define USB_FIFO0_EPDATA_S 0
  804. //*****************************************************************************
  805. //
  806. // The following are defines for the bit fields in the USB_O_FIFO1 register.
  807. //
  808. //*****************************************************************************
  809. #define USB_FIFO1_EPDATA_M 0xFFFFFFFF // Endpoint Data
  810. #define USB_FIFO1_EPDATA_S 0
  811. //*****************************************************************************
  812. //
  813. // The following are defines for the bit fields in the USB_O_FIFO2 register.
  814. //
  815. //*****************************************************************************
  816. #define USB_FIFO2_EPDATA_M 0xFFFFFFFF // Endpoint Data
  817. #define USB_FIFO2_EPDATA_S 0
  818. //*****************************************************************************
  819. //
  820. // The following are defines for the bit fields in the USB_O_FIFO3 register.
  821. //
  822. //*****************************************************************************
  823. #define USB_FIFO3_EPDATA_M 0xFFFFFFFF // Endpoint Data
  824. #define USB_FIFO3_EPDATA_S 0
  825. //*****************************************************************************
  826. //
  827. // The following are defines for the bit fields in the USB_O_FIFO4 register.
  828. //
  829. //*****************************************************************************
  830. #define USB_FIFO4_EPDATA_M 0xFFFFFFFF // Endpoint Data
  831. #define USB_FIFO4_EPDATA_S 0
  832. //*****************************************************************************
  833. //
  834. // The following are defines for the bit fields in the USB_O_FIFO5 register.
  835. //
  836. //*****************************************************************************
  837. #define USB_FIFO5_EPDATA_M 0xFFFFFFFF // Endpoint Data
  838. #define USB_FIFO5_EPDATA_S 0
  839. //*****************************************************************************
  840. //
  841. // The following are defines for the bit fields in the USB_O_FIFO6 register.
  842. //
  843. //*****************************************************************************
  844. #define USB_FIFO6_EPDATA_M 0xFFFFFFFF // Endpoint Data
  845. #define USB_FIFO6_EPDATA_S 0
  846. //*****************************************************************************
  847. //
  848. // The following are defines for the bit fields in the USB_O_FIFO7 register.
  849. //
  850. //*****************************************************************************
  851. #define USB_FIFO7_EPDATA_M 0xFFFFFFFF // Endpoint Data
  852. #define USB_FIFO7_EPDATA_S 0
  853. //*****************************************************************************
  854. //
  855. // The following are defines for the bit fields in the USB_O_FIFO8 register.
  856. //
  857. //*****************************************************************************
  858. #define USB_FIFO8_EPDATA_M 0xFFFFFFFF // Endpoint Data
  859. #define USB_FIFO8_EPDATA_S 0
  860. //*****************************************************************************
  861. //
  862. // The following are defines for the bit fields in the USB_O_FIFO9 register.
  863. //
  864. //*****************************************************************************
  865. #define USB_FIFO9_EPDATA_M 0xFFFFFFFF // Endpoint Data
  866. #define USB_FIFO9_EPDATA_S 0
  867. //*****************************************************************************
  868. //
  869. // The following are defines for the bit fields in the USB_O_FIFO10 register.
  870. //
  871. //*****************************************************************************
  872. #define USB_FIFO10_EPDATA_M 0xFFFFFFFF // Endpoint Data
  873. #define USB_FIFO10_EPDATA_S 0
  874. //*****************************************************************************
  875. //
  876. // The following are defines for the bit fields in the USB_O_FIFO11 register.
  877. //
  878. //*****************************************************************************
  879. #define USB_FIFO11_EPDATA_M 0xFFFFFFFF // Endpoint Data
  880. #define USB_FIFO11_EPDATA_S 0
  881. //*****************************************************************************
  882. //
  883. // The following are defines for the bit fields in the USB_O_FIFO12 register.
  884. //
  885. //*****************************************************************************
  886. #define USB_FIFO12_EPDATA_M 0xFFFFFFFF // Endpoint Data
  887. #define USB_FIFO12_EPDATA_S 0
  888. //*****************************************************************************
  889. //
  890. // The following are defines for the bit fields in the USB_O_FIFO13 register.
  891. //
  892. //*****************************************************************************
  893. #define USB_FIFO13_EPDATA_M 0xFFFFFFFF // Endpoint Data
  894. #define USB_FIFO13_EPDATA_S 0
  895. //*****************************************************************************
  896. //
  897. // The following are defines for the bit fields in the USB_O_FIFO14 register.
  898. //
  899. //*****************************************************************************
  900. #define USB_FIFO14_EPDATA_M 0xFFFFFFFF // Endpoint Data
  901. #define USB_FIFO14_EPDATA_S 0
  902. //*****************************************************************************
  903. //
  904. // The following are defines for the bit fields in the USB_O_FIFO15 register.
  905. //
  906. //*****************************************************************************
  907. #define USB_FIFO15_EPDATA_M 0xFFFFFFFF // Endpoint Data
  908. #define USB_FIFO15_EPDATA_S 0
  909. //*****************************************************************************
  910. //
  911. // The following are defines for the bit fields in the USB_O_DEVCTL register.
  912. //
  913. //*****************************************************************************
  914. #define USB_DEVCTL_DEV 0x00000080 // Device Mode
  915. #define USB_DEVCTL_FSDEV 0x00000040 // Full-Speed Device Detected
  916. #define USB_DEVCTL_LSDEV 0x00000020 // Low-Speed Device Detected
  917. #define USB_DEVCTL_VBUS_M 0x00000018 // VBUS Level
  918. #define USB_DEVCTL_VBUS_NONE 0x00000000 // Below SessionEnd
  919. #define USB_DEVCTL_VBUS_SEND 0x00000008 // Above SessionEnd, below AValid
  920. #define USB_DEVCTL_VBUS_AVALID 0x00000010 // Above AValid, below VBUSValid
  921. #define USB_DEVCTL_VBUS_VALID 0x00000018 // Above VBUSValid
  922. #define USB_DEVCTL_HOST 0x00000004 // Host Mode
  923. #define USB_DEVCTL_HOSTREQ 0x00000002 // Host Request
  924. #define USB_DEVCTL_SESSION 0x00000001 // Session Start/End
  925. //*****************************************************************************
  926. //
  927. // The following are defines for the bit fields in the USB_O_TXFIFOSZ register.
  928. //
  929. //*****************************************************************************
  930. #define USB_TXFIFOSZ_DPB 0x00000010 // Double Packet Buffer Support
  931. #define USB_TXFIFOSZ_SIZE_M 0x0000000F // Max Packet Size
  932. #define USB_TXFIFOSZ_SIZE_8 0x00000000 // 8
  933. #define USB_TXFIFOSZ_SIZE_16 0x00000001 // 16
  934. #define USB_TXFIFOSZ_SIZE_32 0x00000002 // 32
  935. #define USB_TXFIFOSZ_SIZE_64 0x00000003 // 64
  936. #define USB_TXFIFOSZ_SIZE_128 0x00000004 // 128
  937. #define USB_TXFIFOSZ_SIZE_256 0x00000005 // 256
  938. #define USB_TXFIFOSZ_SIZE_512 0x00000006 // 512
  939. #define USB_TXFIFOSZ_SIZE_1024 0x00000007 // 1024
  940. #define USB_TXFIFOSZ_SIZE_2048 0x00000008 // 2048
  941. //*****************************************************************************
  942. //
  943. // The following are defines for the bit fields in the USB_O_RXFIFOSZ register.
  944. //
  945. //*****************************************************************************
  946. #define USB_RXFIFOSZ_DPB 0x00000010 // Double Packet Buffer Support
  947. #define USB_RXFIFOSZ_SIZE_M 0x0000000F // Max Packet Size
  948. #define USB_RXFIFOSZ_SIZE_8 0x00000000 // 8
  949. #define USB_RXFIFOSZ_SIZE_16 0x00000001 // 16
  950. #define USB_RXFIFOSZ_SIZE_32 0x00000002 // 32
  951. #define USB_RXFIFOSZ_SIZE_64 0x00000003 // 64
  952. #define USB_RXFIFOSZ_SIZE_128 0x00000004 // 128
  953. #define USB_RXFIFOSZ_SIZE_256 0x00000005 // 256
  954. #define USB_RXFIFOSZ_SIZE_512 0x00000006 // 512
  955. #define USB_RXFIFOSZ_SIZE_1024 0x00000007 // 1024
  956. #define USB_RXFIFOSZ_SIZE_2048 0x00000008 // 2048
  957. //*****************************************************************************
  958. //
  959. // The following are defines for the bit fields in the USB_O_TXFIFOADD
  960. // register.
  961. //
  962. //*****************************************************************************
  963. #define USB_TXFIFOADD_ADDR_M 0x000001FF // Transmit/Receive Start Address
  964. #define USB_TXFIFOADD_ADDR_S 0
  965. //*****************************************************************************
  966. //
  967. // The following are defines for the bit fields in the USB_O_RXFIFOADD
  968. // register.
  969. //
  970. //*****************************************************************************
  971. #define USB_RXFIFOADD_ADDR_M 0x000001FF // Transmit/Receive Start Address
  972. #define USB_RXFIFOADD_ADDR_S 0
  973. //*****************************************************************************
  974. //
  975. // The following are defines for the bit fields in the USB_O_CONTIM register.
  976. //
  977. //*****************************************************************************
  978. #define USB_CONTIM_WTCON_M 0x000000F0 // Connect Wait
  979. #define USB_CONTIM_WTID_M 0x0000000F // Wait ID
  980. #define USB_CONTIM_WTCON_S 4
  981. #define USB_CONTIM_WTID_S 0
  982. //*****************************************************************************
  983. //
  984. // The following are defines for the bit fields in the USB_O_VPLEN register.
  985. //
  986. //*****************************************************************************
  987. #define USB_VPLEN_VPLEN_M 0x000000FF // VBUS Pulse Length
  988. #define USB_VPLEN_VPLEN_S 0
  989. //*****************************************************************************
  990. //
  991. // The following are defines for the bit fields in the USB_O_FSEOF register.
  992. //
  993. //*****************************************************************************
  994. #define USB_FSEOF_FSEOFG_M 0x000000FF // Full-Speed End-of-Frame Gap
  995. #define USB_FSEOF_FSEOFG_S 0
  996. //*****************************************************************************
  997. //
  998. // The following are defines for the bit fields in the USB_O_LSEOF register.
  999. //
  1000. //*****************************************************************************
  1001. #define USB_LSEOF_LSEOFG_M 0x000000FF // Low-Speed End-of-Frame Gap
  1002. #define USB_LSEOF_LSEOFG_S 0
  1003. //*****************************************************************************
  1004. //
  1005. // The following are defines for the bit fields in the USB_O_TXFUNCADDR0
  1006. // register.
  1007. //
  1008. //*****************************************************************************
  1009. #define USB_TXFUNCADDR0_ADDR_M 0x0000007F // Device Address
  1010. #define USB_TXFUNCADDR0_ADDR_S 0
  1011. //*****************************************************************************
  1012. //
  1013. // The following are defines for the bit fields in the USB_O_TXHUBADDR0
  1014. // register.
  1015. //
  1016. //*****************************************************************************
  1017. #define USB_TXHUBADDR0_ADDR_M 0x0000007F // Hub Address
  1018. #define USB_TXHUBADDR0_ADDR_S 0
  1019. //*****************************************************************************
  1020. //
  1021. // The following are defines for the bit fields in the USB_O_TXHUBPORT0
  1022. // register.
  1023. //
  1024. //*****************************************************************************
  1025. #define USB_TXHUBPORT0_PORT_M 0x0000007F // Hub Port
  1026. #define USB_TXHUBPORT0_PORT_S 0
  1027. //*****************************************************************************
  1028. //
  1029. // The following are defines for the bit fields in the USB_O_TXFUNCADDR1
  1030. // register.
  1031. //
  1032. //*****************************************************************************
  1033. #define USB_TXFUNCADDR1_ADDR_M 0x0000007F // Device Address
  1034. #define USB_TXFUNCADDR1_ADDR_S 0
  1035. //*****************************************************************************
  1036. //
  1037. // The following are defines for the bit fields in the USB_O_TXHUBADDR1
  1038. // register.
  1039. //
  1040. //*****************************************************************************
  1041. #define USB_TXHUBADDR1_ADDR_M 0x0000007F // Hub Address
  1042. #define USB_TXHUBADDR1_ADDR_S 0
  1043. //*****************************************************************************
  1044. //
  1045. // The following are defines for the bit fields in the USB_O_TXHUBPORT1
  1046. // register.
  1047. //
  1048. //*****************************************************************************
  1049. #define USB_TXHUBPORT1_PORT_M 0x0000007F // Hub Port
  1050. #define USB_TXHUBPORT1_PORT_S 0
  1051. //*****************************************************************************
  1052. //
  1053. // The following are defines for the bit fields in the USB_O_RXFUNCADDR1
  1054. // register.
  1055. //
  1056. //*****************************************************************************
  1057. #define USB_RXFUNCADDR1_ADDR_M 0x0000007F // Device Address
  1058. #define USB_RXFUNCADDR1_ADDR_S 0
  1059. //*****************************************************************************
  1060. //
  1061. // The following are defines for the bit fields in the USB_O_RXHUBADDR1
  1062. // register.
  1063. //
  1064. //*****************************************************************************
  1065. #define USB_RXHUBADDR1_ADDR_M 0x0000007F // Hub Address
  1066. #define USB_RXHUBADDR1_ADDR_S 0
  1067. //*****************************************************************************
  1068. //
  1069. // The following are defines for the bit fields in the USB_O_RXHUBPORT1
  1070. // register.
  1071. //
  1072. //*****************************************************************************
  1073. #define USB_RXHUBPORT1_PORT_M 0x0000007F // Hub Port
  1074. #define USB_RXHUBPORT1_PORT_S 0
  1075. //*****************************************************************************
  1076. //
  1077. // The following are defines for the bit fields in the USB_O_TXFUNCADDR2
  1078. // register.
  1079. //
  1080. //*****************************************************************************
  1081. #define USB_TXFUNCADDR2_ADDR_M 0x0000007F // Device Address
  1082. #define USB_TXFUNCADDR2_ADDR_S 0
  1083. //*****************************************************************************
  1084. //
  1085. // The following are defines for the bit fields in the USB_O_TXHUBADDR2
  1086. // register.
  1087. //
  1088. //*****************************************************************************
  1089. #define USB_TXHUBADDR2_ADDR_M 0x0000007F // Hub Address
  1090. #define USB_TXHUBADDR2_ADDR_S 0
  1091. //*****************************************************************************
  1092. //
  1093. // The following are defines for the bit fields in the USB_O_TXHUBPORT2
  1094. // register.
  1095. //
  1096. //*****************************************************************************
  1097. #define USB_TXHUBPORT2_PORT_M 0x0000007F // Hub Port
  1098. #define USB_TXHUBPORT2_PORT_S 0
  1099. //*****************************************************************************
  1100. //
  1101. // The following are defines for the bit fields in the USB_O_RXFUNCADDR2
  1102. // register.
  1103. //
  1104. //*****************************************************************************
  1105. #define USB_RXFUNCADDR2_ADDR_M 0x0000007F // Device Address
  1106. #define USB_RXFUNCADDR2_ADDR_S 0
  1107. //*****************************************************************************
  1108. //
  1109. // The following are defines for the bit fields in the USB_O_RXHUBADDR2
  1110. // register.
  1111. //
  1112. //*****************************************************************************
  1113. #define USB_RXHUBADDR2_ADDR_M 0x0000007F // Hub Address
  1114. #define USB_RXHUBADDR2_ADDR_S 0
  1115. //*****************************************************************************
  1116. //
  1117. // The following are defines for the bit fields in the USB_O_RXHUBPORT2
  1118. // register.
  1119. //
  1120. //*****************************************************************************
  1121. #define USB_RXHUBPORT2_PORT_M 0x0000007F // Hub Port
  1122. #define USB_RXHUBPORT2_PORT_S 0
  1123. //*****************************************************************************
  1124. //
  1125. // The following are defines for the bit fields in the USB_O_TXFUNCADDR3
  1126. // register.
  1127. //
  1128. //*****************************************************************************
  1129. #define USB_TXFUNCADDR3_ADDR_M 0x0000007F // Device Address
  1130. #define USB_TXFUNCADDR3_ADDR_S 0
  1131. //*****************************************************************************
  1132. //
  1133. // The following are defines for the bit fields in the USB_O_TXHUBADDR3
  1134. // register.
  1135. //
  1136. //*****************************************************************************
  1137. #define USB_TXHUBADDR3_ADDR_M 0x0000007F // Hub Address
  1138. #define USB_TXHUBADDR3_ADDR_S 0
  1139. //*****************************************************************************
  1140. //
  1141. // The following are defines for the bit fields in the USB_O_TXHUBPORT3
  1142. // register.
  1143. //
  1144. //*****************************************************************************
  1145. #define USB_TXHUBPORT3_PORT_M 0x0000007F // Hub Port
  1146. #define USB_TXHUBPORT3_PORT_S 0
  1147. //*****************************************************************************
  1148. //
  1149. // The following are defines for the bit fields in the USB_O_RXFUNCADDR3
  1150. // register.
  1151. //
  1152. //*****************************************************************************
  1153. #define USB_RXFUNCADDR3_ADDR_M 0x0000007F // Device Address
  1154. #define USB_RXFUNCADDR3_ADDR_S 0
  1155. //*****************************************************************************
  1156. //
  1157. // The following are defines for the bit fields in the USB_O_RXHUBADDR3
  1158. // register.
  1159. //
  1160. //*****************************************************************************
  1161. #define USB_RXHUBADDR3_ADDR_M 0x0000007F // Hub Address
  1162. #define USB_RXHUBADDR3_ADDR_S 0
  1163. //*****************************************************************************
  1164. //
  1165. // The following are defines for the bit fields in the USB_O_RXHUBPORT3
  1166. // register.
  1167. //
  1168. //*****************************************************************************
  1169. #define USB_RXHUBPORT3_PORT_M 0x0000007F // Hub Port
  1170. #define USB_RXHUBPORT3_PORT_S 0
  1171. //*****************************************************************************
  1172. //
  1173. // The following are defines for the bit fields in the USB_O_TXFUNCADDR4
  1174. // register.
  1175. //
  1176. //*****************************************************************************
  1177. #define USB_TXFUNCADDR4_ADDR_M 0x0000007F // Device Address
  1178. #define USB_TXFUNCADDR4_ADDR_S 0
  1179. //*****************************************************************************
  1180. //
  1181. // The following are defines for the bit fields in the USB_O_TXHUBADDR4
  1182. // register.
  1183. //
  1184. //*****************************************************************************
  1185. #define USB_TXHUBADDR4_ADDR_M 0x0000007F // Hub Address
  1186. #define USB_TXHUBADDR4_ADDR_S 0
  1187. //*****************************************************************************
  1188. //
  1189. // The following are defines for the bit fields in the USB_O_TXHUBPORT4
  1190. // register.
  1191. //
  1192. //*****************************************************************************
  1193. #define USB_TXHUBPORT4_PORT_M 0x0000007F // Hub Port
  1194. #define USB_TXHUBPORT4_PORT_S 0
  1195. //*****************************************************************************
  1196. //
  1197. // The following are defines for the bit fields in the USB_O_RXFUNCADDR4
  1198. // register.
  1199. //
  1200. //*****************************************************************************
  1201. #define USB_RXFUNCADDR4_ADDR_M 0x0000007F // Device Address
  1202. #define USB_RXFUNCADDR4_ADDR_S 0
  1203. //*****************************************************************************
  1204. //
  1205. // The following are defines for the bit fields in the USB_O_RXHUBADDR4
  1206. // register.
  1207. //
  1208. //*****************************************************************************
  1209. #define USB_RXHUBADDR4_ADDR_M 0x0000007F // Hub Address
  1210. #define USB_RXHUBADDR4_ADDR_S 0
  1211. //*****************************************************************************
  1212. //
  1213. // The following are defines for the bit fields in the USB_O_RXHUBPORT4
  1214. // register.
  1215. //
  1216. //*****************************************************************************
  1217. #define USB_RXHUBPORT4_PORT_M 0x0000007F // Hub Port
  1218. #define USB_RXHUBPORT4_PORT_S 0
  1219. //*****************************************************************************
  1220. //
  1221. // The following are defines for the bit fields in the USB_O_TXFUNCADDR5
  1222. // register.
  1223. //
  1224. //*****************************************************************************
  1225. #define USB_TXFUNCADDR5_ADDR_M 0x0000007F // Device Address
  1226. #define USB_TXFUNCADDR5_ADDR_S 0
  1227. //*****************************************************************************
  1228. //
  1229. // The following are defines for the bit fields in the USB_O_TXHUBADDR5
  1230. // register.
  1231. //
  1232. //*****************************************************************************
  1233. #define USB_TXHUBADDR5_ADDR_M 0x0000007F // Hub Address
  1234. #define USB_TXHUBADDR5_ADDR_S 0
  1235. //*****************************************************************************
  1236. //
  1237. // The following are defines for the bit fields in the USB_O_TXHUBPORT5
  1238. // register.
  1239. //
  1240. //*****************************************************************************
  1241. #define USB_TXHUBPORT5_PORT_M 0x0000007F // Hub Port
  1242. #define USB_TXHUBPORT5_PORT_S 0
  1243. //*****************************************************************************
  1244. //
  1245. // The following are defines for the bit fields in the USB_O_RXFUNCADDR5
  1246. // register.
  1247. //
  1248. //*****************************************************************************
  1249. #define USB_RXFUNCADDR5_ADDR_M 0x0000007F // Device Address
  1250. #define USB_RXFUNCADDR5_ADDR_S 0
  1251. //*****************************************************************************
  1252. //
  1253. // The following are defines for the bit fields in the USB_O_RXHUBADDR5
  1254. // register.
  1255. //
  1256. //*****************************************************************************
  1257. #define USB_RXHUBADDR5_ADDR_M 0x0000007F // Hub Address
  1258. #define USB_RXHUBADDR5_ADDR_S 0
  1259. //*****************************************************************************
  1260. //
  1261. // The following are defines for the bit fields in the USB_O_RXHUBPORT5
  1262. // register.
  1263. //
  1264. //*****************************************************************************
  1265. #define USB_RXHUBPORT5_PORT_M 0x0000007F // Hub Port
  1266. #define USB_RXHUBPORT5_PORT_S 0
  1267. //*****************************************************************************
  1268. //
  1269. // The following are defines for the bit fields in the USB_O_TXFUNCADDR6
  1270. // register.
  1271. //
  1272. //*****************************************************************************
  1273. #define USB_TXFUNCADDR6_ADDR_M 0x0000007F // Device Address
  1274. #define USB_TXFUNCADDR6_ADDR_S 0
  1275. //*****************************************************************************
  1276. //
  1277. // The following are defines for the bit fields in the USB_O_TXHUBADDR6
  1278. // register.
  1279. //
  1280. //*****************************************************************************
  1281. #define USB_TXHUBADDR6_ADDR_M 0x0000007F // Hub Address
  1282. #define USB_TXHUBADDR6_ADDR_S 0
  1283. //*****************************************************************************
  1284. //
  1285. // The following are defines for the bit fields in the USB_O_TXHUBPORT6
  1286. // register.
  1287. //
  1288. //*****************************************************************************
  1289. #define USB_TXHUBPORT6_PORT_M 0x0000007F // Hub Port
  1290. #define USB_TXHUBPORT6_PORT_S 0
  1291. //*****************************************************************************
  1292. //
  1293. // The following are defines for the bit fields in the USB_O_RXFUNCADDR6
  1294. // register.
  1295. //
  1296. //*****************************************************************************
  1297. #define USB_RXFUNCADDR6_ADDR_M 0x0000007F // Device Address
  1298. #define USB_RXFUNCADDR6_ADDR_S 0
  1299. //*****************************************************************************
  1300. //
  1301. // The following are defines for the bit fields in the USB_O_RXHUBADDR6
  1302. // register.
  1303. //
  1304. //*****************************************************************************
  1305. #define USB_RXHUBADDR6_ADDR_M 0x0000007F // Hub Address
  1306. #define USB_RXHUBADDR6_ADDR_S 0
  1307. //*****************************************************************************
  1308. //
  1309. // The following are defines for the bit fields in the USB_O_RXHUBPORT6
  1310. // register.
  1311. //
  1312. //*****************************************************************************
  1313. #define USB_RXHUBPORT6_PORT_M 0x0000007F // Hub Port
  1314. #define USB_RXHUBPORT6_PORT_S 0
  1315. //*****************************************************************************
  1316. //
  1317. // The following are defines for the bit fields in the USB_O_TXFUNCADDR7
  1318. // register.
  1319. //
  1320. //*****************************************************************************
  1321. #define USB_TXFUNCADDR7_ADDR_M 0x0000007F // Device Address
  1322. #define USB_TXFUNCADDR7_ADDR_S 0
  1323. //*****************************************************************************
  1324. //
  1325. // The following are defines for the bit fields in the USB_O_TXHUBADDR7
  1326. // register.
  1327. //
  1328. //*****************************************************************************
  1329. #define USB_TXHUBADDR7_ADDR_M 0x0000007F // Hub Address
  1330. #define USB_TXHUBADDR7_ADDR_S 0
  1331. //*****************************************************************************
  1332. //
  1333. // The following are defines for the bit fields in the USB_O_TXHUBPORT7
  1334. // register.
  1335. //
  1336. //*****************************************************************************
  1337. #define USB_TXHUBPORT7_PORT_M 0x0000007F // Hub Port
  1338. #define USB_TXHUBPORT7_PORT_S 0
  1339. //*****************************************************************************
  1340. //
  1341. // The following are defines for the bit fields in the USB_O_RXFUNCADDR7
  1342. // register.
  1343. //
  1344. //*****************************************************************************
  1345. #define USB_RXFUNCADDR7_ADDR_M 0x0000007F // Device Address
  1346. #define USB_RXFUNCADDR7_ADDR_S 0
  1347. //*****************************************************************************
  1348. //
  1349. // The following are defines for the bit fields in the USB_O_RXHUBADDR7
  1350. // register.
  1351. //
  1352. //*****************************************************************************
  1353. #define USB_RXHUBADDR7_ADDR_M 0x0000007F // Hub Address
  1354. #define USB_RXHUBADDR7_ADDR_S 0
  1355. //*****************************************************************************
  1356. //
  1357. // The following are defines for the bit fields in the USB_O_RXHUBPORT7
  1358. // register.
  1359. //
  1360. //*****************************************************************************
  1361. #define USB_RXHUBPORT7_PORT_M 0x0000007F // Hub Port
  1362. #define USB_RXHUBPORT7_PORT_S 0
  1363. //*****************************************************************************
  1364. //
  1365. // The following are defines for the bit fields in the USB_O_TXFUNCADDR8
  1366. // register.
  1367. //
  1368. //*****************************************************************************
  1369. #define USB_TXFUNCADDR8_ADDR_M 0x0000007F // Device Address
  1370. #define USB_TXFUNCADDR8_ADDR_S 0
  1371. //*****************************************************************************
  1372. //
  1373. // The following are defines for the bit fields in the USB_O_TXHUBADDR8
  1374. // register.
  1375. //
  1376. //*****************************************************************************
  1377. #define USB_TXHUBADDR8_ADDR_M 0x0000007F // Hub Address
  1378. #define USB_TXHUBADDR8_ADDR_S 0
  1379. //*****************************************************************************
  1380. //
  1381. // The following are defines for the bit fields in the USB_O_TXHUBPORT8
  1382. // register.
  1383. //
  1384. //*****************************************************************************
  1385. #define USB_TXHUBPORT8_PORT_M 0x0000007F // Hub Port
  1386. #define USB_TXHUBPORT8_PORT_S 0
  1387. //*****************************************************************************
  1388. //
  1389. // The following are defines for the bit fields in the USB_O_RXFUNCADDR8
  1390. // register.
  1391. //
  1392. //*****************************************************************************
  1393. #define USB_RXFUNCADDR8_ADDR_M 0x0000007F // Device Address
  1394. #define USB_RXFUNCADDR8_ADDR_S 0
  1395. //*****************************************************************************
  1396. //
  1397. // The following are defines for the bit fields in the USB_O_RXHUBADDR8
  1398. // register.
  1399. //
  1400. //*****************************************************************************
  1401. #define USB_RXHUBADDR8_ADDR_M 0x0000007F // Hub Address
  1402. #define USB_RXHUBADDR8_ADDR_S 0
  1403. //*****************************************************************************
  1404. //
  1405. // The following are defines for the bit fields in the USB_O_RXHUBPORT8
  1406. // register.
  1407. //
  1408. //*****************************************************************************
  1409. #define USB_RXHUBPORT8_PORT_M 0x0000007F // Hub Port
  1410. #define USB_RXHUBPORT8_PORT_S 0
  1411. //*****************************************************************************
  1412. //
  1413. // The following are defines for the bit fields in the USB_O_TXFUNCADDR9
  1414. // register.
  1415. //
  1416. //*****************************************************************************
  1417. #define USB_TXFUNCADDR9_ADDR_M 0x0000007F // Device Address
  1418. #define USB_TXFUNCADDR9_ADDR_S 0
  1419. //*****************************************************************************
  1420. //
  1421. // The following are defines for the bit fields in the USB_O_TXHUBADDR9
  1422. // register.
  1423. //
  1424. //*****************************************************************************
  1425. #define USB_TXHUBADDR9_ADDR_M 0x0000007F // Hub Address
  1426. #define USB_TXHUBADDR9_ADDR_S 0
  1427. //*****************************************************************************
  1428. //
  1429. // The following are defines for the bit fields in the USB_O_TXHUBPORT9
  1430. // register.
  1431. //
  1432. //*****************************************************************************
  1433. #define USB_TXHUBPORT9_PORT_M 0x0000007F // Hub Port
  1434. #define USB_TXHUBPORT9_PORT_S 0
  1435. //*****************************************************************************
  1436. //
  1437. // The following are defines for the bit fields in the USB_O_RXFUNCADDR9
  1438. // register.
  1439. //
  1440. //*****************************************************************************
  1441. #define USB_RXFUNCADDR9_ADDR_M 0x0000007F // Device Address
  1442. #define USB_RXFUNCADDR9_ADDR_S 0
  1443. //*****************************************************************************
  1444. //
  1445. // The following are defines for the bit fields in the USB_O_RXHUBADDR9
  1446. // register.
  1447. //
  1448. //*****************************************************************************
  1449. #define USB_RXHUBADDR9_ADDR_M 0x0000007F // Hub Address
  1450. #define USB_RXHUBADDR9_ADDR_S 0
  1451. //*****************************************************************************
  1452. //
  1453. // The following are defines for the bit fields in the USB_O_RXHUBPORT9
  1454. // register.
  1455. //
  1456. //*****************************************************************************
  1457. #define USB_RXHUBPORT9_PORT_M 0x0000007F // Hub Port
  1458. #define USB_RXHUBPORT9_PORT_S 0
  1459. //*****************************************************************************
  1460. //
  1461. // The following are defines for the bit fields in the USB_O_TXFUNCADDR10
  1462. // register.
  1463. //
  1464. //*****************************************************************************
  1465. #define USB_TXFUNCADDR10_ADDR_M 0x0000007F // Device Address
  1466. #define USB_TXFUNCADDR10_ADDR_S 0
  1467. //*****************************************************************************
  1468. //
  1469. // The following are defines for the bit fields in the USB_O_TXHUBADDR10
  1470. // register.
  1471. //
  1472. //*****************************************************************************
  1473. #define USB_TXHUBADDR10_ADDR_M 0x0000007F // Hub Address
  1474. #define USB_TXHUBADDR10_ADDR_S 0
  1475. //*****************************************************************************
  1476. //
  1477. // The following are defines for the bit fields in the USB_O_TXHUBPORT10
  1478. // register.
  1479. //
  1480. //*****************************************************************************
  1481. #define USB_TXHUBPORT10_PORT_M 0x0000007F // Hub Port
  1482. #define USB_TXHUBPORT10_PORT_S 0
  1483. //*****************************************************************************
  1484. //
  1485. // The following are defines for the bit fields in the USB_O_RXFUNCADDR10
  1486. // register.
  1487. //
  1488. //*****************************************************************************
  1489. #define USB_RXFUNCADDR10_ADDR_M 0x0000007F // Device Address
  1490. #define USB_RXFUNCADDR10_ADDR_S 0
  1491. //*****************************************************************************
  1492. //
  1493. // The following are defines for the bit fields in the USB_O_RXHUBADDR10
  1494. // register.
  1495. //
  1496. //*****************************************************************************
  1497. #define USB_RXHUBADDR10_ADDR_M 0x0000007F // Hub Address
  1498. #define USB_RXHUBADDR10_ADDR_S 0
  1499. //*****************************************************************************
  1500. //
  1501. // The following are defines for the bit fields in the USB_O_RXHUBPORT10
  1502. // register.
  1503. //
  1504. //*****************************************************************************
  1505. #define USB_RXHUBPORT10_PORT_M 0x0000007F // Hub Port
  1506. #define USB_RXHUBPORT10_PORT_S 0
  1507. //*****************************************************************************
  1508. //
  1509. // The following are defines for the bit fields in the USB_O_TXFUNCADDR11
  1510. // register.
  1511. //
  1512. //*****************************************************************************
  1513. #define USB_TXFUNCADDR11_ADDR_M 0x0000007F // Device Address
  1514. #define USB_TXFUNCADDR11_ADDR_S 0
  1515. //*****************************************************************************
  1516. //
  1517. // The following are defines for the bit fields in the USB_O_TXHUBADDR11
  1518. // register.
  1519. //
  1520. //*****************************************************************************
  1521. #define USB_TXHUBADDR11_ADDR_M 0x0000007F // Hub Address
  1522. #define USB_TXHUBADDR11_ADDR_S 0
  1523. //*****************************************************************************
  1524. //
  1525. // The following are defines for the bit fields in the USB_O_TXHUBPORT11
  1526. // register.
  1527. //
  1528. //*****************************************************************************
  1529. #define USB_TXHUBPORT11_PORT_M 0x0000007F // Hub Port
  1530. #define USB_TXHUBPORT11_PORT_S 0
  1531. //*****************************************************************************
  1532. //
  1533. // The following are defines for the bit fields in the USB_O_RXFUNCADDR11
  1534. // register.
  1535. //
  1536. //*****************************************************************************
  1537. #define USB_RXFUNCADDR11_ADDR_M 0x0000007F // Device Address
  1538. #define USB_RXFUNCADDR11_ADDR_S 0
  1539. //*****************************************************************************
  1540. //
  1541. // The following are defines for the bit fields in the USB_O_RXHUBADDR11
  1542. // register.
  1543. //
  1544. //*****************************************************************************
  1545. #define USB_RXHUBADDR11_ADDR_M 0x0000007F // Hub Address
  1546. #define USB_RXHUBADDR11_ADDR_S 0
  1547. //*****************************************************************************
  1548. //
  1549. // The following are defines for the bit fields in the USB_O_RXHUBPORT11
  1550. // register.
  1551. //
  1552. //*****************************************************************************
  1553. #define USB_RXHUBPORT11_PORT_M 0x0000007F // Hub Port
  1554. #define USB_RXHUBPORT11_PORT_S 0
  1555. //*****************************************************************************
  1556. //
  1557. // The following are defines for the bit fields in the USB_O_TXFUNCADDR12
  1558. // register.
  1559. //
  1560. //*****************************************************************************
  1561. #define USB_TXFUNCADDR12_ADDR_M 0x0000007F // Device Address
  1562. #define USB_TXFUNCADDR12_ADDR_S 0
  1563. //*****************************************************************************
  1564. //
  1565. // The following are defines for the bit fields in the USB_O_TXHUBADDR12
  1566. // register.
  1567. //
  1568. //*****************************************************************************
  1569. #define USB_TXHUBADDR12_ADDR_M 0x0000007F // Hub Address
  1570. #define USB_TXHUBADDR12_ADDR_S 0
  1571. //*****************************************************************************
  1572. //
  1573. // The following are defines for the bit fields in the USB_O_TXHUBPORT12
  1574. // register.
  1575. //
  1576. //*****************************************************************************
  1577. #define USB_TXHUBPORT12_PORT_M 0x0000007F // Hub Port
  1578. #define USB_TXHUBPORT12_PORT_S 0
  1579. //*****************************************************************************
  1580. //
  1581. // The following are defines for the bit fields in the USB_O_RXFUNCADDR12
  1582. // register.
  1583. //
  1584. //*****************************************************************************
  1585. #define USB_RXFUNCADDR12_ADDR_M 0x0000007F // Device Address
  1586. #define USB_RXFUNCADDR12_ADDR_S 0
  1587. //*****************************************************************************
  1588. //
  1589. // The following are defines for the bit fields in the USB_O_RXHUBADDR12
  1590. // register.
  1591. //
  1592. //*****************************************************************************
  1593. #define USB_RXHUBADDR12_ADDR_M 0x0000007F // Hub Address
  1594. #define USB_RXHUBADDR12_ADDR_S 0
  1595. //*****************************************************************************
  1596. //
  1597. // The following are defines for the bit fields in the USB_O_RXHUBPORT12
  1598. // register.
  1599. //
  1600. //*****************************************************************************
  1601. #define USB_RXHUBPORT12_PORT_M 0x0000007F // Hub Port
  1602. #define USB_RXHUBPORT12_PORT_S 0
  1603. //*****************************************************************************
  1604. //
  1605. // The following are defines for the bit fields in the USB_O_TXFUNCADDR13
  1606. // register.
  1607. //
  1608. //*****************************************************************************
  1609. #define USB_TXFUNCADDR13_ADDR_M 0x0000007F // Device Address
  1610. #define USB_TXFUNCADDR13_ADDR_S 0
  1611. //*****************************************************************************
  1612. //
  1613. // The following are defines for the bit fields in the USB_O_TXHUBADDR13
  1614. // register.
  1615. //
  1616. //*****************************************************************************
  1617. #define USB_TXHUBADDR13_ADDR_M 0x0000007F // Hub Address
  1618. #define USB_TXHUBADDR13_ADDR_S 0
  1619. //*****************************************************************************
  1620. //
  1621. // The following are defines for the bit fields in the USB_O_TXHUBPORT13
  1622. // register.
  1623. //
  1624. //*****************************************************************************
  1625. #define USB_TXHUBPORT13_PORT_M 0x0000007F // Hub Port
  1626. #define USB_TXHUBPORT13_PORT_S 0
  1627. //*****************************************************************************
  1628. //
  1629. // The following are defines for the bit fields in the USB_O_RXFUNCADDR13
  1630. // register.
  1631. //
  1632. //*****************************************************************************
  1633. #define USB_RXFUNCADDR13_ADDR_M 0x0000007F // Device Address
  1634. #define USB_RXFUNCADDR13_ADDR_S 0
  1635. //*****************************************************************************
  1636. //
  1637. // The following are defines for the bit fields in the USB_O_RXHUBADDR13
  1638. // register.
  1639. //
  1640. //*****************************************************************************
  1641. #define USB_RXHUBADDR13_ADDR_M 0x0000007F // Hub Address
  1642. #define USB_RXHUBADDR13_ADDR_S 0
  1643. //*****************************************************************************
  1644. //
  1645. // The following are defines for the bit fields in the USB_O_RXHUBPORT13
  1646. // register.
  1647. //
  1648. //*****************************************************************************
  1649. #define USB_RXHUBPORT13_PORT_M 0x0000007F // Hub Port
  1650. #define USB_RXHUBPORT13_PORT_S 0
  1651. //*****************************************************************************
  1652. //
  1653. // The following are defines for the bit fields in the USB_O_TXFUNCADDR14
  1654. // register.
  1655. //
  1656. //*****************************************************************************
  1657. #define USB_TXFUNCADDR14_ADDR_M 0x0000007F // Device Address
  1658. #define USB_TXFUNCADDR14_ADDR_S 0
  1659. //*****************************************************************************
  1660. //
  1661. // The following are defines for the bit fields in the USB_O_TXHUBADDR14
  1662. // register.
  1663. //
  1664. //*****************************************************************************
  1665. #define USB_TXHUBADDR14_ADDR_M 0x0000007F // Hub Address
  1666. #define USB_TXHUBADDR14_ADDR_S 0
  1667. //*****************************************************************************
  1668. //
  1669. // The following are defines for the bit fields in the USB_O_TXHUBPORT14
  1670. // register.
  1671. //
  1672. //*****************************************************************************
  1673. #define USB_TXHUBPORT14_PORT_M 0x0000007F // Hub Port
  1674. #define USB_TXHUBPORT14_PORT_S 0
  1675. //*****************************************************************************
  1676. //
  1677. // The following are defines for the bit fields in the USB_O_RXFUNCADDR14
  1678. // register.
  1679. //
  1680. //*****************************************************************************
  1681. #define USB_RXFUNCADDR14_ADDR_M 0x0000007F // Device Address
  1682. #define USB_RXFUNCADDR14_ADDR_S 0
  1683. //*****************************************************************************
  1684. //
  1685. // The following are defines for the bit fields in the USB_O_RXHUBADDR14
  1686. // register.
  1687. //
  1688. //*****************************************************************************
  1689. #define USB_RXHUBADDR14_ADDR_M 0x0000007F // Hub Address
  1690. #define USB_RXHUBADDR14_ADDR_S 0
  1691. //*****************************************************************************
  1692. //
  1693. // The following are defines for the bit fields in the USB_O_RXHUBPORT14
  1694. // register.
  1695. //
  1696. //*****************************************************************************
  1697. #define USB_RXHUBPORT14_PORT_M 0x0000007F // Hub Port
  1698. #define USB_RXHUBPORT14_PORT_S 0
  1699. //*****************************************************************************
  1700. //
  1701. // The following are defines for the bit fields in the USB_O_TXFUNCADDR15
  1702. // register.
  1703. //
  1704. //*****************************************************************************
  1705. #define USB_TXFUNCADDR15_ADDR_M 0x0000007F // Device Address
  1706. #define USB_TXFUNCADDR15_ADDR_S 0
  1707. //*****************************************************************************
  1708. //
  1709. // The following are defines for the bit fields in the USB_O_TXHUBADDR15
  1710. // register.
  1711. //
  1712. //*****************************************************************************
  1713. #define USB_TXHUBADDR15_ADDR_M 0x0000007F // Hub Address
  1714. #define USB_TXHUBADDR15_ADDR_S 0
  1715. //*****************************************************************************
  1716. //
  1717. // The following are defines for the bit fields in the USB_O_TXHUBPORT15
  1718. // register.
  1719. //
  1720. //*****************************************************************************
  1721. #define USB_TXHUBPORT15_PORT_M 0x0000007F // Hub Port
  1722. #define USB_TXHUBPORT15_PORT_S 0
  1723. //*****************************************************************************
  1724. //
  1725. // The following are defines for the bit fields in the USB_O_RXFUNCADDR15
  1726. // register.
  1727. //
  1728. //*****************************************************************************
  1729. #define USB_RXFUNCADDR15_ADDR_M 0x0000007F // Device Address
  1730. #define USB_RXFUNCADDR15_ADDR_S 0
  1731. //*****************************************************************************
  1732. //
  1733. // The following are defines for the bit fields in the USB_O_RXHUBADDR15
  1734. // register.
  1735. //
  1736. //*****************************************************************************
  1737. #define USB_RXHUBADDR15_ADDR_M 0x0000007F // Hub Address
  1738. #define USB_RXHUBADDR15_ADDR_S 0
  1739. //*****************************************************************************
  1740. //
  1741. // The following are defines for the bit fields in the USB_O_RXHUBPORT15
  1742. // register.
  1743. //
  1744. //*****************************************************************************
  1745. #define USB_RXHUBPORT15_PORT_M 0x0000007F // Hub Port
  1746. #define USB_RXHUBPORT15_PORT_S 0
  1747. //*****************************************************************************
  1748. //
  1749. // The following are defines for the bit fields in the USB_O_CSRL0 register.
  1750. //
  1751. //*****************************************************************************
  1752. #define USB_CSRL0_NAKTO 0x00000080 // NAK Timeout
  1753. #define USB_CSRL0_SETENDC 0x00000080 // Setup End Clear
  1754. #define USB_CSRL0_STATUS 0x00000040 // STATUS Packet
  1755. #define USB_CSRL0_RXRDYC 0x00000040 // RXRDY Clear
  1756. #define USB_CSRL0_REQPKT 0x00000020 // Request Packet
  1757. #define USB_CSRL0_STALL 0x00000020 // Send Stall
  1758. #define USB_CSRL0_SETEND 0x00000010 // Setup End
  1759. #define USB_CSRL0_ERROR 0x00000010 // Error
  1760. #define USB_CSRL0_DATAEND 0x00000008 // Data End
  1761. #define USB_CSRL0_SETUP 0x00000008 // Setup Packet
  1762. #define USB_CSRL0_STALLED 0x00000004 // Endpoint Stalled
  1763. #define USB_CSRL0_TXRDY 0x00000002 // Transmit Packet Ready
  1764. #define USB_CSRL0_RXRDY 0x00000001 // Receive Packet Ready
  1765. //*****************************************************************************
  1766. //
  1767. // The following are defines for the bit fields in the USB_O_CSRH0 register.
  1768. //
  1769. //*****************************************************************************
  1770. #define USB_CSRH0_DTWE 0x00000004 // Data Toggle Write Enable
  1771. #define USB_CSRH0_DT 0x00000002 // Data Toggle
  1772. #define USB_CSRH0_FLUSH 0x00000001 // Flush FIFO
  1773. //*****************************************************************************
  1774. //
  1775. // The following are defines for the bit fields in the USB_O_COUNT0 register.
  1776. //
  1777. //*****************************************************************************
  1778. #define USB_COUNT0_COUNT_M 0x0000007F // FIFO Count
  1779. #define USB_COUNT0_COUNT_S 0
  1780. //*****************************************************************************
  1781. //
  1782. // The following are defines for the bit fields in the USB_O_TYPE0 register.
  1783. //
  1784. //*****************************************************************************
  1785. #define USB_TYPE0_SPEED_M 0x000000C0 // Operating Speed
  1786. #define USB_TYPE0_SPEED_FULL 0x00000080 // Full
  1787. #define USB_TYPE0_SPEED_LOW 0x000000C0 // Low
  1788. //*****************************************************************************
  1789. //
  1790. // The following are defines for the bit fields in the USB_O_NAKLMT register.
  1791. //
  1792. //*****************************************************************************
  1793. #define USB_NAKLMT_NAKLMT_M 0x0000001F // EP0 NAK Limit
  1794. #define USB_NAKLMT_NAKLMT_S 0
  1795. //*****************************************************************************
  1796. //
  1797. // The following are defines for the bit fields in the USB_O_TXMAXP1 register.
  1798. //
  1799. //*****************************************************************************
  1800. #define USB_TXMAXP1_MAXLOAD_M 0x000007FF // Maximum Payload
  1801. #define USB_TXMAXP1_MAXLOAD_S 0
  1802. //*****************************************************************************
  1803. //
  1804. // The following are defines for the bit fields in the USB_O_TXCSRL1 register.
  1805. //
  1806. //*****************************************************************************
  1807. #define USB_TXCSRL1_NAKTO 0x00000080 // NAK Timeout
  1808. #define USB_TXCSRL1_CLRDT 0x00000040 // Clear Data Toggle
  1809. #define USB_TXCSRL1_STALLED 0x00000020 // Endpoint Stalled
  1810. #define USB_TXCSRL1_STALL 0x00000010 // Send STALL
  1811. #define USB_TXCSRL1_SETUP 0x00000010 // Setup Packet
  1812. #define USB_TXCSRL1_FLUSH 0x00000008 // Flush FIFO
  1813. #define USB_TXCSRL1_ERROR 0x00000004 // Error
  1814. #define USB_TXCSRL1_UNDRN 0x00000004 // Underrun
  1815. #define USB_TXCSRL1_FIFONE 0x00000002 // FIFO Not Empty
  1816. #define USB_TXCSRL1_TXRDY 0x00000001 // Transmit Packet Ready
  1817. //*****************************************************************************
  1818. //
  1819. // The following are defines for the bit fields in the USB_O_TXCSRH1 register.
  1820. //
  1821. //*****************************************************************************
  1822. #define USB_TXCSRH1_AUTOSET 0x00000080 // Auto Set
  1823. #define USB_TXCSRH1_ISO 0x00000040 // Isochronous Transfers
  1824. #define USB_TXCSRH1_MODE 0x00000020 // Mode
  1825. #define USB_TXCSRH1_DMAEN 0x00000010 // DMA Request Enable
  1826. #define USB_TXCSRH1_FDT 0x00000008 // Force Data Toggle
  1827. #define USB_TXCSRH1_DMAMOD 0x00000004 // DMA Request Mode
  1828. #define USB_TXCSRH1_DTWE 0x00000002 // Data Toggle Write Enable
  1829. #define USB_TXCSRH1_DT 0x00000001 // Data Toggle
  1830. //*****************************************************************************
  1831. //
  1832. // The following are defines for the bit fields in the USB_O_RXMAXP1 register.
  1833. //
  1834. //*****************************************************************************
  1835. #define USB_RXMAXP1_MAXLOAD_M 0x000007FF // Maximum Payload
  1836. #define USB_RXMAXP1_MAXLOAD_S 0
  1837. //*****************************************************************************
  1838. //
  1839. // The following are defines for the bit fields in the USB_O_RXCSRL1 register.
  1840. //
  1841. //*****************************************************************************
  1842. #define USB_RXCSRL1_CLRDT 0x00000080 // Clear Data Toggle
  1843. #define USB_RXCSRL1_STALLED 0x00000040 // Endpoint Stalled
  1844. #define USB_RXCSRL1_STALL 0x00000020 // Send STALL
  1845. #define USB_RXCSRL1_REQPKT 0x00000020 // Request Packet
  1846. #define USB_RXCSRL1_FLUSH 0x00000010 // Flush FIFO
  1847. #define USB_RXCSRL1_DATAERR 0x00000008 // Data Error
  1848. #define USB_RXCSRL1_NAKTO 0x00000008 // NAK Timeout
  1849. #define USB_RXCSRL1_OVER 0x00000004 // Overrun
  1850. #define USB_RXCSRL1_ERROR 0x00000004 // Error
  1851. #define USB_RXCSRL1_FULL 0x00000002 // FIFO Full
  1852. #define USB_RXCSRL1_RXRDY 0x00000001 // Receive Packet Ready
  1853. //*****************************************************************************
  1854. //
  1855. // The following are defines for the bit fields in the USB_O_RXCSRH1 register.
  1856. //
  1857. //*****************************************************************************
  1858. #define USB_RXCSRH1_AUTOCL 0x00000080 // Auto Clear
  1859. #define USB_RXCSRH1_AUTORQ 0x00000040 // Auto Request
  1860. #define USB_RXCSRH1_ISO 0x00000040 // Isochronous Transfers
  1861. #define USB_RXCSRH1_DMAEN 0x00000020 // DMA Request Enable
  1862. #define USB_RXCSRH1_DISNYET 0x00000010 // Disable NYET
  1863. #define USB_RXCSRH1_PIDERR 0x00000010 // PID Error
  1864. #define USB_RXCSRH1_DMAMOD 0x00000008 // DMA Request Mode
  1865. #define USB_RXCSRH1_DTWE 0x00000004 // Data Toggle Write Enable
  1866. #define USB_RXCSRH1_DT 0x00000002 // Data Toggle
  1867. //*****************************************************************************
  1868. //
  1869. // The following are defines for the bit fields in the USB_O_RXCOUNT1 register.
  1870. //
  1871. //*****************************************************************************
  1872. #define USB_RXCOUNT1_COUNT_M 0x00001FFF // Receive Packet Count
  1873. #define USB_RXCOUNT1_COUNT_S 0
  1874. //*****************************************************************************
  1875. //
  1876. // The following are defines for the bit fields in the USB_O_TXTYPE1 register.
  1877. //
  1878. //*****************************************************************************
  1879. #define USB_TXTYPE1_SPEED_M 0x000000C0 // Operating Speed
  1880. #define USB_TXTYPE1_SPEED_DFLT 0x00000000 // Default
  1881. #define USB_TXTYPE1_SPEED_FULL 0x00000080 // Full
  1882. #define USB_TXTYPE1_SPEED_LOW 0x000000C0 // Low
  1883. #define USB_TXTYPE1_PROTO_M 0x00000030 // Protocol
  1884. #define USB_TXTYPE1_PROTO_CTRL 0x00000000 // Control
  1885. #define USB_TXTYPE1_PROTO_ISOC 0x00000010 // Isochronous
  1886. #define USB_TXTYPE1_PROTO_BULK 0x00000020 // Bulk
  1887. #define USB_TXTYPE1_PROTO_INT 0x00000030 // Interrupt
  1888. #define USB_TXTYPE1_TEP_M 0x0000000F // Target Endpoint Number
  1889. #define USB_TXTYPE1_TEP_S 0
  1890. //*****************************************************************************
  1891. //
  1892. // The following are defines for the bit fields in the USB_O_TXINTERVAL1
  1893. // register.
  1894. //
  1895. //*****************************************************************************
  1896. #define USB_TXINTERVAL1_NAKLMT_M \
  1897. 0x000000FF // NAK Limit
  1898. #define USB_TXINTERVAL1_TXPOLL_M \
  1899. 0x000000FF // TX Polling
  1900. #define USB_TXINTERVAL1_TXPOLL_S \
  1901. 0
  1902. #define USB_TXINTERVAL1_NAKLMT_S \
  1903. 0
  1904. //*****************************************************************************
  1905. //
  1906. // The following are defines for the bit fields in the USB_O_RXTYPE1 register.
  1907. //
  1908. //*****************************************************************************
  1909. #define USB_RXTYPE1_SPEED_M 0x000000C0 // Operating Speed
  1910. #define USB_RXTYPE1_SPEED_DFLT 0x00000000 // Default
  1911. #define USB_RXTYPE1_SPEED_FULL 0x00000080 // Full
  1912. #define USB_RXTYPE1_SPEED_LOW 0x000000C0 // Low
  1913. #define USB_RXTYPE1_PROTO_M 0x00000030 // Protocol
  1914. #define USB_RXTYPE1_PROTO_CTRL 0x00000000 // Control
  1915. #define USB_RXTYPE1_PROTO_ISOC 0x00000010 // Isochronous
  1916. #define USB_RXTYPE1_PROTO_BULK 0x00000020 // Bulk
  1917. #define USB_RXTYPE1_PROTO_INT 0x00000030 // Interrupt
  1918. #define USB_RXTYPE1_TEP_M 0x0000000F // Target Endpoint Number
  1919. #define USB_RXTYPE1_TEP_S 0
  1920. //*****************************************************************************
  1921. //
  1922. // The following are defines for the bit fields in the USB_O_RXINTERVAL1
  1923. // register.
  1924. //
  1925. //*****************************************************************************
  1926. #define USB_RXINTERVAL1_TXPOLL_M \
  1927. 0x000000FF // RX Polling
  1928. #define USB_RXINTERVAL1_NAKLMT_M \
  1929. 0x000000FF // NAK Limit
  1930. #define USB_RXINTERVAL1_TXPOLL_S \
  1931. 0
  1932. #define USB_RXINTERVAL1_NAKLMT_S \
  1933. 0
  1934. //*****************************************************************************
  1935. //
  1936. // The following are defines for the bit fields in the USB_O_TXMAXP2 register.
  1937. //
  1938. //*****************************************************************************
  1939. #define USB_TXMAXP2_MAXLOAD_M 0x000007FF // Maximum Payload
  1940. #define USB_TXMAXP2_MAXLOAD_S 0
  1941. //*****************************************************************************
  1942. //
  1943. // The following are defines for the bit fields in the USB_O_TXCSRL2 register.
  1944. //
  1945. //*****************************************************************************
  1946. #define USB_TXCSRL2_NAKTO 0x00000080 // NAK Timeout
  1947. #define USB_TXCSRL2_CLRDT 0x00000040 // Clear Data Toggle
  1948. #define USB_TXCSRL2_STALLED 0x00000020 // Endpoint Stalled
  1949. #define USB_TXCSRL2_SETUP 0x00000010 // Setup Packet
  1950. #define USB_TXCSRL2_STALL 0x00000010 // Send STALL
  1951. #define USB_TXCSRL2_FLUSH 0x00000008 // Flush FIFO
  1952. #define USB_TXCSRL2_ERROR 0x00000004 // Error
  1953. #define USB_TXCSRL2_UNDRN 0x00000004 // Underrun
  1954. #define USB_TXCSRL2_FIFONE 0x00000002 // FIFO Not Empty
  1955. #define USB_TXCSRL2_TXRDY 0x00000001 // Transmit Packet Ready
  1956. //*****************************************************************************
  1957. //
  1958. // The following are defines for the bit fields in the USB_O_TXCSRH2 register.
  1959. //
  1960. //*****************************************************************************
  1961. #define USB_TXCSRH2_AUTOSET 0x00000080 // Auto Set
  1962. #define USB_TXCSRH2_ISO 0x00000040 // Isochronous Transfers
  1963. #define USB_TXCSRH2_MODE 0x00000020 // Mode
  1964. #define USB_TXCSRH2_DMAEN 0x00000010 // DMA Request Enable
  1965. #define USB_TXCSRH2_FDT 0x00000008 // Force Data Toggle
  1966. #define USB_TXCSRH2_DMAMOD 0x00000004 // DMA Request Mode
  1967. #define USB_TXCSRH2_DTWE 0x00000002 // Data Toggle Write Enable
  1968. #define USB_TXCSRH2_DT 0x00000001 // Data Toggle
  1969. //*****************************************************************************
  1970. //
  1971. // The following are defines for the bit fields in the USB_O_RXMAXP2 register.
  1972. //
  1973. //*****************************************************************************
  1974. #define USB_RXMAXP2_MAXLOAD_M 0x000007FF // Maximum Payload
  1975. #define USB_RXMAXP2_MAXLOAD_S 0
  1976. //*****************************************************************************
  1977. //
  1978. // The following are defines for the bit fields in the USB_O_RXCSRL2 register.
  1979. //
  1980. //*****************************************************************************
  1981. #define USB_RXCSRL2_CLRDT 0x00000080 // Clear Data Toggle
  1982. #define USB_RXCSRL2_STALLED 0x00000040 // Endpoint Stalled
  1983. #define USB_RXCSRL2_REQPKT 0x00000020 // Request Packet
  1984. #define USB_RXCSRL2_STALL 0x00000020 // Send STALL
  1985. #define USB_RXCSRL2_FLUSH 0x00000010 // Flush FIFO
  1986. #define USB_RXCSRL2_DATAERR 0x00000008 // Data Error
  1987. #define USB_RXCSRL2_NAKTO 0x00000008 // NAK Timeout
  1988. #define USB_RXCSRL2_ERROR 0x00000004 // Error
  1989. #define USB_RXCSRL2_OVER 0x00000004 // Overrun
  1990. #define USB_RXCSRL2_FULL 0x00000002 // FIFO Full
  1991. #define USB_RXCSRL2_RXRDY 0x00000001 // Receive Packet Ready
  1992. //*****************************************************************************
  1993. //
  1994. // The following are defines for the bit fields in the USB_O_RXCSRH2 register.
  1995. //
  1996. //*****************************************************************************
  1997. #define USB_RXCSRH2_AUTOCL 0x00000080 // Auto Clear
  1998. #define USB_RXCSRH2_AUTORQ 0x00000040 // Auto Request
  1999. #define USB_RXCSRH2_ISO 0x00000040 // Isochronous Transfers
  2000. #define USB_RXCSRH2_DMAEN 0x00000020 // DMA Request Enable
  2001. #define USB_RXCSRH2_DISNYET 0x00000010 // Disable NYET
  2002. #define USB_RXCSRH2_PIDERR 0x00000010 // PID Error
  2003. #define USB_RXCSRH2_DMAMOD 0x00000008 // DMA Request Mode
  2004. #define USB_RXCSRH2_DTWE 0x00000004 // Data Toggle Write Enable
  2005. #define USB_RXCSRH2_DT 0x00000002 // Data Toggle
  2006. //*****************************************************************************
  2007. //
  2008. // The following are defines for the bit fields in the USB_O_RXCOUNT2 register.
  2009. //
  2010. //*****************************************************************************
  2011. #define USB_RXCOUNT2_COUNT_M 0x00001FFF // Receive Packet Count
  2012. #define USB_RXCOUNT2_COUNT_S 0
  2013. //*****************************************************************************
  2014. //
  2015. // The following are defines for the bit fields in the USB_O_TXTYPE2 register.
  2016. //
  2017. //*****************************************************************************
  2018. #define USB_TXTYPE2_SPEED_M 0x000000C0 // Operating Speed
  2019. #define USB_TXTYPE2_SPEED_DFLT 0x00000000 // Default
  2020. #define USB_TXTYPE2_SPEED_FULL 0x00000080 // Full
  2021. #define USB_TXTYPE2_SPEED_LOW 0x000000C0 // Low
  2022. #define USB_TXTYPE2_PROTO_M 0x00000030 // Protocol
  2023. #define USB_TXTYPE2_PROTO_CTRL 0x00000000 // Control
  2024. #define USB_TXTYPE2_PROTO_ISOC 0x00000010 // Isochronous
  2025. #define USB_TXTYPE2_PROTO_BULK 0x00000020 // Bulk
  2026. #define USB_TXTYPE2_PROTO_INT 0x00000030 // Interrupt
  2027. #define USB_TXTYPE2_TEP_M 0x0000000F // Target Endpoint Number
  2028. #define USB_TXTYPE2_TEP_S 0
  2029. //*****************************************************************************
  2030. //
  2031. // The following are defines for the bit fields in the USB_O_TXINTERVAL2
  2032. // register.
  2033. //
  2034. //*****************************************************************************
  2035. #define USB_TXINTERVAL2_TXPOLL_M \
  2036. 0x000000FF // TX Polling
  2037. #define USB_TXINTERVAL2_NAKLMT_M \
  2038. 0x000000FF // NAK Limit
  2039. #define USB_TXINTERVAL2_NAKLMT_S \
  2040. 0
  2041. #define USB_TXINTERVAL2_TXPOLL_S \
  2042. 0
  2043. //*****************************************************************************
  2044. //
  2045. // The following are defines for the bit fields in the USB_O_RXTYPE2 register.
  2046. //
  2047. //*****************************************************************************
  2048. #define USB_RXTYPE2_SPEED_M 0x000000C0 // Operating Speed
  2049. #define USB_RXTYPE2_SPEED_DFLT 0x00000000 // Default
  2050. #define USB_RXTYPE2_SPEED_FULL 0x00000080 // Full
  2051. #define USB_RXTYPE2_SPEED_LOW 0x000000C0 // Low
  2052. #define USB_RXTYPE2_PROTO_M 0x00000030 // Protocol
  2053. #define USB_RXTYPE2_PROTO_CTRL 0x00000000 // Control
  2054. #define USB_RXTYPE2_PROTO_ISOC 0x00000010 // Isochronous
  2055. #define USB_RXTYPE2_PROTO_BULK 0x00000020 // Bulk
  2056. #define USB_RXTYPE2_PROTO_INT 0x00000030 // Interrupt
  2057. #define USB_RXTYPE2_TEP_M 0x0000000F // Target Endpoint Number
  2058. #define USB_RXTYPE2_TEP_S 0
  2059. //*****************************************************************************
  2060. //
  2061. // The following are defines for the bit fields in the USB_O_RXINTERVAL2
  2062. // register.
  2063. //
  2064. //*****************************************************************************
  2065. #define USB_RXINTERVAL2_TXPOLL_M \
  2066. 0x000000FF // RX Polling
  2067. #define USB_RXINTERVAL2_NAKLMT_M \
  2068. 0x000000FF // NAK Limit
  2069. #define USB_RXINTERVAL2_TXPOLL_S \
  2070. 0
  2071. #define USB_RXINTERVAL2_NAKLMT_S \
  2072. 0
  2073. //*****************************************************************************
  2074. //
  2075. // The following are defines for the bit fields in the USB_O_TXMAXP3 register.
  2076. //
  2077. //*****************************************************************************
  2078. #define USB_TXMAXP3_MAXLOAD_M 0x000007FF // Maximum Payload
  2079. #define USB_TXMAXP3_MAXLOAD_S 0
  2080. //*****************************************************************************
  2081. //
  2082. // The following are defines for the bit fields in the USB_O_TXCSRL3 register.
  2083. //
  2084. //*****************************************************************************
  2085. #define USB_TXCSRL3_NAKTO 0x00000080 // NAK Timeout
  2086. #define USB_TXCSRL3_CLRDT 0x00000040 // Clear Data Toggle
  2087. #define USB_TXCSRL3_STALLED 0x00000020 // Endpoint Stalled
  2088. #define USB_TXCSRL3_SETUP 0x00000010 // Setup Packet
  2089. #define USB_TXCSRL3_STALL 0x00000010 // Send STALL
  2090. #define USB_TXCSRL3_FLUSH 0x00000008 // Flush FIFO
  2091. #define USB_TXCSRL3_ERROR 0x00000004 // Error
  2092. #define USB_TXCSRL3_UNDRN 0x00000004 // Underrun
  2093. #define USB_TXCSRL3_FIFONE 0x00000002 // FIFO Not Empty
  2094. #define USB_TXCSRL3_TXRDY 0x00000001 // Transmit Packet Ready
  2095. //*****************************************************************************
  2096. //
  2097. // The following are defines for the bit fields in the USB_O_TXCSRH3 register.
  2098. //
  2099. //*****************************************************************************
  2100. #define USB_TXCSRH3_AUTOSET 0x00000080 // Auto Set
  2101. #define USB_TXCSRH3_ISO 0x00000040 // Isochronous Transfers
  2102. #define USB_TXCSRH3_MODE 0x00000020 // Mode
  2103. #define USB_TXCSRH3_DMAEN 0x00000010 // DMA Request Enable
  2104. #define USB_TXCSRH3_FDT 0x00000008 // Force Data Toggle
  2105. #define USB_TXCSRH3_DMAMOD 0x00000004 // DMA Request Mode
  2106. #define USB_TXCSRH3_DTWE 0x00000002 // Data Toggle Write Enable
  2107. #define USB_TXCSRH3_DT 0x00000001 // Data Toggle
  2108. //*****************************************************************************
  2109. //
  2110. // The following are defines for the bit fields in the USB_O_RXMAXP3 register.
  2111. //
  2112. //*****************************************************************************
  2113. #define USB_RXMAXP3_MAXLOAD_M 0x000007FF // Maximum Payload
  2114. #define USB_RXMAXP3_MAXLOAD_S 0
  2115. //*****************************************************************************
  2116. //
  2117. // The following are defines for the bit fields in the USB_O_RXCSRL3 register.
  2118. //
  2119. //*****************************************************************************
  2120. #define USB_RXCSRL3_CLRDT 0x00000080 // Clear Data Toggle
  2121. #define USB_RXCSRL3_STALLED 0x00000040 // Endpoint Stalled
  2122. #define USB_RXCSRL3_STALL 0x00000020 // Send STALL
  2123. #define USB_RXCSRL3_REQPKT 0x00000020 // Request Packet
  2124. #define USB_RXCSRL3_FLUSH 0x00000010 // Flush FIFO
  2125. #define USB_RXCSRL3_DATAERR 0x00000008 // Data Error
  2126. #define USB_RXCSRL3_NAKTO 0x00000008 // NAK Timeout
  2127. #define USB_RXCSRL3_ERROR 0x00000004 // Error
  2128. #define USB_RXCSRL3_OVER 0x00000004 // Overrun
  2129. #define USB_RXCSRL3_FULL 0x00000002 // FIFO Full
  2130. #define USB_RXCSRL3_RXRDY 0x00000001 // Receive Packet Ready
  2131. //*****************************************************************************
  2132. //
  2133. // The following are defines for the bit fields in the USB_O_RXCSRH3 register.
  2134. //
  2135. //*****************************************************************************
  2136. #define USB_RXCSRH3_AUTOCL 0x00000080 // Auto Clear
  2137. #define USB_RXCSRH3_AUTORQ 0x00000040 // Auto Request
  2138. #define USB_RXCSRH3_ISO 0x00000040 // Isochronous Transfers
  2139. #define USB_RXCSRH3_DMAEN 0x00000020 // DMA Request Enable
  2140. #define USB_RXCSRH3_DISNYET 0x00000010 // Disable NYET
  2141. #define USB_RXCSRH3_PIDERR 0x00000010 // PID Error
  2142. #define USB_RXCSRH3_DMAMOD 0x00000008 // DMA Request Mode
  2143. #define USB_RXCSRH3_DTWE 0x00000004 // Data Toggle Write Enable
  2144. #define USB_RXCSRH3_DT 0x00000002 // Data Toggle
  2145. //*****************************************************************************
  2146. //
  2147. // The following are defines for the bit fields in the USB_O_RXCOUNT3 register.
  2148. //
  2149. //*****************************************************************************
  2150. #define USB_RXCOUNT3_COUNT_M 0x00001FFF // Receive Packet Count
  2151. #define USB_RXCOUNT3_COUNT_S 0
  2152. //*****************************************************************************
  2153. //
  2154. // The following are defines for the bit fields in the USB_O_TXTYPE3 register.
  2155. //
  2156. //*****************************************************************************
  2157. #define USB_TXTYPE3_SPEED_M 0x000000C0 // Operating Speed
  2158. #define USB_TXTYPE3_SPEED_DFLT 0x00000000 // Default
  2159. #define USB_TXTYPE3_SPEED_FULL 0x00000080 // Full
  2160. #define USB_TXTYPE3_SPEED_LOW 0x000000C0 // Low
  2161. #define USB_TXTYPE3_PROTO_M 0x00000030 // Protocol
  2162. #define USB_TXTYPE3_PROTO_CTRL 0x00000000 // Control
  2163. #define USB_TXTYPE3_PROTO_ISOC 0x00000010 // Isochronous
  2164. #define USB_TXTYPE3_PROTO_BULK 0x00000020 // Bulk
  2165. #define USB_TXTYPE3_PROTO_INT 0x00000030 // Interrupt
  2166. #define USB_TXTYPE3_TEP_M 0x0000000F // Target Endpoint Number
  2167. #define USB_TXTYPE3_TEP_S 0
  2168. //*****************************************************************************
  2169. //
  2170. // The following are defines for the bit fields in the USB_O_TXINTERVAL3
  2171. // register.
  2172. //
  2173. //*****************************************************************************
  2174. #define USB_TXINTERVAL3_TXPOLL_M \
  2175. 0x000000FF // TX Polling
  2176. #define USB_TXINTERVAL3_NAKLMT_M \
  2177. 0x000000FF // NAK Limit
  2178. #define USB_TXINTERVAL3_TXPOLL_S \
  2179. 0
  2180. #define USB_TXINTERVAL3_NAKLMT_S \
  2181. 0
  2182. //*****************************************************************************
  2183. //
  2184. // The following are defines for the bit fields in the USB_O_RXTYPE3 register.
  2185. //
  2186. //*****************************************************************************
  2187. #define USB_RXTYPE3_SPEED_M 0x000000C0 // Operating Speed
  2188. #define USB_RXTYPE3_SPEED_DFLT 0x00000000 // Default
  2189. #define USB_RXTYPE3_SPEED_FULL 0x00000080 // Full
  2190. #define USB_RXTYPE3_SPEED_LOW 0x000000C0 // Low
  2191. #define USB_RXTYPE3_PROTO_M 0x00000030 // Protocol
  2192. #define USB_RXTYPE3_PROTO_CTRL 0x00000000 // Control
  2193. #define USB_RXTYPE3_PROTO_ISOC 0x00000010 // Isochronous
  2194. #define USB_RXTYPE3_PROTO_BULK 0x00000020 // Bulk
  2195. #define USB_RXTYPE3_PROTO_INT 0x00000030 // Interrupt
  2196. #define USB_RXTYPE3_TEP_M 0x0000000F // Target Endpoint Number
  2197. #define USB_RXTYPE3_TEP_S 0
  2198. //*****************************************************************************
  2199. //
  2200. // The following are defines for the bit fields in the USB_O_RXINTERVAL3
  2201. // register.
  2202. //
  2203. //*****************************************************************************
  2204. #define USB_RXINTERVAL3_TXPOLL_M \
  2205. 0x000000FF // RX Polling
  2206. #define USB_RXINTERVAL3_NAKLMT_M \
  2207. 0x000000FF // NAK Limit
  2208. #define USB_RXINTERVAL3_TXPOLL_S \
  2209. 0
  2210. #define USB_RXINTERVAL3_NAKLMT_S \
  2211. 0
  2212. //*****************************************************************************
  2213. //
  2214. // The following are defines for the bit fields in the USB_O_TXMAXP4 register.
  2215. //
  2216. //*****************************************************************************
  2217. #define USB_TXMAXP4_MAXLOAD_M 0x000007FF // Maximum Payload
  2218. #define USB_TXMAXP4_MAXLOAD_S 0
  2219. //*****************************************************************************
  2220. //
  2221. // The following are defines for the bit fields in the USB_O_TXCSRL4 register.
  2222. //
  2223. //*****************************************************************************
  2224. #define USB_TXCSRL4_NAKTO 0x00000080 // NAK Timeout
  2225. #define USB_TXCSRL4_CLRDT 0x00000040 // Clear Data Toggle
  2226. #define USB_TXCSRL4_STALLED 0x00000020 // Endpoint Stalled
  2227. #define USB_TXCSRL4_SETUP 0x00000010 // Setup Packet
  2228. #define USB_TXCSRL4_STALL 0x00000010 // Send STALL
  2229. #define USB_TXCSRL4_FLUSH 0x00000008 // Flush FIFO
  2230. #define USB_TXCSRL4_ERROR 0x00000004 // Error
  2231. #define USB_TXCSRL4_UNDRN 0x00000004 // Underrun
  2232. #define USB_TXCSRL4_FIFONE 0x00000002 // FIFO Not Empty
  2233. #define USB_TXCSRL4_TXRDY 0x00000001 // Transmit Packet Ready
  2234. //*****************************************************************************
  2235. //
  2236. // The following are defines for the bit fields in the USB_O_TXCSRH4 register.
  2237. //
  2238. //*****************************************************************************
  2239. #define USB_TXCSRH4_AUTOSET 0x00000080 // Auto Set
  2240. #define USB_TXCSRH4_ISO 0x00000040 // Isochronous Transfers
  2241. #define USB_TXCSRH4_MODE 0x00000020 // Mode
  2242. #define USB_TXCSRH4_DMAEN 0x00000010 // DMA Request Enable
  2243. #define USB_TXCSRH4_FDT 0x00000008 // Force Data Toggle
  2244. #define USB_TXCSRH4_DMAMOD 0x00000004 // DMA Request Mode
  2245. #define USB_TXCSRH4_DTWE 0x00000002 // Data Toggle Write Enable
  2246. #define USB_TXCSRH4_DT 0x00000001 // Data Toggle
  2247. //*****************************************************************************
  2248. //
  2249. // The following are defines for the bit fields in the USB_O_RXMAXP4 register.
  2250. //
  2251. //*****************************************************************************
  2252. #define USB_RXMAXP4_MAXLOAD_M 0x000007FF // Maximum Payload
  2253. #define USB_RXMAXP4_MAXLOAD_S 0
  2254. //*****************************************************************************
  2255. //
  2256. // The following are defines for the bit fields in the USB_O_RXCSRL4 register.
  2257. //
  2258. //*****************************************************************************
  2259. #define USB_RXCSRL4_CLRDT 0x00000080 // Clear Data Toggle
  2260. #define USB_RXCSRL4_STALLED 0x00000040 // Endpoint Stalled
  2261. #define USB_RXCSRL4_STALL 0x00000020 // Send STALL
  2262. #define USB_RXCSRL4_REQPKT 0x00000020 // Request Packet
  2263. #define USB_RXCSRL4_FLUSH 0x00000010 // Flush FIFO
  2264. #define USB_RXCSRL4_NAKTO 0x00000008 // NAK Timeout
  2265. #define USB_RXCSRL4_DATAERR 0x00000008 // Data Error
  2266. #define USB_RXCSRL4_OVER 0x00000004 // Overrun
  2267. #define USB_RXCSRL4_ERROR 0x00000004 // Error
  2268. #define USB_RXCSRL4_FULL 0x00000002 // FIFO Full
  2269. #define USB_RXCSRL4_RXRDY 0x00000001 // Receive Packet Ready
  2270. //*****************************************************************************
  2271. //
  2272. // The following are defines for the bit fields in the USB_O_RXCSRH4 register.
  2273. //
  2274. //*****************************************************************************
  2275. #define USB_RXCSRH4_AUTOCL 0x00000080 // Auto Clear
  2276. #define USB_RXCSRH4_AUTORQ 0x00000040 // Auto Request
  2277. #define USB_RXCSRH4_ISO 0x00000040 // Isochronous Transfers
  2278. #define USB_RXCSRH4_DMAEN 0x00000020 // DMA Request Enable
  2279. #define USB_RXCSRH4_DISNYET 0x00000010 // Disable NYET
  2280. #define USB_RXCSRH4_PIDERR 0x00000010 // PID Error
  2281. #define USB_RXCSRH4_DMAMOD 0x00000008 // DMA Request Mode
  2282. #define USB_RXCSRH4_DTWE 0x00000004 // Data Toggle Write Enable
  2283. #define USB_RXCSRH4_DT 0x00000002 // Data Toggle
  2284. //*****************************************************************************
  2285. //
  2286. // The following are defines for the bit fields in the USB_O_RXCOUNT4 register.
  2287. //
  2288. //*****************************************************************************
  2289. #define USB_RXCOUNT4_COUNT_M 0x00001FFF // Receive Packet Count
  2290. #define USB_RXCOUNT4_COUNT_S 0
  2291. //*****************************************************************************
  2292. //
  2293. // The following are defines for the bit fields in the USB_O_TXTYPE4 register.
  2294. //
  2295. //*****************************************************************************
  2296. #define USB_TXTYPE4_SPEED_M 0x000000C0 // Operating Speed
  2297. #define USB_TXTYPE4_SPEED_DFLT 0x00000000 // Default
  2298. #define USB_TXTYPE4_SPEED_FULL 0x00000080 // Full
  2299. #define USB_TXTYPE4_SPEED_LOW 0x000000C0 // Low
  2300. #define USB_TXTYPE4_PROTO_M 0x00000030 // Protocol
  2301. #define USB_TXTYPE4_PROTO_CTRL 0x00000000 // Control
  2302. #define USB_TXTYPE4_PROTO_ISOC 0x00000010 // Isochronous
  2303. #define USB_TXTYPE4_PROTO_BULK 0x00000020 // Bulk
  2304. #define USB_TXTYPE4_PROTO_INT 0x00000030 // Interrupt
  2305. #define USB_TXTYPE4_TEP_M 0x0000000F // Target Endpoint Number
  2306. #define USB_TXTYPE4_TEP_S 0
  2307. //*****************************************************************************
  2308. //
  2309. // The following are defines for the bit fields in the USB_O_TXINTERVAL4
  2310. // register.
  2311. //
  2312. //*****************************************************************************
  2313. #define USB_TXINTERVAL4_TXPOLL_M \
  2314. 0x000000FF // TX Polling
  2315. #define USB_TXINTERVAL4_NAKLMT_M \
  2316. 0x000000FF // NAK Limit
  2317. #define USB_TXINTERVAL4_NAKLMT_S \
  2318. 0
  2319. #define USB_TXINTERVAL4_TXPOLL_S \
  2320. 0
  2321. //*****************************************************************************
  2322. //
  2323. // The following are defines for the bit fields in the USB_O_RXTYPE4 register.
  2324. //
  2325. //*****************************************************************************
  2326. #define USB_RXTYPE4_SPEED_M 0x000000C0 // Operating Speed
  2327. #define USB_RXTYPE4_SPEED_DFLT 0x00000000 // Default
  2328. #define USB_RXTYPE4_SPEED_FULL 0x00000080 // Full
  2329. #define USB_RXTYPE4_SPEED_LOW 0x000000C0 // Low
  2330. #define USB_RXTYPE4_PROTO_M 0x00000030 // Protocol
  2331. #define USB_RXTYPE4_PROTO_CTRL 0x00000000 // Control
  2332. #define USB_RXTYPE4_PROTO_ISOC 0x00000010 // Isochronous
  2333. #define USB_RXTYPE4_PROTO_BULK 0x00000020 // Bulk
  2334. #define USB_RXTYPE4_PROTO_INT 0x00000030 // Interrupt
  2335. #define USB_RXTYPE4_TEP_M 0x0000000F // Target Endpoint Number
  2336. #define USB_RXTYPE4_TEP_S 0
  2337. //*****************************************************************************
  2338. //
  2339. // The following are defines for the bit fields in the USB_O_RXINTERVAL4
  2340. // register.
  2341. //
  2342. //*****************************************************************************
  2343. #define USB_RXINTERVAL4_TXPOLL_M \
  2344. 0x000000FF // RX Polling
  2345. #define USB_RXINTERVAL4_NAKLMT_M \
  2346. 0x000000FF // NAK Limit
  2347. #define USB_RXINTERVAL4_NAKLMT_S \
  2348. 0
  2349. #define USB_RXINTERVAL4_TXPOLL_S \
  2350. 0
  2351. //*****************************************************************************
  2352. //
  2353. // The following are defines for the bit fields in the USB_O_TXMAXP5 register.
  2354. //
  2355. //*****************************************************************************
  2356. #define USB_TXMAXP5_MAXLOAD_M 0x000007FF // Maximum Payload
  2357. #define USB_TXMAXP5_MAXLOAD_S 0
  2358. //*****************************************************************************
  2359. //
  2360. // The following are defines for the bit fields in the USB_O_TXCSRL5 register.
  2361. //
  2362. //*****************************************************************************
  2363. #define USB_TXCSRL5_NAKTO 0x00000080 // NAK Timeout
  2364. #define USB_TXCSRL5_CLRDT 0x00000040 // Clear Data Toggle
  2365. #define USB_TXCSRL5_STALLED 0x00000020 // Endpoint Stalled
  2366. #define USB_TXCSRL5_SETUP 0x00000010 // Setup Packet
  2367. #define USB_TXCSRL5_STALL 0x00000010 // Send STALL
  2368. #define USB_TXCSRL5_FLUSH 0x00000008 // Flush FIFO
  2369. #define USB_TXCSRL5_ERROR 0x00000004 // Error
  2370. #define USB_TXCSRL5_UNDRN 0x00000004 // Underrun
  2371. #define USB_TXCSRL5_FIFONE 0x00000002 // FIFO Not Empty
  2372. #define USB_TXCSRL5_TXRDY 0x00000001 // Transmit Packet Ready
  2373. //*****************************************************************************
  2374. //
  2375. // The following are defines for the bit fields in the USB_O_TXCSRH5 register.
  2376. //
  2377. //*****************************************************************************
  2378. #define USB_TXCSRH5_AUTOSET 0x00000080 // Auto Set
  2379. #define USB_TXCSRH5_ISO 0x00000040 // Isochronous Transfers
  2380. #define USB_TXCSRH5_MODE 0x00000020 // Mode
  2381. #define USB_TXCSRH5_DMAEN 0x00000010 // DMA Request Enable
  2382. #define USB_TXCSRH5_FDT 0x00000008 // Force Data Toggle
  2383. #define USB_TXCSRH5_DMAMOD 0x00000004 // DMA Request Mode
  2384. #define USB_TXCSRH5_DTWE 0x00000002 // Data Toggle Write Enable
  2385. #define USB_TXCSRH5_DT 0x00000001 // Data Toggle
  2386. //*****************************************************************************
  2387. //
  2388. // The following are defines for the bit fields in the USB_O_RXMAXP5 register.
  2389. //
  2390. //*****************************************************************************
  2391. #define USB_RXMAXP5_MAXLOAD_M 0x000007FF // Maximum Payload
  2392. #define USB_RXMAXP5_MAXLOAD_S 0
  2393. //*****************************************************************************
  2394. //
  2395. // The following are defines for the bit fields in the USB_O_RXCSRL5 register.
  2396. //
  2397. //*****************************************************************************
  2398. #define USB_RXCSRL5_CLRDT 0x00000080 // Clear Data Toggle
  2399. #define USB_RXCSRL5_STALLED 0x00000040 // Endpoint Stalled
  2400. #define USB_RXCSRL5_STALL 0x00000020 // Send STALL
  2401. #define USB_RXCSRL5_REQPKT 0x00000020 // Request Packet
  2402. #define USB_RXCSRL5_FLUSH 0x00000010 // Flush FIFO
  2403. #define USB_RXCSRL5_NAKTO 0x00000008 // NAK Timeout
  2404. #define USB_RXCSRL5_DATAERR 0x00000008 // Data Error
  2405. #define USB_RXCSRL5_ERROR 0x00000004 // Error
  2406. #define USB_RXCSRL5_OVER 0x00000004 // Overrun
  2407. #define USB_RXCSRL5_FULL 0x00000002 // FIFO Full
  2408. #define USB_RXCSRL5_RXRDY 0x00000001 // Receive Packet Ready
  2409. //*****************************************************************************
  2410. //
  2411. // The following are defines for the bit fields in the USB_O_RXCSRH5 register.
  2412. //
  2413. //*****************************************************************************
  2414. #define USB_RXCSRH5_AUTOCL 0x00000080 // Auto Clear
  2415. #define USB_RXCSRH5_AUTORQ 0x00000040 // Auto Request
  2416. #define USB_RXCSRH5_ISO 0x00000040 // Isochronous Transfers
  2417. #define USB_RXCSRH5_DMAEN 0x00000020 // DMA Request Enable
  2418. #define USB_RXCSRH5_DISNYET 0x00000010 // Disable NYET
  2419. #define USB_RXCSRH5_PIDERR 0x00000010 // PID Error
  2420. #define USB_RXCSRH5_DMAMOD 0x00000008 // DMA Request Mode
  2421. #define USB_RXCSRH5_DTWE 0x00000004 // Data Toggle Write Enable
  2422. #define USB_RXCSRH5_DT 0x00000002 // Data Toggle
  2423. //*****************************************************************************
  2424. //
  2425. // The following are defines for the bit fields in the USB_O_RXCOUNT5 register.
  2426. //
  2427. //*****************************************************************************
  2428. #define USB_RXCOUNT5_COUNT_M 0x00001FFF // Receive Packet Count
  2429. #define USB_RXCOUNT5_COUNT_S 0
  2430. //*****************************************************************************
  2431. //
  2432. // The following are defines for the bit fields in the USB_O_TXTYPE5 register.
  2433. //
  2434. //*****************************************************************************
  2435. #define USB_TXTYPE5_SPEED_M 0x000000C0 // Operating Speed
  2436. #define USB_TXTYPE5_SPEED_DFLT 0x00000000 // Default
  2437. #define USB_TXTYPE5_SPEED_FULL 0x00000080 // Full
  2438. #define USB_TXTYPE5_SPEED_LOW 0x000000C0 // Low
  2439. #define USB_TXTYPE5_PROTO_M 0x00000030 // Protocol
  2440. #define USB_TXTYPE5_PROTO_CTRL 0x00000000 // Control
  2441. #define USB_TXTYPE5_PROTO_ISOC 0x00000010 // Isochronous
  2442. #define USB_TXTYPE5_PROTO_BULK 0x00000020 // Bulk
  2443. #define USB_TXTYPE5_PROTO_INT 0x00000030 // Interrupt
  2444. #define USB_TXTYPE5_TEP_M 0x0000000F // Target Endpoint Number
  2445. #define USB_TXTYPE5_TEP_S 0
  2446. //*****************************************************************************
  2447. //
  2448. // The following are defines for the bit fields in the USB_O_TXINTERVAL5
  2449. // register.
  2450. //
  2451. //*****************************************************************************
  2452. #define USB_TXINTERVAL5_TXPOLL_M \
  2453. 0x000000FF // TX Polling
  2454. #define USB_TXINTERVAL5_NAKLMT_M \
  2455. 0x000000FF // NAK Limit
  2456. #define USB_TXINTERVAL5_NAKLMT_S \
  2457. 0
  2458. #define USB_TXINTERVAL5_TXPOLL_S \
  2459. 0
  2460. //*****************************************************************************
  2461. //
  2462. // The following are defines for the bit fields in the USB_O_RXTYPE5 register.
  2463. //
  2464. //*****************************************************************************
  2465. #define USB_RXTYPE5_SPEED_M 0x000000C0 // Operating Speed
  2466. #define USB_RXTYPE5_SPEED_DFLT 0x00000000 // Default
  2467. #define USB_RXTYPE5_SPEED_FULL 0x00000080 // Full
  2468. #define USB_RXTYPE5_SPEED_LOW 0x000000C0 // Low
  2469. #define USB_RXTYPE5_PROTO_M 0x00000030 // Protocol
  2470. #define USB_RXTYPE5_PROTO_CTRL 0x00000000 // Control
  2471. #define USB_RXTYPE5_PROTO_ISOC 0x00000010 // Isochronous
  2472. #define USB_RXTYPE5_PROTO_BULK 0x00000020 // Bulk
  2473. #define USB_RXTYPE5_PROTO_INT 0x00000030 // Interrupt
  2474. #define USB_RXTYPE5_TEP_M 0x0000000F // Target Endpoint Number
  2475. #define USB_RXTYPE5_TEP_S 0
  2476. //*****************************************************************************
  2477. //
  2478. // The following are defines for the bit fields in the USB_O_RXINTERVAL5
  2479. // register.
  2480. //
  2481. //*****************************************************************************
  2482. #define USB_RXINTERVAL5_TXPOLL_M \
  2483. 0x000000FF // RX Polling
  2484. #define USB_RXINTERVAL5_NAKLMT_M \
  2485. 0x000000FF // NAK Limit
  2486. #define USB_RXINTERVAL5_TXPOLL_S \
  2487. 0
  2488. #define USB_RXINTERVAL5_NAKLMT_S \
  2489. 0
  2490. //*****************************************************************************
  2491. //
  2492. // The following are defines for the bit fields in the USB_O_TXMAXP6 register.
  2493. //
  2494. //*****************************************************************************
  2495. #define USB_TXMAXP6_MAXLOAD_M 0x000007FF // Maximum Payload
  2496. #define USB_TXMAXP6_MAXLOAD_S 0
  2497. //*****************************************************************************
  2498. //
  2499. // The following are defines for the bit fields in the USB_O_TXCSRL6 register.
  2500. //
  2501. //*****************************************************************************
  2502. #define USB_TXCSRL6_NAKTO 0x00000080 // NAK Timeout
  2503. #define USB_TXCSRL6_CLRDT 0x00000040 // Clear Data Toggle
  2504. #define USB_TXCSRL6_STALLED 0x00000020 // Endpoint Stalled
  2505. #define USB_TXCSRL6_STALL 0x00000010 // Send STALL
  2506. #define USB_TXCSRL6_SETUP 0x00000010 // Setup Packet
  2507. #define USB_TXCSRL6_FLUSH 0x00000008 // Flush FIFO
  2508. #define USB_TXCSRL6_ERROR 0x00000004 // Error
  2509. #define USB_TXCSRL6_UNDRN 0x00000004 // Underrun
  2510. #define USB_TXCSRL6_FIFONE 0x00000002 // FIFO Not Empty
  2511. #define USB_TXCSRL6_TXRDY 0x00000001 // Transmit Packet Ready
  2512. //*****************************************************************************
  2513. //
  2514. // The following are defines for the bit fields in the USB_O_TXCSRH6 register.
  2515. //
  2516. //*****************************************************************************
  2517. #define USB_TXCSRH6_AUTOSET 0x00000080 // Auto Set
  2518. #define USB_TXCSRH6_ISO 0x00000040 // Isochronous Transfers
  2519. #define USB_TXCSRH6_MODE 0x00000020 // Mode
  2520. #define USB_TXCSRH6_DMAEN 0x00000010 // DMA Request Enable
  2521. #define USB_TXCSRH6_FDT 0x00000008 // Force Data Toggle
  2522. #define USB_TXCSRH6_DMAMOD 0x00000004 // DMA Request Mode
  2523. #define USB_TXCSRH6_DTWE 0x00000002 // Data Toggle Write Enable
  2524. #define USB_TXCSRH6_DT 0x00000001 // Data Toggle
  2525. //*****************************************************************************
  2526. //
  2527. // The following are defines for the bit fields in the USB_O_RXMAXP6 register.
  2528. //
  2529. //*****************************************************************************
  2530. #define USB_RXMAXP6_MAXLOAD_M 0x000007FF // Maximum Payload
  2531. #define USB_RXMAXP6_MAXLOAD_S 0
  2532. //*****************************************************************************
  2533. //
  2534. // The following are defines for the bit fields in the USB_O_RXCSRL6 register.
  2535. //
  2536. //*****************************************************************************
  2537. #define USB_RXCSRL6_CLRDT 0x00000080 // Clear Data Toggle
  2538. #define USB_RXCSRL6_STALLED 0x00000040 // Endpoint Stalled
  2539. #define USB_RXCSRL6_REQPKT 0x00000020 // Request Packet
  2540. #define USB_RXCSRL6_STALL 0x00000020 // Send STALL
  2541. #define USB_RXCSRL6_FLUSH 0x00000010 // Flush FIFO
  2542. #define USB_RXCSRL6_NAKTO 0x00000008 // NAK Timeout
  2543. #define USB_RXCSRL6_DATAERR 0x00000008 // Data Error
  2544. #define USB_RXCSRL6_ERROR 0x00000004 // Error
  2545. #define USB_RXCSRL6_OVER 0x00000004 // Overrun
  2546. #define USB_RXCSRL6_FULL 0x00000002 // FIFO Full
  2547. #define USB_RXCSRL6_RXRDY 0x00000001 // Receive Packet Ready
  2548. //*****************************************************************************
  2549. //
  2550. // The following are defines for the bit fields in the USB_O_RXCSRH6 register.
  2551. //
  2552. //*****************************************************************************
  2553. #define USB_RXCSRH6_AUTOCL 0x00000080 // Auto Clear
  2554. #define USB_RXCSRH6_AUTORQ 0x00000040 // Auto Request
  2555. #define USB_RXCSRH6_ISO 0x00000040 // Isochronous Transfers
  2556. #define USB_RXCSRH6_DMAEN 0x00000020 // DMA Request Enable
  2557. #define USB_RXCSRH6_DISNYET 0x00000010 // Disable NYET
  2558. #define USB_RXCSRH6_PIDERR 0x00000010 // PID Error
  2559. #define USB_RXCSRH6_DMAMOD 0x00000008 // DMA Request Mode
  2560. #define USB_RXCSRH6_DTWE 0x00000004 // Data Toggle Write Enable
  2561. #define USB_RXCSRH6_DT 0x00000002 // Data Toggle
  2562. //*****************************************************************************
  2563. //
  2564. // The following are defines for the bit fields in the USB_O_RXCOUNT6 register.
  2565. //
  2566. //*****************************************************************************
  2567. #define USB_RXCOUNT6_COUNT_M 0x00001FFF // Receive Packet Count
  2568. #define USB_RXCOUNT6_COUNT_S 0
  2569. //*****************************************************************************
  2570. //
  2571. // The following are defines for the bit fields in the USB_O_TXTYPE6 register.
  2572. //
  2573. //*****************************************************************************
  2574. #define USB_TXTYPE6_SPEED_M 0x000000C0 // Operating Speed
  2575. #define USB_TXTYPE6_SPEED_DFLT 0x00000000 // Default
  2576. #define USB_TXTYPE6_SPEED_FULL 0x00000080 // Full
  2577. #define USB_TXTYPE6_SPEED_LOW 0x000000C0 // Low
  2578. #define USB_TXTYPE6_PROTO_M 0x00000030 // Protocol
  2579. #define USB_TXTYPE6_PROTO_CTRL 0x00000000 // Control
  2580. #define USB_TXTYPE6_PROTO_ISOC 0x00000010 // Isochronous
  2581. #define USB_TXTYPE6_PROTO_BULK 0x00000020 // Bulk
  2582. #define USB_TXTYPE6_PROTO_INT 0x00000030 // Interrupt
  2583. #define USB_TXTYPE6_TEP_M 0x0000000F // Target Endpoint Number
  2584. #define USB_TXTYPE6_TEP_S 0
  2585. //*****************************************************************************
  2586. //
  2587. // The following are defines for the bit fields in the USB_O_TXINTERVAL6
  2588. // register.
  2589. //
  2590. //*****************************************************************************
  2591. #define USB_TXINTERVAL6_TXPOLL_M \
  2592. 0x000000FF // TX Polling
  2593. #define USB_TXINTERVAL6_NAKLMT_M \
  2594. 0x000000FF // NAK Limit
  2595. #define USB_TXINTERVAL6_TXPOLL_S \
  2596. 0
  2597. #define USB_TXINTERVAL6_NAKLMT_S \
  2598. 0
  2599. //*****************************************************************************
  2600. //
  2601. // The following are defines for the bit fields in the USB_O_RXTYPE6 register.
  2602. //
  2603. //*****************************************************************************
  2604. #define USB_RXTYPE6_SPEED_M 0x000000C0 // Operating Speed
  2605. #define USB_RXTYPE6_SPEED_DFLT 0x00000000 // Default
  2606. #define USB_RXTYPE6_SPEED_FULL 0x00000080 // Full
  2607. #define USB_RXTYPE6_SPEED_LOW 0x000000C0 // Low
  2608. #define USB_RXTYPE6_PROTO_M 0x00000030 // Protocol
  2609. #define USB_RXTYPE6_PROTO_CTRL 0x00000000 // Control
  2610. #define USB_RXTYPE6_PROTO_ISOC 0x00000010 // Isochronous
  2611. #define USB_RXTYPE6_PROTO_BULK 0x00000020 // Bulk
  2612. #define USB_RXTYPE6_PROTO_INT 0x00000030 // Interrupt
  2613. #define USB_RXTYPE6_TEP_M 0x0000000F // Target Endpoint Number
  2614. #define USB_RXTYPE6_TEP_S 0
  2615. //*****************************************************************************
  2616. //
  2617. // The following are defines for the bit fields in the USB_O_RXINTERVAL6
  2618. // register.
  2619. //
  2620. //*****************************************************************************
  2621. #define USB_RXINTERVAL6_TXPOLL_M \
  2622. 0x000000FF // RX Polling
  2623. #define USB_RXINTERVAL6_NAKLMT_M \
  2624. 0x000000FF // NAK Limit
  2625. #define USB_RXINTERVAL6_NAKLMT_S \
  2626. 0
  2627. #define USB_RXINTERVAL6_TXPOLL_S \
  2628. 0
  2629. //*****************************************************************************
  2630. //
  2631. // The following are defines for the bit fields in the USB_O_TXMAXP7 register.
  2632. //
  2633. //*****************************************************************************
  2634. #define USB_TXMAXP7_MAXLOAD_M 0x000007FF // Maximum Payload
  2635. #define USB_TXMAXP7_MAXLOAD_S 0
  2636. //*****************************************************************************
  2637. //
  2638. // The following are defines for the bit fields in the USB_O_TXCSRL7 register.
  2639. //
  2640. //*****************************************************************************
  2641. #define USB_TXCSRL7_NAKTO 0x00000080 // NAK Timeout
  2642. #define USB_TXCSRL7_CLRDT 0x00000040 // Clear Data Toggle
  2643. #define USB_TXCSRL7_STALLED 0x00000020 // Endpoint Stalled
  2644. #define USB_TXCSRL7_STALL 0x00000010 // Send STALL
  2645. #define USB_TXCSRL7_SETUP 0x00000010 // Setup Packet
  2646. #define USB_TXCSRL7_FLUSH 0x00000008 // Flush FIFO
  2647. #define USB_TXCSRL7_ERROR 0x00000004 // Error
  2648. #define USB_TXCSRL7_UNDRN 0x00000004 // Underrun
  2649. #define USB_TXCSRL7_FIFONE 0x00000002 // FIFO Not Empty
  2650. #define USB_TXCSRL7_TXRDY 0x00000001 // Transmit Packet Ready
  2651. //*****************************************************************************
  2652. //
  2653. // The following are defines for the bit fields in the USB_O_TXCSRH7 register.
  2654. //
  2655. //*****************************************************************************
  2656. #define USB_TXCSRH7_AUTOSET 0x00000080 // Auto Set
  2657. #define USB_TXCSRH7_ISO 0x00000040 // Isochronous Transfers
  2658. #define USB_TXCSRH7_MODE 0x00000020 // Mode
  2659. #define USB_TXCSRH7_DMAEN 0x00000010 // DMA Request Enable
  2660. #define USB_TXCSRH7_FDT 0x00000008 // Force Data Toggle
  2661. #define USB_TXCSRH7_DMAMOD 0x00000004 // DMA Request Mode
  2662. #define USB_TXCSRH7_DTWE 0x00000002 // Data Toggle Write Enable
  2663. #define USB_TXCSRH7_DT 0x00000001 // Data Toggle
  2664. //*****************************************************************************
  2665. //
  2666. // The following are defines for the bit fields in the USB_O_RXMAXP7 register.
  2667. //
  2668. //*****************************************************************************
  2669. #define USB_RXMAXP7_MAXLOAD_M 0x000007FF // Maximum Payload
  2670. #define USB_RXMAXP7_MAXLOAD_S 0
  2671. //*****************************************************************************
  2672. //
  2673. // The following are defines for the bit fields in the USB_O_RXCSRL7 register.
  2674. //
  2675. //*****************************************************************************
  2676. #define USB_RXCSRL7_CLRDT 0x00000080 // Clear Data Toggle
  2677. #define USB_RXCSRL7_STALLED 0x00000040 // Endpoint Stalled
  2678. #define USB_RXCSRL7_REQPKT 0x00000020 // Request Packet
  2679. #define USB_RXCSRL7_STALL 0x00000020 // Send STALL
  2680. #define USB_RXCSRL7_FLUSH 0x00000010 // Flush FIFO
  2681. #define USB_RXCSRL7_DATAERR 0x00000008 // Data Error
  2682. #define USB_RXCSRL7_NAKTO 0x00000008 // NAK Timeout
  2683. #define USB_RXCSRL7_ERROR 0x00000004 // Error
  2684. #define USB_RXCSRL7_OVER 0x00000004 // Overrun
  2685. #define USB_RXCSRL7_FULL 0x00000002 // FIFO Full
  2686. #define USB_RXCSRL7_RXRDY 0x00000001 // Receive Packet Ready
  2687. //*****************************************************************************
  2688. //
  2689. // The following are defines for the bit fields in the USB_O_RXCSRH7 register.
  2690. //
  2691. //*****************************************************************************
  2692. #define USB_RXCSRH7_AUTOCL 0x00000080 // Auto Clear
  2693. #define USB_RXCSRH7_ISO 0x00000040 // Isochronous Transfers
  2694. #define USB_RXCSRH7_AUTORQ 0x00000040 // Auto Request
  2695. #define USB_RXCSRH7_DMAEN 0x00000020 // DMA Request Enable
  2696. #define USB_RXCSRH7_PIDERR 0x00000010 // PID Error
  2697. #define USB_RXCSRH7_DISNYET 0x00000010 // Disable NYET
  2698. #define USB_RXCSRH7_DMAMOD 0x00000008 // DMA Request Mode
  2699. #define USB_RXCSRH7_DTWE 0x00000004 // Data Toggle Write Enable
  2700. #define USB_RXCSRH7_DT 0x00000002 // Data Toggle
  2701. //*****************************************************************************
  2702. //
  2703. // The following are defines for the bit fields in the USB_O_RXCOUNT7 register.
  2704. //
  2705. //*****************************************************************************
  2706. #define USB_RXCOUNT7_COUNT_M 0x00001FFF // Receive Packet Count
  2707. #define USB_RXCOUNT7_COUNT_S 0
  2708. //*****************************************************************************
  2709. //
  2710. // The following are defines for the bit fields in the USB_O_TXTYPE7 register.
  2711. //
  2712. //*****************************************************************************
  2713. #define USB_TXTYPE7_SPEED_M 0x000000C0 // Operating Speed
  2714. #define USB_TXTYPE7_SPEED_DFLT 0x00000000 // Default
  2715. #define USB_TXTYPE7_SPEED_FULL 0x00000080 // Full
  2716. #define USB_TXTYPE7_SPEED_LOW 0x000000C0 // Low
  2717. #define USB_TXTYPE7_PROTO_M 0x00000030 // Protocol
  2718. #define USB_TXTYPE7_PROTO_CTRL 0x00000000 // Control
  2719. #define USB_TXTYPE7_PROTO_ISOC 0x00000010 // Isochronous
  2720. #define USB_TXTYPE7_PROTO_BULK 0x00000020 // Bulk
  2721. #define USB_TXTYPE7_PROTO_INT 0x00000030 // Interrupt
  2722. #define USB_TXTYPE7_TEP_M 0x0000000F // Target Endpoint Number
  2723. #define USB_TXTYPE7_TEP_S 0
  2724. //*****************************************************************************
  2725. //
  2726. // The following are defines for the bit fields in the USB_O_TXINTERVAL7
  2727. // register.
  2728. //
  2729. //*****************************************************************************
  2730. #define USB_TXINTERVAL7_TXPOLL_M \
  2731. 0x000000FF // TX Polling
  2732. #define USB_TXINTERVAL7_NAKLMT_M \
  2733. 0x000000FF // NAK Limit
  2734. #define USB_TXINTERVAL7_NAKLMT_S \
  2735. 0
  2736. #define USB_TXINTERVAL7_TXPOLL_S \
  2737. 0
  2738. //*****************************************************************************
  2739. //
  2740. // The following are defines for the bit fields in the USB_O_RXTYPE7 register.
  2741. //
  2742. //*****************************************************************************
  2743. #define USB_RXTYPE7_SPEED_M 0x000000C0 // Operating Speed
  2744. #define USB_RXTYPE7_SPEED_DFLT 0x00000000 // Default
  2745. #define USB_RXTYPE7_SPEED_FULL 0x00000080 // Full
  2746. #define USB_RXTYPE7_SPEED_LOW 0x000000C0 // Low
  2747. #define USB_RXTYPE7_PROTO_M 0x00000030 // Protocol
  2748. #define USB_RXTYPE7_PROTO_CTRL 0x00000000 // Control
  2749. #define USB_RXTYPE7_PROTO_ISOC 0x00000010 // Isochronous
  2750. #define USB_RXTYPE7_PROTO_BULK 0x00000020 // Bulk
  2751. #define USB_RXTYPE7_PROTO_INT 0x00000030 // Interrupt
  2752. #define USB_RXTYPE7_TEP_M 0x0000000F // Target Endpoint Number
  2753. #define USB_RXTYPE7_TEP_S 0
  2754. //*****************************************************************************
  2755. //
  2756. // The following are defines for the bit fields in the USB_O_RXINTERVAL7
  2757. // register.
  2758. //
  2759. //*****************************************************************************
  2760. #define USB_RXINTERVAL7_TXPOLL_M \
  2761. 0x000000FF // RX Polling
  2762. #define USB_RXINTERVAL7_NAKLMT_M \
  2763. 0x000000FF // NAK Limit
  2764. #define USB_RXINTERVAL7_NAKLMT_S \
  2765. 0
  2766. #define USB_RXINTERVAL7_TXPOLL_S \
  2767. 0
  2768. //*****************************************************************************
  2769. //
  2770. // The following are defines for the bit fields in the USB_O_TXMAXP8 register.
  2771. //
  2772. //*****************************************************************************
  2773. #define USB_TXMAXP8_MAXLOAD_M 0x000007FF // Maximum Payload
  2774. #define USB_TXMAXP8_MAXLOAD_S 0
  2775. //*****************************************************************************
  2776. //
  2777. // The following are defines for the bit fields in the USB_O_TXCSRL8 register.
  2778. //
  2779. //*****************************************************************************
  2780. #define USB_TXCSRL8_NAKTO 0x00000080 // NAK Timeout
  2781. #define USB_TXCSRL8_CLRDT 0x00000040 // Clear Data Toggle
  2782. #define USB_TXCSRL8_STALLED 0x00000020 // Endpoint Stalled
  2783. #define USB_TXCSRL8_STALL 0x00000010 // Send STALL
  2784. #define USB_TXCSRL8_SETUP 0x00000010 // Setup Packet
  2785. #define USB_TXCSRL8_FLUSH 0x00000008 // Flush FIFO
  2786. #define USB_TXCSRL8_ERROR 0x00000004 // Error
  2787. #define USB_TXCSRL8_UNDRN 0x00000004 // Underrun
  2788. #define USB_TXCSRL8_FIFONE 0x00000002 // FIFO Not Empty
  2789. #define USB_TXCSRL8_TXRDY 0x00000001 // Transmit Packet Ready
  2790. //*****************************************************************************
  2791. //
  2792. // The following are defines for the bit fields in the USB_O_TXCSRH8 register.
  2793. //
  2794. //*****************************************************************************
  2795. #define USB_TXCSRH8_AUTOSET 0x00000080 // Auto Set
  2796. #define USB_TXCSRH8_ISO 0x00000040 // Isochronous Transfers
  2797. #define USB_TXCSRH8_MODE 0x00000020 // Mode
  2798. #define USB_TXCSRH8_DMAEN 0x00000010 // DMA Request Enable
  2799. #define USB_TXCSRH8_FDT 0x00000008 // Force Data Toggle
  2800. #define USB_TXCSRH8_DMAMOD 0x00000004 // DMA Request Mode
  2801. #define USB_TXCSRH8_DTWE 0x00000002 // Data Toggle Write Enable
  2802. #define USB_TXCSRH8_DT 0x00000001 // Data Toggle
  2803. //*****************************************************************************
  2804. //
  2805. // The following are defines for the bit fields in the USB_O_RXMAXP8 register.
  2806. //
  2807. //*****************************************************************************
  2808. #define USB_RXMAXP8_MAXLOAD_M 0x000007FF // Maximum Payload
  2809. #define USB_RXMAXP8_MAXLOAD_S 0
  2810. //*****************************************************************************
  2811. //
  2812. // The following are defines for the bit fields in the USB_O_RXCSRL8 register.
  2813. //
  2814. //*****************************************************************************
  2815. #define USB_RXCSRL8_CLRDT 0x00000080 // Clear Data Toggle
  2816. #define USB_RXCSRL8_STALLED 0x00000040 // Endpoint Stalled
  2817. #define USB_RXCSRL8_STALL 0x00000020 // Send STALL
  2818. #define USB_RXCSRL8_REQPKT 0x00000020 // Request Packet
  2819. #define USB_RXCSRL8_FLUSH 0x00000010 // Flush FIFO
  2820. #define USB_RXCSRL8_NAKTO 0x00000008 // NAK Timeout
  2821. #define USB_RXCSRL8_DATAERR 0x00000008 // Data Error
  2822. #define USB_RXCSRL8_OVER 0x00000004 // Overrun
  2823. #define USB_RXCSRL8_ERROR 0x00000004 // Error
  2824. #define USB_RXCSRL8_FULL 0x00000002 // FIFO Full
  2825. #define USB_RXCSRL8_RXRDY 0x00000001 // Receive Packet Ready
  2826. //*****************************************************************************
  2827. //
  2828. // The following are defines for the bit fields in the USB_O_RXCSRH8 register.
  2829. //
  2830. //*****************************************************************************
  2831. #define USB_RXCSRH8_AUTOCL 0x00000080 // Auto Clear
  2832. #define USB_RXCSRH8_AUTORQ 0x00000040 // Auto Request
  2833. #define USB_RXCSRH8_ISO 0x00000040 // Isochronous Transfers
  2834. #define USB_RXCSRH8_DMAEN 0x00000020 // DMA Request Enable
  2835. #define USB_RXCSRH8_DISNYET 0x00000010 // Disable NYET
  2836. #define USB_RXCSRH8_PIDERR 0x00000010 // PID Error
  2837. #define USB_RXCSRH8_DMAMOD 0x00000008 // DMA Request Mode
  2838. #define USB_RXCSRH8_DTWE 0x00000004 // Data Toggle Write Enable
  2839. #define USB_RXCSRH8_DT 0x00000002 // Data Toggle
  2840. //*****************************************************************************
  2841. //
  2842. // The following are defines for the bit fields in the USB_O_RXCOUNT8 register.
  2843. //
  2844. //*****************************************************************************
  2845. #define USB_RXCOUNT8_COUNT_M 0x00001FFF // Receive Packet Count
  2846. #define USB_RXCOUNT8_COUNT_S 0
  2847. //*****************************************************************************
  2848. //
  2849. // The following are defines for the bit fields in the USB_O_TXTYPE8 register.
  2850. //
  2851. //*****************************************************************************
  2852. #define USB_TXTYPE8_SPEED_M 0x000000C0 // Operating Speed
  2853. #define USB_TXTYPE8_SPEED_DFLT 0x00000000 // Default
  2854. #define USB_TXTYPE8_SPEED_FULL 0x00000080 // Full
  2855. #define USB_TXTYPE8_SPEED_LOW 0x000000C0 // Low
  2856. #define USB_TXTYPE8_PROTO_M 0x00000030 // Protocol
  2857. #define USB_TXTYPE8_PROTO_CTRL 0x00000000 // Control
  2858. #define USB_TXTYPE8_PROTO_ISOC 0x00000010 // Isochronous
  2859. #define USB_TXTYPE8_PROTO_BULK 0x00000020 // Bulk
  2860. #define USB_TXTYPE8_PROTO_INT 0x00000030 // Interrupt
  2861. #define USB_TXTYPE8_TEP_M 0x0000000F // Target Endpoint Number
  2862. #define USB_TXTYPE8_TEP_S 0
  2863. //*****************************************************************************
  2864. //
  2865. // The following are defines for the bit fields in the USB_O_TXINTERVAL8
  2866. // register.
  2867. //
  2868. //*****************************************************************************
  2869. #define USB_TXINTERVAL8_TXPOLL_M \
  2870. 0x000000FF // TX Polling
  2871. #define USB_TXINTERVAL8_NAKLMT_M \
  2872. 0x000000FF // NAK Limit
  2873. #define USB_TXINTERVAL8_NAKLMT_S \
  2874. 0
  2875. #define USB_TXINTERVAL8_TXPOLL_S \
  2876. 0
  2877. //*****************************************************************************
  2878. //
  2879. // The following are defines for the bit fields in the USB_O_RXTYPE8 register.
  2880. //
  2881. //*****************************************************************************
  2882. #define USB_RXTYPE8_SPEED_M 0x000000C0 // Operating Speed
  2883. #define USB_RXTYPE8_SPEED_DFLT 0x00000000 // Default
  2884. #define USB_RXTYPE8_SPEED_FULL 0x00000080 // Full
  2885. #define USB_RXTYPE8_SPEED_LOW 0x000000C0 // Low
  2886. #define USB_RXTYPE8_PROTO_M 0x00000030 // Protocol
  2887. #define USB_RXTYPE8_PROTO_CTRL 0x00000000 // Control
  2888. #define USB_RXTYPE8_PROTO_ISOC 0x00000010 // Isochronous
  2889. #define USB_RXTYPE8_PROTO_BULK 0x00000020 // Bulk
  2890. #define USB_RXTYPE8_PROTO_INT 0x00000030 // Interrupt
  2891. #define USB_RXTYPE8_TEP_M 0x0000000F // Target Endpoint Number
  2892. #define USB_RXTYPE8_TEP_S 0
  2893. //*****************************************************************************
  2894. //
  2895. // The following are defines for the bit fields in the USB_O_RXINTERVAL8
  2896. // register.
  2897. //
  2898. //*****************************************************************************
  2899. #define USB_RXINTERVAL8_NAKLMT_M \
  2900. 0x000000FF // NAK Limit
  2901. #define USB_RXINTERVAL8_TXPOLL_M \
  2902. 0x000000FF // RX Polling
  2903. #define USB_RXINTERVAL8_NAKLMT_S \
  2904. 0
  2905. #define USB_RXINTERVAL8_TXPOLL_S \
  2906. 0
  2907. //*****************************************************************************
  2908. //
  2909. // The following are defines for the bit fields in the USB_O_TXMAXP9 register.
  2910. //
  2911. //*****************************************************************************
  2912. #define USB_TXMAXP9_MAXLOAD_M 0x000007FF // Maximum Payload
  2913. #define USB_TXMAXP9_MAXLOAD_S 0
  2914. //*****************************************************************************
  2915. //
  2916. // The following are defines for the bit fields in the USB_O_TXCSRL9 register.
  2917. //
  2918. //*****************************************************************************
  2919. #define USB_TXCSRL9_NAKTO 0x00000080 // NAK Timeout
  2920. #define USB_TXCSRL9_CLRDT 0x00000040 // Clear Data Toggle
  2921. #define USB_TXCSRL9_STALLED 0x00000020 // Endpoint Stalled
  2922. #define USB_TXCSRL9_SETUP 0x00000010 // Setup Packet
  2923. #define USB_TXCSRL9_STALL 0x00000010 // Send STALL
  2924. #define USB_TXCSRL9_FLUSH 0x00000008 // Flush FIFO
  2925. #define USB_TXCSRL9_ERROR 0x00000004 // Error
  2926. #define USB_TXCSRL9_UNDRN 0x00000004 // Underrun
  2927. #define USB_TXCSRL9_FIFONE 0x00000002 // FIFO Not Empty
  2928. #define USB_TXCSRL9_TXRDY 0x00000001 // Transmit Packet Ready
  2929. //*****************************************************************************
  2930. //
  2931. // The following are defines for the bit fields in the USB_O_TXCSRH9 register.
  2932. //
  2933. //*****************************************************************************
  2934. #define USB_TXCSRH9_AUTOSET 0x00000080 // Auto Set
  2935. #define USB_TXCSRH9_ISO 0x00000040 // Isochronous Transfers
  2936. #define USB_TXCSRH9_MODE 0x00000020 // Mode
  2937. #define USB_TXCSRH9_DMAEN 0x00000010 // DMA Request Enable
  2938. #define USB_TXCSRH9_FDT 0x00000008 // Force Data Toggle
  2939. #define USB_TXCSRH9_DMAMOD 0x00000004 // DMA Request Mode
  2940. #define USB_TXCSRH9_DTWE 0x00000002 // Data Toggle Write Enable
  2941. #define USB_TXCSRH9_DT 0x00000001 // Data Toggle
  2942. //*****************************************************************************
  2943. //
  2944. // The following are defines for the bit fields in the USB_O_RXMAXP9 register.
  2945. //
  2946. //*****************************************************************************
  2947. #define USB_RXMAXP9_MAXLOAD_M 0x000007FF // Maximum Payload
  2948. #define USB_RXMAXP9_MAXLOAD_S 0
  2949. //*****************************************************************************
  2950. //
  2951. // The following are defines for the bit fields in the USB_O_RXCSRL9 register.
  2952. //
  2953. //*****************************************************************************
  2954. #define USB_RXCSRL9_CLRDT 0x00000080 // Clear Data Toggle
  2955. #define USB_RXCSRL9_STALLED 0x00000040 // Endpoint Stalled
  2956. #define USB_RXCSRL9_STALL 0x00000020 // Send STALL
  2957. #define USB_RXCSRL9_REQPKT 0x00000020 // Request Packet
  2958. #define USB_RXCSRL9_FLUSH 0x00000010 // Flush FIFO
  2959. #define USB_RXCSRL9_DATAERR 0x00000008 // Data Error
  2960. #define USB_RXCSRL9_NAKTO 0x00000008 // NAK Timeout
  2961. #define USB_RXCSRL9_ERROR 0x00000004 // Error
  2962. #define USB_RXCSRL9_OVER 0x00000004 // Overrun
  2963. #define USB_RXCSRL9_FULL 0x00000002 // FIFO Full
  2964. #define USB_RXCSRL9_RXRDY 0x00000001 // Receive Packet Ready
  2965. //*****************************************************************************
  2966. //
  2967. // The following are defines for the bit fields in the USB_O_RXCSRH9 register.
  2968. //
  2969. //*****************************************************************************
  2970. #define USB_RXCSRH9_AUTOCL 0x00000080 // Auto Clear
  2971. #define USB_RXCSRH9_ISO 0x00000040 // Isochronous Transfers
  2972. #define USB_RXCSRH9_AUTORQ 0x00000040 // Auto Request
  2973. #define USB_RXCSRH9_DMAEN 0x00000020 // DMA Request Enable
  2974. #define USB_RXCSRH9_PIDERR 0x00000010 // PID Error
  2975. #define USB_RXCSRH9_DISNYET 0x00000010 // Disable NYET
  2976. #define USB_RXCSRH9_DMAMOD 0x00000008 // DMA Request Mode
  2977. #define USB_RXCSRH9_DTWE 0x00000004 // Data Toggle Write Enable
  2978. #define USB_RXCSRH9_DT 0x00000002 // Data Toggle
  2979. //*****************************************************************************
  2980. //
  2981. // The following are defines for the bit fields in the USB_O_RXCOUNT9 register.
  2982. //
  2983. //*****************************************************************************
  2984. #define USB_RXCOUNT9_COUNT_M 0x00001FFF // Receive Packet Count
  2985. #define USB_RXCOUNT9_COUNT_S 0
  2986. //*****************************************************************************
  2987. //
  2988. // The following are defines for the bit fields in the USB_O_TXTYPE9 register.
  2989. //
  2990. //*****************************************************************************
  2991. #define USB_TXTYPE9_SPEED_M 0x000000C0 // Operating Speed
  2992. #define USB_TXTYPE9_SPEED_DFLT 0x00000000 // Default
  2993. #define USB_TXTYPE9_SPEED_FULL 0x00000080 // Full
  2994. #define USB_TXTYPE9_SPEED_LOW 0x000000C0 // Low
  2995. #define USB_TXTYPE9_PROTO_M 0x00000030 // Protocol
  2996. #define USB_TXTYPE9_PROTO_CTRL 0x00000000 // Control
  2997. #define USB_TXTYPE9_PROTO_ISOC 0x00000010 // Isochronous
  2998. #define USB_TXTYPE9_PROTO_BULK 0x00000020 // Bulk
  2999. #define USB_TXTYPE9_PROTO_INT 0x00000030 // Interrupt
  3000. #define USB_TXTYPE9_TEP_M 0x0000000F // Target Endpoint Number
  3001. #define USB_TXTYPE9_TEP_S 0
  3002. //*****************************************************************************
  3003. //
  3004. // The following are defines for the bit fields in the USB_O_TXINTERVAL9
  3005. // register.
  3006. //
  3007. //*****************************************************************************
  3008. #define USB_TXINTERVAL9_TXPOLL_M \
  3009. 0x000000FF // TX Polling
  3010. #define USB_TXINTERVAL9_NAKLMT_M \
  3011. 0x000000FF // NAK Limit
  3012. #define USB_TXINTERVAL9_TXPOLL_S \
  3013. 0
  3014. #define USB_TXINTERVAL9_NAKLMT_S \
  3015. 0
  3016. //*****************************************************************************
  3017. //
  3018. // The following are defines for the bit fields in the USB_O_RXTYPE9 register.
  3019. //
  3020. //*****************************************************************************
  3021. #define USB_RXTYPE9_SPEED_M 0x000000C0 // Operating Speed
  3022. #define USB_RXTYPE9_SPEED_DFLT 0x00000000 // Default
  3023. #define USB_RXTYPE9_SPEED_FULL 0x00000080 // Full
  3024. #define USB_RXTYPE9_SPEED_LOW 0x000000C0 // Low
  3025. #define USB_RXTYPE9_PROTO_M 0x00000030 // Protocol
  3026. #define USB_RXTYPE9_PROTO_CTRL 0x00000000 // Control
  3027. #define USB_RXTYPE9_PROTO_ISOC 0x00000010 // Isochronous
  3028. #define USB_RXTYPE9_PROTO_BULK 0x00000020 // Bulk
  3029. #define USB_RXTYPE9_PROTO_INT 0x00000030 // Interrupt
  3030. #define USB_RXTYPE9_TEP_M 0x0000000F // Target Endpoint Number
  3031. #define USB_RXTYPE9_TEP_S 0
  3032. //*****************************************************************************
  3033. //
  3034. // The following are defines for the bit fields in the USB_O_RXINTERVAL9
  3035. // register.
  3036. //
  3037. //*****************************************************************************
  3038. #define USB_RXINTERVAL9_TXPOLL_M \
  3039. 0x000000FF // RX Polling
  3040. #define USB_RXINTERVAL9_NAKLMT_M \
  3041. 0x000000FF // NAK Limit
  3042. #define USB_RXINTERVAL9_NAKLMT_S \
  3043. 0
  3044. #define USB_RXINTERVAL9_TXPOLL_S \
  3045. 0
  3046. //*****************************************************************************
  3047. //
  3048. // The following are defines for the bit fields in the USB_O_TXMAXP10 register.
  3049. //
  3050. //*****************************************************************************
  3051. #define USB_TXMAXP10_MAXLOAD_M 0x000007FF // Maximum Payload
  3052. #define USB_TXMAXP10_MAXLOAD_S 0
  3053. //*****************************************************************************
  3054. //
  3055. // The following are defines for the bit fields in the USB_O_TXCSRL10 register.
  3056. //
  3057. //*****************************************************************************
  3058. #define USB_TXCSRL10_NAKTO 0x00000080 // NAK Timeout
  3059. #define USB_TXCSRL10_CLRDT 0x00000040 // Clear Data Toggle
  3060. #define USB_TXCSRL10_STALLED 0x00000020 // Endpoint Stalled
  3061. #define USB_TXCSRL10_SETUP 0x00000010 // Setup Packet
  3062. #define USB_TXCSRL10_STALL 0x00000010 // Send STALL
  3063. #define USB_TXCSRL10_FLUSH 0x00000008 // Flush FIFO
  3064. #define USB_TXCSRL10_UNDRN 0x00000004 // Underrun
  3065. #define USB_TXCSRL10_ERROR 0x00000004 // Error
  3066. #define USB_TXCSRL10_FIFONE 0x00000002 // FIFO Not Empty
  3067. #define USB_TXCSRL10_TXRDY 0x00000001 // Transmit Packet Ready
  3068. //*****************************************************************************
  3069. //
  3070. // The following are defines for the bit fields in the USB_O_TXCSRH10 register.
  3071. //
  3072. //*****************************************************************************
  3073. #define USB_TXCSRH10_AUTOSET 0x00000080 // Auto Set
  3074. #define USB_TXCSRH10_ISO 0x00000040 // Isochronous Transfers
  3075. #define USB_TXCSRH10_MODE 0x00000020 // Mode
  3076. #define USB_TXCSRH10_DMAEN 0x00000010 // DMA Request Enable
  3077. #define USB_TXCSRH10_FDT 0x00000008 // Force Data Toggle
  3078. #define USB_TXCSRH10_DMAMOD 0x00000004 // DMA Request Mode
  3079. #define USB_TXCSRH10_DTWE 0x00000002 // Data Toggle Write Enable
  3080. #define USB_TXCSRH10_DT 0x00000001 // Data Toggle
  3081. //*****************************************************************************
  3082. //
  3083. // The following are defines for the bit fields in the USB_O_RXMAXP10 register.
  3084. //
  3085. //*****************************************************************************
  3086. #define USB_RXMAXP10_MAXLOAD_M 0x000007FF // Maximum Payload
  3087. #define USB_RXMAXP10_MAXLOAD_S 0
  3088. //*****************************************************************************
  3089. //
  3090. // The following are defines for the bit fields in the USB_O_RXCSRL10 register.
  3091. //
  3092. //*****************************************************************************
  3093. #define USB_RXCSRL10_CLRDT 0x00000080 // Clear Data Toggle
  3094. #define USB_RXCSRL10_STALLED 0x00000040 // Endpoint Stalled
  3095. #define USB_RXCSRL10_STALL 0x00000020 // Send STALL
  3096. #define USB_RXCSRL10_REQPKT 0x00000020 // Request Packet
  3097. #define USB_RXCSRL10_FLUSH 0x00000010 // Flush FIFO
  3098. #define USB_RXCSRL10_NAKTO 0x00000008 // NAK Timeout
  3099. #define USB_RXCSRL10_DATAERR 0x00000008 // Data Error
  3100. #define USB_RXCSRL10_OVER 0x00000004 // Overrun
  3101. #define USB_RXCSRL10_ERROR 0x00000004 // Error
  3102. #define USB_RXCSRL10_FULL 0x00000002 // FIFO Full
  3103. #define USB_RXCSRL10_RXRDY 0x00000001 // Receive Packet Ready
  3104. //*****************************************************************************
  3105. //
  3106. // The following are defines for the bit fields in the USB_O_RXCSRH10 register.
  3107. //
  3108. //*****************************************************************************
  3109. #define USB_RXCSRH10_AUTOCL 0x00000080 // Auto Clear
  3110. #define USB_RXCSRH10_AUTORQ 0x00000040 // Auto Request
  3111. #define USB_RXCSRH10_ISO 0x00000040 // Isochronous Transfers
  3112. #define USB_RXCSRH10_DMAEN 0x00000020 // DMA Request Enable
  3113. #define USB_RXCSRH10_PIDERR 0x00000010 // PID Error
  3114. #define USB_RXCSRH10_DISNYET 0x00000010 // Disable NYET
  3115. #define USB_RXCSRH10_DMAMOD 0x00000008 // DMA Request Mode
  3116. #define USB_RXCSRH10_DTWE 0x00000004 // Data Toggle Write Enable
  3117. #define USB_RXCSRH10_DT 0x00000002 // Data Toggle
  3118. //*****************************************************************************
  3119. //
  3120. // The following are defines for the bit fields in the USB_O_RXCOUNT10
  3121. // register.
  3122. //
  3123. //*****************************************************************************
  3124. #define USB_RXCOUNT10_COUNT_M 0x00001FFF // Receive Packet Count
  3125. #define USB_RXCOUNT10_COUNT_S 0
  3126. //*****************************************************************************
  3127. //
  3128. // The following are defines for the bit fields in the USB_O_TXTYPE10 register.
  3129. //
  3130. //*****************************************************************************
  3131. #define USB_TXTYPE10_SPEED_M 0x000000C0 // Operating Speed
  3132. #define USB_TXTYPE10_SPEED_DFLT 0x00000000 // Default
  3133. #define USB_TXTYPE10_SPEED_FULL 0x00000080 // Full
  3134. #define USB_TXTYPE10_SPEED_LOW 0x000000C0 // Low
  3135. #define USB_TXTYPE10_PROTO_M 0x00000030 // Protocol
  3136. #define USB_TXTYPE10_PROTO_CTRL 0x00000000 // Control
  3137. #define USB_TXTYPE10_PROTO_ISOC 0x00000010 // Isochronous
  3138. #define USB_TXTYPE10_PROTO_BULK 0x00000020 // Bulk
  3139. #define USB_TXTYPE10_PROTO_INT 0x00000030 // Interrupt
  3140. #define USB_TXTYPE10_TEP_M 0x0000000F // Target Endpoint Number
  3141. #define USB_TXTYPE10_TEP_S 0
  3142. //*****************************************************************************
  3143. //
  3144. // The following are defines for the bit fields in the USB_O_TXINTERVAL10
  3145. // register.
  3146. //
  3147. //*****************************************************************************
  3148. #define USB_TXINTERVAL10_NAKLMT_M \
  3149. 0x000000FF // NAK Limit
  3150. #define USB_TXINTERVAL10_TXPOLL_M \
  3151. 0x000000FF // TX Polling
  3152. #define USB_TXINTERVAL10_TXPOLL_S \
  3153. 0
  3154. #define USB_TXINTERVAL10_NAKLMT_S \
  3155. 0
  3156. //*****************************************************************************
  3157. //
  3158. // The following are defines for the bit fields in the USB_O_RXTYPE10 register.
  3159. //
  3160. //*****************************************************************************
  3161. #define USB_RXTYPE10_SPEED_M 0x000000C0 // Operating Speed
  3162. #define USB_RXTYPE10_SPEED_DFLT 0x00000000 // Default
  3163. #define USB_RXTYPE10_SPEED_FULL 0x00000080 // Full
  3164. #define USB_RXTYPE10_SPEED_LOW 0x000000C0 // Low
  3165. #define USB_RXTYPE10_PROTO_M 0x00000030 // Protocol
  3166. #define USB_RXTYPE10_PROTO_CTRL 0x00000000 // Control
  3167. #define USB_RXTYPE10_PROTO_ISOC 0x00000010 // Isochronous
  3168. #define USB_RXTYPE10_PROTO_BULK 0x00000020 // Bulk
  3169. #define USB_RXTYPE10_PROTO_INT 0x00000030 // Interrupt
  3170. #define USB_RXTYPE10_TEP_M 0x0000000F // Target Endpoint Number
  3171. #define USB_RXTYPE10_TEP_S 0
  3172. //*****************************************************************************
  3173. //
  3174. // The following are defines for the bit fields in the USB_O_RXINTERVAL10
  3175. // register.
  3176. //
  3177. //*****************************************************************************
  3178. #define USB_RXINTERVAL10_NAKLMT_M \
  3179. 0x000000FF // NAK Limit
  3180. #define USB_RXINTERVAL10_TXPOLL_M \
  3181. 0x000000FF // RX Polling
  3182. #define USB_RXINTERVAL10_TXPOLL_S \
  3183. 0
  3184. #define USB_RXINTERVAL10_NAKLMT_S \
  3185. 0
  3186. //*****************************************************************************
  3187. //
  3188. // The following are defines for the bit fields in the USB_O_TXMAXP11 register.
  3189. //
  3190. //*****************************************************************************
  3191. #define USB_TXMAXP11_MAXLOAD_M 0x000007FF // Maximum Payload
  3192. #define USB_TXMAXP11_MAXLOAD_S 0
  3193. //*****************************************************************************
  3194. //
  3195. // The following are defines for the bit fields in the USB_O_TXCSRL11 register.
  3196. //
  3197. //*****************************************************************************
  3198. #define USB_TXCSRL11_NAKTO 0x00000080 // NAK Timeout
  3199. #define USB_TXCSRL11_CLRDT 0x00000040 // Clear Data Toggle
  3200. #define USB_TXCSRL11_STALLED 0x00000020 // Endpoint Stalled
  3201. #define USB_TXCSRL11_STALL 0x00000010 // Send STALL
  3202. #define USB_TXCSRL11_SETUP 0x00000010 // Setup Packet
  3203. #define USB_TXCSRL11_FLUSH 0x00000008 // Flush FIFO
  3204. #define USB_TXCSRL11_ERROR 0x00000004 // Error
  3205. #define USB_TXCSRL11_UNDRN 0x00000004 // Underrun
  3206. #define USB_TXCSRL11_FIFONE 0x00000002 // FIFO Not Empty
  3207. #define USB_TXCSRL11_TXRDY 0x00000001 // Transmit Packet Ready
  3208. //*****************************************************************************
  3209. //
  3210. // The following are defines for the bit fields in the USB_O_TXCSRH11 register.
  3211. //
  3212. //*****************************************************************************
  3213. #define USB_TXCSRH11_AUTOSET 0x00000080 // Auto Set
  3214. #define USB_TXCSRH11_ISO 0x00000040 // Isochronous Transfers
  3215. #define USB_TXCSRH11_MODE 0x00000020 // Mode
  3216. #define USB_TXCSRH11_DMAEN 0x00000010 // DMA Request Enable
  3217. #define USB_TXCSRH11_FDT 0x00000008 // Force Data Toggle
  3218. #define USB_TXCSRH11_DMAMOD 0x00000004 // DMA Request Mode
  3219. #define USB_TXCSRH11_DTWE 0x00000002 // Data Toggle Write Enable
  3220. #define USB_TXCSRH11_DT 0x00000001 // Data Toggle
  3221. //*****************************************************************************
  3222. //
  3223. // The following are defines for the bit fields in the USB_O_RXMAXP11 register.
  3224. //
  3225. //*****************************************************************************
  3226. #define USB_RXMAXP11_MAXLOAD_M 0x000007FF // Maximum Payload
  3227. #define USB_RXMAXP11_MAXLOAD_S 0
  3228. //*****************************************************************************
  3229. //
  3230. // The following are defines for the bit fields in the USB_O_RXCSRL11 register.
  3231. //
  3232. //*****************************************************************************
  3233. #define USB_RXCSRL11_CLRDT 0x00000080 // Clear Data Toggle
  3234. #define USB_RXCSRL11_STALLED 0x00000040 // Endpoint Stalled
  3235. #define USB_RXCSRL11_STALL 0x00000020 // Send STALL
  3236. #define USB_RXCSRL11_REQPKT 0x00000020 // Request Packet
  3237. #define USB_RXCSRL11_FLUSH 0x00000010 // Flush FIFO
  3238. #define USB_RXCSRL11_DATAERR 0x00000008 // Data Error
  3239. #define USB_RXCSRL11_NAKTO 0x00000008 // NAK Timeout
  3240. #define USB_RXCSRL11_OVER 0x00000004 // Overrun
  3241. #define USB_RXCSRL11_ERROR 0x00000004 // Error
  3242. #define USB_RXCSRL11_FULL 0x00000002 // FIFO Full
  3243. #define USB_RXCSRL11_RXRDY 0x00000001 // Receive Packet Ready
  3244. //*****************************************************************************
  3245. //
  3246. // The following are defines for the bit fields in the USB_O_RXCSRH11 register.
  3247. //
  3248. //*****************************************************************************
  3249. #define USB_RXCSRH11_AUTOCL 0x00000080 // Auto Clear
  3250. #define USB_RXCSRH11_ISO 0x00000040 // Isochronous Transfers
  3251. #define USB_RXCSRH11_AUTORQ 0x00000040 // Auto Request
  3252. #define USB_RXCSRH11_DMAEN 0x00000020 // DMA Request Enable
  3253. #define USB_RXCSRH11_DISNYET 0x00000010 // Disable NYET
  3254. #define USB_RXCSRH11_PIDERR 0x00000010 // PID Error
  3255. #define USB_RXCSRH11_DMAMOD 0x00000008 // DMA Request Mode
  3256. #define USB_RXCSRH11_DTWE 0x00000004 // Data Toggle Write Enable
  3257. #define USB_RXCSRH11_DT 0x00000002 // Data Toggle
  3258. //*****************************************************************************
  3259. //
  3260. // The following are defines for the bit fields in the USB_O_RXCOUNT11
  3261. // register.
  3262. //
  3263. //*****************************************************************************
  3264. #define USB_RXCOUNT11_COUNT_M 0x00001FFF // Receive Packet Count
  3265. #define USB_RXCOUNT11_COUNT_S 0
  3266. //*****************************************************************************
  3267. //
  3268. // The following are defines for the bit fields in the USB_O_TXTYPE11 register.
  3269. //
  3270. //*****************************************************************************
  3271. #define USB_TXTYPE11_SPEED_M 0x000000C0 // Operating Speed
  3272. #define USB_TXTYPE11_SPEED_DFLT 0x00000000 // Default
  3273. #define USB_TXTYPE11_SPEED_FULL 0x00000080 // Full
  3274. #define USB_TXTYPE11_SPEED_LOW 0x000000C0 // Low
  3275. #define USB_TXTYPE11_PROTO_M 0x00000030 // Protocol
  3276. #define USB_TXTYPE11_PROTO_CTRL 0x00000000 // Control
  3277. #define USB_TXTYPE11_PROTO_ISOC 0x00000010 // Isochronous
  3278. #define USB_TXTYPE11_PROTO_BULK 0x00000020 // Bulk
  3279. #define USB_TXTYPE11_PROTO_INT 0x00000030 // Interrupt
  3280. #define USB_TXTYPE11_TEP_M 0x0000000F // Target Endpoint Number
  3281. #define USB_TXTYPE11_TEP_S 0
  3282. //*****************************************************************************
  3283. //
  3284. // The following are defines for the bit fields in the USB_O_TXINTERVAL11
  3285. // register.
  3286. //
  3287. //*****************************************************************************
  3288. #define USB_TXINTERVAL11_TXPOLL_M \
  3289. 0x000000FF // TX Polling
  3290. #define USB_TXINTERVAL11_NAKLMT_M \
  3291. 0x000000FF // NAK Limit
  3292. #define USB_TXINTERVAL11_NAKLMT_S \
  3293. 0
  3294. #define USB_TXINTERVAL11_TXPOLL_S \
  3295. 0
  3296. //*****************************************************************************
  3297. //
  3298. // The following are defines for the bit fields in the USB_O_RXTYPE11 register.
  3299. //
  3300. //*****************************************************************************
  3301. #define USB_RXTYPE11_SPEED_M 0x000000C0 // Operating Speed
  3302. #define USB_RXTYPE11_SPEED_DFLT 0x00000000 // Default
  3303. #define USB_RXTYPE11_SPEED_FULL 0x00000080 // Full
  3304. #define USB_RXTYPE11_SPEED_LOW 0x000000C0 // Low
  3305. #define USB_RXTYPE11_PROTO_M 0x00000030 // Protocol
  3306. #define USB_RXTYPE11_PROTO_CTRL 0x00000000 // Control
  3307. #define USB_RXTYPE11_PROTO_ISOC 0x00000010 // Isochronous
  3308. #define USB_RXTYPE11_PROTO_BULK 0x00000020 // Bulk
  3309. #define USB_RXTYPE11_PROTO_INT 0x00000030 // Interrupt
  3310. #define USB_RXTYPE11_TEP_M 0x0000000F // Target Endpoint Number
  3311. #define USB_RXTYPE11_TEP_S 0
  3312. //*****************************************************************************
  3313. //
  3314. // The following are defines for the bit fields in the USB_O_RXINTERVAL11
  3315. // register.
  3316. //
  3317. //*****************************************************************************
  3318. #define USB_RXINTERVAL11_NAKLMT_M \
  3319. 0x000000FF // NAK Limit
  3320. #define USB_RXINTERVAL11_TXPOLL_M \
  3321. 0x000000FF // RX Polling
  3322. #define USB_RXINTERVAL11_TXPOLL_S \
  3323. 0
  3324. #define USB_RXINTERVAL11_NAKLMT_S \
  3325. 0
  3326. //*****************************************************************************
  3327. //
  3328. // The following are defines for the bit fields in the USB_O_TXMAXP12 register.
  3329. //
  3330. //*****************************************************************************
  3331. #define USB_TXMAXP12_MAXLOAD_M 0x000007FF // Maximum Payload
  3332. #define USB_TXMAXP12_MAXLOAD_S 0
  3333. //*****************************************************************************
  3334. //
  3335. // The following are defines for the bit fields in the USB_O_TXCSRL12 register.
  3336. //
  3337. //*****************************************************************************
  3338. #define USB_TXCSRL12_NAKTO 0x00000080 // NAK Timeout
  3339. #define USB_TXCSRL12_CLRDT 0x00000040 // Clear Data Toggle
  3340. #define USB_TXCSRL12_STALLED 0x00000020 // Endpoint Stalled
  3341. #define USB_TXCSRL12_SETUP 0x00000010 // Setup Packet
  3342. #define USB_TXCSRL12_STALL 0x00000010 // Send STALL
  3343. #define USB_TXCSRL12_FLUSH 0x00000008 // Flush FIFO
  3344. #define USB_TXCSRL12_UNDRN 0x00000004 // Underrun
  3345. #define USB_TXCSRL12_ERROR 0x00000004 // Error
  3346. #define USB_TXCSRL12_FIFONE 0x00000002 // FIFO Not Empty
  3347. #define USB_TXCSRL12_TXRDY 0x00000001 // Transmit Packet Ready
  3348. //*****************************************************************************
  3349. //
  3350. // The following are defines for the bit fields in the USB_O_TXCSRH12 register.
  3351. //
  3352. //*****************************************************************************
  3353. #define USB_TXCSRH12_AUTOSET 0x00000080 // Auto Set
  3354. #define USB_TXCSRH12_ISO 0x00000040 // Isochronous Transfers
  3355. #define USB_TXCSRH12_MODE 0x00000020 // Mode
  3356. #define USB_TXCSRH12_DMAEN 0x00000010 // DMA Request Enable
  3357. #define USB_TXCSRH12_FDT 0x00000008 // Force Data Toggle
  3358. #define USB_TXCSRH12_DMAMOD 0x00000004 // DMA Request Mode
  3359. #define USB_TXCSRH12_DTWE 0x00000002 // Data Toggle Write Enable
  3360. #define USB_TXCSRH12_DT 0x00000001 // Data Toggle
  3361. //*****************************************************************************
  3362. //
  3363. // The following are defines for the bit fields in the USB_O_RXMAXP12 register.
  3364. //
  3365. //*****************************************************************************
  3366. #define USB_RXMAXP12_MAXLOAD_M 0x000007FF // Maximum Payload
  3367. #define USB_RXMAXP12_MAXLOAD_S 0
  3368. //*****************************************************************************
  3369. //
  3370. // The following are defines for the bit fields in the USB_O_RXCSRL12 register.
  3371. //
  3372. //*****************************************************************************
  3373. #define USB_RXCSRL12_CLRDT 0x00000080 // Clear Data Toggle
  3374. #define USB_RXCSRL12_STALLED 0x00000040 // Endpoint Stalled
  3375. #define USB_RXCSRL12_STALL 0x00000020 // Send STALL
  3376. #define USB_RXCSRL12_REQPKT 0x00000020 // Request Packet
  3377. #define USB_RXCSRL12_FLUSH 0x00000010 // Flush FIFO
  3378. #define USB_RXCSRL12_NAKTO 0x00000008 // NAK Timeout
  3379. #define USB_RXCSRL12_DATAERR 0x00000008 // Data Error
  3380. #define USB_RXCSRL12_ERROR 0x00000004 // Error
  3381. #define USB_RXCSRL12_OVER 0x00000004 // Overrun
  3382. #define USB_RXCSRL12_FULL 0x00000002 // FIFO Full
  3383. #define USB_RXCSRL12_RXRDY 0x00000001 // Receive Packet Ready
  3384. //*****************************************************************************
  3385. //
  3386. // The following are defines for the bit fields in the USB_O_RXCSRH12 register.
  3387. //
  3388. //*****************************************************************************
  3389. #define USB_RXCSRH12_AUTOCL 0x00000080 // Auto Clear
  3390. #define USB_RXCSRH12_ISO 0x00000040 // Isochronous Transfers
  3391. #define USB_RXCSRH12_AUTORQ 0x00000040 // Auto Request
  3392. #define USB_RXCSRH12_DMAEN 0x00000020 // DMA Request Enable
  3393. #define USB_RXCSRH12_PIDERR 0x00000010 // PID Error
  3394. #define USB_RXCSRH12_DISNYET 0x00000010 // Disable NYET
  3395. #define USB_RXCSRH12_DMAMOD 0x00000008 // DMA Request Mode
  3396. #define USB_RXCSRH12_DTWE 0x00000004 // Data Toggle Write Enable
  3397. #define USB_RXCSRH12_DT 0x00000002 // Data Toggle
  3398. //*****************************************************************************
  3399. //
  3400. // The following are defines for the bit fields in the USB_O_RXCOUNT12
  3401. // register.
  3402. //
  3403. //*****************************************************************************
  3404. #define USB_RXCOUNT12_COUNT_M 0x00001FFF // Receive Packet Count
  3405. #define USB_RXCOUNT12_COUNT_S 0
  3406. //*****************************************************************************
  3407. //
  3408. // The following are defines for the bit fields in the USB_O_TXTYPE12 register.
  3409. //
  3410. //*****************************************************************************
  3411. #define USB_TXTYPE12_SPEED_M 0x000000C0 // Operating Speed
  3412. #define USB_TXTYPE12_SPEED_DFLT 0x00000000 // Default
  3413. #define USB_TXTYPE12_SPEED_FULL 0x00000080 // Full
  3414. #define USB_TXTYPE12_SPEED_LOW 0x000000C0 // Low
  3415. #define USB_TXTYPE12_PROTO_M 0x00000030 // Protocol
  3416. #define USB_TXTYPE12_PROTO_CTRL 0x00000000 // Control
  3417. #define USB_TXTYPE12_PROTO_ISOC 0x00000010 // Isochronous
  3418. #define USB_TXTYPE12_PROTO_BULK 0x00000020 // Bulk
  3419. #define USB_TXTYPE12_PROTO_INT 0x00000030 // Interrupt
  3420. #define USB_TXTYPE12_TEP_M 0x0000000F // Target Endpoint Number
  3421. #define USB_TXTYPE12_TEP_S 0
  3422. //*****************************************************************************
  3423. //
  3424. // The following are defines for the bit fields in the USB_O_TXINTERVAL12
  3425. // register.
  3426. //
  3427. //*****************************************************************************
  3428. #define USB_TXINTERVAL12_TXPOLL_M \
  3429. 0x000000FF // TX Polling
  3430. #define USB_TXINTERVAL12_NAKLMT_M \
  3431. 0x000000FF // NAK Limit
  3432. #define USB_TXINTERVAL12_TXPOLL_S \
  3433. 0
  3434. #define USB_TXINTERVAL12_NAKLMT_S \
  3435. 0
  3436. //*****************************************************************************
  3437. //
  3438. // The following are defines for the bit fields in the USB_O_RXTYPE12 register.
  3439. //
  3440. //*****************************************************************************
  3441. #define USB_RXTYPE12_SPEED_M 0x000000C0 // Operating Speed
  3442. #define USB_RXTYPE12_SPEED_DFLT 0x00000000 // Default
  3443. #define USB_RXTYPE12_SPEED_FULL 0x00000080 // Full
  3444. #define USB_RXTYPE12_SPEED_LOW 0x000000C0 // Low
  3445. #define USB_RXTYPE12_PROTO_M 0x00000030 // Protocol
  3446. #define USB_RXTYPE12_PROTO_CTRL 0x00000000 // Control
  3447. #define USB_RXTYPE12_PROTO_ISOC 0x00000010 // Isochronous
  3448. #define USB_RXTYPE12_PROTO_BULK 0x00000020 // Bulk
  3449. #define USB_RXTYPE12_PROTO_INT 0x00000030 // Interrupt
  3450. #define USB_RXTYPE12_TEP_M 0x0000000F // Target Endpoint Number
  3451. #define USB_RXTYPE12_TEP_S 0
  3452. //*****************************************************************************
  3453. //
  3454. // The following are defines for the bit fields in the USB_O_RXINTERVAL12
  3455. // register.
  3456. //
  3457. //*****************************************************************************
  3458. #define USB_RXINTERVAL12_NAKLMT_M \
  3459. 0x000000FF // NAK Limit
  3460. #define USB_RXINTERVAL12_TXPOLL_M \
  3461. 0x000000FF // RX Polling
  3462. #define USB_RXINTERVAL12_NAKLMT_S \
  3463. 0
  3464. #define USB_RXINTERVAL12_TXPOLL_S \
  3465. 0
  3466. //*****************************************************************************
  3467. //
  3468. // The following are defines for the bit fields in the USB_O_TXMAXP13 register.
  3469. //
  3470. //*****************************************************************************
  3471. #define USB_TXMAXP13_MAXLOAD_M 0x000007FF // Maximum Payload
  3472. #define USB_TXMAXP13_MAXLOAD_S 0
  3473. //*****************************************************************************
  3474. //
  3475. // The following are defines for the bit fields in the USB_O_TXCSRL13 register.
  3476. //
  3477. //*****************************************************************************
  3478. #define USB_TXCSRL13_NAKTO 0x00000080 // NAK Timeout
  3479. #define USB_TXCSRL13_CLRDT 0x00000040 // Clear Data Toggle
  3480. #define USB_TXCSRL13_STALLED 0x00000020 // Endpoint Stalled
  3481. #define USB_TXCSRL13_SETUP 0x00000010 // Setup Packet
  3482. #define USB_TXCSRL13_STALL 0x00000010 // Send STALL
  3483. #define USB_TXCSRL13_FLUSH 0x00000008 // Flush FIFO
  3484. #define USB_TXCSRL13_UNDRN 0x00000004 // Underrun
  3485. #define USB_TXCSRL13_ERROR 0x00000004 // Error
  3486. #define USB_TXCSRL13_FIFONE 0x00000002 // FIFO Not Empty
  3487. #define USB_TXCSRL13_TXRDY 0x00000001 // Transmit Packet Ready
  3488. //*****************************************************************************
  3489. //
  3490. // The following are defines for the bit fields in the USB_O_TXCSRH13 register.
  3491. //
  3492. //*****************************************************************************
  3493. #define USB_TXCSRH13_AUTOSET 0x00000080 // Auto Set
  3494. #define USB_TXCSRH13_ISO 0x00000040 // Isochronous Transfers
  3495. #define USB_TXCSRH13_MODE 0x00000020 // Mode
  3496. #define USB_TXCSRH13_DMAEN 0x00000010 // DMA Request Enable
  3497. #define USB_TXCSRH13_FDT 0x00000008 // Force Data Toggle
  3498. #define USB_TXCSRH13_DMAMOD 0x00000004 // DMA Request Mode
  3499. #define USB_TXCSRH13_DTWE 0x00000002 // Data Toggle Write Enable
  3500. #define USB_TXCSRH13_DT 0x00000001 // Data Toggle
  3501. //*****************************************************************************
  3502. //
  3503. // The following are defines for the bit fields in the USB_O_RXMAXP13 register.
  3504. //
  3505. //*****************************************************************************
  3506. #define USB_RXMAXP13_MAXLOAD_M 0x000007FF // Maximum Payload
  3507. #define USB_RXMAXP13_MAXLOAD_S 0
  3508. //*****************************************************************************
  3509. //
  3510. // The following are defines for the bit fields in the USB_O_RXCSRL13 register.
  3511. //
  3512. //*****************************************************************************
  3513. #define USB_RXCSRL13_CLRDT 0x00000080 // Clear Data Toggle
  3514. #define USB_RXCSRL13_STALLED 0x00000040 // Endpoint Stalled
  3515. #define USB_RXCSRL13_REQPKT 0x00000020 // Request Packet
  3516. #define USB_RXCSRL13_STALL 0x00000020 // Send STALL
  3517. #define USB_RXCSRL13_FLUSH 0x00000010 // Flush FIFO
  3518. #define USB_RXCSRL13_NAKTO 0x00000008 // NAK Timeout
  3519. #define USB_RXCSRL13_DATAERR 0x00000008 // Data Error
  3520. #define USB_RXCSRL13_OVER 0x00000004 // Overrun
  3521. #define USB_RXCSRL13_ERROR 0x00000004 // Error
  3522. #define USB_RXCSRL13_FULL 0x00000002 // FIFO Full
  3523. #define USB_RXCSRL13_RXRDY 0x00000001 // Receive Packet Ready
  3524. //*****************************************************************************
  3525. //
  3526. // The following are defines for the bit fields in the USB_O_RXCSRH13 register.
  3527. //
  3528. //*****************************************************************************
  3529. #define USB_RXCSRH13_AUTOCL 0x00000080 // Auto Clear
  3530. #define USB_RXCSRH13_ISO 0x00000040 // Isochronous Transfers
  3531. #define USB_RXCSRH13_AUTORQ 0x00000040 // Auto Request
  3532. #define USB_RXCSRH13_DMAEN 0x00000020 // DMA Request Enable
  3533. #define USB_RXCSRH13_DISNYET 0x00000010 // Disable NYET
  3534. #define USB_RXCSRH13_PIDERR 0x00000010 // PID Error
  3535. #define USB_RXCSRH13_DMAMOD 0x00000008 // DMA Request Mode
  3536. #define USB_RXCSRH13_DTWE 0x00000004 // Data Toggle Write Enable
  3537. #define USB_RXCSRH13_DT 0x00000002 // Data Toggle
  3538. //*****************************************************************************
  3539. //
  3540. // The following are defines for the bit fields in the USB_O_RXCOUNT13
  3541. // register.
  3542. //
  3543. //*****************************************************************************
  3544. #define USB_RXCOUNT13_COUNT_M 0x00001FFF // Receive Packet Count
  3545. #define USB_RXCOUNT13_COUNT_S 0
  3546. //*****************************************************************************
  3547. //
  3548. // The following are defines for the bit fields in the USB_O_TXTYPE13 register.
  3549. //
  3550. //*****************************************************************************
  3551. #define USB_TXTYPE13_SPEED_M 0x000000C0 // Operating Speed
  3552. #define USB_TXTYPE13_SPEED_DFLT 0x00000000 // Default
  3553. #define USB_TXTYPE13_SPEED_FULL 0x00000080 // Full
  3554. #define USB_TXTYPE13_SPEED_LOW 0x000000C0 // Low
  3555. #define USB_TXTYPE13_PROTO_M 0x00000030 // Protocol
  3556. #define USB_TXTYPE13_PROTO_CTRL 0x00000000 // Control
  3557. #define USB_TXTYPE13_PROTO_ISOC 0x00000010 // Isochronous
  3558. #define USB_TXTYPE13_PROTO_BULK 0x00000020 // Bulk
  3559. #define USB_TXTYPE13_PROTO_INT 0x00000030 // Interrupt
  3560. #define USB_TXTYPE13_TEP_M 0x0000000F // Target Endpoint Number
  3561. #define USB_TXTYPE13_TEP_S 0
  3562. //*****************************************************************************
  3563. //
  3564. // The following are defines for the bit fields in the USB_O_TXINTERVAL13
  3565. // register.
  3566. //
  3567. //*****************************************************************************
  3568. #define USB_TXINTERVAL13_NAKLMT_M \
  3569. 0x000000FF // NAK Limit
  3570. #define USB_TXINTERVAL13_TXPOLL_M \
  3571. 0x000000FF // TX Polling
  3572. #define USB_TXINTERVAL13_TXPOLL_S \
  3573. 0
  3574. #define USB_TXINTERVAL13_NAKLMT_S \
  3575. 0
  3576. //*****************************************************************************
  3577. //
  3578. // The following are defines for the bit fields in the USB_O_RXTYPE13 register.
  3579. //
  3580. //*****************************************************************************
  3581. #define USB_RXTYPE13_SPEED_M 0x000000C0 // Operating Speed
  3582. #define USB_RXTYPE13_SPEED_DFLT 0x00000000 // Default
  3583. #define USB_RXTYPE13_SPEED_FULL 0x00000080 // Full
  3584. #define USB_RXTYPE13_SPEED_LOW 0x000000C0 // Low
  3585. #define USB_RXTYPE13_PROTO_M 0x00000030 // Protocol
  3586. #define USB_RXTYPE13_PROTO_CTRL 0x00000000 // Control
  3587. #define USB_RXTYPE13_PROTO_ISOC 0x00000010 // Isochronous
  3588. #define USB_RXTYPE13_PROTO_BULK 0x00000020 // Bulk
  3589. #define USB_RXTYPE13_PROTO_INT 0x00000030 // Interrupt
  3590. #define USB_RXTYPE13_TEP_M 0x0000000F // Target Endpoint Number
  3591. #define USB_RXTYPE13_TEP_S 0
  3592. //*****************************************************************************
  3593. //
  3594. // The following are defines for the bit fields in the USB_O_RXINTERVAL13
  3595. // register.
  3596. //
  3597. //*****************************************************************************
  3598. #define USB_RXINTERVAL13_TXPOLL_M \
  3599. 0x000000FF // RX Polling
  3600. #define USB_RXINTERVAL13_NAKLMT_M \
  3601. 0x000000FF // NAK Limit
  3602. #define USB_RXINTERVAL13_TXPOLL_S \
  3603. 0
  3604. #define USB_RXINTERVAL13_NAKLMT_S \
  3605. 0
  3606. //*****************************************************************************
  3607. //
  3608. // The following are defines for the bit fields in the USB_O_TXMAXP14 register.
  3609. //
  3610. //*****************************************************************************
  3611. #define USB_TXMAXP14_MAXLOAD_M 0x000007FF // Maximum Payload
  3612. #define USB_TXMAXP14_MAXLOAD_S 0
  3613. //*****************************************************************************
  3614. //
  3615. // The following are defines for the bit fields in the USB_O_TXCSRL14 register.
  3616. //
  3617. //*****************************************************************************
  3618. #define USB_TXCSRL14_NAKTO 0x00000080 // NAK Timeout
  3619. #define USB_TXCSRL14_CLRDT 0x00000040 // Clear Data Toggle
  3620. #define USB_TXCSRL14_STALLED 0x00000020 // Endpoint Stalled
  3621. #define USB_TXCSRL14_STALL 0x00000010 // Send STALL
  3622. #define USB_TXCSRL14_SETUP 0x00000010 // Setup Packet
  3623. #define USB_TXCSRL14_FLUSH 0x00000008 // Flush FIFO
  3624. #define USB_TXCSRL14_ERROR 0x00000004 // Error
  3625. #define USB_TXCSRL14_UNDRN 0x00000004 // Underrun
  3626. #define USB_TXCSRL14_FIFONE 0x00000002 // FIFO Not Empty
  3627. #define USB_TXCSRL14_TXRDY 0x00000001 // Transmit Packet Ready
  3628. //*****************************************************************************
  3629. //
  3630. // The following are defines for the bit fields in the USB_O_TXCSRH14 register.
  3631. //
  3632. //*****************************************************************************
  3633. #define USB_TXCSRH14_AUTOSET 0x00000080 // Auto Set
  3634. #define USB_TXCSRH14_ISO 0x00000040 // Isochronous Transfers
  3635. #define USB_TXCSRH14_MODE 0x00000020 // Mode
  3636. #define USB_TXCSRH14_DMAEN 0x00000010 // DMA Request Enable
  3637. #define USB_TXCSRH14_FDT 0x00000008 // Force Data Toggle
  3638. #define USB_TXCSRH14_DMAMOD 0x00000004 // DMA Request Mode
  3639. #define USB_TXCSRH14_DTWE 0x00000002 // Data Toggle Write Enable
  3640. #define USB_TXCSRH14_DT 0x00000001 // Data Toggle
  3641. //*****************************************************************************
  3642. //
  3643. // The following are defines for the bit fields in the USB_O_RXMAXP14 register.
  3644. //
  3645. //*****************************************************************************
  3646. #define USB_RXMAXP14_MAXLOAD_M 0x000007FF // Maximum Payload
  3647. #define USB_RXMAXP14_MAXLOAD_S 0
  3648. //*****************************************************************************
  3649. //
  3650. // The following are defines for the bit fields in the USB_O_RXCSRL14 register.
  3651. //
  3652. //*****************************************************************************
  3653. #define USB_RXCSRL14_CLRDT 0x00000080 // Clear Data Toggle
  3654. #define USB_RXCSRL14_STALLED 0x00000040 // Endpoint Stalled
  3655. #define USB_RXCSRL14_REQPKT 0x00000020 // Request Packet
  3656. #define USB_RXCSRL14_STALL 0x00000020 // Send STALL
  3657. #define USB_RXCSRL14_FLUSH 0x00000010 // Flush FIFO
  3658. #define USB_RXCSRL14_DATAERR 0x00000008 // Data Error
  3659. #define USB_RXCSRL14_NAKTO 0x00000008 // NAK Timeout
  3660. #define USB_RXCSRL14_OVER 0x00000004 // Overrun
  3661. #define USB_RXCSRL14_ERROR 0x00000004 // Error
  3662. #define USB_RXCSRL14_FULL 0x00000002 // FIFO Full
  3663. #define USB_RXCSRL14_RXRDY 0x00000001 // Receive Packet Ready
  3664. //*****************************************************************************
  3665. //
  3666. // The following are defines for the bit fields in the USB_O_RXCSRH14 register.
  3667. //
  3668. //*****************************************************************************
  3669. #define USB_RXCSRH14_AUTOCL 0x00000080 // Auto Clear
  3670. #define USB_RXCSRH14_AUTORQ 0x00000040 // Auto Request
  3671. #define USB_RXCSRH14_ISO 0x00000040 // Isochronous Transfers
  3672. #define USB_RXCSRH14_DMAEN 0x00000020 // DMA Request Enable
  3673. #define USB_RXCSRH14_PIDERR 0x00000010 // PID Error
  3674. #define USB_RXCSRH14_DISNYET 0x00000010 // Disable NYET
  3675. #define USB_RXCSRH14_DMAMOD 0x00000008 // DMA Request Mode
  3676. #define USB_RXCSRH14_DTWE 0x00000004 // Data Toggle Write Enable
  3677. #define USB_RXCSRH14_DT 0x00000002 // Data Toggle
  3678. //*****************************************************************************
  3679. //
  3680. // The following are defines for the bit fields in the USB_O_RXCOUNT14
  3681. // register.
  3682. //
  3683. //*****************************************************************************
  3684. #define USB_RXCOUNT14_COUNT_M 0x00001FFF // Receive Packet Count
  3685. #define USB_RXCOUNT14_COUNT_S 0
  3686. //*****************************************************************************
  3687. //
  3688. // The following are defines for the bit fields in the USB_O_TXTYPE14 register.
  3689. //
  3690. //*****************************************************************************
  3691. #define USB_TXTYPE14_SPEED_M 0x000000C0 // Operating Speed
  3692. #define USB_TXTYPE14_SPEED_DFLT 0x00000000 // Default
  3693. #define USB_TXTYPE14_SPEED_FULL 0x00000080 // Full
  3694. #define USB_TXTYPE14_SPEED_LOW 0x000000C0 // Low
  3695. #define USB_TXTYPE14_PROTO_M 0x00000030 // Protocol
  3696. #define USB_TXTYPE14_PROTO_CTRL 0x00000000 // Control
  3697. #define USB_TXTYPE14_PROTO_ISOC 0x00000010 // Isochronous
  3698. #define USB_TXTYPE14_PROTO_BULK 0x00000020 // Bulk
  3699. #define USB_TXTYPE14_PROTO_INT 0x00000030 // Interrupt
  3700. #define USB_TXTYPE14_TEP_M 0x0000000F // Target Endpoint Number
  3701. #define USB_TXTYPE14_TEP_S 0
  3702. //*****************************************************************************
  3703. //
  3704. // The following are defines for the bit fields in the USB_O_TXINTERVAL14
  3705. // register.
  3706. //
  3707. //*****************************************************************************
  3708. #define USB_TXINTERVAL14_TXPOLL_M \
  3709. 0x000000FF // TX Polling
  3710. #define USB_TXINTERVAL14_NAKLMT_M \
  3711. 0x000000FF // NAK Limit
  3712. #define USB_TXINTERVAL14_TXPOLL_S \
  3713. 0
  3714. #define USB_TXINTERVAL14_NAKLMT_S \
  3715. 0
  3716. //*****************************************************************************
  3717. //
  3718. // The following are defines for the bit fields in the USB_O_RXTYPE14 register.
  3719. //
  3720. //*****************************************************************************
  3721. #define USB_RXTYPE14_SPEED_M 0x000000C0 // Operating Speed
  3722. #define USB_RXTYPE14_SPEED_DFLT 0x00000000 // Default
  3723. #define USB_RXTYPE14_SPEED_FULL 0x00000080 // Full
  3724. #define USB_RXTYPE14_SPEED_LOW 0x000000C0 // Low
  3725. #define USB_RXTYPE14_PROTO_M 0x00000030 // Protocol
  3726. #define USB_RXTYPE14_PROTO_CTRL 0x00000000 // Control
  3727. #define USB_RXTYPE14_PROTO_ISOC 0x00000010 // Isochronous
  3728. #define USB_RXTYPE14_PROTO_BULK 0x00000020 // Bulk
  3729. #define USB_RXTYPE14_PROTO_INT 0x00000030 // Interrupt
  3730. #define USB_RXTYPE14_TEP_M 0x0000000F // Target Endpoint Number
  3731. #define USB_RXTYPE14_TEP_S 0
  3732. //*****************************************************************************
  3733. //
  3734. // The following are defines for the bit fields in the USB_O_RXINTERVAL14
  3735. // register.
  3736. //
  3737. //*****************************************************************************
  3738. #define USB_RXINTERVAL14_TXPOLL_M \
  3739. 0x000000FF // RX Polling
  3740. #define USB_RXINTERVAL14_NAKLMT_M \
  3741. 0x000000FF // NAK Limit
  3742. #define USB_RXINTERVAL14_TXPOLL_S \
  3743. 0
  3744. #define USB_RXINTERVAL14_NAKLMT_S \
  3745. 0
  3746. //*****************************************************************************
  3747. //
  3748. // The following are defines for the bit fields in the USB_O_TXMAXP15 register.
  3749. //
  3750. //*****************************************************************************
  3751. #define USB_TXMAXP15_MAXLOAD_M 0x000007FF // Maximum Payload
  3752. #define USB_TXMAXP15_MAXLOAD_S 0
  3753. //*****************************************************************************
  3754. //
  3755. // The following are defines for the bit fields in the USB_O_TXCSRL15 register.
  3756. //
  3757. //*****************************************************************************
  3758. #define USB_TXCSRL15_NAKTO 0x00000080 // NAK Timeout
  3759. #define USB_TXCSRL15_CLRDT 0x00000040 // Clear Data Toggle
  3760. #define USB_TXCSRL15_STALLED 0x00000020 // Endpoint Stalled
  3761. #define USB_TXCSRL15_SETUP 0x00000010 // Setup Packet
  3762. #define USB_TXCSRL15_STALL 0x00000010 // Send STALL
  3763. #define USB_TXCSRL15_FLUSH 0x00000008 // Flush FIFO
  3764. #define USB_TXCSRL15_UNDRN 0x00000004 // Underrun
  3765. #define USB_TXCSRL15_ERROR 0x00000004 // Error
  3766. #define USB_TXCSRL15_FIFONE 0x00000002 // FIFO Not Empty
  3767. #define USB_TXCSRL15_TXRDY 0x00000001 // Transmit Packet Ready
  3768. //*****************************************************************************
  3769. //
  3770. // The following are defines for the bit fields in the USB_O_TXCSRH15 register.
  3771. //
  3772. //*****************************************************************************
  3773. #define USB_TXCSRH15_AUTOSET 0x00000080 // Auto Set
  3774. #define USB_TXCSRH15_ISO 0x00000040 // Isochronous Transfers
  3775. #define USB_TXCSRH15_MODE 0x00000020 // Mode
  3776. #define USB_TXCSRH15_DMAEN 0x00000010 // DMA Request Enable
  3777. #define USB_TXCSRH15_FDT 0x00000008 // Force Data Toggle
  3778. #define USB_TXCSRH15_DMAMOD 0x00000004 // DMA Request Mode
  3779. #define USB_TXCSRH15_DTWE 0x00000002 // Data Toggle Write Enable
  3780. #define USB_TXCSRH15_DT 0x00000001 // Data Toggle
  3781. //*****************************************************************************
  3782. //
  3783. // The following are defines for the bit fields in the USB_O_RXMAXP15 register.
  3784. //
  3785. //*****************************************************************************
  3786. #define USB_RXMAXP15_MAXLOAD_M 0x000007FF // Maximum Payload
  3787. #define USB_RXMAXP15_MAXLOAD_S 0
  3788. //*****************************************************************************
  3789. //
  3790. // The following are defines for the bit fields in the USB_O_RXCSRL15 register.
  3791. //
  3792. //*****************************************************************************
  3793. #define USB_RXCSRL15_CLRDT 0x00000080 // Clear Data Toggle
  3794. #define USB_RXCSRL15_STALLED 0x00000040 // Endpoint Stalled
  3795. #define USB_RXCSRL15_STALL 0x00000020 // Send STALL
  3796. #define USB_RXCSRL15_REQPKT 0x00000020 // Request Packet
  3797. #define USB_RXCSRL15_FLUSH 0x00000010 // Flush FIFO
  3798. #define USB_RXCSRL15_DATAERR 0x00000008 // Data Error
  3799. #define USB_RXCSRL15_NAKTO 0x00000008 // NAK Timeout
  3800. #define USB_RXCSRL15_ERROR 0x00000004 // Error
  3801. #define USB_RXCSRL15_OVER 0x00000004 // Overrun
  3802. #define USB_RXCSRL15_FULL 0x00000002 // FIFO Full
  3803. #define USB_RXCSRL15_RXRDY 0x00000001 // Receive Packet Ready
  3804. //*****************************************************************************
  3805. //
  3806. // The following are defines for the bit fields in the USB_O_RXCSRH15 register.
  3807. //
  3808. //*****************************************************************************
  3809. #define USB_RXCSRH15_AUTOCL 0x00000080 // Auto Clear
  3810. #define USB_RXCSRH15_AUTORQ 0x00000040 // Auto Request
  3811. #define USB_RXCSRH15_ISO 0x00000040 // Isochronous Transfers
  3812. #define USB_RXCSRH15_DMAEN 0x00000020 // DMA Request Enable
  3813. #define USB_RXCSRH15_PIDERR 0x00000010 // PID Error
  3814. #define USB_RXCSRH15_DISNYET 0x00000010 // Disable NYET
  3815. #define USB_RXCSRH15_DMAMOD 0x00000008 // DMA Request Mode
  3816. #define USB_RXCSRH15_DTWE 0x00000004 // Data Toggle Write Enable
  3817. #define USB_RXCSRH15_DT 0x00000002 // Data Toggle
  3818. //*****************************************************************************
  3819. //
  3820. // The following are defines for the bit fields in the USB_O_RXCOUNT15
  3821. // register.
  3822. //
  3823. //*****************************************************************************
  3824. #define USB_RXCOUNT15_COUNT_M 0x00001FFF // Receive Packet Count
  3825. #define USB_RXCOUNT15_COUNT_S 0
  3826. //*****************************************************************************
  3827. //
  3828. // The following are defines for the bit fields in the USB_O_TXTYPE15 register.
  3829. //
  3830. //*****************************************************************************
  3831. #define USB_TXTYPE15_SPEED_M 0x000000C0 // Operating Speed
  3832. #define USB_TXTYPE15_SPEED_DFLT 0x00000000 // Default
  3833. #define USB_TXTYPE15_SPEED_FULL 0x00000080 // Full
  3834. #define USB_TXTYPE15_SPEED_LOW 0x000000C0 // Low
  3835. #define USB_TXTYPE15_PROTO_M 0x00000030 // Protocol
  3836. #define USB_TXTYPE15_PROTO_CTRL 0x00000000 // Control
  3837. #define USB_TXTYPE15_PROTO_ISOC 0x00000010 // Isochronous
  3838. #define USB_TXTYPE15_PROTO_BULK 0x00000020 // Bulk
  3839. #define USB_TXTYPE15_PROTO_INT 0x00000030 // Interrupt
  3840. #define USB_TXTYPE15_TEP_M 0x0000000F // Target Endpoint Number
  3841. #define USB_TXTYPE15_TEP_S 0
  3842. //*****************************************************************************
  3843. //
  3844. // The following are defines for the bit fields in the USB_O_TXINTERVAL15
  3845. // register.
  3846. //
  3847. //*****************************************************************************
  3848. #define USB_TXINTERVAL15_TXPOLL_M \
  3849. 0x000000FF // TX Polling
  3850. #define USB_TXINTERVAL15_NAKLMT_M \
  3851. 0x000000FF // NAK Limit
  3852. #define USB_TXINTERVAL15_NAKLMT_S \
  3853. 0
  3854. #define USB_TXINTERVAL15_TXPOLL_S \
  3855. 0
  3856. //*****************************************************************************
  3857. //
  3858. // The following are defines for the bit fields in the USB_O_RXTYPE15 register.
  3859. //
  3860. //*****************************************************************************
  3861. #define USB_RXTYPE15_SPEED_M 0x000000C0 // Operating Speed
  3862. #define USB_RXTYPE15_SPEED_DFLT 0x00000000 // Default
  3863. #define USB_RXTYPE15_SPEED_FULL 0x00000080 // Full
  3864. #define USB_RXTYPE15_SPEED_LOW 0x000000C0 // Low
  3865. #define USB_RXTYPE15_PROTO_M 0x00000030 // Protocol
  3866. #define USB_RXTYPE15_PROTO_CTRL 0x00000000 // Control
  3867. #define USB_RXTYPE15_PROTO_ISOC 0x00000010 // Isochronous
  3868. #define USB_RXTYPE15_PROTO_BULK 0x00000020 // Bulk
  3869. #define USB_RXTYPE15_PROTO_INT 0x00000030 // Interrupt
  3870. #define USB_RXTYPE15_TEP_M 0x0000000F // Target Endpoint Number
  3871. #define USB_RXTYPE15_TEP_S 0
  3872. //*****************************************************************************
  3873. //
  3874. // The following are defines for the bit fields in the USB_O_RXINTERVAL15
  3875. // register.
  3876. //
  3877. //*****************************************************************************
  3878. #define USB_RXINTERVAL15_TXPOLL_M \
  3879. 0x000000FF // RX Polling
  3880. #define USB_RXINTERVAL15_NAKLMT_M \
  3881. 0x000000FF // NAK Limit
  3882. #define USB_RXINTERVAL15_TXPOLL_S \
  3883. 0
  3884. #define USB_RXINTERVAL15_NAKLMT_S \
  3885. 0
  3886. //*****************************************************************************
  3887. //
  3888. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT1
  3889. // register.
  3890. //
  3891. //*****************************************************************************
  3892. #define USB_RQPKTCOUNT1_M 0x0000FFFF // Block Transfer Packet Count
  3893. #define USB_RQPKTCOUNT1_S 0
  3894. //*****************************************************************************
  3895. //
  3896. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT2
  3897. // register.
  3898. //
  3899. //*****************************************************************************
  3900. #define USB_RQPKTCOUNT2_M 0x0000FFFF // Block Transfer Packet Count
  3901. #define USB_RQPKTCOUNT2_S 0
  3902. //*****************************************************************************
  3903. //
  3904. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT3
  3905. // register.
  3906. //
  3907. //*****************************************************************************
  3908. #define USB_RQPKTCOUNT3_M 0x0000FFFF // Block Transfer Packet Count
  3909. #define USB_RQPKTCOUNT3_S 0
  3910. //*****************************************************************************
  3911. //
  3912. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT4
  3913. // register.
  3914. //
  3915. //*****************************************************************************
  3916. #define USB_RQPKTCOUNT4_COUNT_M 0x0000FFFF // Block Transfer Packet Count
  3917. #define USB_RQPKTCOUNT4_COUNT_S 0
  3918. //*****************************************************************************
  3919. //
  3920. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT5
  3921. // register.
  3922. //
  3923. //*****************************************************************************
  3924. #define USB_RQPKTCOUNT5_COUNT_M 0x0000FFFF // Block Transfer Packet Count
  3925. #define USB_RQPKTCOUNT5_COUNT_S 0
  3926. //*****************************************************************************
  3927. //
  3928. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT6
  3929. // register.
  3930. //
  3931. //*****************************************************************************
  3932. #define USB_RQPKTCOUNT6_COUNT_M 0x0000FFFF // Block Transfer Packet Count
  3933. #define USB_RQPKTCOUNT6_COUNT_S 0
  3934. //*****************************************************************************
  3935. //
  3936. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT7
  3937. // register.
  3938. //
  3939. //*****************************************************************************
  3940. #define USB_RQPKTCOUNT7_COUNT_M 0x0000FFFF // Block Transfer Packet Count
  3941. #define USB_RQPKTCOUNT7_COUNT_S 0
  3942. //*****************************************************************************
  3943. //
  3944. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT8
  3945. // register.
  3946. //
  3947. //*****************************************************************************
  3948. #define USB_RQPKTCOUNT8_COUNT_M 0x0000FFFF // Block Transfer Packet Count
  3949. #define USB_RQPKTCOUNT8_COUNT_S 0
  3950. //*****************************************************************************
  3951. //
  3952. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT9
  3953. // register.
  3954. //
  3955. //*****************************************************************************
  3956. #define USB_RQPKTCOUNT9_COUNT_M 0x0000FFFF // Block Transfer Packet Count
  3957. #define USB_RQPKTCOUNT9_COUNT_S 0
  3958. //*****************************************************************************
  3959. //
  3960. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT10
  3961. // register.
  3962. //
  3963. //*****************************************************************************
  3964. #define USB_RQPKTCOUNT10_COUNT_M \
  3965. 0x0000FFFF // Block Transfer Packet Count
  3966. #define USB_RQPKTCOUNT10_COUNT_S \
  3967. 0
  3968. //*****************************************************************************
  3969. //
  3970. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT11
  3971. // register.
  3972. //
  3973. //*****************************************************************************
  3974. #define USB_RQPKTCOUNT11_COUNT_M \
  3975. 0x0000FFFF // Block Transfer Packet Count
  3976. #define USB_RQPKTCOUNT11_COUNT_S \
  3977. 0
  3978. //*****************************************************************************
  3979. //
  3980. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT12
  3981. // register.
  3982. //
  3983. //*****************************************************************************
  3984. #define USB_RQPKTCOUNT12_COUNT_M \
  3985. 0x0000FFFF // Block Transfer Packet Count
  3986. #define USB_RQPKTCOUNT12_COUNT_S \
  3987. 0
  3988. //*****************************************************************************
  3989. //
  3990. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT13
  3991. // register.
  3992. //
  3993. //*****************************************************************************
  3994. #define USB_RQPKTCOUNT13_COUNT_M \
  3995. 0x0000FFFF // Block Transfer Packet Count
  3996. #define USB_RQPKTCOUNT13_COUNT_S \
  3997. 0
  3998. //*****************************************************************************
  3999. //
  4000. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT14
  4001. // register.
  4002. //
  4003. //*****************************************************************************
  4004. #define USB_RQPKTCOUNT14_COUNT_M \
  4005. 0x0000FFFF // Block Transfer Packet Count
  4006. #define USB_RQPKTCOUNT14_COUNT_S \
  4007. 0
  4008. //*****************************************************************************
  4009. //
  4010. // The following are defines for the bit fields in the USB_O_RQPKTCOUNT15
  4011. // register.
  4012. //
  4013. //*****************************************************************************
  4014. #define USB_RQPKTCOUNT15_COUNT_M \
  4015. 0x0000FFFF // Block Transfer Packet Count
  4016. #define USB_RQPKTCOUNT15_COUNT_S \
  4017. 0
  4018. //*****************************************************************************
  4019. //
  4020. // The following are defines for the bit fields in the USB_O_RXDPKTBUFDIS
  4021. // register.
  4022. //
  4023. //*****************************************************************************
  4024. #define USB_RXDPKTBUFDIS_EP15 0x00008000 // EP15 RX Double-Packet Buffer
  4025. // Disable
  4026. #define USB_RXDPKTBUFDIS_EP14 0x00004000 // EP14 RX Double-Packet Buffer
  4027. // Disable
  4028. #define USB_RXDPKTBUFDIS_EP13 0x00002000 // EP13 RX Double-Packet Buffer
  4029. // Disable
  4030. #define USB_RXDPKTBUFDIS_EP12 0x00001000 // EP12 RX Double-Packet Buffer
  4031. // Disable
  4032. #define USB_RXDPKTBUFDIS_EP11 0x00000800 // EP11 RX Double-Packet Buffer
  4033. // Disable
  4034. #define USB_RXDPKTBUFDIS_EP10 0x00000400 // EP10 RX Double-Packet Buffer
  4035. // Disable
  4036. #define USB_RXDPKTBUFDIS_EP9 0x00000200 // EP9 RX Double-Packet Buffer
  4037. // Disable
  4038. #define USB_RXDPKTBUFDIS_EP8 0x00000100 // EP8 RX Double-Packet Buffer
  4039. // Disable
  4040. #define USB_RXDPKTBUFDIS_EP7 0x00000080 // EP7 RX Double-Packet Buffer
  4041. // Disable
  4042. #define USB_RXDPKTBUFDIS_EP6 0x00000040 // EP6 RX Double-Packet Buffer
  4043. // Disable
  4044. #define USB_RXDPKTBUFDIS_EP5 0x00000020 // EP5 RX Double-Packet Buffer
  4045. // Disable
  4046. #define USB_RXDPKTBUFDIS_EP4 0x00000010 // EP4 RX Double-Packet Buffer
  4047. // Disable
  4048. #define USB_RXDPKTBUFDIS_EP3 0x00000008 // EP3 RX Double-Packet Buffer
  4049. // Disable
  4050. #define USB_RXDPKTBUFDIS_EP2 0x00000004 // EP2 RX Double-Packet Buffer
  4051. // Disable
  4052. #define USB_RXDPKTBUFDIS_EP1 0x00000002 // EP1 RX Double-Packet Buffer
  4053. // Disable
  4054. //*****************************************************************************
  4055. //
  4056. // The following are defines for the bit fields in the USB_O_TXDPKTBUFDIS
  4057. // register.
  4058. //
  4059. //*****************************************************************************
  4060. #define USB_TXDPKTBUFDIS_EP15 0x00008000 // EP15 TX Double-Packet Buffer
  4061. // Disable
  4062. #define USB_TXDPKTBUFDIS_EP14 0x00004000 // EP14 TX Double-Packet Buffer
  4063. // Disable
  4064. #define USB_TXDPKTBUFDIS_EP13 0x00002000 // EP13 TX Double-Packet Buffer
  4065. // Disable
  4066. #define USB_TXDPKTBUFDIS_EP12 0x00001000 // EP12 TX Double-Packet Buffer
  4067. // Disable
  4068. #define USB_TXDPKTBUFDIS_EP11 0x00000800 // EP11 TX Double-Packet Buffer
  4069. // Disable
  4070. #define USB_TXDPKTBUFDIS_EP10 0x00000400 // EP10 TX Double-Packet Buffer
  4071. // Disable
  4072. #define USB_TXDPKTBUFDIS_EP9 0x00000200 // EP9 TX Double-Packet Buffer
  4073. // Disable
  4074. #define USB_TXDPKTBUFDIS_EP8 0x00000100 // EP8 TX Double-Packet Buffer
  4075. // Disable
  4076. #define USB_TXDPKTBUFDIS_EP7 0x00000080 // EP7 TX Double-Packet Buffer
  4077. // Disable
  4078. #define USB_TXDPKTBUFDIS_EP6 0x00000040 // EP6 TX Double-Packet Buffer
  4079. // Disable
  4080. #define USB_TXDPKTBUFDIS_EP5 0x00000020 // EP5 TX Double-Packet Buffer
  4081. // Disable
  4082. #define USB_TXDPKTBUFDIS_EP4 0x00000010 // EP4 TX Double-Packet Buffer
  4083. // Disable
  4084. #define USB_TXDPKTBUFDIS_EP3 0x00000008 // EP3 TX Double-Packet Buffer
  4085. // Disable
  4086. #define USB_TXDPKTBUFDIS_EP2 0x00000004 // EP2 TX Double-Packet Buffer
  4087. // Disable
  4088. #define USB_TXDPKTBUFDIS_EP1 0x00000002 // EP1 TX Double-Packet Buffer
  4089. // Disable
  4090. //*****************************************************************************
  4091. //
  4092. // The following are defines for the bit fields in the USB_O_EPC register.
  4093. //
  4094. //*****************************************************************************
  4095. #define USB_EPC_PFLTACT_M 0x00000300 // Power Fault Action
  4096. #define USB_EPC_PFLTACT_UNCHG 0x00000000 // Unchanged
  4097. #define USB_EPC_PFLTACT_TRIS 0x00000100 // Tristate
  4098. #define USB_EPC_PFLTACT_LOW 0x00000200 // Low
  4099. #define USB_EPC_PFLTACT_HIGH 0x00000300 // High
  4100. #define USB_EPC_PFLTAEN 0x00000040 // Power Fault Action Enable
  4101. #define USB_EPC_PFLTSEN_HIGH 0x00000020 // Power Fault Sense
  4102. #define USB_EPC_PFLTEN 0x00000010 // Power Fault Input Enable
  4103. #define USB_EPC_EPENDE 0x00000004 // EPEN Drive Enable
  4104. #define USB_EPC_EPEN_M 0x00000003 // External Power Supply Enable
  4105. // Configuration
  4106. #define USB_EPC_EPEN_LOW 0x00000000 // Power Enable Active Low
  4107. #define USB_EPC_EPEN_HIGH 0x00000001 // Power Enable Active High
  4108. #define USB_EPC_EPEN_VBLOW 0x00000002 // Power Enable High if VBUS Low
  4109. #define USB_EPC_EPEN_VBHIGH 0x00000003 // Power Enable High if VBUS High
  4110. //*****************************************************************************
  4111. //
  4112. // The following are defines for the bit fields in the USB_O_EPCRIS register.
  4113. //
  4114. //*****************************************************************************
  4115. #define USB_EPCRIS_PF 0x00000001 // USB Power Fault Interrupt Status
  4116. //*****************************************************************************
  4117. //
  4118. // The following are defines for the bit fields in the USB_O_EPCIM register.
  4119. //
  4120. //*****************************************************************************
  4121. #define USB_EPCIM_PF 0x00000001 // USB Power Fault Interrupt Mask
  4122. //*****************************************************************************
  4123. //
  4124. // The following are defines for the bit fields in the USB_O_EPCISC register.
  4125. //
  4126. //*****************************************************************************
  4127. #define USB_EPCISC_PF 0x00000001 // USB Power Fault Interrupt Status
  4128. // and Clear
  4129. //*****************************************************************************
  4130. //
  4131. // The following are defines for the bit fields in the USB_O_DRRIS register.
  4132. //
  4133. //*****************************************************************************
  4134. #define USB_DRRIS_RESUME 0x00000001 // RESUME Interrupt Status
  4135. //*****************************************************************************
  4136. //
  4137. // The following are defines for the bit fields in the USB_O_DRIM register.
  4138. //
  4139. //*****************************************************************************
  4140. #define USB_DRIM_RESUME 0x00000001 // RESUME Interrupt Mask
  4141. //*****************************************************************************
  4142. //
  4143. // The following are defines for the bit fields in the USB_O_DRISC register.
  4144. //
  4145. //*****************************************************************************
  4146. #define USB_DRISC_RESUME 0x00000001 // RESUME Interrupt Status and
  4147. // Clear
  4148. //*****************************************************************************
  4149. //
  4150. // The following are defines for the bit fields in the USB_O_GPCS register.
  4151. //
  4152. //*****************************************************************************
  4153. #define USB_GPCS_DEVMODOTG 0x00000002 // Enable Device Mode
  4154. #define USB_GPCS_DEVMOD 0x00000001 // Device Mode
  4155. //*****************************************************************************
  4156. //
  4157. // The following are defines for the bit fields in the USB_O_VDC register.
  4158. //
  4159. //*****************************************************************************
  4160. #define USB_VDC_VBDEN 0x00000001 // VBUS Droop Enable
  4161. //*****************************************************************************
  4162. //
  4163. // The following are defines for the bit fields in the USB_O_VDCRIS register.
  4164. //
  4165. //*****************************************************************************
  4166. #define USB_VDCRIS_VD 0x00000001 // VBUS Droop Raw Interrupt Status
  4167. //*****************************************************************************
  4168. //
  4169. // The following are defines for the bit fields in the USB_O_VDCIM register.
  4170. //
  4171. //*****************************************************************************
  4172. #define USB_VDCIM_VD 0x00000001 // VBUS Droop Interrupt Mask
  4173. //*****************************************************************************
  4174. //
  4175. // The following are defines for the bit fields in the USB_O_VDCISC register.
  4176. //
  4177. //*****************************************************************************
  4178. #define USB_VDCISC_VD 0x00000001 // VBUS Droop Interrupt Status and
  4179. // Clear
  4180. //*****************************************************************************
  4181. //
  4182. // The following are defines for the bit fields in the USB_O_IDVRIS register.
  4183. //
  4184. //*****************************************************************************
  4185. #define USB_IDVRIS_ID 0x00000001 // ID Valid Detect Raw Interrupt
  4186. // Status
  4187. //*****************************************************************************
  4188. //
  4189. // The following are defines for the bit fields in the USB_O_IDVIM register.
  4190. //
  4191. //*****************************************************************************
  4192. #define USB_IDVIM_ID 0x00000001 // ID Valid Detect Interrupt Mask
  4193. //*****************************************************************************
  4194. //
  4195. // The following are defines for the bit fields in the USB_O_IDVISC register.
  4196. //
  4197. //*****************************************************************************
  4198. #define USB_IDVISC_ID 0x00000001 // ID Valid Detect Interrupt Status
  4199. // and Clear
  4200. //*****************************************************************************
  4201. //
  4202. // The following are defines for the bit fields in the USB_O_DMASEL register.
  4203. //
  4204. //*****************************************************************************
  4205. #define USB_DMASEL_DMACTX_M 0x00F00000 // DMA C TX Select
  4206. #define USB_DMASEL_DMACRX_M 0x000F0000 // DMA C RX Select
  4207. #define USB_DMASEL_DMABTX_M 0x0000F000 // DMA B TX Select
  4208. #define USB_DMASEL_DMABRX_M 0x00000F00 // DMA B RX Select
  4209. #define USB_DMASEL_DMAATX_M 0x000000F0 // DMA A TX Select
  4210. #define USB_DMASEL_DMAARX_M 0x0000000F // DMA A RX Select
  4211. #define USB_DMASEL_DMACTX_S 20
  4212. #define USB_DMASEL_DMACRX_S 16
  4213. #define USB_DMASEL_DMABTX_S 12
  4214. #define USB_DMASEL_DMABRX_S 8
  4215. #define USB_DMASEL_DMAATX_S 4
  4216. #define USB_DMASEL_DMAARX_S 0
  4217. //*****************************************************************************
  4218. //
  4219. // The following are defines for the bit fields in the USB_O_PP register.
  4220. //
  4221. //*****************************************************************************
  4222. #define USB_PP_ECNT_M 0x0000FF00 // Endpoint Count
  4223. #define USB_PP_USB_M 0x000000C0 // USB Capability
  4224. #define USB_PP_USB_DEVICE 0x00000040 // DEVICE
  4225. #define USB_PP_USB_HOSTDEVICE 0x00000080 // HOST
  4226. #define USB_PP_USB_OTG 0x000000C0 // OTG
  4227. #define USB_PP_PHY 0x00000010 // PHY Present
  4228. #define USB_PP_TYPE_M 0x0000000F // Controller Type
  4229. #define USB_PP_TYPE_0 0x00000000 // The first-generation USB
  4230. // controller
  4231. #define USB_PP_ECNT_S 8
  4232. //*****************************************************************************
  4233. //
  4234. // The following definitions are deprecated.
  4235. //
  4236. //*****************************************************************************
  4237. #ifndef DEPRECATED
  4238. //*****************************************************************************
  4239. //
  4240. // The following are deprecated defines for the bit fields in the
  4241. // USB_O_TXFIFOADD register.
  4242. //
  4243. //*****************************************************************************
  4244. #define USB_TXFIFOADD_ADDR_2048 0x00000009 // 2048
  4245. #define USB_TXFIFOADD_ADDR_1024 0x00000008 // 1024
  4246. #define USB_TXFIFOADD_ADDR_512 0x00000007 // 512
  4247. #define USB_TXFIFOADD_ADDR_256 0x00000006 // 256
  4248. #define USB_TXFIFOADD_ADDR_128 0x00000005 // 128
  4249. #define USB_TXFIFOADD_ADDR_64 0x00000004 // 64
  4250. #define USB_TXFIFOADD_ADDR_32 0x00000003 // 32
  4251. #define USB_TXFIFOADD_ADDR_16 0x00000002 // 16
  4252. #define USB_TXFIFOADD_ADDR_8 0x00000001 // 8
  4253. #define USB_TXFIFOADD_ADDR_0 0x00000000 // 0
  4254. //*****************************************************************************
  4255. //
  4256. // The following are deprecated defines for the bit fields in the
  4257. // USB_O_RXFIFOADD register.
  4258. //
  4259. //*****************************************************************************
  4260. #define USB_RXFIFOADD_ADDR_2048 0x00000009 // 2048
  4261. #define USB_RXFIFOADD_ADDR_1024 0x00000008 // 1024
  4262. #define USB_RXFIFOADD_ADDR_512 0x00000007 // 512
  4263. #define USB_RXFIFOADD_ADDR_256 0x00000006 // 256
  4264. #define USB_RXFIFOADD_ADDR_128 0x00000005 // 128
  4265. #define USB_RXFIFOADD_ADDR_64 0x00000004 // 64
  4266. #define USB_RXFIFOADD_ADDR_32 0x00000003 // 32
  4267. #define USB_RXFIFOADD_ADDR_16 0x00000002 // 16
  4268. #define USB_RXFIFOADD_ADDR_8 0x00000001 // 8
  4269. #define USB_RXFIFOADD_ADDR_0 0x00000000 // 0
  4270. #endif
  4271. #endif // __HW_USB_H__