gh_usb_phy.h 317 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521
  1. /*!
  2. *******************************************************************************
  3. **
  4. ** \file gh_usb_phy.h
  5. **
  6. ** \brief USB_PHY.
  7. **
  8. ** Copyright: 2012 - 2013 (C) GoKe Microelectronics ShangHai Branch
  9. **
  10. ** \attention THIS SAMPLE CODE IS PROVIDED AS IS. GOKE MICROELECTRONICS
  11. ** ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR
  12. ** OMMISSIONS.
  13. **
  14. ** \note Do not modify this file as it is generated automatically.
  15. **
  16. ******************************************************************************/
  17. #ifndef _GH_USB_PHY_H
  18. #define _GH_USB_PHY_H
  19. #ifdef __LINUX__
  20. #include "reg4linux.h"
  21. #else
  22. #define FIO_ADDRESS(block,address) (address)
  23. #define FIO_MOFFSET(block,moffset) (moffset)
  24. #endif
  25. #ifndef __LINUX__
  26. #include "gtypes.h" /* global type definitions */
  27. #include "gh_lib_cfg.h" /* configuration */
  28. #endif
  29. #define GH_USB_PHY_ENABLE_DEBUG_PRINT 0
  30. #ifdef __LINUX__
  31. #define GH_USB_PHY_DEBUG_PRINT_FUNCTION printk
  32. #else
  33. #define GH_USB_PHY_DEBUG_PRINT_FUNCTION printf
  34. #endif
  35. #ifndef __LINUX__
  36. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  37. #include <stdio.h>
  38. #endif
  39. #endif
  40. /* check configuration */
  41. #ifndef GH_INLINE_LEVEL
  42. #error "GH_INLINE_LEVEL is not defined!"
  43. #endif
  44. #if GH_INLINE_LEVEL > 2
  45. #error "GH_INLINE_LEVEL must be set 0, 1 or 2!"
  46. #endif
  47. #ifndef GH_INLINE
  48. #error "GH_INLINE is not defined!"
  49. #endif
  50. /* disable inlining for debugging */
  51. #ifdef DEBUG
  52. #undef GH_INLINE_LEVEL
  53. #define GH_INLINE_LEVEL 0
  54. #endif
  55. /*----------------------------------------------------------------------------*/
  56. /* registers */
  57. /*----------------------------------------------------------------------------*/
  58. #define REG_USB_PHY_TX_CONFIG FIO_ADDRESS(USB_PHY,0x90020E08) /* read/write */
  59. #define REG_USB_PHY_TX_DMA_COUNT FIO_ADDRESS(USB_PHY,0x90020E0C) /* read/write */
  60. #define REG_USB_PHY_UTMI_REG_00 FIO_ADDRESS(USB_PHY,0x90021000) /* read/write */
  61. #define REG_USB_PHY_UTMI_REG_01 FIO_ADDRESS(USB_PHY,0x90021004) /* read/write */
  62. #define REG_USB_PHY_UTMI_REG_02 FIO_ADDRESS(USB_PHY,0x90021008) /* read/write */
  63. #define REG_USB_PHY_UTMI_REG_03 FIO_ADDRESS(USB_PHY,0x9002100C) /* read/write */
  64. #define REG_USB_PHY_UTMI_REG_04 FIO_ADDRESS(USB_PHY,0x90021010) /* read/write */
  65. #define REG_USB_PHY_UTMI_REG_05 FIO_ADDRESS(USB_PHY,0x90021014) /* read/write */
  66. #define REG_USB_PHY_UTMI_REG_06 FIO_ADDRESS(USB_PHY,0x90021018) /* read/write */
  67. #define REG_USB_PHY_UTMI_STATUS FIO_ADDRESS(USB_PHY,0x9002101C) /* read */
  68. #define REG_USB_PHY_UTMI_REG_08 FIO_ADDRESS(USB_PHY,0x90021020) /* read/write */
  69. #define REG_USB_PHY_UTMI_REG_09 FIO_ADDRESS(USB_PHY,0x90021024) /* read/write */
  70. #define REG_USB_PHY_UTMI_REG_0A FIO_ADDRESS(USB_PHY,0x90021028) /* read/write */
  71. #define REG_USB_PHY_UTMI_REG_0B FIO_ADDRESS(USB_PHY,0x9002102C) /* read/write */
  72. #define REG_USB_PHY_UTMI_REG_0C FIO_ADDRESS(USB_PHY,0x90021030) /* read/write */
  73. #define REG_USB_PHY_UTMI_REG10 FIO_ADDRESS(USB_PHY,0x90021040) /* read/write */
  74. #define REG_USB_PHY_UTMI_REG11 FIO_ADDRESS(USB_PHY,0x90021044) /* read/write */
  75. #define REG_USB_PHY_UTMI_REG12 FIO_ADDRESS(USB_PHY,0x90021048) /* read/write */
  76. #define REG_USB_PHY_UTMI_REG13 FIO_ADDRESS(USB_PHY,0x9002104C) /* read/write */
  77. #define REG_USB_PHY_UTMI_REG14 FIO_ADDRESS(USB_PHY,0x90021050) /* read/write */
  78. #define REG_USB_PHY_UTMI_REG15 FIO_ADDRESS(USB_PHY,0x90021054) /* read/write */
  79. #define REG_USB_PHY_UTMI_REG16 FIO_ADDRESS(USB_PHY,0x90021058) /* read/write */
  80. #define REG_USB_PHY_UTMI_REG17 FIO_ADDRESS(USB_PHY,0x9002105C) /* read/write */
  81. #define REG_USB_PHY_UTMI_REG18 FIO_ADDRESS(USB_PHY,0x90021060) /* read/write */
  82. #define REG_USB_PHY_UTMI_REG19 FIO_ADDRESS(USB_PHY,0x90021064) /* read/write */
  83. #define REG_USB_PHY_UTMI_REG1A FIO_ADDRESS(USB_PHY,0x90021068) /* read/write */
  84. #define REG_USB_PHY_UTMI_REG1B FIO_ADDRESS(USB_PHY,0x9002106C) /* read/write */
  85. #define REG_USB_PHY_UTMI_REG1C FIO_ADDRESS(USB_PHY,0x90021070) /* read/write */
  86. #define REG_USB_PHY_UTMI_REG1D FIO_ADDRESS(USB_PHY,0x90021074) /* read/write */
  87. #define REG_USB_PHY_UTMI_REG1E FIO_ADDRESS(USB_PHY,0x90021078) /* read/write */
  88. /*----------------------------------------------------------------------------*/
  89. /* bit group structures */
  90. /*----------------------------------------------------------------------------*/
  91. typedef union { /* USB_PHY_Tx_Config */
  92. U16 all;
  93. struct {
  94. U16 tx_dma_blk : 3;
  95. U16 tx_ack_ignore : 1;
  96. U16 tx_dma_rclr : 1;
  97. U16 tx_dma_rcvd : 1;
  98. U16 : 2;
  99. U16 tx_dma_countl : 8;
  100. } bitc;
  101. } GH_USB_PHY_TX_CONFIG_S;
  102. typedef union { /* USB_PHY_Tx_Dma_Count */
  103. U16 all;
  104. struct {
  105. U16 tx_dma_countm : 8;
  106. U16 tx_dma_counth : 8;
  107. } bitc;
  108. } GH_USB_PHY_TX_DMA_COUNT_S;
  109. typedef union { /* USB_PHY_UTMI_REG_00 */
  110. U16 all;
  111. struct {
  112. U16 pdn_override : 1;
  113. U16 term_override : 1;
  114. U16 ref_pdn : 1;
  115. U16 dp_puen : 1;
  116. U16 dm_puen : 1;
  117. U16 r_pumode : 1;
  118. U16 r_dp_pden : 1;
  119. U16 r_dm_pden : 1;
  120. U16 hs_dm_pdn : 1;
  121. U16 pll_pdn : 1;
  122. U16 hs_ted_pdn : 1;
  123. U16 hs_preamp_pdn : 1;
  124. U16 f1_xcvf_pdn : 1;
  125. U16 vbusdet_pdn : 1;
  126. U16 iref_pdn : 1;
  127. U16 pdn : 1;
  128. } bitc;
  129. } GH_USB_PHY_UTMI_REG_00_S;
  130. typedef union { /* USB_PHY_UTMI_REG_01 */
  131. U16 all;
  132. struct {
  133. U16 sel_override : 1;
  134. U16 fsls_sel : 1;
  135. U16 clk12_sel : 1;
  136. U16 nrzi_en : 1;
  137. U16 bitstuff_en : 1;
  138. U16 fl_lowimode : 1;
  139. U16 hs_tx_ten : 1;
  140. U16 bond_sel : 1;
  141. U16 bitstuff_override : 1;
  142. U16 nrzi_override : 1;
  143. U16 fl_sel_override : 1;
  144. U16 eop40_det_delay_cnt : 3;
  145. U16 linestate_sel : 1;
  146. U16 hs_rterm_pdn : 1;
  147. } bitc;
  148. } GH_USB_PHY_UTMI_REG_01_S;
  149. typedef union { /* USB_PHY_UTMI_REG_02 */
  150. U16 all;
  151. struct {
  152. U16 hs_tx_en_chip : 1;
  153. U16 hs_tx_en_sw : 1;
  154. U16 dummy : 6;
  155. U16 tx_in_sel_multi_phase : 2;
  156. U16 tx_out_sel_multi_phase : 2;
  157. U16 utmi_tx_wait_cnt : 4;
  158. } bitc;
  159. } GH_USB_PHY_UTMI_REG_02_S;
  160. typedef union { /* USB_PHY_UTMI_REG_03 */
  161. U16 all;
  162. struct {
  163. U16 rx_swreset : 1;
  164. U16 utmi_tx_sw_reset : 1;
  165. U16 tx_force_hs_current_enable : 1;
  166. U16 tx_fl_early_4 : 1;
  167. U16 tx_fl_latency_delay_1 : 1;
  168. U16 hs_stage_select : 2;
  169. U16 otg_dual_role : 1;
  170. U16 tx_reset_fsm : 1;
  171. U16 cdr_mode_sel : 1;
  172. U16 tx_reserved : 4;
  173. U16 vbusdet_test : 2;
  174. } bitc;
  175. } GH_USB_PHY_UTMI_REG_03_S;
  176. typedef union { /* USB_PHY_UTMI_REG_04 */
  177. U16 all;
  178. struct {
  179. U16 utmi_clk_en : 1;
  180. U16 utmi_clk120_en : 1;
  181. U16 : 4;
  182. U16 clktest_en : 1;
  183. U16 clk_extra_0_en : 1;
  184. U16 clk_extra_1_en : 1;
  185. U16 xtal12_en : 1;
  186. U16 clk_ctl_override : 1;
  187. U16 force_pll_on : 1;
  188. U16 ck214_syn_en : 1;
  189. U16 clk_274_en : 1;
  190. U16 : 1;
  191. U16 hs_rx_roboust_en : 1;
  192. } bitc;
  193. } GH_USB_PHY_UTMI_REG_04_S;
  194. typedef union { /* USB_PHY_UTMI_REG_05 */
  195. U16 all;
  196. struct {
  197. U16 utmi_clk_inv : 1;
  198. U16 utmi_clk120_inv : 1;
  199. U16 dummy1 : 4;
  200. U16 clktest_inv : 1;
  201. U16 clk_extra_0_inv : 1;
  202. U16 clk_extra_1_inv : 1;
  203. U16 ck_inv_reserved : 7;
  204. } bitc;
  205. } GH_USB_PHY_UTMI_REG_05_S;
  206. typedef union { /* USB_PHY_UTMI_REG_06 */
  207. U16 all;
  208. struct {
  209. U16 test_clock_select : 6;
  210. U16 mac_clk_sel : 2;
  211. U16 double_data_rate : 1;
  212. U16 clk_extra0_div_select : 1;
  213. U16 clk_extra1_div_select : 2;
  214. U16 utmi_ck_en_sel : 2;
  215. U16 utmi_ckinv_en_sel : 2;
  216. } bitc;
  217. } GH_USB_PHY_UTMI_REG_06_S;
  218. typedef union { /* USB_PHY_UTMI_STATUS */
  219. U16 all;
  220. struct {
  221. U16 elasticity_error : 1;
  222. U16 sync_pattern_error : 1;
  223. U16 eop_error : 1;
  224. U16 bit_stuffer_error : 1;
  225. U16 elasticity_underflow : 1;
  226. U16 overflow : 1;
  227. U16 clock_ready : 1;
  228. U16 interrupt : 1;
  229. U16 device : 1;
  230. U16 host : 1;
  231. U16 disconnect : 1;
  232. U16 tx_fsm : 1;
  233. U16 rx_fsm : 1;
  234. U16 low_speed : 1;
  235. U16 full_speed : 1;
  236. U16 hign_speed : 1;
  237. } bitc;
  238. } GH_USB_PHY_UTMI_STATUS_S;
  239. typedef union { /* USB_PHY_UTMI_REG_08 */
  240. U16 all;
  241. struct {
  242. U16 test_bus_select : 4;
  243. U16 force_rx_nonbusy : 1;
  244. U16 force_tx_nonbusy : 1;
  245. U16 utmi_int_clr : 1;
  246. U16 se0_set : 1;
  247. U16 tx_data : 1;
  248. U16 tx_en : 1;
  249. U16 tx_se0 : 1;
  250. U16 tx_override : 1;
  251. U16 power_good_rst : 1;
  252. U16 phy_mode_enable : 1;
  253. U16 error_flag_clr : 1;
  254. U16 hd_tx_override : 1;
  255. } bitc;
  256. } GH_USB_PHY_UTMI_REG_08_S;
  257. typedef union { /* USB_PHY_UTMI_REG_09 */
  258. U16 all;
  259. struct {
  260. U16 deglitch_prd : 6;
  261. U16 vdd2low_rst_enz : 1;
  262. U16 deglitch_enz : 1;
  263. U16 usbsyn_rst : 1;
  264. U16 reg_test : 3;
  265. U16 ib_rterm_test : 3;
  266. U16 test_p1 : 1;
  267. } bitc;
  268. } GH_USB_PHY_UTMI_REG_09_S;
  269. typedef union { /* USB_PHY_UTMI_REG_0A */
  270. U16 all;
  271. struct {
  272. U16 vbusvalid : 1;
  273. U16 avalid : 1;
  274. U16 sessend : 1;
  275. U16 iddig : 1;
  276. U16 opmode : 2;
  277. U16 xcvrsel : 2;
  278. U16 termsel : 1;
  279. U16 macmode_ovd : 1;
  280. U16 suspendm : 1;
  281. U16 usb_bond_ovd : 1;
  282. U16 usb_bond_set : 1;
  283. U16 host_chirp_det : 1;
  284. U16 hs_tx_ien_mask : 1;
  285. U16 hs_tx_ien_mask_method : 1;
  286. } bitc;
  287. } GH_USB_PHY_UTMI_REG_0A_S;
  288. typedef union { /* USB_PHY_UTMI_REG_0B */
  289. U16 all;
  290. struct {
  291. U16 f : 11;
  292. U16 n : 5;
  293. } bitc;
  294. } GH_USB_PHY_UTMI_REG_0B_S;
  295. typedef union { /* USB_PHY_UTMI_REG_0C */
  296. U16 all;
  297. struct {
  298. U16 f : 16;
  299. } bitc;
  300. } GH_USB_PHY_UTMI_REG_0C_S;
  301. typedef union { /* USB_PHY_UTMI_REG10 */
  302. U16 all;
  303. struct {
  304. U16 input_clock : 1;
  305. U16 divider_selection : 2;
  306. U16 divider_control : 5;
  307. U16 clock_outputs_source : 2;
  308. U16 clock_outputs_ratio : 2;
  309. U16 digital_output : 2;
  310. U16 transmitter : 2;
  311. } bitc;
  312. } GH_USB_PHY_UTMI_REG10_S;
  313. typedef union { /* USB_PHY_UTMI_REG11 */
  314. U16 all;
  315. struct {
  316. U16 endisc : 1;
  317. U16 extdisc : 1;
  318. U16 enlockz : 1;
  319. U16 enauto : 1;
  320. U16 endcc : 1;
  321. U16 tvco : 2;
  322. U16 output_source : 1;
  323. U16 eninv : 1;
  324. U16 eninventmux : 1;
  325. U16 input_clock : 1;
  326. U16 : 5;
  327. } bitc;
  328. } GH_USB_PHY_UTMI_REG11_S;
  329. typedef union { /* USB_PHY_UTMI_REG12 */
  330. U16 all;
  331. struct {
  332. U16 ictl33 : 3;
  333. U16 dis_hvflag_disc : 1;
  334. U16 ensyn33 : 1;
  335. U16 regulated : 2;
  336. U16 regulator : 1;
  337. U16 : 8;
  338. } bitc;
  339. } GH_USB_PHY_UTMI_REG12_S;
  340. typedef union { /* USB_PHY_UTMI_REG13 */
  341. U16 all;
  342. struct {
  343. U16 de_glitch_time : 2;
  344. U16 squelch_detector : 2;
  345. U16 : 6;
  346. U16 receiver_bias : 2;
  347. U16 : 4;
  348. } bitc;
  349. } GH_USB_PHY_UTMI_REG13_S;
  350. typedef union { /* USB_PHY_UTMI_REG14 */
  351. U16 all;
  352. struct {
  353. U16 slew_rate : 1;
  354. U16 : 2;
  355. U16 hign_speed : 3;
  356. U16 full_speed0 : 2;
  357. U16 full_speed1 : 2;
  358. U16 slew : 1;
  359. U16 disable : 1;
  360. U16 test_dm : 1;
  361. U16 test_dp : 1;
  362. U16 : 2;
  363. } bitc;
  364. } GH_USB_PHY_UTMI_REG14_S;
  365. typedef union { /* USB_PHY_UTMI_REG15 */
  366. U16 all;
  367. struct {
  368. U16 vspout : 2;
  369. U16 vsmout : 2;
  370. U16 vcpout : 2;
  371. U16 vcmout : 2;
  372. U16 pgd : 2;
  373. U16 power_good_33v : 1;
  374. U16 power_good : 1;
  375. U16 vbg : 1;
  376. U16 vbgr : 1;
  377. U16 : 1;
  378. U16 power_good_por : 1;
  379. } bitc;
  380. } GH_USB_PHY_UTMI_REG15_S;
  381. typedef union { /* USB_PHY_UTMI_REG16 */
  382. U16 all;
  383. struct {
  384. U16 : 3;
  385. U16 tx_text_clock : 1;
  386. U16 tx_output_adjust : 3;
  387. U16 tx_pre_emphasis_adjust : 2;
  388. U16 tx_pre_emphasis_bias : 1;
  389. U16 tx_current_bias : 1;
  390. U16 hs_rterm : 3;
  391. U16 hs_tx : 1;
  392. U16 vbusdet_nc : 1;
  393. } bitc;
  394. } GH_USB_PHY_UTMI_REG16_S;
  395. typedef union { /* USB_PHY_UTMI_REG17 */
  396. U16 all;
  397. struct {
  398. U16 hs_rx : 1;
  399. U16 rterm : 1;
  400. U16 hs_rterm : 1;
  401. U16 hs_tx_itest : 1;
  402. U16 : 4;
  403. U16 mute : 1;
  404. U16 pre_emphasis_en : 1;
  405. U16 transition_edge : 1;
  406. U16 enable_edge : 1;
  407. U16 clock_output : 1;
  408. U16 source : 1;
  409. U16 : 2;
  410. } bitc;
  411. } GH_USB_PHY_UTMI_REG17_S;
  412. typedef union { /* USB_PHY_UTMI_REG18 */
  413. U16 all;
  414. struct {
  415. U16 lock : 1;
  416. U16 flag1 : 1;
  417. U16 flag2 : 1;
  418. U16 test : 1;
  419. U16 power_good : 1;
  420. U16 vbus : 1;
  421. U16 otg : 1;
  422. U16 cid : 1;
  423. U16 avalid_atop : 1;
  424. U16 hs_disconnect : 1;
  425. U16 hs_rx_data : 1;
  426. U16 hs_rx_chirp : 1;
  427. U16 fl_linestate0 : 1;
  428. U16 fl_linestate1 : 1;
  429. U16 failed : 1;
  430. U16 finish : 1;
  431. } bitc;
  432. } GH_USB_PHY_UTMI_REG18_S;
  433. typedef union { /* USB_PHY_UTMI_REG19 */
  434. U16 all;
  435. struct {
  436. U16 pg_tx_length : 8;
  437. U16 pg_tx_go : 1;
  438. U16 pg_tx_mode : 1;
  439. U16 pg_tx_fixed_data : 1;
  440. U16 continuous_mode : 1;
  441. U16 receiving_mode : 1;
  442. U16 : 3;
  443. } bitc;
  444. } GH_USB_PHY_UTMI_REG19_S;
  445. typedef union { /* USB_PHY_UTMI_REG1A */
  446. U16 all;
  447. struct {
  448. U16 pg_tx_data : 16;
  449. } bitc;
  450. } GH_USB_PHY_UTMI_REG1A_S;
  451. typedef union { /* USB_PHY_UTMI_REG1B */
  452. U16 all;
  453. struct {
  454. U16 pg_tx_inc : 16;
  455. } bitc;
  456. } GH_USB_PHY_UTMI_REG1B_S;
  457. typedef union { /* USB_PHY_UTMI_REG1C */
  458. U16 all;
  459. struct {
  460. U16 en_ck192 : 1;
  461. U16 vigen_pdn : 1;
  462. U16 selport : 1;
  463. U16 dp_status : 1;
  464. U16 dm_status : 1;
  465. U16 dp1_status : 1;
  466. U16 dm1_status : 1;
  467. U16 asrst_on : 1;
  468. U16 vbus : 1;
  469. U16 dummy : 1;
  470. U16 reserved : 6;
  471. } bitc;
  472. } GH_USB_PHY_UTMI_REG1C_S;
  473. typedef union { /* USB_PHY_UTMI_REG1D */
  474. U16 all;
  475. struct {
  476. U16 test_serdes : 8;
  477. U16 reg_test : 8;
  478. } bitc;
  479. } GH_USB_PHY_UTMI_REG1D_S;
  480. typedef union { /* USB_PHY_UTMI_REG1E */
  481. U16 all;
  482. struct {
  483. U16 ca_start : 1;
  484. U16 ca_end : 1;
  485. U16 power_good_sts : 1;
  486. U16 : 1;
  487. U16 ca_data : 12;
  488. } bitc;
  489. } GH_USB_PHY_UTMI_REG1E_S;
  490. /*----------------------------------------------------------------------------*/
  491. /* mirror variables */
  492. /*----------------------------------------------------------------------------*/
  493. #ifdef __cplusplus
  494. extern "C" {
  495. #endif
  496. /*----------------------------------------------------------------------------*/
  497. /* register USB_PHY_Tx_Config (read/write) */
  498. /*----------------------------------------------------------------------------*/
  499. #if GH_INLINE_LEVEL == 0
  500. /*! \brief Writes the register 'USB_PHY_Tx_Config'. */
  501. void GH_USB_PHY_set_Tx_Config(U16 data);
  502. /*! \brief Reads the register 'USB_PHY_Tx_Config'. */
  503. U16 GH_USB_PHY_get_Tx_Config(void);
  504. /*! \brief Writes the bit group 'tx_dma_blk' of register 'USB_PHY_Tx_Config'. */
  505. void GH_USB_PHY_set_Tx_Config_tx_dma_blk(U8 data);
  506. /*! \brief Reads the bit group 'tx_dma_blk' of register 'USB_PHY_Tx_Config'. */
  507. U8 GH_USB_PHY_get_Tx_Config_tx_dma_blk(void);
  508. /*! \brief Writes the bit group 'tx_ack_ignore' of register 'USB_PHY_Tx_Config'. */
  509. void GH_USB_PHY_set_Tx_Config_tx_ack_ignore(U8 data);
  510. /*! \brief Reads the bit group 'tx_ack_ignore' of register 'USB_PHY_Tx_Config'. */
  511. U8 GH_USB_PHY_get_Tx_Config_tx_ack_ignore(void);
  512. /*! \brief Writes the bit group 'tx_dma_rclr' of register 'USB_PHY_Tx_Config'. */
  513. void GH_USB_PHY_set_Tx_Config_tx_dma_rclr(U8 data);
  514. /*! \brief Reads the bit group 'tx_dma_rclr' of register 'USB_PHY_Tx_Config'. */
  515. U8 GH_USB_PHY_get_Tx_Config_tx_dma_rclr(void);
  516. /*! \brief Writes the bit group 'tx_dma_rcvd' of register 'USB_PHY_Tx_Config'. */
  517. void GH_USB_PHY_set_Tx_Config_tx_dma_rcvd(U8 data);
  518. /*! \brief Reads the bit group 'tx_dma_rcvd' of register 'USB_PHY_Tx_Config'. */
  519. U8 GH_USB_PHY_get_Tx_Config_tx_dma_rcvd(void);
  520. /*! \brief Writes the bit group 'tx_dma_countL' of register 'USB_PHY_Tx_Config'. */
  521. void GH_USB_PHY_set_Tx_Config_tx_dma_countL(U8 data);
  522. /*! \brief Reads the bit group 'tx_dma_countL' of register 'USB_PHY_Tx_Config'. */
  523. U8 GH_USB_PHY_get_Tx_Config_tx_dma_countL(void);
  524. #else /* GH_INLINE_LEVEL == 0 */
  525. GH_INLINE void GH_USB_PHY_set_Tx_Config(U16 data)
  526. {
  527. *(volatile U16 *)REG_USB_PHY_TX_CONFIG = data;
  528. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  529. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_Tx_Config] <-- 0x%08x\n",
  530. REG_USB_PHY_TX_CONFIG,data,data);
  531. #endif
  532. }
  533. GH_INLINE U16 GH_USB_PHY_get_Tx_Config(void)
  534. {
  535. U16 value = (*(volatile U16 *)REG_USB_PHY_TX_CONFIG);
  536. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  537. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_Tx_Config] --> 0x%08x\n",
  538. REG_USB_PHY_TX_CONFIG,value);
  539. #endif
  540. return value;
  541. }
  542. GH_INLINE void GH_USB_PHY_set_Tx_Config_tx_dma_blk(U8 data)
  543. {
  544. GH_USB_PHY_TX_CONFIG_S d;
  545. d.all = *(volatile U16 *)REG_USB_PHY_TX_CONFIG;
  546. d.bitc.tx_dma_blk = data;
  547. *(volatile U16 *)REG_USB_PHY_TX_CONFIG = d.all;
  548. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  549. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_Tx_Config_tx_dma_blk] <-- 0x%08x\n",
  550. REG_USB_PHY_TX_CONFIG,d.all,d.all);
  551. #endif
  552. }
  553. GH_INLINE U8 GH_USB_PHY_get_Tx_Config_tx_dma_blk(void)
  554. {
  555. GH_USB_PHY_TX_CONFIG_S tmp_value;
  556. U16 value = (*(volatile U16 *)REG_USB_PHY_TX_CONFIG);
  557. tmp_value.all = value;
  558. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  559. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_Tx_Config_tx_dma_blk] --> 0x%08x\n",
  560. REG_USB_PHY_TX_CONFIG,value);
  561. #endif
  562. return tmp_value.bitc.tx_dma_blk;
  563. }
  564. GH_INLINE void GH_USB_PHY_set_Tx_Config_tx_ack_ignore(U8 data)
  565. {
  566. GH_USB_PHY_TX_CONFIG_S d;
  567. d.all = *(volatile U16 *)REG_USB_PHY_TX_CONFIG;
  568. d.bitc.tx_ack_ignore = data;
  569. *(volatile U16 *)REG_USB_PHY_TX_CONFIG = d.all;
  570. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  571. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_Tx_Config_tx_ack_ignore] <-- 0x%08x\n",
  572. REG_USB_PHY_TX_CONFIG,d.all,d.all);
  573. #endif
  574. }
  575. GH_INLINE U8 GH_USB_PHY_get_Tx_Config_tx_ack_ignore(void)
  576. {
  577. GH_USB_PHY_TX_CONFIG_S tmp_value;
  578. U16 value = (*(volatile U16 *)REG_USB_PHY_TX_CONFIG);
  579. tmp_value.all = value;
  580. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  581. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_Tx_Config_tx_ack_ignore] --> 0x%08x\n",
  582. REG_USB_PHY_TX_CONFIG,value);
  583. #endif
  584. return tmp_value.bitc.tx_ack_ignore;
  585. }
  586. GH_INLINE void GH_USB_PHY_set_Tx_Config_tx_dma_rclr(U8 data)
  587. {
  588. GH_USB_PHY_TX_CONFIG_S d;
  589. d.all = *(volatile U16 *)REG_USB_PHY_TX_CONFIG;
  590. d.bitc.tx_dma_rclr = data;
  591. *(volatile U16 *)REG_USB_PHY_TX_CONFIG = d.all;
  592. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  593. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_Tx_Config_tx_dma_rclr] <-- 0x%08x\n",
  594. REG_USB_PHY_TX_CONFIG,d.all,d.all);
  595. #endif
  596. }
  597. GH_INLINE U8 GH_USB_PHY_get_Tx_Config_tx_dma_rclr(void)
  598. {
  599. GH_USB_PHY_TX_CONFIG_S tmp_value;
  600. U16 value = (*(volatile U16 *)REG_USB_PHY_TX_CONFIG);
  601. tmp_value.all = value;
  602. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  603. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_Tx_Config_tx_dma_rclr] --> 0x%08x\n",
  604. REG_USB_PHY_TX_CONFIG,value);
  605. #endif
  606. return tmp_value.bitc.tx_dma_rclr;
  607. }
  608. GH_INLINE void GH_USB_PHY_set_Tx_Config_tx_dma_rcvd(U8 data)
  609. {
  610. GH_USB_PHY_TX_CONFIG_S d;
  611. d.all = *(volatile U16 *)REG_USB_PHY_TX_CONFIG;
  612. d.bitc.tx_dma_rcvd = data;
  613. *(volatile U16 *)REG_USB_PHY_TX_CONFIG = d.all;
  614. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  615. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_Tx_Config_tx_dma_rcvd] <-- 0x%08x\n",
  616. REG_USB_PHY_TX_CONFIG,d.all,d.all);
  617. #endif
  618. }
  619. GH_INLINE U8 GH_USB_PHY_get_Tx_Config_tx_dma_rcvd(void)
  620. {
  621. GH_USB_PHY_TX_CONFIG_S tmp_value;
  622. U16 value = (*(volatile U16 *)REG_USB_PHY_TX_CONFIG);
  623. tmp_value.all = value;
  624. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  625. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_Tx_Config_tx_dma_rcvd] --> 0x%08x\n",
  626. REG_USB_PHY_TX_CONFIG,value);
  627. #endif
  628. return tmp_value.bitc.tx_dma_rcvd;
  629. }
  630. GH_INLINE void GH_USB_PHY_set_Tx_Config_tx_dma_countL(U8 data)
  631. {
  632. GH_USB_PHY_TX_CONFIG_S d;
  633. d.all = *(volatile U16 *)REG_USB_PHY_TX_CONFIG;
  634. d.bitc.tx_dma_countl = data;
  635. *(volatile U16 *)REG_USB_PHY_TX_CONFIG = d.all;
  636. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  637. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_Tx_Config_tx_dma_countL] <-- 0x%08x\n",
  638. REG_USB_PHY_TX_CONFIG,d.all,d.all);
  639. #endif
  640. }
  641. GH_INLINE U8 GH_USB_PHY_get_Tx_Config_tx_dma_countL(void)
  642. {
  643. GH_USB_PHY_TX_CONFIG_S tmp_value;
  644. U16 value = (*(volatile U16 *)REG_USB_PHY_TX_CONFIG);
  645. tmp_value.all = value;
  646. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  647. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_Tx_Config_tx_dma_countL] --> 0x%08x\n",
  648. REG_USB_PHY_TX_CONFIG,value);
  649. #endif
  650. return tmp_value.bitc.tx_dma_countl;
  651. }
  652. #endif /* GH_INLINE_LEVEL == 0 */
  653. /*----------------------------------------------------------------------------*/
  654. /* register USB_PHY_Tx_Dma_Count (read/write) */
  655. /*----------------------------------------------------------------------------*/
  656. #if GH_INLINE_LEVEL == 0
  657. /*! \brief Writes the register 'USB_PHY_Tx_Dma_Count'. */
  658. void GH_USB_PHY_set_Tx_Dma_Count(U16 data);
  659. /*! \brief Reads the register 'USB_PHY_Tx_Dma_Count'. */
  660. U16 GH_USB_PHY_get_Tx_Dma_Count(void);
  661. /*! \brief Writes the bit group 'tx_dma_countM' of register 'USB_PHY_Tx_Dma_Count'. */
  662. void GH_USB_PHY_set_Tx_Dma_Count_tx_dma_countM(U8 data);
  663. /*! \brief Reads the bit group 'tx_dma_countM' of register 'USB_PHY_Tx_Dma_Count'. */
  664. U8 GH_USB_PHY_get_Tx_Dma_Count_tx_dma_countM(void);
  665. /*! \brief Writes the bit group 'tx_dma_countH' of register 'USB_PHY_Tx_Dma_Count'. */
  666. void GH_USB_PHY_set_Tx_Dma_Count_tx_dma_countH(U8 data);
  667. /*! \brief Reads the bit group 'tx_dma_countH' of register 'USB_PHY_Tx_Dma_Count'. */
  668. U8 GH_USB_PHY_get_Tx_Dma_Count_tx_dma_countH(void);
  669. #else /* GH_INLINE_LEVEL == 0 */
  670. GH_INLINE void GH_USB_PHY_set_Tx_Dma_Count(U16 data)
  671. {
  672. *(volatile U16 *)REG_USB_PHY_TX_DMA_COUNT = data;
  673. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  674. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_Tx_Dma_Count] <-- 0x%08x\n",
  675. REG_USB_PHY_TX_DMA_COUNT,data,data);
  676. #endif
  677. }
  678. GH_INLINE U16 GH_USB_PHY_get_Tx_Dma_Count(void)
  679. {
  680. U16 value = (*(volatile U16 *)REG_USB_PHY_TX_DMA_COUNT);
  681. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  682. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_Tx_Dma_Count] --> 0x%08x\n",
  683. REG_USB_PHY_TX_DMA_COUNT,value);
  684. #endif
  685. return value;
  686. }
  687. GH_INLINE void GH_USB_PHY_set_Tx_Dma_Count_tx_dma_countM(U8 data)
  688. {
  689. GH_USB_PHY_TX_DMA_COUNT_S d;
  690. d.all = *(volatile U16 *)REG_USB_PHY_TX_DMA_COUNT;
  691. d.bitc.tx_dma_countm = data;
  692. *(volatile U16 *)REG_USB_PHY_TX_DMA_COUNT = d.all;
  693. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  694. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_Tx_Dma_Count_tx_dma_countM] <-- 0x%08x\n",
  695. REG_USB_PHY_TX_DMA_COUNT,d.all,d.all);
  696. #endif
  697. }
  698. GH_INLINE U8 GH_USB_PHY_get_Tx_Dma_Count_tx_dma_countM(void)
  699. {
  700. GH_USB_PHY_TX_DMA_COUNT_S tmp_value;
  701. U16 value = (*(volatile U16 *)REG_USB_PHY_TX_DMA_COUNT);
  702. tmp_value.all = value;
  703. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  704. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_Tx_Dma_Count_tx_dma_countM] --> 0x%08x\n",
  705. REG_USB_PHY_TX_DMA_COUNT,value);
  706. #endif
  707. return tmp_value.bitc.tx_dma_countm;
  708. }
  709. GH_INLINE void GH_USB_PHY_set_Tx_Dma_Count_tx_dma_countH(U8 data)
  710. {
  711. GH_USB_PHY_TX_DMA_COUNT_S d;
  712. d.all = *(volatile U16 *)REG_USB_PHY_TX_DMA_COUNT;
  713. d.bitc.tx_dma_counth = data;
  714. *(volatile U16 *)REG_USB_PHY_TX_DMA_COUNT = d.all;
  715. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  716. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_Tx_Dma_Count_tx_dma_countH] <-- 0x%08x\n",
  717. REG_USB_PHY_TX_DMA_COUNT,d.all,d.all);
  718. #endif
  719. }
  720. GH_INLINE U8 GH_USB_PHY_get_Tx_Dma_Count_tx_dma_countH(void)
  721. {
  722. GH_USB_PHY_TX_DMA_COUNT_S tmp_value;
  723. U16 value = (*(volatile U16 *)REG_USB_PHY_TX_DMA_COUNT);
  724. tmp_value.all = value;
  725. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  726. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_Tx_Dma_Count_tx_dma_countH] --> 0x%08x\n",
  727. REG_USB_PHY_TX_DMA_COUNT,value);
  728. #endif
  729. return tmp_value.bitc.tx_dma_counth;
  730. }
  731. #endif /* GH_INLINE_LEVEL == 0 */
  732. /*----------------------------------------------------------------------------*/
  733. /* register USB_PHY_UTMI_REG_00 (read/write) */
  734. /*----------------------------------------------------------------------------*/
  735. #if GH_INLINE_LEVEL == 0
  736. /*! \brief Writes the register 'USB_PHY_UTMI_REG_00'. */
  737. void GH_USB_PHY_set_UTMI_REG_00(U16 data);
  738. /*! \brief Reads the register 'USB_PHY_UTMI_REG_00'. */
  739. U16 GH_USB_PHY_get_UTMI_REG_00(void);
  740. /*! \brief Writes the bit group 'pdn_override' of register 'USB_PHY_UTMI_REG_00'. */
  741. void GH_USB_PHY_set_UTMI_REG_00_pdn_override(U8 data);
  742. /*! \brief Reads the bit group 'pdn_override' of register 'USB_PHY_UTMI_REG_00'. */
  743. U8 GH_USB_PHY_get_UTMI_REG_00_pdn_override(void);
  744. /*! \brief Writes the bit group 'term_override' of register 'USB_PHY_UTMI_REG_00'. */
  745. void GH_USB_PHY_set_UTMI_REG_00_term_override(U8 data);
  746. /*! \brief Reads the bit group 'term_override' of register 'USB_PHY_UTMI_REG_00'. */
  747. U8 GH_USB_PHY_get_UTMI_REG_00_term_override(void);
  748. /*! \brief Writes the bit group 'ref_pdn' of register 'USB_PHY_UTMI_REG_00'. */
  749. void GH_USB_PHY_set_UTMI_REG_00_ref_pdn(U8 data);
  750. /*! \brief Reads the bit group 'ref_pdn' of register 'USB_PHY_UTMI_REG_00'. */
  751. U8 GH_USB_PHY_get_UTMI_REG_00_ref_pdn(void);
  752. /*! \brief Writes the bit group 'dp_puen' of register 'USB_PHY_UTMI_REG_00'. */
  753. void GH_USB_PHY_set_UTMI_REG_00_dp_puen(U8 data);
  754. /*! \brief Reads the bit group 'dp_puen' of register 'USB_PHY_UTMI_REG_00'. */
  755. U8 GH_USB_PHY_get_UTMI_REG_00_dp_puen(void);
  756. /*! \brief Writes the bit group 'dm_puen' of register 'USB_PHY_UTMI_REG_00'. */
  757. void GH_USB_PHY_set_UTMI_REG_00_dm_puen(U8 data);
  758. /*! \brief Reads the bit group 'dm_puen' of register 'USB_PHY_UTMI_REG_00'. */
  759. U8 GH_USB_PHY_get_UTMI_REG_00_dm_puen(void);
  760. /*! \brief Writes the bit group 'r_pumode' of register 'USB_PHY_UTMI_REG_00'. */
  761. void GH_USB_PHY_set_UTMI_REG_00_r_pumode(U8 data);
  762. /*! \brief Reads the bit group 'r_pumode' of register 'USB_PHY_UTMI_REG_00'. */
  763. U8 GH_USB_PHY_get_UTMI_REG_00_r_pumode(void);
  764. /*! \brief Writes the bit group 'r_dp_pden' of register 'USB_PHY_UTMI_REG_00'. */
  765. void GH_USB_PHY_set_UTMI_REG_00_r_dp_pden(U8 data);
  766. /*! \brief Reads the bit group 'r_dp_pden' of register 'USB_PHY_UTMI_REG_00'. */
  767. U8 GH_USB_PHY_get_UTMI_REG_00_r_dp_pden(void);
  768. /*! \brief Writes the bit group 'r_dm_pden' of register 'USB_PHY_UTMI_REG_00'. */
  769. void GH_USB_PHY_set_UTMI_REG_00_r_dm_pden(U8 data);
  770. /*! \brief Reads the bit group 'r_dm_pden' of register 'USB_PHY_UTMI_REG_00'. */
  771. U8 GH_USB_PHY_get_UTMI_REG_00_r_dm_pden(void);
  772. /*! \brief Writes the bit group 'hs_dm_pdn' of register 'USB_PHY_UTMI_REG_00'. */
  773. void GH_USB_PHY_set_UTMI_REG_00_hs_dm_pdn(U8 data);
  774. /*! \brief Reads the bit group 'hs_dm_pdn' of register 'USB_PHY_UTMI_REG_00'. */
  775. U8 GH_USB_PHY_get_UTMI_REG_00_hs_dm_pdn(void);
  776. /*! \brief Writes the bit group 'pll_pdn' of register 'USB_PHY_UTMI_REG_00'. */
  777. void GH_USB_PHY_set_UTMI_REG_00_pll_pdn(U8 data);
  778. /*! \brief Reads the bit group 'pll_pdn' of register 'USB_PHY_UTMI_REG_00'. */
  779. U8 GH_USB_PHY_get_UTMI_REG_00_pll_pdn(void);
  780. /*! \brief Writes the bit group 'hs_ted_pdn' of register 'USB_PHY_UTMI_REG_00'. */
  781. void GH_USB_PHY_set_UTMI_REG_00_hs_ted_pdn(U8 data);
  782. /*! \brief Reads the bit group 'hs_ted_pdn' of register 'USB_PHY_UTMI_REG_00'. */
  783. U8 GH_USB_PHY_get_UTMI_REG_00_hs_ted_pdn(void);
  784. /*! \brief Writes the bit group 'hs_preamp_pdn' of register 'USB_PHY_UTMI_REG_00'. */
  785. void GH_USB_PHY_set_UTMI_REG_00_hs_preamp_pdn(U8 data);
  786. /*! \brief Reads the bit group 'hs_preamp_pdn' of register 'USB_PHY_UTMI_REG_00'. */
  787. U8 GH_USB_PHY_get_UTMI_REG_00_hs_preamp_pdn(void);
  788. /*! \brief Writes the bit group 'f1_xcvf_pdn' of register 'USB_PHY_UTMI_REG_00'. */
  789. void GH_USB_PHY_set_UTMI_REG_00_f1_xcvf_pdn(U8 data);
  790. /*! \brief Reads the bit group 'f1_xcvf_pdn' of register 'USB_PHY_UTMI_REG_00'. */
  791. U8 GH_USB_PHY_get_UTMI_REG_00_f1_xcvf_pdn(void);
  792. /*! \brief Writes the bit group 'vbusdet_pdn' of register 'USB_PHY_UTMI_REG_00'. */
  793. void GH_USB_PHY_set_UTMI_REG_00_vbusdet_pdn(U8 data);
  794. /*! \brief Reads the bit group 'vbusdet_pdn' of register 'USB_PHY_UTMI_REG_00'. */
  795. U8 GH_USB_PHY_get_UTMI_REG_00_vbusdet_pdn(void);
  796. /*! \brief Writes the bit group 'iref_pdn' of register 'USB_PHY_UTMI_REG_00'. */
  797. void GH_USB_PHY_set_UTMI_REG_00_iref_pdn(U8 data);
  798. /*! \brief Reads the bit group 'iref_pdn' of register 'USB_PHY_UTMI_REG_00'. */
  799. U8 GH_USB_PHY_get_UTMI_REG_00_iref_pdn(void);
  800. /*! \brief Writes the bit group 'pdn' of register 'USB_PHY_UTMI_REG_00'. */
  801. void GH_USB_PHY_set_UTMI_REG_00_pdn(U8 data);
  802. /*! \brief Reads the bit group 'pdn' of register 'USB_PHY_UTMI_REG_00'. */
  803. U8 GH_USB_PHY_get_UTMI_REG_00_pdn(void);
  804. #else /* GH_INLINE_LEVEL == 0 */
  805. GH_INLINE void GH_USB_PHY_set_UTMI_REG_00(U16 data)
  806. {
  807. *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = data;
  808. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  809. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00] <-- 0x%08x\n",
  810. REG_USB_PHY_UTMI_REG_00,data,data);
  811. #endif
  812. }
  813. GH_INLINE U16 GH_USB_PHY_get_UTMI_REG_00(void)
  814. {
  815. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
  816. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  817. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00] --> 0x%08x\n",
  818. REG_USB_PHY_UTMI_REG_00,value);
  819. #endif
  820. return value;
  821. }
  822. GH_INLINE void GH_USB_PHY_set_UTMI_REG_00_pdn_override(U8 data)
  823. {
  824. GH_USB_PHY_UTMI_REG_00_S d;
  825. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_00;
  826. d.bitc.pdn_override = data;
  827. *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = d.all;
  828. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  829. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00_pdn_override] <-- 0x%08x\n",
  830. REG_USB_PHY_UTMI_REG_00,d.all,d.all);
  831. #endif
  832. }
  833. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_00_pdn_override(void)
  834. {
  835. GH_USB_PHY_UTMI_REG_00_S tmp_value;
  836. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
  837. tmp_value.all = value;
  838. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  839. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00_pdn_override] --> 0x%08x\n",
  840. REG_USB_PHY_UTMI_REG_00,value);
  841. #endif
  842. return tmp_value.bitc.pdn_override;
  843. }
  844. GH_INLINE void GH_USB_PHY_set_UTMI_REG_00_term_override(U8 data)
  845. {
  846. GH_USB_PHY_UTMI_REG_00_S d;
  847. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_00;
  848. d.bitc.term_override = data;
  849. *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = d.all;
  850. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  851. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00_term_override] <-- 0x%08x\n",
  852. REG_USB_PHY_UTMI_REG_00,d.all,d.all);
  853. #endif
  854. }
  855. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_00_term_override(void)
  856. {
  857. GH_USB_PHY_UTMI_REG_00_S tmp_value;
  858. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
  859. tmp_value.all = value;
  860. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  861. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00_term_override] --> 0x%08x\n",
  862. REG_USB_PHY_UTMI_REG_00,value);
  863. #endif
  864. return tmp_value.bitc.term_override;
  865. }
  866. GH_INLINE void GH_USB_PHY_set_UTMI_REG_00_ref_pdn(U8 data)
  867. {
  868. GH_USB_PHY_UTMI_REG_00_S d;
  869. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_00;
  870. d.bitc.ref_pdn = data;
  871. *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = d.all;
  872. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  873. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00_ref_pdn] <-- 0x%08x\n",
  874. REG_USB_PHY_UTMI_REG_00,d.all,d.all);
  875. #endif
  876. }
  877. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_00_ref_pdn(void)
  878. {
  879. GH_USB_PHY_UTMI_REG_00_S tmp_value;
  880. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
  881. tmp_value.all = value;
  882. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  883. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00_ref_pdn] --> 0x%08x\n",
  884. REG_USB_PHY_UTMI_REG_00,value);
  885. #endif
  886. return tmp_value.bitc.ref_pdn;
  887. }
  888. GH_INLINE void GH_USB_PHY_set_UTMI_REG_00_dp_puen(U8 data)
  889. {
  890. GH_USB_PHY_UTMI_REG_00_S d;
  891. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_00;
  892. d.bitc.dp_puen = data;
  893. *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = d.all;
  894. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  895. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00_dp_puen] <-- 0x%08x\n",
  896. REG_USB_PHY_UTMI_REG_00,d.all,d.all);
  897. #endif
  898. }
  899. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_00_dp_puen(void)
  900. {
  901. GH_USB_PHY_UTMI_REG_00_S tmp_value;
  902. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
  903. tmp_value.all = value;
  904. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  905. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00_dp_puen] --> 0x%08x\n",
  906. REG_USB_PHY_UTMI_REG_00,value);
  907. #endif
  908. return tmp_value.bitc.dp_puen;
  909. }
  910. GH_INLINE void GH_USB_PHY_set_UTMI_REG_00_dm_puen(U8 data)
  911. {
  912. GH_USB_PHY_UTMI_REG_00_S d;
  913. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_00;
  914. d.bitc.dm_puen = data;
  915. *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = d.all;
  916. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  917. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00_dm_puen] <-- 0x%08x\n",
  918. REG_USB_PHY_UTMI_REG_00,d.all,d.all);
  919. #endif
  920. }
  921. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_00_dm_puen(void)
  922. {
  923. GH_USB_PHY_UTMI_REG_00_S tmp_value;
  924. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
  925. tmp_value.all = value;
  926. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  927. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00_dm_puen] --> 0x%08x\n",
  928. REG_USB_PHY_UTMI_REG_00,value);
  929. #endif
  930. return tmp_value.bitc.dm_puen;
  931. }
  932. GH_INLINE void GH_USB_PHY_set_UTMI_REG_00_r_pumode(U8 data)
  933. {
  934. GH_USB_PHY_UTMI_REG_00_S d;
  935. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_00;
  936. d.bitc.r_pumode = data;
  937. *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = d.all;
  938. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  939. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00_r_pumode] <-- 0x%08x\n",
  940. REG_USB_PHY_UTMI_REG_00,d.all,d.all);
  941. #endif
  942. }
  943. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_00_r_pumode(void)
  944. {
  945. GH_USB_PHY_UTMI_REG_00_S tmp_value;
  946. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
  947. tmp_value.all = value;
  948. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  949. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00_r_pumode] --> 0x%08x\n",
  950. REG_USB_PHY_UTMI_REG_00,value);
  951. #endif
  952. return tmp_value.bitc.r_pumode;
  953. }
  954. GH_INLINE void GH_USB_PHY_set_UTMI_REG_00_r_dp_pden(U8 data)
  955. {
  956. GH_USB_PHY_UTMI_REG_00_S d;
  957. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_00;
  958. d.bitc.r_dp_pden = data;
  959. *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = d.all;
  960. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  961. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00_r_dp_pden] <-- 0x%08x\n",
  962. REG_USB_PHY_UTMI_REG_00,d.all,d.all);
  963. #endif
  964. }
  965. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_00_r_dp_pden(void)
  966. {
  967. GH_USB_PHY_UTMI_REG_00_S tmp_value;
  968. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
  969. tmp_value.all = value;
  970. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  971. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00_r_dp_pden] --> 0x%08x\n",
  972. REG_USB_PHY_UTMI_REG_00,value);
  973. #endif
  974. return tmp_value.bitc.r_dp_pden;
  975. }
  976. GH_INLINE void GH_USB_PHY_set_UTMI_REG_00_r_dm_pden(U8 data)
  977. {
  978. GH_USB_PHY_UTMI_REG_00_S d;
  979. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_00;
  980. d.bitc.r_dm_pden = data;
  981. *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = d.all;
  982. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  983. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00_r_dm_pden] <-- 0x%08x\n",
  984. REG_USB_PHY_UTMI_REG_00,d.all,d.all);
  985. #endif
  986. }
  987. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_00_r_dm_pden(void)
  988. {
  989. GH_USB_PHY_UTMI_REG_00_S tmp_value;
  990. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
  991. tmp_value.all = value;
  992. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  993. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00_r_dm_pden] --> 0x%08x\n",
  994. REG_USB_PHY_UTMI_REG_00,value);
  995. #endif
  996. return tmp_value.bitc.r_dm_pden;
  997. }
  998. GH_INLINE void GH_USB_PHY_set_UTMI_REG_00_hs_dm_pdn(U8 data)
  999. {
  1000. GH_USB_PHY_UTMI_REG_00_S d;
  1001. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_00;
  1002. d.bitc.hs_dm_pdn = data;
  1003. *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = d.all;
  1004. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1005. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00_hs_dm_pdn] <-- 0x%08x\n",
  1006. REG_USB_PHY_UTMI_REG_00,d.all,d.all);
  1007. #endif
  1008. }
  1009. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_00_hs_dm_pdn(void)
  1010. {
  1011. GH_USB_PHY_UTMI_REG_00_S tmp_value;
  1012. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
  1013. tmp_value.all = value;
  1014. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1015. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00_hs_dm_pdn] --> 0x%08x\n",
  1016. REG_USB_PHY_UTMI_REG_00,value);
  1017. #endif
  1018. return tmp_value.bitc.hs_dm_pdn;
  1019. }
  1020. GH_INLINE void GH_USB_PHY_set_UTMI_REG_00_pll_pdn(U8 data)
  1021. {
  1022. GH_USB_PHY_UTMI_REG_00_S d;
  1023. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_00;
  1024. d.bitc.pll_pdn = data;
  1025. *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = d.all;
  1026. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1027. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00_pll_pdn] <-- 0x%08x\n",
  1028. REG_USB_PHY_UTMI_REG_00,d.all,d.all);
  1029. #endif
  1030. }
  1031. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_00_pll_pdn(void)
  1032. {
  1033. GH_USB_PHY_UTMI_REG_00_S tmp_value;
  1034. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
  1035. tmp_value.all = value;
  1036. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1037. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00_pll_pdn] --> 0x%08x\n",
  1038. REG_USB_PHY_UTMI_REG_00,value);
  1039. #endif
  1040. return tmp_value.bitc.pll_pdn;
  1041. }
  1042. GH_INLINE void GH_USB_PHY_set_UTMI_REG_00_hs_ted_pdn(U8 data)
  1043. {
  1044. GH_USB_PHY_UTMI_REG_00_S d;
  1045. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_00;
  1046. d.bitc.hs_ted_pdn = data;
  1047. *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = d.all;
  1048. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1049. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00_hs_ted_pdn] <-- 0x%08x\n",
  1050. REG_USB_PHY_UTMI_REG_00,d.all,d.all);
  1051. #endif
  1052. }
  1053. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_00_hs_ted_pdn(void)
  1054. {
  1055. GH_USB_PHY_UTMI_REG_00_S tmp_value;
  1056. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
  1057. tmp_value.all = value;
  1058. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1059. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00_hs_ted_pdn] --> 0x%08x\n",
  1060. REG_USB_PHY_UTMI_REG_00,value);
  1061. #endif
  1062. return tmp_value.bitc.hs_ted_pdn;
  1063. }
  1064. GH_INLINE void GH_USB_PHY_set_UTMI_REG_00_hs_preamp_pdn(U8 data)
  1065. {
  1066. GH_USB_PHY_UTMI_REG_00_S d;
  1067. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_00;
  1068. d.bitc.hs_preamp_pdn = data;
  1069. *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = d.all;
  1070. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1071. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00_hs_preamp_pdn] <-- 0x%08x\n",
  1072. REG_USB_PHY_UTMI_REG_00,d.all,d.all);
  1073. #endif
  1074. }
  1075. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_00_hs_preamp_pdn(void)
  1076. {
  1077. GH_USB_PHY_UTMI_REG_00_S tmp_value;
  1078. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
  1079. tmp_value.all = value;
  1080. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1081. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00_hs_preamp_pdn] --> 0x%08x\n",
  1082. REG_USB_PHY_UTMI_REG_00,value);
  1083. #endif
  1084. return tmp_value.bitc.hs_preamp_pdn;
  1085. }
  1086. GH_INLINE void GH_USB_PHY_set_UTMI_REG_00_f1_xcvf_pdn(U8 data)
  1087. {
  1088. GH_USB_PHY_UTMI_REG_00_S d;
  1089. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_00;
  1090. d.bitc.f1_xcvf_pdn = data;
  1091. *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = d.all;
  1092. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1093. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00_f1_xcvf_pdn] <-- 0x%08x\n",
  1094. REG_USB_PHY_UTMI_REG_00,d.all,d.all);
  1095. #endif
  1096. }
  1097. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_00_f1_xcvf_pdn(void)
  1098. {
  1099. GH_USB_PHY_UTMI_REG_00_S tmp_value;
  1100. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
  1101. tmp_value.all = value;
  1102. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1103. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00_f1_xcvf_pdn] --> 0x%08x\n",
  1104. REG_USB_PHY_UTMI_REG_00,value);
  1105. #endif
  1106. return tmp_value.bitc.f1_xcvf_pdn;
  1107. }
  1108. GH_INLINE void GH_USB_PHY_set_UTMI_REG_00_vbusdet_pdn(U8 data)
  1109. {
  1110. GH_USB_PHY_UTMI_REG_00_S d;
  1111. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_00;
  1112. d.bitc.vbusdet_pdn = data;
  1113. *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = d.all;
  1114. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1115. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00_vbusdet_pdn] <-- 0x%08x\n",
  1116. REG_USB_PHY_UTMI_REG_00,d.all,d.all);
  1117. #endif
  1118. }
  1119. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_00_vbusdet_pdn(void)
  1120. {
  1121. GH_USB_PHY_UTMI_REG_00_S tmp_value;
  1122. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
  1123. tmp_value.all = value;
  1124. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1125. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00_vbusdet_pdn] --> 0x%08x\n",
  1126. REG_USB_PHY_UTMI_REG_00,value);
  1127. #endif
  1128. return tmp_value.bitc.vbusdet_pdn;
  1129. }
  1130. GH_INLINE void GH_USB_PHY_set_UTMI_REG_00_iref_pdn(U8 data)
  1131. {
  1132. GH_USB_PHY_UTMI_REG_00_S d;
  1133. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_00;
  1134. d.bitc.iref_pdn = data;
  1135. *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = d.all;
  1136. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1137. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00_iref_pdn] <-- 0x%08x\n",
  1138. REG_USB_PHY_UTMI_REG_00,d.all,d.all);
  1139. #endif
  1140. }
  1141. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_00_iref_pdn(void)
  1142. {
  1143. GH_USB_PHY_UTMI_REG_00_S tmp_value;
  1144. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
  1145. tmp_value.all = value;
  1146. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1147. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00_iref_pdn] --> 0x%08x\n",
  1148. REG_USB_PHY_UTMI_REG_00,value);
  1149. #endif
  1150. return tmp_value.bitc.iref_pdn;
  1151. }
  1152. GH_INLINE void GH_USB_PHY_set_UTMI_REG_00_pdn(U8 data)
  1153. {
  1154. GH_USB_PHY_UTMI_REG_00_S d;
  1155. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_00;
  1156. d.bitc.pdn = data;
  1157. *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = d.all;
  1158. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1159. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00_pdn] <-- 0x%08x\n",
  1160. REG_USB_PHY_UTMI_REG_00,d.all,d.all);
  1161. #endif
  1162. }
  1163. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_00_pdn(void)
  1164. {
  1165. GH_USB_PHY_UTMI_REG_00_S tmp_value;
  1166. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
  1167. tmp_value.all = value;
  1168. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1169. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00_pdn] --> 0x%08x\n",
  1170. REG_USB_PHY_UTMI_REG_00,value);
  1171. #endif
  1172. return tmp_value.bitc.pdn;
  1173. }
  1174. #endif /* GH_INLINE_LEVEL == 0 */
  1175. /*----------------------------------------------------------------------------*/
  1176. /* register USB_PHY_UTMI_REG_01 (read/write) */
  1177. /*----------------------------------------------------------------------------*/
  1178. #if GH_INLINE_LEVEL == 0
  1179. /*! \brief Writes the register 'USB_PHY_UTMI_REG_01'. */
  1180. void GH_USB_PHY_set_UTMI_REG_01(U16 data);
  1181. /*! \brief Reads the register 'USB_PHY_UTMI_REG_01'. */
  1182. U16 GH_USB_PHY_get_UTMI_REG_01(void);
  1183. /*! \brief Writes the bit group 'sel_override' of register 'USB_PHY_UTMI_REG_01'. */
  1184. void GH_USB_PHY_set_UTMI_REG_01_sel_override(U8 data);
  1185. /*! \brief Reads the bit group 'sel_override' of register 'USB_PHY_UTMI_REG_01'. */
  1186. U8 GH_USB_PHY_get_UTMI_REG_01_sel_override(void);
  1187. /*! \brief Writes the bit group 'fsls_sel' of register 'USB_PHY_UTMI_REG_01'. */
  1188. void GH_USB_PHY_set_UTMI_REG_01_fsls_sel(U8 data);
  1189. /*! \brief Reads the bit group 'fsls_sel' of register 'USB_PHY_UTMI_REG_01'. */
  1190. U8 GH_USB_PHY_get_UTMI_REG_01_fsls_sel(void);
  1191. /*! \brief Writes the bit group 'clk12_sel' of register 'USB_PHY_UTMI_REG_01'. */
  1192. void GH_USB_PHY_set_UTMI_REG_01_clk12_sel(U8 data);
  1193. /*! \brief Reads the bit group 'clk12_sel' of register 'USB_PHY_UTMI_REG_01'. */
  1194. U8 GH_USB_PHY_get_UTMI_REG_01_clk12_sel(void);
  1195. /*! \brief Writes the bit group 'nrzi_en' of register 'USB_PHY_UTMI_REG_01'. */
  1196. void GH_USB_PHY_set_UTMI_REG_01_nrzi_en(U8 data);
  1197. /*! \brief Reads the bit group 'nrzi_en' of register 'USB_PHY_UTMI_REG_01'. */
  1198. U8 GH_USB_PHY_get_UTMI_REG_01_nrzi_en(void);
  1199. /*! \brief Writes the bit group 'bitstuff_en' of register 'USB_PHY_UTMI_REG_01'. */
  1200. void GH_USB_PHY_set_UTMI_REG_01_bitstuff_en(U8 data);
  1201. /*! \brief Reads the bit group 'bitstuff_en' of register 'USB_PHY_UTMI_REG_01'. */
  1202. U8 GH_USB_PHY_get_UTMI_REG_01_bitstuff_en(void);
  1203. /*! \brief Writes the bit group 'fl_lowimode' of register 'USB_PHY_UTMI_REG_01'. */
  1204. void GH_USB_PHY_set_UTMI_REG_01_fl_lowimode(U8 data);
  1205. /*! \brief Reads the bit group 'fl_lowimode' of register 'USB_PHY_UTMI_REG_01'. */
  1206. U8 GH_USB_PHY_get_UTMI_REG_01_fl_lowimode(void);
  1207. /*! \brief Writes the bit group 'hs_tx_ten' of register 'USB_PHY_UTMI_REG_01'. */
  1208. void GH_USB_PHY_set_UTMI_REG_01_hs_tx_ten(U8 data);
  1209. /*! \brief Reads the bit group 'hs_tx_ten' of register 'USB_PHY_UTMI_REG_01'. */
  1210. U8 GH_USB_PHY_get_UTMI_REG_01_hs_tx_ten(void);
  1211. /*! \brief Writes the bit group 'bond_sel' of register 'USB_PHY_UTMI_REG_01'. */
  1212. void GH_USB_PHY_set_UTMI_REG_01_bond_sel(U8 data);
  1213. /*! \brief Reads the bit group 'bond_sel' of register 'USB_PHY_UTMI_REG_01'. */
  1214. U8 GH_USB_PHY_get_UTMI_REG_01_bond_sel(void);
  1215. /*! \brief Writes the bit group 'bitstuff_override' of register 'USB_PHY_UTMI_REG_01'. */
  1216. void GH_USB_PHY_set_UTMI_REG_01_bitstuff_override(U8 data);
  1217. /*! \brief Reads the bit group 'bitstuff_override' of register 'USB_PHY_UTMI_REG_01'. */
  1218. U8 GH_USB_PHY_get_UTMI_REG_01_bitstuff_override(void);
  1219. /*! \brief Writes the bit group 'nrzi_override' of register 'USB_PHY_UTMI_REG_01'. */
  1220. void GH_USB_PHY_set_UTMI_REG_01_nrzi_override(U8 data);
  1221. /*! \brief Reads the bit group 'nrzi_override' of register 'USB_PHY_UTMI_REG_01'. */
  1222. U8 GH_USB_PHY_get_UTMI_REG_01_nrzi_override(void);
  1223. /*! \brief Writes the bit group 'fl_sel_override' of register 'USB_PHY_UTMI_REG_01'. */
  1224. void GH_USB_PHY_set_UTMI_REG_01_fl_sel_override(U8 data);
  1225. /*! \brief Reads the bit group 'fl_sel_override' of register 'USB_PHY_UTMI_REG_01'. */
  1226. U8 GH_USB_PHY_get_UTMI_REG_01_fl_sel_override(void);
  1227. /*! \brief Writes the bit group 'eop40_det_delay_cnt' of register 'USB_PHY_UTMI_REG_01'. */
  1228. void GH_USB_PHY_set_UTMI_REG_01_eop40_det_delay_cnt(U8 data);
  1229. /*! \brief Reads the bit group 'eop40_det_delay_cnt' of register 'USB_PHY_UTMI_REG_01'. */
  1230. U8 GH_USB_PHY_get_UTMI_REG_01_eop40_det_delay_cnt(void);
  1231. /*! \brief Writes the bit group 'linestate_sel' of register 'USB_PHY_UTMI_REG_01'. */
  1232. void GH_USB_PHY_set_UTMI_REG_01_linestate_sel(U8 data);
  1233. /*! \brief Reads the bit group 'linestate_sel' of register 'USB_PHY_UTMI_REG_01'. */
  1234. U8 GH_USB_PHY_get_UTMI_REG_01_linestate_sel(void);
  1235. /*! \brief Writes the bit group 'hs_rterm_pdn' of register 'USB_PHY_UTMI_REG_01'. */
  1236. void GH_USB_PHY_set_UTMI_REG_01_hs_rterm_pdn(U8 data);
  1237. /*! \brief Reads the bit group 'hs_rterm_pdn' of register 'USB_PHY_UTMI_REG_01'. */
  1238. U8 GH_USB_PHY_get_UTMI_REG_01_hs_rterm_pdn(void);
  1239. #else /* GH_INLINE_LEVEL == 0 */
  1240. GH_INLINE void GH_USB_PHY_set_UTMI_REG_01(U16 data)
  1241. {
  1242. *(volatile U16 *)REG_USB_PHY_UTMI_REG_01 = data;
  1243. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1244. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_01] <-- 0x%08x\n",
  1245. REG_USB_PHY_UTMI_REG_01,data,data);
  1246. #endif
  1247. }
  1248. GH_INLINE U16 GH_USB_PHY_get_UTMI_REG_01(void)
  1249. {
  1250. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_01);
  1251. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1252. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_01] --> 0x%08x\n",
  1253. REG_USB_PHY_UTMI_REG_01,value);
  1254. #endif
  1255. return value;
  1256. }
  1257. GH_INLINE void GH_USB_PHY_set_UTMI_REG_01_sel_override(U8 data)
  1258. {
  1259. GH_USB_PHY_UTMI_REG_01_S d;
  1260. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_01;
  1261. d.bitc.sel_override = data;
  1262. *(volatile U16 *)REG_USB_PHY_UTMI_REG_01 = d.all;
  1263. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1264. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_01_sel_override] <-- 0x%08x\n",
  1265. REG_USB_PHY_UTMI_REG_01,d.all,d.all);
  1266. #endif
  1267. }
  1268. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_01_sel_override(void)
  1269. {
  1270. GH_USB_PHY_UTMI_REG_01_S tmp_value;
  1271. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_01);
  1272. tmp_value.all = value;
  1273. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1274. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_01_sel_override] --> 0x%08x\n",
  1275. REG_USB_PHY_UTMI_REG_01,value);
  1276. #endif
  1277. return tmp_value.bitc.sel_override;
  1278. }
  1279. GH_INLINE void GH_USB_PHY_set_UTMI_REG_01_fsls_sel(U8 data)
  1280. {
  1281. GH_USB_PHY_UTMI_REG_01_S d;
  1282. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_01;
  1283. d.bitc.fsls_sel = data;
  1284. *(volatile U16 *)REG_USB_PHY_UTMI_REG_01 = d.all;
  1285. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1286. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_01_fsls_sel] <-- 0x%08x\n",
  1287. REG_USB_PHY_UTMI_REG_01,d.all,d.all);
  1288. #endif
  1289. }
  1290. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_01_fsls_sel(void)
  1291. {
  1292. GH_USB_PHY_UTMI_REG_01_S tmp_value;
  1293. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_01);
  1294. tmp_value.all = value;
  1295. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1296. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_01_fsls_sel] --> 0x%08x\n",
  1297. REG_USB_PHY_UTMI_REG_01,value);
  1298. #endif
  1299. return tmp_value.bitc.fsls_sel;
  1300. }
  1301. GH_INLINE void GH_USB_PHY_set_UTMI_REG_01_clk12_sel(U8 data)
  1302. {
  1303. GH_USB_PHY_UTMI_REG_01_S d;
  1304. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_01;
  1305. d.bitc.clk12_sel = data;
  1306. *(volatile U16 *)REG_USB_PHY_UTMI_REG_01 = d.all;
  1307. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1308. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_01_clk12_sel] <-- 0x%08x\n",
  1309. REG_USB_PHY_UTMI_REG_01,d.all,d.all);
  1310. #endif
  1311. }
  1312. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_01_clk12_sel(void)
  1313. {
  1314. GH_USB_PHY_UTMI_REG_01_S tmp_value;
  1315. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_01);
  1316. tmp_value.all = value;
  1317. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1318. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_01_clk12_sel] --> 0x%08x\n",
  1319. REG_USB_PHY_UTMI_REG_01,value);
  1320. #endif
  1321. return tmp_value.bitc.clk12_sel;
  1322. }
  1323. GH_INLINE void GH_USB_PHY_set_UTMI_REG_01_nrzi_en(U8 data)
  1324. {
  1325. GH_USB_PHY_UTMI_REG_01_S d;
  1326. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_01;
  1327. d.bitc.nrzi_en = data;
  1328. *(volatile U16 *)REG_USB_PHY_UTMI_REG_01 = d.all;
  1329. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1330. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_01_nrzi_en] <-- 0x%08x\n",
  1331. REG_USB_PHY_UTMI_REG_01,d.all,d.all);
  1332. #endif
  1333. }
  1334. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_01_nrzi_en(void)
  1335. {
  1336. GH_USB_PHY_UTMI_REG_01_S tmp_value;
  1337. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_01);
  1338. tmp_value.all = value;
  1339. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1340. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_01_nrzi_en] --> 0x%08x\n",
  1341. REG_USB_PHY_UTMI_REG_01,value);
  1342. #endif
  1343. return tmp_value.bitc.nrzi_en;
  1344. }
  1345. GH_INLINE void GH_USB_PHY_set_UTMI_REG_01_bitstuff_en(U8 data)
  1346. {
  1347. GH_USB_PHY_UTMI_REG_01_S d;
  1348. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_01;
  1349. d.bitc.bitstuff_en = data;
  1350. *(volatile U16 *)REG_USB_PHY_UTMI_REG_01 = d.all;
  1351. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1352. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_01_bitstuff_en] <-- 0x%08x\n",
  1353. REG_USB_PHY_UTMI_REG_01,d.all,d.all);
  1354. #endif
  1355. }
  1356. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_01_bitstuff_en(void)
  1357. {
  1358. GH_USB_PHY_UTMI_REG_01_S tmp_value;
  1359. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_01);
  1360. tmp_value.all = value;
  1361. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1362. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_01_bitstuff_en] --> 0x%08x\n",
  1363. REG_USB_PHY_UTMI_REG_01,value);
  1364. #endif
  1365. return tmp_value.bitc.bitstuff_en;
  1366. }
  1367. GH_INLINE void GH_USB_PHY_set_UTMI_REG_01_fl_lowimode(U8 data)
  1368. {
  1369. GH_USB_PHY_UTMI_REG_01_S d;
  1370. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_01;
  1371. d.bitc.fl_lowimode = data;
  1372. *(volatile U16 *)REG_USB_PHY_UTMI_REG_01 = d.all;
  1373. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1374. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_01_fl_lowimode] <-- 0x%08x\n",
  1375. REG_USB_PHY_UTMI_REG_01,d.all,d.all);
  1376. #endif
  1377. }
  1378. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_01_fl_lowimode(void)
  1379. {
  1380. GH_USB_PHY_UTMI_REG_01_S tmp_value;
  1381. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_01);
  1382. tmp_value.all = value;
  1383. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1384. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_01_fl_lowimode] --> 0x%08x\n",
  1385. REG_USB_PHY_UTMI_REG_01,value);
  1386. #endif
  1387. return tmp_value.bitc.fl_lowimode;
  1388. }
  1389. GH_INLINE void GH_USB_PHY_set_UTMI_REG_01_hs_tx_ten(U8 data)
  1390. {
  1391. GH_USB_PHY_UTMI_REG_01_S d;
  1392. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_01;
  1393. d.bitc.hs_tx_ten = data;
  1394. *(volatile U16 *)REG_USB_PHY_UTMI_REG_01 = d.all;
  1395. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1396. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_01_hs_tx_ten] <-- 0x%08x\n",
  1397. REG_USB_PHY_UTMI_REG_01,d.all,d.all);
  1398. #endif
  1399. }
  1400. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_01_hs_tx_ten(void)
  1401. {
  1402. GH_USB_PHY_UTMI_REG_01_S tmp_value;
  1403. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_01);
  1404. tmp_value.all = value;
  1405. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1406. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_01_hs_tx_ten] --> 0x%08x\n",
  1407. REG_USB_PHY_UTMI_REG_01,value);
  1408. #endif
  1409. return tmp_value.bitc.hs_tx_ten;
  1410. }
  1411. GH_INLINE void GH_USB_PHY_set_UTMI_REG_01_bond_sel(U8 data)
  1412. {
  1413. GH_USB_PHY_UTMI_REG_01_S d;
  1414. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_01;
  1415. d.bitc.bond_sel = data;
  1416. *(volatile U16 *)REG_USB_PHY_UTMI_REG_01 = d.all;
  1417. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1418. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_01_bond_sel] <-- 0x%08x\n",
  1419. REG_USB_PHY_UTMI_REG_01,d.all,d.all);
  1420. #endif
  1421. }
  1422. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_01_bond_sel(void)
  1423. {
  1424. GH_USB_PHY_UTMI_REG_01_S tmp_value;
  1425. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_01);
  1426. tmp_value.all = value;
  1427. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1428. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_01_bond_sel] --> 0x%08x\n",
  1429. REG_USB_PHY_UTMI_REG_01,value);
  1430. #endif
  1431. return tmp_value.bitc.bond_sel;
  1432. }
  1433. GH_INLINE void GH_USB_PHY_set_UTMI_REG_01_bitstuff_override(U8 data)
  1434. {
  1435. GH_USB_PHY_UTMI_REG_01_S d;
  1436. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_01;
  1437. d.bitc.bitstuff_override = data;
  1438. *(volatile U16 *)REG_USB_PHY_UTMI_REG_01 = d.all;
  1439. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1440. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_01_bitstuff_override] <-- 0x%08x\n",
  1441. REG_USB_PHY_UTMI_REG_01,d.all,d.all);
  1442. #endif
  1443. }
  1444. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_01_bitstuff_override(void)
  1445. {
  1446. GH_USB_PHY_UTMI_REG_01_S tmp_value;
  1447. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_01);
  1448. tmp_value.all = value;
  1449. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1450. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_01_bitstuff_override] --> 0x%08x\n",
  1451. REG_USB_PHY_UTMI_REG_01,value);
  1452. #endif
  1453. return tmp_value.bitc.bitstuff_override;
  1454. }
  1455. GH_INLINE void GH_USB_PHY_set_UTMI_REG_01_nrzi_override(U8 data)
  1456. {
  1457. GH_USB_PHY_UTMI_REG_01_S d;
  1458. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_01;
  1459. d.bitc.nrzi_override = data;
  1460. *(volatile U16 *)REG_USB_PHY_UTMI_REG_01 = d.all;
  1461. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1462. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_01_nrzi_override] <-- 0x%08x\n",
  1463. REG_USB_PHY_UTMI_REG_01,d.all,d.all);
  1464. #endif
  1465. }
  1466. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_01_nrzi_override(void)
  1467. {
  1468. GH_USB_PHY_UTMI_REG_01_S tmp_value;
  1469. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_01);
  1470. tmp_value.all = value;
  1471. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1472. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_01_nrzi_override] --> 0x%08x\n",
  1473. REG_USB_PHY_UTMI_REG_01,value);
  1474. #endif
  1475. return tmp_value.bitc.nrzi_override;
  1476. }
  1477. GH_INLINE void GH_USB_PHY_set_UTMI_REG_01_fl_sel_override(U8 data)
  1478. {
  1479. GH_USB_PHY_UTMI_REG_01_S d;
  1480. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_01;
  1481. d.bitc.fl_sel_override = data;
  1482. *(volatile U16 *)REG_USB_PHY_UTMI_REG_01 = d.all;
  1483. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1484. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_01_fl_sel_override] <-- 0x%08x\n",
  1485. REG_USB_PHY_UTMI_REG_01,d.all,d.all);
  1486. #endif
  1487. }
  1488. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_01_fl_sel_override(void)
  1489. {
  1490. GH_USB_PHY_UTMI_REG_01_S tmp_value;
  1491. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_01);
  1492. tmp_value.all = value;
  1493. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1494. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_01_fl_sel_override] --> 0x%08x\n",
  1495. REG_USB_PHY_UTMI_REG_01,value);
  1496. #endif
  1497. return tmp_value.bitc.fl_sel_override;
  1498. }
  1499. GH_INLINE void GH_USB_PHY_set_UTMI_REG_01_eop40_det_delay_cnt(U8 data)
  1500. {
  1501. GH_USB_PHY_UTMI_REG_01_S d;
  1502. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_01;
  1503. d.bitc.eop40_det_delay_cnt = data;
  1504. *(volatile U16 *)REG_USB_PHY_UTMI_REG_01 = d.all;
  1505. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1506. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_01_eop40_det_delay_cnt] <-- 0x%08x\n",
  1507. REG_USB_PHY_UTMI_REG_01,d.all,d.all);
  1508. #endif
  1509. }
  1510. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_01_eop40_det_delay_cnt(void)
  1511. {
  1512. GH_USB_PHY_UTMI_REG_01_S tmp_value;
  1513. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_01);
  1514. tmp_value.all = value;
  1515. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1516. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_01_eop40_det_delay_cnt] --> 0x%08x\n",
  1517. REG_USB_PHY_UTMI_REG_01,value);
  1518. #endif
  1519. return tmp_value.bitc.eop40_det_delay_cnt;
  1520. }
  1521. GH_INLINE void GH_USB_PHY_set_UTMI_REG_01_linestate_sel(U8 data)
  1522. {
  1523. GH_USB_PHY_UTMI_REG_01_S d;
  1524. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_01;
  1525. d.bitc.linestate_sel = data;
  1526. *(volatile U16 *)REG_USB_PHY_UTMI_REG_01 = d.all;
  1527. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1528. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_01_linestate_sel] <-- 0x%08x\n",
  1529. REG_USB_PHY_UTMI_REG_01,d.all,d.all);
  1530. #endif
  1531. }
  1532. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_01_linestate_sel(void)
  1533. {
  1534. GH_USB_PHY_UTMI_REG_01_S tmp_value;
  1535. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_01);
  1536. tmp_value.all = value;
  1537. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1538. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_01_linestate_sel] --> 0x%08x\n",
  1539. REG_USB_PHY_UTMI_REG_01,value);
  1540. #endif
  1541. return tmp_value.bitc.linestate_sel;
  1542. }
  1543. GH_INLINE void GH_USB_PHY_set_UTMI_REG_01_hs_rterm_pdn(U8 data)
  1544. {
  1545. GH_USB_PHY_UTMI_REG_01_S d;
  1546. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_01;
  1547. d.bitc.hs_rterm_pdn = data;
  1548. *(volatile U16 *)REG_USB_PHY_UTMI_REG_01 = d.all;
  1549. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1550. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_01_hs_rterm_pdn] <-- 0x%08x\n",
  1551. REG_USB_PHY_UTMI_REG_01,d.all,d.all);
  1552. #endif
  1553. }
  1554. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_01_hs_rterm_pdn(void)
  1555. {
  1556. GH_USB_PHY_UTMI_REG_01_S tmp_value;
  1557. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_01);
  1558. tmp_value.all = value;
  1559. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1560. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_01_hs_rterm_pdn] --> 0x%08x\n",
  1561. REG_USB_PHY_UTMI_REG_01,value);
  1562. #endif
  1563. return tmp_value.bitc.hs_rterm_pdn;
  1564. }
  1565. #endif /* GH_INLINE_LEVEL == 0 */
  1566. /*----------------------------------------------------------------------------*/
  1567. /* register USB_PHY_UTMI_REG_02 (read/write) */
  1568. /*----------------------------------------------------------------------------*/
  1569. #if GH_INLINE_LEVEL == 0
  1570. /*! \brief Writes the register 'USB_PHY_UTMI_REG_02'. */
  1571. void GH_USB_PHY_set_UTMI_REG_02(U16 data);
  1572. /*! \brief Reads the register 'USB_PHY_UTMI_REG_02'. */
  1573. U16 GH_USB_PHY_get_UTMI_REG_02(void);
  1574. /*! \brief Writes the bit group 'hs_tx_en_chip' of register 'USB_PHY_UTMI_REG_02'. */
  1575. void GH_USB_PHY_set_UTMI_REG_02_hs_tx_en_chip(U8 data);
  1576. /*! \brief Reads the bit group 'hs_tx_en_chip' of register 'USB_PHY_UTMI_REG_02'. */
  1577. U8 GH_USB_PHY_get_UTMI_REG_02_hs_tx_en_chip(void);
  1578. /*! \brief Writes the bit group 'hs_tx_en_sw' of register 'USB_PHY_UTMI_REG_02'. */
  1579. void GH_USB_PHY_set_UTMI_REG_02_hs_tx_en_sw(U8 data);
  1580. /*! \brief Reads the bit group 'hs_tx_en_sw' of register 'USB_PHY_UTMI_REG_02'. */
  1581. U8 GH_USB_PHY_get_UTMI_REG_02_hs_tx_en_sw(void);
  1582. /*! \brief Writes the bit group 'dummy' of register 'USB_PHY_UTMI_REG_02'. */
  1583. void GH_USB_PHY_set_UTMI_REG_02_dummy(U8 data);
  1584. /*! \brief Reads the bit group 'dummy' of register 'USB_PHY_UTMI_REG_02'. */
  1585. U8 GH_USB_PHY_get_UTMI_REG_02_dummy(void);
  1586. /*! \brief Writes the bit group 'tx_in_sel_multi_phase' of register 'USB_PHY_UTMI_REG_02'. */
  1587. void GH_USB_PHY_set_UTMI_REG_02_tx_in_sel_multi_phase(U8 data);
  1588. /*! \brief Reads the bit group 'tx_in_sel_multi_phase' of register 'USB_PHY_UTMI_REG_02'. */
  1589. U8 GH_USB_PHY_get_UTMI_REG_02_tx_in_sel_multi_phase(void);
  1590. /*! \brief Writes the bit group 'tx_out_sel_multi_phase' of register 'USB_PHY_UTMI_REG_02'. */
  1591. void GH_USB_PHY_set_UTMI_REG_02_tx_out_sel_multi_phase(U8 data);
  1592. /*! \brief Reads the bit group 'tx_out_sel_multi_phase' of register 'USB_PHY_UTMI_REG_02'. */
  1593. U8 GH_USB_PHY_get_UTMI_REG_02_tx_out_sel_multi_phase(void);
  1594. /*! \brief Writes the bit group 'utmi_tx_wait_cnt' of register 'USB_PHY_UTMI_REG_02'. */
  1595. void GH_USB_PHY_set_UTMI_REG_02_utmi_tx_wait_cnt(U8 data);
  1596. /*! \brief Reads the bit group 'utmi_tx_wait_cnt' of register 'USB_PHY_UTMI_REG_02'. */
  1597. U8 GH_USB_PHY_get_UTMI_REG_02_utmi_tx_wait_cnt(void);
  1598. #else /* GH_INLINE_LEVEL == 0 */
  1599. GH_INLINE void GH_USB_PHY_set_UTMI_REG_02(U16 data)
  1600. {
  1601. *(volatile U16 *)REG_USB_PHY_UTMI_REG_02 = data;
  1602. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1603. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_02] <-- 0x%08x\n",
  1604. REG_USB_PHY_UTMI_REG_02,data,data);
  1605. #endif
  1606. }
  1607. GH_INLINE U16 GH_USB_PHY_get_UTMI_REG_02(void)
  1608. {
  1609. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_02);
  1610. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1611. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_02] --> 0x%08x\n",
  1612. REG_USB_PHY_UTMI_REG_02,value);
  1613. #endif
  1614. return value;
  1615. }
  1616. GH_INLINE void GH_USB_PHY_set_UTMI_REG_02_hs_tx_en_chip(U8 data)
  1617. {
  1618. GH_USB_PHY_UTMI_REG_02_S d;
  1619. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_02;
  1620. d.bitc.hs_tx_en_chip = data;
  1621. *(volatile U16 *)REG_USB_PHY_UTMI_REG_02 = d.all;
  1622. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1623. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_02_hs_tx_en_chip] <-- 0x%08x\n",
  1624. REG_USB_PHY_UTMI_REG_02,d.all,d.all);
  1625. #endif
  1626. }
  1627. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_02_hs_tx_en_chip(void)
  1628. {
  1629. GH_USB_PHY_UTMI_REG_02_S tmp_value;
  1630. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_02);
  1631. tmp_value.all = value;
  1632. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1633. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_02_hs_tx_en_chip] --> 0x%08x\n",
  1634. REG_USB_PHY_UTMI_REG_02,value);
  1635. #endif
  1636. return tmp_value.bitc.hs_tx_en_chip;
  1637. }
  1638. GH_INLINE void GH_USB_PHY_set_UTMI_REG_02_hs_tx_en_sw(U8 data)
  1639. {
  1640. GH_USB_PHY_UTMI_REG_02_S d;
  1641. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_02;
  1642. d.bitc.hs_tx_en_sw = data;
  1643. *(volatile U16 *)REG_USB_PHY_UTMI_REG_02 = d.all;
  1644. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1645. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_02_hs_tx_en_sw] <-- 0x%08x\n",
  1646. REG_USB_PHY_UTMI_REG_02,d.all,d.all);
  1647. #endif
  1648. }
  1649. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_02_hs_tx_en_sw(void)
  1650. {
  1651. GH_USB_PHY_UTMI_REG_02_S tmp_value;
  1652. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_02);
  1653. tmp_value.all = value;
  1654. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1655. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_02_hs_tx_en_sw] --> 0x%08x\n",
  1656. REG_USB_PHY_UTMI_REG_02,value);
  1657. #endif
  1658. return tmp_value.bitc.hs_tx_en_sw;
  1659. }
  1660. GH_INLINE void GH_USB_PHY_set_UTMI_REG_02_dummy(U8 data)
  1661. {
  1662. GH_USB_PHY_UTMI_REG_02_S d;
  1663. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_02;
  1664. d.bitc.dummy = data;
  1665. *(volatile U16 *)REG_USB_PHY_UTMI_REG_02 = d.all;
  1666. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1667. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_02_dummy] <-- 0x%08x\n",
  1668. REG_USB_PHY_UTMI_REG_02,d.all,d.all);
  1669. #endif
  1670. }
  1671. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_02_dummy(void)
  1672. {
  1673. GH_USB_PHY_UTMI_REG_02_S tmp_value;
  1674. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_02);
  1675. tmp_value.all = value;
  1676. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1677. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_02_dummy] --> 0x%08x\n",
  1678. REG_USB_PHY_UTMI_REG_02,value);
  1679. #endif
  1680. return tmp_value.bitc.dummy;
  1681. }
  1682. GH_INLINE void GH_USB_PHY_set_UTMI_REG_02_tx_in_sel_multi_phase(U8 data)
  1683. {
  1684. GH_USB_PHY_UTMI_REG_02_S d;
  1685. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_02;
  1686. d.bitc.tx_in_sel_multi_phase = data;
  1687. *(volatile U16 *)REG_USB_PHY_UTMI_REG_02 = d.all;
  1688. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1689. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_02_tx_in_sel_multi_phase] <-- 0x%08x\n",
  1690. REG_USB_PHY_UTMI_REG_02,d.all,d.all);
  1691. #endif
  1692. }
  1693. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_02_tx_in_sel_multi_phase(void)
  1694. {
  1695. GH_USB_PHY_UTMI_REG_02_S tmp_value;
  1696. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_02);
  1697. tmp_value.all = value;
  1698. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1699. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_02_tx_in_sel_multi_phase] --> 0x%08x\n",
  1700. REG_USB_PHY_UTMI_REG_02,value);
  1701. #endif
  1702. return tmp_value.bitc.tx_in_sel_multi_phase;
  1703. }
  1704. GH_INLINE void GH_USB_PHY_set_UTMI_REG_02_tx_out_sel_multi_phase(U8 data)
  1705. {
  1706. GH_USB_PHY_UTMI_REG_02_S d;
  1707. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_02;
  1708. d.bitc.tx_out_sel_multi_phase = data;
  1709. *(volatile U16 *)REG_USB_PHY_UTMI_REG_02 = d.all;
  1710. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1711. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_02_tx_out_sel_multi_phase] <-- 0x%08x\n",
  1712. REG_USB_PHY_UTMI_REG_02,d.all,d.all);
  1713. #endif
  1714. }
  1715. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_02_tx_out_sel_multi_phase(void)
  1716. {
  1717. GH_USB_PHY_UTMI_REG_02_S tmp_value;
  1718. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_02);
  1719. tmp_value.all = value;
  1720. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1721. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_02_tx_out_sel_multi_phase] --> 0x%08x\n",
  1722. REG_USB_PHY_UTMI_REG_02,value);
  1723. #endif
  1724. return tmp_value.bitc.tx_out_sel_multi_phase;
  1725. }
  1726. GH_INLINE void GH_USB_PHY_set_UTMI_REG_02_utmi_tx_wait_cnt(U8 data)
  1727. {
  1728. GH_USB_PHY_UTMI_REG_02_S d;
  1729. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_02;
  1730. d.bitc.utmi_tx_wait_cnt = data;
  1731. *(volatile U16 *)REG_USB_PHY_UTMI_REG_02 = d.all;
  1732. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1733. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_02_utmi_tx_wait_cnt] <-- 0x%08x\n",
  1734. REG_USB_PHY_UTMI_REG_02,d.all,d.all);
  1735. #endif
  1736. }
  1737. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_02_utmi_tx_wait_cnt(void)
  1738. {
  1739. GH_USB_PHY_UTMI_REG_02_S tmp_value;
  1740. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_02);
  1741. tmp_value.all = value;
  1742. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1743. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_02_utmi_tx_wait_cnt] --> 0x%08x\n",
  1744. REG_USB_PHY_UTMI_REG_02,value);
  1745. #endif
  1746. return tmp_value.bitc.utmi_tx_wait_cnt;
  1747. }
  1748. #endif /* GH_INLINE_LEVEL == 0 */
  1749. /*----------------------------------------------------------------------------*/
  1750. /* register USB_PHY_UTMI_REG_03 (read/write) */
  1751. /*----------------------------------------------------------------------------*/
  1752. #if GH_INLINE_LEVEL == 0
  1753. /*! \brief Writes the register 'USB_PHY_UTMI_REG_03'. */
  1754. void GH_USB_PHY_set_UTMI_REG_03(U16 data);
  1755. /*! \brief Reads the register 'USB_PHY_UTMI_REG_03'. */
  1756. U16 GH_USB_PHY_get_UTMI_REG_03(void);
  1757. /*! \brief Writes the bit group 'rx_swreset' of register 'USB_PHY_UTMI_REG_03'. */
  1758. void GH_USB_PHY_set_UTMI_REG_03_rx_swreset(U8 data);
  1759. /*! \brief Reads the bit group 'rx_swreset' of register 'USB_PHY_UTMI_REG_03'. */
  1760. U8 GH_USB_PHY_get_UTMI_REG_03_rx_swreset(void);
  1761. /*! \brief Writes the bit group 'utmi_tx_sw_reset' of register 'USB_PHY_UTMI_REG_03'. */
  1762. void GH_USB_PHY_set_UTMI_REG_03_utmi_tx_sw_reset(U8 data);
  1763. /*! \brief Reads the bit group 'utmi_tx_sw_reset' of register 'USB_PHY_UTMI_REG_03'. */
  1764. U8 GH_USB_PHY_get_UTMI_REG_03_utmi_tx_sw_reset(void);
  1765. /*! \brief Writes the bit group 'tx_force_hs_current_enable' of register 'USB_PHY_UTMI_REG_03'. */
  1766. void GH_USB_PHY_set_UTMI_REG_03_tx_force_hs_current_enable(U8 data);
  1767. /*! \brief Reads the bit group 'tx_force_hs_current_enable' of register 'USB_PHY_UTMI_REG_03'. */
  1768. U8 GH_USB_PHY_get_UTMI_REG_03_tx_force_hs_current_enable(void);
  1769. /*! \brief Writes the bit group 'tx_fl_early_4' of register 'USB_PHY_UTMI_REG_03'. */
  1770. void GH_USB_PHY_set_UTMI_REG_03_tx_fl_early_4(U8 data);
  1771. /*! \brief Reads the bit group 'tx_fl_early_4' of register 'USB_PHY_UTMI_REG_03'. */
  1772. U8 GH_USB_PHY_get_UTMI_REG_03_tx_fl_early_4(void);
  1773. /*! \brief Writes the bit group 'tx_fl_latency_delay_1' of register 'USB_PHY_UTMI_REG_03'. */
  1774. void GH_USB_PHY_set_UTMI_REG_03_tx_fl_latency_delay_1(U8 data);
  1775. /*! \brief Reads the bit group 'tx_fl_latency_delay_1' of register 'USB_PHY_UTMI_REG_03'. */
  1776. U8 GH_USB_PHY_get_UTMI_REG_03_tx_fl_latency_delay_1(void);
  1777. /*! \brief Writes the bit group 'hs_stage_select' of register 'USB_PHY_UTMI_REG_03'. */
  1778. void GH_USB_PHY_set_UTMI_REG_03_hs_stage_select(U8 data);
  1779. /*! \brief Reads the bit group 'hs_stage_select' of register 'USB_PHY_UTMI_REG_03'. */
  1780. U8 GH_USB_PHY_get_UTMI_REG_03_hs_stage_select(void);
  1781. /*! \brief Writes the bit group 'otg_dual_role' of register 'USB_PHY_UTMI_REG_03'. */
  1782. void GH_USB_PHY_set_UTMI_REG_03_otg_dual_role(U8 data);
  1783. /*! \brief Reads the bit group 'otg_dual_role' of register 'USB_PHY_UTMI_REG_03'. */
  1784. U8 GH_USB_PHY_get_UTMI_REG_03_otg_dual_role(void);
  1785. /*! \brief Writes the bit group 'tx_reset_fsm' of register 'USB_PHY_UTMI_REG_03'. */
  1786. void GH_USB_PHY_set_UTMI_REG_03_tx_reset_fsm(U8 data);
  1787. /*! \brief Reads the bit group 'tx_reset_fsm' of register 'USB_PHY_UTMI_REG_03'. */
  1788. U8 GH_USB_PHY_get_UTMI_REG_03_tx_reset_fsm(void);
  1789. /*! \brief Writes the bit group 'cdr_mode_sel' of register 'USB_PHY_UTMI_REG_03'. */
  1790. void GH_USB_PHY_set_UTMI_REG_03_cdr_mode_sel(U8 data);
  1791. /*! \brief Reads the bit group 'cdr_mode_sel' of register 'USB_PHY_UTMI_REG_03'. */
  1792. U8 GH_USB_PHY_get_UTMI_REG_03_cdr_mode_sel(void);
  1793. /*! \brief Writes the bit group 'tx_reserved' of register 'USB_PHY_UTMI_REG_03'. */
  1794. void GH_USB_PHY_set_UTMI_REG_03_tx_reserved(U8 data);
  1795. /*! \brief Reads the bit group 'tx_reserved' of register 'USB_PHY_UTMI_REG_03'. */
  1796. U8 GH_USB_PHY_get_UTMI_REG_03_tx_reserved(void);
  1797. /*! \brief Writes the bit group 'vbusdet_test' of register 'USB_PHY_UTMI_REG_03'. */
  1798. void GH_USB_PHY_set_UTMI_REG_03_vbusdet_test(U8 data);
  1799. /*! \brief Reads the bit group 'vbusdet_test' of register 'USB_PHY_UTMI_REG_03'. */
  1800. U8 GH_USB_PHY_get_UTMI_REG_03_vbusdet_test(void);
  1801. #else /* GH_INLINE_LEVEL == 0 */
  1802. GH_INLINE void GH_USB_PHY_set_UTMI_REG_03(U16 data)
  1803. {
  1804. *(volatile U16 *)REG_USB_PHY_UTMI_REG_03 = data;
  1805. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1806. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_03] <-- 0x%08x\n",
  1807. REG_USB_PHY_UTMI_REG_03,data,data);
  1808. #endif
  1809. }
  1810. GH_INLINE U16 GH_USB_PHY_get_UTMI_REG_03(void)
  1811. {
  1812. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_03);
  1813. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1814. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_03] --> 0x%08x\n",
  1815. REG_USB_PHY_UTMI_REG_03,value);
  1816. #endif
  1817. return value;
  1818. }
  1819. GH_INLINE void GH_USB_PHY_set_UTMI_REG_03_rx_swreset(U8 data)
  1820. {
  1821. GH_USB_PHY_UTMI_REG_03_S d;
  1822. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_03;
  1823. d.bitc.rx_swreset = data;
  1824. *(volatile U16 *)REG_USB_PHY_UTMI_REG_03 = d.all;
  1825. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1826. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_03_rx_swreset] <-- 0x%08x\n",
  1827. REG_USB_PHY_UTMI_REG_03,d.all,d.all);
  1828. #endif
  1829. }
  1830. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_03_rx_swreset(void)
  1831. {
  1832. GH_USB_PHY_UTMI_REG_03_S tmp_value;
  1833. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_03);
  1834. tmp_value.all = value;
  1835. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1836. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_03_rx_swreset] --> 0x%08x\n",
  1837. REG_USB_PHY_UTMI_REG_03,value);
  1838. #endif
  1839. return tmp_value.bitc.rx_swreset;
  1840. }
  1841. GH_INLINE void GH_USB_PHY_set_UTMI_REG_03_utmi_tx_sw_reset(U8 data)
  1842. {
  1843. GH_USB_PHY_UTMI_REG_03_S d;
  1844. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_03;
  1845. d.bitc.utmi_tx_sw_reset = data;
  1846. *(volatile U16 *)REG_USB_PHY_UTMI_REG_03 = d.all;
  1847. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1848. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_03_utmi_tx_sw_reset] <-- 0x%08x\n",
  1849. REG_USB_PHY_UTMI_REG_03,d.all,d.all);
  1850. #endif
  1851. }
  1852. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_03_utmi_tx_sw_reset(void)
  1853. {
  1854. GH_USB_PHY_UTMI_REG_03_S tmp_value;
  1855. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_03);
  1856. tmp_value.all = value;
  1857. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1858. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_03_utmi_tx_sw_reset] --> 0x%08x\n",
  1859. REG_USB_PHY_UTMI_REG_03,value);
  1860. #endif
  1861. return tmp_value.bitc.utmi_tx_sw_reset;
  1862. }
  1863. GH_INLINE void GH_USB_PHY_set_UTMI_REG_03_tx_force_hs_current_enable(U8 data)
  1864. {
  1865. GH_USB_PHY_UTMI_REG_03_S d;
  1866. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_03;
  1867. d.bitc.tx_force_hs_current_enable = data;
  1868. *(volatile U16 *)REG_USB_PHY_UTMI_REG_03 = d.all;
  1869. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1870. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_03_tx_force_hs_current_enable] <-- 0x%08x\n",
  1871. REG_USB_PHY_UTMI_REG_03,d.all,d.all);
  1872. #endif
  1873. }
  1874. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_03_tx_force_hs_current_enable(void)
  1875. {
  1876. GH_USB_PHY_UTMI_REG_03_S tmp_value;
  1877. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_03);
  1878. tmp_value.all = value;
  1879. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1880. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_03_tx_force_hs_current_enable] --> 0x%08x\n",
  1881. REG_USB_PHY_UTMI_REG_03,value);
  1882. #endif
  1883. return tmp_value.bitc.tx_force_hs_current_enable;
  1884. }
  1885. GH_INLINE void GH_USB_PHY_set_UTMI_REG_03_tx_fl_early_4(U8 data)
  1886. {
  1887. GH_USB_PHY_UTMI_REG_03_S d;
  1888. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_03;
  1889. d.bitc.tx_fl_early_4 = data;
  1890. *(volatile U16 *)REG_USB_PHY_UTMI_REG_03 = d.all;
  1891. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1892. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_03_tx_fl_early_4] <-- 0x%08x\n",
  1893. REG_USB_PHY_UTMI_REG_03,d.all,d.all);
  1894. #endif
  1895. }
  1896. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_03_tx_fl_early_4(void)
  1897. {
  1898. GH_USB_PHY_UTMI_REG_03_S tmp_value;
  1899. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_03);
  1900. tmp_value.all = value;
  1901. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1902. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_03_tx_fl_early_4] --> 0x%08x\n",
  1903. REG_USB_PHY_UTMI_REG_03,value);
  1904. #endif
  1905. return tmp_value.bitc.tx_fl_early_4;
  1906. }
  1907. GH_INLINE void GH_USB_PHY_set_UTMI_REG_03_tx_fl_latency_delay_1(U8 data)
  1908. {
  1909. GH_USB_PHY_UTMI_REG_03_S d;
  1910. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_03;
  1911. d.bitc.tx_fl_latency_delay_1 = data;
  1912. *(volatile U16 *)REG_USB_PHY_UTMI_REG_03 = d.all;
  1913. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1914. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_03_tx_fl_latency_delay_1] <-- 0x%08x\n",
  1915. REG_USB_PHY_UTMI_REG_03,d.all,d.all);
  1916. #endif
  1917. }
  1918. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_03_tx_fl_latency_delay_1(void)
  1919. {
  1920. GH_USB_PHY_UTMI_REG_03_S tmp_value;
  1921. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_03);
  1922. tmp_value.all = value;
  1923. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1924. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_03_tx_fl_latency_delay_1] --> 0x%08x\n",
  1925. REG_USB_PHY_UTMI_REG_03,value);
  1926. #endif
  1927. return tmp_value.bitc.tx_fl_latency_delay_1;
  1928. }
  1929. GH_INLINE void GH_USB_PHY_set_UTMI_REG_03_hs_stage_select(U8 data)
  1930. {
  1931. GH_USB_PHY_UTMI_REG_03_S d;
  1932. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_03;
  1933. d.bitc.hs_stage_select = data;
  1934. *(volatile U16 *)REG_USB_PHY_UTMI_REG_03 = d.all;
  1935. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1936. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_03_hs_stage_select] <-- 0x%08x\n",
  1937. REG_USB_PHY_UTMI_REG_03,d.all,d.all);
  1938. #endif
  1939. }
  1940. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_03_hs_stage_select(void)
  1941. {
  1942. GH_USB_PHY_UTMI_REG_03_S tmp_value;
  1943. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_03);
  1944. tmp_value.all = value;
  1945. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1946. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_03_hs_stage_select] --> 0x%08x\n",
  1947. REG_USB_PHY_UTMI_REG_03,value);
  1948. #endif
  1949. return tmp_value.bitc.hs_stage_select;
  1950. }
  1951. GH_INLINE void GH_USB_PHY_set_UTMI_REG_03_otg_dual_role(U8 data)
  1952. {
  1953. GH_USB_PHY_UTMI_REG_03_S d;
  1954. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_03;
  1955. d.bitc.otg_dual_role = data;
  1956. *(volatile U16 *)REG_USB_PHY_UTMI_REG_03 = d.all;
  1957. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1958. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_03_otg_dual_role] <-- 0x%08x\n",
  1959. REG_USB_PHY_UTMI_REG_03,d.all,d.all);
  1960. #endif
  1961. }
  1962. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_03_otg_dual_role(void)
  1963. {
  1964. GH_USB_PHY_UTMI_REG_03_S tmp_value;
  1965. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_03);
  1966. tmp_value.all = value;
  1967. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1968. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_03_otg_dual_role] --> 0x%08x\n",
  1969. REG_USB_PHY_UTMI_REG_03,value);
  1970. #endif
  1971. return tmp_value.bitc.otg_dual_role;
  1972. }
  1973. GH_INLINE void GH_USB_PHY_set_UTMI_REG_03_tx_reset_fsm(U8 data)
  1974. {
  1975. GH_USB_PHY_UTMI_REG_03_S d;
  1976. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_03;
  1977. d.bitc.tx_reset_fsm = data;
  1978. *(volatile U16 *)REG_USB_PHY_UTMI_REG_03 = d.all;
  1979. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1980. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_03_tx_reset_fsm] <-- 0x%08x\n",
  1981. REG_USB_PHY_UTMI_REG_03,d.all,d.all);
  1982. #endif
  1983. }
  1984. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_03_tx_reset_fsm(void)
  1985. {
  1986. GH_USB_PHY_UTMI_REG_03_S tmp_value;
  1987. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_03);
  1988. tmp_value.all = value;
  1989. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  1990. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_03_tx_reset_fsm] --> 0x%08x\n",
  1991. REG_USB_PHY_UTMI_REG_03,value);
  1992. #endif
  1993. return tmp_value.bitc.tx_reset_fsm;
  1994. }
  1995. GH_INLINE void GH_USB_PHY_set_UTMI_REG_03_cdr_mode_sel(U8 data)
  1996. {
  1997. GH_USB_PHY_UTMI_REG_03_S d;
  1998. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_03;
  1999. d.bitc.cdr_mode_sel = data;
  2000. *(volatile U16 *)REG_USB_PHY_UTMI_REG_03 = d.all;
  2001. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2002. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_03_cdr_mode_sel] <-- 0x%08x\n",
  2003. REG_USB_PHY_UTMI_REG_03,d.all,d.all);
  2004. #endif
  2005. }
  2006. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_03_cdr_mode_sel(void)
  2007. {
  2008. GH_USB_PHY_UTMI_REG_03_S tmp_value;
  2009. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_03);
  2010. tmp_value.all = value;
  2011. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2012. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_03_cdr_mode_sel] --> 0x%08x\n",
  2013. REG_USB_PHY_UTMI_REG_03,value);
  2014. #endif
  2015. return tmp_value.bitc.cdr_mode_sel;
  2016. }
  2017. GH_INLINE void GH_USB_PHY_set_UTMI_REG_03_tx_reserved(U8 data)
  2018. {
  2019. GH_USB_PHY_UTMI_REG_03_S d;
  2020. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_03;
  2021. d.bitc.tx_reserved = data;
  2022. *(volatile U16 *)REG_USB_PHY_UTMI_REG_03 = d.all;
  2023. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2024. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_03_tx_reserved] <-- 0x%08x\n",
  2025. REG_USB_PHY_UTMI_REG_03,d.all,d.all);
  2026. #endif
  2027. }
  2028. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_03_tx_reserved(void)
  2029. {
  2030. GH_USB_PHY_UTMI_REG_03_S tmp_value;
  2031. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_03);
  2032. tmp_value.all = value;
  2033. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2034. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_03_tx_reserved] --> 0x%08x\n",
  2035. REG_USB_PHY_UTMI_REG_03,value);
  2036. #endif
  2037. return tmp_value.bitc.tx_reserved;
  2038. }
  2039. GH_INLINE void GH_USB_PHY_set_UTMI_REG_03_vbusdet_test(U8 data)
  2040. {
  2041. GH_USB_PHY_UTMI_REG_03_S d;
  2042. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_03;
  2043. d.bitc.vbusdet_test = data;
  2044. *(volatile U16 *)REG_USB_PHY_UTMI_REG_03 = d.all;
  2045. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2046. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_03_vbusdet_test] <-- 0x%08x\n",
  2047. REG_USB_PHY_UTMI_REG_03,d.all,d.all);
  2048. #endif
  2049. }
  2050. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_03_vbusdet_test(void)
  2051. {
  2052. GH_USB_PHY_UTMI_REG_03_S tmp_value;
  2053. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_03);
  2054. tmp_value.all = value;
  2055. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2056. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_03_vbusdet_test] --> 0x%08x\n",
  2057. REG_USB_PHY_UTMI_REG_03,value);
  2058. #endif
  2059. return tmp_value.bitc.vbusdet_test;
  2060. }
  2061. #endif /* GH_INLINE_LEVEL == 0 */
  2062. /*----------------------------------------------------------------------------*/
  2063. /* register USB_PHY_UTMI_REG_04 (read/write) */
  2064. /*----------------------------------------------------------------------------*/
  2065. #if GH_INLINE_LEVEL == 0
  2066. /*! \brief Writes the register 'USB_PHY_UTMI_REG_04'. */
  2067. void GH_USB_PHY_set_UTMI_REG_04(U16 data);
  2068. /*! \brief Reads the register 'USB_PHY_UTMI_REG_04'. */
  2069. U16 GH_USB_PHY_get_UTMI_REG_04(void);
  2070. /*! \brief Writes the bit group 'utmi_clk_en' of register 'USB_PHY_UTMI_REG_04'. */
  2071. void GH_USB_PHY_set_UTMI_REG_04_utmi_clk_en(U8 data);
  2072. /*! \brief Reads the bit group 'utmi_clk_en' of register 'USB_PHY_UTMI_REG_04'. */
  2073. U8 GH_USB_PHY_get_UTMI_REG_04_utmi_clk_en(void);
  2074. /*! \brief Writes the bit group 'utmi_clk120_en' of register 'USB_PHY_UTMI_REG_04'. */
  2075. void GH_USB_PHY_set_UTMI_REG_04_utmi_clk120_en(U8 data);
  2076. /*! \brief Reads the bit group 'utmi_clk120_en' of register 'USB_PHY_UTMI_REG_04'. */
  2077. U8 GH_USB_PHY_get_UTMI_REG_04_utmi_clk120_en(void);
  2078. /*! \brief Writes the bit group 'clktest_en' of register 'USB_PHY_UTMI_REG_04'. */
  2079. void GH_USB_PHY_set_UTMI_REG_04_clktest_en(U8 data);
  2080. /*! \brief Reads the bit group 'clktest_en' of register 'USB_PHY_UTMI_REG_04'. */
  2081. U8 GH_USB_PHY_get_UTMI_REG_04_clktest_en(void);
  2082. /*! \brief Writes the bit group 'clk_extra_0_en' of register 'USB_PHY_UTMI_REG_04'. */
  2083. void GH_USB_PHY_set_UTMI_REG_04_clk_extra_0_en(U8 data);
  2084. /*! \brief Reads the bit group 'clk_extra_0_en' of register 'USB_PHY_UTMI_REG_04'. */
  2085. U8 GH_USB_PHY_get_UTMI_REG_04_clk_extra_0_en(void);
  2086. /*! \brief Writes the bit group 'clk_extra_1_en' of register 'USB_PHY_UTMI_REG_04'. */
  2087. void GH_USB_PHY_set_UTMI_REG_04_clk_extra_1_en(U8 data);
  2088. /*! \brief Reads the bit group 'clk_extra_1_en' of register 'USB_PHY_UTMI_REG_04'. */
  2089. U8 GH_USB_PHY_get_UTMI_REG_04_clk_extra_1_en(void);
  2090. /*! \brief Writes the bit group 'xtal12_en' of register 'USB_PHY_UTMI_REG_04'. */
  2091. void GH_USB_PHY_set_UTMI_REG_04_xtal12_en(U8 data);
  2092. /*! \brief Reads the bit group 'xtal12_en' of register 'USB_PHY_UTMI_REG_04'. */
  2093. U8 GH_USB_PHY_get_UTMI_REG_04_xtal12_en(void);
  2094. /*! \brief Writes the bit group 'clk_ctl_override' of register 'USB_PHY_UTMI_REG_04'. */
  2095. void GH_USB_PHY_set_UTMI_REG_04_clk_ctl_override(U8 data);
  2096. /*! \brief Reads the bit group 'clk_ctl_override' of register 'USB_PHY_UTMI_REG_04'. */
  2097. U8 GH_USB_PHY_get_UTMI_REG_04_clk_ctl_override(void);
  2098. /*! \brief Writes the bit group 'force_pll_on' of register 'USB_PHY_UTMI_REG_04'. */
  2099. void GH_USB_PHY_set_UTMI_REG_04_force_pll_on(U8 data);
  2100. /*! \brief Reads the bit group 'force_pll_on' of register 'USB_PHY_UTMI_REG_04'. */
  2101. U8 GH_USB_PHY_get_UTMI_REG_04_force_pll_on(void);
  2102. /*! \brief Writes the bit group 'ck214_syn_en' of register 'USB_PHY_UTMI_REG_04'. */
  2103. void GH_USB_PHY_set_UTMI_REG_04_ck214_syn_en(U8 data);
  2104. /*! \brief Reads the bit group 'ck214_syn_en' of register 'USB_PHY_UTMI_REG_04'. */
  2105. U8 GH_USB_PHY_get_UTMI_REG_04_ck214_syn_en(void);
  2106. /*! \brief Writes the bit group 'clk_274_en' of register 'USB_PHY_UTMI_REG_04'. */
  2107. void GH_USB_PHY_set_UTMI_REG_04_clk_274_en(U8 data);
  2108. /*! \brief Reads the bit group 'clk_274_en' of register 'USB_PHY_UTMI_REG_04'. */
  2109. U8 GH_USB_PHY_get_UTMI_REG_04_clk_274_en(void);
  2110. /*! \brief Writes the bit group 'hs_rx_roboust_en' of register 'USB_PHY_UTMI_REG_04'. */
  2111. void GH_USB_PHY_set_UTMI_REG_04_hs_rx_roboust_en(U8 data);
  2112. /*! \brief Reads the bit group 'hs_rx_roboust_en' of register 'USB_PHY_UTMI_REG_04'. */
  2113. U8 GH_USB_PHY_get_UTMI_REG_04_hs_rx_roboust_en(void);
  2114. #else /* GH_INLINE_LEVEL == 0 */
  2115. GH_INLINE void GH_USB_PHY_set_UTMI_REG_04(U16 data)
  2116. {
  2117. *(volatile U16 *)REG_USB_PHY_UTMI_REG_04 = data;
  2118. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2119. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_04] <-- 0x%08x\n",
  2120. REG_USB_PHY_UTMI_REG_04,data,data);
  2121. #endif
  2122. }
  2123. GH_INLINE U16 GH_USB_PHY_get_UTMI_REG_04(void)
  2124. {
  2125. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_04);
  2126. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2127. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_04] --> 0x%08x\n",
  2128. REG_USB_PHY_UTMI_REG_04,value);
  2129. #endif
  2130. return value;
  2131. }
  2132. GH_INLINE void GH_USB_PHY_set_UTMI_REG_04_utmi_clk_en(U8 data)
  2133. {
  2134. GH_USB_PHY_UTMI_REG_04_S d;
  2135. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_04;
  2136. d.bitc.utmi_clk_en = data;
  2137. *(volatile U16 *)REG_USB_PHY_UTMI_REG_04 = d.all;
  2138. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2139. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_04_utmi_clk_en] <-- 0x%08x\n",
  2140. REG_USB_PHY_UTMI_REG_04,d.all,d.all);
  2141. #endif
  2142. }
  2143. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_04_utmi_clk_en(void)
  2144. {
  2145. GH_USB_PHY_UTMI_REG_04_S tmp_value;
  2146. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_04);
  2147. tmp_value.all = value;
  2148. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2149. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_04_utmi_clk_en] --> 0x%08x\n",
  2150. REG_USB_PHY_UTMI_REG_04,value);
  2151. #endif
  2152. return tmp_value.bitc.utmi_clk_en;
  2153. }
  2154. GH_INLINE void GH_USB_PHY_set_UTMI_REG_04_utmi_clk120_en(U8 data)
  2155. {
  2156. GH_USB_PHY_UTMI_REG_04_S d;
  2157. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_04;
  2158. d.bitc.utmi_clk120_en = data;
  2159. *(volatile U16 *)REG_USB_PHY_UTMI_REG_04 = d.all;
  2160. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2161. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_04_utmi_clk120_en] <-- 0x%08x\n",
  2162. REG_USB_PHY_UTMI_REG_04,d.all,d.all);
  2163. #endif
  2164. }
  2165. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_04_utmi_clk120_en(void)
  2166. {
  2167. GH_USB_PHY_UTMI_REG_04_S tmp_value;
  2168. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_04);
  2169. tmp_value.all = value;
  2170. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2171. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_04_utmi_clk120_en] --> 0x%08x\n",
  2172. REG_USB_PHY_UTMI_REG_04,value);
  2173. #endif
  2174. return tmp_value.bitc.utmi_clk120_en;
  2175. }
  2176. GH_INLINE void GH_USB_PHY_set_UTMI_REG_04_clktest_en(U8 data)
  2177. {
  2178. GH_USB_PHY_UTMI_REG_04_S d;
  2179. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_04;
  2180. d.bitc.clktest_en = data;
  2181. *(volatile U16 *)REG_USB_PHY_UTMI_REG_04 = d.all;
  2182. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2183. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_04_clktest_en] <-- 0x%08x\n",
  2184. REG_USB_PHY_UTMI_REG_04,d.all,d.all);
  2185. #endif
  2186. }
  2187. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_04_clktest_en(void)
  2188. {
  2189. GH_USB_PHY_UTMI_REG_04_S tmp_value;
  2190. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_04);
  2191. tmp_value.all = value;
  2192. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2193. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_04_clktest_en] --> 0x%08x\n",
  2194. REG_USB_PHY_UTMI_REG_04,value);
  2195. #endif
  2196. return tmp_value.bitc.clktest_en;
  2197. }
  2198. GH_INLINE void GH_USB_PHY_set_UTMI_REG_04_clk_extra_0_en(U8 data)
  2199. {
  2200. GH_USB_PHY_UTMI_REG_04_S d;
  2201. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_04;
  2202. d.bitc.clk_extra_0_en = data;
  2203. *(volatile U16 *)REG_USB_PHY_UTMI_REG_04 = d.all;
  2204. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2205. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_04_clk_extra_0_en] <-- 0x%08x\n",
  2206. REG_USB_PHY_UTMI_REG_04,d.all,d.all);
  2207. #endif
  2208. }
  2209. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_04_clk_extra_0_en(void)
  2210. {
  2211. GH_USB_PHY_UTMI_REG_04_S tmp_value;
  2212. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_04);
  2213. tmp_value.all = value;
  2214. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2215. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_04_clk_extra_0_en] --> 0x%08x\n",
  2216. REG_USB_PHY_UTMI_REG_04,value);
  2217. #endif
  2218. return tmp_value.bitc.clk_extra_0_en;
  2219. }
  2220. GH_INLINE void GH_USB_PHY_set_UTMI_REG_04_clk_extra_1_en(U8 data)
  2221. {
  2222. GH_USB_PHY_UTMI_REG_04_S d;
  2223. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_04;
  2224. d.bitc.clk_extra_1_en = data;
  2225. *(volatile U16 *)REG_USB_PHY_UTMI_REG_04 = d.all;
  2226. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2227. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_04_clk_extra_1_en] <-- 0x%08x\n",
  2228. REG_USB_PHY_UTMI_REG_04,d.all,d.all);
  2229. #endif
  2230. }
  2231. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_04_clk_extra_1_en(void)
  2232. {
  2233. GH_USB_PHY_UTMI_REG_04_S tmp_value;
  2234. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_04);
  2235. tmp_value.all = value;
  2236. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2237. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_04_clk_extra_1_en] --> 0x%08x\n",
  2238. REG_USB_PHY_UTMI_REG_04,value);
  2239. #endif
  2240. return tmp_value.bitc.clk_extra_1_en;
  2241. }
  2242. GH_INLINE void GH_USB_PHY_set_UTMI_REG_04_xtal12_en(U8 data)
  2243. {
  2244. GH_USB_PHY_UTMI_REG_04_S d;
  2245. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_04;
  2246. d.bitc.xtal12_en = data;
  2247. *(volatile U16 *)REG_USB_PHY_UTMI_REG_04 = d.all;
  2248. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2249. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_04_xtal12_en] <-- 0x%08x\n",
  2250. REG_USB_PHY_UTMI_REG_04,d.all,d.all);
  2251. #endif
  2252. }
  2253. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_04_xtal12_en(void)
  2254. {
  2255. GH_USB_PHY_UTMI_REG_04_S tmp_value;
  2256. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_04);
  2257. tmp_value.all = value;
  2258. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2259. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_04_xtal12_en] --> 0x%08x\n",
  2260. REG_USB_PHY_UTMI_REG_04,value);
  2261. #endif
  2262. return tmp_value.bitc.xtal12_en;
  2263. }
  2264. GH_INLINE void GH_USB_PHY_set_UTMI_REG_04_clk_ctl_override(U8 data)
  2265. {
  2266. GH_USB_PHY_UTMI_REG_04_S d;
  2267. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_04;
  2268. d.bitc.clk_ctl_override = data;
  2269. *(volatile U16 *)REG_USB_PHY_UTMI_REG_04 = d.all;
  2270. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2271. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_04_clk_ctl_override] <-- 0x%08x\n",
  2272. REG_USB_PHY_UTMI_REG_04,d.all,d.all);
  2273. #endif
  2274. }
  2275. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_04_clk_ctl_override(void)
  2276. {
  2277. GH_USB_PHY_UTMI_REG_04_S tmp_value;
  2278. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_04);
  2279. tmp_value.all = value;
  2280. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2281. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_04_clk_ctl_override] --> 0x%08x\n",
  2282. REG_USB_PHY_UTMI_REG_04,value);
  2283. #endif
  2284. return tmp_value.bitc.clk_ctl_override;
  2285. }
  2286. GH_INLINE void GH_USB_PHY_set_UTMI_REG_04_force_pll_on(U8 data)
  2287. {
  2288. GH_USB_PHY_UTMI_REG_04_S d;
  2289. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_04;
  2290. d.bitc.force_pll_on = data;
  2291. *(volatile U16 *)REG_USB_PHY_UTMI_REG_04 = d.all;
  2292. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2293. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_04_force_pll_on] <-- 0x%08x\n",
  2294. REG_USB_PHY_UTMI_REG_04,d.all,d.all);
  2295. #endif
  2296. }
  2297. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_04_force_pll_on(void)
  2298. {
  2299. GH_USB_PHY_UTMI_REG_04_S tmp_value;
  2300. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_04);
  2301. tmp_value.all = value;
  2302. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2303. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_04_force_pll_on] --> 0x%08x\n",
  2304. REG_USB_PHY_UTMI_REG_04,value);
  2305. #endif
  2306. return tmp_value.bitc.force_pll_on;
  2307. }
  2308. GH_INLINE void GH_USB_PHY_set_UTMI_REG_04_ck214_syn_en(U8 data)
  2309. {
  2310. GH_USB_PHY_UTMI_REG_04_S d;
  2311. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_04;
  2312. d.bitc.ck214_syn_en = data;
  2313. *(volatile U16 *)REG_USB_PHY_UTMI_REG_04 = d.all;
  2314. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2315. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_04_ck214_syn_en] <-- 0x%08x\n",
  2316. REG_USB_PHY_UTMI_REG_04,d.all,d.all);
  2317. #endif
  2318. }
  2319. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_04_ck214_syn_en(void)
  2320. {
  2321. GH_USB_PHY_UTMI_REG_04_S tmp_value;
  2322. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_04);
  2323. tmp_value.all = value;
  2324. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2325. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_04_ck214_syn_en] --> 0x%08x\n",
  2326. REG_USB_PHY_UTMI_REG_04,value);
  2327. #endif
  2328. return tmp_value.bitc.ck214_syn_en;
  2329. }
  2330. GH_INLINE void GH_USB_PHY_set_UTMI_REG_04_clk_274_en(U8 data)
  2331. {
  2332. GH_USB_PHY_UTMI_REG_04_S d;
  2333. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_04;
  2334. d.bitc.clk_274_en = data;
  2335. *(volatile U16 *)REG_USB_PHY_UTMI_REG_04 = d.all;
  2336. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2337. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_04_clk_274_en] <-- 0x%08x\n",
  2338. REG_USB_PHY_UTMI_REG_04,d.all,d.all);
  2339. #endif
  2340. }
  2341. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_04_clk_274_en(void)
  2342. {
  2343. GH_USB_PHY_UTMI_REG_04_S tmp_value;
  2344. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_04);
  2345. tmp_value.all = value;
  2346. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2347. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_04_clk_274_en] --> 0x%08x\n",
  2348. REG_USB_PHY_UTMI_REG_04,value);
  2349. #endif
  2350. return tmp_value.bitc.clk_274_en;
  2351. }
  2352. GH_INLINE void GH_USB_PHY_set_UTMI_REG_04_hs_rx_roboust_en(U8 data)
  2353. {
  2354. GH_USB_PHY_UTMI_REG_04_S d;
  2355. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_04;
  2356. d.bitc.hs_rx_roboust_en = data;
  2357. *(volatile U16 *)REG_USB_PHY_UTMI_REG_04 = d.all;
  2358. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2359. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_04_hs_rx_roboust_en] <-- 0x%08x\n",
  2360. REG_USB_PHY_UTMI_REG_04,d.all,d.all);
  2361. #endif
  2362. }
  2363. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_04_hs_rx_roboust_en(void)
  2364. {
  2365. GH_USB_PHY_UTMI_REG_04_S tmp_value;
  2366. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_04);
  2367. tmp_value.all = value;
  2368. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2369. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_04_hs_rx_roboust_en] --> 0x%08x\n",
  2370. REG_USB_PHY_UTMI_REG_04,value);
  2371. #endif
  2372. return tmp_value.bitc.hs_rx_roboust_en;
  2373. }
  2374. #endif /* GH_INLINE_LEVEL == 0 */
  2375. /*----------------------------------------------------------------------------*/
  2376. /* register USB_PHY_UTMI_REG_05 (read/write) */
  2377. /*----------------------------------------------------------------------------*/
  2378. #if GH_INLINE_LEVEL == 0
  2379. /*! \brief Writes the register 'USB_PHY_UTMI_REG_05'. */
  2380. void GH_USB_PHY_set_UTMI_REG_05(U16 data);
  2381. /*! \brief Reads the register 'USB_PHY_UTMI_REG_05'. */
  2382. U16 GH_USB_PHY_get_UTMI_REG_05(void);
  2383. /*! \brief Writes the bit group 'utmi_clk_inv' of register 'USB_PHY_UTMI_REG_05'. */
  2384. void GH_USB_PHY_set_UTMI_REG_05_utmi_clk_inv(U8 data);
  2385. /*! \brief Reads the bit group 'utmi_clk_inv' of register 'USB_PHY_UTMI_REG_05'. */
  2386. U8 GH_USB_PHY_get_UTMI_REG_05_utmi_clk_inv(void);
  2387. /*! \brief Writes the bit group 'utmi_clk120_inv' of register 'USB_PHY_UTMI_REG_05'. */
  2388. void GH_USB_PHY_set_UTMI_REG_05_utmi_clk120_inv(U8 data);
  2389. /*! \brief Reads the bit group 'utmi_clk120_inv' of register 'USB_PHY_UTMI_REG_05'. */
  2390. U8 GH_USB_PHY_get_UTMI_REG_05_utmi_clk120_inv(void);
  2391. /*! \brief Writes the bit group 'dummy1' of register 'USB_PHY_UTMI_REG_05'. */
  2392. void GH_USB_PHY_set_UTMI_REG_05_dummy1(U8 data);
  2393. /*! \brief Reads the bit group 'dummy1' of register 'USB_PHY_UTMI_REG_05'. */
  2394. U8 GH_USB_PHY_get_UTMI_REG_05_dummy1(void);
  2395. /*! \brief Writes the bit group 'clktest_inv' of register 'USB_PHY_UTMI_REG_05'. */
  2396. void GH_USB_PHY_set_UTMI_REG_05_clktest_inv(U8 data);
  2397. /*! \brief Reads the bit group 'clktest_inv' of register 'USB_PHY_UTMI_REG_05'. */
  2398. U8 GH_USB_PHY_get_UTMI_REG_05_clktest_inv(void);
  2399. /*! \brief Writes the bit group 'clk_extra_0_inv' of register 'USB_PHY_UTMI_REG_05'. */
  2400. void GH_USB_PHY_set_UTMI_REG_05_clk_extra_0_inv(U8 data);
  2401. /*! \brief Reads the bit group 'clk_extra_0_inv' of register 'USB_PHY_UTMI_REG_05'. */
  2402. U8 GH_USB_PHY_get_UTMI_REG_05_clk_extra_0_inv(void);
  2403. /*! \brief Writes the bit group 'clk_extra_1_inv' of register 'USB_PHY_UTMI_REG_05'. */
  2404. void GH_USB_PHY_set_UTMI_REG_05_clk_extra_1_inv(U8 data);
  2405. /*! \brief Reads the bit group 'clk_extra_1_inv' of register 'USB_PHY_UTMI_REG_05'. */
  2406. U8 GH_USB_PHY_get_UTMI_REG_05_clk_extra_1_inv(void);
  2407. /*! \brief Writes the bit group 'ck_inv_reserved' of register 'USB_PHY_UTMI_REG_05'. */
  2408. void GH_USB_PHY_set_UTMI_REG_05_ck_inv_reserved(U8 data);
  2409. /*! \brief Reads the bit group 'ck_inv_reserved' of register 'USB_PHY_UTMI_REG_05'. */
  2410. U8 GH_USB_PHY_get_UTMI_REG_05_ck_inv_reserved(void);
  2411. #else /* GH_INLINE_LEVEL == 0 */
  2412. GH_INLINE void GH_USB_PHY_set_UTMI_REG_05(U16 data)
  2413. {
  2414. *(volatile U16 *)REG_USB_PHY_UTMI_REG_05 = data;
  2415. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2416. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_05] <-- 0x%08x\n",
  2417. REG_USB_PHY_UTMI_REG_05,data,data);
  2418. #endif
  2419. }
  2420. GH_INLINE U16 GH_USB_PHY_get_UTMI_REG_05(void)
  2421. {
  2422. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_05);
  2423. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2424. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_05] --> 0x%08x\n",
  2425. REG_USB_PHY_UTMI_REG_05,value);
  2426. #endif
  2427. return value;
  2428. }
  2429. GH_INLINE void GH_USB_PHY_set_UTMI_REG_05_utmi_clk_inv(U8 data)
  2430. {
  2431. GH_USB_PHY_UTMI_REG_05_S d;
  2432. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_05;
  2433. d.bitc.utmi_clk_inv = data;
  2434. *(volatile U16 *)REG_USB_PHY_UTMI_REG_05 = d.all;
  2435. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2436. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_05_utmi_clk_inv] <-- 0x%08x\n",
  2437. REG_USB_PHY_UTMI_REG_05,d.all,d.all);
  2438. #endif
  2439. }
  2440. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_05_utmi_clk_inv(void)
  2441. {
  2442. GH_USB_PHY_UTMI_REG_05_S tmp_value;
  2443. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_05);
  2444. tmp_value.all = value;
  2445. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2446. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_05_utmi_clk_inv] --> 0x%08x\n",
  2447. REG_USB_PHY_UTMI_REG_05,value);
  2448. #endif
  2449. return tmp_value.bitc.utmi_clk_inv;
  2450. }
  2451. GH_INLINE void GH_USB_PHY_set_UTMI_REG_05_utmi_clk120_inv(U8 data)
  2452. {
  2453. GH_USB_PHY_UTMI_REG_05_S d;
  2454. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_05;
  2455. d.bitc.utmi_clk120_inv = data;
  2456. *(volatile U16 *)REG_USB_PHY_UTMI_REG_05 = d.all;
  2457. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2458. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_05_utmi_clk120_inv] <-- 0x%08x\n",
  2459. REG_USB_PHY_UTMI_REG_05,d.all,d.all);
  2460. #endif
  2461. }
  2462. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_05_utmi_clk120_inv(void)
  2463. {
  2464. GH_USB_PHY_UTMI_REG_05_S tmp_value;
  2465. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_05);
  2466. tmp_value.all = value;
  2467. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2468. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_05_utmi_clk120_inv] --> 0x%08x\n",
  2469. REG_USB_PHY_UTMI_REG_05,value);
  2470. #endif
  2471. return tmp_value.bitc.utmi_clk120_inv;
  2472. }
  2473. GH_INLINE void GH_USB_PHY_set_UTMI_REG_05_dummy1(U8 data)
  2474. {
  2475. GH_USB_PHY_UTMI_REG_05_S d;
  2476. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_05;
  2477. d.bitc.dummy1 = data;
  2478. *(volatile U16 *)REG_USB_PHY_UTMI_REG_05 = d.all;
  2479. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2480. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_05_dummy1] <-- 0x%08x\n",
  2481. REG_USB_PHY_UTMI_REG_05,d.all,d.all);
  2482. #endif
  2483. }
  2484. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_05_dummy1(void)
  2485. {
  2486. GH_USB_PHY_UTMI_REG_05_S tmp_value;
  2487. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_05);
  2488. tmp_value.all = value;
  2489. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2490. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_05_dummy1] --> 0x%08x\n",
  2491. REG_USB_PHY_UTMI_REG_05,value);
  2492. #endif
  2493. return tmp_value.bitc.dummy1;
  2494. }
  2495. GH_INLINE void GH_USB_PHY_set_UTMI_REG_05_clktest_inv(U8 data)
  2496. {
  2497. GH_USB_PHY_UTMI_REG_05_S d;
  2498. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_05;
  2499. d.bitc.clktest_inv = data;
  2500. *(volatile U16 *)REG_USB_PHY_UTMI_REG_05 = d.all;
  2501. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2502. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_05_clktest_inv] <-- 0x%08x\n",
  2503. REG_USB_PHY_UTMI_REG_05,d.all,d.all);
  2504. #endif
  2505. }
  2506. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_05_clktest_inv(void)
  2507. {
  2508. GH_USB_PHY_UTMI_REG_05_S tmp_value;
  2509. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_05);
  2510. tmp_value.all = value;
  2511. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2512. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_05_clktest_inv] --> 0x%08x\n",
  2513. REG_USB_PHY_UTMI_REG_05,value);
  2514. #endif
  2515. return tmp_value.bitc.clktest_inv;
  2516. }
  2517. GH_INLINE void GH_USB_PHY_set_UTMI_REG_05_clk_extra_0_inv(U8 data)
  2518. {
  2519. GH_USB_PHY_UTMI_REG_05_S d;
  2520. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_05;
  2521. d.bitc.clk_extra_0_inv = data;
  2522. *(volatile U16 *)REG_USB_PHY_UTMI_REG_05 = d.all;
  2523. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2524. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_05_clk_extra_0_inv] <-- 0x%08x\n",
  2525. REG_USB_PHY_UTMI_REG_05,d.all,d.all);
  2526. #endif
  2527. }
  2528. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_05_clk_extra_0_inv(void)
  2529. {
  2530. GH_USB_PHY_UTMI_REG_05_S tmp_value;
  2531. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_05);
  2532. tmp_value.all = value;
  2533. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2534. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_05_clk_extra_0_inv] --> 0x%08x\n",
  2535. REG_USB_PHY_UTMI_REG_05,value);
  2536. #endif
  2537. return tmp_value.bitc.clk_extra_0_inv;
  2538. }
  2539. GH_INLINE void GH_USB_PHY_set_UTMI_REG_05_clk_extra_1_inv(U8 data)
  2540. {
  2541. GH_USB_PHY_UTMI_REG_05_S d;
  2542. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_05;
  2543. d.bitc.clk_extra_1_inv = data;
  2544. *(volatile U16 *)REG_USB_PHY_UTMI_REG_05 = d.all;
  2545. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2546. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_05_clk_extra_1_inv] <-- 0x%08x\n",
  2547. REG_USB_PHY_UTMI_REG_05,d.all,d.all);
  2548. #endif
  2549. }
  2550. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_05_clk_extra_1_inv(void)
  2551. {
  2552. GH_USB_PHY_UTMI_REG_05_S tmp_value;
  2553. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_05);
  2554. tmp_value.all = value;
  2555. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2556. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_05_clk_extra_1_inv] --> 0x%08x\n",
  2557. REG_USB_PHY_UTMI_REG_05,value);
  2558. #endif
  2559. return tmp_value.bitc.clk_extra_1_inv;
  2560. }
  2561. GH_INLINE void GH_USB_PHY_set_UTMI_REG_05_ck_inv_reserved(U8 data)
  2562. {
  2563. GH_USB_PHY_UTMI_REG_05_S d;
  2564. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_05;
  2565. d.bitc.ck_inv_reserved = data;
  2566. *(volatile U16 *)REG_USB_PHY_UTMI_REG_05 = d.all;
  2567. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2568. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_05_ck_inv_reserved] <-- 0x%08x\n",
  2569. REG_USB_PHY_UTMI_REG_05,d.all,d.all);
  2570. #endif
  2571. }
  2572. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_05_ck_inv_reserved(void)
  2573. {
  2574. GH_USB_PHY_UTMI_REG_05_S tmp_value;
  2575. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_05);
  2576. tmp_value.all = value;
  2577. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2578. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_05_ck_inv_reserved] --> 0x%08x\n",
  2579. REG_USB_PHY_UTMI_REG_05,value);
  2580. #endif
  2581. return tmp_value.bitc.ck_inv_reserved;
  2582. }
  2583. #endif /* GH_INLINE_LEVEL == 0 */
  2584. /*----------------------------------------------------------------------------*/
  2585. /* register USB_PHY_UTMI_REG_06 (read/write) */
  2586. /*----------------------------------------------------------------------------*/
  2587. #if GH_INLINE_LEVEL == 0
  2588. /*! \brief Writes the register 'USB_PHY_UTMI_REG_06'. */
  2589. void GH_USB_PHY_set_UTMI_REG_06(U16 data);
  2590. /*! \brief Reads the register 'USB_PHY_UTMI_REG_06'. */
  2591. U16 GH_USB_PHY_get_UTMI_REG_06(void);
  2592. /*! \brief Writes the bit group 'test_clock_select' of register 'USB_PHY_UTMI_REG_06'. */
  2593. void GH_USB_PHY_set_UTMI_REG_06_test_clock_select(U8 data);
  2594. /*! \brief Reads the bit group 'test_clock_select' of register 'USB_PHY_UTMI_REG_06'. */
  2595. U8 GH_USB_PHY_get_UTMI_REG_06_test_clock_select(void);
  2596. /*! \brief Writes the bit group 'mac_clk_sel' of register 'USB_PHY_UTMI_REG_06'. */
  2597. void GH_USB_PHY_set_UTMI_REG_06_mac_clk_sel(U8 data);
  2598. /*! \brief Reads the bit group 'mac_clk_sel' of register 'USB_PHY_UTMI_REG_06'. */
  2599. U8 GH_USB_PHY_get_UTMI_REG_06_mac_clk_sel(void);
  2600. /*! \brief Writes the bit group 'double_data_rate' of register 'USB_PHY_UTMI_REG_06'. */
  2601. void GH_USB_PHY_set_UTMI_REG_06_double_data_rate(U8 data);
  2602. /*! \brief Reads the bit group 'double_data_rate' of register 'USB_PHY_UTMI_REG_06'. */
  2603. U8 GH_USB_PHY_get_UTMI_REG_06_double_data_rate(void);
  2604. /*! \brief Writes the bit group 'clk_extra0_div_select' of register 'USB_PHY_UTMI_REG_06'. */
  2605. void GH_USB_PHY_set_UTMI_REG_06_clk_extra0_div_select(U8 data);
  2606. /*! \brief Reads the bit group 'clk_extra0_div_select' of register 'USB_PHY_UTMI_REG_06'. */
  2607. U8 GH_USB_PHY_get_UTMI_REG_06_clk_extra0_div_select(void);
  2608. /*! \brief Writes the bit group 'clk_extra1_div_select' of register 'USB_PHY_UTMI_REG_06'. */
  2609. void GH_USB_PHY_set_UTMI_REG_06_clk_extra1_div_select(U8 data);
  2610. /*! \brief Reads the bit group 'clk_extra1_div_select' of register 'USB_PHY_UTMI_REG_06'. */
  2611. U8 GH_USB_PHY_get_UTMI_REG_06_clk_extra1_div_select(void);
  2612. /*! \brief Writes the bit group 'utmi_ck_en_sel' of register 'USB_PHY_UTMI_REG_06'. */
  2613. void GH_USB_PHY_set_UTMI_REG_06_utmi_ck_en_sel(U8 data);
  2614. /*! \brief Reads the bit group 'utmi_ck_en_sel' of register 'USB_PHY_UTMI_REG_06'. */
  2615. U8 GH_USB_PHY_get_UTMI_REG_06_utmi_ck_en_sel(void);
  2616. /*! \brief Writes the bit group 'utmi_ckinv_en_sel' of register 'USB_PHY_UTMI_REG_06'. */
  2617. void GH_USB_PHY_set_UTMI_REG_06_utmi_ckinv_en_sel(U8 data);
  2618. /*! \brief Reads the bit group 'utmi_ckinv_en_sel' of register 'USB_PHY_UTMI_REG_06'. */
  2619. U8 GH_USB_PHY_get_UTMI_REG_06_utmi_ckinv_en_sel(void);
  2620. #else /* GH_INLINE_LEVEL == 0 */
  2621. GH_INLINE void GH_USB_PHY_set_UTMI_REG_06(U16 data)
  2622. {
  2623. *(volatile U16 *)REG_USB_PHY_UTMI_REG_06 = data;
  2624. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2625. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_06] <-- 0x%08x\n",
  2626. REG_USB_PHY_UTMI_REG_06,data,data);
  2627. #endif
  2628. }
  2629. GH_INLINE U16 GH_USB_PHY_get_UTMI_REG_06(void)
  2630. {
  2631. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_06);
  2632. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2633. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_06] --> 0x%08x\n",
  2634. REG_USB_PHY_UTMI_REG_06,value);
  2635. #endif
  2636. return value;
  2637. }
  2638. GH_INLINE void GH_USB_PHY_set_UTMI_REG_06_test_clock_select(U8 data)
  2639. {
  2640. GH_USB_PHY_UTMI_REG_06_S d;
  2641. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_06;
  2642. d.bitc.test_clock_select = data;
  2643. *(volatile U16 *)REG_USB_PHY_UTMI_REG_06 = d.all;
  2644. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2645. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_06_test_clock_select] <-- 0x%08x\n",
  2646. REG_USB_PHY_UTMI_REG_06,d.all,d.all);
  2647. #endif
  2648. }
  2649. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_06_test_clock_select(void)
  2650. {
  2651. GH_USB_PHY_UTMI_REG_06_S tmp_value;
  2652. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_06);
  2653. tmp_value.all = value;
  2654. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2655. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_06_test_clock_select] --> 0x%08x\n",
  2656. REG_USB_PHY_UTMI_REG_06,value);
  2657. #endif
  2658. return tmp_value.bitc.test_clock_select;
  2659. }
  2660. GH_INLINE void GH_USB_PHY_set_UTMI_REG_06_mac_clk_sel(U8 data)
  2661. {
  2662. GH_USB_PHY_UTMI_REG_06_S d;
  2663. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_06;
  2664. d.bitc.mac_clk_sel = data;
  2665. *(volatile U16 *)REG_USB_PHY_UTMI_REG_06 = d.all;
  2666. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2667. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_06_mac_clk_sel] <-- 0x%08x\n",
  2668. REG_USB_PHY_UTMI_REG_06,d.all,d.all);
  2669. #endif
  2670. }
  2671. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_06_mac_clk_sel(void)
  2672. {
  2673. GH_USB_PHY_UTMI_REG_06_S tmp_value;
  2674. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_06);
  2675. tmp_value.all = value;
  2676. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2677. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_06_mac_clk_sel] --> 0x%08x\n",
  2678. REG_USB_PHY_UTMI_REG_06,value);
  2679. #endif
  2680. return tmp_value.bitc.mac_clk_sel;
  2681. }
  2682. GH_INLINE void GH_USB_PHY_set_UTMI_REG_06_double_data_rate(U8 data)
  2683. {
  2684. GH_USB_PHY_UTMI_REG_06_S d;
  2685. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_06;
  2686. d.bitc.double_data_rate = data;
  2687. *(volatile U16 *)REG_USB_PHY_UTMI_REG_06 = d.all;
  2688. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2689. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_06_double_data_rate] <-- 0x%08x\n",
  2690. REG_USB_PHY_UTMI_REG_06,d.all,d.all);
  2691. #endif
  2692. }
  2693. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_06_double_data_rate(void)
  2694. {
  2695. GH_USB_PHY_UTMI_REG_06_S tmp_value;
  2696. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_06);
  2697. tmp_value.all = value;
  2698. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2699. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_06_double_data_rate] --> 0x%08x\n",
  2700. REG_USB_PHY_UTMI_REG_06,value);
  2701. #endif
  2702. return tmp_value.bitc.double_data_rate;
  2703. }
  2704. GH_INLINE void GH_USB_PHY_set_UTMI_REG_06_clk_extra0_div_select(U8 data)
  2705. {
  2706. GH_USB_PHY_UTMI_REG_06_S d;
  2707. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_06;
  2708. d.bitc.clk_extra0_div_select = data;
  2709. *(volatile U16 *)REG_USB_PHY_UTMI_REG_06 = d.all;
  2710. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2711. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_06_clk_extra0_div_select] <-- 0x%08x\n",
  2712. REG_USB_PHY_UTMI_REG_06,d.all,d.all);
  2713. #endif
  2714. }
  2715. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_06_clk_extra0_div_select(void)
  2716. {
  2717. GH_USB_PHY_UTMI_REG_06_S tmp_value;
  2718. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_06);
  2719. tmp_value.all = value;
  2720. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2721. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_06_clk_extra0_div_select] --> 0x%08x\n",
  2722. REG_USB_PHY_UTMI_REG_06,value);
  2723. #endif
  2724. return tmp_value.bitc.clk_extra0_div_select;
  2725. }
  2726. GH_INLINE void GH_USB_PHY_set_UTMI_REG_06_clk_extra1_div_select(U8 data)
  2727. {
  2728. GH_USB_PHY_UTMI_REG_06_S d;
  2729. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_06;
  2730. d.bitc.clk_extra1_div_select = data;
  2731. *(volatile U16 *)REG_USB_PHY_UTMI_REG_06 = d.all;
  2732. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2733. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_06_clk_extra1_div_select] <-- 0x%08x\n",
  2734. REG_USB_PHY_UTMI_REG_06,d.all,d.all);
  2735. #endif
  2736. }
  2737. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_06_clk_extra1_div_select(void)
  2738. {
  2739. GH_USB_PHY_UTMI_REG_06_S tmp_value;
  2740. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_06);
  2741. tmp_value.all = value;
  2742. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2743. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_06_clk_extra1_div_select] --> 0x%08x\n",
  2744. REG_USB_PHY_UTMI_REG_06,value);
  2745. #endif
  2746. return tmp_value.bitc.clk_extra1_div_select;
  2747. }
  2748. GH_INLINE void GH_USB_PHY_set_UTMI_REG_06_utmi_ck_en_sel(U8 data)
  2749. {
  2750. GH_USB_PHY_UTMI_REG_06_S d;
  2751. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_06;
  2752. d.bitc.utmi_ck_en_sel = data;
  2753. *(volatile U16 *)REG_USB_PHY_UTMI_REG_06 = d.all;
  2754. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2755. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_06_utmi_ck_en_sel] <-- 0x%08x\n",
  2756. REG_USB_PHY_UTMI_REG_06,d.all,d.all);
  2757. #endif
  2758. }
  2759. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_06_utmi_ck_en_sel(void)
  2760. {
  2761. GH_USB_PHY_UTMI_REG_06_S tmp_value;
  2762. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_06);
  2763. tmp_value.all = value;
  2764. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2765. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_06_utmi_ck_en_sel] --> 0x%08x\n",
  2766. REG_USB_PHY_UTMI_REG_06,value);
  2767. #endif
  2768. return tmp_value.bitc.utmi_ck_en_sel;
  2769. }
  2770. GH_INLINE void GH_USB_PHY_set_UTMI_REG_06_utmi_ckinv_en_sel(U8 data)
  2771. {
  2772. GH_USB_PHY_UTMI_REG_06_S d;
  2773. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_06;
  2774. d.bitc.utmi_ckinv_en_sel = data;
  2775. *(volatile U16 *)REG_USB_PHY_UTMI_REG_06 = d.all;
  2776. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2777. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_06_utmi_ckinv_en_sel] <-- 0x%08x\n",
  2778. REG_USB_PHY_UTMI_REG_06,d.all,d.all);
  2779. #endif
  2780. }
  2781. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_06_utmi_ckinv_en_sel(void)
  2782. {
  2783. GH_USB_PHY_UTMI_REG_06_S tmp_value;
  2784. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_06);
  2785. tmp_value.all = value;
  2786. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2787. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_06_utmi_ckinv_en_sel] --> 0x%08x\n",
  2788. REG_USB_PHY_UTMI_REG_06,value);
  2789. #endif
  2790. return tmp_value.bitc.utmi_ckinv_en_sel;
  2791. }
  2792. #endif /* GH_INLINE_LEVEL == 0 */
  2793. /*----------------------------------------------------------------------------*/
  2794. /* register USB_PHY_UTMI_STATUS (read) */
  2795. /*----------------------------------------------------------------------------*/
  2796. #if GH_INLINE_LEVEL == 0
  2797. /*! \brief Reads the register 'USB_PHY_UTMI_STATUS'. */
  2798. U16 GH_USB_PHY_get_UTMI_STATUS(void);
  2799. /*! \brief Reads the bit group 'elasticity_error' of register 'USB_PHY_UTMI_STATUS'. */
  2800. U8 GH_USB_PHY_get_UTMI_STATUS_elasticity_error(void);
  2801. /*! \brief Reads the bit group 'Sync_pattern_error' of register 'USB_PHY_UTMI_STATUS'. */
  2802. U8 GH_USB_PHY_get_UTMI_STATUS_Sync_pattern_error(void);
  2803. /*! \brief Reads the bit group 'EOP_error' of register 'USB_PHY_UTMI_STATUS'. */
  2804. U8 GH_USB_PHY_get_UTMI_STATUS_EOP_error(void);
  2805. /*! \brief Reads the bit group 'bit_stuffer_error' of register 'USB_PHY_UTMI_STATUS'. */
  2806. U8 GH_USB_PHY_get_UTMI_STATUS_bit_stuffer_error(void);
  2807. /*! \brief Reads the bit group 'elasticity_underflow' of register 'USB_PHY_UTMI_STATUS'. */
  2808. U8 GH_USB_PHY_get_UTMI_STATUS_elasticity_underflow(void);
  2809. /*! \brief Reads the bit group 'overflow' of register 'USB_PHY_UTMI_STATUS'. */
  2810. U8 GH_USB_PHY_get_UTMI_STATUS_overflow(void);
  2811. /*! \brief Reads the bit group 'clock_ready' of register 'USB_PHY_UTMI_STATUS'. */
  2812. U8 GH_USB_PHY_get_UTMI_STATUS_clock_ready(void);
  2813. /*! \brief Reads the bit group 'interrupt' of register 'USB_PHY_UTMI_STATUS'. */
  2814. U8 GH_USB_PHY_get_UTMI_STATUS_interrupt(void);
  2815. /*! \brief Reads the bit group 'device' of register 'USB_PHY_UTMI_STATUS'. */
  2816. U8 GH_USB_PHY_get_UTMI_STATUS_device(void);
  2817. /*! \brief Reads the bit group 'host' of register 'USB_PHY_UTMI_STATUS'. */
  2818. U8 GH_USB_PHY_get_UTMI_STATUS_host(void);
  2819. /*! \brief Reads the bit group 'Disconnect' of register 'USB_PHY_UTMI_STATUS'. */
  2820. U8 GH_USB_PHY_get_UTMI_STATUS_Disconnect(void);
  2821. /*! \brief Reads the bit group 'TX_FSM' of register 'USB_PHY_UTMI_STATUS'. */
  2822. U8 GH_USB_PHY_get_UTMI_STATUS_TX_FSM(void);
  2823. /*! \brief Reads the bit group 'RX_FSM' of register 'USB_PHY_UTMI_STATUS'. */
  2824. U8 GH_USB_PHY_get_UTMI_STATUS_RX_FSM(void);
  2825. /*! \brief Reads the bit group 'low_speed' of register 'USB_PHY_UTMI_STATUS'. */
  2826. U8 GH_USB_PHY_get_UTMI_STATUS_low_speed(void);
  2827. /*! \brief Reads the bit group 'full_speed' of register 'USB_PHY_UTMI_STATUS'. */
  2828. U8 GH_USB_PHY_get_UTMI_STATUS_full_speed(void);
  2829. /*! \brief Reads the bit group 'Hign_speed' of register 'USB_PHY_UTMI_STATUS'. */
  2830. U8 GH_USB_PHY_get_UTMI_STATUS_Hign_speed(void);
  2831. #else /* GH_INLINE_LEVEL == 0 */
  2832. GH_INLINE U16 GH_USB_PHY_get_UTMI_STATUS(void)
  2833. {
  2834. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
  2835. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2836. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS] --> 0x%08x\n",
  2837. REG_USB_PHY_UTMI_STATUS,value);
  2838. #endif
  2839. return value;
  2840. }
  2841. GH_INLINE U8 GH_USB_PHY_get_UTMI_STATUS_elasticity_error(void)
  2842. {
  2843. GH_USB_PHY_UTMI_STATUS_S tmp_value;
  2844. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
  2845. tmp_value.all = value;
  2846. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2847. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS_elasticity_error] --> 0x%08x\n",
  2848. REG_USB_PHY_UTMI_STATUS,value);
  2849. #endif
  2850. return tmp_value.bitc.elasticity_error;
  2851. }
  2852. GH_INLINE U8 GH_USB_PHY_get_UTMI_STATUS_Sync_pattern_error(void)
  2853. {
  2854. GH_USB_PHY_UTMI_STATUS_S tmp_value;
  2855. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
  2856. tmp_value.all = value;
  2857. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2858. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS_Sync_pattern_error] --> 0x%08x\n",
  2859. REG_USB_PHY_UTMI_STATUS,value);
  2860. #endif
  2861. return tmp_value.bitc.sync_pattern_error;
  2862. }
  2863. GH_INLINE U8 GH_USB_PHY_get_UTMI_STATUS_EOP_error(void)
  2864. {
  2865. GH_USB_PHY_UTMI_STATUS_S tmp_value;
  2866. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
  2867. tmp_value.all = value;
  2868. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2869. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS_EOP_error] --> 0x%08x\n",
  2870. REG_USB_PHY_UTMI_STATUS,value);
  2871. #endif
  2872. return tmp_value.bitc.eop_error;
  2873. }
  2874. GH_INLINE U8 GH_USB_PHY_get_UTMI_STATUS_bit_stuffer_error(void)
  2875. {
  2876. GH_USB_PHY_UTMI_STATUS_S tmp_value;
  2877. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
  2878. tmp_value.all = value;
  2879. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2880. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS_bit_stuffer_error] --> 0x%08x\n",
  2881. REG_USB_PHY_UTMI_STATUS,value);
  2882. #endif
  2883. return tmp_value.bitc.bit_stuffer_error;
  2884. }
  2885. GH_INLINE U8 GH_USB_PHY_get_UTMI_STATUS_elasticity_underflow(void)
  2886. {
  2887. GH_USB_PHY_UTMI_STATUS_S tmp_value;
  2888. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
  2889. tmp_value.all = value;
  2890. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2891. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS_elasticity_underflow] --> 0x%08x\n",
  2892. REG_USB_PHY_UTMI_STATUS,value);
  2893. #endif
  2894. return tmp_value.bitc.elasticity_underflow;
  2895. }
  2896. GH_INLINE U8 GH_USB_PHY_get_UTMI_STATUS_overflow(void)
  2897. {
  2898. GH_USB_PHY_UTMI_STATUS_S tmp_value;
  2899. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
  2900. tmp_value.all = value;
  2901. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2902. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS_overflow] --> 0x%08x\n",
  2903. REG_USB_PHY_UTMI_STATUS,value);
  2904. #endif
  2905. return tmp_value.bitc.overflow;
  2906. }
  2907. GH_INLINE U8 GH_USB_PHY_get_UTMI_STATUS_clock_ready(void)
  2908. {
  2909. GH_USB_PHY_UTMI_STATUS_S tmp_value;
  2910. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
  2911. tmp_value.all = value;
  2912. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2913. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS_clock_ready] --> 0x%08x\n",
  2914. REG_USB_PHY_UTMI_STATUS,value);
  2915. #endif
  2916. return tmp_value.bitc.clock_ready;
  2917. }
  2918. GH_INLINE U8 GH_USB_PHY_get_UTMI_STATUS_interrupt(void)
  2919. {
  2920. GH_USB_PHY_UTMI_STATUS_S tmp_value;
  2921. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
  2922. tmp_value.all = value;
  2923. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2924. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS_interrupt] --> 0x%08x\n",
  2925. REG_USB_PHY_UTMI_STATUS,value);
  2926. #endif
  2927. return tmp_value.bitc.interrupt;
  2928. }
  2929. GH_INLINE U8 GH_USB_PHY_get_UTMI_STATUS_device(void)
  2930. {
  2931. GH_USB_PHY_UTMI_STATUS_S tmp_value;
  2932. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
  2933. tmp_value.all = value;
  2934. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2935. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS_device] --> 0x%08x\n",
  2936. REG_USB_PHY_UTMI_STATUS,value);
  2937. #endif
  2938. return tmp_value.bitc.device;
  2939. }
  2940. GH_INLINE U8 GH_USB_PHY_get_UTMI_STATUS_host(void)
  2941. {
  2942. GH_USB_PHY_UTMI_STATUS_S tmp_value;
  2943. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
  2944. tmp_value.all = value;
  2945. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2946. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS_host] --> 0x%08x\n",
  2947. REG_USB_PHY_UTMI_STATUS,value);
  2948. #endif
  2949. return tmp_value.bitc.host;
  2950. }
  2951. GH_INLINE U8 GH_USB_PHY_get_UTMI_STATUS_Disconnect(void)
  2952. {
  2953. GH_USB_PHY_UTMI_STATUS_S tmp_value;
  2954. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
  2955. tmp_value.all = value;
  2956. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2957. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS_Disconnect] --> 0x%08x\n",
  2958. REG_USB_PHY_UTMI_STATUS,value);
  2959. #endif
  2960. return tmp_value.bitc.disconnect;
  2961. }
  2962. GH_INLINE U8 GH_USB_PHY_get_UTMI_STATUS_TX_FSM(void)
  2963. {
  2964. GH_USB_PHY_UTMI_STATUS_S tmp_value;
  2965. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
  2966. tmp_value.all = value;
  2967. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2968. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS_TX_FSM] --> 0x%08x\n",
  2969. REG_USB_PHY_UTMI_STATUS,value);
  2970. #endif
  2971. return tmp_value.bitc.tx_fsm;
  2972. }
  2973. GH_INLINE U8 GH_USB_PHY_get_UTMI_STATUS_RX_FSM(void)
  2974. {
  2975. GH_USB_PHY_UTMI_STATUS_S tmp_value;
  2976. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
  2977. tmp_value.all = value;
  2978. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2979. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS_RX_FSM] --> 0x%08x\n",
  2980. REG_USB_PHY_UTMI_STATUS,value);
  2981. #endif
  2982. return tmp_value.bitc.rx_fsm;
  2983. }
  2984. GH_INLINE U8 GH_USB_PHY_get_UTMI_STATUS_low_speed(void)
  2985. {
  2986. GH_USB_PHY_UTMI_STATUS_S tmp_value;
  2987. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
  2988. tmp_value.all = value;
  2989. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  2990. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS_low_speed] --> 0x%08x\n",
  2991. REG_USB_PHY_UTMI_STATUS,value);
  2992. #endif
  2993. return tmp_value.bitc.low_speed;
  2994. }
  2995. GH_INLINE U8 GH_USB_PHY_get_UTMI_STATUS_full_speed(void)
  2996. {
  2997. GH_USB_PHY_UTMI_STATUS_S tmp_value;
  2998. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
  2999. tmp_value.all = value;
  3000. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3001. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS_full_speed] --> 0x%08x\n",
  3002. REG_USB_PHY_UTMI_STATUS,value);
  3003. #endif
  3004. return tmp_value.bitc.full_speed;
  3005. }
  3006. GH_INLINE U8 GH_USB_PHY_get_UTMI_STATUS_Hign_speed(void)
  3007. {
  3008. GH_USB_PHY_UTMI_STATUS_S tmp_value;
  3009. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
  3010. tmp_value.all = value;
  3011. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3012. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS_Hign_speed] --> 0x%08x\n",
  3013. REG_USB_PHY_UTMI_STATUS,value);
  3014. #endif
  3015. return tmp_value.bitc.hign_speed;
  3016. }
  3017. #endif /* GH_INLINE_LEVEL == 0 */
  3018. /*----------------------------------------------------------------------------*/
  3019. /* register USB_PHY_UTMI_REG_08 (read/write) */
  3020. /*----------------------------------------------------------------------------*/
  3021. #if GH_INLINE_LEVEL == 0
  3022. /*! \brief Writes the register 'USB_PHY_UTMI_REG_08'. */
  3023. void GH_USB_PHY_set_UTMI_REG_08(U16 data);
  3024. /*! \brief Reads the register 'USB_PHY_UTMI_REG_08'. */
  3025. U16 GH_USB_PHY_get_UTMI_REG_08(void);
  3026. /*! \brief Writes the bit group 'test_bus_select' of register 'USB_PHY_UTMI_REG_08'. */
  3027. void GH_USB_PHY_set_UTMI_REG_08_test_bus_select(U8 data);
  3028. /*! \brief Reads the bit group 'test_bus_select' of register 'USB_PHY_UTMI_REG_08'. */
  3029. U8 GH_USB_PHY_get_UTMI_REG_08_test_bus_select(void);
  3030. /*! \brief Writes the bit group 'force_rx_nonbusy' of register 'USB_PHY_UTMI_REG_08'. */
  3031. void GH_USB_PHY_set_UTMI_REG_08_force_rx_nonbusy(U8 data);
  3032. /*! \brief Reads the bit group 'force_rx_nonbusy' of register 'USB_PHY_UTMI_REG_08'. */
  3033. U8 GH_USB_PHY_get_UTMI_REG_08_force_rx_nonbusy(void);
  3034. /*! \brief Writes the bit group 'force_tx_nonbusy' of register 'USB_PHY_UTMI_REG_08'. */
  3035. void GH_USB_PHY_set_UTMI_REG_08_force_tx_nonbusy(U8 data);
  3036. /*! \brief Reads the bit group 'force_tx_nonbusy' of register 'USB_PHY_UTMI_REG_08'. */
  3037. U8 GH_USB_PHY_get_UTMI_REG_08_force_tx_nonbusy(void);
  3038. /*! \brief Writes the bit group 'utmi_int_clr' of register 'USB_PHY_UTMI_REG_08'. */
  3039. void GH_USB_PHY_set_UTMI_REG_08_utmi_int_clr(U8 data);
  3040. /*! \brief Reads the bit group 'utmi_int_clr' of register 'USB_PHY_UTMI_REG_08'. */
  3041. U8 GH_USB_PHY_get_UTMI_REG_08_utmi_int_clr(void);
  3042. /*! \brief Writes the bit group 'se0_set' of register 'USB_PHY_UTMI_REG_08'. */
  3043. void GH_USB_PHY_set_UTMI_REG_08_se0_set(U8 data);
  3044. /*! \brief Reads the bit group 'se0_set' of register 'USB_PHY_UTMI_REG_08'. */
  3045. U8 GH_USB_PHY_get_UTMI_REG_08_se0_set(void);
  3046. /*! \brief Writes the bit group 'tx_data' of register 'USB_PHY_UTMI_REG_08'. */
  3047. void GH_USB_PHY_set_UTMI_REG_08_tx_data(U8 data);
  3048. /*! \brief Reads the bit group 'tx_data' of register 'USB_PHY_UTMI_REG_08'. */
  3049. U8 GH_USB_PHY_get_UTMI_REG_08_tx_data(void);
  3050. /*! \brief Writes the bit group 'tx_en' of register 'USB_PHY_UTMI_REG_08'. */
  3051. void GH_USB_PHY_set_UTMI_REG_08_tx_en(U8 data);
  3052. /*! \brief Reads the bit group 'tx_en' of register 'USB_PHY_UTMI_REG_08'. */
  3053. U8 GH_USB_PHY_get_UTMI_REG_08_tx_en(void);
  3054. /*! \brief Writes the bit group 'tx_se0' of register 'USB_PHY_UTMI_REG_08'. */
  3055. void GH_USB_PHY_set_UTMI_REG_08_tx_se0(U8 data);
  3056. /*! \brief Reads the bit group 'tx_se0' of register 'USB_PHY_UTMI_REG_08'. */
  3057. U8 GH_USB_PHY_get_UTMI_REG_08_tx_se0(void);
  3058. /*! \brief Writes the bit group 'tx_override' of register 'USB_PHY_UTMI_REG_08'. */
  3059. void GH_USB_PHY_set_UTMI_REG_08_tx_override(U8 data);
  3060. /*! \brief Reads the bit group 'tx_override' of register 'USB_PHY_UTMI_REG_08'. */
  3061. U8 GH_USB_PHY_get_UTMI_REG_08_tx_override(void);
  3062. /*! \brief Writes the bit group 'power_good_rst' of register 'USB_PHY_UTMI_REG_08'. */
  3063. void GH_USB_PHY_set_UTMI_REG_08_power_good_rst(U8 data);
  3064. /*! \brief Reads the bit group 'power_good_rst' of register 'USB_PHY_UTMI_REG_08'. */
  3065. U8 GH_USB_PHY_get_UTMI_REG_08_power_good_rst(void);
  3066. /*! \brief Writes the bit group 'phy_mode_enable' of register 'USB_PHY_UTMI_REG_08'. */
  3067. void GH_USB_PHY_set_UTMI_REG_08_phy_mode_enable(U8 data);
  3068. /*! \brief Reads the bit group 'phy_mode_enable' of register 'USB_PHY_UTMI_REG_08'. */
  3069. U8 GH_USB_PHY_get_UTMI_REG_08_phy_mode_enable(void);
  3070. /*! \brief Writes the bit group 'error_flag_clr' of register 'USB_PHY_UTMI_REG_08'. */
  3071. void GH_USB_PHY_set_UTMI_REG_08_error_flag_clr(U8 data);
  3072. /*! \brief Reads the bit group 'error_flag_clr' of register 'USB_PHY_UTMI_REG_08'. */
  3073. U8 GH_USB_PHY_get_UTMI_REG_08_error_flag_clr(void);
  3074. /*! \brief Writes the bit group 'hd_tx_override' of register 'USB_PHY_UTMI_REG_08'. */
  3075. void GH_USB_PHY_set_UTMI_REG_08_hd_tx_override(U8 data);
  3076. /*! \brief Reads the bit group 'hd_tx_override' of register 'USB_PHY_UTMI_REG_08'. */
  3077. U8 GH_USB_PHY_get_UTMI_REG_08_hd_tx_override(void);
  3078. #else /* GH_INLINE_LEVEL == 0 */
  3079. GH_INLINE void GH_USB_PHY_set_UTMI_REG_08(U16 data)
  3080. {
  3081. *(volatile U16 *)REG_USB_PHY_UTMI_REG_08 = data;
  3082. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3083. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_08] <-- 0x%08x\n",
  3084. REG_USB_PHY_UTMI_REG_08,data,data);
  3085. #endif
  3086. }
  3087. GH_INLINE U16 GH_USB_PHY_get_UTMI_REG_08(void)
  3088. {
  3089. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_08);
  3090. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3091. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_08] --> 0x%08x\n",
  3092. REG_USB_PHY_UTMI_REG_08,value);
  3093. #endif
  3094. return value;
  3095. }
  3096. GH_INLINE void GH_USB_PHY_set_UTMI_REG_08_test_bus_select(U8 data)
  3097. {
  3098. GH_USB_PHY_UTMI_REG_08_S d;
  3099. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_08;
  3100. d.bitc.test_bus_select = data;
  3101. *(volatile U16 *)REG_USB_PHY_UTMI_REG_08 = d.all;
  3102. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3103. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_08_test_bus_select] <-- 0x%08x\n",
  3104. REG_USB_PHY_UTMI_REG_08,d.all,d.all);
  3105. #endif
  3106. }
  3107. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_08_test_bus_select(void)
  3108. {
  3109. GH_USB_PHY_UTMI_REG_08_S tmp_value;
  3110. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_08);
  3111. tmp_value.all = value;
  3112. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3113. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_08_test_bus_select] --> 0x%08x\n",
  3114. REG_USB_PHY_UTMI_REG_08,value);
  3115. #endif
  3116. return tmp_value.bitc.test_bus_select;
  3117. }
  3118. GH_INLINE void GH_USB_PHY_set_UTMI_REG_08_force_rx_nonbusy(U8 data)
  3119. {
  3120. GH_USB_PHY_UTMI_REG_08_S d;
  3121. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_08;
  3122. d.bitc.force_rx_nonbusy = data;
  3123. *(volatile U16 *)REG_USB_PHY_UTMI_REG_08 = d.all;
  3124. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3125. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_08_force_rx_nonbusy] <-- 0x%08x\n",
  3126. REG_USB_PHY_UTMI_REG_08,d.all,d.all);
  3127. #endif
  3128. }
  3129. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_08_force_rx_nonbusy(void)
  3130. {
  3131. GH_USB_PHY_UTMI_REG_08_S tmp_value;
  3132. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_08);
  3133. tmp_value.all = value;
  3134. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3135. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_08_force_rx_nonbusy] --> 0x%08x\n",
  3136. REG_USB_PHY_UTMI_REG_08,value);
  3137. #endif
  3138. return tmp_value.bitc.force_rx_nonbusy;
  3139. }
  3140. GH_INLINE void GH_USB_PHY_set_UTMI_REG_08_force_tx_nonbusy(U8 data)
  3141. {
  3142. GH_USB_PHY_UTMI_REG_08_S d;
  3143. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_08;
  3144. d.bitc.force_tx_nonbusy = data;
  3145. *(volatile U16 *)REG_USB_PHY_UTMI_REG_08 = d.all;
  3146. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3147. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_08_force_tx_nonbusy] <-- 0x%08x\n",
  3148. REG_USB_PHY_UTMI_REG_08,d.all,d.all);
  3149. #endif
  3150. }
  3151. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_08_force_tx_nonbusy(void)
  3152. {
  3153. GH_USB_PHY_UTMI_REG_08_S tmp_value;
  3154. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_08);
  3155. tmp_value.all = value;
  3156. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3157. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_08_force_tx_nonbusy] --> 0x%08x\n",
  3158. REG_USB_PHY_UTMI_REG_08,value);
  3159. #endif
  3160. return tmp_value.bitc.force_tx_nonbusy;
  3161. }
  3162. GH_INLINE void GH_USB_PHY_set_UTMI_REG_08_utmi_int_clr(U8 data)
  3163. {
  3164. GH_USB_PHY_UTMI_REG_08_S d;
  3165. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_08;
  3166. d.bitc.utmi_int_clr = data;
  3167. *(volatile U16 *)REG_USB_PHY_UTMI_REG_08 = d.all;
  3168. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3169. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_08_utmi_int_clr] <-- 0x%08x\n",
  3170. REG_USB_PHY_UTMI_REG_08,d.all,d.all);
  3171. #endif
  3172. }
  3173. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_08_utmi_int_clr(void)
  3174. {
  3175. GH_USB_PHY_UTMI_REG_08_S tmp_value;
  3176. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_08);
  3177. tmp_value.all = value;
  3178. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3179. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_08_utmi_int_clr] --> 0x%08x\n",
  3180. REG_USB_PHY_UTMI_REG_08,value);
  3181. #endif
  3182. return tmp_value.bitc.utmi_int_clr;
  3183. }
  3184. GH_INLINE void GH_USB_PHY_set_UTMI_REG_08_se0_set(U8 data)
  3185. {
  3186. GH_USB_PHY_UTMI_REG_08_S d;
  3187. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_08;
  3188. d.bitc.se0_set = data;
  3189. *(volatile U16 *)REG_USB_PHY_UTMI_REG_08 = d.all;
  3190. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3191. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_08_se0_set] <-- 0x%08x\n",
  3192. REG_USB_PHY_UTMI_REG_08,d.all,d.all);
  3193. #endif
  3194. }
  3195. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_08_se0_set(void)
  3196. {
  3197. GH_USB_PHY_UTMI_REG_08_S tmp_value;
  3198. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_08);
  3199. tmp_value.all = value;
  3200. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3201. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_08_se0_set] --> 0x%08x\n",
  3202. REG_USB_PHY_UTMI_REG_08,value);
  3203. #endif
  3204. return tmp_value.bitc.se0_set;
  3205. }
  3206. GH_INLINE void GH_USB_PHY_set_UTMI_REG_08_tx_data(U8 data)
  3207. {
  3208. GH_USB_PHY_UTMI_REG_08_S d;
  3209. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_08;
  3210. d.bitc.tx_data = data;
  3211. *(volatile U16 *)REG_USB_PHY_UTMI_REG_08 = d.all;
  3212. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3213. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_08_tx_data] <-- 0x%08x\n",
  3214. REG_USB_PHY_UTMI_REG_08,d.all,d.all);
  3215. #endif
  3216. }
  3217. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_08_tx_data(void)
  3218. {
  3219. GH_USB_PHY_UTMI_REG_08_S tmp_value;
  3220. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_08);
  3221. tmp_value.all = value;
  3222. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3223. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_08_tx_data] --> 0x%08x\n",
  3224. REG_USB_PHY_UTMI_REG_08,value);
  3225. #endif
  3226. return tmp_value.bitc.tx_data;
  3227. }
  3228. GH_INLINE void GH_USB_PHY_set_UTMI_REG_08_tx_en(U8 data)
  3229. {
  3230. GH_USB_PHY_UTMI_REG_08_S d;
  3231. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_08;
  3232. d.bitc.tx_en = data;
  3233. *(volatile U16 *)REG_USB_PHY_UTMI_REG_08 = d.all;
  3234. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3235. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_08_tx_en] <-- 0x%08x\n",
  3236. REG_USB_PHY_UTMI_REG_08,d.all,d.all);
  3237. #endif
  3238. }
  3239. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_08_tx_en(void)
  3240. {
  3241. GH_USB_PHY_UTMI_REG_08_S tmp_value;
  3242. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_08);
  3243. tmp_value.all = value;
  3244. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3245. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_08_tx_en] --> 0x%08x\n",
  3246. REG_USB_PHY_UTMI_REG_08,value);
  3247. #endif
  3248. return tmp_value.bitc.tx_en;
  3249. }
  3250. GH_INLINE void GH_USB_PHY_set_UTMI_REG_08_tx_se0(U8 data)
  3251. {
  3252. GH_USB_PHY_UTMI_REG_08_S d;
  3253. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_08;
  3254. d.bitc.tx_se0 = data;
  3255. *(volatile U16 *)REG_USB_PHY_UTMI_REG_08 = d.all;
  3256. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3257. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_08_tx_se0] <-- 0x%08x\n",
  3258. REG_USB_PHY_UTMI_REG_08,d.all,d.all);
  3259. #endif
  3260. }
  3261. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_08_tx_se0(void)
  3262. {
  3263. GH_USB_PHY_UTMI_REG_08_S tmp_value;
  3264. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_08);
  3265. tmp_value.all = value;
  3266. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3267. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_08_tx_se0] --> 0x%08x\n",
  3268. REG_USB_PHY_UTMI_REG_08,value);
  3269. #endif
  3270. return tmp_value.bitc.tx_se0;
  3271. }
  3272. GH_INLINE void GH_USB_PHY_set_UTMI_REG_08_tx_override(U8 data)
  3273. {
  3274. GH_USB_PHY_UTMI_REG_08_S d;
  3275. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_08;
  3276. d.bitc.tx_override = data;
  3277. *(volatile U16 *)REG_USB_PHY_UTMI_REG_08 = d.all;
  3278. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3279. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_08_tx_override] <-- 0x%08x\n",
  3280. REG_USB_PHY_UTMI_REG_08,d.all,d.all);
  3281. #endif
  3282. }
  3283. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_08_tx_override(void)
  3284. {
  3285. GH_USB_PHY_UTMI_REG_08_S tmp_value;
  3286. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_08);
  3287. tmp_value.all = value;
  3288. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3289. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_08_tx_override] --> 0x%08x\n",
  3290. REG_USB_PHY_UTMI_REG_08,value);
  3291. #endif
  3292. return tmp_value.bitc.tx_override;
  3293. }
  3294. GH_INLINE void GH_USB_PHY_set_UTMI_REG_08_power_good_rst(U8 data)
  3295. {
  3296. GH_USB_PHY_UTMI_REG_08_S d;
  3297. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_08;
  3298. d.bitc.power_good_rst = data;
  3299. *(volatile U16 *)REG_USB_PHY_UTMI_REG_08 = d.all;
  3300. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3301. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_08_power_good_rst] <-- 0x%08x\n",
  3302. REG_USB_PHY_UTMI_REG_08,d.all,d.all);
  3303. #endif
  3304. }
  3305. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_08_power_good_rst(void)
  3306. {
  3307. GH_USB_PHY_UTMI_REG_08_S tmp_value;
  3308. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_08);
  3309. tmp_value.all = value;
  3310. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3311. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_08_power_good_rst] --> 0x%08x\n",
  3312. REG_USB_PHY_UTMI_REG_08,value);
  3313. #endif
  3314. return tmp_value.bitc.power_good_rst;
  3315. }
  3316. GH_INLINE void GH_USB_PHY_set_UTMI_REG_08_phy_mode_enable(U8 data)
  3317. {
  3318. GH_USB_PHY_UTMI_REG_08_S d;
  3319. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_08;
  3320. d.bitc.phy_mode_enable = data;
  3321. *(volatile U16 *)REG_USB_PHY_UTMI_REG_08 = d.all;
  3322. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3323. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_08_phy_mode_enable] <-- 0x%08x\n",
  3324. REG_USB_PHY_UTMI_REG_08,d.all,d.all);
  3325. #endif
  3326. }
  3327. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_08_phy_mode_enable(void)
  3328. {
  3329. GH_USB_PHY_UTMI_REG_08_S tmp_value;
  3330. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_08);
  3331. tmp_value.all = value;
  3332. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3333. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_08_phy_mode_enable] --> 0x%08x\n",
  3334. REG_USB_PHY_UTMI_REG_08,value);
  3335. #endif
  3336. return tmp_value.bitc.phy_mode_enable;
  3337. }
  3338. GH_INLINE void GH_USB_PHY_set_UTMI_REG_08_error_flag_clr(U8 data)
  3339. {
  3340. GH_USB_PHY_UTMI_REG_08_S d;
  3341. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_08;
  3342. d.bitc.error_flag_clr = data;
  3343. *(volatile U16 *)REG_USB_PHY_UTMI_REG_08 = d.all;
  3344. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3345. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_08_error_flag_clr] <-- 0x%08x\n",
  3346. REG_USB_PHY_UTMI_REG_08,d.all,d.all);
  3347. #endif
  3348. }
  3349. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_08_error_flag_clr(void)
  3350. {
  3351. GH_USB_PHY_UTMI_REG_08_S tmp_value;
  3352. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_08);
  3353. tmp_value.all = value;
  3354. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3355. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_08_error_flag_clr] --> 0x%08x\n",
  3356. REG_USB_PHY_UTMI_REG_08,value);
  3357. #endif
  3358. return tmp_value.bitc.error_flag_clr;
  3359. }
  3360. GH_INLINE void GH_USB_PHY_set_UTMI_REG_08_hd_tx_override(U8 data)
  3361. {
  3362. GH_USB_PHY_UTMI_REG_08_S d;
  3363. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_08;
  3364. d.bitc.hd_tx_override = data;
  3365. *(volatile U16 *)REG_USB_PHY_UTMI_REG_08 = d.all;
  3366. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3367. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_08_hd_tx_override] <-- 0x%08x\n",
  3368. REG_USB_PHY_UTMI_REG_08,d.all,d.all);
  3369. #endif
  3370. }
  3371. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_08_hd_tx_override(void)
  3372. {
  3373. GH_USB_PHY_UTMI_REG_08_S tmp_value;
  3374. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_08);
  3375. tmp_value.all = value;
  3376. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3377. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_08_hd_tx_override] --> 0x%08x\n",
  3378. REG_USB_PHY_UTMI_REG_08,value);
  3379. #endif
  3380. return tmp_value.bitc.hd_tx_override;
  3381. }
  3382. #endif /* GH_INLINE_LEVEL == 0 */
  3383. /*----------------------------------------------------------------------------*/
  3384. /* register USB_PHY_UTMI_REG_09 (read/write) */
  3385. /*----------------------------------------------------------------------------*/
  3386. #if GH_INLINE_LEVEL == 0
  3387. /*! \brief Writes the register 'USB_PHY_UTMI_REG_09'. */
  3388. void GH_USB_PHY_set_UTMI_REG_09(U16 data);
  3389. /*! \brief Reads the register 'USB_PHY_UTMI_REG_09'. */
  3390. U16 GH_USB_PHY_get_UTMI_REG_09(void);
  3391. /*! \brief Writes the bit group 'deglitch_prd' of register 'USB_PHY_UTMI_REG_09'. */
  3392. void GH_USB_PHY_set_UTMI_REG_09_deglitch_prd(U8 data);
  3393. /*! \brief Reads the bit group 'deglitch_prd' of register 'USB_PHY_UTMI_REG_09'. */
  3394. U8 GH_USB_PHY_get_UTMI_REG_09_deglitch_prd(void);
  3395. /*! \brief Writes the bit group 'vdd2low_rst_enz' of register 'USB_PHY_UTMI_REG_09'. */
  3396. void GH_USB_PHY_set_UTMI_REG_09_vdd2low_rst_enz(U8 data);
  3397. /*! \brief Reads the bit group 'vdd2low_rst_enz' of register 'USB_PHY_UTMI_REG_09'. */
  3398. U8 GH_USB_PHY_get_UTMI_REG_09_vdd2low_rst_enz(void);
  3399. /*! \brief Writes the bit group 'deglitch_enz' of register 'USB_PHY_UTMI_REG_09'. */
  3400. void GH_USB_PHY_set_UTMI_REG_09_deglitch_enz(U8 data);
  3401. /*! \brief Reads the bit group 'deglitch_enz' of register 'USB_PHY_UTMI_REG_09'. */
  3402. U8 GH_USB_PHY_get_UTMI_REG_09_deglitch_enz(void);
  3403. /*! \brief Writes the bit group 'usbsyn_rst' of register 'USB_PHY_UTMI_REG_09'. */
  3404. void GH_USB_PHY_set_UTMI_REG_09_usbsyn_rst(U8 data);
  3405. /*! \brief Reads the bit group 'usbsyn_rst' of register 'USB_PHY_UTMI_REG_09'. */
  3406. U8 GH_USB_PHY_get_UTMI_REG_09_usbsyn_rst(void);
  3407. /*! \brief Writes the bit group 'reg_test' of register 'USB_PHY_UTMI_REG_09'. */
  3408. void GH_USB_PHY_set_UTMI_REG_09_reg_test(U8 data);
  3409. /*! \brief Reads the bit group 'reg_test' of register 'USB_PHY_UTMI_REG_09'. */
  3410. U8 GH_USB_PHY_get_UTMI_REG_09_reg_test(void);
  3411. /*! \brief Writes the bit group 'ib_rterm_test' of register 'USB_PHY_UTMI_REG_09'. */
  3412. void GH_USB_PHY_set_UTMI_REG_09_ib_rterm_test(U8 data);
  3413. /*! \brief Reads the bit group 'ib_rterm_test' of register 'USB_PHY_UTMI_REG_09'. */
  3414. U8 GH_USB_PHY_get_UTMI_REG_09_ib_rterm_test(void);
  3415. /*! \brief Writes the bit group 'test_p1' of register 'USB_PHY_UTMI_REG_09'. */
  3416. void GH_USB_PHY_set_UTMI_REG_09_test_p1(U8 data);
  3417. /*! \brief Reads the bit group 'test_p1' of register 'USB_PHY_UTMI_REG_09'. */
  3418. U8 GH_USB_PHY_get_UTMI_REG_09_test_p1(void);
  3419. #else /* GH_INLINE_LEVEL == 0 */
  3420. GH_INLINE void GH_USB_PHY_set_UTMI_REG_09(U16 data)
  3421. {
  3422. *(volatile U16 *)REG_USB_PHY_UTMI_REG_09 = data;
  3423. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3424. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_09] <-- 0x%08x\n",
  3425. REG_USB_PHY_UTMI_REG_09,data,data);
  3426. #endif
  3427. }
  3428. GH_INLINE U16 GH_USB_PHY_get_UTMI_REG_09(void)
  3429. {
  3430. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_09);
  3431. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3432. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_09] --> 0x%08x\n",
  3433. REG_USB_PHY_UTMI_REG_09,value);
  3434. #endif
  3435. return value;
  3436. }
  3437. GH_INLINE void GH_USB_PHY_set_UTMI_REG_09_deglitch_prd(U8 data)
  3438. {
  3439. GH_USB_PHY_UTMI_REG_09_S d;
  3440. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_09;
  3441. d.bitc.deglitch_prd = data;
  3442. *(volatile U16 *)REG_USB_PHY_UTMI_REG_09 = d.all;
  3443. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3444. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_09_deglitch_prd] <-- 0x%08x\n",
  3445. REG_USB_PHY_UTMI_REG_09,d.all,d.all);
  3446. #endif
  3447. }
  3448. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_09_deglitch_prd(void)
  3449. {
  3450. GH_USB_PHY_UTMI_REG_09_S tmp_value;
  3451. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_09);
  3452. tmp_value.all = value;
  3453. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3454. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_09_deglitch_prd] --> 0x%08x\n",
  3455. REG_USB_PHY_UTMI_REG_09,value);
  3456. #endif
  3457. return tmp_value.bitc.deglitch_prd;
  3458. }
  3459. GH_INLINE void GH_USB_PHY_set_UTMI_REG_09_vdd2low_rst_enz(U8 data)
  3460. {
  3461. GH_USB_PHY_UTMI_REG_09_S d;
  3462. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_09;
  3463. d.bitc.vdd2low_rst_enz = data;
  3464. *(volatile U16 *)REG_USB_PHY_UTMI_REG_09 = d.all;
  3465. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3466. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_09_vdd2low_rst_enz] <-- 0x%08x\n",
  3467. REG_USB_PHY_UTMI_REG_09,d.all,d.all);
  3468. #endif
  3469. }
  3470. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_09_vdd2low_rst_enz(void)
  3471. {
  3472. GH_USB_PHY_UTMI_REG_09_S tmp_value;
  3473. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_09);
  3474. tmp_value.all = value;
  3475. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3476. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_09_vdd2low_rst_enz] --> 0x%08x\n",
  3477. REG_USB_PHY_UTMI_REG_09,value);
  3478. #endif
  3479. return tmp_value.bitc.vdd2low_rst_enz;
  3480. }
  3481. GH_INLINE void GH_USB_PHY_set_UTMI_REG_09_deglitch_enz(U8 data)
  3482. {
  3483. GH_USB_PHY_UTMI_REG_09_S d;
  3484. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_09;
  3485. d.bitc.deglitch_enz = data;
  3486. *(volatile U16 *)REG_USB_PHY_UTMI_REG_09 = d.all;
  3487. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3488. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_09_deglitch_enz] <-- 0x%08x\n",
  3489. REG_USB_PHY_UTMI_REG_09,d.all,d.all);
  3490. #endif
  3491. }
  3492. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_09_deglitch_enz(void)
  3493. {
  3494. GH_USB_PHY_UTMI_REG_09_S tmp_value;
  3495. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_09);
  3496. tmp_value.all = value;
  3497. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3498. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_09_deglitch_enz] --> 0x%08x\n",
  3499. REG_USB_PHY_UTMI_REG_09,value);
  3500. #endif
  3501. return tmp_value.bitc.deglitch_enz;
  3502. }
  3503. GH_INLINE void GH_USB_PHY_set_UTMI_REG_09_usbsyn_rst(U8 data)
  3504. {
  3505. GH_USB_PHY_UTMI_REG_09_S d;
  3506. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_09;
  3507. d.bitc.usbsyn_rst = data;
  3508. *(volatile U16 *)REG_USB_PHY_UTMI_REG_09 = d.all;
  3509. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3510. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_09_usbsyn_rst] <-- 0x%08x\n",
  3511. REG_USB_PHY_UTMI_REG_09,d.all,d.all);
  3512. #endif
  3513. }
  3514. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_09_usbsyn_rst(void)
  3515. {
  3516. GH_USB_PHY_UTMI_REG_09_S tmp_value;
  3517. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_09);
  3518. tmp_value.all = value;
  3519. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3520. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_09_usbsyn_rst] --> 0x%08x\n",
  3521. REG_USB_PHY_UTMI_REG_09,value);
  3522. #endif
  3523. return tmp_value.bitc.usbsyn_rst;
  3524. }
  3525. GH_INLINE void GH_USB_PHY_set_UTMI_REG_09_reg_test(U8 data)
  3526. {
  3527. GH_USB_PHY_UTMI_REG_09_S d;
  3528. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_09;
  3529. d.bitc.reg_test = data;
  3530. *(volatile U16 *)REG_USB_PHY_UTMI_REG_09 = d.all;
  3531. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3532. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_09_reg_test] <-- 0x%08x\n",
  3533. REG_USB_PHY_UTMI_REG_09,d.all,d.all);
  3534. #endif
  3535. }
  3536. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_09_reg_test(void)
  3537. {
  3538. GH_USB_PHY_UTMI_REG_09_S tmp_value;
  3539. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_09);
  3540. tmp_value.all = value;
  3541. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3542. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_09_reg_test] --> 0x%08x\n",
  3543. REG_USB_PHY_UTMI_REG_09,value);
  3544. #endif
  3545. return tmp_value.bitc.reg_test;
  3546. }
  3547. GH_INLINE void GH_USB_PHY_set_UTMI_REG_09_ib_rterm_test(U8 data)
  3548. {
  3549. GH_USB_PHY_UTMI_REG_09_S d;
  3550. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_09;
  3551. d.bitc.ib_rterm_test = data;
  3552. *(volatile U16 *)REG_USB_PHY_UTMI_REG_09 = d.all;
  3553. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3554. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_09_ib_rterm_test] <-- 0x%08x\n",
  3555. REG_USB_PHY_UTMI_REG_09,d.all,d.all);
  3556. #endif
  3557. }
  3558. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_09_ib_rterm_test(void)
  3559. {
  3560. GH_USB_PHY_UTMI_REG_09_S tmp_value;
  3561. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_09);
  3562. tmp_value.all = value;
  3563. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3564. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_09_ib_rterm_test] --> 0x%08x\n",
  3565. REG_USB_PHY_UTMI_REG_09,value);
  3566. #endif
  3567. return tmp_value.bitc.ib_rterm_test;
  3568. }
  3569. GH_INLINE void GH_USB_PHY_set_UTMI_REG_09_test_p1(U8 data)
  3570. {
  3571. GH_USB_PHY_UTMI_REG_09_S d;
  3572. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_09;
  3573. d.bitc.test_p1 = data;
  3574. *(volatile U16 *)REG_USB_PHY_UTMI_REG_09 = d.all;
  3575. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3576. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_09_test_p1] <-- 0x%08x\n",
  3577. REG_USB_PHY_UTMI_REG_09,d.all,d.all);
  3578. #endif
  3579. }
  3580. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_09_test_p1(void)
  3581. {
  3582. GH_USB_PHY_UTMI_REG_09_S tmp_value;
  3583. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_09);
  3584. tmp_value.all = value;
  3585. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3586. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_09_test_p1] --> 0x%08x\n",
  3587. REG_USB_PHY_UTMI_REG_09,value);
  3588. #endif
  3589. return tmp_value.bitc.test_p1;
  3590. }
  3591. #endif /* GH_INLINE_LEVEL == 0 */
  3592. /*----------------------------------------------------------------------------*/
  3593. /* register USB_PHY_UTMI_REG_0A (read/write) */
  3594. /*----------------------------------------------------------------------------*/
  3595. #if GH_INLINE_LEVEL == 0
  3596. /*! \brief Writes the register 'USB_PHY_UTMI_REG_0A'. */
  3597. void GH_USB_PHY_set_UTMI_REG_0A(U16 data);
  3598. /*! \brief Reads the register 'USB_PHY_UTMI_REG_0A'. */
  3599. U16 GH_USB_PHY_get_UTMI_REG_0A(void);
  3600. /*! \brief Writes the bit group 'vbusvalid' of register 'USB_PHY_UTMI_REG_0A'. */
  3601. void GH_USB_PHY_set_UTMI_REG_0A_vbusvalid(U8 data);
  3602. /*! \brief Reads the bit group 'vbusvalid' of register 'USB_PHY_UTMI_REG_0A'. */
  3603. U8 GH_USB_PHY_get_UTMI_REG_0A_vbusvalid(void);
  3604. /*! \brief Writes the bit group 'avalid' of register 'USB_PHY_UTMI_REG_0A'. */
  3605. void GH_USB_PHY_set_UTMI_REG_0A_avalid(U8 data);
  3606. /*! \brief Reads the bit group 'avalid' of register 'USB_PHY_UTMI_REG_0A'. */
  3607. U8 GH_USB_PHY_get_UTMI_REG_0A_avalid(void);
  3608. /*! \brief Writes the bit group 'sessend' of register 'USB_PHY_UTMI_REG_0A'. */
  3609. void GH_USB_PHY_set_UTMI_REG_0A_sessend(U8 data);
  3610. /*! \brief Reads the bit group 'sessend' of register 'USB_PHY_UTMI_REG_0A'. */
  3611. U8 GH_USB_PHY_get_UTMI_REG_0A_sessend(void);
  3612. /*! \brief Writes the bit group 'iddig' of register 'USB_PHY_UTMI_REG_0A'. */
  3613. void GH_USB_PHY_set_UTMI_REG_0A_iddig(U8 data);
  3614. /*! \brief Reads the bit group 'iddig' of register 'USB_PHY_UTMI_REG_0A'. */
  3615. U8 GH_USB_PHY_get_UTMI_REG_0A_iddig(void);
  3616. /*! \brief Writes the bit group 'opmode' of register 'USB_PHY_UTMI_REG_0A'. */
  3617. void GH_USB_PHY_set_UTMI_REG_0A_opmode(U8 data);
  3618. /*! \brief Reads the bit group 'opmode' of register 'USB_PHY_UTMI_REG_0A'. */
  3619. U8 GH_USB_PHY_get_UTMI_REG_0A_opmode(void);
  3620. /*! \brief Writes the bit group 'xcvrsel' of register 'USB_PHY_UTMI_REG_0A'. */
  3621. void GH_USB_PHY_set_UTMI_REG_0A_xcvrsel(U8 data);
  3622. /*! \brief Reads the bit group 'xcvrsel' of register 'USB_PHY_UTMI_REG_0A'. */
  3623. U8 GH_USB_PHY_get_UTMI_REG_0A_xcvrsel(void);
  3624. /*! \brief Writes the bit group 'termsel' of register 'USB_PHY_UTMI_REG_0A'. */
  3625. void GH_USB_PHY_set_UTMI_REG_0A_termsel(U8 data);
  3626. /*! \brief Reads the bit group 'termsel' of register 'USB_PHY_UTMI_REG_0A'. */
  3627. U8 GH_USB_PHY_get_UTMI_REG_0A_termsel(void);
  3628. /*! \brief Writes the bit group 'macmode_ovd' of register 'USB_PHY_UTMI_REG_0A'. */
  3629. void GH_USB_PHY_set_UTMI_REG_0A_macmode_ovd(U8 data);
  3630. /*! \brief Reads the bit group 'macmode_ovd' of register 'USB_PHY_UTMI_REG_0A'. */
  3631. U8 GH_USB_PHY_get_UTMI_REG_0A_macmode_ovd(void);
  3632. /*! \brief Writes the bit group 'suspendm' of register 'USB_PHY_UTMI_REG_0A'. */
  3633. void GH_USB_PHY_set_UTMI_REG_0A_suspendm(U8 data);
  3634. /*! \brief Reads the bit group 'suspendm' of register 'USB_PHY_UTMI_REG_0A'. */
  3635. U8 GH_USB_PHY_get_UTMI_REG_0A_suspendm(void);
  3636. /*! \brief Writes the bit group 'usb_bond_ovd' of register 'USB_PHY_UTMI_REG_0A'. */
  3637. void GH_USB_PHY_set_UTMI_REG_0A_usb_bond_ovd(U8 data);
  3638. /*! \brief Reads the bit group 'usb_bond_ovd' of register 'USB_PHY_UTMI_REG_0A'. */
  3639. U8 GH_USB_PHY_get_UTMI_REG_0A_usb_bond_ovd(void);
  3640. /*! \brief Writes the bit group 'usb_bond_set' of register 'USB_PHY_UTMI_REG_0A'. */
  3641. void GH_USB_PHY_set_UTMI_REG_0A_usb_bond_set(U8 data);
  3642. /*! \brief Reads the bit group 'usb_bond_set' of register 'USB_PHY_UTMI_REG_0A'. */
  3643. U8 GH_USB_PHY_get_UTMI_REG_0A_usb_bond_set(void);
  3644. /*! \brief Writes the bit group 'host_chirp_det' of register 'USB_PHY_UTMI_REG_0A'. */
  3645. void GH_USB_PHY_set_UTMI_REG_0A_host_chirp_det(U8 data);
  3646. /*! \brief Reads the bit group 'host_chirp_det' of register 'USB_PHY_UTMI_REG_0A'. */
  3647. U8 GH_USB_PHY_get_UTMI_REG_0A_host_chirp_det(void);
  3648. /*! \brief Writes the bit group 'hs_tx_ien_mask' of register 'USB_PHY_UTMI_REG_0A'. */
  3649. void GH_USB_PHY_set_UTMI_REG_0A_hs_tx_ien_mask(U8 data);
  3650. /*! \brief Reads the bit group 'hs_tx_ien_mask' of register 'USB_PHY_UTMI_REG_0A'. */
  3651. U8 GH_USB_PHY_get_UTMI_REG_0A_hs_tx_ien_mask(void);
  3652. /*! \brief Writes the bit group 'hs_tx_ien_mask_method' of register 'USB_PHY_UTMI_REG_0A'. */
  3653. void GH_USB_PHY_set_UTMI_REG_0A_hs_tx_ien_mask_method(U8 data);
  3654. /*! \brief Reads the bit group 'hs_tx_ien_mask_method' of register 'USB_PHY_UTMI_REG_0A'. */
  3655. U8 GH_USB_PHY_get_UTMI_REG_0A_hs_tx_ien_mask_method(void);
  3656. #else /* GH_INLINE_LEVEL == 0 */
  3657. GH_INLINE void GH_USB_PHY_set_UTMI_REG_0A(U16 data)
  3658. {
  3659. *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A = data;
  3660. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3661. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0A] <-- 0x%08x\n",
  3662. REG_USB_PHY_UTMI_REG_0A,data,data);
  3663. #endif
  3664. }
  3665. GH_INLINE U16 GH_USB_PHY_get_UTMI_REG_0A(void)
  3666. {
  3667. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0A);
  3668. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3669. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0A] --> 0x%08x\n",
  3670. REG_USB_PHY_UTMI_REG_0A,value);
  3671. #endif
  3672. return value;
  3673. }
  3674. GH_INLINE void GH_USB_PHY_set_UTMI_REG_0A_vbusvalid(U8 data)
  3675. {
  3676. GH_USB_PHY_UTMI_REG_0A_S d;
  3677. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A;
  3678. d.bitc.vbusvalid = data;
  3679. *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A = d.all;
  3680. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3681. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0A_vbusvalid] <-- 0x%08x\n",
  3682. REG_USB_PHY_UTMI_REG_0A,d.all,d.all);
  3683. #endif
  3684. }
  3685. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_0A_vbusvalid(void)
  3686. {
  3687. GH_USB_PHY_UTMI_REG_0A_S tmp_value;
  3688. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0A);
  3689. tmp_value.all = value;
  3690. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3691. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0A_vbusvalid] --> 0x%08x\n",
  3692. REG_USB_PHY_UTMI_REG_0A,value);
  3693. #endif
  3694. return tmp_value.bitc.vbusvalid;
  3695. }
  3696. GH_INLINE void GH_USB_PHY_set_UTMI_REG_0A_avalid(U8 data)
  3697. {
  3698. GH_USB_PHY_UTMI_REG_0A_S d;
  3699. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A;
  3700. d.bitc.avalid = data;
  3701. *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A = d.all;
  3702. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3703. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0A_avalid] <-- 0x%08x\n",
  3704. REG_USB_PHY_UTMI_REG_0A,d.all,d.all);
  3705. #endif
  3706. }
  3707. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_0A_avalid(void)
  3708. {
  3709. GH_USB_PHY_UTMI_REG_0A_S tmp_value;
  3710. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0A);
  3711. tmp_value.all = value;
  3712. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3713. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0A_avalid] --> 0x%08x\n",
  3714. REG_USB_PHY_UTMI_REG_0A,value);
  3715. #endif
  3716. return tmp_value.bitc.avalid;
  3717. }
  3718. GH_INLINE void GH_USB_PHY_set_UTMI_REG_0A_sessend(U8 data)
  3719. {
  3720. GH_USB_PHY_UTMI_REG_0A_S d;
  3721. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A;
  3722. d.bitc.sessend = data;
  3723. *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A = d.all;
  3724. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3725. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0A_sessend] <-- 0x%08x\n",
  3726. REG_USB_PHY_UTMI_REG_0A,d.all,d.all);
  3727. #endif
  3728. }
  3729. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_0A_sessend(void)
  3730. {
  3731. GH_USB_PHY_UTMI_REG_0A_S tmp_value;
  3732. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0A);
  3733. tmp_value.all = value;
  3734. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3735. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0A_sessend] --> 0x%08x\n",
  3736. REG_USB_PHY_UTMI_REG_0A,value);
  3737. #endif
  3738. return tmp_value.bitc.sessend;
  3739. }
  3740. GH_INLINE void GH_USB_PHY_set_UTMI_REG_0A_iddig(U8 data)
  3741. {
  3742. GH_USB_PHY_UTMI_REG_0A_S d;
  3743. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A;
  3744. d.bitc.iddig = data;
  3745. *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A = d.all;
  3746. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3747. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0A_iddig] <-- 0x%08x\n",
  3748. REG_USB_PHY_UTMI_REG_0A,d.all,d.all);
  3749. #endif
  3750. }
  3751. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_0A_iddig(void)
  3752. {
  3753. GH_USB_PHY_UTMI_REG_0A_S tmp_value;
  3754. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0A);
  3755. tmp_value.all = value;
  3756. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3757. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0A_iddig] --> 0x%08x\n",
  3758. REG_USB_PHY_UTMI_REG_0A,value);
  3759. #endif
  3760. return tmp_value.bitc.iddig;
  3761. }
  3762. GH_INLINE void GH_USB_PHY_set_UTMI_REG_0A_opmode(U8 data)
  3763. {
  3764. GH_USB_PHY_UTMI_REG_0A_S d;
  3765. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A;
  3766. d.bitc.opmode = data;
  3767. *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A = d.all;
  3768. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3769. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0A_opmode] <-- 0x%08x\n",
  3770. REG_USB_PHY_UTMI_REG_0A,d.all,d.all);
  3771. #endif
  3772. }
  3773. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_0A_opmode(void)
  3774. {
  3775. GH_USB_PHY_UTMI_REG_0A_S tmp_value;
  3776. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0A);
  3777. tmp_value.all = value;
  3778. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3779. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0A_opmode] --> 0x%08x\n",
  3780. REG_USB_PHY_UTMI_REG_0A,value);
  3781. #endif
  3782. return tmp_value.bitc.opmode;
  3783. }
  3784. GH_INLINE void GH_USB_PHY_set_UTMI_REG_0A_xcvrsel(U8 data)
  3785. {
  3786. GH_USB_PHY_UTMI_REG_0A_S d;
  3787. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A;
  3788. d.bitc.xcvrsel = data;
  3789. *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A = d.all;
  3790. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3791. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0A_xcvrsel] <-- 0x%08x\n",
  3792. REG_USB_PHY_UTMI_REG_0A,d.all,d.all);
  3793. #endif
  3794. }
  3795. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_0A_xcvrsel(void)
  3796. {
  3797. GH_USB_PHY_UTMI_REG_0A_S tmp_value;
  3798. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0A);
  3799. tmp_value.all = value;
  3800. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3801. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0A_xcvrsel] --> 0x%08x\n",
  3802. REG_USB_PHY_UTMI_REG_0A,value);
  3803. #endif
  3804. return tmp_value.bitc.xcvrsel;
  3805. }
  3806. GH_INLINE void GH_USB_PHY_set_UTMI_REG_0A_termsel(U8 data)
  3807. {
  3808. GH_USB_PHY_UTMI_REG_0A_S d;
  3809. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A;
  3810. d.bitc.termsel = data;
  3811. *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A = d.all;
  3812. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3813. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0A_termsel] <-- 0x%08x\n",
  3814. REG_USB_PHY_UTMI_REG_0A,d.all,d.all);
  3815. #endif
  3816. }
  3817. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_0A_termsel(void)
  3818. {
  3819. GH_USB_PHY_UTMI_REG_0A_S tmp_value;
  3820. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0A);
  3821. tmp_value.all = value;
  3822. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3823. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0A_termsel] --> 0x%08x\n",
  3824. REG_USB_PHY_UTMI_REG_0A,value);
  3825. #endif
  3826. return tmp_value.bitc.termsel;
  3827. }
  3828. GH_INLINE void GH_USB_PHY_set_UTMI_REG_0A_macmode_ovd(U8 data)
  3829. {
  3830. GH_USB_PHY_UTMI_REG_0A_S d;
  3831. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A;
  3832. d.bitc.macmode_ovd = data;
  3833. *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A = d.all;
  3834. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3835. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0A_macmode_ovd] <-- 0x%08x\n",
  3836. REG_USB_PHY_UTMI_REG_0A,d.all,d.all);
  3837. #endif
  3838. }
  3839. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_0A_macmode_ovd(void)
  3840. {
  3841. GH_USB_PHY_UTMI_REG_0A_S tmp_value;
  3842. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0A);
  3843. tmp_value.all = value;
  3844. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3845. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0A_macmode_ovd] --> 0x%08x\n",
  3846. REG_USB_PHY_UTMI_REG_0A,value);
  3847. #endif
  3848. return tmp_value.bitc.macmode_ovd;
  3849. }
  3850. GH_INLINE void GH_USB_PHY_set_UTMI_REG_0A_suspendm(U8 data)
  3851. {
  3852. GH_USB_PHY_UTMI_REG_0A_S d;
  3853. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A;
  3854. d.bitc.suspendm = data;
  3855. *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A = d.all;
  3856. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3857. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0A_suspendm] <-- 0x%08x\n",
  3858. REG_USB_PHY_UTMI_REG_0A,d.all,d.all);
  3859. #endif
  3860. }
  3861. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_0A_suspendm(void)
  3862. {
  3863. GH_USB_PHY_UTMI_REG_0A_S tmp_value;
  3864. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0A);
  3865. tmp_value.all = value;
  3866. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3867. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0A_suspendm] --> 0x%08x\n",
  3868. REG_USB_PHY_UTMI_REG_0A,value);
  3869. #endif
  3870. return tmp_value.bitc.suspendm;
  3871. }
  3872. GH_INLINE void GH_USB_PHY_set_UTMI_REG_0A_usb_bond_ovd(U8 data)
  3873. {
  3874. GH_USB_PHY_UTMI_REG_0A_S d;
  3875. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A;
  3876. d.bitc.usb_bond_ovd = data;
  3877. *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A = d.all;
  3878. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3879. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0A_usb_bond_ovd] <-- 0x%08x\n",
  3880. REG_USB_PHY_UTMI_REG_0A,d.all,d.all);
  3881. #endif
  3882. }
  3883. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_0A_usb_bond_ovd(void)
  3884. {
  3885. GH_USB_PHY_UTMI_REG_0A_S tmp_value;
  3886. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0A);
  3887. tmp_value.all = value;
  3888. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3889. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0A_usb_bond_ovd] --> 0x%08x\n",
  3890. REG_USB_PHY_UTMI_REG_0A,value);
  3891. #endif
  3892. return tmp_value.bitc.usb_bond_ovd;
  3893. }
  3894. GH_INLINE void GH_USB_PHY_set_UTMI_REG_0A_usb_bond_set(U8 data)
  3895. {
  3896. GH_USB_PHY_UTMI_REG_0A_S d;
  3897. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A;
  3898. d.bitc.usb_bond_set = data;
  3899. *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A = d.all;
  3900. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3901. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0A_usb_bond_set] <-- 0x%08x\n",
  3902. REG_USB_PHY_UTMI_REG_0A,d.all,d.all);
  3903. #endif
  3904. }
  3905. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_0A_usb_bond_set(void)
  3906. {
  3907. GH_USB_PHY_UTMI_REG_0A_S tmp_value;
  3908. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0A);
  3909. tmp_value.all = value;
  3910. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3911. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0A_usb_bond_set] --> 0x%08x\n",
  3912. REG_USB_PHY_UTMI_REG_0A,value);
  3913. #endif
  3914. return tmp_value.bitc.usb_bond_set;
  3915. }
  3916. GH_INLINE void GH_USB_PHY_set_UTMI_REG_0A_host_chirp_det(U8 data)
  3917. {
  3918. GH_USB_PHY_UTMI_REG_0A_S d;
  3919. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A;
  3920. d.bitc.host_chirp_det = data;
  3921. *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A = d.all;
  3922. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3923. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0A_host_chirp_det] <-- 0x%08x\n",
  3924. REG_USB_PHY_UTMI_REG_0A,d.all,d.all);
  3925. #endif
  3926. }
  3927. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_0A_host_chirp_det(void)
  3928. {
  3929. GH_USB_PHY_UTMI_REG_0A_S tmp_value;
  3930. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0A);
  3931. tmp_value.all = value;
  3932. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3933. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0A_host_chirp_det] --> 0x%08x\n",
  3934. REG_USB_PHY_UTMI_REG_0A,value);
  3935. #endif
  3936. return tmp_value.bitc.host_chirp_det;
  3937. }
  3938. GH_INLINE void GH_USB_PHY_set_UTMI_REG_0A_hs_tx_ien_mask(U8 data)
  3939. {
  3940. GH_USB_PHY_UTMI_REG_0A_S d;
  3941. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A;
  3942. d.bitc.hs_tx_ien_mask = data;
  3943. *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A = d.all;
  3944. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3945. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0A_hs_tx_ien_mask] <-- 0x%08x\n",
  3946. REG_USB_PHY_UTMI_REG_0A,d.all,d.all);
  3947. #endif
  3948. }
  3949. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_0A_hs_tx_ien_mask(void)
  3950. {
  3951. GH_USB_PHY_UTMI_REG_0A_S tmp_value;
  3952. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0A);
  3953. tmp_value.all = value;
  3954. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3955. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0A_hs_tx_ien_mask] --> 0x%08x\n",
  3956. REG_USB_PHY_UTMI_REG_0A,value);
  3957. #endif
  3958. return tmp_value.bitc.hs_tx_ien_mask;
  3959. }
  3960. GH_INLINE void GH_USB_PHY_set_UTMI_REG_0A_hs_tx_ien_mask_method(U8 data)
  3961. {
  3962. GH_USB_PHY_UTMI_REG_0A_S d;
  3963. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A;
  3964. d.bitc.hs_tx_ien_mask_method = data;
  3965. *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A = d.all;
  3966. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3967. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0A_hs_tx_ien_mask_method] <-- 0x%08x\n",
  3968. REG_USB_PHY_UTMI_REG_0A,d.all,d.all);
  3969. #endif
  3970. }
  3971. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_0A_hs_tx_ien_mask_method(void)
  3972. {
  3973. GH_USB_PHY_UTMI_REG_0A_S tmp_value;
  3974. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0A);
  3975. tmp_value.all = value;
  3976. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  3977. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0A_hs_tx_ien_mask_method] --> 0x%08x\n",
  3978. REG_USB_PHY_UTMI_REG_0A,value);
  3979. #endif
  3980. return tmp_value.bitc.hs_tx_ien_mask_method;
  3981. }
  3982. #endif /* GH_INLINE_LEVEL == 0 */
  3983. /*----------------------------------------------------------------------------*/
  3984. /* register USB_PHY_UTMI_REG_0B (read/write) */
  3985. /*----------------------------------------------------------------------------*/
  3986. #if GH_INLINE_LEVEL == 0
  3987. /*! \brief Writes the register 'USB_PHY_UTMI_REG_0B'. */
  3988. void GH_USB_PHY_set_UTMI_REG_0B(U16 data);
  3989. /*! \brief Reads the register 'USB_PHY_UTMI_REG_0B'. */
  3990. U16 GH_USB_PHY_get_UTMI_REG_0B(void);
  3991. /*! \brief Writes the bit group 'f' of register 'USB_PHY_UTMI_REG_0B'. */
  3992. void GH_USB_PHY_set_UTMI_REG_0B_f(U16 data);
  3993. /*! \brief Reads the bit group 'f' of register 'USB_PHY_UTMI_REG_0B'. */
  3994. U16 GH_USB_PHY_get_UTMI_REG_0B_f(void);
  3995. /*! \brief Writes the bit group 'N' of register 'USB_PHY_UTMI_REG_0B'. */
  3996. void GH_USB_PHY_set_UTMI_REG_0B_N(U8 data);
  3997. /*! \brief Reads the bit group 'N' of register 'USB_PHY_UTMI_REG_0B'. */
  3998. U8 GH_USB_PHY_get_UTMI_REG_0B_N(void);
  3999. #else /* GH_INLINE_LEVEL == 0 */
  4000. GH_INLINE void GH_USB_PHY_set_UTMI_REG_0B(U16 data)
  4001. {
  4002. *(volatile U16 *)REG_USB_PHY_UTMI_REG_0B = data;
  4003. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4004. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0B] <-- 0x%08x\n",
  4005. REG_USB_PHY_UTMI_REG_0B,data,data);
  4006. #endif
  4007. }
  4008. GH_INLINE U16 GH_USB_PHY_get_UTMI_REG_0B(void)
  4009. {
  4010. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0B);
  4011. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4012. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0B] --> 0x%08x\n",
  4013. REG_USB_PHY_UTMI_REG_0B,value);
  4014. #endif
  4015. return value;
  4016. }
  4017. GH_INLINE void GH_USB_PHY_set_UTMI_REG_0B_f(U16 data)
  4018. {
  4019. GH_USB_PHY_UTMI_REG_0B_S d;
  4020. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0B;
  4021. d.bitc.f = data;
  4022. *(volatile U16 *)REG_USB_PHY_UTMI_REG_0B = d.all;
  4023. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4024. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0B_f] <-- 0x%08x\n",
  4025. REG_USB_PHY_UTMI_REG_0B,d.all,d.all);
  4026. #endif
  4027. }
  4028. GH_INLINE U16 GH_USB_PHY_get_UTMI_REG_0B_f(void)
  4029. {
  4030. GH_USB_PHY_UTMI_REG_0B_S tmp_value;
  4031. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0B);
  4032. tmp_value.all = value;
  4033. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4034. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0B_f] --> 0x%08x\n",
  4035. REG_USB_PHY_UTMI_REG_0B,value);
  4036. #endif
  4037. return tmp_value.bitc.f;
  4038. }
  4039. GH_INLINE void GH_USB_PHY_set_UTMI_REG_0B_N(U8 data)
  4040. {
  4041. GH_USB_PHY_UTMI_REG_0B_S d;
  4042. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0B;
  4043. d.bitc.n = data;
  4044. *(volatile U16 *)REG_USB_PHY_UTMI_REG_0B = d.all;
  4045. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4046. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0B_N] <-- 0x%08x\n",
  4047. REG_USB_PHY_UTMI_REG_0B,d.all,d.all);
  4048. #endif
  4049. }
  4050. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_0B_N(void)
  4051. {
  4052. GH_USB_PHY_UTMI_REG_0B_S tmp_value;
  4053. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0B);
  4054. tmp_value.all = value;
  4055. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4056. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0B_N] --> 0x%08x\n",
  4057. REG_USB_PHY_UTMI_REG_0B,value);
  4058. #endif
  4059. return tmp_value.bitc.n;
  4060. }
  4061. #endif /* GH_INLINE_LEVEL == 0 */
  4062. /*----------------------------------------------------------------------------*/
  4063. /* register USB_PHY_UTMI_REG_0C (read/write) */
  4064. /*----------------------------------------------------------------------------*/
  4065. #if GH_INLINE_LEVEL == 0
  4066. /*! \brief Writes the register 'USB_PHY_UTMI_REG_0C'. */
  4067. void GH_USB_PHY_set_UTMI_REG_0C(U16 data);
  4068. /*! \brief Reads the register 'USB_PHY_UTMI_REG_0C'. */
  4069. U16 GH_USB_PHY_get_UTMI_REG_0C(void);
  4070. /*! \brief Writes the bit group 'f' of register 'USB_PHY_UTMI_REG_0C'. */
  4071. void GH_USB_PHY_set_UTMI_REG_0C_f(U16 data);
  4072. /*! \brief Reads the bit group 'f' of register 'USB_PHY_UTMI_REG_0C'. */
  4073. U16 GH_USB_PHY_get_UTMI_REG_0C_f(void);
  4074. #else /* GH_INLINE_LEVEL == 0 */
  4075. GH_INLINE void GH_USB_PHY_set_UTMI_REG_0C(U16 data)
  4076. {
  4077. *(volatile U16 *)REG_USB_PHY_UTMI_REG_0C = data;
  4078. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4079. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0C] <-- 0x%08x\n",
  4080. REG_USB_PHY_UTMI_REG_0C,data,data);
  4081. #endif
  4082. }
  4083. GH_INLINE U16 GH_USB_PHY_get_UTMI_REG_0C(void)
  4084. {
  4085. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0C);
  4086. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4087. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0C] --> 0x%08x\n",
  4088. REG_USB_PHY_UTMI_REG_0C,value);
  4089. #endif
  4090. return value;
  4091. }
  4092. GH_INLINE void GH_USB_PHY_set_UTMI_REG_0C_f(U16 data)
  4093. {
  4094. GH_USB_PHY_UTMI_REG_0C_S d;
  4095. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0C;
  4096. d.bitc.f = data;
  4097. *(volatile U16 *)REG_USB_PHY_UTMI_REG_0C = d.all;
  4098. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4099. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0C_f] <-- 0x%08x\n",
  4100. REG_USB_PHY_UTMI_REG_0C,d.all,d.all);
  4101. #endif
  4102. }
  4103. GH_INLINE U16 GH_USB_PHY_get_UTMI_REG_0C_f(void)
  4104. {
  4105. GH_USB_PHY_UTMI_REG_0C_S tmp_value;
  4106. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0C);
  4107. tmp_value.all = value;
  4108. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4109. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0C_f] --> 0x%08x\n",
  4110. REG_USB_PHY_UTMI_REG_0C,value);
  4111. #endif
  4112. return tmp_value.bitc.f;
  4113. }
  4114. #endif /* GH_INLINE_LEVEL == 0 */
  4115. /*----------------------------------------------------------------------------*/
  4116. /* register USB_PHY_UTMI_REG10 (read/write) */
  4117. /*----------------------------------------------------------------------------*/
  4118. #if GH_INLINE_LEVEL == 0
  4119. /*! \brief Writes the register 'USB_PHY_UTMI_REG10'. */
  4120. void GH_USB_PHY_set_UTMI_REG10(U16 data);
  4121. /*! \brief Reads the register 'USB_PHY_UTMI_REG10'. */
  4122. U16 GH_USB_PHY_get_UTMI_REG10(void);
  4123. /*! \brief Writes the bit group 'input_clock' of register 'USB_PHY_UTMI_REG10'. */
  4124. void GH_USB_PHY_set_UTMI_REG10_input_clock(U8 data);
  4125. /*! \brief Reads the bit group 'input_clock' of register 'USB_PHY_UTMI_REG10'. */
  4126. U8 GH_USB_PHY_get_UTMI_REG10_input_clock(void);
  4127. /*! \brief Writes the bit group 'divider_selection' of register 'USB_PHY_UTMI_REG10'. */
  4128. void GH_USB_PHY_set_UTMI_REG10_divider_selection(U8 data);
  4129. /*! \brief Reads the bit group 'divider_selection' of register 'USB_PHY_UTMI_REG10'. */
  4130. U8 GH_USB_PHY_get_UTMI_REG10_divider_selection(void);
  4131. /*! \brief Writes the bit group 'divider_control' of register 'USB_PHY_UTMI_REG10'. */
  4132. void GH_USB_PHY_set_UTMI_REG10_divider_control(U8 data);
  4133. /*! \brief Reads the bit group 'divider_control' of register 'USB_PHY_UTMI_REG10'. */
  4134. U8 GH_USB_PHY_get_UTMI_REG10_divider_control(void);
  4135. /*! \brief Writes the bit group 'clock_outputs_source' of register 'USB_PHY_UTMI_REG10'. */
  4136. void GH_USB_PHY_set_UTMI_REG10_clock_outputs_source(U8 data);
  4137. /*! \brief Reads the bit group 'clock_outputs_source' of register 'USB_PHY_UTMI_REG10'. */
  4138. U8 GH_USB_PHY_get_UTMI_REG10_clock_outputs_source(void);
  4139. /*! \brief Writes the bit group 'clock_outputs_ratio' of register 'USB_PHY_UTMI_REG10'. */
  4140. void GH_USB_PHY_set_UTMI_REG10_clock_outputs_ratio(U8 data);
  4141. /*! \brief Reads the bit group 'clock_outputs_ratio' of register 'USB_PHY_UTMI_REG10'. */
  4142. U8 GH_USB_PHY_get_UTMI_REG10_clock_outputs_ratio(void);
  4143. /*! \brief Writes the bit group 'digital_output' of register 'USB_PHY_UTMI_REG10'. */
  4144. void GH_USB_PHY_set_UTMI_REG10_digital_output(U8 data);
  4145. /*! \brief Reads the bit group 'digital_output' of register 'USB_PHY_UTMI_REG10'. */
  4146. U8 GH_USB_PHY_get_UTMI_REG10_digital_output(void);
  4147. /*! \brief Writes the bit group 'transmitter' of register 'USB_PHY_UTMI_REG10'. */
  4148. void GH_USB_PHY_set_UTMI_REG10_transmitter(U8 data);
  4149. /*! \brief Reads the bit group 'transmitter' of register 'USB_PHY_UTMI_REG10'. */
  4150. U8 GH_USB_PHY_get_UTMI_REG10_transmitter(void);
  4151. #else /* GH_INLINE_LEVEL == 0 */
  4152. GH_INLINE void GH_USB_PHY_set_UTMI_REG10(U16 data)
  4153. {
  4154. *(volatile U16 *)REG_USB_PHY_UTMI_REG10 = data;
  4155. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4156. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG10] <-- 0x%08x\n",
  4157. REG_USB_PHY_UTMI_REG10,data,data);
  4158. #endif
  4159. }
  4160. GH_INLINE U16 GH_USB_PHY_get_UTMI_REG10(void)
  4161. {
  4162. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG10);
  4163. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4164. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG10] --> 0x%08x\n",
  4165. REG_USB_PHY_UTMI_REG10,value);
  4166. #endif
  4167. return value;
  4168. }
  4169. GH_INLINE void GH_USB_PHY_set_UTMI_REG10_input_clock(U8 data)
  4170. {
  4171. GH_USB_PHY_UTMI_REG10_S d;
  4172. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG10;
  4173. d.bitc.input_clock = data;
  4174. *(volatile U16 *)REG_USB_PHY_UTMI_REG10 = d.all;
  4175. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4176. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG10_input_clock] <-- 0x%08x\n",
  4177. REG_USB_PHY_UTMI_REG10,d.all,d.all);
  4178. #endif
  4179. }
  4180. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG10_input_clock(void)
  4181. {
  4182. GH_USB_PHY_UTMI_REG10_S tmp_value;
  4183. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG10);
  4184. tmp_value.all = value;
  4185. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4186. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG10_input_clock] --> 0x%08x\n",
  4187. REG_USB_PHY_UTMI_REG10,value);
  4188. #endif
  4189. return tmp_value.bitc.input_clock;
  4190. }
  4191. GH_INLINE void GH_USB_PHY_set_UTMI_REG10_divider_selection(U8 data)
  4192. {
  4193. GH_USB_PHY_UTMI_REG10_S d;
  4194. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG10;
  4195. d.bitc.divider_selection = data;
  4196. *(volatile U16 *)REG_USB_PHY_UTMI_REG10 = d.all;
  4197. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4198. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG10_divider_selection] <-- 0x%08x\n",
  4199. REG_USB_PHY_UTMI_REG10,d.all,d.all);
  4200. #endif
  4201. }
  4202. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG10_divider_selection(void)
  4203. {
  4204. GH_USB_PHY_UTMI_REG10_S tmp_value;
  4205. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG10);
  4206. tmp_value.all = value;
  4207. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4208. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG10_divider_selection] --> 0x%08x\n",
  4209. REG_USB_PHY_UTMI_REG10,value);
  4210. #endif
  4211. return tmp_value.bitc.divider_selection;
  4212. }
  4213. GH_INLINE void GH_USB_PHY_set_UTMI_REG10_divider_control(U8 data)
  4214. {
  4215. GH_USB_PHY_UTMI_REG10_S d;
  4216. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG10;
  4217. d.bitc.divider_control = data;
  4218. *(volatile U16 *)REG_USB_PHY_UTMI_REG10 = d.all;
  4219. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4220. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG10_divider_control] <-- 0x%08x\n",
  4221. REG_USB_PHY_UTMI_REG10,d.all,d.all);
  4222. #endif
  4223. }
  4224. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG10_divider_control(void)
  4225. {
  4226. GH_USB_PHY_UTMI_REG10_S tmp_value;
  4227. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG10);
  4228. tmp_value.all = value;
  4229. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4230. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG10_divider_control] --> 0x%08x\n",
  4231. REG_USB_PHY_UTMI_REG10,value);
  4232. #endif
  4233. return tmp_value.bitc.divider_control;
  4234. }
  4235. GH_INLINE void GH_USB_PHY_set_UTMI_REG10_clock_outputs_source(U8 data)
  4236. {
  4237. GH_USB_PHY_UTMI_REG10_S d;
  4238. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG10;
  4239. d.bitc.clock_outputs_source = data;
  4240. *(volatile U16 *)REG_USB_PHY_UTMI_REG10 = d.all;
  4241. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4242. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG10_clock_outputs_source] <-- 0x%08x\n",
  4243. REG_USB_PHY_UTMI_REG10,d.all,d.all);
  4244. #endif
  4245. }
  4246. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG10_clock_outputs_source(void)
  4247. {
  4248. GH_USB_PHY_UTMI_REG10_S tmp_value;
  4249. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG10);
  4250. tmp_value.all = value;
  4251. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4252. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG10_clock_outputs_source] --> 0x%08x\n",
  4253. REG_USB_PHY_UTMI_REG10,value);
  4254. #endif
  4255. return tmp_value.bitc.clock_outputs_source;
  4256. }
  4257. GH_INLINE void GH_USB_PHY_set_UTMI_REG10_clock_outputs_ratio(U8 data)
  4258. {
  4259. GH_USB_PHY_UTMI_REG10_S d;
  4260. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG10;
  4261. d.bitc.clock_outputs_ratio = data;
  4262. *(volatile U16 *)REG_USB_PHY_UTMI_REG10 = d.all;
  4263. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4264. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG10_clock_outputs_ratio] <-- 0x%08x\n",
  4265. REG_USB_PHY_UTMI_REG10,d.all,d.all);
  4266. #endif
  4267. }
  4268. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG10_clock_outputs_ratio(void)
  4269. {
  4270. GH_USB_PHY_UTMI_REG10_S tmp_value;
  4271. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG10);
  4272. tmp_value.all = value;
  4273. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4274. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG10_clock_outputs_ratio] --> 0x%08x\n",
  4275. REG_USB_PHY_UTMI_REG10,value);
  4276. #endif
  4277. return tmp_value.bitc.clock_outputs_ratio;
  4278. }
  4279. GH_INLINE void GH_USB_PHY_set_UTMI_REG10_digital_output(U8 data)
  4280. {
  4281. GH_USB_PHY_UTMI_REG10_S d;
  4282. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG10;
  4283. d.bitc.digital_output = data;
  4284. *(volatile U16 *)REG_USB_PHY_UTMI_REG10 = d.all;
  4285. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4286. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG10_digital_output] <-- 0x%08x\n",
  4287. REG_USB_PHY_UTMI_REG10,d.all,d.all);
  4288. #endif
  4289. }
  4290. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG10_digital_output(void)
  4291. {
  4292. GH_USB_PHY_UTMI_REG10_S tmp_value;
  4293. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG10);
  4294. tmp_value.all = value;
  4295. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4296. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG10_digital_output] --> 0x%08x\n",
  4297. REG_USB_PHY_UTMI_REG10,value);
  4298. #endif
  4299. return tmp_value.bitc.digital_output;
  4300. }
  4301. GH_INLINE void GH_USB_PHY_set_UTMI_REG10_transmitter(U8 data)
  4302. {
  4303. GH_USB_PHY_UTMI_REG10_S d;
  4304. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG10;
  4305. d.bitc.transmitter = data;
  4306. *(volatile U16 *)REG_USB_PHY_UTMI_REG10 = d.all;
  4307. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4308. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG10_transmitter] <-- 0x%08x\n",
  4309. REG_USB_PHY_UTMI_REG10,d.all,d.all);
  4310. #endif
  4311. }
  4312. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG10_transmitter(void)
  4313. {
  4314. GH_USB_PHY_UTMI_REG10_S tmp_value;
  4315. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG10);
  4316. tmp_value.all = value;
  4317. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4318. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG10_transmitter] --> 0x%08x\n",
  4319. REG_USB_PHY_UTMI_REG10,value);
  4320. #endif
  4321. return tmp_value.bitc.transmitter;
  4322. }
  4323. #endif /* GH_INLINE_LEVEL == 0 */
  4324. /*----------------------------------------------------------------------------*/
  4325. /* register USB_PHY_UTMI_REG11 (read/write) */
  4326. /*----------------------------------------------------------------------------*/
  4327. #if GH_INLINE_LEVEL == 0
  4328. /*! \brief Writes the register 'USB_PHY_UTMI_REG11'. */
  4329. void GH_USB_PHY_set_UTMI_REG11(U16 data);
  4330. /*! \brief Reads the register 'USB_PHY_UTMI_REG11'. */
  4331. U16 GH_USB_PHY_get_UTMI_REG11(void);
  4332. /*! \brief Writes the bit group 'ENDISC' of register 'USB_PHY_UTMI_REG11'. */
  4333. void GH_USB_PHY_set_UTMI_REG11_ENDISC(U8 data);
  4334. /*! \brief Reads the bit group 'ENDISC' of register 'USB_PHY_UTMI_REG11'. */
  4335. U8 GH_USB_PHY_get_UTMI_REG11_ENDISC(void);
  4336. /*! \brief Writes the bit group 'EXTDISC' of register 'USB_PHY_UTMI_REG11'. */
  4337. void GH_USB_PHY_set_UTMI_REG11_EXTDISC(U8 data);
  4338. /*! \brief Reads the bit group 'EXTDISC' of register 'USB_PHY_UTMI_REG11'. */
  4339. U8 GH_USB_PHY_get_UTMI_REG11_EXTDISC(void);
  4340. /*! \brief Writes the bit group 'ENLOCKZ' of register 'USB_PHY_UTMI_REG11'. */
  4341. void GH_USB_PHY_set_UTMI_REG11_ENLOCKZ(U8 data);
  4342. /*! \brief Reads the bit group 'ENLOCKZ' of register 'USB_PHY_UTMI_REG11'. */
  4343. U8 GH_USB_PHY_get_UTMI_REG11_ENLOCKZ(void);
  4344. /*! \brief Writes the bit group 'ENAUTO' of register 'USB_PHY_UTMI_REG11'. */
  4345. void GH_USB_PHY_set_UTMI_REG11_ENAUTO(U8 data);
  4346. /*! \brief Reads the bit group 'ENAUTO' of register 'USB_PHY_UTMI_REG11'. */
  4347. U8 GH_USB_PHY_get_UTMI_REG11_ENAUTO(void);
  4348. /*! \brief Writes the bit group 'ENDCC' of register 'USB_PHY_UTMI_REG11'. */
  4349. void GH_USB_PHY_set_UTMI_REG11_ENDCC(U8 data);
  4350. /*! \brief Reads the bit group 'ENDCC' of register 'USB_PHY_UTMI_REG11'. */
  4351. U8 GH_USB_PHY_get_UTMI_REG11_ENDCC(void);
  4352. /*! \brief Writes the bit group 'TVCO' of register 'USB_PHY_UTMI_REG11'. */
  4353. void GH_USB_PHY_set_UTMI_REG11_TVCO(U8 data);
  4354. /*! \brief Reads the bit group 'TVCO' of register 'USB_PHY_UTMI_REG11'. */
  4355. U8 GH_USB_PHY_get_UTMI_REG11_TVCO(void);
  4356. /*! \brief Writes the bit group 'output_source' of register 'USB_PHY_UTMI_REG11'. */
  4357. void GH_USB_PHY_set_UTMI_REG11_output_source(U8 data);
  4358. /*! \brief Reads the bit group 'output_source' of register 'USB_PHY_UTMI_REG11'. */
  4359. U8 GH_USB_PHY_get_UTMI_REG11_output_source(void);
  4360. /*! \brief Writes the bit group 'ENINV' of register 'USB_PHY_UTMI_REG11'. */
  4361. void GH_USB_PHY_set_UTMI_REG11_ENINV(U8 data);
  4362. /*! \brief Reads the bit group 'ENINV' of register 'USB_PHY_UTMI_REG11'. */
  4363. U8 GH_USB_PHY_get_UTMI_REG11_ENINV(void);
  4364. /*! \brief Writes the bit group 'ENINVENTMUX' of register 'USB_PHY_UTMI_REG11'. */
  4365. void GH_USB_PHY_set_UTMI_REG11_ENINVENTMUX(U8 data);
  4366. /*! \brief Reads the bit group 'ENINVENTMUX' of register 'USB_PHY_UTMI_REG11'. */
  4367. U8 GH_USB_PHY_get_UTMI_REG11_ENINVENTMUX(void);
  4368. /*! \brief Writes the bit group 'input_clock' of register 'USB_PHY_UTMI_REG11'. */
  4369. void GH_USB_PHY_set_UTMI_REG11_input_clock(U8 data);
  4370. /*! \brief Reads the bit group 'input_clock' of register 'USB_PHY_UTMI_REG11'. */
  4371. U8 GH_USB_PHY_get_UTMI_REG11_input_clock(void);
  4372. #else /* GH_INLINE_LEVEL == 0 */
  4373. GH_INLINE void GH_USB_PHY_set_UTMI_REG11(U16 data)
  4374. {
  4375. *(volatile U16 *)REG_USB_PHY_UTMI_REG11 = data;
  4376. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4377. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG11] <-- 0x%08x\n",
  4378. REG_USB_PHY_UTMI_REG11,data,data);
  4379. #endif
  4380. }
  4381. GH_INLINE U16 GH_USB_PHY_get_UTMI_REG11(void)
  4382. {
  4383. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG11);
  4384. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4385. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG11] --> 0x%08x\n",
  4386. REG_USB_PHY_UTMI_REG11,value);
  4387. #endif
  4388. return value;
  4389. }
  4390. GH_INLINE void GH_USB_PHY_set_UTMI_REG11_ENDISC(U8 data)
  4391. {
  4392. GH_USB_PHY_UTMI_REG11_S d;
  4393. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG11;
  4394. d.bitc.endisc = data;
  4395. *(volatile U16 *)REG_USB_PHY_UTMI_REG11 = d.all;
  4396. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4397. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG11_ENDISC] <-- 0x%08x\n",
  4398. REG_USB_PHY_UTMI_REG11,d.all,d.all);
  4399. #endif
  4400. }
  4401. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG11_ENDISC(void)
  4402. {
  4403. GH_USB_PHY_UTMI_REG11_S tmp_value;
  4404. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG11);
  4405. tmp_value.all = value;
  4406. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4407. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG11_ENDISC] --> 0x%08x\n",
  4408. REG_USB_PHY_UTMI_REG11,value);
  4409. #endif
  4410. return tmp_value.bitc.endisc;
  4411. }
  4412. GH_INLINE void GH_USB_PHY_set_UTMI_REG11_EXTDISC(U8 data)
  4413. {
  4414. GH_USB_PHY_UTMI_REG11_S d;
  4415. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG11;
  4416. d.bitc.extdisc = data;
  4417. *(volatile U16 *)REG_USB_PHY_UTMI_REG11 = d.all;
  4418. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4419. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG11_EXTDISC] <-- 0x%08x\n",
  4420. REG_USB_PHY_UTMI_REG11,d.all,d.all);
  4421. #endif
  4422. }
  4423. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG11_EXTDISC(void)
  4424. {
  4425. GH_USB_PHY_UTMI_REG11_S tmp_value;
  4426. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG11);
  4427. tmp_value.all = value;
  4428. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4429. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG11_EXTDISC] --> 0x%08x\n",
  4430. REG_USB_PHY_UTMI_REG11,value);
  4431. #endif
  4432. return tmp_value.bitc.extdisc;
  4433. }
  4434. GH_INLINE void GH_USB_PHY_set_UTMI_REG11_ENLOCKZ(U8 data)
  4435. {
  4436. GH_USB_PHY_UTMI_REG11_S d;
  4437. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG11;
  4438. d.bitc.enlockz = data;
  4439. *(volatile U16 *)REG_USB_PHY_UTMI_REG11 = d.all;
  4440. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4441. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG11_ENLOCKZ] <-- 0x%08x\n",
  4442. REG_USB_PHY_UTMI_REG11,d.all,d.all);
  4443. #endif
  4444. }
  4445. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG11_ENLOCKZ(void)
  4446. {
  4447. GH_USB_PHY_UTMI_REG11_S tmp_value;
  4448. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG11);
  4449. tmp_value.all = value;
  4450. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4451. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG11_ENLOCKZ] --> 0x%08x\n",
  4452. REG_USB_PHY_UTMI_REG11,value);
  4453. #endif
  4454. return tmp_value.bitc.enlockz;
  4455. }
  4456. GH_INLINE void GH_USB_PHY_set_UTMI_REG11_ENAUTO(U8 data)
  4457. {
  4458. GH_USB_PHY_UTMI_REG11_S d;
  4459. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG11;
  4460. d.bitc.enauto = data;
  4461. *(volatile U16 *)REG_USB_PHY_UTMI_REG11 = d.all;
  4462. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4463. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG11_ENAUTO] <-- 0x%08x\n",
  4464. REG_USB_PHY_UTMI_REG11,d.all,d.all);
  4465. #endif
  4466. }
  4467. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG11_ENAUTO(void)
  4468. {
  4469. GH_USB_PHY_UTMI_REG11_S tmp_value;
  4470. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG11);
  4471. tmp_value.all = value;
  4472. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4473. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG11_ENAUTO] --> 0x%08x\n",
  4474. REG_USB_PHY_UTMI_REG11,value);
  4475. #endif
  4476. return tmp_value.bitc.enauto;
  4477. }
  4478. GH_INLINE void GH_USB_PHY_set_UTMI_REG11_ENDCC(U8 data)
  4479. {
  4480. GH_USB_PHY_UTMI_REG11_S d;
  4481. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG11;
  4482. d.bitc.endcc = data;
  4483. *(volatile U16 *)REG_USB_PHY_UTMI_REG11 = d.all;
  4484. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4485. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG11_ENDCC] <-- 0x%08x\n",
  4486. REG_USB_PHY_UTMI_REG11,d.all,d.all);
  4487. #endif
  4488. }
  4489. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG11_ENDCC(void)
  4490. {
  4491. GH_USB_PHY_UTMI_REG11_S tmp_value;
  4492. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG11);
  4493. tmp_value.all = value;
  4494. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4495. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG11_ENDCC] --> 0x%08x\n",
  4496. REG_USB_PHY_UTMI_REG11,value);
  4497. #endif
  4498. return tmp_value.bitc.endcc;
  4499. }
  4500. GH_INLINE void GH_USB_PHY_set_UTMI_REG11_TVCO(U8 data)
  4501. {
  4502. GH_USB_PHY_UTMI_REG11_S d;
  4503. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG11;
  4504. d.bitc.tvco = data;
  4505. *(volatile U16 *)REG_USB_PHY_UTMI_REG11 = d.all;
  4506. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4507. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG11_TVCO] <-- 0x%08x\n",
  4508. REG_USB_PHY_UTMI_REG11,d.all,d.all);
  4509. #endif
  4510. }
  4511. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG11_TVCO(void)
  4512. {
  4513. GH_USB_PHY_UTMI_REG11_S tmp_value;
  4514. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG11);
  4515. tmp_value.all = value;
  4516. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4517. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG11_TVCO] --> 0x%08x\n",
  4518. REG_USB_PHY_UTMI_REG11,value);
  4519. #endif
  4520. return tmp_value.bitc.tvco;
  4521. }
  4522. GH_INLINE void GH_USB_PHY_set_UTMI_REG11_output_source(U8 data)
  4523. {
  4524. GH_USB_PHY_UTMI_REG11_S d;
  4525. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG11;
  4526. d.bitc.output_source = data;
  4527. *(volatile U16 *)REG_USB_PHY_UTMI_REG11 = d.all;
  4528. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4529. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG11_output_source] <-- 0x%08x\n",
  4530. REG_USB_PHY_UTMI_REG11,d.all,d.all);
  4531. #endif
  4532. }
  4533. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG11_output_source(void)
  4534. {
  4535. GH_USB_PHY_UTMI_REG11_S tmp_value;
  4536. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG11);
  4537. tmp_value.all = value;
  4538. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4539. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG11_output_source] --> 0x%08x\n",
  4540. REG_USB_PHY_UTMI_REG11,value);
  4541. #endif
  4542. return tmp_value.bitc.output_source;
  4543. }
  4544. GH_INLINE void GH_USB_PHY_set_UTMI_REG11_ENINV(U8 data)
  4545. {
  4546. GH_USB_PHY_UTMI_REG11_S d;
  4547. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG11;
  4548. d.bitc.eninv = data;
  4549. *(volatile U16 *)REG_USB_PHY_UTMI_REG11 = d.all;
  4550. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4551. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG11_ENINV] <-- 0x%08x\n",
  4552. REG_USB_PHY_UTMI_REG11,d.all,d.all);
  4553. #endif
  4554. }
  4555. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG11_ENINV(void)
  4556. {
  4557. GH_USB_PHY_UTMI_REG11_S tmp_value;
  4558. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG11);
  4559. tmp_value.all = value;
  4560. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4561. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG11_ENINV] --> 0x%08x\n",
  4562. REG_USB_PHY_UTMI_REG11,value);
  4563. #endif
  4564. return tmp_value.bitc.eninv;
  4565. }
  4566. GH_INLINE void GH_USB_PHY_set_UTMI_REG11_ENINVENTMUX(U8 data)
  4567. {
  4568. GH_USB_PHY_UTMI_REG11_S d;
  4569. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG11;
  4570. d.bitc.eninventmux = data;
  4571. *(volatile U16 *)REG_USB_PHY_UTMI_REG11 = d.all;
  4572. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4573. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG11_ENINVENTMUX] <-- 0x%08x\n",
  4574. REG_USB_PHY_UTMI_REG11,d.all,d.all);
  4575. #endif
  4576. }
  4577. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG11_ENINVENTMUX(void)
  4578. {
  4579. GH_USB_PHY_UTMI_REG11_S tmp_value;
  4580. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG11);
  4581. tmp_value.all = value;
  4582. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4583. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG11_ENINVENTMUX] --> 0x%08x\n",
  4584. REG_USB_PHY_UTMI_REG11,value);
  4585. #endif
  4586. return tmp_value.bitc.eninventmux;
  4587. }
  4588. GH_INLINE void GH_USB_PHY_set_UTMI_REG11_input_clock(U8 data)
  4589. {
  4590. GH_USB_PHY_UTMI_REG11_S d;
  4591. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG11;
  4592. d.bitc.input_clock = data;
  4593. *(volatile U16 *)REG_USB_PHY_UTMI_REG11 = d.all;
  4594. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4595. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG11_input_clock] <-- 0x%08x\n",
  4596. REG_USB_PHY_UTMI_REG11,d.all,d.all);
  4597. #endif
  4598. }
  4599. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG11_input_clock(void)
  4600. {
  4601. GH_USB_PHY_UTMI_REG11_S tmp_value;
  4602. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG11);
  4603. tmp_value.all = value;
  4604. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4605. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG11_input_clock] --> 0x%08x\n",
  4606. REG_USB_PHY_UTMI_REG11,value);
  4607. #endif
  4608. return tmp_value.bitc.input_clock;
  4609. }
  4610. #endif /* GH_INLINE_LEVEL == 0 */
  4611. /*----------------------------------------------------------------------------*/
  4612. /* register USB_PHY_UTMI_REG12 (read/write) */
  4613. /*----------------------------------------------------------------------------*/
  4614. #if GH_INLINE_LEVEL == 0
  4615. /*! \brief Writes the register 'USB_PHY_UTMI_REG12'. */
  4616. void GH_USB_PHY_set_UTMI_REG12(U16 data);
  4617. /*! \brief Reads the register 'USB_PHY_UTMI_REG12'. */
  4618. U16 GH_USB_PHY_get_UTMI_REG12(void);
  4619. /*! \brief Writes the bit group 'ICTL33' of register 'USB_PHY_UTMI_REG12'. */
  4620. void GH_USB_PHY_set_UTMI_REG12_ICTL33(U8 data);
  4621. /*! \brief Reads the bit group 'ICTL33' of register 'USB_PHY_UTMI_REG12'. */
  4622. U8 GH_USB_PHY_get_UTMI_REG12_ICTL33(void);
  4623. /*! \brief Writes the bit group 'DIS_HVFLAG_DISC' of register 'USB_PHY_UTMI_REG12'. */
  4624. void GH_USB_PHY_set_UTMI_REG12_DIS_HVFLAG_DISC(U8 data);
  4625. /*! \brief Reads the bit group 'DIS_HVFLAG_DISC' of register 'USB_PHY_UTMI_REG12'. */
  4626. U8 GH_USB_PHY_get_UTMI_REG12_DIS_HVFLAG_DISC(void);
  4627. /*! \brief Writes the bit group 'ENSYN33' of register 'USB_PHY_UTMI_REG12'. */
  4628. void GH_USB_PHY_set_UTMI_REG12_ENSYN33(U8 data);
  4629. /*! \brief Reads the bit group 'ENSYN33' of register 'USB_PHY_UTMI_REG12'. */
  4630. U8 GH_USB_PHY_get_UTMI_REG12_ENSYN33(void);
  4631. /*! \brief Writes the bit group 'Regulated' of register 'USB_PHY_UTMI_REG12'. */
  4632. void GH_USB_PHY_set_UTMI_REG12_Regulated(U8 data);
  4633. /*! \brief Reads the bit group 'Regulated' of register 'USB_PHY_UTMI_REG12'. */
  4634. U8 GH_USB_PHY_get_UTMI_REG12_Regulated(void);
  4635. /*! \brief Writes the bit group 'Regulator' of register 'USB_PHY_UTMI_REG12'. */
  4636. void GH_USB_PHY_set_UTMI_REG12_Regulator(U8 data);
  4637. /*! \brief Reads the bit group 'Regulator' of register 'USB_PHY_UTMI_REG12'. */
  4638. U8 GH_USB_PHY_get_UTMI_REG12_Regulator(void);
  4639. #else /* GH_INLINE_LEVEL == 0 */
  4640. GH_INLINE void GH_USB_PHY_set_UTMI_REG12(U16 data)
  4641. {
  4642. *(volatile U16 *)REG_USB_PHY_UTMI_REG12 = data;
  4643. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4644. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG12] <-- 0x%08x\n",
  4645. REG_USB_PHY_UTMI_REG12,data,data);
  4646. #endif
  4647. }
  4648. GH_INLINE U16 GH_USB_PHY_get_UTMI_REG12(void)
  4649. {
  4650. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG12);
  4651. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4652. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG12] --> 0x%08x\n",
  4653. REG_USB_PHY_UTMI_REG12,value);
  4654. #endif
  4655. return value;
  4656. }
  4657. GH_INLINE void GH_USB_PHY_set_UTMI_REG12_ICTL33(U8 data)
  4658. {
  4659. GH_USB_PHY_UTMI_REG12_S d;
  4660. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG12;
  4661. d.bitc.ictl33 = data;
  4662. *(volatile U16 *)REG_USB_PHY_UTMI_REG12 = d.all;
  4663. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4664. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG12_ICTL33] <-- 0x%08x\n",
  4665. REG_USB_PHY_UTMI_REG12,d.all,d.all);
  4666. #endif
  4667. }
  4668. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG12_ICTL33(void)
  4669. {
  4670. GH_USB_PHY_UTMI_REG12_S tmp_value;
  4671. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG12);
  4672. tmp_value.all = value;
  4673. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4674. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG12_ICTL33] --> 0x%08x\n",
  4675. REG_USB_PHY_UTMI_REG12,value);
  4676. #endif
  4677. return tmp_value.bitc.ictl33;
  4678. }
  4679. GH_INLINE void GH_USB_PHY_set_UTMI_REG12_DIS_HVFLAG_DISC(U8 data)
  4680. {
  4681. GH_USB_PHY_UTMI_REG12_S d;
  4682. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG12;
  4683. d.bitc.dis_hvflag_disc = data;
  4684. *(volatile U16 *)REG_USB_PHY_UTMI_REG12 = d.all;
  4685. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4686. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG12_DIS_HVFLAG_DISC] <-- 0x%08x\n",
  4687. REG_USB_PHY_UTMI_REG12,d.all,d.all);
  4688. #endif
  4689. }
  4690. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG12_DIS_HVFLAG_DISC(void)
  4691. {
  4692. GH_USB_PHY_UTMI_REG12_S tmp_value;
  4693. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG12);
  4694. tmp_value.all = value;
  4695. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4696. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG12_DIS_HVFLAG_DISC] --> 0x%08x\n",
  4697. REG_USB_PHY_UTMI_REG12,value);
  4698. #endif
  4699. return tmp_value.bitc.dis_hvflag_disc;
  4700. }
  4701. GH_INLINE void GH_USB_PHY_set_UTMI_REG12_ENSYN33(U8 data)
  4702. {
  4703. GH_USB_PHY_UTMI_REG12_S d;
  4704. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG12;
  4705. d.bitc.ensyn33 = data;
  4706. *(volatile U16 *)REG_USB_PHY_UTMI_REG12 = d.all;
  4707. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4708. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG12_ENSYN33] <-- 0x%08x\n",
  4709. REG_USB_PHY_UTMI_REG12,d.all,d.all);
  4710. #endif
  4711. }
  4712. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG12_ENSYN33(void)
  4713. {
  4714. GH_USB_PHY_UTMI_REG12_S tmp_value;
  4715. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG12);
  4716. tmp_value.all = value;
  4717. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4718. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG12_ENSYN33] --> 0x%08x\n",
  4719. REG_USB_PHY_UTMI_REG12,value);
  4720. #endif
  4721. return tmp_value.bitc.ensyn33;
  4722. }
  4723. GH_INLINE void GH_USB_PHY_set_UTMI_REG12_Regulated(U8 data)
  4724. {
  4725. GH_USB_PHY_UTMI_REG12_S d;
  4726. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG12;
  4727. d.bitc.regulated = data;
  4728. *(volatile U16 *)REG_USB_PHY_UTMI_REG12 = d.all;
  4729. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4730. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG12_Regulated] <-- 0x%08x\n",
  4731. REG_USB_PHY_UTMI_REG12,d.all,d.all);
  4732. #endif
  4733. }
  4734. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG12_Regulated(void)
  4735. {
  4736. GH_USB_PHY_UTMI_REG12_S tmp_value;
  4737. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG12);
  4738. tmp_value.all = value;
  4739. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4740. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG12_Regulated] --> 0x%08x\n",
  4741. REG_USB_PHY_UTMI_REG12,value);
  4742. #endif
  4743. return tmp_value.bitc.regulated;
  4744. }
  4745. GH_INLINE void GH_USB_PHY_set_UTMI_REG12_Regulator(U8 data)
  4746. {
  4747. GH_USB_PHY_UTMI_REG12_S d;
  4748. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG12;
  4749. d.bitc.regulator = data;
  4750. *(volatile U16 *)REG_USB_PHY_UTMI_REG12 = d.all;
  4751. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4752. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG12_Regulator] <-- 0x%08x\n",
  4753. REG_USB_PHY_UTMI_REG12,d.all,d.all);
  4754. #endif
  4755. }
  4756. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG12_Regulator(void)
  4757. {
  4758. GH_USB_PHY_UTMI_REG12_S tmp_value;
  4759. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG12);
  4760. tmp_value.all = value;
  4761. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4762. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG12_Regulator] --> 0x%08x\n",
  4763. REG_USB_PHY_UTMI_REG12,value);
  4764. #endif
  4765. return tmp_value.bitc.regulator;
  4766. }
  4767. #endif /* GH_INLINE_LEVEL == 0 */
  4768. /*----------------------------------------------------------------------------*/
  4769. /* register USB_PHY_UTMI_REG13 (read/write) */
  4770. /*----------------------------------------------------------------------------*/
  4771. #if GH_INLINE_LEVEL == 0
  4772. /*! \brief Writes the register 'USB_PHY_UTMI_REG13'. */
  4773. void GH_USB_PHY_set_UTMI_REG13(U16 data);
  4774. /*! \brief Reads the register 'USB_PHY_UTMI_REG13'. */
  4775. U16 GH_USB_PHY_get_UTMI_REG13(void);
  4776. /*! \brief Writes the bit group 'De_glitch_time' of register 'USB_PHY_UTMI_REG13'. */
  4777. void GH_USB_PHY_set_UTMI_REG13_De_glitch_time(U8 data);
  4778. /*! \brief Reads the bit group 'De_glitch_time' of register 'USB_PHY_UTMI_REG13'. */
  4779. U8 GH_USB_PHY_get_UTMI_REG13_De_glitch_time(void);
  4780. /*! \brief Writes the bit group 'Squelch_detector' of register 'USB_PHY_UTMI_REG13'. */
  4781. void GH_USB_PHY_set_UTMI_REG13_Squelch_detector(U8 data);
  4782. /*! \brief Reads the bit group 'Squelch_detector' of register 'USB_PHY_UTMI_REG13'. */
  4783. U8 GH_USB_PHY_get_UTMI_REG13_Squelch_detector(void);
  4784. /*! \brief Writes the bit group 'receiver_bias' of register 'USB_PHY_UTMI_REG13'. */
  4785. void GH_USB_PHY_set_UTMI_REG13_receiver_bias(U8 data);
  4786. /*! \brief Reads the bit group 'receiver_bias' of register 'USB_PHY_UTMI_REG13'. */
  4787. U8 GH_USB_PHY_get_UTMI_REG13_receiver_bias(void);
  4788. #else /* GH_INLINE_LEVEL == 0 */
  4789. GH_INLINE void GH_USB_PHY_set_UTMI_REG13(U16 data)
  4790. {
  4791. *(volatile U16 *)REG_USB_PHY_UTMI_REG13 = data;
  4792. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4793. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG13] <-- 0x%08x\n",
  4794. REG_USB_PHY_UTMI_REG13,data,data);
  4795. #endif
  4796. }
  4797. GH_INLINE U16 GH_USB_PHY_get_UTMI_REG13(void)
  4798. {
  4799. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG13);
  4800. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4801. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG13] --> 0x%08x\n",
  4802. REG_USB_PHY_UTMI_REG13,value);
  4803. #endif
  4804. return value;
  4805. }
  4806. GH_INLINE void GH_USB_PHY_set_UTMI_REG13_De_glitch_time(U8 data)
  4807. {
  4808. GH_USB_PHY_UTMI_REG13_S d;
  4809. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG13;
  4810. d.bitc.de_glitch_time = data;
  4811. *(volatile U16 *)REG_USB_PHY_UTMI_REG13 = d.all;
  4812. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4813. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG13_De_glitch_time] <-- 0x%08x\n",
  4814. REG_USB_PHY_UTMI_REG13,d.all,d.all);
  4815. #endif
  4816. }
  4817. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG13_De_glitch_time(void)
  4818. {
  4819. GH_USB_PHY_UTMI_REG13_S tmp_value;
  4820. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG13);
  4821. tmp_value.all = value;
  4822. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4823. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG13_De_glitch_time] --> 0x%08x\n",
  4824. REG_USB_PHY_UTMI_REG13,value);
  4825. #endif
  4826. return tmp_value.bitc.de_glitch_time;
  4827. }
  4828. GH_INLINE void GH_USB_PHY_set_UTMI_REG13_Squelch_detector(U8 data)
  4829. {
  4830. GH_USB_PHY_UTMI_REG13_S d;
  4831. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG13;
  4832. d.bitc.squelch_detector = data;
  4833. *(volatile U16 *)REG_USB_PHY_UTMI_REG13 = d.all;
  4834. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4835. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG13_Squelch_detector] <-- 0x%08x\n",
  4836. REG_USB_PHY_UTMI_REG13,d.all,d.all);
  4837. #endif
  4838. }
  4839. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG13_Squelch_detector(void)
  4840. {
  4841. GH_USB_PHY_UTMI_REG13_S tmp_value;
  4842. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG13);
  4843. tmp_value.all = value;
  4844. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4845. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG13_Squelch_detector] --> 0x%08x\n",
  4846. REG_USB_PHY_UTMI_REG13,value);
  4847. #endif
  4848. return tmp_value.bitc.squelch_detector;
  4849. }
  4850. GH_INLINE void GH_USB_PHY_set_UTMI_REG13_receiver_bias(U8 data)
  4851. {
  4852. GH_USB_PHY_UTMI_REG13_S d;
  4853. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG13;
  4854. d.bitc.receiver_bias = data;
  4855. *(volatile U16 *)REG_USB_PHY_UTMI_REG13 = d.all;
  4856. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4857. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG13_receiver_bias] <-- 0x%08x\n",
  4858. REG_USB_PHY_UTMI_REG13,d.all,d.all);
  4859. #endif
  4860. }
  4861. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG13_receiver_bias(void)
  4862. {
  4863. GH_USB_PHY_UTMI_REG13_S tmp_value;
  4864. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG13);
  4865. tmp_value.all = value;
  4866. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4867. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG13_receiver_bias] --> 0x%08x\n",
  4868. REG_USB_PHY_UTMI_REG13,value);
  4869. #endif
  4870. return tmp_value.bitc.receiver_bias;
  4871. }
  4872. #endif /* GH_INLINE_LEVEL == 0 */
  4873. /*----------------------------------------------------------------------------*/
  4874. /* register USB_PHY_UTMI_REG14 (read/write) */
  4875. /*----------------------------------------------------------------------------*/
  4876. #if GH_INLINE_LEVEL == 0
  4877. /*! \brief Writes the register 'USB_PHY_UTMI_REG14'. */
  4878. void GH_USB_PHY_set_UTMI_REG14(U16 data);
  4879. /*! \brief Reads the register 'USB_PHY_UTMI_REG14'. */
  4880. U16 GH_USB_PHY_get_UTMI_REG14(void);
  4881. /*! \brief Writes the bit group 'slew_rate' of register 'USB_PHY_UTMI_REG14'. */
  4882. void GH_USB_PHY_set_UTMI_REG14_slew_rate(U8 data);
  4883. /*! \brief Reads the bit group 'slew_rate' of register 'USB_PHY_UTMI_REG14'. */
  4884. U8 GH_USB_PHY_get_UTMI_REG14_slew_rate(void);
  4885. /*! \brief Writes the bit group 'Hign_speed' of register 'USB_PHY_UTMI_REG14'. */
  4886. void GH_USB_PHY_set_UTMI_REG14_Hign_speed(U8 data);
  4887. /*! \brief Reads the bit group 'Hign_speed' of register 'USB_PHY_UTMI_REG14'. */
  4888. U8 GH_USB_PHY_get_UTMI_REG14_Hign_speed(void);
  4889. /*! \brief Writes the bit group 'Full_speed0' of register 'USB_PHY_UTMI_REG14'. */
  4890. void GH_USB_PHY_set_UTMI_REG14_Full_speed0(U8 data);
  4891. /*! \brief Reads the bit group 'Full_speed0' of register 'USB_PHY_UTMI_REG14'. */
  4892. U8 GH_USB_PHY_get_UTMI_REG14_Full_speed0(void);
  4893. /*! \brief Writes the bit group 'Full_speed1' of register 'USB_PHY_UTMI_REG14'. */
  4894. void GH_USB_PHY_set_UTMI_REG14_Full_speed1(U8 data);
  4895. /*! \brief Reads the bit group 'Full_speed1' of register 'USB_PHY_UTMI_REG14'. */
  4896. U8 GH_USB_PHY_get_UTMI_REG14_Full_speed1(void);
  4897. /*! \brief Writes the bit group 'slew' of register 'USB_PHY_UTMI_REG14'. */
  4898. void GH_USB_PHY_set_UTMI_REG14_slew(U8 data);
  4899. /*! \brief Reads the bit group 'slew' of register 'USB_PHY_UTMI_REG14'. */
  4900. U8 GH_USB_PHY_get_UTMI_REG14_slew(void);
  4901. /*! \brief Writes the bit group 'Disable' of register 'USB_PHY_UTMI_REG14'. */
  4902. void GH_USB_PHY_set_UTMI_REG14_Disable(U8 data);
  4903. /*! \brief Reads the bit group 'Disable' of register 'USB_PHY_UTMI_REG14'. */
  4904. U8 GH_USB_PHY_get_UTMI_REG14_Disable(void);
  4905. /*! \brief Writes the bit group 'test_DM' of register 'USB_PHY_UTMI_REG14'. */
  4906. void GH_USB_PHY_set_UTMI_REG14_test_DM(U8 data);
  4907. /*! \brief Reads the bit group 'test_DM' of register 'USB_PHY_UTMI_REG14'. */
  4908. U8 GH_USB_PHY_get_UTMI_REG14_test_DM(void);
  4909. /*! \brief Writes the bit group 'test_DP' of register 'USB_PHY_UTMI_REG14'. */
  4910. void GH_USB_PHY_set_UTMI_REG14_test_DP(U8 data);
  4911. /*! \brief Reads the bit group 'test_DP' of register 'USB_PHY_UTMI_REG14'. */
  4912. U8 GH_USB_PHY_get_UTMI_REG14_test_DP(void);
  4913. #else /* GH_INLINE_LEVEL == 0 */
  4914. GH_INLINE void GH_USB_PHY_set_UTMI_REG14(U16 data)
  4915. {
  4916. *(volatile U16 *)REG_USB_PHY_UTMI_REG14 = data;
  4917. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4918. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG14] <-- 0x%08x\n",
  4919. REG_USB_PHY_UTMI_REG14,data,data);
  4920. #endif
  4921. }
  4922. GH_INLINE U16 GH_USB_PHY_get_UTMI_REG14(void)
  4923. {
  4924. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG14);
  4925. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4926. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG14] --> 0x%08x\n",
  4927. REG_USB_PHY_UTMI_REG14,value);
  4928. #endif
  4929. return value;
  4930. }
  4931. GH_INLINE void GH_USB_PHY_set_UTMI_REG14_slew_rate(U8 data)
  4932. {
  4933. GH_USB_PHY_UTMI_REG14_S d;
  4934. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG14;
  4935. d.bitc.slew_rate = data;
  4936. *(volatile U16 *)REG_USB_PHY_UTMI_REG14 = d.all;
  4937. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4938. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG14_slew_rate] <-- 0x%08x\n",
  4939. REG_USB_PHY_UTMI_REG14,d.all,d.all);
  4940. #endif
  4941. }
  4942. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG14_slew_rate(void)
  4943. {
  4944. GH_USB_PHY_UTMI_REG14_S tmp_value;
  4945. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG14);
  4946. tmp_value.all = value;
  4947. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4948. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG14_slew_rate] --> 0x%08x\n",
  4949. REG_USB_PHY_UTMI_REG14,value);
  4950. #endif
  4951. return tmp_value.bitc.slew_rate;
  4952. }
  4953. GH_INLINE void GH_USB_PHY_set_UTMI_REG14_Hign_speed(U8 data)
  4954. {
  4955. GH_USB_PHY_UTMI_REG14_S d;
  4956. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG14;
  4957. d.bitc.hign_speed = data;
  4958. *(volatile U16 *)REG_USB_PHY_UTMI_REG14 = d.all;
  4959. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4960. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG14_Hign_speed] <-- 0x%08x\n",
  4961. REG_USB_PHY_UTMI_REG14,d.all,d.all);
  4962. #endif
  4963. }
  4964. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG14_Hign_speed(void)
  4965. {
  4966. GH_USB_PHY_UTMI_REG14_S tmp_value;
  4967. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG14);
  4968. tmp_value.all = value;
  4969. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4970. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG14_Hign_speed] --> 0x%08x\n",
  4971. REG_USB_PHY_UTMI_REG14,value);
  4972. #endif
  4973. return tmp_value.bitc.hign_speed;
  4974. }
  4975. GH_INLINE void GH_USB_PHY_set_UTMI_REG14_Full_speed0(U8 data)
  4976. {
  4977. GH_USB_PHY_UTMI_REG14_S d;
  4978. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG14;
  4979. d.bitc.full_speed0 = data;
  4980. *(volatile U16 *)REG_USB_PHY_UTMI_REG14 = d.all;
  4981. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4982. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG14_Full_speed0] <-- 0x%08x\n",
  4983. REG_USB_PHY_UTMI_REG14,d.all,d.all);
  4984. #endif
  4985. }
  4986. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG14_Full_speed0(void)
  4987. {
  4988. GH_USB_PHY_UTMI_REG14_S tmp_value;
  4989. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG14);
  4990. tmp_value.all = value;
  4991. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  4992. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG14_Full_speed0] --> 0x%08x\n",
  4993. REG_USB_PHY_UTMI_REG14,value);
  4994. #endif
  4995. return tmp_value.bitc.full_speed0;
  4996. }
  4997. GH_INLINE void GH_USB_PHY_set_UTMI_REG14_Full_speed1(U8 data)
  4998. {
  4999. GH_USB_PHY_UTMI_REG14_S d;
  5000. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG14;
  5001. d.bitc.full_speed1 = data;
  5002. *(volatile U16 *)REG_USB_PHY_UTMI_REG14 = d.all;
  5003. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5004. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG14_Full_speed1] <-- 0x%08x\n",
  5005. REG_USB_PHY_UTMI_REG14,d.all,d.all);
  5006. #endif
  5007. }
  5008. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG14_Full_speed1(void)
  5009. {
  5010. GH_USB_PHY_UTMI_REG14_S tmp_value;
  5011. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG14);
  5012. tmp_value.all = value;
  5013. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5014. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG14_Full_speed1] --> 0x%08x\n",
  5015. REG_USB_PHY_UTMI_REG14,value);
  5016. #endif
  5017. return tmp_value.bitc.full_speed1;
  5018. }
  5019. GH_INLINE void GH_USB_PHY_set_UTMI_REG14_slew(U8 data)
  5020. {
  5021. GH_USB_PHY_UTMI_REG14_S d;
  5022. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG14;
  5023. d.bitc.slew = data;
  5024. *(volatile U16 *)REG_USB_PHY_UTMI_REG14 = d.all;
  5025. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5026. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG14_slew] <-- 0x%08x\n",
  5027. REG_USB_PHY_UTMI_REG14,d.all,d.all);
  5028. #endif
  5029. }
  5030. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG14_slew(void)
  5031. {
  5032. GH_USB_PHY_UTMI_REG14_S tmp_value;
  5033. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG14);
  5034. tmp_value.all = value;
  5035. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5036. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG14_slew] --> 0x%08x\n",
  5037. REG_USB_PHY_UTMI_REG14,value);
  5038. #endif
  5039. return tmp_value.bitc.slew;
  5040. }
  5041. GH_INLINE void GH_USB_PHY_set_UTMI_REG14_Disable(U8 data)
  5042. {
  5043. GH_USB_PHY_UTMI_REG14_S d;
  5044. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG14;
  5045. d.bitc.disable = data;
  5046. *(volatile U16 *)REG_USB_PHY_UTMI_REG14 = d.all;
  5047. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5048. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG14_Disable] <-- 0x%08x\n",
  5049. REG_USB_PHY_UTMI_REG14,d.all,d.all);
  5050. #endif
  5051. }
  5052. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG14_Disable(void)
  5053. {
  5054. GH_USB_PHY_UTMI_REG14_S tmp_value;
  5055. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG14);
  5056. tmp_value.all = value;
  5057. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5058. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG14_Disable] --> 0x%08x\n",
  5059. REG_USB_PHY_UTMI_REG14,value);
  5060. #endif
  5061. return tmp_value.bitc.disable;
  5062. }
  5063. GH_INLINE void GH_USB_PHY_set_UTMI_REG14_test_DM(U8 data)
  5064. {
  5065. GH_USB_PHY_UTMI_REG14_S d;
  5066. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG14;
  5067. d.bitc.test_dm = data;
  5068. *(volatile U16 *)REG_USB_PHY_UTMI_REG14 = d.all;
  5069. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5070. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG14_test_DM] <-- 0x%08x\n",
  5071. REG_USB_PHY_UTMI_REG14,d.all,d.all);
  5072. #endif
  5073. }
  5074. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG14_test_DM(void)
  5075. {
  5076. GH_USB_PHY_UTMI_REG14_S tmp_value;
  5077. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG14);
  5078. tmp_value.all = value;
  5079. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5080. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG14_test_DM] --> 0x%08x\n",
  5081. REG_USB_PHY_UTMI_REG14,value);
  5082. #endif
  5083. return tmp_value.bitc.test_dm;
  5084. }
  5085. GH_INLINE void GH_USB_PHY_set_UTMI_REG14_test_DP(U8 data)
  5086. {
  5087. GH_USB_PHY_UTMI_REG14_S d;
  5088. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG14;
  5089. d.bitc.test_dp = data;
  5090. *(volatile U16 *)REG_USB_PHY_UTMI_REG14 = d.all;
  5091. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5092. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG14_test_DP] <-- 0x%08x\n",
  5093. REG_USB_PHY_UTMI_REG14,d.all,d.all);
  5094. #endif
  5095. }
  5096. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG14_test_DP(void)
  5097. {
  5098. GH_USB_PHY_UTMI_REG14_S tmp_value;
  5099. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG14);
  5100. tmp_value.all = value;
  5101. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5102. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG14_test_DP] --> 0x%08x\n",
  5103. REG_USB_PHY_UTMI_REG14,value);
  5104. #endif
  5105. return tmp_value.bitc.test_dp;
  5106. }
  5107. #endif /* GH_INLINE_LEVEL == 0 */
  5108. /*----------------------------------------------------------------------------*/
  5109. /* register USB_PHY_UTMI_REG15 (read/write) */
  5110. /*----------------------------------------------------------------------------*/
  5111. #if GH_INLINE_LEVEL == 0
  5112. /*! \brief Writes the register 'USB_PHY_UTMI_REG15'. */
  5113. void GH_USB_PHY_set_UTMI_REG15(U16 data);
  5114. /*! \brief Reads the register 'USB_PHY_UTMI_REG15'. */
  5115. U16 GH_USB_PHY_get_UTMI_REG15(void);
  5116. /*! \brief Writes the bit group 'VSPOUT' of register 'USB_PHY_UTMI_REG15'. */
  5117. void GH_USB_PHY_set_UTMI_REG15_VSPOUT(U8 data);
  5118. /*! \brief Reads the bit group 'VSPOUT' of register 'USB_PHY_UTMI_REG15'. */
  5119. U8 GH_USB_PHY_get_UTMI_REG15_VSPOUT(void);
  5120. /*! \brief Writes the bit group 'VSMOUT' of register 'USB_PHY_UTMI_REG15'. */
  5121. void GH_USB_PHY_set_UTMI_REG15_VSMOUT(U8 data);
  5122. /*! \brief Reads the bit group 'VSMOUT' of register 'USB_PHY_UTMI_REG15'. */
  5123. U8 GH_USB_PHY_get_UTMI_REG15_VSMOUT(void);
  5124. /*! \brief Writes the bit group 'VCPOUT' of register 'USB_PHY_UTMI_REG15'. */
  5125. void GH_USB_PHY_set_UTMI_REG15_VCPOUT(U8 data);
  5126. /*! \brief Reads the bit group 'VCPOUT' of register 'USB_PHY_UTMI_REG15'. */
  5127. U8 GH_USB_PHY_get_UTMI_REG15_VCPOUT(void);
  5128. /*! \brief Writes the bit group 'VCMOUT' of register 'USB_PHY_UTMI_REG15'. */
  5129. void GH_USB_PHY_set_UTMI_REG15_VCMOUT(U8 data);
  5130. /*! \brief Reads the bit group 'VCMOUT' of register 'USB_PHY_UTMI_REG15'. */
  5131. U8 GH_USB_PHY_get_UTMI_REG15_VCMOUT(void);
  5132. /*! \brief Writes the bit group 'PGD' of register 'USB_PHY_UTMI_REG15'. */
  5133. void GH_USB_PHY_set_UTMI_REG15_PGD(U8 data);
  5134. /*! \brief Reads the bit group 'PGD' of register 'USB_PHY_UTMI_REG15'. */
  5135. U8 GH_USB_PHY_get_UTMI_REG15_PGD(void);
  5136. /*! \brief Writes the bit group 'Power_Good_33V' of register 'USB_PHY_UTMI_REG15'. */
  5137. void GH_USB_PHY_set_UTMI_REG15_Power_Good_33V(U8 data);
  5138. /*! \brief Reads the bit group 'Power_Good_33V' of register 'USB_PHY_UTMI_REG15'. */
  5139. U8 GH_USB_PHY_get_UTMI_REG15_Power_Good_33V(void);
  5140. /*! \brief Writes the bit group 'Power_Good' of register 'USB_PHY_UTMI_REG15'. */
  5141. void GH_USB_PHY_set_UTMI_REG15_Power_Good(U8 data);
  5142. /*! \brief Reads the bit group 'Power_Good' of register 'USB_PHY_UTMI_REG15'. */
  5143. U8 GH_USB_PHY_get_UTMI_REG15_Power_Good(void);
  5144. /*! \brief Writes the bit group 'VBG' of register 'USB_PHY_UTMI_REG15'. */
  5145. void GH_USB_PHY_set_UTMI_REG15_VBG(U8 data);
  5146. /*! \brief Reads the bit group 'VBG' of register 'USB_PHY_UTMI_REG15'. */
  5147. U8 GH_USB_PHY_get_UTMI_REG15_VBG(void);
  5148. /*! \brief Writes the bit group 'VBGR' of register 'USB_PHY_UTMI_REG15'. */
  5149. void GH_USB_PHY_set_UTMI_REG15_VBGR(U8 data);
  5150. /*! \brief Reads the bit group 'VBGR' of register 'USB_PHY_UTMI_REG15'. */
  5151. U8 GH_USB_PHY_get_UTMI_REG15_VBGR(void);
  5152. /*! \brief Writes the bit group 'Power_Good_POR' of register 'USB_PHY_UTMI_REG15'. */
  5153. void GH_USB_PHY_set_UTMI_REG15_Power_Good_POR(U8 data);
  5154. /*! \brief Reads the bit group 'Power_Good_POR' of register 'USB_PHY_UTMI_REG15'. */
  5155. U8 GH_USB_PHY_get_UTMI_REG15_Power_Good_POR(void);
  5156. #else /* GH_INLINE_LEVEL == 0 */
  5157. GH_INLINE void GH_USB_PHY_set_UTMI_REG15(U16 data)
  5158. {
  5159. *(volatile U16 *)REG_USB_PHY_UTMI_REG15 = data;
  5160. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5161. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG15] <-- 0x%08x\n",
  5162. REG_USB_PHY_UTMI_REG15,data,data);
  5163. #endif
  5164. }
  5165. GH_INLINE U16 GH_USB_PHY_get_UTMI_REG15(void)
  5166. {
  5167. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG15);
  5168. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5169. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG15] --> 0x%08x\n",
  5170. REG_USB_PHY_UTMI_REG15,value);
  5171. #endif
  5172. return value;
  5173. }
  5174. GH_INLINE void GH_USB_PHY_set_UTMI_REG15_VSPOUT(U8 data)
  5175. {
  5176. GH_USB_PHY_UTMI_REG15_S d;
  5177. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG15;
  5178. d.bitc.vspout = data;
  5179. *(volatile U16 *)REG_USB_PHY_UTMI_REG15 = d.all;
  5180. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5181. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG15_VSPOUT] <-- 0x%08x\n",
  5182. REG_USB_PHY_UTMI_REG15,d.all,d.all);
  5183. #endif
  5184. }
  5185. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG15_VSPOUT(void)
  5186. {
  5187. GH_USB_PHY_UTMI_REG15_S tmp_value;
  5188. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG15);
  5189. tmp_value.all = value;
  5190. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5191. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG15_VSPOUT] --> 0x%08x\n",
  5192. REG_USB_PHY_UTMI_REG15,value);
  5193. #endif
  5194. return tmp_value.bitc.vspout;
  5195. }
  5196. GH_INLINE void GH_USB_PHY_set_UTMI_REG15_VSMOUT(U8 data)
  5197. {
  5198. GH_USB_PHY_UTMI_REG15_S d;
  5199. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG15;
  5200. d.bitc.vsmout = data;
  5201. *(volatile U16 *)REG_USB_PHY_UTMI_REG15 = d.all;
  5202. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5203. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG15_VSMOUT] <-- 0x%08x\n",
  5204. REG_USB_PHY_UTMI_REG15,d.all,d.all);
  5205. #endif
  5206. }
  5207. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG15_VSMOUT(void)
  5208. {
  5209. GH_USB_PHY_UTMI_REG15_S tmp_value;
  5210. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG15);
  5211. tmp_value.all = value;
  5212. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5213. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG15_VSMOUT] --> 0x%08x\n",
  5214. REG_USB_PHY_UTMI_REG15,value);
  5215. #endif
  5216. return tmp_value.bitc.vsmout;
  5217. }
  5218. GH_INLINE void GH_USB_PHY_set_UTMI_REG15_VCPOUT(U8 data)
  5219. {
  5220. GH_USB_PHY_UTMI_REG15_S d;
  5221. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG15;
  5222. d.bitc.vcpout = data;
  5223. *(volatile U16 *)REG_USB_PHY_UTMI_REG15 = d.all;
  5224. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5225. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG15_VCPOUT] <-- 0x%08x\n",
  5226. REG_USB_PHY_UTMI_REG15,d.all,d.all);
  5227. #endif
  5228. }
  5229. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG15_VCPOUT(void)
  5230. {
  5231. GH_USB_PHY_UTMI_REG15_S tmp_value;
  5232. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG15);
  5233. tmp_value.all = value;
  5234. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5235. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG15_VCPOUT] --> 0x%08x\n",
  5236. REG_USB_PHY_UTMI_REG15,value);
  5237. #endif
  5238. return tmp_value.bitc.vcpout;
  5239. }
  5240. GH_INLINE void GH_USB_PHY_set_UTMI_REG15_VCMOUT(U8 data)
  5241. {
  5242. GH_USB_PHY_UTMI_REG15_S d;
  5243. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG15;
  5244. d.bitc.vcmout = data;
  5245. *(volatile U16 *)REG_USB_PHY_UTMI_REG15 = d.all;
  5246. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5247. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG15_VCMOUT] <-- 0x%08x\n",
  5248. REG_USB_PHY_UTMI_REG15,d.all,d.all);
  5249. #endif
  5250. }
  5251. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG15_VCMOUT(void)
  5252. {
  5253. GH_USB_PHY_UTMI_REG15_S tmp_value;
  5254. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG15);
  5255. tmp_value.all = value;
  5256. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5257. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG15_VCMOUT] --> 0x%08x\n",
  5258. REG_USB_PHY_UTMI_REG15,value);
  5259. #endif
  5260. return tmp_value.bitc.vcmout;
  5261. }
  5262. GH_INLINE void GH_USB_PHY_set_UTMI_REG15_PGD(U8 data)
  5263. {
  5264. GH_USB_PHY_UTMI_REG15_S d;
  5265. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG15;
  5266. d.bitc.pgd = data;
  5267. *(volatile U16 *)REG_USB_PHY_UTMI_REG15 = d.all;
  5268. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5269. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG15_PGD] <-- 0x%08x\n",
  5270. REG_USB_PHY_UTMI_REG15,d.all,d.all);
  5271. #endif
  5272. }
  5273. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG15_PGD(void)
  5274. {
  5275. GH_USB_PHY_UTMI_REG15_S tmp_value;
  5276. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG15);
  5277. tmp_value.all = value;
  5278. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5279. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG15_PGD] --> 0x%08x\n",
  5280. REG_USB_PHY_UTMI_REG15,value);
  5281. #endif
  5282. return tmp_value.bitc.pgd;
  5283. }
  5284. GH_INLINE void GH_USB_PHY_set_UTMI_REG15_Power_Good_33V(U8 data)
  5285. {
  5286. GH_USB_PHY_UTMI_REG15_S d;
  5287. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG15;
  5288. d.bitc.power_good_33v = data;
  5289. *(volatile U16 *)REG_USB_PHY_UTMI_REG15 = d.all;
  5290. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5291. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG15_Power_Good_33V] <-- 0x%08x\n",
  5292. REG_USB_PHY_UTMI_REG15,d.all,d.all);
  5293. #endif
  5294. }
  5295. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG15_Power_Good_33V(void)
  5296. {
  5297. GH_USB_PHY_UTMI_REG15_S tmp_value;
  5298. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG15);
  5299. tmp_value.all = value;
  5300. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5301. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG15_Power_Good_33V] --> 0x%08x\n",
  5302. REG_USB_PHY_UTMI_REG15,value);
  5303. #endif
  5304. return tmp_value.bitc.power_good_33v;
  5305. }
  5306. GH_INLINE void GH_USB_PHY_set_UTMI_REG15_Power_Good(U8 data)
  5307. {
  5308. GH_USB_PHY_UTMI_REG15_S d;
  5309. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG15;
  5310. d.bitc.power_good = data;
  5311. *(volatile U16 *)REG_USB_PHY_UTMI_REG15 = d.all;
  5312. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5313. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG15_Power_Good] <-- 0x%08x\n",
  5314. REG_USB_PHY_UTMI_REG15,d.all,d.all);
  5315. #endif
  5316. }
  5317. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG15_Power_Good(void)
  5318. {
  5319. GH_USB_PHY_UTMI_REG15_S tmp_value;
  5320. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG15);
  5321. tmp_value.all = value;
  5322. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5323. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG15_Power_Good] --> 0x%08x\n",
  5324. REG_USB_PHY_UTMI_REG15,value);
  5325. #endif
  5326. return tmp_value.bitc.power_good;
  5327. }
  5328. GH_INLINE void GH_USB_PHY_set_UTMI_REG15_VBG(U8 data)
  5329. {
  5330. GH_USB_PHY_UTMI_REG15_S d;
  5331. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG15;
  5332. d.bitc.vbg = data;
  5333. *(volatile U16 *)REG_USB_PHY_UTMI_REG15 = d.all;
  5334. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5335. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG15_VBG] <-- 0x%08x\n",
  5336. REG_USB_PHY_UTMI_REG15,d.all,d.all);
  5337. #endif
  5338. }
  5339. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG15_VBG(void)
  5340. {
  5341. GH_USB_PHY_UTMI_REG15_S tmp_value;
  5342. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG15);
  5343. tmp_value.all = value;
  5344. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5345. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG15_VBG] --> 0x%08x\n",
  5346. REG_USB_PHY_UTMI_REG15,value);
  5347. #endif
  5348. return tmp_value.bitc.vbg;
  5349. }
  5350. GH_INLINE void GH_USB_PHY_set_UTMI_REG15_VBGR(U8 data)
  5351. {
  5352. GH_USB_PHY_UTMI_REG15_S d;
  5353. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG15;
  5354. d.bitc.vbgr = data;
  5355. *(volatile U16 *)REG_USB_PHY_UTMI_REG15 = d.all;
  5356. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5357. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG15_VBGR] <-- 0x%08x\n",
  5358. REG_USB_PHY_UTMI_REG15,d.all,d.all);
  5359. #endif
  5360. }
  5361. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG15_VBGR(void)
  5362. {
  5363. GH_USB_PHY_UTMI_REG15_S tmp_value;
  5364. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG15);
  5365. tmp_value.all = value;
  5366. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5367. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG15_VBGR] --> 0x%08x\n",
  5368. REG_USB_PHY_UTMI_REG15,value);
  5369. #endif
  5370. return tmp_value.bitc.vbgr;
  5371. }
  5372. GH_INLINE void GH_USB_PHY_set_UTMI_REG15_Power_Good_POR(U8 data)
  5373. {
  5374. GH_USB_PHY_UTMI_REG15_S d;
  5375. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG15;
  5376. d.bitc.power_good_por = data;
  5377. *(volatile U16 *)REG_USB_PHY_UTMI_REG15 = d.all;
  5378. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5379. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG15_Power_Good_POR] <-- 0x%08x\n",
  5380. REG_USB_PHY_UTMI_REG15,d.all,d.all);
  5381. #endif
  5382. }
  5383. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG15_Power_Good_POR(void)
  5384. {
  5385. GH_USB_PHY_UTMI_REG15_S tmp_value;
  5386. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG15);
  5387. tmp_value.all = value;
  5388. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5389. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG15_Power_Good_POR] --> 0x%08x\n",
  5390. REG_USB_PHY_UTMI_REG15,value);
  5391. #endif
  5392. return tmp_value.bitc.power_good_por;
  5393. }
  5394. #endif /* GH_INLINE_LEVEL == 0 */
  5395. /*----------------------------------------------------------------------------*/
  5396. /* register USB_PHY_UTMI_REG16 (read/write) */
  5397. /*----------------------------------------------------------------------------*/
  5398. #if GH_INLINE_LEVEL == 0
  5399. /*! \brief Writes the register 'USB_PHY_UTMI_REG16'. */
  5400. void GH_USB_PHY_set_UTMI_REG16(U16 data);
  5401. /*! \brief Reads the register 'USB_PHY_UTMI_REG16'. */
  5402. U16 GH_USB_PHY_get_UTMI_REG16(void);
  5403. /*! \brief Writes the bit group 'TX_text_clock' of register 'USB_PHY_UTMI_REG16'. */
  5404. void GH_USB_PHY_set_UTMI_REG16_TX_text_clock(U8 data);
  5405. /*! \brief Reads the bit group 'TX_text_clock' of register 'USB_PHY_UTMI_REG16'. */
  5406. U8 GH_USB_PHY_get_UTMI_REG16_TX_text_clock(void);
  5407. /*! \brief Writes the bit group 'TX_output_adjust' of register 'USB_PHY_UTMI_REG16'. */
  5408. void GH_USB_PHY_set_UTMI_REG16_TX_output_adjust(U8 data);
  5409. /*! \brief Reads the bit group 'TX_output_adjust' of register 'USB_PHY_UTMI_REG16'. */
  5410. U8 GH_USB_PHY_get_UTMI_REG16_TX_output_adjust(void);
  5411. /*! \brief Writes the bit group 'TX_pre_emphasis_adjust' of register 'USB_PHY_UTMI_REG16'. */
  5412. void GH_USB_PHY_set_UTMI_REG16_TX_pre_emphasis_adjust(U8 data);
  5413. /*! \brief Reads the bit group 'TX_pre_emphasis_adjust' of register 'USB_PHY_UTMI_REG16'. */
  5414. U8 GH_USB_PHY_get_UTMI_REG16_TX_pre_emphasis_adjust(void);
  5415. /*! \brief Writes the bit group 'TX_pre_emphasis_bias' of register 'USB_PHY_UTMI_REG16'. */
  5416. void GH_USB_PHY_set_UTMI_REG16_TX_pre_emphasis_bias(U8 data);
  5417. /*! \brief Reads the bit group 'TX_pre_emphasis_bias' of register 'USB_PHY_UTMI_REG16'. */
  5418. U8 GH_USB_PHY_get_UTMI_REG16_TX_pre_emphasis_bias(void);
  5419. /*! \brief Writes the bit group 'TX_current_bias' of register 'USB_PHY_UTMI_REG16'. */
  5420. void GH_USB_PHY_set_UTMI_REG16_TX_current_bias(U8 data);
  5421. /*! \brief Reads the bit group 'TX_current_bias' of register 'USB_PHY_UTMI_REG16'. */
  5422. U8 GH_USB_PHY_get_UTMI_REG16_TX_current_bias(void);
  5423. /*! \brief Writes the bit group 'HS_RTERM' of register 'USB_PHY_UTMI_REG16'. */
  5424. void GH_USB_PHY_set_UTMI_REG16_HS_RTERM(U8 data);
  5425. /*! \brief Reads the bit group 'HS_RTERM' of register 'USB_PHY_UTMI_REG16'. */
  5426. U8 GH_USB_PHY_get_UTMI_REG16_HS_RTERM(void);
  5427. /*! \brief Writes the bit group 'HS_TX' of register 'USB_PHY_UTMI_REG16'. */
  5428. void GH_USB_PHY_set_UTMI_REG16_HS_TX(U8 data);
  5429. /*! \brief Reads the bit group 'HS_TX' of register 'USB_PHY_UTMI_REG16'. */
  5430. U8 GH_USB_PHY_get_UTMI_REG16_HS_TX(void);
  5431. /*! \brief Writes the bit group 'VBUSDET_NC' of register 'USB_PHY_UTMI_REG16'. */
  5432. void GH_USB_PHY_set_UTMI_REG16_VBUSDET_NC(U8 data);
  5433. /*! \brief Reads the bit group 'VBUSDET_NC' of register 'USB_PHY_UTMI_REG16'. */
  5434. U8 GH_USB_PHY_get_UTMI_REG16_VBUSDET_NC(void);
  5435. #else /* GH_INLINE_LEVEL == 0 */
  5436. GH_INLINE void GH_USB_PHY_set_UTMI_REG16(U16 data)
  5437. {
  5438. *(volatile U16 *)REG_USB_PHY_UTMI_REG16 = data;
  5439. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5440. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG16] <-- 0x%08x\n",
  5441. REG_USB_PHY_UTMI_REG16,data,data);
  5442. #endif
  5443. }
  5444. GH_INLINE U16 GH_USB_PHY_get_UTMI_REG16(void)
  5445. {
  5446. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG16);
  5447. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5448. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG16] --> 0x%08x\n",
  5449. REG_USB_PHY_UTMI_REG16,value);
  5450. #endif
  5451. return value;
  5452. }
  5453. GH_INLINE void GH_USB_PHY_set_UTMI_REG16_TX_text_clock(U8 data)
  5454. {
  5455. GH_USB_PHY_UTMI_REG16_S d;
  5456. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG16;
  5457. d.bitc.tx_text_clock = data;
  5458. *(volatile U16 *)REG_USB_PHY_UTMI_REG16 = d.all;
  5459. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5460. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG16_TX_text_clock] <-- 0x%08x\n",
  5461. REG_USB_PHY_UTMI_REG16,d.all,d.all);
  5462. #endif
  5463. }
  5464. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG16_TX_text_clock(void)
  5465. {
  5466. GH_USB_PHY_UTMI_REG16_S tmp_value;
  5467. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG16);
  5468. tmp_value.all = value;
  5469. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5470. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG16_TX_text_clock] --> 0x%08x\n",
  5471. REG_USB_PHY_UTMI_REG16,value);
  5472. #endif
  5473. return tmp_value.bitc.tx_text_clock;
  5474. }
  5475. GH_INLINE void GH_USB_PHY_set_UTMI_REG16_TX_output_adjust(U8 data)
  5476. {
  5477. GH_USB_PHY_UTMI_REG16_S d;
  5478. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG16;
  5479. d.bitc.tx_output_adjust = data;
  5480. *(volatile U16 *)REG_USB_PHY_UTMI_REG16 = d.all;
  5481. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5482. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG16_TX_output_adjust] <-- 0x%08x\n",
  5483. REG_USB_PHY_UTMI_REG16,d.all,d.all);
  5484. #endif
  5485. }
  5486. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG16_TX_output_adjust(void)
  5487. {
  5488. GH_USB_PHY_UTMI_REG16_S tmp_value;
  5489. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG16);
  5490. tmp_value.all = value;
  5491. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5492. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG16_TX_output_adjust] --> 0x%08x\n",
  5493. REG_USB_PHY_UTMI_REG16,value);
  5494. #endif
  5495. return tmp_value.bitc.tx_output_adjust;
  5496. }
  5497. GH_INLINE void GH_USB_PHY_set_UTMI_REG16_TX_pre_emphasis_adjust(U8 data)
  5498. {
  5499. GH_USB_PHY_UTMI_REG16_S d;
  5500. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG16;
  5501. d.bitc.tx_pre_emphasis_adjust = data;
  5502. *(volatile U16 *)REG_USB_PHY_UTMI_REG16 = d.all;
  5503. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5504. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG16_TX_pre_emphasis_adjust] <-- 0x%08x\n",
  5505. REG_USB_PHY_UTMI_REG16,d.all,d.all);
  5506. #endif
  5507. }
  5508. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG16_TX_pre_emphasis_adjust(void)
  5509. {
  5510. GH_USB_PHY_UTMI_REG16_S tmp_value;
  5511. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG16);
  5512. tmp_value.all = value;
  5513. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5514. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG16_TX_pre_emphasis_adjust] --> 0x%08x\n",
  5515. REG_USB_PHY_UTMI_REG16,value);
  5516. #endif
  5517. return tmp_value.bitc.tx_pre_emphasis_adjust;
  5518. }
  5519. GH_INLINE void GH_USB_PHY_set_UTMI_REG16_TX_pre_emphasis_bias(U8 data)
  5520. {
  5521. GH_USB_PHY_UTMI_REG16_S d;
  5522. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG16;
  5523. d.bitc.tx_pre_emphasis_bias = data;
  5524. *(volatile U16 *)REG_USB_PHY_UTMI_REG16 = d.all;
  5525. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5526. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG16_TX_pre_emphasis_bias] <-- 0x%08x\n",
  5527. REG_USB_PHY_UTMI_REG16,d.all,d.all);
  5528. #endif
  5529. }
  5530. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG16_TX_pre_emphasis_bias(void)
  5531. {
  5532. GH_USB_PHY_UTMI_REG16_S tmp_value;
  5533. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG16);
  5534. tmp_value.all = value;
  5535. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5536. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG16_TX_pre_emphasis_bias] --> 0x%08x\n",
  5537. REG_USB_PHY_UTMI_REG16,value);
  5538. #endif
  5539. return tmp_value.bitc.tx_pre_emphasis_bias;
  5540. }
  5541. GH_INLINE void GH_USB_PHY_set_UTMI_REG16_TX_current_bias(U8 data)
  5542. {
  5543. GH_USB_PHY_UTMI_REG16_S d;
  5544. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG16;
  5545. d.bitc.tx_current_bias = data;
  5546. *(volatile U16 *)REG_USB_PHY_UTMI_REG16 = d.all;
  5547. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5548. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG16_TX_current_bias] <-- 0x%08x\n",
  5549. REG_USB_PHY_UTMI_REG16,d.all,d.all);
  5550. #endif
  5551. }
  5552. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG16_TX_current_bias(void)
  5553. {
  5554. GH_USB_PHY_UTMI_REG16_S tmp_value;
  5555. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG16);
  5556. tmp_value.all = value;
  5557. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5558. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG16_TX_current_bias] --> 0x%08x\n",
  5559. REG_USB_PHY_UTMI_REG16,value);
  5560. #endif
  5561. return tmp_value.bitc.tx_current_bias;
  5562. }
  5563. GH_INLINE void GH_USB_PHY_set_UTMI_REG16_HS_RTERM(U8 data)
  5564. {
  5565. GH_USB_PHY_UTMI_REG16_S d;
  5566. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG16;
  5567. d.bitc.hs_rterm = data;
  5568. *(volatile U16 *)REG_USB_PHY_UTMI_REG16 = d.all;
  5569. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5570. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG16_HS_RTERM] <-- 0x%08x\n",
  5571. REG_USB_PHY_UTMI_REG16,d.all,d.all);
  5572. #endif
  5573. }
  5574. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG16_HS_RTERM(void)
  5575. {
  5576. GH_USB_PHY_UTMI_REG16_S tmp_value;
  5577. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG16);
  5578. tmp_value.all = value;
  5579. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5580. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG16_HS_RTERM] --> 0x%08x\n",
  5581. REG_USB_PHY_UTMI_REG16,value);
  5582. #endif
  5583. return tmp_value.bitc.hs_rterm;
  5584. }
  5585. GH_INLINE void GH_USB_PHY_set_UTMI_REG16_HS_TX(U8 data)
  5586. {
  5587. GH_USB_PHY_UTMI_REG16_S d;
  5588. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG16;
  5589. d.bitc.hs_tx = data;
  5590. *(volatile U16 *)REG_USB_PHY_UTMI_REG16 = d.all;
  5591. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5592. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG16_HS_TX] <-- 0x%08x\n",
  5593. REG_USB_PHY_UTMI_REG16,d.all,d.all);
  5594. #endif
  5595. }
  5596. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG16_HS_TX(void)
  5597. {
  5598. GH_USB_PHY_UTMI_REG16_S tmp_value;
  5599. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG16);
  5600. tmp_value.all = value;
  5601. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5602. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG16_HS_TX] --> 0x%08x\n",
  5603. REG_USB_PHY_UTMI_REG16,value);
  5604. #endif
  5605. return tmp_value.bitc.hs_tx;
  5606. }
  5607. GH_INLINE void GH_USB_PHY_set_UTMI_REG16_VBUSDET_NC(U8 data)
  5608. {
  5609. GH_USB_PHY_UTMI_REG16_S d;
  5610. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG16;
  5611. d.bitc.vbusdet_nc = data;
  5612. *(volatile U16 *)REG_USB_PHY_UTMI_REG16 = d.all;
  5613. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5614. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG16_VBUSDET_NC] <-- 0x%08x\n",
  5615. REG_USB_PHY_UTMI_REG16,d.all,d.all);
  5616. #endif
  5617. }
  5618. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG16_VBUSDET_NC(void)
  5619. {
  5620. GH_USB_PHY_UTMI_REG16_S tmp_value;
  5621. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG16);
  5622. tmp_value.all = value;
  5623. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5624. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG16_VBUSDET_NC] --> 0x%08x\n",
  5625. REG_USB_PHY_UTMI_REG16,value);
  5626. #endif
  5627. return tmp_value.bitc.vbusdet_nc;
  5628. }
  5629. #endif /* GH_INLINE_LEVEL == 0 */
  5630. /*----------------------------------------------------------------------------*/
  5631. /* register USB_PHY_UTMI_REG17 (read/write) */
  5632. /*----------------------------------------------------------------------------*/
  5633. #if GH_INLINE_LEVEL == 0
  5634. /*! \brief Writes the register 'USB_PHY_UTMI_REG17'. */
  5635. void GH_USB_PHY_set_UTMI_REG17(U16 data);
  5636. /*! \brief Reads the register 'USB_PHY_UTMI_REG17'. */
  5637. U16 GH_USB_PHY_get_UTMI_REG17(void);
  5638. /*! \brief Writes the bit group 'HS_RX' of register 'USB_PHY_UTMI_REG17'. */
  5639. void GH_USB_PHY_set_UTMI_REG17_HS_RX(U8 data);
  5640. /*! \brief Reads the bit group 'HS_RX' of register 'USB_PHY_UTMI_REG17'. */
  5641. U8 GH_USB_PHY_get_UTMI_REG17_HS_RX(void);
  5642. /*! \brief Writes the bit group 'RTERM' of register 'USB_PHY_UTMI_REG17'. */
  5643. void GH_USB_PHY_set_UTMI_REG17_RTERM(U8 data);
  5644. /*! \brief Reads the bit group 'RTERM' of register 'USB_PHY_UTMI_REG17'. */
  5645. U8 GH_USB_PHY_get_UTMI_REG17_RTERM(void);
  5646. /*! \brief Writes the bit group 'HS_RTERM' of register 'USB_PHY_UTMI_REG17'. */
  5647. void GH_USB_PHY_set_UTMI_REG17_HS_RTERM(U8 data);
  5648. /*! \brief Reads the bit group 'HS_RTERM' of register 'USB_PHY_UTMI_REG17'. */
  5649. U8 GH_USB_PHY_get_UTMI_REG17_HS_RTERM(void);
  5650. /*! \brief Writes the bit group 'HS_TX_ITEST' of register 'USB_PHY_UTMI_REG17'. */
  5651. void GH_USB_PHY_set_UTMI_REG17_HS_TX_ITEST(U8 data);
  5652. /*! \brief Reads the bit group 'HS_TX_ITEST' of register 'USB_PHY_UTMI_REG17'. */
  5653. U8 GH_USB_PHY_get_UTMI_REG17_HS_TX_ITEST(void);
  5654. /*! \brief Writes the bit group 'Mute' of register 'USB_PHY_UTMI_REG17'. */
  5655. void GH_USB_PHY_set_UTMI_REG17_Mute(U8 data);
  5656. /*! \brief Reads the bit group 'Mute' of register 'USB_PHY_UTMI_REG17'. */
  5657. U8 GH_USB_PHY_get_UTMI_REG17_Mute(void);
  5658. /*! \brief Writes the bit group 'pre_emphasis_en' of register 'USB_PHY_UTMI_REG17'. */
  5659. void GH_USB_PHY_set_UTMI_REG17_pre_emphasis_en(U8 data);
  5660. /*! \brief Reads the bit group 'pre_emphasis_en' of register 'USB_PHY_UTMI_REG17'. */
  5661. U8 GH_USB_PHY_get_UTMI_REG17_pre_emphasis_en(void);
  5662. /*! \brief Writes the bit group 'transition_edge' of register 'USB_PHY_UTMI_REG17'. */
  5663. void GH_USB_PHY_set_UTMI_REG17_transition_edge(U8 data);
  5664. /*! \brief Reads the bit group 'transition_edge' of register 'USB_PHY_UTMI_REG17'. */
  5665. U8 GH_USB_PHY_get_UTMI_REG17_transition_edge(void);
  5666. /*! \brief Writes the bit group 'enable_edge' of register 'USB_PHY_UTMI_REG17'. */
  5667. void GH_USB_PHY_set_UTMI_REG17_enable_edge(U8 data);
  5668. /*! \brief Reads the bit group 'enable_edge' of register 'USB_PHY_UTMI_REG17'. */
  5669. U8 GH_USB_PHY_get_UTMI_REG17_enable_edge(void);
  5670. /*! \brief Writes the bit group 'clock_output' of register 'USB_PHY_UTMI_REG17'. */
  5671. void GH_USB_PHY_set_UTMI_REG17_clock_output(U8 data);
  5672. /*! \brief Reads the bit group 'clock_output' of register 'USB_PHY_UTMI_REG17'. */
  5673. U8 GH_USB_PHY_get_UTMI_REG17_clock_output(void);
  5674. /*! \brief Writes the bit group 'source' of register 'USB_PHY_UTMI_REG17'. */
  5675. void GH_USB_PHY_set_UTMI_REG17_source(U8 data);
  5676. /*! \brief Reads the bit group 'source' of register 'USB_PHY_UTMI_REG17'. */
  5677. U8 GH_USB_PHY_get_UTMI_REG17_source(void);
  5678. #else /* GH_INLINE_LEVEL == 0 */
  5679. GH_INLINE void GH_USB_PHY_set_UTMI_REG17(U16 data)
  5680. {
  5681. *(volatile U16 *)REG_USB_PHY_UTMI_REG17 = data;
  5682. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5683. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG17] <-- 0x%08x\n",
  5684. REG_USB_PHY_UTMI_REG17,data,data);
  5685. #endif
  5686. }
  5687. GH_INLINE U16 GH_USB_PHY_get_UTMI_REG17(void)
  5688. {
  5689. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG17);
  5690. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5691. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG17] --> 0x%08x\n",
  5692. REG_USB_PHY_UTMI_REG17,value);
  5693. #endif
  5694. return value;
  5695. }
  5696. GH_INLINE void GH_USB_PHY_set_UTMI_REG17_HS_RX(U8 data)
  5697. {
  5698. GH_USB_PHY_UTMI_REG17_S d;
  5699. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG17;
  5700. d.bitc.hs_rx = data;
  5701. *(volatile U16 *)REG_USB_PHY_UTMI_REG17 = d.all;
  5702. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5703. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG17_HS_RX] <-- 0x%08x\n",
  5704. REG_USB_PHY_UTMI_REG17,d.all,d.all);
  5705. #endif
  5706. }
  5707. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG17_HS_RX(void)
  5708. {
  5709. GH_USB_PHY_UTMI_REG17_S tmp_value;
  5710. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG17);
  5711. tmp_value.all = value;
  5712. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5713. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG17_HS_RX] --> 0x%08x\n",
  5714. REG_USB_PHY_UTMI_REG17,value);
  5715. #endif
  5716. return tmp_value.bitc.hs_rx;
  5717. }
  5718. GH_INLINE void GH_USB_PHY_set_UTMI_REG17_RTERM(U8 data)
  5719. {
  5720. GH_USB_PHY_UTMI_REG17_S d;
  5721. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG17;
  5722. d.bitc.rterm = data;
  5723. *(volatile U16 *)REG_USB_PHY_UTMI_REG17 = d.all;
  5724. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5725. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG17_RTERM] <-- 0x%08x\n",
  5726. REG_USB_PHY_UTMI_REG17,d.all,d.all);
  5727. #endif
  5728. }
  5729. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG17_RTERM(void)
  5730. {
  5731. GH_USB_PHY_UTMI_REG17_S tmp_value;
  5732. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG17);
  5733. tmp_value.all = value;
  5734. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5735. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG17_RTERM] --> 0x%08x\n",
  5736. REG_USB_PHY_UTMI_REG17,value);
  5737. #endif
  5738. return tmp_value.bitc.rterm;
  5739. }
  5740. GH_INLINE void GH_USB_PHY_set_UTMI_REG17_HS_RTERM(U8 data)
  5741. {
  5742. GH_USB_PHY_UTMI_REG17_S d;
  5743. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG17;
  5744. d.bitc.hs_rterm = data;
  5745. *(volatile U16 *)REG_USB_PHY_UTMI_REG17 = d.all;
  5746. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5747. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG17_HS_RTERM] <-- 0x%08x\n",
  5748. REG_USB_PHY_UTMI_REG17,d.all,d.all);
  5749. #endif
  5750. }
  5751. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG17_HS_RTERM(void)
  5752. {
  5753. GH_USB_PHY_UTMI_REG17_S tmp_value;
  5754. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG17);
  5755. tmp_value.all = value;
  5756. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5757. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG17_HS_RTERM] --> 0x%08x\n",
  5758. REG_USB_PHY_UTMI_REG17,value);
  5759. #endif
  5760. return tmp_value.bitc.hs_rterm;
  5761. }
  5762. GH_INLINE void GH_USB_PHY_set_UTMI_REG17_HS_TX_ITEST(U8 data)
  5763. {
  5764. GH_USB_PHY_UTMI_REG17_S d;
  5765. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG17;
  5766. d.bitc.hs_tx_itest = data;
  5767. *(volatile U16 *)REG_USB_PHY_UTMI_REG17 = d.all;
  5768. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5769. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG17_HS_TX_ITEST] <-- 0x%08x\n",
  5770. REG_USB_PHY_UTMI_REG17,d.all,d.all);
  5771. #endif
  5772. }
  5773. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG17_HS_TX_ITEST(void)
  5774. {
  5775. GH_USB_PHY_UTMI_REG17_S tmp_value;
  5776. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG17);
  5777. tmp_value.all = value;
  5778. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5779. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG17_HS_TX_ITEST] --> 0x%08x\n",
  5780. REG_USB_PHY_UTMI_REG17,value);
  5781. #endif
  5782. return tmp_value.bitc.hs_tx_itest;
  5783. }
  5784. GH_INLINE void GH_USB_PHY_set_UTMI_REG17_Mute(U8 data)
  5785. {
  5786. GH_USB_PHY_UTMI_REG17_S d;
  5787. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG17;
  5788. d.bitc.mute = data;
  5789. *(volatile U16 *)REG_USB_PHY_UTMI_REG17 = d.all;
  5790. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5791. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG17_Mute] <-- 0x%08x\n",
  5792. REG_USB_PHY_UTMI_REG17,d.all,d.all);
  5793. #endif
  5794. }
  5795. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG17_Mute(void)
  5796. {
  5797. GH_USB_PHY_UTMI_REG17_S tmp_value;
  5798. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG17);
  5799. tmp_value.all = value;
  5800. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5801. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG17_Mute] --> 0x%08x\n",
  5802. REG_USB_PHY_UTMI_REG17,value);
  5803. #endif
  5804. return tmp_value.bitc.mute;
  5805. }
  5806. GH_INLINE void GH_USB_PHY_set_UTMI_REG17_pre_emphasis_en(U8 data)
  5807. {
  5808. GH_USB_PHY_UTMI_REG17_S d;
  5809. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG17;
  5810. d.bitc.pre_emphasis_en = data;
  5811. *(volatile U16 *)REG_USB_PHY_UTMI_REG17 = d.all;
  5812. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5813. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG17_pre_emphasis_en] <-- 0x%08x\n",
  5814. REG_USB_PHY_UTMI_REG17,d.all,d.all);
  5815. #endif
  5816. }
  5817. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG17_pre_emphasis_en(void)
  5818. {
  5819. GH_USB_PHY_UTMI_REG17_S tmp_value;
  5820. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG17);
  5821. tmp_value.all = value;
  5822. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5823. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG17_pre_emphasis_en] --> 0x%08x\n",
  5824. REG_USB_PHY_UTMI_REG17,value);
  5825. #endif
  5826. return tmp_value.bitc.pre_emphasis_en;
  5827. }
  5828. GH_INLINE void GH_USB_PHY_set_UTMI_REG17_transition_edge(U8 data)
  5829. {
  5830. GH_USB_PHY_UTMI_REG17_S d;
  5831. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG17;
  5832. d.bitc.transition_edge = data;
  5833. *(volatile U16 *)REG_USB_PHY_UTMI_REG17 = d.all;
  5834. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5835. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG17_transition_edge] <-- 0x%08x\n",
  5836. REG_USB_PHY_UTMI_REG17,d.all,d.all);
  5837. #endif
  5838. }
  5839. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG17_transition_edge(void)
  5840. {
  5841. GH_USB_PHY_UTMI_REG17_S tmp_value;
  5842. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG17);
  5843. tmp_value.all = value;
  5844. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5845. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG17_transition_edge] --> 0x%08x\n",
  5846. REG_USB_PHY_UTMI_REG17,value);
  5847. #endif
  5848. return tmp_value.bitc.transition_edge;
  5849. }
  5850. GH_INLINE void GH_USB_PHY_set_UTMI_REG17_enable_edge(U8 data)
  5851. {
  5852. GH_USB_PHY_UTMI_REG17_S d;
  5853. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG17;
  5854. d.bitc.enable_edge = data;
  5855. *(volatile U16 *)REG_USB_PHY_UTMI_REG17 = d.all;
  5856. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5857. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG17_enable_edge] <-- 0x%08x\n",
  5858. REG_USB_PHY_UTMI_REG17,d.all,d.all);
  5859. #endif
  5860. }
  5861. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG17_enable_edge(void)
  5862. {
  5863. GH_USB_PHY_UTMI_REG17_S tmp_value;
  5864. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG17);
  5865. tmp_value.all = value;
  5866. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5867. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG17_enable_edge] --> 0x%08x\n",
  5868. REG_USB_PHY_UTMI_REG17,value);
  5869. #endif
  5870. return tmp_value.bitc.enable_edge;
  5871. }
  5872. GH_INLINE void GH_USB_PHY_set_UTMI_REG17_clock_output(U8 data)
  5873. {
  5874. GH_USB_PHY_UTMI_REG17_S d;
  5875. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG17;
  5876. d.bitc.clock_output = data;
  5877. *(volatile U16 *)REG_USB_PHY_UTMI_REG17 = d.all;
  5878. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5879. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG17_clock_output] <-- 0x%08x\n",
  5880. REG_USB_PHY_UTMI_REG17,d.all,d.all);
  5881. #endif
  5882. }
  5883. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG17_clock_output(void)
  5884. {
  5885. GH_USB_PHY_UTMI_REG17_S tmp_value;
  5886. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG17);
  5887. tmp_value.all = value;
  5888. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5889. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG17_clock_output] --> 0x%08x\n",
  5890. REG_USB_PHY_UTMI_REG17,value);
  5891. #endif
  5892. return tmp_value.bitc.clock_output;
  5893. }
  5894. GH_INLINE void GH_USB_PHY_set_UTMI_REG17_source(U8 data)
  5895. {
  5896. GH_USB_PHY_UTMI_REG17_S d;
  5897. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG17;
  5898. d.bitc.source = data;
  5899. *(volatile U16 *)REG_USB_PHY_UTMI_REG17 = d.all;
  5900. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5901. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG17_source] <-- 0x%08x\n",
  5902. REG_USB_PHY_UTMI_REG17,d.all,d.all);
  5903. #endif
  5904. }
  5905. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG17_source(void)
  5906. {
  5907. GH_USB_PHY_UTMI_REG17_S tmp_value;
  5908. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG17);
  5909. tmp_value.all = value;
  5910. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5911. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG17_source] --> 0x%08x\n",
  5912. REG_USB_PHY_UTMI_REG17,value);
  5913. #endif
  5914. return tmp_value.bitc.source;
  5915. }
  5916. #endif /* GH_INLINE_LEVEL == 0 */
  5917. /*----------------------------------------------------------------------------*/
  5918. /* register USB_PHY_UTMI_REG18 (read/write) */
  5919. /*----------------------------------------------------------------------------*/
  5920. #if GH_INLINE_LEVEL == 0
  5921. /*! \brief Writes the register 'USB_PHY_UTMI_REG18'. */
  5922. void GH_USB_PHY_set_UTMI_REG18(U16 data);
  5923. /*! \brief Reads the register 'USB_PHY_UTMI_REG18'. */
  5924. U16 GH_USB_PHY_get_UTMI_REG18(void);
  5925. /*! \brief Writes the bit group 'lock' of register 'USB_PHY_UTMI_REG18'. */
  5926. void GH_USB_PHY_set_UTMI_REG18_lock(U8 data);
  5927. /*! \brief Reads the bit group 'lock' of register 'USB_PHY_UTMI_REG18'. */
  5928. U8 GH_USB_PHY_get_UTMI_REG18_lock(void);
  5929. /*! \brief Writes the bit group 'flag1' of register 'USB_PHY_UTMI_REG18'. */
  5930. void GH_USB_PHY_set_UTMI_REG18_flag1(U8 data);
  5931. /*! \brief Reads the bit group 'flag1' of register 'USB_PHY_UTMI_REG18'. */
  5932. U8 GH_USB_PHY_get_UTMI_REG18_flag1(void);
  5933. /*! \brief Writes the bit group 'flag2' of register 'USB_PHY_UTMI_REG18'. */
  5934. void GH_USB_PHY_set_UTMI_REG18_flag2(U8 data);
  5935. /*! \brief Reads the bit group 'flag2' of register 'USB_PHY_UTMI_REG18'. */
  5936. U8 GH_USB_PHY_get_UTMI_REG18_flag2(void);
  5937. /*! \brief Writes the bit group 'test' of register 'USB_PHY_UTMI_REG18'. */
  5938. void GH_USB_PHY_set_UTMI_REG18_test(U8 data);
  5939. /*! \brief Reads the bit group 'test' of register 'USB_PHY_UTMI_REG18'. */
  5940. U8 GH_USB_PHY_get_UTMI_REG18_test(void);
  5941. /*! \brief Writes the bit group 'Power_good' of register 'USB_PHY_UTMI_REG18'. */
  5942. void GH_USB_PHY_set_UTMI_REG18_Power_good(U8 data);
  5943. /*! \brief Reads the bit group 'Power_good' of register 'USB_PHY_UTMI_REG18'. */
  5944. U8 GH_USB_PHY_get_UTMI_REG18_Power_good(void);
  5945. /*! \brief Writes the bit group 'Vbus' of register 'USB_PHY_UTMI_REG18'. */
  5946. void GH_USB_PHY_set_UTMI_REG18_Vbus(U8 data);
  5947. /*! \brief Reads the bit group 'Vbus' of register 'USB_PHY_UTMI_REG18'. */
  5948. U8 GH_USB_PHY_get_UTMI_REG18_Vbus(void);
  5949. /*! \brief Writes the bit group 'OTG' of register 'USB_PHY_UTMI_REG18'. */
  5950. void GH_USB_PHY_set_UTMI_REG18_OTG(U8 data);
  5951. /*! \brief Reads the bit group 'OTG' of register 'USB_PHY_UTMI_REG18'. */
  5952. U8 GH_USB_PHY_get_UTMI_REG18_OTG(void);
  5953. /*! \brief Writes the bit group 'CID' of register 'USB_PHY_UTMI_REG18'. */
  5954. void GH_USB_PHY_set_UTMI_REG18_CID(U8 data);
  5955. /*! \brief Reads the bit group 'CID' of register 'USB_PHY_UTMI_REG18'. */
  5956. U8 GH_USB_PHY_get_UTMI_REG18_CID(void);
  5957. /*! \brief Writes the bit group 'AVALID_ATOP' of register 'USB_PHY_UTMI_REG18'. */
  5958. void GH_USB_PHY_set_UTMI_REG18_AVALID_ATOP(U8 data);
  5959. /*! \brief Reads the bit group 'AVALID_ATOP' of register 'USB_PHY_UTMI_REG18'. */
  5960. U8 GH_USB_PHY_get_UTMI_REG18_AVALID_ATOP(void);
  5961. /*! \brief Writes the bit group 'HS_DISCONNECT' of register 'USB_PHY_UTMI_REG18'. */
  5962. void GH_USB_PHY_set_UTMI_REG18_HS_DISCONNECT(U8 data);
  5963. /*! \brief Reads the bit group 'HS_DISCONNECT' of register 'USB_PHY_UTMI_REG18'. */
  5964. U8 GH_USB_PHY_get_UTMI_REG18_HS_DISCONNECT(void);
  5965. /*! \brief Writes the bit group 'HS_RX_DATA' of register 'USB_PHY_UTMI_REG18'. */
  5966. void GH_USB_PHY_set_UTMI_REG18_HS_RX_DATA(U8 data);
  5967. /*! \brief Reads the bit group 'HS_RX_DATA' of register 'USB_PHY_UTMI_REG18'. */
  5968. U8 GH_USB_PHY_get_UTMI_REG18_HS_RX_DATA(void);
  5969. /*! \brief Writes the bit group 'HS_RX_CHIRP' of register 'USB_PHY_UTMI_REG18'. */
  5970. void GH_USB_PHY_set_UTMI_REG18_HS_RX_CHIRP(U8 data);
  5971. /*! \brief Reads the bit group 'HS_RX_CHIRP' of register 'USB_PHY_UTMI_REG18'. */
  5972. U8 GH_USB_PHY_get_UTMI_REG18_HS_RX_CHIRP(void);
  5973. /*! \brief Writes the bit group 'FL_LINESTATE0' of register 'USB_PHY_UTMI_REG18'. */
  5974. void GH_USB_PHY_set_UTMI_REG18_FL_LINESTATE0(U8 data);
  5975. /*! \brief Reads the bit group 'FL_LINESTATE0' of register 'USB_PHY_UTMI_REG18'. */
  5976. U8 GH_USB_PHY_get_UTMI_REG18_FL_LINESTATE0(void);
  5977. /*! \brief Writes the bit group 'FL_LINESTATE1' of register 'USB_PHY_UTMI_REG18'. */
  5978. void GH_USB_PHY_set_UTMI_REG18_FL_LINESTATE1(U8 data);
  5979. /*! \brief Reads the bit group 'FL_LINESTATE1' of register 'USB_PHY_UTMI_REG18'. */
  5980. U8 GH_USB_PHY_get_UTMI_REG18_FL_LINESTATE1(void);
  5981. /*! \brief Writes the bit group 'failed' of register 'USB_PHY_UTMI_REG18'. */
  5982. void GH_USB_PHY_set_UTMI_REG18_failed(U8 data);
  5983. /*! \brief Reads the bit group 'failed' of register 'USB_PHY_UTMI_REG18'. */
  5984. U8 GH_USB_PHY_get_UTMI_REG18_failed(void);
  5985. /*! \brief Writes the bit group 'finish' of register 'USB_PHY_UTMI_REG18'. */
  5986. void GH_USB_PHY_set_UTMI_REG18_finish(U8 data);
  5987. /*! \brief Reads the bit group 'finish' of register 'USB_PHY_UTMI_REG18'. */
  5988. U8 GH_USB_PHY_get_UTMI_REG18_finish(void);
  5989. #else /* GH_INLINE_LEVEL == 0 */
  5990. GH_INLINE void GH_USB_PHY_set_UTMI_REG18(U16 data)
  5991. {
  5992. *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = data;
  5993. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  5994. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18] <-- 0x%08x\n",
  5995. REG_USB_PHY_UTMI_REG18,data,data);
  5996. #endif
  5997. }
  5998. GH_INLINE U16 GH_USB_PHY_get_UTMI_REG18(void)
  5999. {
  6000. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
  6001. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6002. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18] --> 0x%08x\n",
  6003. REG_USB_PHY_UTMI_REG18,value);
  6004. #endif
  6005. return value;
  6006. }
  6007. GH_INLINE void GH_USB_PHY_set_UTMI_REG18_lock(U8 data)
  6008. {
  6009. GH_USB_PHY_UTMI_REG18_S d;
  6010. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG18;
  6011. d.bitc.lock = data;
  6012. *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = d.all;
  6013. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6014. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18_lock] <-- 0x%08x\n",
  6015. REG_USB_PHY_UTMI_REG18,d.all,d.all);
  6016. #endif
  6017. }
  6018. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG18_lock(void)
  6019. {
  6020. GH_USB_PHY_UTMI_REG18_S tmp_value;
  6021. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
  6022. tmp_value.all = value;
  6023. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6024. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18_lock] --> 0x%08x\n",
  6025. REG_USB_PHY_UTMI_REG18,value);
  6026. #endif
  6027. return tmp_value.bitc.lock;
  6028. }
  6029. GH_INLINE void GH_USB_PHY_set_UTMI_REG18_flag1(U8 data)
  6030. {
  6031. GH_USB_PHY_UTMI_REG18_S d;
  6032. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG18;
  6033. d.bitc.flag1 = data;
  6034. *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = d.all;
  6035. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6036. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18_flag1] <-- 0x%08x\n",
  6037. REG_USB_PHY_UTMI_REG18,d.all,d.all);
  6038. #endif
  6039. }
  6040. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG18_flag1(void)
  6041. {
  6042. GH_USB_PHY_UTMI_REG18_S tmp_value;
  6043. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
  6044. tmp_value.all = value;
  6045. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6046. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18_flag1] --> 0x%08x\n",
  6047. REG_USB_PHY_UTMI_REG18,value);
  6048. #endif
  6049. return tmp_value.bitc.flag1;
  6050. }
  6051. GH_INLINE void GH_USB_PHY_set_UTMI_REG18_flag2(U8 data)
  6052. {
  6053. GH_USB_PHY_UTMI_REG18_S d;
  6054. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG18;
  6055. d.bitc.flag2 = data;
  6056. *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = d.all;
  6057. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6058. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18_flag2] <-- 0x%08x\n",
  6059. REG_USB_PHY_UTMI_REG18,d.all,d.all);
  6060. #endif
  6061. }
  6062. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG18_flag2(void)
  6063. {
  6064. GH_USB_PHY_UTMI_REG18_S tmp_value;
  6065. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
  6066. tmp_value.all = value;
  6067. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6068. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18_flag2] --> 0x%08x\n",
  6069. REG_USB_PHY_UTMI_REG18,value);
  6070. #endif
  6071. return tmp_value.bitc.flag2;
  6072. }
  6073. GH_INLINE void GH_USB_PHY_set_UTMI_REG18_test(U8 data)
  6074. {
  6075. GH_USB_PHY_UTMI_REG18_S d;
  6076. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG18;
  6077. d.bitc.test = data;
  6078. *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = d.all;
  6079. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6080. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18_test] <-- 0x%08x\n",
  6081. REG_USB_PHY_UTMI_REG18,d.all,d.all);
  6082. #endif
  6083. }
  6084. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG18_test(void)
  6085. {
  6086. GH_USB_PHY_UTMI_REG18_S tmp_value;
  6087. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
  6088. tmp_value.all = value;
  6089. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6090. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18_test] --> 0x%08x\n",
  6091. REG_USB_PHY_UTMI_REG18,value);
  6092. #endif
  6093. return tmp_value.bitc.test;
  6094. }
  6095. GH_INLINE void GH_USB_PHY_set_UTMI_REG18_Power_good(U8 data)
  6096. {
  6097. GH_USB_PHY_UTMI_REG18_S d;
  6098. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG18;
  6099. d.bitc.power_good = data;
  6100. *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = d.all;
  6101. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6102. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18_Power_good] <-- 0x%08x\n",
  6103. REG_USB_PHY_UTMI_REG18,d.all,d.all);
  6104. #endif
  6105. }
  6106. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG18_Power_good(void)
  6107. {
  6108. GH_USB_PHY_UTMI_REG18_S tmp_value;
  6109. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
  6110. tmp_value.all = value;
  6111. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6112. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18_Power_good] --> 0x%08x\n",
  6113. REG_USB_PHY_UTMI_REG18,value);
  6114. #endif
  6115. return tmp_value.bitc.power_good;
  6116. }
  6117. GH_INLINE void GH_USB_PHY_set_UTMI_REG18_Vbus(U8 data)
  6118. {
  6119. GH_USB_PHY_UTMI_REG18_S d;
  6120. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG18;
  6121. d.bitc.vbus = data;
  6122. *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = d.all;
  6123. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6124. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18_Vbus] <-- 0x%08x\n",
  6125. REG_USB_PHY_UTMI_REG18,d.all,d.all);
  6126. #endif
  6127. }
  6128. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG18_Vbus(void)
  6129. {
  6130. GH_USB_PHY_UTMI_REG18_S tmp_value;
  6131. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
  6132. tmp_value.all = value;
  6133. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6134. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18_Vbus] --> 0x%08x\n",
  6135. REG_USB_PHY_UTMI_REG18,value);
  6136. #endif
  6137. return tmp_value.bitc.vbus;
  6138. }
  6139. GH_INLINE void GH_USB_PHY_set_UTMI_REG18_OTG(U8 data)
  6140. {
  6141. GH_USB_PHY_UTMI_REG18_S d;
  6142. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG18;
  6143. d.bitc.otg = data;
  6144. *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = d.all;
  6145. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6146. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18_OTG] <-- 0x%08x\n",
  6147. REG_USB_PHY_UTMI_REG18,d.all,d.all);
  6148. #endif
  6149. }
  6150. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG18_OTG(void)
  6151. {
  6152. GH_USB_PHY_UTMI_REG18_S tmp_value;
  6153. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
  6154. tmp_value.all = value;
  6155. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6156. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18_OTG] --> 0x%08x\n",
  6157. REG_USB_PHY_UTMI_REG18,value);
  6158. #endif
  6159. return tmp_value.bitc.otg;
  6160. }
  6161. GH_INLINE void GH_USB_PHY_set_UTMI_REG18_CID(U8 data)
  6162. {
  6163. GH_USB_PHY_UTMI_REG18_S d;
  6164. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG18;
  6165. d.bitc.cid = data;
  6166. *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = d.all;
  6167. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6168. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18_CID] <-- 0x%08x\n",
  6169. REG_USB_PHY_UTMI_REG18,d.all,d.all);
  6170. #endif
  6171. }
  6172. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG18_CID(void)
  6173. {
  6174. GH_USB_PHY_UTMI_REG18_S tmp_value;
  6175. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
  6176. tmp_value.all = value;
  6177. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6178. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18_CID] --> 0x%08x\n",
  6179. REG_USB_PHY_UTMI_REG18,value);
  6180. #endif
  6181. return tmp_value.bitc.cid;
  6182. }
  6183. GH_INLINE void GH_USB_PHY_set_UTMI_REG18_AVALID_ATOP(U8 data)
  6184. {
  6185. GH_USB_PHY_UTMI_REG18_S d;
  6186. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG18;
  6187. d.bitc.avalid_atop = data;
  6188. *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = d.all;
  6189. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6190. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18_AVALID_ATOP] <-- 0x%08x\n",
  6191. REG_USB_PHY_UTMI_REG18,d.all,d.all);
  6192. #endif
  6193. }
  6194. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG18_AVALID_ATOP(void)
  6195. {
  6196. GH_USB_PHY_UTMI_REG18_S tmp_value;
  6197. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
  6198. tmp_value.all = value;
  6199. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6200. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18_AVALID_ATOP] --> 0x%08x\n",
  6201. REG_USB_PHY_UTMI_REG18,value);
  6202. #endif
  6203. return tmp_value.bitc.avalid_atop;
  6204. }
  6205. GH_INLINE void GH_USB_PHY_set_UTMI_REG18_HS_DISCONNECT(U8 data)
  6206. {
  6207. GH_USB_PHY_UTMI_REG18_S d;
  6208. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG18;
  6209. d.bitc.hs_disconnect = data;
  6210. *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = d.all;
  6211. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6212. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18_HS_DISCONNECT] <-- 0x%08x\n",
  6213. REG_USB_PHY_UTMI_REG18,d.all,d.all);
  6214. #endif
  6215. }
  6216. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG18_HS_DISCONNECT(void)
  6217. {
  6218. GH_USB_PHY_UTMI_REG18_S tmp_value;
  6219. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
  6220. tmp_value.all = value;
  6221. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6222. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18_HS_DISCONNECT] --> 0x%08x\n",
  6223. REG_USB_PHY_UTMI_REG18,value);
  6224. #endif
  6225. return tmp_value.bitc.hs_disconnect;
  6226. }
  6227. GH_INLINE void GH_USB_PHY_set_UTMI_REG18_HS_RX_DATA(U8 data)
  6228. {
  6229. GH_USB_PHY_UTMI_REG18_S d;
  6230. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG18;
  6231. d.bitc.hs_rx_data = data;
  6232. *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = d.all;
  6233. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6234. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18_HS_RX_DATA] <-- 0x%08x\n",
  6235. REG_USB_PHY_UTMI_REG18,d.all,d.all);
  6236. #endif
  6237. }
  6238. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG18_HS_RX_DATA(void)
  6239. {
  6240. GH_USB_PHY_UTMI_REG18_S tmp_value;
  6241. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
  6242. tmp_value.all = value;
  6243. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6244. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18_HS_RX_DATA] --> 0x%08x\n",
  6245. REG_USB_PHY_UTMI_REG18,value);
  6246. #endif
  6247. return tmp_value.bitc.hs_rx_data;
  6248. }
  6249. GH_INLINE void GH_USB_PHY_set_UTMI_REG18_HS_RX_CHIRP(U8 data)
  6250. {
  6251. GH_USB_PHY_UTMI_REG18_S d;
  6252. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG18;
  6253. d.bitc.hs_rx_chirp = data;
  6254. *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = d.all;
  6255. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6256. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18_HS_RX_CHIRP] <-- 0x%08x\n",
  6257. REG_USB_PHY_UTMI_REG18,d.all,d.all);
  6258. #endif
  6259. }
  6260. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG18_HS_RX_CHIRP(void)
  6261. {
  6262. GH_USB_PHY_UTMI_REG18_S tmp_value;
  6263. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
  6264. tmp_value.all = value;
  6265. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6266. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18_HS_RX_CHIRP] --> 0x%08x\n",
  6267. REG_USB_PHY_UTMI_REG18,value);
  6268. #endif
  6269. return tmp_value.bitc.hs_rx_chirp;
  6270. }
  6271. GH_INLINE void GH_USB_PHY_set_UTMI_REG18_FL_LINESTATE0(U8 data)
  6272. {
  6273. GH_USB_PHY_UTMI_REG18_S d;
  6274. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG18;
  6275. d.bitc.fl_linestate0 = data;
  6276. *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = d.all;
  6277. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6278. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18_FL_LINESTATE0] <-- 0x%08x\n",
  6279. REG_USB_PHY_UTMI_REG18,d.all,d.all);
  6280. #endif
  6281. }
  6282. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG18_FL_LINESTATE0(void)
  6283. {
  6284. GH_USB_PHY_UTMI_REG18_S tmp_value;
  6285. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
  6286. tmp_value.all = value;
  6287. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6288. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18_FL_LINESTATE0] --> 0x%08x\n",
  6289. REG_USB_PHY_UTMI_REG18,value);
  6290. #endif
  6291. return tmp_value.bitc.fl_linestate0;
  6292. }
  6293. GH_INLINE void GH_USB_PHY_set_UTMI_REG18_FL_LINESTATE1(U8 data)
  6294. {
  6295. GH_USB_PHY_UTMI_REG18_S d;
  6296. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG18;
  6297. d.bitc.fl_linestate1 = data;
  6298. *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = d.all;
  6299. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6300. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18_FL_LINESTATE1] <-- 0x%08x\n",
  6301. REG_USB_PHY_UTMI_REG18,d.all,d.all);
  6302. #endif
  6303. }
  6304. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG18_FL_LINESTATE1(void)
  6305. {
  6306. GH_USB_PHY_UTMI_REG18_S tmp_value;
  6307. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
  6308. tmp_value.all = value;
  6309. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6310. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18_FL_LINESTATE1] --> 0x%08x\n",
  6311. REG_USB_PHY_UTMI_REG18,value);
  6312. #endif
  6313. return tmp_value.bitc.fl_linestate1;
  6314. }
  6315. GH_INLINE void GH_USB_PHY_set_UTMI_REG18_failed(U8 data)
  6316. {
  6317. GH_USB_PHY_UTMI_REG18_S d;
  6318. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG18;
  6319. d.bitc.failed = data;
  6320. *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = d.all;
  6321. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6322. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18_failed] <-- 0x%08x\n",
  6323. REG_USB_PHY_UTMI_REG18,d.all,d.all);
  6324. #endif
  6325. }
  6326. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG18_failed(void)
  6327. {
  6328. GH_USB_PHY_UTMI_REG18_S tmp_value;
  6329. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
  6330. tmp_value.all = value;
  6331. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6332. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18_failed] --> 0x%08x\n",
  6333. REG_USB_PHY_UTMI_REG18,value);
  6334. #endif
  6335. return tmp_value.bitc.failed;
  6336. }
  6337. GH_INLINE void GH_USB_PHY_set_UTMI_REG18_finish(U8 data)
  6338. {
  6339. GH_USB_PHY_UTMI_REG18_S d;
  6340. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG18;
  6341. d.bitc.finish = data;
  6342. *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = d.all;
  6343. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6344. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18_finish] <-- 0x%08x\n",
  6345. REG_USB_PHY_UTMI_REG18,d.all,d.all);
  6346. #endif
  6347. }
  6348. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG18_finish(void)
  6349. {
  6350. GH_USB_PHY_UTMI_REG18_S tmp_value;
  6351. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
  6352. tmp_value.all = value;
  6353. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6354. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18_finish] --> 0x%08x\n",
  6355. REG_USB_PHY_UTMI_REG18,value);
  6356. #endif
  6357. return tmp_value.bitc.finish;
  6358. }
  6359. #endif /* GH_INLINE_LEVEL == 0 */
  6360. /*----------------------------------------------------------------------------*/
  6361. /* register USB_PHY_UTMI_REG19 (read/write) */
  6362. /*----------------------------------------------------------------------------*/
  6363. #if GH_INLINE_LEVEL == 0
  6364. /*! \brief Writes the register 'USB_PHY_UTMI_REG19'. */
  6365. void GH_USB_PHY_set_UTMI_REG19(U16 data);
  6366. /*! \brief Reads the register 'USB_PHY_UTMI_REG19'. */
  6367. U16 GH_USB_PHY_get_UTMI_REG19(void);
  6368. /*! \brief Writes the bit group 'pg_tx_length' of register 'USB_PHY_UTMI_REG19'. */
  6369. void GH_USB_PHY_set_UTMI_REG19_pg_tx_length(U8 data);
  6370. /*! \brief Reads the bit group 'pg_tx_length' of register 'USB_PHY_UTMI_REG19'. */
  6371. U8 GH_USB_PHY_get_UTMI_REG19_pg_tx_length(void);
  6372. /*! \brief Writes the bit group 'pg_tx_go' of register 'USB_PHY_UTMI_REG19'. */
  6373. void GH_USB_PHY_set_UTMI_REG19_pg_tx_go(U8 data);
  6374. /*! \brief Reads the bit group 'pg_tx_go' of register 'USB_PHY_UTMI_REG19'. */
  6375. U8 GH_USB_PHY_get_UTMI_REG19_pg_tx_go(void);
  6376. /*! \brief Writes the bit group 'pg_tx_mode' of register 'USB_PHY_UTMI_REG19'. */
  6377. void GH_USB_PHY_set_UTMI_REG19_pg_tx_mode(U8 data);
  6378. /*! \brief Reads the bit group 'pg_tx_mode' of register 'USB_PHY_UTMI_REG19'. */
  6379. U8 GH_USB_PHY_get_UTMI_REG19_pg_tx_mode(void);
  6380. /*! \brief Writes the bit group 'pg_tx_fixed_data' of register 'USB_PHY_UTMI_REG19'. */
  6381. void GH_USB_PHY_set_UTMI_REG19_pg_tx_fixed_data(U8 data);
  6382. /*! \brief Reads the bit group 'pg_tx_fixed_data' of register 'USB_PHY_UTMI_REG19'. */
  6383. U8 GH_USB_PHY_get_UTMI_REG19_pg_tx_fixed_data(void);
  6384. /*! \brief Writes the bit group 'continuous_mode' of register 'USB_PHY_UTMI_REG19'. */
  6385. void GH_USB_PHY_set_UTMI_REG19_continuous_mode(U8 data);
  6386. /*! \brief Reads the bit group 'continuous_mode' of register 'USB_PHY_UTMI_REG19'. */
  6387. U8 GH_USB_PHY_get_UTMI_REG19_continuous_mode(void);
  6388. /*! \brief Writes the bit group 'receiving_mode' of register 'USB_PHY_UTMI_REG19'. */
  6389. void GH_USB_PHY_set_UTMI_REG19_receiving_mode(U8 data);
  6390. /*! \brief Reads the bit group 'receiving_mode' of register 'USB_PHY_UTMI_REG19'. */
  6391. U8 GH_USB_PHY_get_UTMI_REG19_receiving_mode(void);
  6392. #else /* GH_INLINE_LEVEL == 0 */
  6393. GH_INLINE void GH_USB_PHY_set_UTMI_REG19(U16 data)
  6394. {
  6395. *(volatile U16 *)REG_USB_PHY_UTMI_REG19 = data;
  6396. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6397. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG19] <-- 0x%08x\n",
  6398. REG_USB_PHY_UTMI_REG19,data,data);
  6399. #endif
  6400. }
  6401. GH_INLINE U16 GH_USB_PHY_get_UTMI_REG19(void)
  6402. {
  6403. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG19);
  6404. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6405. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG19] --> 0x%08x\n",
  6406. REG_USB_PHY_UTMI_REG19,value);
  6407. #endif
  6408. return value;
  6409. }
  6410. GH_INLINE void GH_USB_PHY_set_UTMI_REG19_pg_tx_length(U8 data)
  6411. {
  6412. GH_USB_PHY_UTMI_REG19_S d;
  6413. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG19;
  6414. d.bitc.pg_tx_length = data;
  6415. *(volatile U16 *)REG_USB_PHY_UTMI_REG19 = d.all;
  6416. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6417. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG19_pg_tx_length] <-- 0x%08x\n",
  6418. REG_USB_PHY_UTMI_REG19,d.all,d.all);
  6419. #endif
  6420. }
  6421. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG19_pg_tx_length(void)
  6422. {
  6423. GH_USB_PHY_UTMI_REG19_S tmp_value;
  6424. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG19);
  6425. tmp_value.all = value;
  6426. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6427. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG19_pg_tx_length] --> 0x%08x\n",
  6428. REG_USB_PHY_UTMI_REG19,value);
  6429. #endif
  6430. return tmp_value.bitc.pg_tx_length;
  6431. }
  6432. GH_INLINE void GH_USB_PHY_set_UTMI_REG19_pg_tx_go(U8 data)
  6433. {
  6434. GH_USB_PHY_UTMI_REG19_S d;
  6435. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG19;
  6436. d.bitc.pg_tx_go = data;
  6437. *(volatile U16 *)REG_USB_PHY_UTMI_REG19 = d.all;
  6438. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6439. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG19_pg_tx_go] <-- 0x%08x\n",
  6440. REG_USB_PHY_UTMI_REG19,d.all,d.all);
  6441. #endif
  6442. }
  6443. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG19_pg_tx_go(void)
  6444. {
  6445. GH_USB_PHY_UTMI_REG19_S tmp_value;
  6446. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG19);
  6447. tmp_value.all = value;
  6448. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6449. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG19_pg_tx_go] --> 0x%08x\n",
  6450. REG_USB_PHY_UTMI_REG19,value);
  6451. #endif
  6452. return tmp_value.bitc.pg_tx_go;
  6453. }
  6454. GH_INLINE void GH_USB_PHY_set_UTMI_REG19_pg_tx_mode(U8 data)
  6455. {
  6456. GH_USB_PHY_UTMI_REG19_S d;
  6457. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG19;
  6458. d.bitc.pg_tx_mode = data;
  6459. *(volatile U16 *)REG_USB_PHY_UTMI_REG19 = d.all;
  6460. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6461. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG19_pg_tx_mode] <-- 0x%08x\n",
  6462. REG_USB_PHY_UTMI_REG19,d.all,d.all);
  6463. #endif
  6464. }
  6465. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG19_pg_tx_mode(void)
  6466. {
  6467. GH_USB_PHY_UTMI_REG19_S tmp_value;
  6468. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG19);
  6469. tmp_value.all = value;
  6470. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6471. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG19_pg_tx_mode] --> 0x%08x\n",
  6472. REG_USB_PHY_UTMI_REG19,value);
  6473. #endif
  6474. return tmp_value.bitc.pg_tx_mode;
  6475. }
  6476. GH_INLINE void GH_USB_PHY_set_UTMI_REG19_pg_tx_fixed_data(U8 data)
  6477. {
  6478. GH_USB_PHY_UTMI_REG19_S d;
  6479. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG19;
  6480. d.bitc.pg_tx_fixed_data = data;
  6481. *(volatile U16 *)REG_USB_PHY_UTMI_REG19 = d.all;
  6482. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6483. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG19_pg_tx_fixed_data] <-- 0x%08x\n",
  6484. REG_USB_PHY_UTMI_REG19,d.all,d.all);
  6485. #endif
  6486. }
  6487. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG19_pg_tx_fixed_data(void)
  6488. {
  6489. GH_USB_PHY_UTMI_REG19_S tmp_value;
  6490. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG19);
  6491. tmp_value.all = value;
  6492. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6493. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG19_pg_tx_fixed_data] --> 0x%08x\n",
  6494. REG_USB_PHY_UTMI_REG19,value);
  6495. #endif
  6496. return tmp_value.bitc.pg_tx_fixed_data;
  6497. }
  6498. GH_INLINE void GH_USB_PHY_set_UTMI_REG19_continuous_mode(U8 data)
  6499. {
  6500. GH_USB_PHY_UTMI_REG19_S d;
  6501. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG19;
  6502. d.bitc.continuous_mode = data;
  6503. *(volatile U16 *)REG_USB_PHY_UTMI_REG19 = d.all;
  6504. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6505. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG19_continuous_mode] <-- 0x%08x\n",
  6506. REG_USB_PHY_UTMI_REG19,d.all,d.all);
  6507. #endif
  6508. }
  6509. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG19_continuous_mode(void)
  6510. {
  6511. GH_USB_PHY_UTMI_REG19_S tmp_value;
  6512. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG19);
  6513. tmp_value.all = value;
  6514. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6515. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG19_continuous_mode] --> 0x%08x\n",
  6516. REG_USB_PHY_UTMI_REG19,value);
  6517. #endif
  6518. return tmp_value.bitc.continuous_mode;
  6519. }
  6520. GH_INLINE void GH_USB_PHY_set_UTMI_REG19_receiving_mode(U8 data)
  6521. {
  6522. GH_USB_PHY_UTMI_REG19_S d;
  6523. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG19;
  6524. d.bitc.receiving_mode = data;
  6525. *(volatile U16 *)REG_USB_PHY_UTMI_REG19 = d.all;
  6526. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6527. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG19_receiving_mode] <-- 0x%08x\n",
  6528. REG_USB_PHY_UTMI_REG19,d.all,d.all);
  6529. #endif
  6530. }
  6531. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG19_receiving_mode(void)
  6532. {
  6533. GH_USB_PHY_UTMI_REG19_S tmp_value;
  6534. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG19);
  6535. tmp_value.all = value;
  6536. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6537. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG19_receiving_mode] --> 0x%08x\n",
  6538. REG_USB_PHY_UTMI_REG19,value);
  6539. #endif
  6540. return tmp_value.bitc.receiving_mode;
  6541. }
  6542. #endif /* GH_INLINE_LEVEL == 0 */
  6543. /*----------------------------------------------------------------------------*/
  6544. /* register USB_PHY_UTMI_REG1A (read/write) */
  6545. /*----------------------------------------------------------------------------*/
  6546. #if GH_INLINE_LEVEL == 0
  6547. /*! \brief Writes the register 'USB_PHY_UTMI_REG1A'. */
  6548. void GH_USB_PHY_set_UTMI_REG1A(U16 data);
  6549. /*! \brief Reads the register 'USB_PHY_UTMI_REG1A'. */
  6550. U16 GH_USB_PHY_get_UTMI_REG1A(void);
  6551. /*! \brief Writes the bit group 'pg_tx_data' of register 'USB_PHY_UTMI_REG1A'. */
  6552. void GH_USB_PHY_set_UTMI_REG1A_pg_tx_data(U16 data);
  6553. /*! \brief Reads the bit group 'pg_tx_data' of register 'USB_PHY_UTMI_REG1A'. */
  6554. U16 GH_USB_PHY_get_UTMI_REG1A_pg_tx_data(void);
  6555. #else /* GH_INLINE_LEVEL == 0 */
  6556. GH_INLINE void GH_USB_PHY_set_UTMI_REG1A(U16 data)
  6557. {
  6558. *(volatile U16 *)REG_USB_PHY_UTMI_REG1A = data;
  6559. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6560. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1A] <-- 0x%08x\n",
  6561. REG_USB_PHY_UTMI_REG1A,data,data);
  6562. #endif
  6563. }
  6564. GH_INLINE U16 GH_USB_PHY_get_UTMI_REG1A(void)
  6565. {
  6566. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1A);
  6567. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6568. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1A] --> 0x%08x\n",
  6569. REG_USB_PHY_UTMI_REG1A,value);
  6570. #endif
  6571. return value;
  6572. }
  6573. GH_INLINE void GH_USB_PHY_set_UTMI_REG1A_pg_tx_data(U16 data)
  6574. {
  6575. GH_USB_PHY_UTMI_REG1A_S d;
  6576. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1A;
  6577. d.bitc.pg_tx_data = data;
  6578. *(volatile U16 *)REG_USB_PHY_UTMI_REG1A = d.all;
  6579. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6580. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1A_pg_tx_data] <-- 0x%08x\n",
  6581. REG_USB_PHY_UTMI_REG1A,d.all,d.all);
  6582. #endif
  6583. }
  6584. GH_INLINE U16 GH_USB_PHY_get_UTMI_REG1A_pg_tx_data(void)
  6585. {
  6586. GH_USB_PHY_UTMI_REG1A_S tmp_value;
  6587. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1A);
  6588. tmp_value.all = value;
  6589. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6590. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1A_pg_tx_data] --> 0x%08x\n",
  6591. REG_USB_PHY_UTMI_REG1A,value);
  6592. #endif
  6593. return tmp_value.bitc.pg_tx_data;
  6594. }
  6595. #endif /* GH_INLINE_LEVEL == 0 */
  6596. /*----------------------------------------------------------------------------*/
  6597. /* register USB_PHY_UTMI_REG1B (read/write) */
  6598. /*----------------------------------------------------------------------------*/
  6599. #if GH_INLINE_LEVEL == 0
  6600. /*! \brief Writes the register 'USB_PHY_UTMI_REG1B'. */
  6601. void GH_USB_PHY_set_UTMI_REG1B(U16 data);
  6602. /*! \brief Reads the register 'USB_PHY_UTMI_REG1B'. */
  6603. U16 GH_USB_PHY_get_UTMI_REG1B(void);
  6604. /*! \brief Writes the bit group 'pg_tx_inc' of register 'USB_PHY_UTMI_REG1B'. */
  6605. void GH_USB_PHY_set_UTMI_REG1B_pg_tx_inc(U16 data);
  6606. /*! \brief Reads the bit group 'pg_tx_inc' of register 'USB_PHY_UTMI_REG1B'. */
  6607. U16 GH_USB_PHY_get_UTMI_REG1B_pg_tx_inc(void);
  6608. #else /* GH_INLINE_LEVEL == 0 */
  6609. GH_INLINE void GH_USB_PHY_set_UTMI_REG1B(U16 data)
  6610. {
  6611. *(volatile U16 *)REG_USB_PHY_UTMI_REG1B = data;
  6612. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6613. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1B] <-- 0x%08x\n",
  6614. REG_USB_PHY_UTMI_REG1B,data,data);
  6615. #endif
  6616. }
  6617. GH_INLINE U16 GH_USB_PHY_get_UTMI_REG1B(void)
  6618. {
  6619. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1B);
  6620. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6621. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1B] --> 0x%08x\n",
  6622. REG_USB_PHY_UTMI_REG1B,value);
  6623. #endif
  6624. return value;
  6625. }
  6626. GH_INLINE void GH_USB_PHY_set_UTMI_REG1B_pg_tx_inc(U16 data)
  6627. {
  6628. GH_USB_PHY_UTMI_REG1B_S d;
  6629. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1B;
  6630. d.bitc.pg_tx_inc = data;
  6631. *(volatile U16 *)REG_USB_PHY_UTMI_REG1B = d.all;
  6632. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6633. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1B_pg_tx_inc] <-- 0x%08x\n",
  6634. REG_USB_PHY_UTMI_REG1B,d.all,d.all);
  6635. #endif
  6636. }
  6637. GH_INLINE U16 GH_USB_PHY_get_UTMI_REG1B_pg_tx_inc(void)
  6638. {
  6639. GH_USB_PHY_UTMI_REG1B_S tmp_value;
  6640. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1B);
  6641. tmp_value.all = value;
  6642. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6643. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1B_pg_tx_inc] --> 0x%08x\n",
  6644. REG_USB_PHY_UTMI_REG1B,value);
  6645. #endif
  6646. return tmp_value.bitc.pg_tx_inc;
  6647. }
  6648. #endif /* GH_INLINE_LEVEL == 0 */
  6649. /*----------------------------------------------------------------------------*/
  6650. /* register USB_PHY_UTMI_REG1C (read/write) */
  6651. /*----------------------------------------------------------------------------*/
  6652. #if GH_INLINE_LEVEL == 0
  6653. /*! \brief Writes the register 'USB_PHY_UTMI_REG1C'. */
  6654. void GH_USB_PHY_set_UTMI_REG1C(U16 data);
  6655. /*! \brief Reads the register 'USB_PHY_UTMI_REG1C'. */
  6656. U16 GH_USB_PHY_get_UTMI_REG1C(void);
  6657. /*! \brief Writes the bit group 'en_ck192' of register 'USB_PHY_UTMI_REG1C'. */
  6658. void GH_USB_PHY_set_UTMI_REG1C_en_ck192(U8 data);
  6659. /*! \brief Reads the bit group 'en_ck192' of register 'USB_PHY_UTMI_REG1C'. */
  6660. U8 GH_USB_PHY_get_UTMI_REG1C_en_ck192(void);
  6661. /*! \brief Writes the bit group 'vigen_pdn' of register 'USB_PHY_UTMI_REG1C'. */
  6662. void GH_USB_PHY_set_UTMI_REG1C_vigen_pdn(U8 data);
  6663. /*! \brief Reads the bit group 'vigen_pdn' of register 'USB_PHY_UTMI_REG1C'. */
  6664. U8 GH_USB_PHY_get_UTMI_REG1C_vigen_pdn(void);
  6665. /*! \brief Writes the bit group 'selport' of register 'USB_PHY_UTMI_REG1C'. */
  6666. void GH_USB_PHY_set_UTMI_REG1C_selport(U8 data);
  6667. /*! \brief Reads the bit group 'selport' of register 'USB_PHY_UTMI_REG1C'. */
  6668. U8 GH_USB_PHY_get_UTMI_REG1C_selport(void);
  6669. /*! \brief Writes the bit group 'dp_status' of register 'USB_PHY_UTMI_REG1C'. */
  6670. void GH_USB_PHY_set_UTMI_REG1C_dp_status(U8 data);
  6671. /*! \brief Reads the bit group 'dp_status' of register 'USB_PHY_UTMI_REG1C'. */
  6672. U8 GH_USB_PHY_get_UTMI_REG1C_dp_status(void);
  6673. /*! \brief Writes the bit group 'dm_status' of register 'USB_PHY_UTMI_REG1C'. */
  6674. void GH_USB_PHY_set_UTMI_REG1C_dm_status(U8 data);
  6675. /*! \brief Reads the bit group 'dm_status' of register 'USB_PHY_UTMI_REG1C'. */
  6676. U8 GH_USB_PHY_get_UTMI_REG1C_dm_status(void);
  6677. /*! \brief Writes the bit group 'dp1_status' of register 'USB_PHY_UTMI_REG1C'. */
  6678. void GH_USB_PHY_set_UTMI_REG1C_dp1_status(U8 data);
  6679. /*! \brief Reads the bit group 'dp1_status' of register 'USB_PHY_UTMI_REG1C'. */
  6680. U8 GH_USB_PHY_get_UTMI_REG1C_dp1_status(void);
  6681. /*! \brief Writes the bit group 'dm1_status' of register 'USB_PHY_UTMI_REG1C'. */
  6682. void GH_USB_PHY_set_UTMI_REG1C_dm1_status(U8 data);
  6683. /*! \brief Reads the bit group 'dm1_status' of register 'USB_PHY_UTMI_REG1C'. */
  6684. U8 GH_USB_PHY_get_UTMI_REG1C_dm1_status(void);
  6685. /*! \brief Writes the bit group 'asrst_on' of register 'USB_PHY_UTMI_REG1C'. */
  6686. void GH_USB_PHY_set_UTMI_REG1C_asrst_on(U8 data);
  6687. /*! \brief Reads the bit group 'asrst_on' of register 'USB_PHY_UTMI_REG1C'. */
  6688. U8 GH_USB_PHY_get_UTMI_REG1C_asrst_on(void);
  6689. /*! \brief Writes the bit group 'VBUS' of register 'USB_PHY_UTMI_REG1C'. */
  6690. void GH_USB_PHY_set_UTMI_REG1C_VBUS(U8 data);
  6691. /*! \brief Reads the bit group 'VBUS' of register 'USB_PHY_UTMI_REG1C'. */
  6692. U8 GH_USB_PHY_get_UTMI_REG1C_VBUS(void);
  6693. /*! \brief Writes the bit group 'dummy' of register 'USB_PHY_UTMI_REG1C'. */
  6694. void GH_USB_PHY_set_UTMI_REG1C_dummy(U8 data);
  6695. /*! \brief Reads the bit group 'dummy' of register 'USB_PHY_UTMI_REG1C'. */
  6696. U8 GH_USB_PHY_get_UTMI_REG1C_dummy(void);
  6697. /*! \brief Writes the bit group 'reserved' of register 'USB_PHY_UTMI_REG1C'. */
  6698. void GH_USB_PHY_set_UTMI_REG1C_reserved(U8 data);
  6699. /*! \brief Reads the bit group 'reserved' of register 'USB_PHY_UTMI_REG1C'. */
  6700. U8 GH_USB_PHY_get_UTMI_REG1C_reserved(void);
  6701. #else /* GH_INLINE_LEVEL == 0 */
  6702. GH_INLINE void GH_USB_PHY_set_UTMI_REG1C(U16 data)
  6703. {
  6704. *(volatile U16 *)REG_USB_PHY_UTMI_REG1C = data;
  6705. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6706. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1C] <-- 0x%08x\n",
  6707. REG_USB_PHY_UTMI_REG1C,data,data);
  6708. #endif
  6709. }
  6710. GH_INLINE U16 GH_USB_PHY_get_UTMI_REG1C(void)
  6711. {
  6712. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1C);
  6713. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6714. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1C] --> 0x%08x\n",
  6715. REG_USB_PHY_UTMI_REG1C,value);
  6716. #endif
  6717. return value;
  6718. }
  6719. GH_INLINE void GH_USB_PHY_set_UTMI_REG1C_en_ck192(U8 data)
  6720. {
  6721. GH_USB_PHY_UTMI_REG1C_S d;
  6722. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1C;
  6723. d.bitc.en_ck192 = data;
  6724. *(volatile U16 *)REG_USB_PHY_UTMI_REG1C = d.all;
  6725. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6726. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1C_en_ck192] <-- 0x%08x\n",
  6727. REG_USB_PHY_UTMI_REG1C,d.all,d.all);
  6728. #endif
  6729. }
  6730. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG1C_en_ck192(void)
  6731. {
  6732. GH_USB_PHY_UTMI_REG1C_S tmp_value;
  6733. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1C);
  6734. tmp_value.all = value;
  6735. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6736. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1C_en_ck192] --> 0x%08x\n",
  6737. REG_USB_PHY_UTMI_REG1C,value);
  6738. #endif
  6739. return tmp_value.bitc.en_ck192;
  6740. }
  6741. GH_INLINE void GH_USB_PHY_set_UTMI_REG1C_vigen_pdn(U8 data)
  6742. {
  6743. GH_USB_PHY_UTMI_REG1C_S d;
  6744. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1C;
  6745. d.bitc.vigen_pdn = data;
  6746. *(volatile U16 *)REG_USB_PHY_UTMI_REG1C = d.all;
  6747. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6748. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1C_vigen_pdn] <-- 0x%08x\n",
  6749. REG_USB_PHY_UTMI_REG1C,d.all,d.all);
  6750. #endif
  6751. }
  6752. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG1C_vigen_pdn(void)
  6753. {
  6754. GH_USB_PHY_UTMI_REG1C_S tmp_value;
  6755. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1C);
  6756. tmp_value.all = value;
  6757. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6758. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1C_vigen_pdn] --> 0x%08x\n",
  6759. REG_USB_PHY_UTMI_REG1C,value);
  6760. #endif
  6761. return tmp_value.bitc.vigen_pdn;
  6762. }
  6763. GH_INLINE void GH_USB_PHY_set_UTMI_REG1C_selport(U8 data)
  6764. {
  6765. GH_USB_PHY_UTMI_REG1C_S d;
  6766. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1C;
  6767. d.bitc.selport = data;
  6768. *(volatile U16 *)REG_USB_PHY_UTMI_REG1C = d.all;
  6769. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6770. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1C_selport] <-- 0x%08x\n",
  6771. REG_USB_PHY_UTMI_REG1C,d.all,d.all);
  6772. #endif
  6773. }
  6774. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG1C_selport(void)
  6775. {
  6776. GH_USB_PHY_UTMI_REG1C_S tmp_value;
  6777. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1C);
  6778. tmp_value.all = value;
  6779. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6780. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1C_selport] --> 0x%08x\n",
  6781. REG_USB_PHY_UTMI_REG1C,value);
  6782. #endif
  6783. return tmp_value.bitc.selport;
  6784. }
  6785. GH_INLINE void GH_USB_PHY_set_UTMI_REG1C_dp_status(U8 data)
  6786. {
  6787. GH_USB_PHY_UTMI_REG1C_S d;
  6788. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1C;
  6789. d.bitc.dp_status = data;
  6790. *(volatile U16 *)REG_USB_PHY_UTMI_REG1C = d.all;
  6791. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6792. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1C_dp_status] <-- 0x%08x\n",
  6793. REG_USB_PHY_UTMI_REG1C,d.all,d.all);
  6794. #endif
  6795. }
  6796. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG1C_dp_status(void)
  6797. {
  6798. GH_USB_PHY_UTMI_REG1C_S tmp_value;
  6799. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1C);
  6800. tmp_value.all = value;
  6801. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6802. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1C_dp_status] --> 0x%08x\n",
  6803. REG_USB_PHY_UTMI_REG1C,value);
  6804. #endif
  6805. return tmp_value.bitc.dp_status;
  6806. }
  6807. GH_INLINE void GH_USB_PHY_set_UTMI_REG1C_dm_status(U8 data)
  6808. {
  6809. GH_USB_PHY_UTMI_REG1C_S d;
  6810. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1C;
  6811. d.bitc.dm_status = data;
  6812. *(volatile U16 *)REG_USB_PHY_UTMI_REG1C = d.all;
  6813. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6814. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1C_dm_status] <-- 0x%08x\n",
  6815. REG_USB_PHY_UTMI_REG1C,d.all,d.all);
  6816. #endif
  6817. }
  6818. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG1C_dm_status(void)
  6819. {
  6820. GH_USB_PHY_UTMI_REG1C_S tmp_value;
  6821. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1C);
  6822. tmp_value.all = value;
  6823. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6824. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1C_dm_status] --> 0x%08x\n",
  6825. REG_USB_PHY_UTMI_REG1C,value);
  6826. #endif
  6827. return tmp_value.bitc.dm_status;
  6828. }
  6829. GH_INLINE void GH_USB_PHY_set_UTMI_REG1C_dp1_status(U8 data)
  6830. {
  6831. GH_USB_PHY_UTMI_REG1C_S d;
  6832. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1C;
  6833. d.bitc.dp1_status = data;
  6834. *(volatile U16 *)REG_USB_PHY_UTMI_REG1C = d.all;
  6835. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6836. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1C_dp1_status] <-- 0x%08x\n",
  6837. REG_USB_PHY_UTMI_REG1C,d.all,d.all);
  6838. #endif
  6839. }
  6840. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG1C_dp1_status(void)
  6841. {
  6842. GH_USB_PHY_UTMI_REG1C_S tmp_value;
  6843. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1C);
  6844. tmp_value.all = value;
  6845. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6846. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1C_dp1_status] --> 0x%08x\n",
  6847. REG_USB_PHY_UTMI_REG1C,value);
  6848. #endif
  6849. return tmp_value.bitc.dp1_status;
  6850. }
  6851. GH_INLINE void GH_USB_PHY_set_UTMI_REG1C_dm1_status(U8 data)
  6852. {
  6853. GH_USB_PHY_UTMI_REG1C_S d;
  6854. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1C;
  6855. d.bitc.dm1_status = data;
  6856. *(volatile U16 *)REG_USB_PHY_UTMI_REG1C = d.all;
  6857. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6858. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1C_dm1_status] <-- 0x%08x\n",
  6859. REG_USB_PHY_UTMI_REG1C,d.all,d.all);
  6860. #endif
  6861. }
  6862. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG1C_dm1_status(void)
  6863. {
  6864. GH_USB_PHY_UTMI_REG1C_S tmp_value;
  6865. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1C);
  6866. tmp_value.all = value;
  6867. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6868. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1C_dm1_status] --> 0x%08x\n",
  6869. REG_USB_PHY_UTMI_REG1C,value);
  6870. #endif
  6871. return tmp_value.bitc.dm1_status;
  6872. }
  6873. GH_INLINE void GH_USB_PHY_set_UTMI_REG1C_asrst_on(U8 data)
  6874. {
  6875. GH_USB_PHY_UTMI_REG1C_S d;
  6876. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1C;
  6877. d.bitc.asrst_on = data;
  6878. *(volatile U16 *)REG_USB_PHY_UTMI_REG1C = d.all;
  6879. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6880. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1C_asrst_on] <-- 0x%08x\n",
  6881. REG_USB_PHY_UTMI_REG1C,d.all,d.all);
  6882. #endif
  6883. }
  6884. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG1C_asrst_on(void)
  6885. {
  6886. GH_USB_PHY_UTMI_REG1C_S tmp_value;
  6887. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1C);
  6888. tmp_value.all = value;
  6889. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6890. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1C_asrst_on] --> 0x%08x\n",
  6891. REG_USB_PHY_UTMI_REG1C,value);
  6892. #endif
  6893. return tmp_value.bitc.asrst_on;
  6894. }
  6895. GH_INLINE void GH_USB_PHY_set_UTMI_REG1C_VBUS(U8 data)
  6896. {
  6897. GH_USB_PHY_UTMI_REG1C_S d;
  6898. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1C;
  6899. d.bitc.vbus = data;
  6900. *(volatile U16 *)REG_USB_PHY_UTMI_REG1C = d.all;
  6901. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6902. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1C_VBUS] <-- 0x%08x\n",
  6903. REG_USB_PHY_UTMI_REG1C,d.all,d.all);
  6904. #endif
  6905. }
  6906. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG1C_VBUS(void)
  6907. {
  6908. GH_USB_PHY_UTMI_REG1C_S tmp_value;
  6909. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1C);
  6910. tmp_value.all = value;
  6911. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6912. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1C_VBUS] --> 0x%08x\n",
  6913. REG_USB_PHY_UTMI_REG1C,value);
  6914. #endif
  6915. return tmp_value.bitc.vbus;
  6916. }
  6917. GH_INLINE void GH_USB_PHY_set_UTMI_REG1C_dummy(U8 data)
  6918. {
  6919. GH_USB_PHY_UTMI_REG1C_S d;
  6920. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1C;
  6921. d.bitc.dummy = data;
  6922. *(volatile U16 *)REG_USB_PHY_UTMI_REG1C = d.all;
  6923. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6924. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1C_dummy] <-- 0x%08x\n",
  6925. REG_USB_PHY_UTMI_REG1C,d.all,d.all);
  6926. #endif
  6927. }
  6928. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG1C_dummy(void)
  6929. {
  6930. GH_USB_PHY_UTMI_REG1C_S tmp_value;
  6931. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1C);
  6932. tmp_value.all = value;
  6933. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6934. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1C_dummy] --> 0x%08x\n",
  6935. REG_USB_PHY_UTMI_REG1C,value);
  6936. #endif
  6937. return tmp_value.bitc.dummy;
  6938. }
  6939. GH_INLINE void GH_USB_PHY_set_UTMI_REG1C_reserved(U8 data)
  6940. {
  6941. GH_USB_PHY_UTMI_REG1C_S d;
  6942. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1C;
  6943. d.bitc.reserved = data;
  6944. *(volatile U16 *)REG_USB_PHY_UTMI_REG1C = d.all;
  6945. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6946. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1C_reserved] <-- 0x%08x\n",
  6947. REG_USB_PHY_UTMI_REG1C,d.all,d.all);
  6948. #endif
  6949. }
  6950. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG1C_reserved(void)
  6951. {
  6952. GH_USB_PHY_UTMI_REG1C_S tmp_value;
  6953. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1C);
  6954. tmp_value.all = value;
  6955. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6956. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1C_reserved] --> 0x%08x\n",
  6957. REG_USB_PHY_UTMI_REG1C,value);
  6958. #endif
  6959. return tmp_value.bitc.reserved;
  6960. }
  6961. #endif /* GH_INLINE_LEVEL == 0 */
  6962. /*----------------------------------------------------------------------------*/
  6963. /* register USB_PHY_UTMI_REG1D (read/write) */
  6964. /*----------------------------------------------------------------------------*/
  6965. #if GH_INLINE_LEVEL == 0
  6966. /*! \brief Writes the register 'USB_PHY_UTMI_REG1D'. */
  6967. void GH_USB_PHY_set_UTMI_REG1D(U16 data);
  6968. /*! \brief Reads the register 'USB_PHY_UTMI_REG1D'. */
  6969. U16 GH_USB_PHY_get_UTMI_REG1D(void);
  6970. /*! \brief Writes the bit group 'test_serdes' of register 'USB_PHY_UTMI_REG1D'. */
  6971. void GH_USB_PHY_set_UTMI_REG1D_test_serdes(U8 data);
  6972. /*! \brief Reads the bit group 'test_serdes' of register 'USB_PHY_UTMI_REG1D'. */
  6973. U8 GH_USB_PHY_get_UTMI_REG1D_test_serdes(void);
  6974. /*! \brief Writes the bit group 'reg_test' of register 'USB_PHY_UTMI_REG1D'. */
  6975. void GH_USB_PHY_set_UTMI_REG1D_reg_test(U8 data);
  6976. /*! \brief Reads the bit group 'reg_test' of register 'USB_PHY_UTMI_REG1D'. */
  6977. U8 GH_USB_PHY_get_UTMI_REG1D_reg_test(void);
  6978. #else /* GH_INLINE_LEVEL == 0 */
  6979. GH_INLINE void GH_USB_PHY_set_UTMI_REG1D(U16 data)
  6980. {
  6981. *(volatile U16 *)REG_USB_PHY_UTMI_REG1D = data;
  6982. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6983. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1D] <-- 0x%08x\n",
  6984. REG_USB_PHY_UTMI_REG1D,data,data);
  6985. #endif
  6986. }
  6987. GH_INLINE U16 GH_USB_PHY_get_UTMI_REG1D(void)
  6988. {
  6989. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1D);
  6990. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  6991. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1D] --> 0x%08x\n",
  6992. REG_USB_PHY_UTMI_REG1D,value);
  6993. #endif
  6994. return value;
  6995. }
  6996. GH_INLINE void GH_USB_PHY_set_UTMI_REG1D_test_serdes(U8 data)
  6997. {
  6998. GH_USB_PHY_UTMI_REG1D_S d;
  6999. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1D;
  7000. d.bitc.test_serdes = data;
  7001. *(volatile U16 *)REG_USB_PHY_UTMI_REG1D = d.all;
  7002. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  7003. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1D_test_serdes] <-- 0x%08x\n",
  7004. REG_USB_PHY_UTMI_REG1D,d.all,d.all);
  7005. #endif
  7006. }
  7007. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG1D_test_serdes(void)
  7008. {
  7009. GH_USB_PHY_UTMI_REG1D_S tmp_value;
  7010. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1D);
  7011. tmp_value.all = value;
  7012. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  7013. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1D_test_serdes] --> 0x%08x\n",
  7014. REG_USB_PHY_UTMI_REG1D,value);
  7015. #endif
  7016. return tmp_value.bitc.test_serdes;
  7017. }
  7018. GH_INLINE void GH_USB_PHY_set_UTMI_REG1D_reg_test(U8 data)
  7019. {
  7020. GH_USB_PHY_UTMI_REG1D_S d;
  7021. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1D;
  7022. d.bitc.reg_test = data;
  7023. *(volatile U16 *)REG_USB_PHY_UTMI_REG1D = d.all;
  7024. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  7025. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1D_reg_test] <-- 0x%08x\n",
  7026. REG_USB_PHY_UTMI_REG1D,d.all,d.all);
  7027. #endif
  7028. }
  7029. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG1D_reg_test(void)
  7030. {
  7031. GH_USB_PHY_UTMI_REG1D_S tmp_value;
  7032. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1D);
  7033. tmp_value.all = value;
  7034. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  7035. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1D_reg_test] --> 0x%08x\n",
  7036. REG_USB_PHY_UTMI_REG1D,value);
  7037. #endif
  7038. return tmp_value.bitc.reg_test;
  7039. }
  7040. #endif /* GH_INLINE_LEVEL == 0 */
  7041. /*----------------------------------------------------------------------------*/
  7042. /* register USB_PHY_UTMI_REG1E (read/write) */
  7043. /*----------------------------------------------------------------------------*/
  7044. #if GH_INLINE_LEVEL == 0
  7045. /*! \brief Writes the register 'USB_PHY_UTMI_REG1E'. */
  7046. void GH_USB_PHY_set_UTMI_REG1E(U16 data);
  7047. /*! \brief Reads the register 'USB_PHY_UTMI_REG1E'. */
  7048. U16 GH_USB_PHY_get_UTMI_REG1E(void);
  7049. /*! \brief Writes the bit group 'ca_start' of register 'USB_PHY_UTMI_REG1E'. */
  7050. void GH_USB_PHY_set_UTMI_REG1E_ca_start(U8 data);
  7051. /*! \brief Reads the bit group 'ca_start' of register 'USB_PHY_UTMI_REG1E'. */
  7052. U8 GH_USB_PHY_get_UTMI_REG1E_ca_start(void);
  7053. /*! \brief Writes the bit group 'ca_end' of register 'USB_PHY_UTMI_REG1E'. */
  7054. void GH_USB_PHY_set_UTMI_REG1E_ca_end(U8 data);
  7055. /*! \brief Reads the bit group 'ca_end' of register 'USB_PHY_UTMI_REG1E'. */
  7056. U8 GH_USB_PHY_get_UTMI_REG1E_ca_end(void);
  7057. /*! \brief Writes the bit group 'power_good_sts' of register 'USB_PHY_UTMI_REG1E'. */
  7058. void GH_USB_PHY_set_UTMI_REG1E_power_good_sts(U8 data);
  7059. /*! \brief Reads the bit group 'power_good_sts' of register 'USB_PHY_UTMI_REG1E'. */
  7060. U8 GH_USB_PHY_get_UTMI_REG1E_power_good_sts(void);
  7061. /*! \brief Writes the bit group 'ca_data' of register 'USB_PHY_UTMI_REG1E'. */
  7062. void GH_USB_PHY_set_UTMI_REG1E_ca_data(U16 data);
  7063. /*! \brief Reads the bit group 'ca_data' of register 'USB_PHY_UTMI_REG1E'. */
  7064. U16 GH_USB_PHY_get_UTMI_REG1E_ca_data(void);
  7065. #else /* GH_INLINE_LEVEL == 0 */
  7066. GH_INLINE void GH_USB_PHY_set_UTMI_REG1E(U16 data)
  7067. {
  7068. *(volatile U16 *)REG_USB_PHY_UTMI_REG1E = data;
  7069. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  7070. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1E] <-- 0x%08x\n",
  7071. REG_USB_PHY_UTMI_REG1E,data,data);
  7072. #endif
  7073. }
  7074. GH_INLINE U16 GH_USB_PHY_get_UTMI_REG1E(void)
  7075. {
  7076. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1E);
  7077. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  7078. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1E] --> 0x%08x\n",
  7079. REG_USB_PHY_UTMI_REG1E,value);
  7080. #endif
  7081. return value;
  7082. }
  7083. GH_INLINE void GH_USB_PHY_set_UTMI_REG1E_ca_start(U8 data)
  7084. {
  7085. GH_USB_PHY_UTMI_REG1E_S d;
  7086. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1E;
  7087. d.bitc.ca_start = data;
  7088. *(volatile U16 *)REG_USB_PHY_UTMI_REG1E = d.all;
  7089. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  7090. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1E_ca_start] <-- 0x%08x\n",
  7091. REG_USB_PHY_UTMI_REG1E,d.all,d.all);
  7092. #endif
  7093. }
  7094. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG1E_ca_start(void)
  7095. {
  7096. GH_USB_PHY_UTMI_REG1E_S tmp_value;
  7097. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1E);
  7098. tmp_value.all = value;
  7099. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  7100. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1E_ca_start] --> 0x%08x\n",
  7101. REG_USB_PHY_UTMI_REG1E,value);
  7102. #endif
  7103. return tmp_value.bitc.ca_start;
  7104. }
  7105. GH_INLINE void GH_USB_PHY_set_UTMI_REG1E_ca_end(U8 data)
  7106. {
  7107. GH_USB_PHY_UTMI_REG1E_S d;
  7108. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1E;
  7109. d.bitc.ca_end = data;
  7110. *(volatile U16 *)REG_USB_PHY_UTMI_REG1E = d.all;
  7111. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  7112. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1E_ca_end] <-- 0x%08x\n",
  7113. REG_USB_PHY_UTMI_REG1E,d.all,d.all);
  7114. #endif
  7115. }
  7116. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG1E_ca_end(void)
  7117. {
  7118. GH_USB_PHY_UTMI_REG1E_S tmp_value;
  7119. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1E);
  7120. tmp_value.all = value;
  7121. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  7122. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1E_ca_end] --> 0x%08x\n",
  7123. REG_USB_PHY_UTMI_REG1E,value);
  7124. #endif
  7125. return tmp_value.bitc.ca_end;
  7126. }
  7127. GH_INLINE void GH_USB_PHY_set_UTMI_REG1E_power_good_sts(U8 data)
  7128. {
  7129. GH_USB_PHY_UTMI_REG1E_S d;
  7130. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1E;
  7131. d.bitc.power_good_sts = data;
  7132. *(volatile U16 *)REG_USB_PHY_UTMI_REG1E = d.all;
  7133. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  7134. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1E_power_good_sts] <-- 0x%08x\n",
  7135. REG_USB_PHY_UTMI_REG1E,d.all,d.all);
  7136. #endif
  7137. }
  7138. GH_INLINE U8 GH_USB_PHY_get_UTMI_REG1E_power_good_sts(void)
  7139. {
  7140. GH_USB_PHY_UTMI_REG1E_S tmp_value;
  7141. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1E);
  7142. tmp_value.all = value;
  7143. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  7144. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1E_power_good_sts] --> 0x%08x\n",
  7145. REG_USB_PHY_UTMI_REG1E,value);
  7146. #endif
  7147. return tmp_value.bitc.power_good_sts;
  7148. }
  7149. GH_INLINE void GH_USB_PHY_set_UTMI_REG1E_ca_data(U16 data)
  7150. {
  7151. GH_USB_PHY_UTMI_REG1E_S d;
  7152. d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1E;
  7153. d.bitc.ca_data = data;
  7154. *(volatile U16 *)REG_USB_PHY_UTMI_REG1E = d.all;
  7155. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  7156. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1E_ca_data] <-- 0x%08x\n",
  7157. REG_USB_PHY_UTMI_REG1E,d.all,d.all);
  7158. #endif
  7159. }
  7160. GH_INLINE U16 GH_USB_PHY_get_UTMI_REG1E_ca_data(void)
  7161. {
  7162. GH_USB_PHY_UTMI_REG1E_S tmp_value;
  7163. U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1E);
  7164. tmp_value.all = value;
  7165. #if GH_USB_PHY_ENABLE_DEBUG_PRINT
  7166. GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1E_ca_data] --> 0x%08x\n",
  7167. REG_USB_PHY_UTMI_REG1E,value);
  7168. #endif
  7169. return tmp_value.bitc.ca_data;
  7170. }
  7171. #endif /* GH_INLINE_LEVEL == 0 */
  7172. /*----------------------------------------------------------------------------*/
  7173. /* init function */
  7174. /*----------------------------------------------------------------------------*/
  7175. /*! \brief Initialises the registers and mirror variables. */
  7176. void GH_USB_PHY_init(void);
  7177. #ifdef __cplusplus
  7178. }
  7179. #endif
  7180. #endif /* _GH_USB_PHY_H */
  7181. /*----------------------------------------------------------------------------*/
  7182. /* end of file */
  7183. /*----------------------------------------------------------------------------*/