hw_usb.h 228 KB

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