hw_usb.h 222 KB

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