123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521 |
- /*!
- *******************************************************************************
- **
- ** \file gh_usb_phy.h
- **
- ** \brief USB_PHY.
- **
- ** Copyright: 2012 - 2013 (C) GoKe Microelectronics ShangHai Branch
- **
- ** \attention THIS SAMPLE CODE IS PROVIDED AS IS. GOKE MICROELECTRONICS
- ** ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR
- ** OMMISSIONS.
- **
- ** \note Do not modify this file as it is generated automatically.
- **
- ******************************************************************************/
- #ifndef _GH_USB_PHY_H
- #define _GH_USB_PHY_H
- #ifdef __LINUX__
- #include "reg4linux.h"
- #else
- #define FIO_ADDRESS(block,address) (address)
- #define FIO_MOFFSET(block,moffset) (moffset)
- #endif
- #ifndef __LINUX__
- #include "gtypes.h" /* global type definitions */
- #include "gh_lib_cfg.h" /* configuration */
- #endif
- #define GH_USB_PHY_ENABLE_DEBUG_PRINT 0
- #ifdef __LINUX__
- #define GH_USB_PHY_DEBUG_PRINT_FUNCTION printk
- #else
- #define GH_USB_PHY_DEBUG_PRINT_FUNCTION printf
- #endif
- #ifndef __LINUX__
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- #include <stdio.h>
- #endif
- #endif
- /* check configuration */
- #ifndef GH_INLINE_LEVEL
- #error "GH_INLINE_LEVEL is not defined!"
- #endif
- #if GH_INLINE_LEVEL > 2
- #error "GH_INLINE_LEVEL must be set 0, 1 or 2!"
- #endif
- #ifndef GH_INLINE
- #error "GH_INLINE is not defined!"
- #endif
- /* disable inlining for debugging */
- #ifdef DEBUG
- #undef GH_INLINE_LEVEL
- #define GH_INLINE_LEVEL 0
- #endif
- /*----------------------------------------------------------------------------*/
- /* registers */
- /*----------------------------------------------------------------------------*/
- #define REG_USB_PHY_TX_CONFIG FIO_ADDRESS(USB_PHY,0x90020E08) /* read/write */
- #define REG_USB_PHY_TX_DMA_COUNT FIO_ADDRESS(USB_PHY,0x90020E0C) /* read/write */
- #define REG_USB_PHY_UTMI_REG_00 FIO_ADDRESS(USB_PHY,0x90021000) /* read/write */
- #define REG_USB_PHY_UTMI_REG_01 FIO_ADDRESS(USB_PHY,0x90021004) /* read/write */
- #define REG_USB_PHY_UTMI_REG_02 FIO_ADDRESS(USB_PHY,0x90021008) /* read/write */
- #define REG_USB_PHY_UTMI_REG_03 FIO_ADDRESS(USB_PHY,0x9002100C) /* read/write */
- #define REG_USB_PHY_UTMI_REG_04 FIO_ADDRESS(USB_PHY,0x90021010) /* read/write */
- #define REG_USB_PHY_UTMI_REG_05 FIO_ADDRESS(USB_PHY,0x90021014) /* read/write */
- #define REG_USB_PHY_UTMI_REG_06 FIO_ADDRESS(USB_PHY,0x90021018) /* read/write */
- #define REG_USB_PHY_UTMI_STATUS FIO_ADDRESS(USB_PHY,0x9002101C) /* read */
- #define REG_USB_PHY_UTMI_REG_08 FIO_ADDRESS(USB_PHY,0x90021020) /* read/write */
- #define REG_USB_PHY_UTMI_REG_09 FIO_ADDRESS(USB_PHY,0x90021024) /* read/write */
- #define REG_USB_PHY_UTMI_REG_0A FIO_ADDRESS(USB_PHY,0x90021028) /* read/write */
- #define REG_USB_PHY_UTMI_REG_0B FIO_ADDRESS(USB_PHY,0x9002102C) /* read/write */
- #define REG_USB_PHY_UTMI_REG_0C FIO_ADDRESS(USB_PHY,0x90021030) /* read/write */
- #define REG_USB_PHY_UTMI_REG10 FIO_ADDRESS(USB_PHY,0x90021040) /* read/write */
- #define REG_USB_PHY_UTMI_REG11 FIO_ADDRESS(USB_PHY,0x90021044) /* read/write */
- #define REG_USB_PHY_UTMI_REG12 FIO_ADDRESS(USB_PHY,0x90021048) /* read/write */
- #define REG_USB_PHY_UTMI_REG13 FIO_ADDRESS(USB_PHY,0x9002104C) /* read/write */
- #define REG_USB_PHY_UTMI_REG14 FIO_ADDRESS(USB_PHY,0x90021050) /* read/write */
- #define REG_USB_PHY_UTMI_REG15 FIO_ADDRESS(USB_PHY,0x90021054) /* read/write */
- #define REG_USB_PHY_UTMI_REG16 FIO_ADDRESS(USB_PHY,0x90021058) /* read/write */
- #define REG_USB_PHY_UTMI_REG17 FIO_ADDRESS(USB_PHY,0x9002105C) /* read/write */
- #define REG_USB_PHY_UTMI_REG18 FIO_ADDRESS(USB_PHY,0x90021060) /* read/write */
- #define REG_USB_PHY_UTMI_REG19 FIO_ADDRESS(USB_PHY,0x90021064) /* read/write */
- #define REG_USB_PHY_UTMI_REG1A FIO_ADDRESS(USB_PHY,0x90021068) /* read/write */
- #define REG_USB_PHY_UTMI_REG1B FIO_ADDRESS(USB_PHY,0x9002106C) /* read/write */
- #define REG_USB_PHY_UTMI_REG1C FIO_ADDRESS(USB_PHY,0x90021070) /* read/write */
- #define REG_USB_PHY_UTMI_REG1D FIO_ADDRESS(USB_PHY,0x90021074) /* read/write */
- #define REG_USB_PHY_UTMI_REG1E FIO_ADDRESS(USB_PHY,0x90021078) /* read/write */
- /*----------------------------------------------------------------------------*/
- /* bit group structures */
- /*----------------------------------------------------------------------------*/
- typedef union { /* USB_PHY_Tx_Config */
- U16 all;
- struct {
- U16 tx_dma_blk : 3;
- U16 tx_ack_ignore : 1;
- U16 tx_dma_rclr : 1;
- U16 tx_dma_rcvd : 1;
- U16 : 2;
- U16 tx_dma_countl : 8;
- } bitc;
- } GH_USB_PHY_TX_CONFIG_S;
- typedef union { /* USB_PHY_Tx_Dma_Count */
- U16 all;
- struct {
- U16 tx_dma_countm : 8;
- U16 tx_dma_counth : 8;
- } bitc;
- } GH_USB_PHY_TX_DMA_COUNT_S;
- typedef union { /* USB_PHY_UTMI_REG_00 */
- U16 all;
- struct {
- U16 pdn_override : 1;
- U16 term_override : 1;
- U16 ref_pdn : 1;
- U16 dp_puen : 1;
- U16 dm_puen : 1;
- U16 r_pumode : 1;
- U16 r_dp_pden : 1;
- U16 r_dm_pden : 1;
- U16 hs_dm_pdn : 1;
- U16 pll_pdn : 1;
- U16 hs_ted_pdn : 1;
- U16 hs_preamp_pdn : 1;
- U16 f1_xcvf_pdn : 1;
- U16 vbusdet_pdn : 1;
- U16 iref_pdn : 1;
- U16 pdn : 1;
- } bitc;
- } GH_USB_PHY_UTMI_REG_00_S;
- typedef union { /* USB_PHY_UTMI_REG_01 */
- U16 all;
- struct {
- U16 sel_override : 1;
- U16 fsls_sel : 1;
- U16 clk12_sel : 1;
- U16 nrzi_en : 1;
- U16 bitstuff_en : 1;
- U16 fl_lowimode : 1;
- U16 hs_tx_ten : 1;
- U16 bond_sel : 1;
- U16 bitstuff_override : 1;
- U16 nrzi_override : 1;
- U16 fl_sel_override : 1;
- U16 eop40_det_delay_cnt : 3;
- U16 linestate_sel : 1;
- U16 hs_rterm_pdn : 1;
- } bitc;
- } GH_USB_PHY_UTMI_REG_01_S;
- typedef union { /* USB_PHY_UTMI_REG_02 */
- U16 all;
- struct {
- U16 hs_tx_en_chip : 1;
- U16 hs_tx_en_sw : 1;
- U16 dummy : 6;
- U16 tx_in_sel_multi_phase : 2;
- U16 tx_out_sel_multi_phase : 2;
- U16 utmi_tx_wait_cnt : 4;
- } bitc;
- } GH_USB_PHY_UTMI_REG_02_S;
- typedef union { /* USB_PHY_UTMI_REG_03 */
- U16 all;
- struct {
- U16 rx_swreset : 1;
- U16 utmi_tx_sw_reset : 1;
- U16 tx_force_hs_current_enable : 1;
- U16 tx_fl_early_4 : 1;
- U16 tx_fl_latency_delay_1 : 1;
- U16 hs_stage_select : 2;
- U16 otg_dual_role : 1;
- U16 tx_reset_fsm : 1;
- U16 cdr_mode_sel : 1;
- U16 tx_reserved : 4;
- U16 vbusdet_test : 2;
- } bitc;
- } GH_USB_PHY_UTMI_REG_03_S;
- typedef union { /* USB_PHY_UTMI_REG_04 */
- U16 all;
- struct {
- U16 utmi_clk_en : 1;
- U16 utmi_clk120_en : 1;
- U16 : 4;
- U16 clktest_en : 1;
- U16 clk_extra_0_en : 1;
- U16 clk_extra_1_en : 1;
- U16 xtal12_en : 1;
- U16 clk_ctl_override : 1;
- U16 force_pll_on : 1;
- U16 ck214_syn_en : 1;
- U16 clk_274_en : 1;
- U16 : 1;
- U16 hs_rx_roboust_en : 1;
- } bitc;
- } GH_USB_PHY_UTMI_REG_04_S;
- typedef union { /* USB_PHY_UTMI_REG_05 */
- U16 all;
- struct {
- U16 utmi_clk_inv : 1;
- U16 utmi_clk120_inv : 1;
- U16 dummy1 : 4;
- U16 clktest_inv : 1;
- U16 clk_extra_0_inv : 1;
- U16 clk_extra_1_inv : 1;
- U16 ck_inv_reserved : 7;
- } bitc;
- } GH_USB_PHY_UTMI_REG_05_S;
- typedef union { /* USB_PHY_UTMI_REG_06 */
- U16 all;
- struct {
- U16 test_clock_select : 6;
- U16 mac_clk_sel : 2;
- U16 double_data_rate : 1;
- U16 clk_extra0_div_select : 1;
- U16 clk_extra1_div_select : 2;
- U16 utmi_ck_en_sel : 2;
- U16 utmi_ckinv_en_sel : 2;
- } bitc;
- } GH_USB_PHY_UTMI_REG_06_S;
- typedef union { /* USB_PHY_UTMI_STATUS */
- U16 all;
- struct {
- U16 elasticity_error : 1;
- U16 sync_pattern_error : 1;
- U16 eop_error : 1;
- U16 bit_stuffer_error : 1;
- U16 elasticity_underflow : 1;
- U16 overflow : 1;
- U16 clock_ready : 1;
- U16 interrupt : 1;
- U16 device : 1;
- U16 host : 1;
- U16 disconnect : 1;
- U16 tx_fsm : 1;
- U16 rx_fsm : 1;
- U16 low_speed : 1;
- U16 full_speed : 1;
- U16 hign_speed : 1;
- } bitc;
- } GH_USB_PHY_UTMI_STATUS_S;
- typedef union { /* USB_PHY_UTMI_REG_08 */
- U16 all;
- struct {
- U16 test_bus_select : 4;
- U16 force_rx_nonbusy : 1;
- U16 force_tx_nonbusy : 1;
- U16 utmi_int_clr : 1;
- U16 se0_set : 1;
- U16 tx_data : 1;
- U16 tx_en : 1;
- U16 tx_se0 : 1;
- U16 tx_override : 1;
- U16 power_good_rst : 1;
- U16 phy_mode_enable : 1;
- U16 error_flag_clr : 1;
- U16 hd_tx_override : 1;
- } bitc;
- } GH_USB_PHY_UTMI_REG_08_S;
- typedef union { /* USB_PHY_UTMI_REG_09 */
- U16 all;
- struct {
- U16 deglitch_prd : 6;
- U16 vdd2low_rst_enz : 1;
- U16 deglitch_enz : 1;
- U16 usbsyn_rst : 1;
- U16 reg_test : 3;
- U16 ib_rterm_test : 3;
- U16 test_p1 : 1;
- } bitc;
- } GH_USB_PHY_UTMI_REG_09_S;
- typedef union { /* USB_PHY_UTMI_REG_0A */
- U16 all;
- struct {
- U16 vbusvalid : 1;
- U16 avalid : 1;
- U16 sessend : 1;
- U16 iddig : 1;
- U16 opmode : 2;
- U16 xcvrsel : 2;
- U16 termsel : 1;
- U16 macmode_ovd : 1;
- U16 suspendm : 1;
- U16 usb_bond_ovd : 1;
- U16 usb_bond_set : 1;
- U16 host_chirp_det : 1;
- U16 hs_tx_ien_mask : 1;
- U16 hs_tx_ien_mask_method : 1;
- } bitc;
- } GH_USB_PHY_UTMI_REG_0A_S;
- typedef union { /* USB_PHY_UTMI_REG_0B */
- U16 all;
- struct {
- U16 f : 11;
- U16 n : 5;
- } bitc;
- } GH_USB_PHY_UTMI_REG_0B_S;
- typedef union { /* USB_PHY_UTMI_REG_0C */
- U16 all;
- struct {
- U16 f : 16;
- } bitc;
- } GH_USB_PHY_UTMI_REG_0C_S;
- typedef union { /* USB_PHY_UTMI_REG10 */
- U16 all;
- struct {
- U16 input_clock : 1;
- U16 divider_selection : 2;
- U16 divider_control : 5;
- U16 clock_outputs_source : 2;
- U16 clock_outputs_ratio : 2;
- U16 digital_output : 2;
- U16 transmitter : 2;
- } bitc;
- } GH_USB_PHY_UTMI_REG10_S;
- typedef union { /* USB_PHY_UTMI_REG11 */
- U16 all;
- struct {
- U16 endisc : 1;
- U16 extdisc : 1;
- U16 enlockz : 1;
- U16 enauto : 1;
- U16 endcc : 1;
- U16 tvco : 2;
- U16 output_source : 1;
- U16 eninv : 1;
- U16 eninventmux : 1;
- U16 input_clock : 1;
- U16 : 5;
- } bitc;
- } GH_USB_PHY_UTMI_REG11_S;
- typedef union { /* USB_PHY_UTMI_REG12 */
- U16 all;
- struct {
- U16 ictl33 : 3;
- U16 dis_hvflag_disc : 1;
- U16 ensyn33 : 1;
- U16 regulated : 2;
- U16 regulator : 1;
- U16 : 8;
- } bitc;
- } GH_USB_PHY_UTMI_REG12_S;
- typedef union { /* USB_PHY_UTMI_REG13 */
- U16 all;
- struct {
- U16 de_glitch_time : 2;
- U16 squelch_detector : 2;
- U16 : 6;
- U16 receiver_bias : 2;
- U16 : 4;
- } bitc;
- } GH_USB_PHY_UTMI_REG13_S;
- typedef union { /* USB_PHY_UTMI_REG14 */
- U16 all;
- struct {
- U16 slew_rate : 1;
- U16 : 2;
- U16 hign_speed : 3;
- U16 full_speed0 : 2;
- U16 full_speed1 : 2;
- U16 slew : 1;
- U16 disable : 1;
- U16 test_dm : 1;
- U16 test_dp : 1;
- U16 : 2;
- } bitc;
- } GH_USB_PHY_UTMI_REG14_S;
- typedef union { /* USB_PHY_UTMI_REG15 */
- U16 all;
- struct {
- U16 vspout : 2;
- U16 vsmout : 2;
- U16 vcpout : 2;
- U16 vcmout : 2;
- U16 pgd : 2;
- U16 power_good_33v : 1;
- U16 power_good : 1;
- U16 vbg : 1;
- U16 vbgr : 1;
- U16 : 1;
- U16 power_good_por : 1;
- } bitc;
- } GH_USB_PHY_UTMI_REG15_S;
- typedef union { /* USB_PHY_UTMI_REG16 */
- U16 all;
- struct {
- U16 : 3;
- U16 tx_text_clock : 1;
- U16 tx_output_adjust : 3;
- U16 tx_pre_emphasis_adjust : 2;
- U16 tx_pre_emphasis_bias : 1;
- U16 tx_current_bias : 1;
- U16 hs_rterm : 3;
- U16 hs_tx : 1;
- U16 vbusdet_nc : 1;
- } bitc;
- } GH_USB_PHY_UTMI_REG16_S;
- typedef union { /* USB_PHY_UTMI_REG17 */
- U16 all;
- struct {
- U16 hs_rx : 1;
- U16 rterm : 1;
- U16 hs_rterm : 1;
- U16 hs_tx_itest : 1;
- U16 : 4;
- U16 mute : 1;
- U16 pre_emphasis_en : 1;
- U16 transition_edge : 1;
- U16 enable_edge : 1;
- U16 clock_output : 1;
- U16 source : 1;
- U16 : 2;
- } bitc;
- } GH_USB_PHY_UTMI_REG17_S;
- typedef union { /* USB_PHY_UTMI_REG18 */
- U16 all;
- struct {
- U16 lock : 1;
- U16 flag1 : 1;
- U16 flag2 : 1;
- U16 test : 1;
- U16 power_good : 1;
- U16 vbus : 1;
- U16 otg : 1;
- U16 cid : 1;
- U16 avalid_atop : 1;
- U16 hs_disconnect : 1;
- U16 hs_rx_data : 1;
- U16 hs_rx_chirp : 1;
- U16 fl_linestate0 : 1;
- U16 fl_linestate1 : 1;
- U16 failed : 1;
- U16 finish : 1;
- } bitc;
- } GH_USB_PHY_UTMI_REG18_S;
- typedef union { /* USB_PHY_UTMI_REG19 */
- U16 all;
- struct {
- U16 pg_tx_length : 8;
- U16 pg_tx_go : 1;
- U16 pg_tx_mode : 1;
- U16 pg_tx_fixed_data : 1;
- U16 continuous_mode : 1;
- U16 receiving_mode : 1;
- U16 : 3;
- } bitc;
- } GH_USB_PHY_UTMI_REG19_S;
- typedef union { /* USB_PHY_UTMI_REG1A */
- U16 all;
- struct {
- U16 pg_tx_data : 16;
- } bitc;
- } GH_USB_PHY_UTMI_REG1A_S;
- typedef union { /* USB_PHY_UTMI_REG1B */
- U16 all;
- struct {
- U16 pg_tx_inc : 16;
- } bitc;
- } GH_USB_PHY_UTMI_REG1B_S;
- typedef union { /* USB_PHY_UTMI_REG1C */
- U16 all;
- struct {
- U16 en_ck192 : 1;
- U16 vigen_pdn : 1;
- U16 selport : 1;
- U16 dp_status : 1;
- U16 dm_status : 1;
- U16 dp1_status : 1;
- U16 dm1_status : 1;
- U16 asrst_on : 1;
- U16 vbus : 1;
- U16 dummy : 1;
- U16 reserved : 6;
- } bitc;
- } GH_USB_PHY_UTMI_REG1C_S;
- typedef union { /* USB_PHY_UTMI_REG1D */
- U16 all;
- struct {
- U16 test_serdes : 8;
- U16 reg_test : 8;
- } bitc;
- } GH_USB_PHY_UTMI_REG1D_S;
- typedef union { /* USB_PHY_UTMI_REG1E */
- U16 all;
- struct {
- U16 ca_start : 1;
- U16 ca_end : 1;
- U16 power_good_sts : 1;
- U16 : 1;
- U16 ca_data : 12;
- } bitc;
- } GH_USB_PHY_UTMI_REG1E_S;
- /*----------------------------------------------------------------------------*/
- /* mirror variables */
- /*----------------------------------------------------------------------------*/
- #ifdef __cplusplus
- extern "C" {
- #endif
- /*----------------------------------------------------------------------------*/
- /* register USB_PHY_Tx_Config (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'USB_PHY_Tx_Config'. */
- void GH_USB_PHY_set_Tx_Config(U16 data);
- /*! \brief Reads the register 'USB_PHY_Tx_Config'. */
- U16 GH_USB_PHY_get_Tx_Config(void);
- /*! \brief Writes the bit group 'tx_dma_blk' of register 'USB_PHY_Tx_Config'. */
- void GH_USB_PHY_set_Tx_Config_tx_dma_blk(U8 data);
- /*! \brief Reads the bit group 'tx_dma_blk' of register 'USB_PHY_Tx_Config'. */
- U8 GH_USB_PHY_get_Tx_Config_tx_dma_blk(void);
- /*! \brief Writes the bit group 'tx_ack_ignore' of register 'USB_PHY_Tx_Config'. */
- void GH_USB_PHY_set_Tx_Config_tx_ack_ignore(U8 data);
- /*! \brief Reads the bit group 'tx_ack_ignore' of register 'USB_PHY_Tx_Config'. */
- U8 GH_USB_PHY_get_Tx_Config_tx_ack_ignore(void);
- /*! \brief Writes the bit group 'tx_dma_rclr' of register 'USB_PHY_Tx_Config'. */
- void GH_USB_PHY_set_Tx_Config_tx_dma_rclr(U8 data);
- /*! \brief Reads the bit group 'tx_dma_rclr' of register 'USB_PHY_Tx_Config'. */
- U8 GH_USB_PHY_get_Tx_Config_tx_dma_rclr(void);
- /*! \brief Writes the bit group 'tx_dma_rcvd' of register 'USB_PHY_Tx_Config'. */
- void GH_USB_PHY_set_Tx_Config_tx_dma_rcvd(U8 data);
- /*! \brief Reads the bit group 'tx_dma_rcvd' of register 'USB_PHY_Tx_Config'. */
- U8 GH_USB_PHY_get_Tx_Config_tx_dma_rcvd(void);
- /*! \brief Writes the bit group 'tx_dma_countL' of register 'USB_PHY_Tx_Config'. */
- void GH_USB_PHY_set_Tx_Config_tx_dma_countL(U8 data);
- /*! \brief Reads the bit group 'tx_dma_countL' of register 'USB_PHY_Tx_Config'. */
- U8 GH_USB_PHY_get_Tx_Config_tx_dma_countL(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_USB_PHY_set_Tx_Config(U16 data)
- {
- *(volatile U16 *)REG_USB_PHY_TX_CONFIG = data;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_Tx_Config] <-- 0x%08x\n",
- REG_USB_PHY_TX_CONFIG,data,data);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_Tx_Config(void)
- {
- U16 value = (*(volatile U16 *)REG_USB_PHY_TX_CONFIG);
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_Tx_Config] --> 0x%08x\n",
- REG_USB_PHY_TX_CONFIG,value);
- #endif
- return value;
- }
- GH_INLINE void GH_USB_PHY_set_Tx_Config_tx_dma_blk(U8 data)
- {
- GH_USB_PHY_TX_CONFIG_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_TX_CONFIG;
- d.bitc.tx_dma_blk = data;
- *(volatile U16 *)REG_USB_PHY_TX_CONFIG = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_Tx_Config_tx_dma_blk] <-- 0x%08x\n",
- REG_USB_PHY_TX_CONFIG,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_Tx_Config_tx_dma_blk(void)
- {
- GH_USB_PHY_TX_CONFIG_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_TX_CONFIG);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_Tx_Config_tx_dma_blk] --> 0x%08x\n",
- REG_USB_PHY_TX_CONFIG,value);
- #endif
- return tmp_value.bitc.tx_dma_blk;
- }
- GH_INLINE void GH_USB_PHY_set_Tx_Config_tx_ack_ignore(U8 data)
- {
- GH_USB_PHY_TX_CONFIG_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_TX_CONFIG;
- d.bitc.tx_ack_ignore = data;
- *(volatile U16 *)REG_USB_PHY_TX_CONFIG = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_Tx_Config_tx_ack_ignore] <-- 0x%08x\n",
- REG_USB_PHY_TX_CONFIG,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_Tx_Config_tx_ack_ignore(void)
- {
- GH_USB_PHY_TX_CONFIG_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_TX_CONFIG);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_Tx_Config_tx_ack_ignore] --> 0x%08x\n",
- REG_USB_PHY_TX_CONFIG,value);
- #endif
- return tmp_value.bitc.tx_ack_ignore;
- }
- GH_INLINE void GH_USB_PHY_set_Tx_Config_tx_dma_rclr(U8 data)
- {
- GH_USB_PHY_TX_CONFIG_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_TX_CONFIG;
- d.bitc.tx_dma_rclr = data;
- *(volatile U16 *)REG_USB_PHY_TX_CONFIG = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_Tx_Config_tx_dma_rclr] <-- 0x%08x\n",
- REG_USB_PHY_TX_CONFIG,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_Tx_Config_tx_dma_rclr(void)
- {
- GH_USB_PHY_TX_CONFIG_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_TX_CONFIG);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_Tx_Config_tx_dma_rclr] --> 0x%08x\n",
- REG_USB_PHY_TX_CONFIG,value);
- #endif
- return tmp_value.bitc.tx_dma_rclr;
- }
- GH_INLINE void GH_USB_PHY_set_Tx_Config_tx_dma_rcvd(U8 data)
- {
- GH_USB_PHY_TX_CONFIG_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_TX_CONFIG;
- d.bitc.tx_dma_rcvd = data;
- *(volatile U16 *)REG_USB_PHY_TX_CONFIG = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_Tx_Config_tx_dma_rcvd] <-- 0x%08x\n",
- REG_USB_PHY_TX_CONFIG,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_Tx_Config_tx_dma_rcvd(void)
- {
- GH_USB_PHY_TX_CONFIG_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_TX_CONFIG);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_Tx_Config_tx_dma_rcvd] --> 0x%08x\n",
- REG_USB_PHY_TX_CONFIG,value);
- #endif
- return tmp_value.bitc.tx_dma_rcvd;
- }
- GH_INLINE void GH_USB_PHY_set_Tx_Config_tx_dma_countL(U8 data)
- {
- GH_USB_PHY_TX_CONFIG_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_TX_CONFIG;
- d.bitc.tx_dma_countl = data;
- *(volatile U16 *)REG_USB_PHY_TX_CONFIG = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_Tx_Config_tx_dma_countL] <-- 0x%08x\n",
- REG_USB_PHY_TX_CONFIG,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_Tx_Config_tx_dma_countL(void)
- {
- GH_USB_PHY_TX_CONFIG_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_TX_CONFIG);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_Tx_Config_tx_dma_countL] --> 0x%08x\n",
- REG_USB_PHY_TX_CONFIG,value);
- #endif
- return tmp_value.bitc.tx_dma_countl;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register USB_PHY_Tx_Dma_Count (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'USB_PHY_Tx_Dma_Count'. */
- void GH_USB_PHY_set_Tx_Dma_Count(U16 data);
- /*! \brief Reads the register 'USB_PHY_Tx_Dma_Count'. */
- U16 GH_USB_PHY_get_Tx_Dma_Count(void);
- /*! \brief Writes the bit group 'tx_dma_countM' of register 'USB_PHY_Tx_Dma_Count'. */
- void GH_USB_PHY_set_Tx_Dma_Count_tx_dma_countM(U8 data);
- /*! \brief Reads the bit group 'tx_dma_countM' of register 'USB_PHY_Tx_Dma_Count'. */
- U8 GH_USB_PHY_get_Tx_Dma_Count_tx_dma_countM(void);
- /*! \brief Writes the bit group 'tx_dma_countH' of register 'USB_PHY_Tx_Dma_Count'. */
- void GH_USB_PHY_set_Tx_Dma_Count_tx_dma_countH(U8 data);
- /*! \brief Reads the bit group 'tx_dma_countH' of register 'USB_PHY_Tx_Dma_Count'. */
- U8 GH_USB_PHY_get_Tx_Dma_Count_tx_dma_countH(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_USB_PHY_set_Tx_Dma_Count(U16 data)
- {
- *(volatile U16 *)REG_USB_PHY_TX_DMA_COUNT = data;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_Tx_Dma_Count] <-- 0x%08x\n",
- REG_USB_PHY_TX_DMA_COUNT,data,data);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_Tx_Dma_Count(void)
- {
- U16 value = (*(volatile U16 *)REG_USB_PHY_TX_DMA_COUNT);
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_Tx_Dma_Count] --> 0x%08x\n",
- REG_USB_PHY_TX_DMA_COUNT,value);
- #endif
- return value;
- }
- GH_INLINE void GH_USB_PHY_set_Tx_Dma_Count_tx_dma_countM(U8 data)
- {
- GH_USB_PHY_TX_DMA_COUNT_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_TX_DMA_COUNT;
- d.bitc.tx_dma_countm = data;
- *(volatile U16 *)REG_USB_PHY_TX_DMA_COUNT = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_Tx_Dma_Count_tx_dma_countM] <-- 0x%08x\n",
- REG_USB_PHY_TX_DMA_COUNT,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_Tx_Dma_Count_tx_dma_countM(void)
- {
- GH_USB_PHY_TX_DMA_COUNT_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_TX_DMA_COUNT);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_Tx_Dma_Count_tx_dma_countM] --> 0x%08x\n",
- REG_USB_PHY_TX_DMA_COUNT,value);
- #endif
- return tmp_value.bitc.tx_dma_countm;
- }
- GH_INLINE void GH_USB_PHY_set_Tx_Dma_Count_tx_dma_countH(U8 data)
- {
- GH_USB_PHY_TX_DMA_COUNT_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_TX_DMA_COUNT;
- d.bitc.tx_dma_counth = data;
- *(volatile U16 *)REG_USB_PHY_TX_DMA_COUNT = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_Tx_Dma_Count_tx_dma_countH] <-- 0x%08x\n",
- REG_USB_PHY_TX_DMA_COUNT,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_Tx_Dma_Count_tx_dma_countH(void)
- {
- GH_USB_PHY_TX_DMA_COUNT_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_TX_DMA_COUNT);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_Tx_Dma_Count_tx_dma_countH] --> 0x%08x\n",
- REG_USB_PHY_TX_DMA_COUNT,value);
- #endif
- return tmp_value.bitc.tx_dma_counth;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register USB_PHY_UTMI_REG_00 (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'USB_PHY_UTMI_REG_00'. */
- void GH_USB_PHY_set_UTMI_REG_00(U16 data);
- /*! \brief Reads the register 'USB_PHY_UTMI_REG_00'. */
- U16 GH_USB_PHY_get_UTMI_REG_00(void);
- /*! \brief Writes the bit group 'pdn_override' of register 'USB_PHY_UTMI_REG_00'. */
- void GH_USB_PHY_set_UTMI_REG_00_pdn_override(U8 data);
- /*! \brief Reads the bit group 'pdn_override' of register 'USB_PHY_UTMI_REG_00'. */
- U8 GH_USB_PHY_get_UTMI_REG_00_pdn_override(void);
- /*! \brief Writes the bit group 'term_override' of register 'USB_PHY_UTMI_REG_00'. */
- void GH_USB_PHY_set_UTMI_REG_00_term_override(U8 data);
- /*! \brief Reads the bit group 'term_override' of register 'USB_PHY_UTMI_REG_00'. */
- U8 GH_USB_PHY_get_UTMI_REG_00_term_override(void);
- /*! \brief Writes the bit group 'ref_pdn' of register 'USB_PHY_UTMI_REG_00'. */
- void GH_USB_PHY_set_UTMI_REG_00_ref_pdn(U8 data);
- /*! \brief Reads the bit group 'ref_pdn' of register 'USB_PHY_UTMI_REG_00'. */
- U8 GH_USB_PHY_get_UTMI_REG_00_ref_pdn(void);
- /*! \brief Writes the bit group 'dp_puen' of register 'USB_PHY_UTMI_REG_00'. */
- void GH_USB_PHY_set_UTMI_REG_00_dp_puen(U8 data);
- /*! \brief Reads the bit group 'dp_puen' of register 'USB_PHY_UTMI_REG_00'. */
- U8 GH_USB_PHY_get_UTMI_REG_00_dp_puen(void);
- /*! \brief Writes the bit group 'dm_puen' of register 'USB_PHY_UTMI_REG_00'. */
- void GH_USB_PHY_set_UTMI_REG_00_dm_puen(U8 data);
- /*! \brief Reads the bit group 'dm_puen' of register 'USB_PHY_UTMI_REG_00'. */
- U8 GH_USB_PHY_get_UTMI_REG_00_dm_puen(void);
- /*! \brief Writes the bit group 'r_pumode' of register 'USB_PHY_UTMI_REG_00'. */
- void GH_USB_PHY_set_UTMI_REG_00_r_pumode(U8 data);
- /*! \brief Reads the bit group 'r_pumode' of register 'USB_PHY_UTMI_REG_00'. */
- U8 GH_USB_PHY_get_UTMI_REG_00_r_pumode(void);
- /*! \brief Writes the bit group 'r_dp_pden' of register 'USB_PHY_UTMI_REG_00'. */
- void GH_USB_PHY_set_UTMI_REG_00_r_dp_pden(U8 data);
- /*! \brief Reads the bit group 'r_dp_pden' of register 'USB_PHY_UTMI_REG_00'. */
- U8 GH_USB_PHY_get_UTMI_REG_00_r_dp_pden(void);
- /*! \brief Writes the bit group 'r_dm_pden' of register 'USB_PHY_UTMI_REG_00'. */
- void GH_USB_PHY_set_UTMI_REG_00_r_dm_pden(U8 data);
- /*! \brief Reads the bit group 'r_dm_pden' of register 'USB_PHY_UTMI_REG_00'. */
- U8 GH_USB_PHY_get_UTMI_REG_00_r_dm_pden(void);
- /*! \brief Writes the bit group 'hs_dm_pdn' of register 'USB_PHY_UTMI_REG_00'. */
- void GH_USB_PHY_set_UTMI_REG_00_hs_dm_pdn(U8 data);
- /*! \brief Reads the bit group 'hs_dm_pdn' of register 'USB_PHY_UTMI_REG_00'. */
- U8 GH_USB_PHY_get_UTMI_REG_00_hs_dm_pdn(void);
- /*! \brief Writes the bit group 'pll_pdn' of register 'USB_PHY_UTMI_REG_00'. */
- void GH_USB_PHY_set_UTMI_REG_00_pll_pdn(U8 data);
- /*! \brief Reads the bit group 'pll_pdn' of register 'USB_PHY_UTMI_REG_00'. */
- U8 GH_USB_PHY_get_UTMI_REG_00_pll_pdn(void);
- /*! \brief Writes the bit group 'hs_ted_pdn' of register 'USB_PHY_UTMI_REG_00'. */
- void GH_USB_PHY_set_UTMI_REG_00_hs_ted_pdn(U8 data);
- /*! \brief Reads the bit group 'hs_ted_pdn' of register 'USB_PHY_UTMI_REG_00'. */
- U8 GH_USB_PHY_get_UTMI_REG_00_hs_ted_pdn(void);
- /*! \brief Writes the bit group 'hs_preamp_pdn' of register 'USB_PHY_UTMI_REG_00'. */
- void GH_USB_PHY_set_UTMI_REG_00_hs_preamp_pdn(U8 data);
- /*! \brief Reads the bit group 'hs_preamp_pdn' of register 'USB_PHY_UTMI_REG_00'. */
- U8 GH_USB_PHY_get_UTMI_REG_00_hs_preamp_pdn(void);
- /*! \brief Writes the bit group 'f1_xcvf_pdn' of register 'USB_PHY_UTMI_REG_00'. */
- void GH_USB_PHY_set_UTMI_REG_00_f1_xcvf_pdn(U8 data);
- /*! \brief Reads the bit group 'f1_xcvf_pdn' of register 'USB_PHY_UTMI_REG_00'. */
- U8 GH_USB_PHY_get_UTMI_REG_00_f1_xcvf_pdn(void);
- /*! \brief Writes the bit group 'vbusdet_pdn' of register 'USB_PHY_UTMI_REG_00'. */
- void GH_USB_PHY_set_UTMI_REG_00_vbusdet_pdn(U8 data);
- /*! \brief Reads the bit group 'vbusdet_pdn' of register 'USB_PHY_UTMI_REG_00'. */
- U8 GH_USB_PHY_get_UTMI_REG_00_vbusdet_pdn(void);
- /*! \brief Writes the bit group 'iref_pdn' of register 'USB_PHY_UTMI_REG_00'. */
- void GH_USB_PHY_set_UTMI_REG_00_iref_pdn(U8 data);
- /*! \brief Reads the bit group 'iref_pdn' of register 'USB_PHY_UTMI_REG_00'. */
- U8 GH_USB_PHY_get_UTMI_REG_00_iref_pdn(void);
- /*! \brief Writes the bit group 'pdn' of register 'USB_PHY_UTMI_REG_00'. */
- void GH_USB_PHY_set_UTMI_REG_00_pdn(U8 data);
- /*! \brief Reads the bit group 'pdn' of register 'USB_PHY_UTMI_REG_00'. */
- U8 GH_USB_PHY_get_UTMI_REG_00_pdn(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_00(U16 data)
- {
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = data;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,data,data);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_UTMI_REG_00(void)
- {
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,value);
- #endif
- return value;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_00_pdn_override(U8 data)
- {
- GH_USB_PHY_UTMI_REG_00_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_00;
- d.bitc.pdn_override = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00_pdn_override] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_00_pdn_override(void)
- {
- GH_USB_PHY_UTMI_REG_00_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00_pdn_override] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,value);
- #endif
- return tmp_value.bitc.pdn_override;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_00_term_override(U8 data)
- {
- GH_USB_PHY_UTMI_REG_00_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_00;
- d.bitc.term_override = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00_term_override] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_00_term_override(void)
- {
- GH_USB_PHY_UTMI_REG_00_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00_term_override] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,value);
- #endif
- return tmp_value.bitc.term_override;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_00_ref_pdn(U8 data)
- {
- GH_USB_PHY_UTMI_REG_00_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_00;
- d.bitc.ref_pdn = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00_ref_pdn] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_00_ref_pdn(void)
- {
- GH_USB_PHY_UTMI_REG_00_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00_ref_pdn] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,value);
- #endif
- return tmp_value.bitc.ref_pdn;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_00_dp_puen(U8 data)
- {
- GH_USB_PHY_UTMI_REG_00_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_00;
- d.bitc.dp_puen = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00_dp_puen] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_00_dp_puen(void)
- {
- GH_USB_PHY_UTMI_REG_00_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00_dp_puen] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,value);
- #endif
- return tmp_value.bitc.dp_puen;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_00_dm_puen(U8 data)
- {
- GH_USB_PHY_UTMI_REG_00_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_00;
- d.bitc.dm_puen = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00_dm_puen] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_00_dm_puen(void)
- {
- GH_USB_PHY_UTMI_REG_00_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00_dm_puen] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,value);
- #endif
- return tmp_value.bitc.dm_puen;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_00_r_pumode(U8 data)
- {
- GH_USB_PHY_UTMI_REG_00_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_00;
- d.bitc.r_pumode = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00_r_pumode] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_00_r_pumode(void)
- {
- GH_USB_PHY_UTMI_REG_00_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00_r_pumode] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,value);
- #endif
- return tmp_value.bitc.r_pumode;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_00_r_dp_pden(U8 data)
- {
- GH_USB_PHY_UTMI_REG_00_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_00;
- d.bitc.r_dp_pden = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00_r_dp_pden] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_00_r_dp_pden(void)
- {
- GH_USB_PHY_UTMI_REG_00_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00_r_dp_pden] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,value);
- #endif
- return tmp_value.bitc.r_dp_pden;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_00_r_dm_pden(U8 data)
- {
- GH_USB_PHY_UTMI_REG_00_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_00;
- d.bitc.r_dm_pden = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00_r_dm_pden] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_00_r_dm_pden(void)
- {
- GH_USB_PHY_UTMI_REG_00_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00_r_dm_pden] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,value);
- #endif
- return tmp_value.bitc.r_dm_pden;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_00_hs_dm_pdn(U8 data)
- {
- GH_USB_PHY_UTMI_REG_00_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_00;
- d.bitc.hs_dm_pdn = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00_hs_dm_pdn] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_00_hs_dm_pdn(void)
- {
- GH_USB_PHY_UTMI_REG_00_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00_hs_dm_pdn] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,value);
- #endif
- return tmp_value.bitc.hs_dm_pdn;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_00_pll_pdn(U8 data)
- {
- GH_USB_PHY_UTMI_REG_00_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_00;
- d.bitc.pll_pdn = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00_pll_pdn] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_00_pll_pdn(void)
- {
- GH_USB_PHY_UTMI_REG_00_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00_pll_pdn] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,value);
- #endif
- return tmp_value.bitc.pll_pdn;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_00_hs_ted_pdn(U8 data)
- {
- GH_USB_PHY_UTMI_REG_00_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_00;
- d.bitc.hs_ted_pdn = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00_hs_ted_pdn] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_00_hs_ted_pdn(void)
- {
- GH_USB_PHY_UTMI_REG_00_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00_hs_ted_pdn] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,value);
- #endif
- return tmp_value.bitc.hs_ted_pdn;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_00_hs_preamp_pdn(U8 data)
- {
- GH_USB_PHY_UTMI_REG_00_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_00;
- d.bitc.hs_preamp_pdn = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00_hs_preamp_pdn] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_00_hs_preamp_pdn(void)
- {
- GH_USB_PHY_UTMI_REG_00_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00_hs_preamp_pdn] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,value);
- #endif
- return tmp_value.bitc.hs_preamp_pdn;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_00_f1_xcvf_pdn(U8 data)
- {
- GH_USB_PHY_UTMI_REG_00_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_00;
- d.bitc.f1_xcvf_pdn = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00_f1_xcvf_pdn] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_00_f1_xcvf_pdn(void)
- {
- GH_USB_PHY_UTMI_REG_00_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00_f1_xcvf_pdn] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,value);
- #endif
- return tmp_value.bitc.f1_xcvf_pdn;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_00_vbusdet_pdn(U8 data)
- {
- GH_USB_PHY_UTMI_REG_00_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_00;
- d.bitc.vbusdet_pdn = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00_vbusdet_pdn] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_00_vbusdet_pdn(void)
- {
- GH_USB_PHY_UTMI_REG_00_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00_vbusdet_pdn] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,value);
- #endif
- return tmp_value.bitc.vbusdet_pdn;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_00_iref_pdn(U8 data)
- {
- GH_USB_PHY_UTMI_REG_00_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_00;
- d.bitc.iref_pdn = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00_iref_pdn] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_00_iref_pdn(void)
- {
- GH_USB_PHY_UTMI_REG_00_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00_iref_pdn] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,value);
- #endif
- return tmp_value.bitc.iref_pdn;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_00_pdn(U8 data)
- {
- GH_USB_PHY_UTMI_REG_00_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_00;
- d.bitc.pdn = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_00 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_00_pdn] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_00_pdn(void)
- {
- GH_USB_PHY_UTMI_REG_00_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_00);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_00_pdn] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_00,value);
- #endif
- return tmp_value.bitc.pdn;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register USB_PHY_UTMI_REG_01 (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'USB_PHY_UTMI_REG_01'. */
- void GH_USB_PHY_set_UTMI_REG_01(U16 data);
- /*! \brief Reads the register 'USB_PHY_UTMI_REG_01'. */
- U16 GH_USB_PHY_get_UTMI_REG_01(void);
- /*! \brief Writes the bit group 'sel_override' of register 'USB_PHY_UTMI_REG_01'. */
- void GH_USB_PHY_set_UTMI_REG_01_sel_override(U8 data);
- /*! \brief Reads the bit group 'sel_override' of register 'USB_PHY_UTMI_REG_01'. */
- U8 GH_USB_PHY_get_UTMI_REG_01_sel_override(void);
- /*! \brief Writes the bit group 'fsls_sel' of register 'USB_PHY_UTMI_REG_01'. */
- void GH_USB_PHY_set_UTMI_REG_01_fsls_sel(U8 data);
- /*! \brief Reads the bit group 'fsls_sel' of register 'USB_PHY_UTMI_REG_01'. */
- U8 GH_USB_PHY_get_UTMI_REG_01_fsls_sel(void);
- /*! \brief Writes the bit group 'clk12_sel' of register 'USB_PHY_UTMI_REG_01'. */
- void GH_USB_PHY_set_UTMI_REG_01_clk12_sel(U8 data);
- /*! \brief Reads the bit group 'clk12_sel' of register 'USB_PHY_UTMI_REG_01'. */
- U8 GH_USB_PHY_get_UTMI_REG_01_clk12_sel(void);
- /*! \brief Writes the bit group 'nrzi_en' of register 'USB_PHY_UTMI_REG_01'. */
- void GH_USB_PHY_set_UTMI_REG_01_nrzi_en(U8 data);
- /*! \brief Reads the bit group 'nrzi_en' of register 'USB_PHY_UTMI_REG_01'. */
- U8 GH_USB_PHY_get_UTMI_REG_01_nrzi_en(void);
- /*! \brief Writes the bit group 'bitstuff_en' of register 'USB_PHY_UTMI_REG_01'. */
- void GH_USB_PHY_set_UTMI_REG_01_bitstuff_en(U8 data);
- /*! \brief Reads the bit group 'bitstuff_en' of register 'USB_PHY_UTMI_REG_01'. */
- U8 GH_USB_PHY_get_UTMI_REG_01_bitstuff_en(void);
- /*! \brief Writes the bit group 'fl_lowimode' of register 'USB_PHY_UTMI_REG_01'. */
- void GH_USB_PHY_set_UTMI_REG_01_fl_lowimode(U8 data);
- /*! \brief Reads the bit group 'fl_lowimode' of register 'USB_PHY_UTMI_REG_01'. */
- U8 GH_USB_PHY_get_UTMI_REG_01_fl_lowimode(void);
- /*! \brief Writes the bit group 'hs_tx_ten' of register 'USB_PHY_UTMI_REG_01'. */
- void GH_USB_PHY_set_UTMI_REG_01_hs_tx_ten(U8 data);
- /*! \brief Reads the bit group 'hs_tx_ten' of register 'USB_PHY_UTMI_REG_01'. */
- U8 GH_USB_PHY_get_UTMI_REG_01_hs_tx_ten(void);
- /*! \brief Writes the bit group 'bond_sel' of register 'USB_PHY_UTMI_REG_01'. */
- void GH_USB_PHY_set_UTMI_REG_01_bond_sel(U8 data);
- /*! \brief Reads the bit group 'bond_sel' of register 'USB_PHY_UTMI_REG_01'. */
- U8 GH_USB_PHY_get_UTMI_REG_01_bond_sel(void);
- /*! \brief Writes the bit group 'bitstuff_override' of register 'USB_PHY_UTMI_REG_01'. */
- void GH_USB_PHY_set_UTMI_REG_01_bitstuff_override(U8 data);
- /*! \brief Reads the bit group 'bitstuff_override' of register 'USB_PHY_UTMI_REG_01'. */
- U8 GH_USB_PHY_get_UTMI_REG_01_bitstuff_override(void);
- /*! \brief Writes the bit group 'nrzi_override' of register 'USB_PHY_UTMI_REG_01'. */
- void GH_USB_PHY_set_UTMI_REG_01_nrzi_override(U8 data);
- /*! \brief Reads the bit group 'nrzi_override' of register 'USB_PHY_UTMI_REG_01'. */
- U8 GH_USB_PHY_get_UTMI_REG_01_nrzi_override(void);
- /*! \brief Writes the bit group 'fl_sel_override' of register 'USB_PHY_UTMI_REG_01'. */
- void GH_USB_PHY_set_UTMI_REG_01_fl_sel_override(U8 data);
- /*! \brief Reads the bit group 'fl_sel_override' of register 'USB_PHY_UTMI_REG_01'. */
- U8 GH_USB_PHY_get_UTMI_REG_01_fl_sel_override(void);
- /*! \brief Writes the bit group 'eop40_det_delay_cnt' of register 'USB_PHY_UTMI_REG_01'. */
- void GH_USB_PHY_set_UTMI_REG_01_eop40_det_delay_cnt(U8 data);
- /*! \brief Reads the bit group 'eop40_det_delay_cnt' of register 'USB_PHY_UTMI_REG_01'. */
- U8 GH_USB_PHY_get_UTMI_REG_01_eop40_det_delay_cnt(void);
- /*! \brief Writes the bit group 'linestate_sel' of register 'USB_PHY_UTMI_REG_01'. */
- void GH_USB_PHY_set_UTMI_REG_01_linestate_sel(U8 data);
- /*! \brief Reads the bit group 'linestate_sel' of register 'USB_PHY_UTMI_REG_01'. */
- U8 GH_USB_PHY_get_UTMI_REG_01_linestate_sel(void);
- /*! \brief Writes the bit group 'hs_rterm_pdn' of register 'USB_PHY_UTMI_REG_01'. */
- void GH_USB_PHY_set_UTMI_REG_01_hs_rterm_pdn(U8 data);
- /*! \brief Reads the bit group 'hs_rterm_pdn' of register 'USB_PHY_UTMI_REG_01'. */
- U8 GH_USB_PHY_get_UTMI_REG_01_hs_rterm_pdn(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_01(U16 data)
- {
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_01 = data;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_01] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_01,data,data);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_UTMI_REG_01(void)
- {
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_01);
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_01] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_01,value);
- #endif
- return value;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_01_sel_override(U8 data)
- {
- GH_USB_PHY_UTMI_REG_01_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_01;
- d.bitc.sel_override = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_01 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_01_sel_override] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_01,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_01_sel_override(void)
- {
- GH_USB_PHY_UTMI_REG_01_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_01);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_01_sel_override] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_01,value);
- #endif
- return tmp_value.bitc.sel_override;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_01_fsls_sel(U8 data)
- {
- GH_USB_PHY_UTMI_REG_01_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_01;
- d.bitc.fsls_sel = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_01 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_01_fsls_sel] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_01,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_01_fsls_sel(void)
- {
- GH_USB_PHY_UTMI_REG_01_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_01);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_01_fsls_sel] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_01,value);
- #endif
- return tmp_value.bitc.fsls_sel;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_01_clk12_sel(U8 data)
- {
- GH_USB_PHY_UTMI_REG_01_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_01;
- d.bitc.clk12_sel = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_01 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_01_clk12_sel] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_01,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_01_clk12_sel(void)
- {
- GH_USB_PHY_UTMI_REG_01_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_01);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_01_clk12_sel] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_01,value);
- #endif
- return tmp_value.bitc.clk12_sel;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_01_nrzi_en(U8 data)
- {
- GH_USB_PHY_UTMI_REG_01_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_01;
- d.bitc.nrzi_en = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_01 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_01_nrzi_en] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_01,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_01_nrzi_en(void)
- {
- GH_USB_PHY_UTMI_REG_01_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_01);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_01_nrzi_en] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_01,value);
- #endif
- return tmp_value.bitc.nrzi_en;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_01_bitstuff_en(U8 data)
- {
- GH_USB_PHY_UTMI_REG_01_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_01;
- d.bitc.bitstuff_en = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_01 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_01_bitstuff_en] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_01,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_01_bitstuff_en(void)
- {
- GH_USB_PHY_UTMI_REG_01_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_01);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_01_bitstuff_en] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_01,value);
- #endif
- return tmp_value.bitc.bitstuff_en;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_01_fl_lowimode(U8 data)
- {
- GH_USB_PHY_UTMI_REG_01_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_01;
- d.bitc.fl_lowimode = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_01 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_01_fl_lowimode] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_01,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_01_fl_lowimode(void)
- {
- GH_USB_PHY_UTMI_REG_01_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_01);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_01_fl_lowimode] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_01,value);
- #endif
- return tmp_value.bitc.fl_lowimode;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_01_hs_tx_ten(U8 data)
- {
- GH_USB_PHY_UTMI_REG_01_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_01;
- d.bitc.hs_tx_ten = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_01 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_01_hs_tx_ten] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_01,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_01_hs_tx_ten(void)
- {
- GH_USB_PHY_UTMI_REG_01_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_01);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_01_hs_tx_ten] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_01,value);
- #endif
- return tmp_value.bitc.hs_tx_ten;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_01_bond_sel(U8 data)
- {
- GH_USB_PHY_UTMI_REG_01_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_01;
- d.bitc.bond_sel = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_01 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_01_bond_sel] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_01,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_01_bond_sel(void)
- {
- GH_USB_PHY_UTMI_REG_01_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_01);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_01_bond_sel] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_01,value);
- #endif
- return tmp_value.bitc.bond_sel;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_01_bitstuff_override(U8 data)
- {
- GH_USB_PHY_UTMI_REG_01_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_01;
- d.bitc.bitstuff_override = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_01 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_01_bitstuff_override] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_01,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_01_bitstuff_override(void)
- {
- GH_USB_PHY_UTMI_REG_01_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_01);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_01_bitstuff_override] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_01,value);
- #endif
- return tmp_value.bitc.bitstuff_override;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_01_nrzi_override(U8 data)
- {
- GH_USB_PHY_UTMI_REG_01_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_01;
- d.bitc.nrzi_override = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_01 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_01_nrzi_override] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_01,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_01_nrzi_override(void)
- {
- GH_USB_PHY_UTMI_REG_01_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_01);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_01_nrzi_override] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_01,value);
- #endif
- return tmp_value.bitc.nrzi_override;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_01_fl_sel_override(U8 data)
- {
- GH_USB_PHY_UTMI_REG_01_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_01;
- d.bitc.fl_sel_override = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_01 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_01_fl_sel_override] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_01,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_01_fl_sel_override(void)
- {
- GH_USB_PHY_UTMI_REG_01_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_01);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_01_fl_sel_override] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_01,value);
- #endif
- return tmp_value.bitc.fl_sel_override;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_01_eop40_det_delay_cnt(U8 data)
- {
- GH_USB_PHY_UTMI_REG_01_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_01;
- d.bitc.eop40_det_delay_cnt = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_01 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- 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",
- REG_USB_PHY_UTMI_REG_01,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_01_eop40_det_delay_cnt(void)
- {
- GH_USB_PHY_UTMI_REG_01_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_01);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_01_eop40_det_delay_cnt] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_01,value);
- #endif
- return tmp_value.bitc.eop40_det_delay_cnt;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_01_linestate_sel(U8 data)
- {
- GH_USB_PHY_UTMI_REG_01_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_01;
- d.bitc.linestate_sel = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_01 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_01_linestate_sel] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_01,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_01_linestate_sel(void)
- {
- GH_USB_PHY_UTMI_REG_01_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_01);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_01_linestate_sel] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_01,value);
- #endif
- return tmp_value.bitc.linestate_sel;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_01_hs_rterm_pdn(U8 data)
- {
- GH_USB_PHY_UTMI_REG_01_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_01;
- d.bitc.hs_rterm_pdn = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_01 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_01_hs_rterm_pdn] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_01,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_01_hs_rterm_pdn(void)
- {
- GH_USB_PHY_UTMI_REG_01_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_01);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_01_hs_rterm_pdn] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_01,value);
- #endif
- return tmp_value.bitc.hs_rterm_pdn;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register USB_PHY_UTMI_REG_02 (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'USB_PHY_UTMI_REG_02'. */
- void GH_USB_PHY_set_UTMI_REG_02(U16 data);
- /*! \brief Reads the register 'USB_PHY_UTMI_REG_02'. */
- U16 GH_USB_PHY_get_UTMI_REG_02(void);
- /*! \brief Writes the bit group 'hs_tx_en_chip' of register 'USB_PHY_UTMI_REG_02'. */
- void GH_USB_PHY_set_UTMI_REG_02_hs_tx_en_chip(U8 data);
- /*! \brief Reads the bit group 'hs_tx_en_chip' of register 'USB_PHY_UTMI_REG_02'. */
- U8 GH_USB_PHY_get_UTMI_REG_02_hs_tx_en_chip(void);
- /*! \brief Writes the bit group 'hs_tx_en_sw' of register 'USB_PHY_UTMI_REG_02'. */
- void GH_USB_PHY_set_UTMI_REG_02_hs_tx_en_sw(U8 data);
- /*! \brief Reads the bit group 'hs_tx_en_sw' of register 'USB_PHY_UTMI_REG_02'. */
- U8 GH_USB_PHY_get_UTMI_REG_02_hs_tx_en_sw(void);
- /*! \brief Writes the bit group 'dummy' of register 'USB_PHY_UTMI_REG_02'. */
- void GH_USB_PHY_set_UTMI_REG_02_dummy(U8 data);
- /*! \brief Reads the bit group 'dummy' of register 'USB_PHY_UTMI_REG_02'. */
- U8 GH_USB_PHY_get_UTMI_REG_02_dummy(void);
- /*! \brief Writes the bit group 'tx_in_sel_multi_phase' of register 'USB_PHY_UTMI_REG_02'. */
- void GH_USB_PHY_set_UTMI_REG_02_tx_in_sel_multi_phase(U8 data);
- /*! \brief Reads the bit group 'tx_in_sel_multi_phase' of register 'USB_PHY_UTMI_REG_02'. */
- U8 GH_USB_PHY_get_UTMI_REG_02_tx_in_sel_multi_phase(void);
- /*! \brief Writes the bit group 'tx_out_sel_multi_phase' of register 'USB_PHY_UTMI_REG_02'. */
- void GH_USB_PHY_set_UTMI_REG_02_tx_out_sel_multi_phase(U8 data);
- /*! \brief Reads the bit group 'tx_out_sel_multi_phase' of register 'USB_PHY_UTMI_REG_02'. */
- U8 GH_USB_PHY_get_UTMI_REG_02_tx_out_sel_multi_phase(void);
- /*! \brief Writes the bit group 'utmi_tx_wait_cnt' of register 'USB_PHY_UTMI_REG_02'. */
- void GH_USB_PHY_set_UTMI_REG_02_utmi_tx_wait_cnt(U8 data);
- /*! \brief Reads the bit group 'utmi_tx_wait_cnt' of register 'USB_PHY_UTMI_REG_02'. */
- U8 GH_USB_PHY_get_UTMI_REG_02_utmi_tx_wait_cnt(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_02(U16 data)
- {
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_02 = data;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_02] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_02,data,data);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_UTMI_REG_02(void)
- {
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_02);
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_02] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_02,value);
- #endif
- return value;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_02_hs_tx_en_chip(U8 data)
- {
- GH_USB_PHY_UTMI_REG_02_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_02;
- d.bitc.hs_tx_en_chip = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_02 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- 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",
- REG_USB_PHY_UTMI_REG_02,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_02_hs_tx_en_chip(void)
- {
- GH_USB_PHY_UTMI_REG_02_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_02);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_02_hs_tx_en_chip] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_02,value);
- #endif
- return tmp_value.bitc.hs_tx_en_chip;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_02_hs_tx_en_sw(U8 data)
- {
- GH_USB_PHY_UTMI_REG_02_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_02;
- d.bitc.hs_tx_en_sw = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_02 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- 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",
- REG_USB_PHY_UTMI_REG_02,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_02_hs_tx_en_sw(void)
- {
- GH_USB_PHY_UTMI_REG_02_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_02);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_02_hs_tx_en_sw] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_02,value);
- #endif
- return tmp_value.bitc.hs_tx_en_sw;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_02_dummy(U8 data)
- {
- GH_USB_PHY_UTMI_REG_02_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_02;
- d.bitc.dummy = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_02 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_02_dummy] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_02,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_02_dummy(void)
- {
- GH_USB_PHY_UTMI_REG_02_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_02);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_02_dummy] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_02,value);
- #endif
- return tmp_value.bitc.dummy;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_02_tx_in_sel_multi_phase(U8 data)
- {
- GH_USB_PHY_UTMI_REG_02_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_02;
- d.bitc.tx_in_sel_multi_phase = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_02 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- 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",
- REG_USB_PHY_UTMI_REG_02,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_02_tx_in_sel_multi_phase(void)
- {
- GH_USB_PHY_UTMI_REG_02_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_02);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- 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",
- REG_USB_PHY_UTMI_REG_02,value);
- #endif
- return tmp_value.bitc.tx_in_sel_multi_phase;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_02_tx_out_sel_multi_phase(U8 data)
- {
- GH_USB_PHY_UTMI_REG_02_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_02;
- d.bitc.tx_out_sel_multi_phase = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_02 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- 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",
- REG_USB_PHY_UTMI_REG_02,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_02_tx_out_sel_multi_phase(void)
- {
- GH_USB_PHY_UTMI_REG_02_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_02);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- 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",
- REG_USB_PHY_UTMI_REG_02,value);
- #endif
- return tmp_value.bitc.tx_out_sel_multi_phase;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_02_utmi_tx_wait_cnt(U8 data)
- {
- GH_USB_PHY_UTMI_REG_02_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_02;
- d.bitc.utmi_tx_wait_cnt = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_02 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- 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",
- REG_USB_PHY_UTMI_REG_02,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_02_utmi_tx_wait_cnt(void)
- {
- GH_USB_PHY_UTMI_REG_02_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_02);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_02_utmi_tx_wait_cnt] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_02,value);
- #endif
- return tmp_value.bitc.utmi_tx_wait_cnt;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register USB_PHY_UTMI_REG_03 (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'USB_PHY_UTMI_REG_03'. */
- void GH_USB_PHY_set_UTMI_REG_03(U16 data);
- /*! \brief Reads the register 'USB_PHY_UTMI_REG_03'. */
- U16 GH_USB_PHY_get_UTMI_REG_03(void);
- /*! \brief Writes the bit group 'rx_swreset' of register 'USB_PHY_UTMI_REG_03'. */
- void GH_USB_PHY_set_UTMI_REG_03_rx_swreset(U8 data);
- /*! \brief Reads the bit group 'rx_swreset' of register 'USB_PHY_UTMI_REG_03'. */
- U8 GH_USB_PHY_get_UTMI_REG_03_rx_swreset(void);
- /*! \brief Writes the bit group 'utmi_tx_sw_reset' of register 'USB_PHY_UTMI_REG_03'. */
- void GH_USB_PHY_set_UTMI_REG_03_utmi_tx_sw_reset(U8 data);
- /*! \brief Reads the bit group 'utmi_tx_sw_reset' of register 'USB_PHY_UTMI_REG_03'. */
- U8 GH_USB_PHY_get_UTMI_REG_03_utmi_tx_sw_reset(void);
- /*! \brief Writes the bit group 'tx_force_hs_current_enable' of register 'USB_PHY_UTMI_REG_03'. */
- void GH_USB_PHY_set_UTMI_REG_03_tx_force_hs_current_enable(U8 data);
- /*! \brief Reads the bit group 'tx_force_hs_current_enable' of register 'USB_PHY_UTMI_REG_03'. */
- U8 GH_USB_PHY_get_UTMI_REG_03_tx_force_hs_current_enable(void);
- /*! \brief Writes the bit group 'tx_fl_early_4' of register 'USB_PHY_UTMI_REG_03'. */
- void GH_USB_PHY_set_UTMI_REG_03_tx_fl_early_4(U8 data);
- /*! \brief Reads the bit group 'tx_fl_early_4' of register 'USB_PHY_UTMI_REG_03'. */
- U8 GH_USB_PHY_get_UTMI_REG_03_tx_fl_early_4(void);
- /*! \brief Writes the bit group 'tx_fl_latency_delay_1' of register 'USB_PHY_UTMI_REG_03'. */
- void GH_USB_PHY_set_UTMI_REG_03_tx_fl_latency_delay_1(U8 data);
- /*! \brief Reads the bit group 'tx_fl_latency_delay_1' of register 'USB_PHY_UTMI_REG_03'. */
- U8 GH_USB_PHY_get_UTMI_REG_03_tx_fl_latency_delay_1(void);
- /*! \brief Writes the bit group 'hs_stage_select' of register 'USB_PHY_UTMI_REG_03'. */
- void GH_USB_PHY_set_UTMI_REG_03_hs_stage_select(U8 data);
- /*! \brief Reads the bit group 'hs_stage_select' of register 'USB_PHY_UTMI_REG_03'. */
- U8 GH_USB_PHY_get_UTMI_REG_03_hs_stage_select(void);
- /*! \brief Writes the bit group 'otg_dual_role' of register 'USB_PHY_UTMI_REG_03'. */
- void GH_USB_PHY_set_UTMI_REG_03_otg_dual_role(U8 data);
- /*! \brief Reads the bit group 'otg_dual_role' of register 'USB_PHY_UTMI_REG_03'. */
- U8 GH_USB_PHY_get_UTMI_REG_03_otg_dual_role(void);
- /*! \brief Writes the bit group 'tx_reset_fsm' of register 'USB_PHY_UTMI_REG_03'. */
- void GH_USB_PHY_set_UTMI_REG_03_tx_reset_fsm(U8 data);
- /*! \brief Reads the bit group 'tx_reset_fsm' of register 'USB_PHY_UTMI_REG_03'. */
- U8 GH_USB_PHY_get_UTMI_REG_03_tx_reset_fsm(void);
- /*! \brief Writes the bit group 'cdr_mode_sel' of register 'USB_PHY_UTMI_REG_03'. */
- void GH_USB_PHY_set_UTMI_REG_03_cdr_mode_sel(U8 data);
- /*! \brief Reads the bit group 'cdr_mode_sel' of register 'USB_PHY_UTMI_REG_03'. */
- U8 GH_USB_PHY_get_UTMI_REG_03_cdr_mode_sel(void);
- /*! \brief Writes the bit group 'tx_reserved' of register 'USB_PHY_UTMI_REG_03'. */
- void GH_USB_PHY_set_UTMI_REG_03_tx_reserved(U8 data);
- /*! \brief Reads the bit group 'tx_reserved' of register 'USB_PHY_UTMI_REG_03'. */
- U8 GH_USB_PHY_get_UTMI_REG_03_tx_reserved(void);
- /*! \brief Writes the bit group 'vbusdet_test' of register 'USB_PHY_UTMI_REG_03'. */
- void GH_USB_PHY_set_UTMI_REG_03_vbusdet_test(U8 data);
- /*! \brief Reads the bit group 'vbusdet_test' of register 'USB_PHY_UTMI_REG_03'. */
- U8 GH_USB_PHY_get_UTMI_REG_03_vbusdet_test(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_03(U16 data)
- {
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_03 = data;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_03] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_03,data,data);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_UTMI_REG_03(void)
- {
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_03);
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_03] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_03,value);
- #endif
- return value;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_03_rx_swreset(U8 data)
- {
- GH_USB_PHY_UTMI_REG_03_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_03;
- d.bitc.rx_swreset = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_03 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_03_rx_swreset] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_03,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_03_rx_swreset(void)
- {
- GH_USB_PHY_UTMI_REG_03_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_03);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_03_rx_swreset] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_03,value);
- #endif
- return tmp_value.bitc.rx_swreset;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_03_utmi_tx_sw_reset(U8 data)
- {
- GH_USB_PHY_UTMI_REG_03_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_03;
- d.bitc.utmi_tx_sw_reset = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_03 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- 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",
- REG_USB_PHY_UTMI_REG_03,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_03_utmi_tx_sw_reset(void)
- {
- GH_USB_PHY_UTMI_REG_03_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_03);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_03_utmi_tx_sw_reset] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_03,value);
- #endif
- return tmp_value.bitc.utmi_tx_sw_reset;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_03_tx_force_hs_current_enable(U8 data)
- {
- GH_USB_PHY_UTMI_REG_03_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_03;
- d.bitc.tx_force_hs_current_enable = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_03 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- 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",
- REG_USB_PHY_UTMI_REG_03,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_03_tx_force_hs_current_enable(void)
- {
- GH_USB_PHY_UTMI_REG_03_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_03);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- 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",
- REG_USB_PHY_UTMI_REG_03,value);
- #endif
- return tmp_value.bitc.tx_force_hs_current_enable;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_03_tx_fl_early_4(U8 data)
- {
- GH_USB_PHY_UTMI_REG_03_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_03;
- d.bitc.tx_fl_early_4 = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_03 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- 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",
- REG_USB_PHY_UTMI_REG_03,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_03_tx_fl_early_4(void)
- {
- GH_USB_PHY_UTMI_REG_03_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_03);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_03_tx_fl_early_4] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_03,value);
- #endif
- return tmp_value.bitc.tx_fl_early_4;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_03_tx_fl_latency_delay_1(U8 data)
- {
- GH_USB_PHY_UTMI_REG_03_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_03;
- d.bitc.tx_fl_latency_delay_1 = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_03 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- 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",
- REG_USB_PHY_UTMI_REG_03,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_03_tx_fl_latency_delay_1(void)
- {
- GH_USB_PHY_UTMI_REG_03_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_03);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- 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",
- REG_USB_PHY_UTMI_REG_03,value);
- #endif
- return tmp_value.bitc.tx_fl_latency_delay_1;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_03_hs_stage_select(U8 data)
- {
- GH_USB_PHY_UTMI_REG_03_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_03;
- d.bitc.hs_stage_select = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_03 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_03_hs_stage_select] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_03,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_03_hs_stage_select(void)
- {
- GH_USB_PHY_UTMI_REG_03_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_03);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_03_hs_stage_select] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_03,value);
- #endif
- return tmp_value.bitc.hs_stage_select;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_03_otg_dual_role(U8 data)
- {
- GH_USB_PHY_UTMI_REG_03_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_03;
- d.bitc.otg_dual_role = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_03 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_03_otg_dual_role] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_03,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_03_otg_dual_role(void)
- {
- GH_USB_PHY_UTMI_REG_03_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_03);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_03_otg_dual_role] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_03,value);
- #endif
- return tmp_value.bitc.otg_dual_role;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_03_tx_reset_fsm(U8 data)
- {
- GH_USB_PHY_UTMI_REG_03_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_03;
- d.bitc.tx_reset_fsm = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_03 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_03_tx_reset_fsm] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_03,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_03_tx_reset_fsm(void)
- {
- GH_USB_PHY_UTMI_REG_03_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_03);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_03_tx_reset_fsm] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_03,value);
- #endif
- return tmp_value.bitc.tx_reset_fsm;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_03_cdr_mode_sel(U8 data)
- {
- GH_USB_PHY_UTMI_REG_03_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_03;
- d.bitc.cdr_mode_sel = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_03 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_03_cdr_mode_sel] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_03,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_03_cdr_mode_sel(void)
- {
- GH_USB_PHY_UTMI_REG_03_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_03);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_03_cdr_mode_sel] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_03,value);
- #endif
- return tmp_value.bitc.cdr_mode_sel;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_03_tx_reserved(U8 data)
- {
- GH_USB_PHY_UTMI_REG_03_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_03;
- d.bitc.tx_reserved = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_03 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_03_tx_reserved] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_03,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_03_tx_reserved(void)
- {
- GH_USB_PHY_UTMI_REG_03_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_03);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_03_tx_reserved] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_03,value);
- #endif
- return tmp_value.bitc.tx_reserved;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_03_vbusdet_test(U8 data)
- {
- GH_USB_PHY_UTMI_REG_03_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_03;
- d.bitc.vbusdet_test = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_03 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_03_vbusdet_test] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_03,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_03_vbusdet_test(void)
- {
- GH_USB_PHY_UTMI_REG_03_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_03);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_03_vbusdet_test] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_03,value);
- #endif
- return tmp_value.bitc.vbusdet_test;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register USB_PHY_UTMI_REG_04 (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'USB_PHY_UTMI_REG_04'. */
- void GH_USB_PHY_set_UTMI_REG_04(U16 data);
- /*! \brief Reads the register 'USB_PHY_UTMI_REG_04'. */
- U16 GH_USB_PHY_get_UTMI_REG_04(void);
- /*! \brief Writes the bit group 'utmi_clk_en' of register 'USB_PHY_UTMI_REG_04'. */
- void GH_USB_PHY_set_UTMI_REG_04_utmi_clk_en(U8 data);
- /*! \brief Reads the bit group 'utmi_clk_en' of register 'USB_PHY_UTMI_REG_04'. */
- U8 GH_USB_PHY_get_UTMI_REG_04_utmi_clk_en(void);
- /*! \brief Writes the bit group 'utmi_clk120_en' of register 'USB_PHY_UTMI_REG_04'. */
- void GH_USB_PHY_set_UTMI_REG_04_utmi_clk120_en(U8 data);
- /*! \brief Reads the bit group 'utmi_clk120_en' of register 'USB_PHY_UTMI_REG_04'. */
- U8 GH_USB_PHY_get_UTMI_REG_04_utmi_clk120_en(void);
- /*! \brief Writes the bit group 'clktest_en' of register 'USB_PHY_UTMI_REG_04'. */
- void GH_USB_PHY_set_UTMI_REG_04_clktest_en(U8 data);
- /*! \brief Reads the bit group 'clktest_en' of register 'USB_PHY_UTMI_REG_04'. */
- U8 GH_USB_PHY_get_UTMI_REG_04_clktest_en(void);
- /*! \brief Writes the bit group 'clk_extra_0_en' of register 'USB_PHY_UTMI_REG_04'. */
- void GH_USB_PHY_set_UTMI_REG_04_clk_extra_0_en(U8 data);
- /*! \brief Reads the bit group 'clk_extra_0_en' of register 'USB_PHY_UTMI_REG_04'. */
- U8 GH_USB_PHY_get_UTMI_REG_04_clk_extra_0_en(void);
- /*! \brief Writes the bit group 'clk_extra_1_en' of register 'USB_PHY_UTMI_REG_04'. */
- void GH_USB_PHY_set_UTMI_REG_04_clk_extra_1_en(U8 data);
- /*! \brief Reads the bit group 'clk_extra_1_en' of register 'USB_PHY_UTMI_REG_04'. */
- U8 GH_USB_PHY_get_UTMI_REG_04_clk_extra_1_en(void);
- /*! \brief Writes the bit group 'xtal12_en' of register 'USB_PHY_UTMI_REG_04'. */
- void GH_USB_PHY_set_UTMI_REG_04_xtal12_en(U8 data);
- /*! \brief Reads the bit group 'xtal12_en' of register 'USB_PHY_UTMI_REG_04'. */
- U8 GH_USB_PHY_get_UTMI_REG_04_xtal12_en(void);
- /*! \brief Writes the bit group 'clk_ctl_override' of register 'USB_PHY_UTMI_REG_04'. */
- void GH_USB_PHY_set_UTMI_REG_04_clk_ctl_override(U8 data);
- /*! \brief Reads the bit group 'clk_ctl_override' of register 'USB_PHY_UTMI_REG_04'. */
- U8 GH_USB_PHY_get_UTMI_REG_04_clk_ctl_override(void);
- /*! \brief Writes the bit group 'force_pll_on' of register 'USB_PHY_UTMI_REG_04'. */
- void GH_USB_PHY_set_UTMI_REG_04_force_pll_on(U8 data);
- /*! \brief Reads the bit group 'force_pll_on' of register 'USB_PHY_UTMI_REG_04'. */
- U8 GH_USB_PHY_get_UTMI_REG_04_force_pll_on(void);
- /*! \brief Writes the bit group 'ck214_syn_en' of register 'USB_PHY_UTMI_REG_04'. */
- void GH_USB_PHY_set_UTMI_REG_04_ck214_syn_en(U8 data);
- /*! \brief Reads the bit group 'ck214_syn_en' of register 'USB_PHY_UTMI_REG_04'. */
- U8 GH_USB_PHY_get_UTMI_REG_04_ck214_syn_en(void);
- /*! \brief Writes the bit group 'clk_274_en' of register 'USB_PHY_UTMI_REG_04'. */
- void GH_USB_PHY_set_UTMI_REG_04_clk_274_en(U8 data);
- /*! \brief Reads the bit group 'clk_274_en' of register 'USB_PHY_UTMI_REG_04'. */
- U8 GH_USB_PHY_get_UTMI_REG_04_clk_274_en(void);
- /*! \brief Writes the bit group 'hs_rx_roboust_en' of register 'USB_PHY_UTMI_REG_04'. */
- void GH_USB_PHY_set_UTMI_REG_04_hs_rx_roboust_en(U8 data);
- /*! \brief Reads the bit group 'hs_rx_roboust_en' of register 'USB_PHY_UTMI_REG_04'. */
- U8 GH_USB_PHY_get_UTMI_REG_04_hs_rx_roboust_en(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_04(U16 data)
- {
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_04 = data;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_04] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_04,data,data);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_UTMI_REG_04(void)
- {
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_04);
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_04] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_04,value);
- #endif
- return value;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_04_utmi_clk_en(U8 data)
- {
- GH_USB_PHY_UTMI_REG_04_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_04;
- d.bitc.utmi_clk_en = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_04 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_04_utmi_clk_en] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_04,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_04_utmi_clk_en(void)
- {
- GH_USB_PHY_UTMI_REG_04_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_04);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_04_utmi_clk_en] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_04,value);
- #endif
- return tmp_value.bitc.utmi_clk_en;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_04_utmi_clk120_en(U8 data)
- {
- GH_USB_PHY_UTMI_REG_04_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_04;
- d.bitc.utmi_clk120_en = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_04 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_04_utmi_clk120_en] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_04,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_04_utmi_clk120_en(void)
- {
- GH_USB_PHY_UTMI_REG_04_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_04);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_04_utmi_clk120_en] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_04,value);
- #endif
- return tmp_value.bitc.utmi_clk120_en;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_04_clktest_en(U8 data)
- {
- GH_USB_PHY_UTMI_REG_04_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_04;
- d.bitc.clktest_en = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_04 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_04_clktest_en] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_04,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_04_clktest_en(void)
- {
- GH_USB_PHY_UTMI_REG_04_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_04);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_04_clktest_en] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_04,value);
- #endif
- return tmp_value.bitc.clktest_en;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_04_clk_extra_0_en(U8 data)
- {
- GH_USB_PHY_UTMI_REG_04_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_04;
- d.bitc.clk_extra_0_en = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_04 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- 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",
- REG_USB_PHY_UTMI_REG_04,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_04_clk_extra_0_en(void)
- {
- GH_USB_PHY_UTMI_REG_04_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_04);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_04_clk_extra_0_en] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_04,value);
- #endif
- return tmp_value.bitc.clk_extra_0_en;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_04_clk_extra_1_en(U8 data)
- {
- GH_USB_PHY_UTMI_REG_04_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_04;
- d.bitc.clk_extra_1_en = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_04 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- 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",
- REG_USB_PHY_UTMI_REG_04,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_04_clk_extra_1_en(void)
- {
- GH_USB_PHY_UTMI_REG_04_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_04);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_04_clk_extra_1_en] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_04,value);
- #endif
- return tmp_value.bitc.clk_extra_1_en;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_04_xtal12_en(U8 data)
- {
- GH_USB_PHY_UTMI_REG_04_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_04;
- d.bitc.xtal12_en = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_04 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_04_xtal12_en] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_04,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_04_xtal12_en(void)
- {
- GH_USB_PHY_UTMI_REG_04_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_04);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_04_xtal12_en] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_04,value);
- #endif
- return tmp_value.bitc.xtal12_en;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_04_clk_ctl_override(U8 data)
- {
- GH_USB_PHY_UTMI_REG_04_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_04;
- d.bitc.clk_ctl_override = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_04 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_04_clk_ctl_override] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_04,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_04_clk_ctl_override(void)
- {
- GH_USB_PHY_UTMI_REG_04_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_04);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_04_clk_ctl_override] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_04,value);
- #endif
- return tmp_value.bitc.clk_ctl_override;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_04_force_pll_on(U8 data)
- {
- GH_USB_PHY_UTMI_REG_04_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_04;
- d.bitc.force_pll_on = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_04 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_04_force_pll_on] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_04,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_04_force_pll_on(void)
- {
- GH_USB_PHY_UTMI_REG_04_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_04);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_04_force_pll_on] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_04,value);
- #endif
- return tmp_value.bitc.force_pll_on;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_04_ck214_syn_en(U8 data)
- {
- GH_USB_PHY_UTMI_REG_04_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_04;
- d.bitc.ck214_syn_en = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_04 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_04_ck214_syn_en] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_04,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_04_ck214_syn_en(void)
- {
- GH_USB_PHY_UTMI_REG_04_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_04);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_04_ck214_syn_en] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_04,value);
- #endif
- return tmp_value.bitc.ck214_syn_en;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_04_clk_274_en(U8 data)
- {
- GH_USB_PHY_UTMI_REG_04_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_04;
- d.bitc.clk_274_en = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_04 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_04_clk_274_en] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_04,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_04_clk_274_en(void)
- {
- GH_USB_PHY_UTMI_REG_04_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_04);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_04_clk_274_en] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_04,value);
- #endif
- return tmp_value.bitc.clk_274_en;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_04_hs_rx_roboust_en(U8 data)
- {
- GH_USB_PHY_UTMI_REG_04_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_04;
- d.bitc.hs_rx_roboust_en = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_04 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- 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",
- REG_USB_PHY_UTMI_REG_04,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_04_hs_rx_roboust_en(void)
- {
- GH_USB_PHY_UTMI_REG_04_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_04);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_04_hs_rx_roboust_en] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_04,value);
- #endif
- return tmp_value.bitc.hs_rx_roboust_en;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register USB_PHY_UTMI_REG_05 (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'USB_PHY_UTMI_REG_05'. */
- void GH_USB_PHY_set_UTMI_REG_05(U16 data);
- /*! \brief Reads the register 'USB_PHY_UTMI_REG_05'. */
- U16 GH_USB_PHY_get_UTMI_REG_05(void);
- /*! \brief Writes the bit group 'utmi_clk_inv' of register 'USB_PHY_UTMI_REG_05'. */
- void GH_USB_PHY_set_UTMI_REG_05_utmi_clk_inv(U8 data);
- /*! \brief Reads the bit group 'utmi_clk_inv' of register 'USB_PHY_UTMI_REG_05'. */
- U8 GH_USB_PHY_get_UTMI_REG_05_utmi_clk_inv(void);
- /*! \brief Writes the bit group 'utmi_clk120_inv' of register 'USB_PHY_UTMI_REG_05'. */
- void GH_USB_PHY_set_UTMI_REG_05_utmi_clk120_inv(U8 data);
- /*! \brief Reads the bit group 'utmi_clk120_inv' of register 'USB_PHY_UTMI_REG_05'. */
- U8 GH_USB_PHY_get_UTMI_REG_05_utmi_clk120_inv(void);
- /*! \brief Writes the bit group 'dummy1' of register 'USB_PHY_UTMI_REG_05'. */
- void GH_USB_PHY_set_UTMI_REG_05_dummy1(U8 data);
- /*! \brief Reads the bit group 'dummy1' of register 'USB_PHY_UTMI_REG_05'. */
- U8 GH_USB_PHY_get_UTMI_REG_05_dummy1(void);
- /*! \brief Writes the bit group 'clktest_inv' of register 'USB_PHY_UTMI_REG_05'. */
- void GH_USB_PHY_set_UTMI_REG_05_clktest_inv(U8 data);
- /*! \brief Reads the bit group 'clktest_inv' of register 'USB_PHY_UTMI_REG_05'. */
- U8 GH_USB_PHY_get_UTMI_REG_05_clktest_inv(void);
- /*! \brief Writes the bit group 'clk_extra_0_inv' of register 'USB_PHY_UTMI_REG_05'. */
- void GH_USB_PHY_set_UTMI_REG_05_clk_extra_0_inv(U8 data);
- /*! \brief Reads the bit group 'clk_extra_0_inv' of register 'USB_PHY_UTMI_REG_05'. */
- U8 GH_USB_PHY_get_UTMI_REG_05_clk_extra_0_inv(void);
- /*! \brief Writes the bit group 'clk_extra_1_inv' of register 'USB_PHY_UTMI_REG_05'. */
- void GH_USB_PHY_set_UTMI_REG_05_clk_extra_1_inv(U8 data);
- /*! \brief Reads the bit group 'clk_extra_1_inv' of register 'USB_PHY_UTMI_REG_05'. */
- U8 GH_USB_PHY_get_UTMI_REG_05_clk_extra_1_inv(void);
- /*! \brief Writes the bit group 'ck_inv_reserved' of register 'USB_PHY_UTMI_REG_05'. */
- void GH_USB_PHY_set_UTMI_REG_05_ck_inv_reserved(U8 data);
- /*! \brief Reads the bit group 'ck_inv_reserved' of register 'USB_PHY_UTMI_REG_05'. */
- U8 GH_USB_PHY_get_UTMI_REG_05_ck_inv_reserved(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_05(U16 data)
- {
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_05 = data;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_05] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_05,data,data);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_UTMI_REG_05(void)
- {
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_05);
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_05] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_05,value);
- #endif
- return value;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_05_utmi_clk_inv(U8 data)
- {
- GH_USB_PHY_UTMI_REG_05_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_05;
- d.bitc.utmi_clk_inv = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_05 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_05_utmi_clk_inv] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_05,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_05_utmi_clk_inv(void)
- {
- GH_USB_PHY_UTMI_REG_05_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_05);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_05_utmi_clk_inv] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_05,value);
- #endif
- return tmp_value.bitc.utmi_clk_inv;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_05_utmi_clk120_inv(U8 data)
- {
- GH_USB_PHY_UTMI_REG_05_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_05;
- d.bitc.utmi_clk120_inv = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_05 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_05_utmi_clk120_inv] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_05,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_05_utmi_clk120_inv(void)
- {
- GH_USB_PHY_UTMI_REG_05_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_05);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_05_utmi_clk120_inv] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_05,value);
- #endif
- return tmp_value.bitc.utmi_clk120_inv;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_05_dummy1(U8 data)
- {
- GH_USB_PHY_UTMI_REG_05_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_05;
- d.bitc.dummy1 = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_05 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_05_dummy1] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_05,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_05_dummy1(void)
- {
- GH_USB_PHY_UTMI_REG_05_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_05);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_05_dummy1] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_05,value);
- #endif
- return tmp_value.bitc.dummy1;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_05_clktest_inv(U8 data)
- {
- GH_USB_PHY_UTMI_REG_05_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_05;
- d.bitc.clktest_inv = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_05 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_05_clktest_inv] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_05,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_05_clktest_inv(void)
- {
- GH_USB_PHY_UTMI_REG_05_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_05);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_05_clktest_inv] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_05,value);
- #endif
- return tmp_value.bitc.clktest_inv;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_05_clk_extra_0_inv(U8 data)
- {
- GH_USB_PHY_UTMI_REG_05_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_05;
- d.bitc.clk_extra_0_inv = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_05 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- 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",
- REG_USB_PHY_UTMI_REG_05,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_05_clk_extra_0_inv(void)
- {
- GH_USB_PHY_UTMI_REG_05_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_05);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_05_clk_extra_0_inv] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_05,value);
- #endif
- return tmp_value.bitc.clk_extra_0_inv;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_05_clk_extra_1_inv(U8 data)
- {
- GH_USB_PHY_UTMI_REG_05_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_05;
- d.bitc.clk_extra_1_inv = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_05 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- 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",
- REG_USB_PHY_UTMI_REG_05,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_05_clk_extra_1_inv(void)
- {
- GH_USB_PHY_UTMI_REG_05_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_05);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_05_clk_extra_1_inv] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_05,value);
- #endif
- return tmp_value.bitc.clk_extra_1_inv;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_05_ck_inv_reserved(U8 data)
- {
- GH_USB_PHY_UTMI_REG_05_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_05;
- d.bitc.ck_inv_reserved = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_05 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_05_ck_inv_reserved] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_05,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_05_ck_inv_reserved(void)
- {
- GH_USB_PHY_UTMI_REG_05_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_05);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_05_ck_inv_reserved] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_05,value);
- #endif
- return tmp_value.bitc.ck_inv_reserved;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register USB_PHY_UTMI_REG_06 (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'USB_PHY_UTMI_REG_06'. */
- void GH_USB_PHY_set_UTMI_REG_06(U16 data);
- /*! \brief Reads the register 'USB_PHY_UTMI_REG_06'. */
- U16 GH_USB_PHY_get_UTMI_REG_06(void);
- /*! \brief Writes the bit group 'test_clock_select' of register 'USB_PHY_UTMI_REG_06'. */
- void GH_USB_PHY_set_UTMI_REG_06_test_clock_select(U8 data);
- /*! \brief Reads the bit group 'test_clock_select' of register 'USB_PHY_UTMI_REG_06'. */
- U8 GH_USB_PHY_get_UTMI_REG_06_test_clock_select(void);
- /*! \brief Writes the bit group 'mac_clk_sel' of register 'USB_PHY_UTMI_REG_06'. */
- void GH_USB_PHY_set_UTMI_REG_06_mac_clk_sel(U8 data);
- /*! \brief Reads the bit group 'mac_clk_sel' of register 'USB_PHY_UTMI_REG_06'. */
- U8 GH_USB_PHY_get_UTMI_REG_06_mac_clk_sel(void);
- /*! \brief Writes the bit group 'double_data_rate' of register 'USB_PHY_UTMI_REG_06'. */
- void GH_USB_PHY_set_UTMI_REG_06_double_data_rate(U8 data);
- /*! \brief Reads the bit group 'double_data_rate' of register 'USB_PHY_UTMI_REG_06'. */
- U8 GH_USB_PHY_get_UTMI_REG_06_double_data_rate(void);
- /*! \brief Writes the bit group 'clk_extra0_div_select' of register 'USB_PHY_UTMI_REG_06'. */
- void GH_USB_PHY_set_UTMI_REG_06_clk_extra0_div_select(U8 data);
- /*! \brief Reads the bit group 'clk_extra0_div_select' of register 'USB_PHY_UTMI_REG_06'. */
- U8 GH_USB_PHY_get_UTMI_REG_06_clk_extra0_div_select(void);
- /*! \brief Writes the bit group 'clk_extra1_div_select' of register 'USB_PHY_UTMI_REG_06'. */
- void GH_USB_PHY_set_UTMI_REG_06_clk_extra1_div_select(U8 data);
- /*! \brief Reads the bit group 'clk_extra1_div_select' of register 'USB_PHY_UTMI_REG_06'. */
- U8 GH_USB_PHY_get_UTMI_REG_06_clk_extra1_div_select(void);
- /*! \brief Writes the bit group 'utmi_ck_en_sel' of register 'USB_PHY_UTMI_REG_06'. */
- void GH_USB_PHY_set_UTMI_REG_06_utmi_ck_en_sel(U8 data);
- /*! \brief Reads the bit group 'utmi_ck_en_sel' of register 'USB_PHY_UTMI_REG_06'. */
- U8 GH_USB_PHY_get_UTMI_REG_06_utmi_ck_en_sel(void);
- /*! \brief Writes the bit group 'utmi_ckinv_en_sel' of register 'USB_PHY_UTMI_REG_06'. */
- void GH_USB_PHY_set_UTMI_REG_06_utmi_ckinv_en_sel(U8 data);
- /*! \brief Reads the bit group 'utmi_ckinv_en_sel' of register 'USB_PHY_UTMI_REG_06'. */
- U8 GH_USB_PHY_get_UTMI_REG_06_utmi_ckinv_en_sel(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_06(U16 data)
- {
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_06 = data;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_06] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_06,data,data);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_UTMI_REG_06(void)
- {
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_06);
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_06] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_06,value);
- #endif
- return value;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_06_test_clock_select(U8 data)
- {
- GH_USB_PHY_UTMI_REG_06_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_06;
- d.bitc.test_clock_select = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_06 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_06_test_clock_select] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_06,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_06_test_clock_select(void)
- {
- GH_USB_PHY_UTMI_REG_06_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_06);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_06_test_clock_select] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_06,value);
- #endif
- return tmp_value.bitc.test_clock_select;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_06_mac_clk_sel(U8 data)
- {
- GH_USB_PHY_UTMI_REG_06_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_06;
- d.bitc.mac_clk_sel = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_06 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_06_mac_clk_sel] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_06,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_06_mac_clk_sel(void)
- {
- GH_USB_PHY_UTMI_REG_06_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_06);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_06_mac_clk_sel] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_06,value);
- #endif
- return tmp_value.bitc.mac_clk_sel;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_06_double_data_rate(U8 data)
- {
- GH_USB_PHY_UTMI_REG_06_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_06;
- d.bitc.double_data_rate = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_06 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_06_double_data_rate] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_06,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_06_double_data_rate(void)
- {
- GH_USB_PHY_UTMI_REG_06_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_06);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_06_double_data_rate] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_06,value);
- #endif
- return tmp_value.bitc.double_data_rate;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_06_clk_extra0_div_select(U8 data)
- {
- GH_USB_PHY_UTMI_REG_06_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_06;
- d.bitc.clk_extra0_div_select = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_06 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- 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",
- REG_USB_PHY_UTMI_REG_06,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_06_clk_extra0_div_select(void)
- {
- GH_USB_PHY_UTMI_REG_06_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_06);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_06_clk_extra0_div_select] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_06,value);
- #endif
- return tmp_value.bitc.clk_extra0_div_select;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_06_clk_extra1_div_select(U8 data)
- {
- GH_USB_PHY_UTMI_REG_06_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_06;
- d.bitc.clk_extra1_div_select = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_06 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- 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",
- REG_USB_PHY_UTMI_REG_06,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_06_clk_extra1_div_select(void)
- {
- GH_USB_PHY_UTMI_REG_06_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_06);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_06_clk_extra1_div_select] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_06,value);
- #endif
- return tmp_value.bitc.clk_extra1_div_select;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_06_utmi_ck_en_sel(U8 data)
- {
- GH_USB_PHY_UTMI_REG_06_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_06;
- d.bitc.utmi_ck_en_sel = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_06 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- 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",
- REG_USB_PHY_UTMI_REG_06,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_06_utmi_ck_en_sel(void)
- {
- GH_USB_PHY_UTMI_REG_06_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_06);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_06_utmi_ck_en_sel] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_06,value);
- #endif
- return tmp_value.bitc.utmi_ck_en_sel;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_06_utmi_ckinv_en_sel(U8 data)
- {
- GH_USB_PHY_UTMI_REG_06_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_06;
- d.bitc.utmi_ckinv_en_sel = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_06 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- 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",
- REG_USB_PHY_UTMI_REG_06,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_06_utmi_ckinv_en_sel(void)
- {
- GH_USB_PHY_UTMI_REG_06_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_06);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_06_utmi_ckinv_en_sel] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_06,value);
- #endif
- return tmp_value.bitc.utmi_ckinv_en_sel;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register USB_PHY_UTMI_STATUS (read) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Reads the register 'USB_PHY_UTMI_STATUS'. */
- U16 GH_USB_PHY_get_UTMI_STATUS(void);
- /*! \brief Reads the bit group 'elasticity_error' of register 'USB_PHY_UTMI_STATUS'. */
- U8 GH_USB_PHY_get_UTMI_STATUS_elasticity_error(void);
- /*! \brief Reads the bit group 'Sync_pattern_error' of register 'USB_PHY_UTMI_STATUS'. */
- U8 GH_USB_PHY_get_UTMI_STATUS_Sync_pattern_error(void);
- /*! \brief Reads the bit group 'EOP_error' of register 'USB_PHY_UTMI_STATUS'. */
- U8 GH_USB_PHY_get_UTMI_STATUS_EOP_error(void);
- /*! \brief Reads the bit group 'bit_stuffer_error' of register 'USB_PHY_UTMI_STATUS'. */
- U8 GH_USB_PHY_get_UTMI_STATUS_bit_stuffer_error(void);
- /*! \brief Reads the bit group 'elasticity_underflow' of register 'USB_PHY_UTMI_STATUS'. */
- U8 GH_USB_PHY_get_UTMI_STATUS_elasticity_underflow(void);
- /*! \brief Reads the bit group 'overflow' of register 'USB_PHY_UTMI_STATUS'. */
- U8 GH_USB_PHY_get_UTMI_STATUS_overflow(void);
- /*! \brief Reads the bit group 'clock_ready' of register 'USB_PHY_UTMI_STATUS'. */
- U8 GH_USB_PHY_get_UTMI_STATUS_clock_ready(void);
- /*! \brief Reads the bit group 'interrupt' of register 'USB_PHY_UTMI_STATUS'. */
- U8 GH_USB_PHY_get_UTMI_STATUS_interrupt(void);
- /*! \brief Reads the bit group 'device' of register 'USB_PHY_UTMI_STATUS'. */
- U8 GH_USB_PHY_get_UTMI_STATUS_device(void);
- /*! \brief Reads the bit group 'host' of register 'USB_PHY_UTMI_STATUS'. */
- U8 GH_USB_PHY_get_UTMI_STATUS_host(void);
- /*! \brief Reads the bit group 'Disconnect' of register 'USB_PHY_UTMI_STATUS'. */
- U8 GH_USB_PHY_get_UTMI_STATUS_Disconnect(void);
- /*! \brief Reads the bit group 'TX_FSM' of register 'USB_PHY_UTMI_STATUS'. */
- U8 GH_USB_PHY_get_UTMI_STATUS_TX_FSM(void);
- /*! \brief Reads the bit group 'RX_FSM' of register 'USB_PHY_UTMI_STATUS'. */
- U8 GH_USB_PHY_get_UTMI_STATUS_RX_FSM(void);
- /*! \brief Reads the bit group 'low_speed' of register 'USB_PHY_UTMI_STATUS'. */
- U8 GH_USB_PHY_get_UTMI_STATUS_low_speed(void);
- /*! \brief Reads the bit group 'full_speed' of register 'USB_PHY_UTMI_STATUS'. */
- U8 GH_USB_PHY_get_UTMI_STATUS_full_speed(void);
- /*! \brief Reads the bit group 'Hign_speed' of register 'USB_PHY_UTMI_STATUS'. */
- U8 GH_USB_PHY_get_UTMI_STATUS_Hign_speed(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE U16 GH_USB_PHY_get_UTMI_STATUS(void)
- {
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS] --> 0x%08x\n",
- REG_USB_PHY_UTMI_STATUS,value);
- #endif
- return value;
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_STATUS_elasticity_error(void)
- {
- GH_USB_PHY_UTMI_STATUS_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS_elasticity_error] --> 0x%08x\n",
- REG_USB_PHY_UTMI_STATUS,value);
- #endif
- return tmp_value.bitc.elasticity_error;
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_STATUS_Sync_pattern_error(void)
- {
- GH_USB_PHY_UTMI_STATUS_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS_Sync_pattern_error] --> 0x%08x\n",
- REG_USB_PHY_UTMI_STATUS,value);
- #endif
- return tmp_value.bitc.sync_pattern_error;
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_STATUS_EOP_error(void)
- {
- GH_USB_PHY_UTMI_STATUS_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS_EOP_error] --> 0x%08x\n",
- REG_USB_PHY_UTMI_STATUS,value);
- #endif
- return tmp_value.bitc.eop_error;
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_STATUS_bit_stuffer_error(void)
- {
- GH_USB_PHY_UTMI_STATUS_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS_bit_stuffer_error] --> 0x%08x\n",
- REG_USB_PHY_UTMI_STATUS,value);
- #endif
- return tmp_value.bitc.bit_stuffer_error;
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_STATUS_elasticity_underflow(void)
- {
- GH_USB_PHY_UTMI_STATUS_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS_elasticity_underflow] --> 0x%08x\n",
- REG_USB_PHY_UTMI_STATUS,value);
- #endif
- return tmp_value.bitc.elasticity_underflow;
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_STATUS_overflow(void)
- {
- GH_USB_PHY_UTMI_STATUS_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS_overflow] --> 0x%08x\n",
- REG_USB_PHY_UTMI_STATUS,value);
- #endif
- return tmp_value.bitc.overflow;
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_STATUS_clock_ready(void)
- {
- GH_USB_PHY_UTMI_STATUS_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS_clock_ready] --> 0x%08x\n",
- REG_USB_PHY_UTMI_STATUS,value);
- #endif
- return tmp_value.bitc.clock_ready;
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_STATUS_interrupt(void)
- {
- GH_USB_PHY_UTMI_STATUS_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS_interrupt] --> 0x%08x\n",
- REG_USB_PHY_UTMI_STATUS,value);
- #endif
- return tmp_value.bitc.interrupt;
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_STATUS_device(void)
- {
- GH_USB_PHY_UTMI_STATUS_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS_device] --> 0x%08x\n",
- REG_USB_PHY_UTMI_STATUS,value);
- #endif
- return tmp_value.bitc.device;
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_STATUS_host(void)
- {
- GH_USB_PHY_UTMI_STATUS_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS_host] --> 0x%08x\n",
- REG_USB_PHY_UTMI_STATUS,value);
- #endif
- return tmp_value.bitc.host;
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_STATUS_Disconnect(void)
- {
- GH_USB_PHY_UTMI_STATUS_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS_Disconnect] --> 0x%08x\n",
- REG_USB_PHY_UTMI_STATUS,value);
- #endif
- return tmp_value.bitc.disconnect;
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_STATUS_TX_FSM(void)
- {
- GH_USB_PHY_UTMI_STATUS_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS_TX_FSM] --> 0x%08x\n",
- REG_USB_PHY_UTMI_STATUS,value);
- #endif
- return tmp_value.bitc.tx_fsm;
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_STATUS_RX_FSM(void)
- {
- GH_USB_PHY_UTMI_STATUS_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS_RX_FSM] --> 0x%08x\n",
- REG_USB_PHY_UTMI_STATUS,value);
- #endif
- return tmp_value.bitc.rx_fsm;
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_STATUS_low_speed(void)
- {
- GH_USB_PHY_UTMI_STATUS_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS_low_speed] --> 0x%08x\n",
- REG_USB_PHY_UTMI_STATUS,value);
- #endif
- return tmp_value.bitc.low_speed;
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_STATUS_full_speed(void)
- {
- GH_USB_PHY_UTMI_STATUS_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS_full_speed] --> 0x%08x\n",
- REG_USB_PHY_UTMI_STATUS,value);
- #endif
- return tmp_value.bitc.full_speed;
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_STATUS_Hign_speed(void)
- {
- GH_USB_PHY_UTMI_STATUS_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_STATUS);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_STATUS_Hign_speed] --> 0x%08x\n",
- REG_USB_PHY_UTMI_STATUS,value);
- #endif
- return tmp_value.bitc.hign_speed;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register USB_PHY_UTMI_REG_08 (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'USB_PHY_UTMI_REG_08'. */
- void GH_USB_PHY_set_UTMI_REG_08(U16 data);
- /*! \brief Reads the register 'USB_PHY_UTMI_REG_08'. */
- U16 GH_USB_PHY_get_UTMI_REG_08(void);
- /*! \brief Writes the bit group 'test_bus_select' of register 'USB_PHY_UTMI_REG_08'. */
- void GH_USB_PHY_set_UTMI_REG_08_test_bus_select(U8 data);
- /*! \brief Reads the bit group 'test_bus_select' of register 'USB_PHY_UTMI_REG_08'. */
- U8 GH_USB_PHY_get_UTMI_REG_08_test_bus_select(void);
- /*! \brief Writes the bit group 'force_rx_nonbusy' of register 'USB_PHY_UTMI_REG_08'. */
- void GH_USB_PHY_set_UTMI_REG_08_force_rx_nonbusy(U8 data);
- /*! \brief Reads the bit group 'force_rx_nonbusy' of register 'USB_PHY_UTMI_REG_08'. */
- U8 GH_USB_PHY_get_UTMI_REG_08_force_rx_nonbusy(void);
- /*! \brief Writes the bit group 'force_tx_nonbusy' of register 'USB_PHY_UTMI_REG_08'. */
- void GH_USB_PHY_set_UTMI_REG_08_force_tx_nonbusy(U8 data);
- /*! \brief Reads the bit group 'force_tx_nonbusy' of register 'USB_PHY_UTMI_REG_08'. */
- U8 GH_USB_PHY_get_UTMI_REG_08_force_tx_nonbusy(void);
- /*! \brief Writes the bit group 'utmi_int_clr' of register 'USB_PHY_UTMI_REG_08'. */
- void GH_USB_PHY_set_UTMI_REG_08_utmi_int_clr(U8 data);
- /*! \brief Reads the bit group 'utmi_int_clr' of register 'USB_PHY_UTMI_REG_08'. */
- U8 GH_USB_PHY_get_UTMI_REG_08_utmi_int_clr(void);
- /*! \brief Writes the bit group 'se0_set' of register 'USB_PHY_UTMI_REG_08'. */
- void GH_USB_PHY_set_UTMI_REG_08_se0_set(U8 data);
- /*! \brief Reads the bit group 'se0_set' of register 'USB_PHY_UTMI_REG_08'. */
- U8 GH_USB_PHY_get_UTMI_REG_08_se0_set(void);
- /*! \brief Writes the bit group 'tx_data' of register 'USB_PHY_UTMI_REG_08'. */
- void GH_USB_PHY_set_UTMI_REG_08_tx_data(U8 data);
- /*! \brief Reads the bit group 'tx_data' of register 'USB_PHY_UTMI_REG_08'. */
- U8 GH_USB_PHY_get_UTMI_REG_08_tx_data(void);
- /*! \brief Writes the bit group 'tx_en' of register 'USB_PHY_UTMI_REG_08'. */
- void GH_USB_PHY_set_UTMI_REG_08_tx_en(U8 data);
- /*! \brief Reads the bit group 'tx_en' of register 'USB_PHY_UTMI_REG_08'. */
- U8 GH_USB_PHY_get_UTMI_REG_08_tx_en(void);
- /*! \brief Writes the bit group 'tx_se0' of register 'USB_PHY_UTMI_REG_08'. */
- void GH_USB_PHY_set_UTMI_REG_08_tx_se0(U8 data);
- /*! \brief Reads the bit group 'tx_se0' of register 'USB_PHY_UTMI_REG_08'. */
- U8 GH_USB_PHY_get_UTMI_REG_08_tx_se0(void);
- /*! \brief Writes the bit group 'tx_override' of register 'USB_PHY_UTMI_REG_08'. */
- void GH_USB_PHY_set_UTMI_REG_08_tx_override(U8 data);
- /*! \brief Reads the bit group 'tx_override' of register 'USB_PHY_UTMI_REG_08'. */
- U8 GH_USB_PHY_get_UTMI_REG_08_tx_override(void);
- /*! \brief Writes the bit group 'power_good_rst' of register 'USB_PHY_UTMI_REG_08'. */
- void GH_USB_PHY_set_UTMI_REG_08_power_good_rst(U8 data);
- /*! \brief Reads the bit group 'power_good_rst' of register 'USB_PHY_UTMI_REG_08'. */
- U8 GH_USB_PHY_get_UTMI_REG_08_power_good_rst(void);
- /*! \brief Writes the bit group 'phy_mode_enable' of register 'USB_PHY_UTMI_REG_08'. */
- void GH_USB_PHY_set_UTMI_REG_08_phy_mode_enable(U8 data);
- /*! \brief Reads the bit group 'phy_mode_enable' of register 'USB_PHY_UTMI_REG_08'. */
- U8 GH_USB_PHY_get_UTMI_REG_08_phy_mode_enable(void);
- /*! \brief Writes the bit group 'error_flag_clr' of register 'USB_PHY_UTMI_REG_08'. */
- void GH_USB_PHY_set_UTMI_REG_08_error_flag_clr(U8 data);
- /*! \brief Reads the bit group 'error_flag_clr' of register 'USB_PHY_UTMI_REG_08'. */
- U8 GH_USB_PHY_get_UTMI_REG_08_error_flag_clr(void);
- /*! \brief Writes the bit group 'hd_tx_override' of register 'USB_PHY_UTMI_REG_08'. */
- void GH_USB_PHY_set_UTMI_REG_08_hd_tx_override(U8 data);
- /*! \brief Reads the bit group 'hd_tx_override' of register 'USB_PHY_UTMI_REG_08'. */
- U8 GH_USB_PHY_get_UTMI_REG_08_hd_tx_override(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_08(U16 data)
- {
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_08 = data;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_08] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_08,data,data);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_UTMI_REG_08(void)
- {
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_08);
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_08] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_08,value);
- #endif
- return value;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_08_test_bus_select(U8 data)
- {
- GH_USB_PHY_UTMI_REG_08_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_08;
- d.bitc.test_bus_select = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_08 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_08_test_bus_select] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_08,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_08_test_bus_select(void)
- {
- GH_USB_PHY_UTMI_REG_08_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_08);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_08_test_bus_select] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_08,value);
- #endif
- return tmp_value.bitc.test_bus_select;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_08_force_rx_nonbusy(U8 data)
- {
- GH_USB_PHY_UTMI_REG_08_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_08;
- d.bitc.force_rx_nonbusy = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_08 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_08_force_rx_nonbusy] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_08,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_08_force_rx_nonbusy(void)
- {
- GH_USB_PHY_UTMI_REG_08_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_08);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_08_force_rx_nonbusy] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_08,value);
- #endif
- return tmp_value.bitc.force_rx_nonbusy;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_08_force_tx_nonbusy(U8 data)
- {
- GH_USB_PHY_UTMI_REG_08_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_08;
- d.bitc.force_tx_nonbusy = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_08 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_08_force_tx_nonbusy] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_08,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_08_force_tx_nonbusy(void)
- {
- GH_USB_PHY_UTMI_REG_08_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_08);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_08_force_tx_nonbusy] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_08,value);
- #endif
- return tmp_value.bitc.force_tx_nonbusy;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_08_utmi_int_clr(U8 data)
- {
- GH_USB_PHY_UTMI_REG_08_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_08;
- d.bitc.utmi_int_clr = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_08 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_08_utmi_int_clr] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_08,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_08_utmi_int_clr(void)
- {
- GH_USB_PHY_UTMI_REG_08_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_08);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_08_utmi_int_clr] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_08,value);
- #endif
- return tmp_value.bitc.utmi_int_clr;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_08_se0_set(U8 data)
- {
- GH_USB_PHY_UTMI_REG_08_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_08;
- d.bitc.se0_set = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_08 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_08_se0_set] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_08,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_08_se0_set(void)
- {
- GH_USB_PHY_UTMI_REG_08_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_08);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_08_se0_set] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_08,value);
- #endif
- return tmp_value.bitc.se0_set;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_08_tx_data(U8 data)
- {
- GH_USB_PHY_UTMI_REG_08_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_08;
- d.bitc.tx_data = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_08 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_08_tx_data] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_08,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_08_tx_data(void)
- {
- GH_USB_PHY_UTMI_REG_08_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_08);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_08_tx_data] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_08,value);
- #endif
- return tmp_value.bitc.tx_data;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_08_tx_en(U8 data)
- {
- GH_USB_PHY_UTMI_REG_08_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_08;
- d.bitc.tx_en = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_08 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_08_tx_en] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_08,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_08_tx_en(void)
- {
- GH_USB_PHY_UTMI_REG_08_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_08);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_08_tx_en] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_08,value);
- #endif
- return tmp_value.bitc.tx_en;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_08_tx_se0(U8 data)
- {
- GH_USB_PHY_UTMI_REG_08_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_08;
- d.bitc.tx_se0 = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_08 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_08_tx_se0] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_08,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_08_tx_se0(void)
- {
- GH_USB_PHY_UTMI_REG_08_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_08);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_08_tx_se0] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_08,value);
- #endif
- return tmp_value.bitc.tx_se0;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_08_tx_override(U8 data)
- {
- GH_USB_PHY_UTMI_REG_08_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_08;
- d.bitc.tx_override = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_08 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_08_tx_override] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_08,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_08_tx_override(void)
- {
- GH_USB_PHY_UTMI_REG_08_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_08);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_08_tx_override] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_08,value);
- #endif
- return tmp_value.bitc.tx_override;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_08_power_good_rst(U8 data)
- {
- GH_USB_PHY_UTMI_REG_08_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_08;
- d.bitc.power_good_rst = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_08 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_08_power_good_rst] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_08,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_08_power_good_rst(void)
- {
- GH_USB_PHY_UTMI_REG_08_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_08);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_08_power_good_rst] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_08,value);
- #endif
- return tmp_value.bitc.power_good_rst;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_08_phy_mode_enable(U8 data)
- {
- GH_USB_PHY_UTMI_REG_08_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_08;
- d.bitc.phy_mode_enable = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_08 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_08_phy_mode_enable] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_08,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_08_phy_mode_enable(void)
- {
- GH_USB_PHY_UTMI_REG_08_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_08);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_08_phy_mode_enable] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_08,value);
- #endif
- return tmp_value.bitc.phy_mode_enable;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_08_error_flag_clr(U8 data)
- {
- GH_USB_PHY_UTMI_REG_08_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_08;
- d.bitc.error_flag_clr = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_08 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_08_error_flag_clr] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_08,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_08_error_flag_clr(void)
- {
- GH_USB_PHY_UTMI_REG_08_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_08);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_08_error_flag_clr] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_08,value);
- #endif
- return tmp_value.bitc.error_flag_clr;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_08_hd_tx_override(U8 data)
- {
- GH_USB_PHY_UTMI_REG_08_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_08;
- d.bitc.hd_tx_override = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_08 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_08_hd_tx_override] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_08,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_08_hd_tx_override(void)
- {
- GH_USB_PHY_UTMI_REG_08_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_08);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_08_hd_tx_override] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_08,value);
- #endif
- return tmp_value.bitc.hd_tx_override;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register USB_PHY_UTMI_REG_09 (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'USB_PHY_UTMI_REG_09'. */
- void GH_USB_PHY_set_UTMI_REG_09(U16 data);
- /*! \brief Reads the register 'USB_PHY_UTMI_REG_09'. */
- U16 GH_USB_PHY_get_UTMI_REG_09(void);
- /*! \brief Writes the bit group 'deglitch_prd' of register 'USB_PHY_UTMI_REG_09'. */
- void GH_USB_PHY_set_UTMI_REG_09_deglitch_prd(U8 data);
- /*! \brief Reads the bit group 'deglitch_prd' of register 'USB_PHY_UTMI_REG_09'. */
- U8 GH_USB_PHY_get_UTMI_REG_09_deglitch_prd(void);
- /*! \brief Writes the bit group 'vdd2low_rst_enz' of register 'USB_PHY_UTMI_REG_09'. */
- void GH_USB_PHY_set_UTMI_REG_09_vdd2low_rst_enz(U8 data);
- /*! \brief Reads the bit group 'vdd2low_rst_enz' of register 'USB_PHY_UTMI_REG_09'. */
- U8 GH_USB_PHY_get_UTMI_REG_09_vdd2low_rst_enz(void);
- /*! \brief Writes the bit group 'deglitch_enz' of register 'USB_PHY_UTMI_REG_09'. */
- void GH_USB_PHY_set_UTMI_REG_09_deglitch_enz(U8 data);
- /*! \brief Reads the bit group 'deglitch_enz' of register 'USB_PHY_UTMI_REG_09'. */
- U8 GH_USB_PHY_get_UTMI_REG_09_deglitch_enz(void);
- /*! \brief Writes the bit group 'usbsyn_rst' of register 'USB_PHY_UTMI_REG_09'. */
- void GH_USB_PHY_set_UTMI_REG_09_usbsyn_rst(U8 data);
- /*! \brief Reads the bit group 'usbsyn_rst' of register 'USB_PHY_UTMI_REG_09'. */
- U8 GH_USB_PHY_get_UTMI_REG_09_usbsyn_rst(void);
- /*! \brief Writes the bit group 'reg_test' of register 'USB_PHY_UTMI_REG_09'. */
- void GH_USB_PHY_set_UTMI_REG_09_reg_test(U8 data);
- /*! \brief Reads the bit group 'reg_test' of register 'USB_PHY_UTMI_REG_09'. */
- U8 GH_USB_PHY_get_UTMI_REG_09_reg_test(void);
- /*! \brief Writes the bit group 'ib_rterm_test' of register 'USB_PHY_UTMI_REG_09'. */
- void GH_USB_PHY_set_UTMI_REG_09_ib_rterm_test(U8 data);
- /*! \brief Reads the bit group 'ib_rterm_test' of register 'USB_PHY_UTMI_REG_09'. */
- U8 GH_USB_PHY_get_UTMI_REG_09_ib_rterm_test(void);
- /*! \brief Writes the bit group 'test_p1' of register 'USB_PHY_UTMI_REG_09'. */
- void GH_USB_PHY_set_UTMI_REG_09_test_p1(U8 data);
- /*! \brief Reads the bit group 'test_p1' of register 'USB_PHY_UTMI_REG_09'. */
- U8 GH_USB_PHY_get_UTMI_REG_09_test_p1(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_09(U16 data)
- {
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_09 = data;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_09] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_09,data,data);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_UTMI_REG_09(void)
- {
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_09);
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_09] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_09,value);
- #endif
- return value;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_09_deglitch_prd(U8 data)
- {
- GH_USB_PHY_UTMI_REG_09_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_09;
- d.bitc.deglitch_prd = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_09 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_09_deglitch_prd] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_09,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_09_deglitch_prd(void)
- {
- GH_USB_PHY_UTMI_REG_09_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_09);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_09_deglitch_prd] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_09,value);
- #endif
- return tmp_value.bitc.deglitch_prd;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_09_vdd2low_rst_enz(U8 data)
- {
- GH_USB_PHY_UTMI_REG_09_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_09;
- d.bitc.vdd2low_rst_enz = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_09 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_09_vdd2low_rst_enz] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_09,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_09_vdd2low_rst_enz(void)
- {
- GH_USB_PHY_UTMI_REG_09_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_09);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_09_vdd2low_rst_enz] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_09,value);
- #endif
- return tmp_value.bitc.vdd2low_rst_enz;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_09_deglitch_enz(U8 data)
- {
- GH_USB_PHY_UTMI_REG_09_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_09;
- d.bitc.deglitch_enz = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_09 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_09_deglitch_enz] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_09,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_09_deglitch_enz(void)
- {
- GH_USB_PHY_UTMI_REG_09_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_09);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_09_deglitch_enz] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_09,value);
- #endif
- return tmp_value.bitc.deglitch_enz;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_09_usbsyn_rst(U8 data)
- {
- GH_USB_PHY_UTMI_REG_09_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_09;
- d.bitc.usbsyn_rst = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_09 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_09_usbsyn_rst] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_09,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_09_usbsyn_rst(void)
- {
- GH_USB_PHY_UTMI_REG_09_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_09);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_09_usbsyn_rst] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_09,value);
- #endif
- return tmp_value.bitc.usbsyn_rst;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_09_reg_test(U8 data)
- {
- GH_USB_PHY_UTMI_REG_09_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_09;
- d.bitc.reg_test = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_09 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_09_reg_test] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_09,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_09_reg_test(void)
- {
- GH_USB_PHY_UTMI_REG_09_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_09);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_09_reg_test] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_09,value);
- #endif
- return tmp_value.bitc.reg_test;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_09_ib_rterm_test(U8 data)
- {
- GH_USB_PHY_UTMI_REG_09_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_09;
- d.bitc.ib_rterm_test = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_09 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_09_ib_rterm_test] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_09,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_09_ib_rterm_test(void)
- {
- GH_USB_PHY_UTMI_REG_09_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_09);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_09_ib_rterm_test] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_09,value);
- #endif
- return tmp_value.bitc.ib_rterm_test;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_09_test_p1(U8 data)
- {
- GH_USB_PHY_UTMI_REG_09_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_09;
- d.bitc.test_p1 = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_09 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_09_test_p1] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_09,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_09_test_p1(void)
- {
- GH_USB_PHY_UTMI_REG_09_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_09);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_09_test_p1] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_09,value);
- #endif
- return tmp_value.bitc.test_p1;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register USB_PHY_UTMI_REG_0A (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'USB_PHY_UTMI_REG_0A'. */
- void GH_USB_PHY_set_UTMI_REG_0A(U16 data);
- /*! \brief Reads the register 'USB_PHY_UTMI_REG_0A'. */
- U16 GH_USB_PHY_get_UTMI_REG_0A(void);
- /*! \brief Writes the bit group 'vbusvalid' of register 'USB_PHY_UTMI_REG_0A'. */
- void GH_USB_PHY_set_UTMI_REG_0A_vbusvalid(U8 data);
- /*! \brief Reads the bit group 'vbusvalid' of register 'USB_PHY_UTMI_REG_0A'. */
- U8 GH_USB_PHY_get_UTMI_REG_0A_vbusvalid(void);
- /*! \brief Writes the bit group 'avalid' of register 'USB_PHY_UTMI_REG_0A'. */
- void GH_USB_PHY_set_UTMI_REG_0A_avalid(U8 data);
- /*! \brief Reads the bit group 'avalid' of register 'USB_PHY_UTMI_REG_0A'. */
- U8 GH_USB_PHY_get_UTMI_REG_0A_avalid(void);
- /*! \brief Writes the bit group 'sessend' of register 'USB_PHY_UTMI_REG_0A'. */
- void GH_USB_PHY_set_UTMI_REG_0A_sessend(U8 data);
- /*! \brief Reads the bit group 'sessend' of register 'USB_PHY_UTMI_REG_0A'. */
- U8 GH_USB_PHY_get_UTMI_REG_0A_sessend(void);
- /*! \brief Writes the bit group 'iddig' of register 'USB_PHY_UTMI_REG_0A'. */
- void GH_USB_PHY_set_UTMI_REG_0A_iddig(U8 data);
- /*! \brief Reads the bit group 'iddig' of register 'USB_PHY_UTMI_REG_0A'. */
- U8 GH_USB_PHY_get_UTMI_REG_0A_iddig(void);
- /*! \brief Writes the bit group 'opmode' of register 'USB_PHY_UTMI_REG_0A'. */
- void GH_USB_PHY_set_UTMI_REG_0A_opmode(U8 data);
- /*! \brief Reads the bit group 'opmode' of register 'USB_PHY_UTMI_REG_0A'. */
- U8 GH_USB_PHY_get_UTMI_REG_0A_opmode(void);
- /*! \brief Writes the bit group 'xcvrsel' of register 'USB_PHY_UTMI_REG_0A'. */
- void GH_USB_PHY_set_UTMI_REG_0A_xcvrsel(U8 data);
- /*! \brief Reads the bit group 'xcvrsel' of register 'USB_PHY_UTMI_REG_0A'. */
- U8 GH_USB_PHY_get_UTMI_REG_0A_xcvrsel(void);
- /*! \brief Writes the bit group 'termsel' of register 'USB_PHY_UTMI_REG_0A'. */
- void GH_USB_PHY_set_UTMI_REG_0A_termsel(U8 data);
- /*! \brief Reads the bit group 'termsel' of register 'USB_PHY_UTMI_REG_0A'. */
- U8 GH_USB_PHY_get_UTMI_REG_0A_termsel(void);
- /*! \brief Writes the bit group 'macmode_ovd' of register 'USB_PHY_UTMI_REG_0A'. */
- void GH_USB_PHY_set_UTMI_REG_0A_macmode_ovd(U8 data);
- /*! \brief Reads the bit group 'macmode_ovd' of register 'USB_PHY_UTMI_REG_0A'. */
- U8 GH_USB_PHY_get_UTMI_REG_0A_macmode_ovd(void);
- /*! \brief Writes the bit group 'suspendm' of register 'USB_PHY_UTMI_REG_0A'. */
- void GH_USB_PHY_set_UTMI_REG_0A_suspendm(U8 data);
- /*! \brief Reads the bit group 'suspendm' of register 'USB_PHY_UTMI_REG_0A'. */
- U8 GH_USB_PHY_get_UTMI_REG_0A_suspendm(void);
- /*! \brief Writes the bit group 'usb_bond_ovd' of register 'USB_PHY_UTMI_REG_0A'. */
- void GH_USB_PHY_set_UTMI_REG_0A_usb_bond_ovd(U8 data);
- /*! \brief Reads the bit group 'usb_bond_ovd' of register 'USB_PHY_UTMI_REG_0A'. */
- U8 GH_USB_PHY_get_UTMI_REG_0A_usb_bond_ovd(void);
- /*! \brief Writes the bit group 'usb_bond_set' of register 'USB_PHY_UTMI_REG_0A'. */
- void GH_USB_PHY_set_UTMI_REG_0A_usb_bond_set(U8 data);
- /*! \brief Reads the bit group 'usb_bond_set' of register 'USB_PHY_UTMI_REG_0A'. */
- U8 GH_USB_PHY_get_UTMI_REG_0A_usb_bond_set(void);
- /*! \brief Writes the bit group 'host_chirp_det' of register 'USB_PHY_UTMI_REG_0A'. */
- void GH_USB_PHY_set_UTMI_REG_0A_host_chirp_det(U8 data);
- /*! \brief Reads the bit group 'host_chirp_det' of register 'USB_PHY_UTMI_REG_0A'. */
- U8 GH_USB_PHY_get_UTMI_REG_0A_host_chirp_det(void);
- /*! \brief Writes the bit group 'hs_tx_ien_mask' of register 'USB_PHY_UTMI_REG_0A'. */
- void GH_USB_PHY_set_UTMI_REG_0A_hs_tx_ien_mask(U8 data);
- /*! \brief Reads the bit group 'hs_tx_ien_mask' of register 'USB_PHY_UTMI_REG_0A'. */
- U8 GH_USB_PHY_get_UTMI_REG_0A_hs_tx_ien_mask(void);
- /*! \brief Writes the bit group 'hs_tx_ien_mask_method' of register 'USB_PHY_UTMI_REG_0A'. */
- void GH_USB_PHY_set_UTMI_REG_0A_hs_tx_ien_mask_method(U8 data);
- /*! \brief Reads the bit group 'hs_tx_ien_mask_method' of register 'USB_PHY_UTMI_REG_0A'. */
- U8 GH_USB_PHY_get_UTMI_REG_0A_hs_tx_ien_mask_method(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_0A(U16 data)
- {
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A = data;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0A] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0A,data,data);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_UTMI_REG_0A(void)
- {
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0A);
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0A] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0A,value);
- #endif
- return value;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_0A_vbusvalid(U8 data)
- {
- GH_USB_PHY_UTMI_REG_0A_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A;
- d.bitc.vbusvalid = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0A_vbusvalid] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0A,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_0A_vbusvalid(void)
- {
- GH_USB_PHY_UTMI_REG_0A_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0A);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0A_vbusvalid] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0A,value);
- #endif
- return tmp_value.bitc.vbusvalid;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_0A_avalid(U8 data)
- {
- GH_USB_PHY_UTMI_REG_0A_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A;
- d.bitc.avalid = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0A_avalid] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0A,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_0A_avalid(void)
- {
- GH_USB_PHY_UTMI_REG_0A_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0A);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0A_avalid] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0A,value);
- #endif
- return tmp_value.bitc.avalid;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_0A_sessend(U8 data)
- {
- GH_USB_PHY_UTMI_REG_0A_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A;
- d.bitc.sessend = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0A_sessend] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0A,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_0A_sessend(void)
- {
- GH_USB_PHY_UTMI_REG_0A_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0A);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0A_sessend] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0A,value);
- #endif
- return tmp_value.bitc.sessend;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_0A_iddig(U8 data)
- {
- GH_USB_PHY_UTMI_REG_0A_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A;
- d.bitc.iddig = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0A_iddig] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0A,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_0A_iddig(void)
- {
- GH_USB_PHY_UTMI_REG_0A_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0A);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0A_iddig] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0A,value);
- #endif
- return tmp_value.bitc.iddig;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_0A_opmode(U8 data)
- {
- GH_USB_PHY_UTMI_REG_0A_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A;
- d.bitc.opmode = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0A_opmode] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0A,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_0A_opmode(void)
- {
- GH_USB_PHY_UTMI_REG_0A_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0A);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0A_opmode] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0A,value);
- #endif
- return tmp_value.bitc.opmode;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_0A_xcvrsel(U8 data)
- {
- GH_USB_PHY_UTMI_REG_0A_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A;
- d.bitc.xcvrsel = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0A_xcvrsel] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0A,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_0A_xcvrsel(void)
- {
- GH_USB_PHY_UTMI_REG_0A_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0A);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0A_xcvrsel] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0A,value);
- #endif
- return tmp_value.bitc.xcvrsel;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_0A_termsel(U8 data)
- {
- GH_USB_PHY_UTMI_REG_0A_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A;
- d.bitc.termsel = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0A_termsel] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0A,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_0A_termsel(void)
- {
- GH_USB_PHY_UTMI_REG_0A_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0A);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0A_termsel] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0A,value);
- #endif
- return tmp_value.bitc.termsel;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_0A_macmode_ovd(U8 data)
- {
- GH_USB_PHY_UTMI_REG_0A_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A;
- d.bitc.macmode_ovd = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0A_macmode_ovd] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0A,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_0A_macmode_ovd(void)
- {
- GH_USB_PHY_UTMI_REG_0A_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0A);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0A_macmode_ovd] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0A,value);
- #endif
- return tmp_value.bitc.macmode_ovd;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_0A_suspendm(U8 data)
- {
- GH_USB_PHY_UTMI_REG_0A_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A;
- d.bitc.suspendm = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0A_suspendm] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0A,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_0A_suspendm(void)
- {
- GH_USB_PHY_UTMI_REG_0A_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0A);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0A_suspendm] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0A,value);
- #endif
- return tmp_value.bitc.suspendm;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_0A_usb_bond_ovd(U8 data)
- {
- GH_USB_PHY_UTMI_REG_0A_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A;
- d.bitc.usb_bond_ovd = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0A_usb_bond_ovd] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0A,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_0A_usb_bond_ovd(void)
- {
- GH_USB_PHY_UTMI_REG_0A_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0A);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0A_usb_bond_ovd] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0A,value);
- #endif
- return tmp_value.bitc.usb_bond_ovd;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_0A_usb_bond_set(U8 data)
- {
- GH_USB_PHY_UTMI_REG_0A_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A;
- d.bitc.usb_bond_set = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0A_usb_bond_set] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0A,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_0A_usb_bond_set(void)
- {
- GH_USB_PHY_UTMI_REG_0A_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0A);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0A_usb_bond_set] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0A,value);
- #endif
- return tmp_value.bitc.usb_bond_set;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_0A_host_chirp_det(U8 data)
- {
- GH_USB_PHY_UTMI_REG_0A_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A;
- d.bitc.host_chirp_det = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0A_host_chirp_det] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0A,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_0A_host_chirp_det(void)
- {
- GH_USB_PHY_UTMI_REG_0A_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0A);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0A_host_chirp_det] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0A,value);
- #endif
- return tmp_value.bitc.host_chirp_det;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_0A_hs_tx_ien_mask(U8 data)
- {
- GH_USB_PHY_UTMI_REG_0A_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A;
- d.bitc.hs_tx_ien_mask = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- 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",
- REG_USB_PHY_UTMI_REG_0A,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_0A_hs_tx_ien_mask(void)
- {
- GH_USB_PHY_UTMI_REG_0A_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0A);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0A_hs_tx_ien_mask] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0A,value);
- #endif
- return tmp_value.bitc.hs_tx_ien_mask;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_0A_hs_tx_ien_mask_method(U8 data)
- {
- GH_USB_PHY_UTMI_REG_0A_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A;
- d.bitc.hs_tx_ien_mask_method = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_0A = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- 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",
- REG_USB_PHY_UTMI_REG_0A,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_0A_hs_tx_ien_mask_method(void)
- {
- GH_USB_PHY_UTMI_REG_0A_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0A);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- 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",
- REG_USB_PHY_UTMI_REG_0A,value);
- #endif
- return tmp_value.bitc.hs_tx_ien_mask_method;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register USB_PHY_UTMI_REG_0B (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'USB_PHY_UTMI_REG_0B'. */
- void GH_USB_PHY_set_UTMI_REG_0B(U16 data);
- /*! \brief Reads the register 'USB_PHY_UTMI_REG_0B'. */
- U16 GH_USB_PHY_get_UTMI_REG_0B(void);
- /*! \brief Writes the bit group 'f' of register 'USB_PHY_UTMI_REG_0B'. */
- void GH_USB_PHY_set_UTMI_REG_0B_f(U16 data);
- /*! \brief Reads the bit group 'f' of register 'USB_PHY_UTMI_REG_0B'. */
- U16 GH_USB_PHY_get_UTMI_REG_0B_f(void);
- /*! \brief Writes the bit group 'N' of register 'USB_PHY_UTMI_REG_0B'. */
- void GH_USB_PHY_set_UTMI_REG_0B_N(U8 data);
- /*! \brief Reads the bit group 'N' of register 'USB_PHY_UTMI_REG_0B'. */
- U8 GH_USB_PHY_get_UTMI_REG_0B_N(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_0B(U16 data)
- {
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_0B = data;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0B] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0B,data,data);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_UTMI_REG_0B(void)
- {
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0B);
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0B] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0B,value);
- #endif
- return value;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_0B_f(U16 data)
- {
- GH_USB_PHY_UTMI_REG_0B_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0B;
- d.bitc.f = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_0B = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0B_f] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0B,d.all,d.all);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_UTMI_REG_0B_f(void)
- {
- GH_USB_PHY_UTMI_REG_0B_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0B);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0B_f] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0B,value);
- #endif
- return tmp_value.bitc.f;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_0B_N(U8 data)
- {
- GH_USB_PHY_UTMI_REG_0B_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0B;
- d.bitc.n = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_0B = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0B_N] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0B,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG_0B_N(void)
- {
- GH_USB_PHY_UTMI_REG_0B_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0B);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0B_N] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0B,value);
- #endif
- return tmp_value.bitc.n;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register USB_PHY_UTMI_REG_0C (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'USB_PHY_UTMI_REG_0C'. */
- void GH_USB_PHY_set_UTMI_REG_0C(U16 data);
- /*! \brief Reads the register 'USB_PHY_UTMI_REG_0C'. */
- U16 GH_USB_PHY_get_UTMI_REG_0C(void);
- /*! \brief Writes the bit group 'f' of register 'USB_PHY_UTMI_REG_0C'. */
- void GH_USB_PHY_set_UTMI_REG_0C_f(U16 data);
- /*! \brief Reads the bit group 'f' of register 'USB_PHY_UTMI_REG_0C'. */
- U16 GH_USB_PHY_get_UTMI_REG_0C_f(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_0C(U16 data)
- {
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_0C = data;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0C] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0C,data,data);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_UTMI_REG_0C(void)
- {
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0C);
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0C] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0C,value);
- #endif
- return value;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG_0C_f(U16 data)
- {
- GH_USB_PHY_UTMI_REG_0C_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG_0C;
- d.bitc.f = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG_0C = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG_0C_f] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0C,d.all,d.all);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_UTMI_REG_0C_f(void)
- {
- GH_USB_PHY_UTMI_REG_0C_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG_0C);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG_0C_f] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG_0C,value);
- #endif
- return tmp_value.bitc.f;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register USB_PHY_UTMI_REG10 (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'USB_PHY_UTMI_REG10'. */
- void GH_USB_PHY_set_UTMI_REG10(U16 data);
- /*! \brief Reads the register 'USB_PHY_UTMI_REG10'. */
- U16 GH_USB_PHY_get_UTMI_REG10(void);
- /*! \brief Writes the bit group 'input_clock' of register 'USB_PHY_UTMI_REG10'. */
- void GH_USB_PHY_set_UTMI_REG10_input_clock(U8 data);
- /*! \brief Reads the bit group 'input_clock' of register 'USB_PHY_UTMI_REG10'. */
- U8 GH_USB_PHY_get_UTMI_REG10_input_clock(void);
- /*! \brief Writes the bit group 'divider_selection' of register 'USB_PHY_UTMI_REG10'. */
- void GH_USB_PHY_set_UTMI_REG10_divider_selection(U8 data);
- /*! \brief Reads the bit group 'divider_selection' of register 'USB_PHY_UTMI_REG10'. */
- U8 GH_USB_PHY_get_UTMI_REG10_divider_selection(void);
- /*! \brief Writes the bit group 'divider_control' of register 'USB_PHY_UTMI_REG10'. */
- void GH_USB_PHY_set_UTMI_REG10_divider_control(U8 data);
- /*! \brief Reads the bit group 'divider_control' of register 'USB_PHY_UTMI_REG10'. */
- U8 GH_USB_PHY_get_UTMI_REG10_divider_control(void);
- /*! \brief Writes the bit group 'clock_outputs_source' of register 'USB_PHY_UTMI_REG10'. */
- void GH_USB_PHY_set_UTMI_REG10_clock_outputs_source(U8 data);
- /*! \brief Reads the bit group 'clock_outputs_source' of register 'USB_PHY_UTMI_REG10'. */
- U8 GH_USB_PHY_get_UTMI_REG10_clock_outputs_source(void);
- /*! \brief Writes the bit group 'clock_outputs_ratio' of register 'USB_PHY_UTMI_REG10'. */
- void GH_USB_PHY_set_UTMI_REG10_clock_outputs_ratio(U8 data);
- /*! \brief Reads the bit group 'clock_outputs_ratio' of register 'USB_PHY_UTMI_REG10'. */
- U8 GH_USB_PHY_get_UTMI_REG10_clock_outputs_ratio(void);
- /*! \brief Writes the bit group 'digital_output' of register 'USB_PHY_UTMI_REG10'. */
- void GH_USB_PHY_set_UTMI_REG10_digital_output(U8 data);
- /*! \brief Reads the bit group 'digital_output' of register 'USB_PHY_UTMI_REG10'. */
- U8 GH_USB_PHY_get_UTMI_REG10_digital_output(void);
- /*! \brief Writes the bit group 'transmitter' of register 'USB_PHY_UTMI_REG10'. */
- void GH_USB_PHY_set_UTMI_REG10_transmitter(U8 data);
- /*! \brief Reads the bit group 'transmitter' of register 'USB_PHY_UTMI_REG10'. */
- U8 GH_USB_PHY_get_UTMI_REG10_transmitter(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_USB_PHY_set_UTMI_REG10(U16 data)
- {
- *(volatile U16 *)REG_USB_PHY_UTMI_REG10 = data;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG10] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG10,data,data);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_UTMI_REG10(void)
- {
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG10);
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG10] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG10,value);
- #endif
- return value;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG10_input_clock(U8 data)
- {
- GH_USB_PHY_UTMI_REG10_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG10;
- d.bitc.input_clock = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG10 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG10_input_clock] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG10,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG10_input_clock(void)
- {
- GH_USB_PHY_UTMI_REG10_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG10);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG10_input_clock] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG10,value);
- #endif
- return tmp_value.bitc.input_clock;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG10_divider_selection(U8 data)
- {
- GH_USB_PHY_UTMI_REG10_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG10;
- d.bitc.divider_selection = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG10 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG10_divider_selection] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG10,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG10_divider_selection(void)
- {
- GH_USB_PHY_UTMI_REG10_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG10);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG10_divider_selection] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG10,value);
- #endif
- return tmp_value.bitc.divider_selection;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG10_divider_control(U8 data)
- {
- GH_USB_PHY_UTMI_REG10_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG10;
- d.bitc.divider_control = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG10 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG10_divider_control] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG10,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG10_divider_control(void)
- {
- GH_USB_PHY_UTMI_REG10_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG10);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG10_divider_control] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG10,value);
- #endif
- return tmp_value.bitc.divider_control;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG10_clock_outputs_source(U8 data)
- {
- GH_USB_PHY_UTMI_REG10_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG10;
- d.bitc.clock_outputs_source = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG10 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG10_clock_outputs_source] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG10,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG10_clock_outputs_source(void)
- {
- GH_USB_PHY_UTMI_REG10_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG10);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG10_clock_outputs_source] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG10,value);
- #endif
- return tmp_value.bitc.clock_outputs_source;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG10_clock_outputs_ratio(U8 data)
- {
- GH_USB_PHY_UTMI_REG10_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG10;
- d.bitc.clock_outputs_ratio = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG10 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG10_clock_outputs_ratio] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG10,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG10_clock_outputs_ratio(void)
- {
- GH_USB_PHY_UTMI_REG10_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG10);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG10_clock_outputs_ratio] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG10,value);
- #endif
- return tmp_value.bitc.clock_outputs_ratio;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG10_digital_output(U8 data)
- {
- GH_USB_PHY_UTMI_REG10_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG10;
- d.bitc.digital_output = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG10 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG10_digital_output] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG10,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG10_digital_output(void)
- {
- GH_USB_PHY_UTMI_REG10_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG10);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG10_digital_output] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG10,value);
- #endif
- return tmp_value.bitc.digital_output;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG10_transmitter(U8 data)
- {
- GH_USB_PHY_UTMI_REG10_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG10;
- d.bitc.transmitter = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG10 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG10_transmitter] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG10,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG10_transmitter(void)
- {
- GH_USB_PHY_UTMI_REG10_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG10);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG10_transmitter] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG10,value);
- #endif
- return tmp_value.bitc.transmitter;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register USB_PHY_UTMI_REG11 (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'USB_PHY_UTMI_REG11'. */
- void GH_USB_PHY_set_UTMI_REG11(U16 data);
- /*! \brief Reads the register 'USB_PHY_UTMI_REG11'. */
- U16 GH_USB_PHY_get_UTMI_REG11(void);
- /*! \brief Writes the bit group 'ENDISC' of register 'USB_PHY_UTMI_REG11'. */
- void GH_USB_PHY_set_UTMI_REG11_ENDISC(U8 data);
- /*! \brief Reads the bit group 'ENDISC' of register 'USB_PHY_UTMI_REG11'. */
- U8 GH_USB_PHY_get_UTMI_REG11_ENDISC(void);
- /*! \brief Writes the bit group 'EXTDISC' of register 'USB_PHY_UTMI_REG11'. */
- void GH_USB_PHY_set_UTMI_REG11_EXTDISC(U8 data);
- /*! \brief Reads the bit group 'EXTDISC' of register 'USB_PHY_UTMI_REG11'. */
- U8 GH_USB_PHY_get_UTMI_REG11_EXTDISC(void);
- /*! \brief Writes the bit group 'ENLOCKZ' of register 'USB_PHY_UTMI_REG11'. */
- void GH_USB_PHY_set_UTMI_REG11_ENLOCKZ(U8 data);
- /*! \brief Reads the bit group 'ENLOCKZ' of register 'USB_PHY_UTMI_REG11'. */
- U8 GH_USB_PHY_get_UTMI_REG11_ENLOCKZ(void);
- /*! \brief Writes the bit group 'ENAUTO' of register 'USB_PHY_UTMI_REG11'. */
- void GH_USB_PHY_set_UTMI_REG11_ENAUTO(U8 data);
- /*! \brief Reads the bit group 'ENAUTO' of register 'USB_PHY_UTMI_REG11'. */
- U8 GH_USB_PHY_get_UTMI_REG11_ENAUTO(void);
- /*! \brief Writes the bit group 'ENDCC' of register 'USB_PHY_UTMI_REG11'. */
- void GH_USB_PHY_set_UTMI_REG11_ENDCC(U8 data);
- /*! \brief Reads the bit group 'ENDCC' of register 'USB_PHY_UTMI_REG11'. */
- U8 GH_USB_PHY_get_UTMI_REG11_ENDCC(void);
- /*! \brief Writes the bit group 'TVCO' of register 'USB_PHY_UTMI_REG11'. */
- void GH_USB_PHY_set_UTMI_REG11_TVCO(U8 data);
- /*! \brief Reads the bit group 'TVCO' of register 'USB_PHY_UTMI_REG11'. */
- U8 GH_USB_PHY_get_UTMI_REG11_TVCO(void);
- /*! \brief Writes the bit group 'output_source' of register 'USB_PHY_UTMI_REG11'. */
- void GH_USB_PHY_set_UTMI_REG11_output_source(U8 data);
- /*! \brief Reads the bit group 'output_source' of register 'USB_PHY_UTMI_REG11'. */
- U8 GH_USB_PHY_get_UTMI_REG11_output_source(void);
- /*! \brief Writes the bit group 'ENINV' of register 'USB_PHY_UTMI_REG11'. */
- void GH_USB_PHY_set_UTMI_REG11_ENINV(U8 data);
- /*! \brief Reads the bit group 'ENINV' of register 'USB_PHY_UTMI_REG11'. */
- U8 GH_USB_PHY_get_UTMI_REG11_ENINV(void);
- /*! \brief Writes the bit group 'ENINVENTMUX' of register 'USB_PHY_UTMI_REG11'. */
- void GH_USB_PHY_set_UTMI_REG11_ENINVENTMUX(U8 data);
- /*! \brief Reads the bit group 'ENINVENTMUX' of register 'USB_PHY_UTMI_REG11'. */
- U8 GH_USB_PHY_get_UTMI_REG11_ENINVENTMUX(void);
- /*! \brief Writes the bit group 'input_clock' of register 'USB_PHY_UTMI_REG11'. */
- void GH_USB_PHY_set_UTMI_REG11_input_clock(U8 data);
- /*! \brief Reads the bit group 'input_clock' of register 'USB_PHY_UTMI_REG11'. */
- U8 GH_USB_PHY_get_UTMI_REG11_input_clock(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_USB_PHY_set_UTMI_REG11(U16 data)
- {
- *(volatile U16 *)REG_USB_PHY_UTMI_REG11 = data;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG11] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG11,data,data);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_UTMI_REG11(void)
- {
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG11);
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG11] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG11,value);
- #endif
- return value;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG11_ENDISC(U8 data)
- {
- GH_USB_PHY_UTMI_REG11_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG11;
- d.bitc.endisc = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG11 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG11_ENDISC] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG11,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG11_ENDISC(void)
- {
- GH_USB_PHY_UTMI_REG11_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG11);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG11_ENDISC] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG11,value);
- #endif
- return tmp_value.bitc.endisc;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG11_EXTDISC(U8 data)
- {
- GH_USB_PHY_UTMI_REG11_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG11;
- d.bitc.extdisc = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG11 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG11_EXTDISC] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG11,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG11_EXTDISC(void)
- {
- GH_USB_PHY_UTMI_REG11_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG11);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG11_EXTDISC] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG11,value);
- #endif
- return tmp_value.bitc.extdisc;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG11_ENLOCKZ(U8 data)
- {
- GH_USB_PHY_UTMI_REG11_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG11;
- d.bitc.enlockz = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG11 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG11_ENLOCKZ] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG11,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG11_ENLOCKZ(void)
- {
- GH_USB_PHY_UTMI_REG11_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG11);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG11_ENLOCKZ] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG11,value);
- #endif
- return tmp_value.bitc.enlockz;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG11_ENAUTO(U8 data)
- {
- GH_USB_PHY_UTMI_REG11_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG11;
- d.bitc.enauto = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG11 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG11_ENAUTO] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG11,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG11_ENAUTO(void)
- {
- GH_USB_PHY_UTMI_REG11_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG11);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG11_ENAUTO] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG11,value);
- #endif
- return tmp_value.bitc.enauto;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG11_ENDCC(U8 data)
- {
- GH_USB_PHY_UTMI_REG11_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG11;
- d.bitc.endcc = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG11 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG11_ENDCC] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG11,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG11_ENDCC(void)
- {
- GH_USB_PHY_UTMI_REG11_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG11);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG11_ENDCC] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG11,value);
- #endif
- return tmp_value.bitc.endcc;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG11_TVCO(U8 data)
- {
- GH_USB_PHY_UTMI_REG11_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG11;
- d.bitc.tvco = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG11 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG11_TVCO] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG11,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG11_TVCO(void)
- {
- GH_USB_PHY_UTMI_REG11_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG11);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG11_TVCO] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG11,value);
- #endif
- return tmp_value.bitc.tvco;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG11_output_source(U8 data)
- {
- GH_USB_PHY_UTMI_REG11_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG11;
- d.bitc.output_source = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG11 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG11_output_source] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG11,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG11_output_source(void)
- {
- GH_USB_PHY_UTMI_REG11_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG11);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG11_output_source] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG11,value);
- #endif
- return tmp_value.bitc.output_source;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG11_ENINV(U8 data)
- {
- GH_USB_PHY_UTMI_REG11_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG11;
- d.bitc.eninv = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG11 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG11_ENINV] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG11,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG11_ENINV(void)
- {
- GH_USB_PHY_UTMI_REG11_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG11);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG11_ENINV] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG11,value);
- #endif
- return tmp_value.bitc.eninv;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG11_ENINVENTMUX(U8 data)
- {
- GH_USB_PHY_UTMI_REG11_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG11;
- d.bitc.eninventmux = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG11 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG11_ENINVENTMUX] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG11,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG11_ENINVENTMUX(void)
- {
- GH_USB_PHY_UTMI_REG11_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG11);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG11_ENINVENTMUX] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG11,value);
- #endif
- return tmp_value.bitc.eninventmux;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG11_input_clock(U8 data)
- {
- GH_USB_PHY_UTMI_REG11_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG11;
- d.bitc.input_clock = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG11 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG11_input_clock] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG11,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG11_input_clock(void)
- {
- GH_USB_PHY_UTMI_REG11_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG11);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG11_input_clock] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG11,value);
- #endif
- return tmp_value.bitc.input_clock;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register USB_PHY_UTMI_REG12 (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'USB_PHY_UTMI_REG12'. */
- void GH_USB_PHY_set_UTMI_REG12(U16 data);
- /*! \brief Reads the register 'USB_PHY_UTMI_REG12'. */
- U16 GH_USB_PHY_get_UTMI_REG12(void);
- /*! \brief Writes the bit group 'ICTL33' of register 'USB_PHY_UTMI_REG12'. */
- void GH_USB_PHY_set_UTMI_REG12_ICTL33(U8 data);
- /*! \brief Reads the bit group 'ICTL33' of register 'USB_PHY_UTMI_REG12'. */
- U8 GH_USB_PHY_get_UTMI_REG12_ICTL33(void);
- /*! \brief Writes the bit group 'DIS_HVFLAG_DISC' of register 'USB_PHY_UTMI_REG12'. */
- void GH_USB_PHY_set_UTMI_REG12_DIS_HVFLAG_DISC(U8 data);
- /*! \brief Reads the bit group 'DIS_HVFLAG_DISC' of register 'USB_PHY_UTMI_REG12'. */
- U8 GH_USB_PHY_get_UTMI_REG12_DIS_HVFLAG_DISC(void);
- /*! \brief Writes the bit group 'ENSYN33' of register 'USB_PHY_UTMI_REG12'. */
- void GH_USB_PHY_set_UTMI_REG12_ENSYN33(U8 data);
- /*! \brief Reads the bit group 'ENSYN33' of register 'USB_PHY_UTMI_REG12'. */
- U8 GH_USB_PHY_get_UTMI_REG12_ENSYN33(void);
- /*! \brief Writes the bit group 'Regulated' of register 'USB_PHY_UTMI_REG12'. */
- void GH_USB_PHY_set_UTMI_REG12_Regulated(U8 data);
- /*! \brief Reads the bit group 'Regulated' of register 'USB_PHY_UTMI_REG12'. */
- U8 GH_USB_PHY_get_UTMI_REG12_Regulated(void);
- /*! \brief Writes the bit group 'Regulator' of register 'USB_PHY_UTMI_REG12'. */
- void GH_USB_PHY_set_UTMI_REG12_Regulator(U8 data);
- /*! \brief Reads the bit group 'Regulator' of register 'USB_PHY_UTMI_REG12'. */
- U8 GH_USB_PHY_get_UTMI_REG12_Regulator(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_USB_PHY_set_UTMI_REG12(U16 data)
- {
- *(volatile U16 *)REG_USB_PHY_UTMI_REG12 = data;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG12] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG12,data,data);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_UTMI_REG12(void)
- {
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG12);
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG12] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG12,value);
- #endif
- return value;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG12_ICTL33(U8 data)
- {
- GH_USB_PHY_UTMI_REG12_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG12;
- d.bitc.ictl33 = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG12 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG12_ICTL33] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG12,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG12_ICTL33(void)
- {
- GH_USB_PHY_UTMI_REG12_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG12);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG12_ICTL33] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG12,value);
- #endif
- return tmp_value.bitc.ictl33;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG12_DIS_HVFLAG_DISC(U8 data)
- {
- GH_USB_PHY_UTMI_REG12_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG12;
- d.bitc.dis_hvflag_disc = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG12 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG12_DIS_HVFLAG_DISC] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG12,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG12_DIS_HVFLAG_DISC(void)
- {
- GH_USB_PHY_UTMI_REG12_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG12);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG12_DIS_HVFLAG_DISC] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG12,value);
- #endif
- return tmp_value.bitc.dis_hvflag_disc;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG12_ENSYN33(U8 data)
- {
- GH_USB_PHY_UTMI_REG12_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG12;
- d.bitc.ensyn33 = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG12 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG12_ENSYN33] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG12,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG12_ENSYN33(void)
- {
- GH_USB_PHY_UTMI_REG12_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG12);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG12_ENSYN33] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG12,value);
- #endif
- return tmp_value.bitc.ensyn33;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG12_Regulated(U8 data)
- {
- GH_USB_PHY_UTMI_REG12_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG12;
- d.bitc.regulated = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG12 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG12_Regulated] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG12,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG12_Regulated(void)
- {
- GH_USB_PHY_UTMI_REG12_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG12);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG12_Regulated] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG12,value);
- #endif
- return tmp_value.bitc.regulated;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG12_Regulator(U8 data)
- {
- GH_USB_PHY_UTMI_REG12_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG12;
- d.bitc.regulator = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG12 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG12_Regulator] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG12,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG12_Regulator(void)
- {
- GH_USB_PHY_UTMI_REG12_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG12);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG12_Regulator] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG12,value);
- #endif
- return tmp_value.bitc.regulator;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register USB_PHY_UTMI_REG13 (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'USB_PHY_UTMI_REG13'. */
- void GH_USB_PHY_set_UTMI_REG13(U16 data);
- /*! \brief Reads the register 'USB_PHY_UTMI_REG13'. */
- U16 GH_USB_PHY_get_UTMI_REG13(void);
- /*! \brief Writes the bit group 'De_glitch_time' of register 'USB_PHY_UTMI_REG13'. */
- void GH_USB_PHY_set_UTMI_REG13_De_glitch_time(U8 data);
- /*! \brief Reads the bit group 'De_glitch_time' of register 'USB_PHY_UTMI_REG13'. */
- U8 GH_USB_PHY_get_UTMI_REG13_De_glitch_time(void);
- /*! \brief Writes the bit group 'Squelch_detector' of register 'USB_PHY_UTMI_REG13'. */
- void GH_USB_PHY_set_UTMI_REG13_Squelch_detector(U8 data);
- /*! \brief Reads the bit group 'Squelch_detector' of register 'USB_PHY_UTMI_REG13'. */
- U8 GH_USB_PHY_get_UTMI_REG13_Squelch_detector(void);
- /*! \brief Writes the bit group 'receiver_bias' of register 'USB_PHY_UTMI_REG13'. */
- void GH_USB_PHY_set_UTMI_REG13_receiver_bias(U8 data);
- /*! \brief Reads the bit group 'receiver_bias' of register 'USB_PHY_UTMI_REG13'. */
- U8 GH_USB_PHY_get_UTMI_REG13_receiver_bias(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_USB_PHY_set_UTMI_REG13(U16 data)
- {
- *(volatile U16 *)REG_USB_PHY_UTMI_REG13 = data;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG13] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG13,data,data);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_UTMI_REG13(void)
- {
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG13);
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG13] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG13,value);
- #endif
- return value;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG13_De_glitch_time(U8 data)
- {
- GH_USB_PHY_UTMI_REG13_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG13;
- d.bitc.de_glitch_time = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG13 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG13_De_glitch_time] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG13,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG13_De_glitch_time(void)
- {
- GH_USB_PHY_UTMI_REG13_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG13);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG13_De_glitch_time] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG13,value);
- #endif
- return tmp_value.bitc.de_glitch_time;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG13_Squelch_detector(U8 data)
- {
- GH_USB_PHY_UTMI_REG13_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG13;
- d.bitc.squelch_detector = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG13 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG13_Squelch_detector] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG13,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG13_Squelch_detector(void)
- {
- GH_USB_PHY_UTMI_REG13_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG13);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG13_Squelch_detector] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG13,value);
- #endif
- return tmp_value.bitc.squelch_detector;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG13_receiver_bias(U8 data)
- {
- GH_USB_PHY_UTMI_REG13_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG13;
- d.bitc.receiver_bias = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG13 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG13_receiver_bias] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG13,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG13_receiver_bias(void)
- {
- GH_USB_PHY_UTMI_REG13_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG13);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG13_receiver_bias] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG13,value);
- #endif
- return tmp_value.bitc.receiver_bias;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register USB_PHY_UTMI_REG14 (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'USB_PHY_UTMI_REG14'. */
- void GH_USB_PHY_set_UTMI_REG14(U16 data);
- /*! \brief Reads the register 'USB_PHY_UTMI_REG14'. */
- U16 GH_USB_PHY_get_UTMI_REG14(void);
- /*! \brief Writes the bit group 'slew_rate' of register 'USB_PHY_UTMI_REG14'. */
- void GH_USB_PHY_set_UTMI_REG14_slew_rate(U8 data);
- /*! \brief Reads the bit group 'slew_rate' of register 'USB_PHY_UTMI_REG14'. */
- U8 GH_USB_PHY_get_UTMI_REG14_slew_rate(void);
- /*! \brief Writes the bit group 'Hign_speed' of register 'USB_PHY_UTMI_REG14'. */
- void GH_USB_PHY_set_UTMI_REG14_Hign_speed(U8 data);
- /*! \brief Reads the bit group 'Hign_speed' of register 'USB_PHY_UTMI_REG14'. */
- U8 GH_USB_PHY_get_UTMI_REG14_Hign_speed(void);
- /*! \brief Writes the bit group 'Full_speed0' of register 'USB_PHY_UTMI_REG14'. */
- void GH_USB_PHY_set_UTMI_REG14_Full_speed0(U8 data);
- /*! \brief Reads the bit group 'Full_speed0' of register 'USB_PHY_UTMI_REG14'. */
- U8 GH_USB_PHY_get_UTMI_REG14_Full_speed0(void);
- /*! \brief Writes the bit group 'Full_speed1' of register 'USB_PHY_UTMI_REG14'. */
- void GH_USB_PHY_set_UTMI_REG14_Full_speed1(U8 data);
- /*! \brief Reads the bit group 'Full_speed1' of register 'USB_PHY_UTMI_REG14'. */
- U8 GH_USB_PHY_get_UTMI_REG14_Full_speed1(void);
- /*! \brief Writes the bit group 'slew' of register 'USB_PHY_UTMI_REG14'. */
- void GH_USB_PHY_set_UTMI_REG14_slew(U8 data);
- /*! \brief Reads the bit group 'slew' of register 'USB_PHY_UTMI_REG14'. */
- U8 GH_USB_PHY_get_UTMI_REG14_slew(void);
- /*! \brief Writes the bit group 'Disable' of register 'USB_PHY_UTMI_REG14'. */
- void GH_USB_PHY_set_UTMI_REG14_Disable(U8 data);
- /*! \brief Reads the bit group 'Disable' of register 'USB_PHY_UTMI_REG14'. */
- U8 GH_USB_PHY_get_UTMI_REG14_Disable(void);
- /*! \brief Writes the bit group 'test_DM' of register 'USB_PHY_UTMI_REG14'. */
- void GH_USB_PHY_set_UTMI_REG14_test_DM(U8 data);
- /*! \brief Reads the bit group 'test_DM' of register 'USB_PHY_UTMI_REG14'. */
- U8 GH_USB_PHY_get_UTMI_REG14_test_DM(void);
- /*! \brief Writes the bit group 'test_DP' of register 'USB_PHY_UTMI_REG14'. */
- void GH_USB_PHY_set_UTMI_REG14_test_DP(U8 data);
- /*! \brief Reads the bit group 'test_DP' of register 'USB_PHY_UTMI_REG14'. */
- U8 GH_USB_PHY_get_UTMI_REG14_test_DP(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_USB_PHY_set_UTMI_REG14(U16 data)
- {
- *(volatile U16 *)REG_USB_PHY_UTMI_REG14 = data;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG14] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG14,data,data);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_UTMI_REG14(void)
- {
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG14);
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG14] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG14,value);
- #endif
- return value;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG14_slew_rate(U8 data)
- {
- GH_USB_PHY_UTMI_REG14_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG14;
- d.bitc.slew_rate = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG14 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG14_slew_rate] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG14,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG14_slew_rate(void)
- {
- GH_USB_PHY_UTMI_REG14_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG14);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG14_slew_rate] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG14,value);
- #endif
- return tmp_value.bitc.slew_rate;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG14_Hign_speed(U8 data)
- {
- GH_USB_PHY_UTMI_REG14_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG14;
- d.bitc.hign_speed = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG14 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG14_Hign_speed] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG14,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG14_Hign_speed(void)
- {
- GH_USB_PHY_UTMI_REG14_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG14);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG14_Hign_speed] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG14,value);
- #endif
- return tmp_value.bitc.hign_speed;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG14_Full_speed0(U8 data)
- {
- GH_USB_PHY_UTMI_REG14_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG14;
- d.bitc.full_speed0 = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG14 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG14_Full_speed0] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG14,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG14_Full_speed0(void)
- {
- GH_USB_PHY_UTMI_REG14_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG14);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG14_Full_speed0] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG14,value);
- #endif
- return tmp_value.bitc.full_speed0;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG14_Full_speed1(U8 data)
- {
- GH_USB_PHY_UTMI_REG14_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG14;
- d.bitc.full_speed1 = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG14 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG14_Full_speed1] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG14,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG14_Full_speed1(void)
- {
- GH_USB_PHY_UTMI_REG14_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG14);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG14_Full_speed1] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG14,value);
- #endif
- return tmp_value.bitc.full_speed1;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG14_slew(U8 data)
- {
- GH_USB_PHY_UTMI_REG14_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG14;
- d.bitc.slew = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG14 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG14_slew] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG14,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG14_slew(void)
- {
- GH_USB_PHY_UTMI_REG14_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG14);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG14_slew] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG14,value);
- #endif
- return tmp_value.bitc.slew;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG14_Disable(U8 data)
- {
- GH_USB_PHY_UTMI_REG14_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG14;
- d.bitc.disable = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG14 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG14_Disable] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG14,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG14_Disable(void)
- {
- GH_USB_PHY_UTMI_REG14_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG14);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG14_Disable] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG14,value);
- #endif
- return tmp_value.bitc.disable;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG14_test_DM(U8 data)
- {
- GH_USB_PHY_UTMI_REG14_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG14;
- d.bitc.test_dm = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG14 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG14_test_DM] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG14,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG14_test_DM(void)
- {
- GH_USB_PHY_UTMI_REG14_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG14);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG14_test_DM] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG14,value);
- #endif
- return tmp_value.bitc.test_dm;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG14_test_DP(U8 data)
- {
- GH_USB_PHY_UTMI_REG14_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG14;
- d.bitc.test_dp = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG14 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG14_test_DP] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG14,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG14_test_DP(void)
- {
- GH_USB_PHY_UTMI_REG14_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG14);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG14_test_DP] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG14,value);
- #endif
- return tmp_value.bitc.test_dp;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register USB_PHY_UTMI_REG15 (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'USB_PHY_UTMI_REG15'. */
- void GH_USB_PHY_set_UTMI_REG15(U16 data);
- /*! \brief Reads the register 'USB_PHY_UTMI_REG15'. */
- U16 GH_USB_PHY_get_UTMI_REG15(void);
- /*! \brief Writes the bit group 'VSPOUT' of register 'USB_PHY_UTMI_REG15'. */
- void GH_USB_PHY_set_UTMI_REG15_VSPOUT(U8 data);
- /*! \brief Reads the bit group 'VSPOUT' of register 'USB_PHY_UTMI_REG15'. */
- U8 GH_USB_PHY_get_UTMI_REG15_VSPOUT(void);
- /*! \brief Writes the bit group 'VSMOUT' of register 'USB_PHY_UTMI_REG15'. */
- void GH_USB_PHY_set_UTMI_REG15_VSMOUT(U8 data);
- /*! \brief Reads the bit group 'VSMOUT' of register 'USB_PHY_UTMI_REG15'. */
- U8 GH_USB_PHY_get_UTMI_REG15_VSMOUT(void);
- /*! \brief Writes the bit group 'VCPOUT' of register 'USB_PHY_UTMI_REG15'. */
- void GH_USB_PHY_set_UTMI_REG15_VCPOUT(U8 data);
- /*! \brief Reads the bit group 'VCPOUT' of register 'USB_PHY_UTMI_REG15'. */
- U8 GH_USB_PHY_get_UTMI_REG15_VCPOUT(void);
- /*! \brief Writes the bit group 'VCMOUT' of register 'USB_PHY_UTMI_REG15'. */
- void GH_USB_PHY_set_UTMI_REG15_VCMOUT(U8 data);
- /*! \brief Reads the bit group 'VCMOUT' of register 'USB_PHY_UTMI_REG15'. */
- U8 GH_USB_PHY_get_UTMI_REG15_VCMOUT(void);
- /*! \brief Writes the bit group 'PGD' of register 'USB_PHY_UTMI_REG15'. */
- void GH_USB_PHY_set_UTMI_REG15_PGD(U8 data);
- /*! \brief Reads the bit group 'PGD' of register 'USB_PHY_UTMI_REG15'. */
- U8 GH_USB_PHY_get_UTMI_REG15_PGD(void);
- /*! \brief Writes the bit group 'Power_Good_33V' of register 'USB_PHY_UTMI_REG15'. */
- void GH_USB_PHY_set_UTMI_REG15_Power_Good_33V(U8 data);
- /*! \brief Reads the bit group 'Power_Good_33V' of register 'USB_PHY_UTMI_REG15'. */
- U8 GH_USB_PHY_get_UTMI_REG15_Power_Good_33V(void);
- /*! \brief Writes the bit group 'Power_Good' of register 'USB_PHY_UTMI_REG15'. */
- void GH_USB_PHY_set_UTMI_REG15_Power_Good(U8 data);
- /*! \brief Reads the bit group 'Power_Good' of register 'USB_PHY_UTMI_REG15'. */
- U8 GH_USB_PHY_get_UTMI_REG15_Power_Good(void);
- /*! \brief Writes the bit group 'VBG' of register 'USB_PHY_UTMI_REG15'. */
- void GH_USB_PHY_set_UTMI_REG15_VBG(U8 data);
- /*! \brief Reads the bit group 'VBG' of register 'USB_PHY_UTMI_REG15'. */
- U8 GH_USB_PHY_get_UTMI_REG15_VBG(void);
- /*! \brief Writes the bit group 'VBGR' of register 'USB_PHY_UTMI_REG15'. */
- void GH_USB_PHY_set_UTMI_REG15_VBGR(U8 data);
- /*! \brief Reads the bit group 'VBGR' of register 'USB_PHY_UTMI_REG15'. */
- U8 GH_USB_PHY_get_UTMI_REG15_VBGR(void);
- /*! \brief Writes the bit group 'Power_Good_POR' of register 'USB_PHY_UTMI_REG15'. */
- void GH_USB_PHY_set_UTMI_REG15_Power_Good_POR(U8 data);
- /*! \brief Reads the bit group 'Power_Good_POR' of register 'USB_PHY_UTMI_REG15'. */
- U8 GH_USB_PHY_get_UTMI_REG15_Power_Good_POR(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_USB_PHY_set_UTMI_REG15(U16 data)
- {
- *(volatile U16 *)REG_USB_PHY_UTMI_REG15 = data;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG15] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG15,data,data);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_UTMI_REG15(void)
- {
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG15);
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG15] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG15,value);
- #endif
- return value;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG15_VSPOUT(U8 data)
- {
- GH_USB_PHY_UTMI_REG15_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG15;
- d.bitc.vspout = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG15 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG15_VSPOUT] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG15,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG15_VSPOUT(void)
- {
- GH_USB_PHY_UTMI_REG15_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG15);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG15_VSPOUT] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG15,value);
- #endif
- return tmp_value.bitc.vspout;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG15_VSMOUT(U8 data)
- {
- GH_USB_PHY_UTMI_REG15_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG15;
- d.bitc.vsmout = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG15 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG15_VSMOUT] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG15,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG15_VSMOUT(void)
- {
- GH_USB_PHY_UTMI_REG15_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG15);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG15_VSMOUT] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG15,value);
- #endif
- return tmp_value.bitc.vsmout;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG15_VCPOUT(U8 data)
- {
- GH_USB_PHY_UTMI_REG15_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG15;
- d.bitc.vcpout = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG15 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG15_VCPOUT] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG15,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG15_VCPOUT(void)
- {
- GH_USB_PHY_UTMI_REG15_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG15);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG15_VCPOUT] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG15,value);
- #endif
- return tmp_value.bitc.vcpout;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG15_VCMOUT(U8 data)
- {
- GH_USB_PHY_UTMI_REG15_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG15;
- d.bitc.vcmout = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG15 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG15_VCMOUT] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG15,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG15_VCMOUT(void)
- {
- GH_USB_PHY_UTMI_REG15_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG15);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG15_VCMOUT] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG15,value);
- #endif
- return tmp_value.bitc.vcmout;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG15_PGD(U8 data)
- {
- GH_USB_PHY_UTMI_REG15_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG15;
- d.bitc.pgd = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG15 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG15_PGD] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG15,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG15_PGD(void)
- {
- GH_USB_PHY_UTMI_REG15_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG15);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG15_PGD] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG15,value);
- #endif
- return tmp_value.bitc.pgd;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG15_Power_Good_33V(U8 data)
- {
- GH_USB_PHY_UTMI_REG15_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG15;
- d.bitc.power_good_33v = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG15 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG15_Power_Good_33V] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG15,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG15_Power_Good_33V(void)
- {
- GH_USB_PHY_UTMI_REG15_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG15);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG15_Power_Good_33V] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG15,value);
- #endif
- return tmp_value.bitc.power_good_33v;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG15_Power_Good(U8 data)
- {
- GH_USB_PHY_UTMI_REG15_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG15;
- d.bitc.power_good = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG15 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG15_Power_Good] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG15,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG15_Power_Good(void)
- {
- GH_USB_PHY_UTMI_REG15_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG15);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG15_Power_Good] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG15,value);
- #endif
- return tmp_value.bitc.power_good;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG15_VBG(U8 data)
- {
- GH_USB_PHY_UTMI_REG15_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG15;
- d.bitc.vbg = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG15 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG15_VBG] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG15,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG15_VBG(void)
- {
- GH_USB_PHY_UTMI_REG15_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG15);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG15_VBG] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG15,value);
- #endif
- return tmp_value.bitc.vbg;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG15_VBGR(U8 data)
- {
- GH_USB_PHY_UTMI_REG15_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG15;
- d.bitc.vbgr = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG15 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG15_VBGR] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG15,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG15_VBGR(void)
- {
- GH_USB_PHY_UTMI_REG15_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG15);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG15_VBGR] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG15,value);
- #endif
- return tmp_value.bitc.vbgr;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG15_Power_Good_POR(U8 data)
- {
- GH_USB_PHY_UTMI_REG15_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG15;
- d.bitc.power_good_por = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG15 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG15_Power_Good_POR] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG15,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG15_Power_Good_POR(void)
- {
- GH_USB_PHY_UTMI_REG15_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG15);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG15_Power_Good_POR] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG15,value);
- #endif
- return tmp_value.bitc.power_good_por;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register USB_PHY_UTMI_REG16 (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'USB_PHY_UTMI_REG16'. */
- void GH_USB_PHY_set_UTMI_REG16(U16 data);
- /*! \brief Reads the register 'USB_PHY_UTMI_REG16'. */
- U16 GH_USB_PHY_get_UTMI_REG16(void);
- /*! \brief Writes the bit group 'TX_text_clock' of register 'USB_PHY_UTMI_REG16'. */
- void GH_USB_PHY_set_UTMI_REG16_TX_text_clock(U8 data);
- /*! \brief Reads the bit group 'TX_text_clock' of register 'USB_PHY_UTMI_REG16'. */
- U8 GH_USB_PHY_get_UTMI_REG16_TX_text_clock(void);
- /*! \brief Writes the bit group 'TX_output_adjust' of register 'USB_PHY_UTMI_REG16'. */
- void GH_USB_PHY_set_UTMI_REG16_TX_output_adjust(U8 data);
- /*! \brief Reads the bit group 'TX_output_adjust' of register 'USB_PHY_UTMI_REG16'. */
- U8 GH_USB_PHY_get_UTMI_REG16_TX_output_adjust(void);
- /*! \brief Writes the bit group 'TX_pre_emphasis_adjust' of register 'USB_PHY_UTMI_REG16'. */
- void GH_USB_PHY_set_UTMI_REG16_TX_pre_emphasis_adjust(U8 data);
- /*! \brief Reads the bit group 'TX_pre_emphasis_adjust' of register 'USB_PHY_UTMI_REG16'. */
- U8 GH_USB_PHY_get_UTMI_REG16_TX_pre_emphasis_adjust(void);
- /*! \brief Writes the bit group 'TX_pre_emphasis_bias' of register 'USB_PHY_UTMI_REG16'. */
- void GH_USB_PHY_set_UTMI_REG16_TX_pre_emphasis_bias(U8 data);
- /*! \brief Reads the bit group 'TX_pre_emphasis_bias' of register 'USB_PHY_UTMI_REG16'. */
- U8 GH_USB_PHY_get_UTMI_REG16_TX_pre_emphasis_bias(void);
- /*! \brief Writes the bit group 'TX_current_bias' of register 'USB_PHY_UTMI_REG16'. */
- void GH_USB_PHY_set_UTMI_REG16_TX_current_bias(U8 data);
- /*! \brief Reads the bit group 'TX_current_bias' of register 'USB_PHY_UTMI_REG16'. */
- U8 GH_USB_PHY_get_UTMI_REG16_TX_current_bias(void);
- /*! \brief Writes the bit group 'HS_RTERM' of register 'USB_PHY_UTMI_REG16'. */
- void GH_USB_PHY_set_UTMI_REG16_HS_RTERM(U8 data);
- /*! \brief Reads the bit group 'HS_RTERM' of register 'USB_PHY_UTMI_REG16'. */
- U8 GH_USB_PHY_get_UTMI_REG16_HS_RTERM(void);
- /*! \brief Writes the bit group 'HS_TX' of register 'USB_PHY_UTMI_REG16'. */
- void GH_USB_PHY_set_UTMI_REG16_HS_TX(U8 data);
- /*! \brief Reads the bit group 'HS_TX' of register 'USB_PHY_UTMI_REG16'. */
- U8 GH_USB_PHY_get_UTMI_REG16_HS_TX(void);
- /*! \brief Writes the bit group 'VBUSDET_NC' of register 'USB_PHY_UTMI_REG16'. */
- void GH_USB_PHY_set_UTMI_REG16_VBUSDET_NC(U8 data);
- /*! \brief Reads the bit group 'VBUSDET_NC' of register 'USB_PHY_UTMI_REG16'. */
- U8 GH_USB_PHY_get_UTMI_REG16_VBUSDET_NC(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_USB_PHY_set_UTMI_REG16(U16 data)
- {
- *(volatile U16 *)REG_USB_PHY_UTMI_REG16 = data;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG16] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG16,data,data);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_UTMI_REG16(void)
- {
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG16);
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG16] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG16,value);
- #endif
- return value;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG16_TX_text_clock(U8 data)
- {
- GH_USB_PHY_UTMI_REG16_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG16;
- d.bitc.tx_text_clock = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG16 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG16_TX_text_clock] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG16,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG16_TX_text_clock(void)
- {
- GH_USB_PHY_UTMI_REG16_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG16);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG16_TX_text_clock] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG16,value);
- #endif
- return tmp_value.bitc.tx_text_clock;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG16_TX_output_adjust(U8 data)
- {
- GH_USB_PHY_UTMI_REG16_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG16;
- d.bitc.tx_output_adjust = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG16 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG16_TX_output_adjust] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG16,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG16_TX_output_adjust(void)
- {
- GH_USB_PHY_UTMI_REG16_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG16);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG16_TX_output_adjust] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG16,value);
- #endif
- return tmp_value.bitc.tx_output_adjust;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG16_TX_pre_emphasis_adjust(U8 data)
- {
- GH_USB_PHY_UTMI_REG16_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG16;
- d.bitc.tx_pre_emphasis_adjust = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG16 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG16_TX_pre_emphasis_adjust] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG16,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG16_TX_pre_emphasis_adjust(void)
- {
- GH_USB_PHY_UTMI_REG16_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG16);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG16_TX_pre_emphasis_adjust] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG16,value);
- #endif
- return tmp_value.bitc.tx_pre_emphasis_adjust;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG16_TX_pre_emphasis_bias(U8 data)
- {
- GH_USB_PHY_UTMI_REG16_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG16;
- d.bitc.tx_pre_emphasis_bias = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG16 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG16_TX_pre_emphasis_bias] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG16,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG16_TX_pre_emphasis_bias(void)
- {
- GH_USB_PHY_UTMI_REG16_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG16);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG16_TX_pre_emphasis_bias] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG16,value);
- #endif
- return tmp_value.bitc.tx_pre_emphasis_bias;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG16_TX_current_bias(U8 data)
- {
- GH_USB_PHY_UTMI_REG16_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG16;
- d.bitc.tx_current_bias = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG16 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG16_TX_current_bias] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG16,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG16_TX_current_bias(void)
- {
- GH_USB_PHY_UTMI_REG16_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG16);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG16_TX_current_bias] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG16,value);
- #endif
- return tmp_value.bitc.tx_current_bias;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG16_HS_RTERM(U8 data)
- {
- GH_USB_PHY_UTMI_REG16_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG16;
- d.bitc.hs_rterm = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG16 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG16_HS_RTERM] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG16,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG16_HS_RTERM(void)
- {
- GH_USB_PHY_UTMI_REG16_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG16);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG16_HS_RTERM] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG16,value);
- #endif
- return tmp_value.bitc.hs_rterm;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG16_HS_TX(U8 data)
- {
- GH_USB_PHY_UTMI_REG16_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG16;
- d.bitc.hs_tx = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG16 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG16_HS_TX] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG16,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG16_HS_TX(void)
- {
- GH_USB_PHY_UTMI_REG16_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG16);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG16_HS_TX] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG16,value);
- #endif
- return tmp_value.bitc.hs_tx;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG16_VBUSDET_NC(U8 data)
- {
- GH_USB_PHY_UTMI_REG16_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG16;
- d.bitc.vbusdet_nc = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG16 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG16_VBUSDET_NC] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG16,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG16_VBUSDET_NC(void)
- {
- GH_USB_PHY_UTMI_REG16_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG16);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG16_VBUSDET_NC] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG16,value);
- #endif
- return tmp_value.bitc.vbusdet_nc;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register USB_PHY_UTMI_REG17 (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'USB_PHY_UTMI_REG17'. */
- void GH_USB_PHY_set_UTMI_REG17(U16 data);
- /*! \brief Reads the register 'USB_PHY_UTMI_REG17'. */
- U16 GH_USB_PHY_get_UTMI_REG17(void);
- /*! \brief Writes the bit group 'HS_RX' of register 'USB_PHY_UTMI_REG17'. */
- void GH_USB_PHY_set_UTMI_REG17_HS_RX(U8 data);
- /*! \brief Reads the bit group 'HS_RX' of register 'USB_PHY_UTMI_REG17'. */
- U8 GH_USB_PHY_get_UTMI_REG17_HS_RX(void);
- /*! \brief Writes the bit group 'RTERM' of register 'USB_PHY_UTMI_REG17'. */
- void GH_USB_PHY_set_UTMI_REG17_RTERM(U8 data);
- /*! \brief Reads the bit group 'RTERM' of register 'USB_PHY_UTMI_REG17'. */
- U8 GH_USB_PHY_get_UTMI_REG17_RTERM(void);
- /*! \brief Writes the bit group 'HS_RTERM' of register 'USB_PHY_UTMI_REG17'. */
- void GH_USB_PHY_set_UTMI_REG17_HS_RTERM(U8 data);
- /*! \brief Reads the bit group 'HS_RTERM' of register 'USB_PHY_UTMI_REG17'. */
- U8 GH_USB_PHY_get_UTMI_REG17_HS_RTERM(void);
- /*! \brief Writes the bit group 'HS_TX_ITEST' of register 'USB_PHY_UTMI_REG17'. */
- void GH_USB_PHY_set_UTMI_REG17_HS_TX_ITEST(U8 data);
- /*! \brief Reads the bit group 'HS_TX_ITEST' of register 'USB_PHY_UTMI_REG17'. */
- U8 GH_USB_PHY_get_UTMI_REG17_HS_TX_ITEST(void);
- /*! \brief Writes the bit group 'Mute' of register 'USB_PHY_UTMI_REG17'. */
- void GH_USB_PHY_set_UTMI_REG17_Mute(U8 data);
- /*! \brief Reads the bit group 'Mute' of register 'USB_PHY_UTMI_REG17'. */
- U8 GH_USB_PHY_get_UTMI_REG17_Mute(void);
- /*! \brief Writes the bit group 'pre_emphasis_en' of register 'USB_PHY_UTMI_REG17'. */
- void GH_USB_PHY_set_UTMI_REG17_pre_emphasis_en(U8 data);
- /*! \brief Reads the bit group 'pre_emphasis_en' of register 'USB_PHY_UTMI_REG17'. */
- U8 GH_USB_PHY_get_UTMI_REG17_pre_emphasis_en(void);
- /*! \brief Writes the bit group 'transition_edge' of register 'USB_PHY_UTMI_REG17'. */
- void GH_USB_PHY_set_UTMI_REG17_transition_edge(U8 data);
- /*! \brief Reads the bit group 'transition_edge' of register 'USB_PHY_UTMI_REG17'. */
- U8 GH_USB_PHY_get_UTMI_REG17_transition_edge(void);
- /*! \brief Writes the bit group 'enable_edge' of register 'USB_PHY_UTMI_REG17'. */
- void GH_USB_PHY_set_UTMI_REG17_enable_edge(U8 data);
- /*! \brief Reads the bit group 'enable_edge' of register 'USB_PHY_UTMI_REG17'. */
- U8 GH_USB_PHY_get_UTMI_REG17_enable_edge(void);
- /*! \brief Writes the bit group 'clock_output' of register 'USB_PHY_UTMI_REG17'. */
- void GH_USB_PHY_set_UTMI_REG17_clock_output(U8 data);
- /*! \brief Reads the bit group 'clock_output' of register 'USB_PHY_UTMI_REG17'. */
- U8 GH_USB_PHY_get_UTMI_REG17_clock_output(void);
- /*! \brief Writes the bit group 'source' of register 'USB_PHY_UTMI_REG17'. */
- void GH_USB_PHY_set_UTMI_REG17_source(U8 data);
- /*! \brief Reads the bit group 'source' of register 'USB_PHY_UTMI_REG17'. */
- U8 GH_USB_PHY_get_UTMI_REG17_source(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_USB_PHY_set_UTMI_REG17(U16 data)
- {
- *(volatile U16 *)REG_USB_PHY_UTMI_REG17 = data;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG17] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG17,data,data);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_UTMI_REG17(void)
- {
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG17);
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG17] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG17,value);
- #endif
- return value;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG17_HS_RX(U8 data)
- {
- GH_USB_PHY_UTMI_REG17_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG17;
- d.bitc.hs_rx = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG17 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG17_HS_RX] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG17,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG17_HS_RX(void)
- {
- GH_USB_PHY_UTMI_REG17_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG17);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG17_HS_RX] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG17,value);
- #endif
- return tmp_value.bitc.hs_rx;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG17_RTERM(U8 data)
- {
- GH_USB_PHY_UTMI_REG17_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG17;
- d.bitc.rterm = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG17 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG17_RTERM] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG17,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG17_RTERM(void)
- {
- GH_USB_PHY_UTMI_REG17_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG17);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG17_RTERM] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG17,value);
- #endif
- return tmp_value.bitc.rterm;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG17_HS_RTERM(U8 data)
- {
- GH_USB_PHY_UTMI_REG17_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG17;
- d.bitc.hs_rterm = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG17 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG17_HS_RTERM] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG17,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG17_HS_RTERM(void)
- {
- GH_USB_PHY_UTMI_REG17_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG17);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG17_HS_RTERM] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG17,value);
- #endif
- return tmp_value.bitc.hs_rterm;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG17_HS_TX_ITEST(U8 data)
- {
- GH_USB_PHY_UTMI_REG17_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG17;
- d.bitc.hs_tx_itest = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG17 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG17_HS_TX_ITEST] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG17,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG17_HS_TX_ITEST(void)
- {
- GH_USB_PHY_UTMI_REG17_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG17);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG17_HS_TX_ITEST] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG17,value);
- #endif
- return tmp_value.bitc.hs_tx_itest;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG17_Mute(U8 data)
- {
- GH_USB_PHY_UTMI_REG17_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG17;
- d.bitc.mute = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG17 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG17_Mute] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG17,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG17_Mute(void)
- {
- GH_USB_PHY_UTMI_REG17_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG17);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG17_Mute] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG17,value);
- #endif
- return tmp_value.bitc.mute;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG17_pre_emphasis_en(U8 data)
- {
- GH_USB_PHY_UTMI_REG17_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG17;
- d.bitc.pre_emphasis_en = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG17 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG17_pre_emphasis_en] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG17,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG17_pre_emphasis_en(void)
- {
- GH_USB_PHY_UTMI_REG17_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG17);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG17_pre_emphasis_en] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG17,value);
- #endif
- return tmp_value.bitc.pre_emphasis_en;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG17_transition_edge(U8 data)
- {
- GH_USB_PHY_UTMI_REG17_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG17;
- d.bitc.transition_edge = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG17 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG17_transition_edge] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG17,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG17_transition_edge(void)
- {
- GH_USB_PHY_UTMI_REG17_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG17);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG17_transition_edge] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG17,value);
- #endif
- return tmp_value.bitc.transition_edge;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG17_enable_edge(U8 data)
- {
- GH_USB_PHY_UTMI_REG17_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG17;
- d.bitc.enable_edge = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG17 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG17_enable_edge] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG17,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG17_enable_edge(void)
- {
- GH_USB_PHY_UTMI_REG17_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG17);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG17_enable_edge] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG17,value);
- #endif
- return tmp_value.bitc.enable_edge;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG17_clock_output(U8 data)
- {
- GH_USB_PHY_UTMI_REG17_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG17;
- d.bitc.clock_output = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG17 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG17_clock_output] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG17,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG17_clock_output(void)
- {
- GH_USB_PHY_UTMI_REG17_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG17);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG17_clock_output] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG17,value);
- #endif
- return tmp_value.bitc.clock_output;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG17_source(U8 data)
- {
- GH_USB_PHY_UTMI_REG17_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG17;
- d.bitc.source = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG17 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG17_source] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG17,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG17_source(void)
- {
- GH_USB_PHY_UTMI_REG17_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG17);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG17_source] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG17,value);
- #endif
- return tmp_value.bitc.source;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register USB_PHY_UTMI_REG18 (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'USB_PHY_UTMI_REG18'. */
- void GH_USB_PHY_set_UTMI_REG18(U16 data);
- /*! \brief Reads the register 'USB_PHY_UTMI_REG18'. */
- U16 GH_USB_PHY_get_UTMI_REG18(void);
- /*! \brief Writes the bit group 'lock' of register 'USB_PHY_UTMI_REG18'. */
- void GH_USB_PHY_set_UTMI_REG18_lock(U8 data);
- /*! \brief Reads the bit group 'lock' of register 'USB_PHY_UTMI_REG18'. */
- U8 GH_USB_PHY_get_UTMI_REG18_lock(void);
- /*! \brief Writes the bit group 'flag1' of register 'USB_PHY_UTMI_REG18'. */
- void GH_USB_PHY_set_UTMI_REG18_flag1(U8 data);
- /*! \brief Reads the bit group 'flag1' of register 'USB_PHY_UTMI_REG18'. */
- U8 GH_USB_PHY_get_UTMI_REG18_flag1(void);
- /*! \brief Writes the bit group 'flag2' of register 'USB_PHY_UTMI_REG18'. */
- void GH_USB_PHY_set_UTMI_REG18_flag2(U8 data);
- /*! \brief Reads the bit group 'flag2' of register 'USB_PHY_UTMI_REG18'. */
- U8 GH_USB_PHY_get_UTMI_REG18_flag2(void);
- /*! \brief Writes the bit group 'test' of register 'USB_PHY_UTMI_REG18'. */
- void GH_USB_PHY_set_UTMI_REG18_test(U8 data);
- /*! \brief Reads the bit group 'test' of register 'USB_PHY_UTMI_REG18'. */
- U8 GH_USB_PHY_get_UTMI_REG18_test(void);
- /*! \brief Writes the bit group 'Power_good' of register 'USB_PHY_UTMI_REG18'. */
- void GH_USB_PHY_set_UTMI_REG18_Power_good(U8 data);
- /*! \brief Reads the bit group 'Power_good' of register 'USB_PHY_UTMI_REG18'. */
- U8 GH_USB_PHY_get_UTMI_REG18_Power_good(void);
- /*! \brief Writes the bit group 'Vbus' of register 'USB_PHY_UTMI_REG18'. */
- void GH_USB_PHY_set_UTMI_REG18_Vbus(U8 data);
- /*! \brief Reads the bit group 'Vbus' of register 'USB_PHY_UTMI_REG18'. */
- U8 GH_USB_PHY_get_UTMI_REG18_Vbus(void);
- /*! \brief Writes the bit group 'OTG' of register 'USB_PHY_UTMI_REG18'. */
- void GH_USB_PHY_set_UTMI_REG18_OTG(U8 data);
- /*! \brief Reads the bit group 'OTG' of register 'USB_PHY_UTMI_REG18'. */
- U8 GH_USB_PHY_get_UTMI_REG18_OTG(void);
- /*! \brief Writes the bit group 'CID' of register 'USB_PHY_UTMI_REG18'. */
- void GH_USB_PHY_set_UTMI_REG18_CID(U8 data);
- /*! \brief Reads the bit group 'CID' of register 'USB_PHY_UTMI_REG18'. */
- U8 GH_USB_PHY_get_UTMI_REG18_CID(void);
- /*! \brief Writes the bit group 'AVALID_ATOP' of register 'USB_PHY_UTMI_REG18'. */
- void GH_USB_PHY_set_UTMI_REG18_AVALID_ATOP(U8 data);
- /*! \brief Reads the bit group 'AVALID_ATOP' of register 'USB_PHY_UTMI_REG18'. */
- U8 GH_USB_PHY_get_UTMI_REG18_AVALID_ATOP(void);
- /*! \brief Writes the bit group 'HS_DISCONNECT' of register 'USB_PHY_UTMI_REG18'. */
- void GH_USB_PHY_set_UTMI_REG18_HS_DISCONNECT(U8 data);
- /*! \brief Reads the bit group 'HS_DISCONNECT' of register 'USB_PHY_UTMI_REG18'. */
- U8 GH_USB_PHY_get_UTMI_REG18_HS_DISCONNECT(void);
- /*! \brief Writes the bit group 'HS_RX_DATA' of register 'USB_PHY_UTMI_REG18'. */
- void GH_USB_PHY_set_UTMI_REG18_HS_RX_DATA(U8 data);
- /*! \brief Reads the bit group 'HS_RX_DATA' of register 'USB_PHY_UTMI_REG18'. */
- U8 GH_USB_PHY_get_UTMI_REG18_HS_RX_DATA(void);
- /*! \brief Writes the bit group 'HS_RX_CHIRP' of register 'USB_PHY_UTMI_REG18'. */
- void GH_USB_PHY_set_UTMI_REG18_HS_RX_CHIRP(U8 data);
- /*! \brief Reads the bit group 'HS_RX_CHIRP' of register 'USB_PHY_UTMI_REG18'. */
- U8 GH_USB_PHY_get_UTMI_REG18_HS_RX_CHIRP(void);
- /*! \brief Writes the bit group 'FL_LINESTATE0' of register 'USB_PHY_UTMI_REG18'. */
- void GH_USB_PHY_set_UTMI_REG18_FL_LINESTATE0(U8 data);
- /*! \brief Reads the bit group 'FL_LINESTATE0' of register 'USB_PHY_UTMI_REG18'. */
- U8 GH_USB_PHY_get_UTMI_REG18_FL_LINESTATE0(void);
- /*! \brief Writes the bit group 'FL_LINESTATE1' of register 'USB_PHY_UTMI_REG18'. */
- void GH_USB_PHY_set_UTMI_REG18_FL_LINESTATE1(U8 data);
- /*! \brief Reads the bit group 'FL_LINESTATE1' of register 'USB_PHY_UTMI_REG18'. */
- U8 GH_USB_PHY_get_UTMI_REG18_FL_LINESTATE1(void);
- /*! \brief Writes the bit group 'failed' of register 'USB_PHY_UTMI_REG18'. */
- void GH_USB_PHY_set_UTMI_REG18_failed(U8 data);
- /*! \brief Reads the bit group 'failed' of register 'USB_PHY_UTMI_REG18'. */
- U8 GH_USB_PHY_get_UTMI_REG18_failed(void);
- /*! \brief Writes the bit group 'finish' of register 'USB_PHY_UTMI_REG18'. */
- void GH_USB_PHY_set_UTMI_REG18_finish(U8 data);
- /*! \brief Reads the bit group 'finish' of register 'USB_PHY_UTMI_REG18'. */
- U8 GH_USB_PHY_get_UTMI_REG18_finish(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_USB_PHY_set_UTMI_REG18(U16 data)
- {
- *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = data;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,data,data);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_UTMI_REG18(void)
- {
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,value);
- #endif
- return value;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG18_lock(U8 data)
- {
- GH_USB_PHY_UTMI_REG18_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG18;
- d.bitc.lock = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18_lock] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG18_lock(void)
- {
- GH_USB_PHY_UTMI_REG18_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18_lock] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,value);
- #endif
- return tmp_value.bitc.lock;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG18_flag1(U8 data)
- {
- GH_USB_PHY_UTMI_REG18_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG18;
- d.bitc.flag1 = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18_flag1] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG18_flag1(void)
- {
- GH_USB_PHY_UTMI_REG18_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18_flag1] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,value);
- #endif
- return tmp_value.bitc.flag1;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG18_flag2(U8 data)
- {
- GH_USB_PHY_UTMI_REG18_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG18;
- d.bitc.flag2 = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18_flag2] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG18_flag2(void)
- {
- GH_USB_PHY_UTMI_REG18_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18_flag2] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,value);
- #endif
- return tmp_value.bitc.flag2;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG18_test(U8 data)
- {
- GH_USB_PHY_UTMI_REG18_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG18;
- d.bitc.test = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18_test] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG18_test(void)
- {
- GH_USB_PHY_UTMI_REG18_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18_test] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,value);
- #endif
- return tmp_value.bitc.test;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG18_Power_good(U8 data)
- {
- GH_USB_PHY_UTMI_REG18_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG18;
- d.bitc.power_good = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18_Power_good] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG18_Power_good(void)
- {
- GH_USB_PHY_UTMI_REG18_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18_Power_good] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,value);
- #endif
- return tmp_value.bitc.power_good;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG18_Vbus(U8 data)
- {
- GH_USB_PHY_UTMI_REG18_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG18;
- d.bitc.vbus = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18_Vbus] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG18_Vbus(void)
- {
- GH_USB_PHY_UTMI_REG18_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18_Vbus] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,value);
- #endif
- return tmp_value.bitc.vbus;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG18_OTG(U8 data)
- {
- GH_USB_PHY_UTMI_REG18_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG18;
- d.bitc.otg = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18_OTG] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG18_OTG(void)
- {
- GH_USB_PHY_UTMI_REG18_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18_OTG] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,value);
- #endif
- return tmp_value.bitc.otg;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG18_CID(U8 data)
- {
- GH_USB_PHY_UTMI_REG18_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG18;
- d.bitc.cid = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18_CID] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG18_CID(void)
- {
- GH_USB_PHY_UTMI_REG18_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18_CID] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,value);
- #endif
- return tmp_value.bitc.cid;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG18_AVALID_ATOP(U8 data)
- {
- GH_USB_PHY_UTMI_REG18_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG18;
- d.bitc.avalid_atop = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18_AVALID_ATOP] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG18_AVALID_ATOP(void)
- {
- GH_USB_PHY_UTMI_REG18_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18_AVALID_ATOP] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,value);
- #endif
- return tmp_value.bitc.avalid_atop;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG18_HS_DISCONNECT(U8 data)
- {
- GH_USB_PHY_UTMI_REG18_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG18;
- d.bitc.hs_disconnect = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18_HS_DISCONNECT] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG18_HS_DISCONNECT(void)
- {
- GH_USB_PHY_UTMI_REG18_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18_HS_DISCONNECT] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,value);
- #endif
- return tmp_value.bitc.hs_disconnect;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG18_HS_RX_DATA(U8 data)
- {
- GH_USB_PHY_UTMI_REG18_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG18;
- d.bitc.hs_rx_data = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18_HS_RX_DATA] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG18_HS_RX_DATA(void)
- {
- GH_USB_PHY_UTMI_REG18_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18_HS_RX_DATA] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,value);
- #endif
- return tmp_value.bitc.hs_rx_data;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG18_HS_RX_CHIRP(U8 data)
- {
- GH_USB_PHY_UTMI_REG18_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG18;
- d.bitc.hs_rx_chirp = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18_HS_RX_CHIRP] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG18_HS_RX_CHIRP(void)
- {
- GH_USB_PHY_UTMI_REG18_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18_HS_RX_CHIRP] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,value);
- #endif
- return tmp_value.bitc.hs_rx_chirp;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG18_FL_LINESTATE0(U8 data)
- {
- GH_USB_PHY_UTMI_REG18_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG18;
- d.bitc.fl_linestate0 = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18_FL_LINESTATE0] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG18_FL_LINESTATE0(void)
- {
- GH_USB_PHY_UTMI_REG18_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18_FL_LINESTATE0] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,value);
- #endif
- return tmp_value.bitc.fl_linestate0;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG18_FL_LINESTATE1(U8 data)
- {
- GH_USB_PHY_UTMI_REG18_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG18;
- d.bitc.fl_linestate1 = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18_FL_LINESTATE1] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG18_FL_LINESTATE1(void)
- {
- GH_USB_PHY_UTMI_REG18_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18_FL_LINESTATE1] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,value);
- #endif
- return tmp_value.bitc.fl_linestate1;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG18_failed(U8 data)
- {
- GH_USB_PHY_UTMI_REG18_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG18;
- d.bitc.failed = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18_failed] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG18_failed(void)
- {
- GH_USB_PHY_UTMI_REG18_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18_failed] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,value);
- #endif
- return tmp_value.bitc.failed;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG18_finish(U8 data)
- {
- GH_USB_PHY_UTMI_REG18_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG18;
- d.bitc.finish = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG18 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG18_finish] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG18_finish(void)
- {
- GH_USB_PHY_UTMI_REG18_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG18);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG18_finish] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG18,value);
- #endif
- return tmp_value.bitc.finish;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register USB_PHY_UTMI_REG19 (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'USB_PHY_UTMI_REG19'. */
- void GH_USB_PHY_set_UTMI_REG19(U16 data);
- /*! \brief Reads the register 'USB_PHY_UTMI_REG19'. */
- U16 GH_USB_PHY_get_UTMI_REG19(void);
- /*! \brief Writes the bit group 'pg_tx_length' of register 'USB_PHY_UTMI_REG19'. */
- void GH_USB_PHY_set_UTMI_REG19_pg_tx_length(U8 data);
- /*! \brief Reads the bit group 'pg_tx_length' of register 'USB_PHY_UTMI_REG19'. */
- U8 GH_USB_PHY_get_UTMI_REG19_pg_tx_length(void);
- /*! \brief Writes the bit group 'pg_tx_go' of register 'USB_PHY_UTMI_REG19'. */
- void GH_USB_PHY_set_UTMI_REG19_pg_tx_go(U8 data);
- /*! \brief Reads the bit group 'pg_tx_go' of register 'USB_PHY_UTMI_REG19'. */
- U8 GH_USB_PHY_get_UTMI_REG19_pg_tx_go(void);
- /*! \brief Writes the bit group 'pg_tx_mode' of register 'USB_PHY_UTMI_REG19'. */
- void GH_USB_PHY_set_UTMI_REG19_pg_tx_mode(U8 data);
- /*! \brief Reads the bit group 'pg_tx_mode' of register 'USB_PHY_UTMI_REG19'. */
- U8 GH_USB_PHY_get_UTMI_REG19_pg_tx_mode(void);
- /*! \brief Writes the bit group 'pg_tx_fixed_data' of register 'USB_PHY_UTMI_REG19'. */
- void GH_USB_PHY_set_UTMI_REG19_pg_tx_fixed_data(U8 data);
- /*! \brief Reads the bit group 'pg_tx_fixed_data' of register 'USB_PHY_UTMI_REG19'. */
- U8 GH_USB_PHY_get_UTMI_REG19_pg_tx_fixed_data(void);
- /*! \brief Writes the bit group 'continuous_mode' of register 'USB_PHY_UTMI_REG19'. */
- void GH_USB_PHY_set_UTMI_REG19_continuous_mode(U8 data);
- /*! \brief Reads the bit group 'continuous_mode' of register 'USB_PHY_UTMI_REG19'. */
- U8 GH_USB_PHY_get_UTMI_REG19_continuous_mode(void);
- /*! \brief Writes the bit group 'receiving_mode' of register 'USB_PHY_UTMI_REG19'. */
- void GH_USB_PHY_set_UTMI_REG19_receiving_mode(U8 data);
- /*! \brief Reads the bit group 'receiving_mode' of register 'USB_PHY_UTMI_REG19'. */
- U8 GH_USB_PHY_get_UTMI_REG19_receiving_mode(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_USB_PHY_set_UTMI_REG19(U16 data)
- {
- *(volatile U16 *)REG_USB_PHY_UTMI_REG19 = data;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG19] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG19,data,data);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_UTMI_REG19(void)
- {
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG19);
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG19] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG19,value);
- #endif
- return value;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG19_pg_tx_length(U8 data)
- {
- GH_USB_PHY_UTMI_REG19_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG19;
- d.bitc.pg_tx_length = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG19 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG19_pg_tx_length] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG19,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG19_pg_tx_length(void)
- {
- GH_USB_PHY_UTMI_REG19_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG19);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG19_pg_tx_length] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG19,value);
- #endif
- return tmp_value.bitc.pg_tx_length;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG19_pg_tx_go(U8 data)
- {
- GH_USB_PHY_UTMI_REG19_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG19;
- d.bitc.pg_tx_go = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG19 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG19_pg_tx_go] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG19,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG19_pg_tx_go(void)
- {
- GH_USB_PHY_UTMI_REG19_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG19);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG19_pg_tx_go] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG19,value);
- #endif
- return tmp_value.bitc.pg_tx_go;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG19_pg_tx_mode(U8 data)
- {
- GH_USB_PHY_UTMI_REG19_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG19;
- d.bitc.pg_tx_mode = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG19 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG19_pg_tx_mode] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG19,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG19_pg_tx_mode(void)
- {
- GH_USB_PHY_UTMI_REG19_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG19);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG19_pg_tx_mode] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG19,value);
- #endif
- return tmp_value.bitc.pg_tx_mode;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG19_pg_tx_fixed_data(U8 data)
- {
- GH_USB_PHY_UTMI_REG19_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG19;
- d.bitc.pg_tx_fixed_data = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG19 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG19_pg_tx_fixed_data] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG19,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG19_pg_tx_fixed_data(void)
- {
- GH_USB_PHY_UTMI_REG19_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG19);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG19_pg_tx_fixed_data] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG19,value);
- #endif
- return tmp_value.bitc.pg_tx_fixed_data;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG19_continuous_mode(U8 data)
- {
- GH_USB_PHY_UTMI_REG19_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG19;
- d.bitc.continuous_mode = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG19 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG19_continuous_mode] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG19,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG19_continuous_mode(void)
- {
- GH_USB_PHY_UTMI_REG19_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG19);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG19_continuous_mode] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG19,value);
- #endif
- return tmp_value.bitc.continuous_mode;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG19_receiving_mode(U8 data)
- {
- GH_USB_PHY_UTMI_REG19_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG19;
- d.bitc.receiving_mode = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG19 = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG19_receiving_mode] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG19,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG19_receiving_mode(void)
- {
- GH_USB_PHY_UTMI_REG19_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG19);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG19_receiving_mode] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG19,value);
- #endif
- return tmp_value.bitc.receiving_mode;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register USB_PHY_UTMI_REG1A (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'USB_PHY_UTMI_REG1A'. */
- void GH_USB_PHY_set_UTMI_REG1A(U16 data);
- /*! \brief Reads the register 'USB_PHY_UTMI_REG1A'. */
- U16 GH_USB_PHY_get_UTMI_REG1A(void);
- /*! \brief Writes the bit group 'pg_tx_data' of register 'USB_PHY_UTMI_REG1A'. */
- void GH_USB_PHY_set_UTMI_REG1A_pg_tx_data(U16 data);
- /*! \brief Reads the bit group 'pg_tx_data' of register 'USB_PHY_UTMI_REG1A'. */
- U16 GH_USB_PHY_get_UTMI_REG1A_pg_tx_data(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_USB_PHY_set_UTMI_REG1A(U16 data)
- {
- *(volatile U16 *)REG_USB_PHY_UTMI_REG1A = data;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1A] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG1A,data,data);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_UTMI_REG1A(void)
- {
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1A);
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1A] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG1A,value);
- #endif
- return value;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG1A_pg_tx_data(U16 data)
- {
- GH_USB_PHY_UTMI_REG1A_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1A;
- d.bitc.pg_tx_data = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG1A = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1A_pg_tx_data] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG1A,d.all,d.all);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_UTMI_REG1A_pg_tx_data(void)
- {
- GH_USB_PHY_UTMI_REG1A_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1A);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1A_pg_tx_data] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG1A,value);
- #endif
- return tmp_value.bitc.pg_tx_data;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register USB_PHY_UTMI_REG1B (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'USB_PHY_UTMI_REG1B'. */
- void GH_USB_PHY_set_UTMI_REG1B(U16 data);
- /*! \brief Reads the register 'USB_PHY_UTMI_REG1B'. */
- U16 GH_USB_PHY_get_UTMI_REG1B(void);
- /*! \brief Writes the bit group 'pg_tx_inc' of register 'USB_PHY_UTMI_REG1B'. */
- void GH_USB_PHY_set_UTMI_REG1B_pg_tx_inc(U16 data);
- /*! \brief Reads the bit group 'pg_tx_inc' of register 'USB_PHY_UTMI_REG1B'. */
- U16 GH_USB_PHY_get_UTMI_REG1B_pg_tx_inc(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_USB_PHY_set_UTMI_REG1B(U16 data)
- {
- *(volatile U16 *)REG_USB_PHY_UTMI_REG1B = data;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1B] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG1B,data,data);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_UTMI_REG1B(void)
- {
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1B);
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1B] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG1B,value);
- #endif
- return value;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG1B_pg_tx_inc(U16 data)
- {
- GH_USB_PHY_UTMI_REG1B_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1B;
- d.bitc.pg_tx_inc = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG1B = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1B_pg_tx_inc] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG1B,d.all,d.all);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_UTMI_REG1B_pg_tx_inc(void)
- {
- GH_USB_PHY_UTMI_REG1B_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1B);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1B_pg_tx_inc] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG1B,value);
- #endif
- return tmp_value.bitc.pg_tx_inc;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register USB_PHY_UTMI_REG1C (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'USB_PHY_UTMI_REG1C'. */
- void GH_USB_PHY_set_UTMI_REG1C(U16 data);
- /*! \brief Reads the register 'USB_PHY_UTMI_REG1C'. */
- U16 GH_USB_PHY_get_UTMI_REG1C(void);
- /*! \brief Writes the bit group 'en_ck192' of register 'USB_PHY_UTMI_REG1C'. */
- void GH_USB_PHY_set_UTMI_REG1C_en_ck192(U8 data);
- /*! \brief Reads the bit group 'en_ck192' of register 'USB_PHY_UTMI_REG1C'. */
- U8 GH_USB_PHY_get_UTMI_REG1C_en_ck192(void);
- /*! \brief Writes the bit group 'vigen_pdn' of register 'USB_PHY_UTMI_REG1C'. */
- void GH_USB_PHY_set_UTMI_REG1C_vigen_pdn(U8 data);
- /*! \brief Reads the bit group 'vigen_pdn' of register 'USB_PHY_UTMI_REG1C'. */
- U8 GH_USB_PHY_get_UTMI_REG1C_vigen_pdn(void);
- /*! \brief Writes the bit group 'selport' of register 'USB_PHY_UTMI_REG1C'. */
- void GH_USB_PHY_set_UTMI_REG1C_selport(U8 data);
- /*! \brief Reads the bit group 'selport' of register 'USB_PHY_UTMI_REG1C'. */
- U8 GH_USB_PHY_get_UTMI_REG1C_selport(void);
- /*! \brief Writes the bit group 'dp_status' of register 'USB_PHY_UTMI_REG1C'. */
- void GH_USB_PHY_set_UTMI_REG1C_dp_status(U8 data);
- /*! \brief Reads the bit group 'dp_status' of register 'USB_PHY_UTMI_REG1C'. */
- U8 GH_USB_PHY_get_UTMI_REG1C_dp_status(void);
- /*! \brief Writes the bit group 'dm_status' of register 'USB_PHY_UTMI_REG1C'. */
- void GH_USB_PHY_set_UTMI_REG1C_dm_status(U8 data);
- /*! \brief Reads the bit group 'dm_status' of register 'USB_PHY_UTMI_REG1C'. */
- U8 GH_USB_PHY_get_UTMI_REG1C_dm_status(void);
- /*! \brief Writes the bit group 'dp1_status' of register 'USB_PHY_UTMI_REG1C'. */
- void GH_USB_PHY_set_UTMI_REG1C_dp1_status(U8 data);
- /*! \brief Reads the bit group 'dp1_status' of register 'USB_PHY_UTMI_REG1C'. */
- U8 GH_USB_PHY_get_UTMI_REG1C_dp1_status(void);
- /*! \brief Writes the bit group 'dm1_status' of register 'USB_PHY_UTMI_REG1C'. */
- void GH_USB_PHY_set_UTMI_REG1C_dm1_status(U8 data);
- /*! \brief Reads the bit group 'dm1_status' of register 'USB_PHY_UTMI_REG1C'. */
- U8 GH_USB_PHY_get_UTMI_REG1C_dm1_status(void);
- /*! \brief Writes the bit group 'asrst_on' of register 'USB_PHY_UTMI_REG1C'. */
- void GH_USB_PHY_set_UTMI_REG1C_asrst_on(U8 data);
- /*! \brief Reads the bit group 'asrst_on' of register 'USB_PHY_UTMI_REG1C'. */
- U8 GH_USB_PHY_get_UTMI_REG1C_asrst_on(void);
- /*! \brief Writes the bit group 'VBUS' of register 'USB_PHY_UTMI_REG1C'. */
- void GH_USB_PHY_set_UTMI_REG1C_VBUS(U8 data);
- /*! \brief Reads the bit group 'VBUS' of register 'USB_PHY_UTMI_REG1C'. */
- U8 GH_USB_PHY_get_UTMI_REG1C_VBUS(void);
- /*! \brief Writes the bit group 'dummy' of register 'USB_PHY_UTMI_REG1C'. */
- void GH_USB_PHY_set_UTMI_REG1C_dummy(U8 data);
- /*! \brief Reads the bit group 'dummy' of register 'USB_PHY_UTMI_REG1C'. */
- U8 GH_USB_PHY_get_UTMI_REG1C_dummy(void);
- /*! \brief Writes the bit group 'reserved' of register 'USB_PHY_UTMI_REG1C'. */
- void GH_USB_PHY_set_UTMI_REG1C_reserved(U8 data);
- /*! \brief Reads the bit group 'reserved' of register 'USB_PHY_UTMI_REG1C'. */
- U8 GH_USB_PHY_get_UTMI_REG1C_reserved(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_USB_PHY_set_UTMI_REG1C(U16 data)
- {
- *(volatile U16 *)REG_USB_PHY_UTMI_REG1C = data;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1C] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG1C,data,data);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_UTMI_REG1C(void)
- {
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1C);
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1C] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG1C,value);
- #endif
- return value;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG1C_en_ck192(U8 data)
- {
- GH_USB_PHY_UTMI_REG1C_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1C;
- d.bitc.en_ck192 = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG1C = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1C_en_ck192] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG1C,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG1C_en_ck192(void)
- {
- GH_USB_PHY_UTMI_REG1C_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1C);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1C_en_ck192] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG1C,value);
- #endif
- return tmp_value.bitc.en_ck192;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG1C_vigen_pdn(U8 data)
- {
- GH_USB_PHY_UTMI_REG1C_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1C;
- d.bitc.vigen_pdn = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG1C = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1C_vigen_pdn] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG1C,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG1C_vigen_pdn(void)
- {
- GH_USB_PHY_UTMI_REG1C_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1C);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1C_vigen_pdn] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG1C,value);
- #endif
- return tmp_value.bitc.vigen_pdn;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG1C_selport(U8 data)
- {
- GH_USB_PHY_UTMI_REG1C_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1C;
- d.bitc.selport = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG1C = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1C_selport] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG1C,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG1C_selport(void)
- {
- GH_USB_PHY_UTMI_REG1C_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1C);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1C_selport] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG1C,value);
- #endif
- return tmp_value.bitc.selport;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG1C_dp_status(U8 data)
- {
- GH_USB_PHY_UTMI_REG1C_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1C;
- d.bitc.dp_status = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG1C = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1C_dp_status] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG1C,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG1C_dp_status(void)
- {
- GH_USB_PHY_UTMI_REG1C_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1C);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1C_dp_status] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG1C,value);
- #endif
- return tmp_value.bitc.dp_status;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG1C_dm_status(U8 data)
- {
- GH_USB_PHY_UTMI_REG1C_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1C;
- d.bitc.dm_status = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG1C = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1C_dm_status] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG1C,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG1C_dm_status(void)
- {
- GH_USB_PHY_UTMI_REG1C_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1C);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1C_dm_status] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG1C,value);
- #endif
- return tmp_value.bitc.dm_status;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG1C_dp1_status(U8 data)
- {
- GH_USB_PHY_UTMI_REG1C_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1C;
- d.bitc.dp1_status = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG1C = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1C_dp1_status] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG1C,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG1C_dp1_status(void)
- {
- GH_USB_PHY_UTMI_REG1C_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1C);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1C_dp1_status] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG1C,value);
- #endif
- return tmp_value.bitc.dp1_status;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG1C_dm1_status(U8 data)
- {
- GH_USB_PHY_UTMI_REG1C_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1C;
- d.bitc.dm1_status = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG1C = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1C_dm1_status] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG1C,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG1C_dm1_status(void)
- {
- GH_USB_PHY_UTMI_REG1C_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1C);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1C_dm1_status] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG1C,value);
- #endif
- return tmp_value.bitc.dm1_status;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG1C_asrst_on(U8 data)
- {
- GH_USB_PHY_UTMI_REG1C_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1C;
- d.bitc.asrst_on = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG1C = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1C_asrst_on] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG1C,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG1C_asrst_on(void)
- {
- GH_USB_PHY_UTMI_REG1C_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1C);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1C_asrst_on] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG1C,value);
- #endif
- return tmp_value.bitc.asrst_on;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG1C_VBUS(U8 data)
- {
- GH_USB_PHY_UTMI_REG1C_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1C;
- d.bitc.vbus = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG1C = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1C_VBUS] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG1C,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG1C_VBUS(void)
- {
- GH_USB_PHY_UTMI_REG1C_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1C);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1C_VBUS] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG1C,value);
- #endif
- return tmp_value.bitc.vbus;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG1C_dummy(U8 data)
- {
- GH_USB_PHY_UTMI_REG1C_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1C;
- d.bitc.dummy = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG1C = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1C_dummy] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG1C,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG1C_dummy(void)
- {
- GH_USB_PHY_UTMI_REG1C_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1C);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1C_dummy] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG1C,value);
- #endif
- return tmp_value.bitc.dummy;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG1C_reserved(U8 data)
- {
- GH_USB_PHY_UTMI_REG1C_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1C;
- d.bitc.reserved = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG1C = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1C_reserved] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG1C,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG1C_reserved(void)
- {
- GH_USB_PHY_UTMI_REG1C_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1C);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1C_reserved] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG1C,value);
- #endif
- return tmp_value.bitc.reserved;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register USB_PHY_UTMI_REG1D (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'USB_PHY_UTMI_REG1D'. */
- void GH_USB_PHY_set_UTMI_REG1D(U16 data);
- /*! \brief Reads the register 'USB_PHY_UTMI_REG1D'. */
- U16 GH_USB_PHY_get_UTMI_REG1D(void);
- /*! \brief Writes the bit group 'test_serdes' of register 'USB_PHY_UTMI_REG1D'. */
- void GH_USB_PHY_set_UTMI_REG1D_test_serdes(U8 data);
- /*! \brief Reads the bit group 'test_serdes' of register 'USB_PHY_UTMI_REG1D'. */
- U8 GH_USB_PHY_get_UTMI_REG1D_test_serdes(void);
- /*! \brief Writes the bit group 'reg_test' of register 'USB_PHY_UTMI_REG1D'. */
- void GH_USB_PHY_set_UTMI_REG1D_reg_test(U8 data);
- /*! \brief Reads the bit group 'reg_test' of register 'USB_PHY_UTMI_REG1D'. */
- U8 GH_USB_PHY_get_UTMI_REG1D_reg_test(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_USB_PHY_set_UTMI_REG1D(U16 data)
- {
- *(volatile U16 *)REG_USB_PHY_UTMI_REG1D = data;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1D] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG1D,data,data);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_UTMI_REG1D(void)
- {
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1D);
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1D] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG1D,value);
- #endif
- return value;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG1D_test_serdes(U8 data)
- {
- GH_USB_PHY_UTMI_REG1D_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1D;
- d.bitc.test_serdes = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG1D = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1D_test_serdes] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG1D,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG1D_test_serdes(void)
- {
- GH_USB_PHY_UTMI_REG1D_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1D);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1D_test_serdes] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG1D,value);
- #endif
- return tmp_value.bitc.test_serdes;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG1D_reg_test(U8 data)
- {
- GH_USB_PHY_UTMI_REG1D_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1D;
- d.bitc.reg_test = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG1D = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1D_reg_test] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG1D,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG1D_reg_test(void)
- {
- GH_USB_PHY_UTMI_REG1D_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1D);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1D_reg_test] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG1D,value);
- #endif
- return tmp_value.bitc.reg_test;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* register USB_PHY_UTMI_REG1E (read/write) */
- /*----------------------------------------------------------------------------*/
- #if GH_INLINE_LEVEL == 0
- /*! \brief Writes the register 'USB_PHY_UTMI_REG1E'. */
- void GH_USB_PHY_set_UTMI_REG1E(U16 data);
- /*! \brief Reads the register 'USB_PHY_UTMI_REG1E'. */
- U16 GH_USB_PHY_get_UTMI_REG1E(void);
- /*! \brief Writes the bit group 'ca_start' of register 'USB_PHY_UTMI_REG1E'. */
- void GH_USB_PHY_set_UTMI_REG1E_ca_start(U8 data);
- /*! \brief Reads the bit group 'ca_start' of register 'USB_PHY_UTMI_REG1E'. */
- U8 GH_USB_PHY_get_UTMI_REG1E_ca_start(void);
- /*! \brief Writes the bit group 'ca_end' of register 'USB_PHY_UTMI_REG1E'. */
- void GH_USB_PHY_set_UTMI_REG1E_ca_end(U8 data);
- /*! \brief Reads the bit group 'ca_end' of register 'USB_PHY_UTMI_REG1E'. */
- U8 GH_USB_PHY_get_UTMI_REG1E_ca_end(void);
- /*! \brief Writes the bit group 'power_good_sts' of register 'USB_PHY_UTMI_REG1E'. */
- void GH_USB_PHY_set_UTMI_REG1E_power_good_sts(U8 data);
- /*! \brief Reads the bit group 'power_good_sts' of register 'USB_PHY_UTMI_REG1E'. */
- U8 GH_USB_PHY_get_UTMI_REG1E_power_good_sts(void);
- /*! \brief Writes the bit group 'ca_data' of register 'USB_PHY_UTMI_REG1E'. */
- void GH_USB_PHY_set_UTMI_REG1E_ca_data(U16 data);
- /*! \brief Reads the bit group 'ca_data' of register 'USB_PHY_UTMI_REG1E'. */
- U16 GH_USB_PHY_get_UTMI_REG1E_ca_data(void);
- #else /* GH_INLINE_LEVEL == 0 */
- GH_INLINE void GH_USB_PHY_set_UTMI_REG1E(U16 data)
- {
- *(volatile U16 *)REG_USB_PHY_UTMI_REG1E = data;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1E] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG1E,data,data);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_UTMI_REG1E(void)
- {
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1E);
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1E] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG1E,value);
- #endif
- return value;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG1E_ca_start(U8 data)
- {
- GH_USB_PHY_UTMI_REG1E_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1E;
- d.bitc.ca_start = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG1E = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1E_ca_start] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG1E,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG1E_ca_start(void)
- {
- GH_USB_PHY_UTMI_REG1E_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1E);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1E_ca_start] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG1E,value);
- #endif
- return tmp_value.bitc.ca_start;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG1E_ca_end(U8 data)
- {
- GH_USB_PHY_UTMI_REG1E_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1E;
- d.bitc.ca_end = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG1E = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1E_ca_end] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG1E,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG1E_ca_end(void)
- {
- GH_USB_PHY_UTMI_REG1E_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1E);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1E_ca_end] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG1E,value);
- #endif
- return tmp_value.bitc.ca_end;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG1E_power_good_sts(U8 data)
- {
- GH_USB_PHY_UTMI_REG1E_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1E;
- d.bitc.power_good_sts = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG1E = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1E_power_good_sts] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG1E,d.all,d.all);
- #endif
- }
- GH_INLINE U8 GH_USB_PHY_get_UTMI_REG1E_power_good_sts(void)
- {
- GH_USB_PHY_UTMI_REG1E_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1E);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1E_power_good_sts] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG1E,value);
- #endif
- return tmp_value.bitc.power_good_sts;
- }
- GH_INLINE void GH_USB_PHY_set_UTMI_REG1E_ca_data(U16 data)
- {
- GH_USB_PHY_UTMI_REG1E_S d;
- d.all = *(volatile U16 *)REG_USB_PHY_UTMI_REG1E;
- d.bitc.ca_data = data;
- *(volatile U16 *)REG_USB_PHY_UTMI_REG1E = d.all;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_USB_PHY_set_UTMI_REG1E_ca_data] <-- 0x%08x\n",
- REG_USB_PHY_UTMI_REG1E,d.all,d.all);
- #endif
- }
- GH_INLINE U16 GH_USB_PHY_get_UTMI_REG1E_ca_data(void)
- {
- GH_USB_PHY_UTMI_REG1E_S tmp_value;
- U16 value = (*(volatile U16 *)REG_USB_PHY_UTMI_REG1E);
- tmp_value.all = value;
- #if GH_USB_PHY_ENABLE_DEBUG_PRINT
- GH_USB_PHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_USB_PHY_get_UTMI_REG1E_ca_data] --> 0x%08x\n",
- REG_USB_PHY_UTMI_REG1E,value);
- #endif
- return tmp_value.bitc.ca_data;
- }
- #endif /* GH_INLINE_LEVEL == 0 */
- /*----------------------------------------------------------------------------*/
- /* init function */
- /*----------------------------------------------------------------------------*/
- /*! \brief Initialises the registers and mirror variables. */
- void GH_USB_PHY_init(void);
- #ifdef __cplusplus
- }
- #endif
- #endif /* _GH_USB_PHY_H */
- /*----------------------------------------------------------------------------*/
- /* end of file */
- /*----------------------------------------------------------------------------*/
|