gh_ephy.h 347 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921
  1. /*!
  2. *******************************************************************************
  3. **
  4. ** \file gh_ephy.h
  5. **
  6. ** \brief Ethernet PHY controller.
  7. **
  8. ** Copyright: 2012 - 2013 (C) GoKe Microelectronics ShangHai Branch
  9. **
  10. ** \attention THIS SAMPLE CODE IS PROVIDED AS IS. GOKE MICROELECTRONICS
  11. ** ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR
  12. ** OMMISSIONS.
  13. **
  14. ** \note Do not modify this file as it is generated automatically.
  15. **
  16. ******************************************************************************/
  17. #ifndef _GH_EPHY_H
  18. #define _GH_EPHY_H
  19. #ifdef __LINUX__
  20. #include "reg4linux.h"
  21. #else
  22. #define FIO_ADDRESS(block,address) (address)
  23. #define FIO_MOFFSET(block,moffset) (moffset)
  24. #endif
  25. #ifndef __LINUX__
  26. #include "gtypes.h" /* global type definitions */
  27. #include "gh_lib_cfg.h" /* configuration */
  28. #endif
  29. #define GH_EPHY_ENABLE_DEBUG_PRINT 0
  30. #ifdef __LINUX__
  31. #define GH_EPHY_DEBUG_PRINT_FUNCTION printk
  32. #else
  33. #define GH_EPHY_DEBUG_PRINT_FUNCTION printf
  34. #endif
  35. #ifndef __LINUX__
  36. #if GH_EPHY_ENABLE_DEBUG_PRINT
  37. #include <stdio.h>
  38. #endif
  39. #endif
  40. /* check configuration */
  41. #ifndef GH_INLINE_LEVEL
  42. #error "GH_INLINE_LEVEL is not defined!"
  43. #endif
  44. #if GH_INLINE_LEVEL > 2
  45. #error "GH_INLINE_LEVEL must be set 0, 1 or 2!"
  46. #endif
  47. #ifndef GH_INLINE
  48. #error "GH_INLINE is not defined!"
  49. #endif
  50. /* disable inlining for debugging */
  51. #ifdef DEBUG
  52. #undef GH_INLINE_LEVEL
  53. #define GH_INLINE_LEVEL 0
  54. #endif
  55. /*----------------------------------------------------------------------------*/
  56. /* registers */
  57. /*----------------------------------------------------------------------------*/
  58. #define REG_EPHY_MII_RMII FIO_ADDRESS(EPHY,0x90020E00) /* read/write */
  59. #define REG_EPHY_CONTROL FIO_ADDRESS(EPHY,0x90022000) /* read/write */
  60. #define REG_EPHY_STATUS FIO_ADDRESS(EPHY,0x90022004) /* read */
  61. #define REG_EPHY_ID1 FIO_ADDRESS(EPHY,0x90022008) /* read */
  62. #define REG_EPHY_ID2 FIO_ADDRESS(EPHY,0x9002200C) /* read */
  63. #define REG_EPHY_ANAR FIO_ADDRESS(EPHY,0x90022010) /* read/write */
  64. #define REG_EPHY_ANLPAR FIO_ADDRESS(EPHY,0x90022014) /* read */
  65. #define REG_EPHY_ANER FIO_ADDRESS(EPHY,0x90022018) /* read/write */
  66. #define REG_EPHY_ANNPAR FIO_ADDRESS(EPHY,0x9002201C) /* read/write */
  67. #define REG_EPHY_ANLPNP FIO_ADDRESS(EPHY,0x90022020) /* read */
  68. #define REG_EPHY_MS_CONTROL FIO_ADDRESS(EPHY,0x90022024) /* read/write */
  69. #define REG_EPHY_MS_STATUS FIO_ADDRESS(EPHY,0x90022028) /* read */
  70. #define REG_EPHY_PSE_CONTROL FIO_ADDRESS(EPHY,0x9002202C) /* read/write */
  71. #define REG_EPHY_PSE_STATUS FIO_ADDRESS(EPHY,0x90022030) /* read */
  72. #define REG_EPHY_MMD_CONTROL FIO_ADDRESS(EPHY,0x90022034) /* read/write */
  73. #define REG_EPHY_MMD_CONTROL_ADDR FIO_ADDRESS(EPHY,0x90022038) /* read/write */
  74. #define REG_EPHY_AN_R_15 FIO_ADDRESS(EPHY,0x9002203C) /* read */
  75. #define REG_EPHY_WAVE_SHAPING_34 FIO_ADDRESS(EPHY,0x90022040) /* read/write */
  76. #define REG_EPHY_WAVE_SHAPING_56 FIO_ADDRESS(EPHY,0x90022044) /* read/write */
  77. #define REG_EPHY_WAVE_SHAPING_78 FIO_ADDRESS(EPHY,0x90022048) /* read/write */
  78. #define REG_EPHY_WAVE_SHAPING_9A FIO_ADDRESS(EPHY,0x9002204C) /* read/write */
  79. #define REG_EPHY_WAVE_SHAPING_BC FIO_ADDRESS(EPHY,0x90022050) /* read/write */
  80. #define REG_EPHY_WAVE_SHAPING_DE FIO_ADDRESS(EPHY,0x90022054) /* read/write */
  81. #define REG_EPHY_SPEED FIO_ADDRESS(EPHY,0x90022058) /* read/write */
  82. #define REG_EPHY_LTP FIO_ADDRESS(EPHY,0x9002205C) /* read/write */
  83. #define REG_EPHY_MCU FIO_ADDRESS(EPHY,0x90022060) /* read/write */
  84. #define REG_EPHY_CODE_RAM FIO_ADDRESS(EPHY,0x90022064) /* read/write */
  85. #define REG_EPHY_CODE_RAM_W FIO_ADDRESS(EPHY,0x90022068) /* read/write */
  86. #define REG_EPHY_100M_LINK FIO_ADDRESS(EPHY,0x90022088) /* read/write */
  87. #define REG_EPHY_DEBUG FIO_ADDRESS(EPHY,0x900220C8) /* read/write */
  88. #define REG_EPHY_DEBUG_MODE FIO_ADDRESS(EPHY,0x900220E0) /* read/write */
  89. #define REG_EPHY_RST_EN FIO_ADDRESS(EPHY,0x900220E4) /* read/write */
  90. #define REG_EPHY_SNR_K FIO_ADDRESS(EPHY,0x90022284) /* read/write */
  91. #define REG_EPHY_DET_MAX FIO_ADDRESS(EPHY,0x9002229C) /* read/write */
  92. #define REG_EPHY_DET_MIN FIO_ADDRESS(EPHY,0x900222A0) /* read/write */
  93. #define REG_EPHY_SNR_LEN FIO_ADDRESS(EPHY,0x900222EC) /* read/write */
  94. #define REG_EPHY_LPF FIO_ADDRESS(EPHY,0x90022340) /* read/write */
  95. #define REG_EPHY_ADC_GAIN_PGA FIO_ADDRESS(EPHY,0x9002236C) /* read/write */
  96. #define REG_EPHY_ADC_GSHIFT FIO_ADDRESS(EPHY,0x90022368) /* read/write */
  97. #define REG_EPHY_ADC FIO_ADDRESS(EPHY,0x9002236C) /* read/write */
  98. #define REG_EPHY_PLL_ADC_CTRL3 FIO_ADDRESS(EPHY,0x90022370) /* read/write */
  99. #define REG_EPHY_RX_LPF FIO_ADDRESS(EPHY,0x90022374) /* read/write */
  100. #define REG_EPHY_PLL_ADC_CTRL0 FIO_ADDRESS(EPHY,0x90022394) /* read/write */
  101. #define REG_EPHY_PLL_ADC_CTRL1 FIO_ADDRESS(EPHY,0x90022398) /* read/write */
  102. #define REG_EPHY_PLL_ADC_CTRL2 FIO_ADDRESS(EPHY,0x900223A8) /* read/write */
  103. #define REG_EPHY_TEST_TX FIO_ADDRESS(EPHY,0x900223B0) /* read/write */
  104. #define REG_EPHY_PWR FIO_ADDRESS(EPHY,0x900223BC) /* read/write */
  105. #define REG_EPHY_ADC_DC FIO_ADDRESS(EPHY,0x900223D4) /* read/write */
  106. #define REG_EPHY_ADCPL FIO_ADDRESS(EPHY,0x900223E8) /* read/write */
  107. #define REG_EPHY_LDO FIO_ADDRESS(EPHY,0x900223F8) /* read/write */
  108. #define REG_EPHY_CLK_GATE FIO_ADDRESS(EPHY,0x90022450) /* read */
  109. #define REG_EPHY_CLK1 FIO_ADDRESS(EPHY,0x90022460) /* read/write */
  110. #define REG_EPHY_GCR_TX FIO_ADDRESS(EPHY,0x90022470) /* read/write */
  111. #define REG_EPHY_POWER FIO_ADDRESS(EPHY,0x90022474) /* read/write */
  112. #define REG_EPHY_MDIIO FIO_ADDRESS(EPHY,0x90022540) /* read/write */
  113. #define REG_EPHY_CLK0 FIO_ADDRESS(EPHY,0x90022588) /* read/write */
  114. #define REG_EPHY_WAVE_CTRL FIO_ADDRESS(EPHY,0x900225D0) /* read/write */
  115. /*----------------------------------------------------------------------------*/
  116. /* bit group structures */
  117. /*----------------------------------------------------------------------------*/
  118. typedef union { /* EPHY_MII_RMII */
  119. U32 all;
  120. struct {
  121. U32 usb_tm1 : 1;
  122. U32 rmii : 1;
  123. U32 : 30;
  124. } bitc;
  125. } GH_EPHY_MII_RMII_S;
  126. typedef union { /* EPHY_CONTROL */
  127. U16 all;
  128. struct {
  129. U16 : 5;
  130. U16 mii_ctl_unidirectional_enable: 1;
  131. U16 mii_ctl_speed_sel_msb : 1;
  132. U16 mii_ctl_col_test : 1;
  133. U16 mii_ctl_duplex_mode : 1;
  134. U16 mii_ctl_restart_an : 1;
  135. U16 mii_ctl_isolate : 1;
  136. U16 mii_ctl_power_down : 1;
  137. U16 mii_ctl_an_en : 1;
  138. U16 mii_ctl_speed_sel_lsb : 1;
  139. U16 mii_ctl_loopback : 1;
  140. U16 mii_ctl_reset : 1;
  141. } bitc;
  142. } GH_EPHY_CONTROL_S;
  143. typedef union { /* EPHY_STATUS */
  144. U16 all;
  145. struct {
  146. U16 extended_capability : 1;
  147. U16 jabber_detect : 1;
  148. U16 link_status : 1;
  149. U16 an_ability : 1;
  150. U16 rf : 1;
  151. U16 an_complete : 1;
  152. U16 mf_preamble_suppression : 1;
  153. U16 unidirectional_ability : 1;
  154. U16 extended_status : 1;
  155. U16 half_duplex_100t2 : 1;
  156. U16 full_duplex_100t2 : 1;
  157. U16 half_duplex_10 : 1;
  158. U16 full_duplex_10 : 1;
  159. U16 half_duplex_100x : 1;
  160. U16 full_duplex_100x : 1;
  161. U16 t4_100 : 1;
  162. } bitc;
  163. } GH_EPHY_STATUS_S;
  164. typedef union { /* EPHY_ANAR */
  165. U16 all;
  166. struct {
  167. U16 selector : 5;
  168. U16 tech_ability : 8;
  169. U16 rf : 1;
  170. U16 : 1;
  171. U16 np : 1;
  172. } bitc;
  173. } GH_EPHY_ANAR_S;
  174. typedef union { /* EPHY_ANLPAR */
  175. U16 all;
  176. struct {
  177. U16 selector : 5;
  178. U16 tech_ability : 8;
  179. U16 rf : 1;
  180. U16 ack : 1;
  181. U16 np : 1;
  182. } bitc;
  183. } GH_EPHY_ANLPAR_S;
  184. typedef union { /* EPHY_ANER */
  185. U16 all;
  186. struct {
  187. U16 lp_an_able : 1;
  188. U16 page_rec : 1;
  189. U16 np_able : 1;
  190. U16 lp_np_able : 1;
  191. U16 pd_fault : 1;
  192. U16 np_location : 1;
  193. U16 np_location_able : 1;
  194. U16 : 9;
  195. } bitc;
  196. } GH_EPHY_ANER_S;
  197. typedef union { /* EPHY_ANNPAR */
  198. U16 all;
  199. struct {
  200. U16 msg : 11;
  201. U16 toggle : 1;
  202. U16 ack2 : 1;
  203. U16 mp : 1;
  204. U16 : 1;
  205. U16 np : 1;
  206. } bitc;
  207. } GH_EPHY_ANNPAR_S;
  208. typedef union { /* EPHY_ANLPNP */
  209. U16 all;
  210. struct {
  211. U16 msg : 11;
  212. U16 toggle : 1;
  213. U16 ack2 : 1;
  214. U16 mp : 1;
  215. U16 : 1;
  216. U16 np : 1;
  217. } bitc;
  218. } GH_EPHY_ANLPNP_S;
  219. typedef union { /* EPHY_MMD_CONTROL */
  220. U16 all;
  221. struct {
  222. U16 devad : 5;
  223. U16 : 9;
  224. U16 func : 2;
  225. } bitc;
  226. } GH_EPHY_MMD_CONTROL_S;
  227. typedef union { /* EPHY_AN_R_15 */
  228. U16 all;
  229. struct {
  230. U16 : 12;
  231. U16 an_register_15 : 2;
  232. U16 : 2;
  233. } bitc;
  234. } GH_EPHY_AN_R_15_S;
  235. typedef union { /* EPHY_WAVE_SHAPING_34 */
  236. U16 all;
  237. struct {
  238. U16 ltp_3 : 8;
  239. U16 ltp_4 : 8;
  240. } bitc;
  241. } GH_EPHY_WAVE_SHAPING_34_S;
  242. typedef union { /* EPHY_WAVE_SHAPING_56 */
  243. U16 all;
  244. struct {
  245. U16 ltp_5 : 8;
  246. U16 ltp_6 : 8;
  247. } bitc;
  248. } GH_EPHY_WAVE_SHAPING_56_S;
  249. typedef union { /* EPHY_WAVE_SHAPING_78 */
  250. U16 all;
  251. struct {
  252. U16 ltp_7 : 8;
  253. U16 ltp_8 : 8;
  254. } bitc;
  255. } GH_EPHY_WAVE_SHAPING_78_S;
  256. typedef union { /* EPHY_WAVE_SHAPING_9A */
  257. U16 all;
  258. struct {
  259. U16 ltp_9 : 8;
  260. U16 ltp_a : 8;
  261. } bitc;
  262. } GH_EPHY_WAVE_SHAPING_9A_S;
  263. typedef union { /* EPHY_WAVE_SHAPING_BC */
  264. U16 all;
  265. struct {
  266. U16 ltp_b : 8;
  267. U16 ltp_c : 8;
  268. } bitc;
  269. } GH_EPHY_WAVE_SHAPING_BC_S;
  270. typedef union { /* EPHY_WAVE_SHAPING_DE */
  271. U16 all;
  272. struct {
  273. U16 ltp_d : 8;
  274. U16 ltp_e : 8;
  275. } bitc;
  276. } GH_EPHY_WAVE_SHAPING_DE_S;
  277. typedef union { /* EPHY_SPEED */
  278. U16 all;
  279. struct {
  280. U16 ltp_f : 8;
  281. U16 isolate : 1;
  282. U16 rptr : 1;
  283. U16 duplex : 1;
  284. U16 speed : 1;
  285. U16 ane : 1;
  286. U16 ldps : 1;
  287. U16 disable_eee_force : 1;
  288. U16 : 1;
  289. } bitc;
  290. } GH_EPHY_SPEED_S;
  291. typedef union { /* EPHY_LTP */
  292. U16 all;
  293. struct {
  294. U16 width : 4;
  295. U16 tx_gm_rctrl : 4;
  296. U16 : 8;
  297. } bitc;
  298. } GH_EPHY_LTP_S;
  299. typedef union { /* EPHY_MCU */
  300. U16 all;
  301. struct {
  302. U16 en : 1;
  303. U16 mcu_rdy : 1;
  304. U16 : 14;
  305. } bitc;
  306. } GH_EPHY_MCU_S;
  307. typedef union { /* EPHY_CODE_RAM */
  308. U16 all;
  309. struct {
  310. U16 start_addr : 16;
  311. } bitc;
  312. } GH_EPHY_CODE_RAM_S;
  313. typedef union { /* EPHY_CODE_RAM_W */
  314. U16 all;
  315. struct {
  316. U16 start_addr : 16;
  317. } bitc;
  318. } GH_EPHY_CODE_RAM_W_S;
  319. typedef union { /* EPHY_100M_LINK */
  320. U16 all;
  321. struct {
  322. U16 an_mcu_100t_link_control : 2;
  323. U16 an_mcu_nlp_link_control : 2;
  324. U16 nlp_frame_start_mode_en : 1;
  325. U16 detect_100m : 1;
  326. U16 mcu_an_enable : 1;
  327. U16 force_100m_link_good : 1;
  328. U16 an_100t_link_status : 2;
  329. U16 an_nlp_link_status : 2;
  330. U16 mdio_disable : 1;
  331. U16 mdc_edge_sel : 1;
  332. U16 an_bypass_link_status_check : 1;
  333. U16 adc_loop : 1;
  334. } bitc;
  335. } GH_EPHY_100M_LINK_S;
  336. typedef union { /* EPHY_DEBUG */
  337. U16 all;
  338. struct {
  339. U16 snr_locked : 1;
  340. U16 snr_locked_raw : 1;
  341. U16 sig_det_flag : 1;
  342. U16 state_sync_on : 1;
  343. U16 state_st_lk : 3;
  344. U16 : 1;
  345. U16 mux_recov_cnt : 6;
  346. U16 test_mux_sel : 2;
  347. } bitc;
  348. } GH_EPHY_DEBUG_S;
  349. typedef union { /* EPHY_DEBUG_MODE */
  350. U16 all;
  351. struct {
  352. U16 signal : 8;
  353. U16 module : 8;
  354. } bitc;
  355. } GH_EPHY_DEBUG_MODE_S;
  356. typedef union { /* EPHY_RST_EN */
  357. U16 all;
  358. struct {
  359. U16 mau_srst : 1;
  360. U16 pls_srst : 1;
  361. U16 sqe_test_enable : 1;
  362. U16 lpbk_enable : 1;
  363. U16 jabber_enable : 1;
  364. U16 ser_polarity_correction : 1;
  365. U16 por_stick_mode : 1;
  366. U16 recv_bit_bucket : 1;
  367. U16 rxclk_pol : 1;
  368. U16 txclk_pol : 1;
  369. U16 adc_input_sign : 1;
  370. U16 mii_test_packet : 1;
  371. U16 clear_rcvpack : 1;
  372. U16 miiloop_en_10m : 1;
  373. U16 mii_rxclk_pol : 1;
  374. U16 mii_txclk_pol : 1;
  375. } bitc;
  376. } GH_EPHY_RST_EN_S;
  377. typedef union { /* EPHY_SNR_K */
  378. U16 all;
  379. struct {
  380. U16 slice_up : 8;
  381. U16 snrchk_k1 : 2;
  382. U16 snrchk_k2 : 2;
  383. U16 snrchk_k3 : 2;
  384. U16 gcr_ccpl_master_coarse_clkcc: 2;
  385. } bitc;
  386. } GH_EPHY_SNR_K_S;
  387. typedef union { /* EPHY_DET_MAX */
  388. U16 all;
  389. struct {
  390. U16 thrh_max_vga_coarse : 8;
  391. U16 thrh_max_sig_det : 8;
  392. } bitc;
  393. } GH_EPHY_DET_MAX_S;
  394. typedef union { /* EPHY_DET_MIN */
  395. U16 all;
  396. struct {
  397. U16 thrh_max_vga_fine : 8;
  398. U16 thrh_min_sig_det : 8;
  399. } bitc;
  400. } GH_EPHY_DET_MIN_S;
  401. typedef union { /* EPHY_SNR_LEN */
  402. U16 all;
  403. struct {
  404. U16 mcu_ctrl_dsp_fsm_state : 8;
  405. U16 force_100m_en : 1;
  406. U16 force_100m_snr_lock : 1;
  407. U16 dsp_fsm_agc_en_mode_a : 1;
  408. U16 cable_len_offset : 2;
  409. U16 : 3;
  410. } bitc;
  411. } GH_EPHY_SNR_LEN_S;
  412. typedef union { /* EPHY_LPF */
  413. U16 all;
  414. struct {
  415. U16 lpf_out_h : 10;
  416. U16 rxlpf_bwsel_10t : 2;
  417. U16 rxlpf_bwsel_100t : 2;
  418. U16 cable_length : 2;
  419. } bitc;
  420. } GH_EPHY_LPF_S;
  421. typedef union { /* EPHY_ADC_GAIN_PGA */
  422. U16 all;
  423. struct {
  424. U16 adc_bp : 4;
  425. U16 dac10t_testen : 1;
  426. U16 dac100t_testen : 1;
  427. U16 : 2;
  428. U16 adc_bma : 4;
  429. U16 adc_pd : 1;
  430. U16 region_bank_rd : 1;
  431. U16 adcpll_ana_clken : 1;
  432. U16 adcbin_testen : 1;
  433. } bitc;
  434. } GH_EPHY_ADC_GAIN_PGA_S;
  435. typedef union { /* EPHY_ADC_GSHIFT */
  436. U16 all;
  437. struct {
  438. U16 adc_gshift : 2;
  439. U16 gain : 6;
  440. U16 : 8;
  441. } bitc;
  442. } GH_EPHY_ADC_GSHIFT_S;
  443. typedef union { /* EPHY_ADC */
  444. U16 all;
  445. struct {
  446. U16 adc_bp : 4;
  447. U16 dac10t_testen : 1;
  448. U16 reg_dac100t_testen : 1;
  449. U16 : 2;
  450. U16 adc_bma : 4;
  451. U16 adc_pd : 1;
  452. U16 region_bank_rd : 1;
  453. U16 adcpll_ana_clken : 1;
  454. U16 adcbin_testen : 1;
  455. } bitc;
  456. } GH_EPHY_ADC_S;
  457. typedef union { /* EPHY_PLL_ADC_CTRL3 */
  458. U16 all;
  459. struct {
  460. U16 : 8;
  461. U16 rxlpf_pd : 1;
  462. U16 tx_b_test : 6;
  463. U16 : 1;
  464. } bitc;
  465. } GH_EPHY_PLL_ADC_CTRL3_S;
  466. typedef union { /* EPHY_RX_LPF */
  467. U16 all;
  468. struct {
  469. U16 rxlpf_ibsel : 4;
  470. U16 rxlpf_bwsel : 2;
  471. U16 unkown : 4;
  472. U16 rxlpf_cmsel : 1;
  473. U16 rxlpf_outp_test : 1;
  474. U16 rxlpf_outm_test : 1;
  475. U16 rxlpf_bypass : 1;
  476. U16 ref_pd : 1;
  477. U16 ref_iint_pd : 1;
  478. } bitc;
  479. } GH_EPHY_RX_LPF_S;
  480. typedef union { /* EPHY_PLL_ADC_CTRL0 */
  481. U16 all;
  482. struct {
  483. U16 ro_adcpl_lock : 1;
  484. U16 gcr_adcpl_div : 3;
  485. U16 test_adcpl_extcksel : 1;
  486. U16 ro_adcpl_high_flag : 1;
  487. U16 pllclk_outen : 1;
  488. U16 ov_ref_test : 1;
  489. U16 gc_adcpl_rstb : 1;
  490. U16 ref_bgap_pd : 1;
  491. U16 adcraw_tst : 1;
  492. U16 adcraw_tst_sw : 1;
  493. U16 ldo_pwrgd : 1;
  494. U16 adcraw_overflow : 1;
  495. U16 adcpl_force_phase : 1;
  496. U16 gcr_adcpl_tog_clkcc : 1;
  497. } bitc;
  498. } GH_EPHY_PLL_ADC_CTRL0_S;
  499. typedef union { /* EPHY_PLL_ADC_CTRL1 */
  500. U16 all;
  501. struct {
  502. U16 gc_adcpl_adcpd0 : 1;
  503. U16 gc_adcpl_adcpd1 : 1;
  504. U16 gc_adcpl_ccpd0 : 1;
  505. U16 gc_adcpl_ccpd1 : 1;
  506. U16 pd_adcpl_reg : 1;
  507. U16 gcr_adcpl_mod_100t : 2;
  508. U16 gcr_adcpl_ictrl : 3;
  509. U16 gcr_adcpl_enfrunz : 1;
  510. U16 en_adcpl_porst : 1;
  511. U16 en_adcpl_adcphdac : 1;
  512. U16 gc_adcpl_adcselect : 1;
  513. U16 tx_d_test : 2;
  514. } bitc;
  515. } GH_EPHY_PLL_ADC_CTRL1_S;
  516. typedef union { /* EPHY_PLL_ADC_CTRL2 */
  517. U16 all;
  518. struct {
  519. U16 gc_ref_vgen : 1;
  520. U16 gc_ref_vcom : 2;
  521. U16 gc_ref_vcmpcmvx : 2;
  522. U16 pd_lpf_op : 1;
  523. U16 gc_adc_force1 : 1;
  524. U16 gc_adc_force0 : 1;
  525. U16 endiscz_10 : 1;
  526. U16 gcr_adcpl_pdphadc : 1;
  527. U16 adcpl_bank : 3;
  528. U16 adcpl_phase_force : 1;
  529. U16 adcpl_phase_force_st : 1;
  530. U16 adcpl_force_go : 1;
  531. } bitc;
  532. } GH_EPHY_PLL_ADC_CTRL2_S;
  533. typedef union { /* EPHY_PWR */
  534. U16 all;
  535. struct {
  536. U16 pwr_k_in_lp : 3;
  537. U16 dtpwr_enable_lp : 1;
  538. U16 gcr_adcpl_div_lp : 3;
  539. U16 dummy : 9;
  540. } bitc;
  541. } GH_EPHY_PWR_S;
  542. typedef union { /* EPHY_ADC_DC */
  543. U16 all;
  544. struct {
  545. U16 dc_force_en : 1;
  546. U16 dc_force : 4;
  547. U16 dc_can_inv : 1;
  548. U16 analog_blw : 1;
  549. U16 dc_k : 2;
  550. U16 srst : 1;
  551. U16 adc_cancel_out : 4;
  552. U16 adc_cancel_disable : 1;
  553. U16 adc_start : 1;
  554. } bitc;
  555. } GH_EPHY_ADC_DC_S;
  556. typedef union { /* EPHY_ADCPL */
  557. U16 all;
  558. struct {
  559. U16 mod_10t : 2;
  560. U16 mod : 2;
  561. U16 mod_lp : 2;
  562. U16 adc_frc_zero : 3;
  563. U16 adcpl_step : 4;
  564. U16 ac_a_timer_start : 1;
  565. U16 ac_sample_timer_start : 1;
  566. U16 txramp_gen_10t : 1;
  567. } bitc;
  568. } GH_EPHY_ADCPL_S;
  569. typedef union { /* EPHY_LDO */
  570. U16 all;
  571. struct {
  572. U16 dummy : 16;
  573. } bitc;
  574. } GH_EPHY_LDO_S;
  575. typedef union { /* EPHY_CLK_GATE */
  576. U16 all;
  577. struct {
  578. U16 eee_capability : 16;
  579. } bitc;
  580. } GH_EPHY_CLK_GATE_S;
  581. typedef union { /* EPHY_CLK1 */
  582. U16 all;
  583. struct {
  584. U16 unkown : 4;
  585. U16 clko_200_gat : 1;
  586. U16 clko_200_inv : 1;
  587. U16 lut_new : 1;
  588. U16 : 9;
  589. } bitc;
  590. } GH_EPHY_CLK1_S;
  591. typedef union { /* EPHY_GCR_TX */
  592. U16 all;
  593. struct {
  594. U16 ioffset_sel : 1;
  595. U16 : 3;
  596. U16 ld_vcmo : 2;
  597. U16 ph_delay : 2;
  598. U16 phase_100t : 1;
  599. U16 ld_iq_sel : 2;
  600. U16 ld_iq_ibias : 2;
  601. U16 en_tx_ioffset : 1;
  602. U16 save2x_tx : 1;
  603. U16 wssel_inv : 1;
  604. } bitc;
  605. } GH_EPHY_GCR_TX_S;
  606. typedef union { /* EPHY_POWER */
  607. U16 all;
  608. struct {
  609. U16 pd_tx_ld : 1;
  610. U16 pd_tx_idac : 1;
  611. U16 pd_dacramp_new : 1;
  612. U16 pd_dacnew_testen : 1;
  613. U16 pd_tx_ld_10t : 1;
  614. U16 pd_tx_ld_100t : 1;
  615. U16 pd_tx_ld_lp : 1;
  616. U16 pd_tx_idac_10t : 1;
  617. U16 pd_tx_idac_100t : 1;
  618. U16 pd_tx_idac_lp : 1;
  619. U16 : 6;
  620. } bitc;
  621. } GH_EPHY_POWER_S;
  622. typedef union { /* EPHY_MDIIO */
  623. U16 all;
  624. struct {
  625. U16 : 4;
  626. U16 mdio_idle_error_cnt_clear : 1;
  627. U16 : 7;
  628. U16 pd_vbuf : 1;
  629. U16 : 3;
  630. } bitc;
  631. } GH_EPHY_MDIIO_S;
  632. typedef union { /* EPHY_CLK0 */
  633. U16 all;
  634. struct {
  635. U16 lpi_tx_tq_timer_msb : 6;
  636. U16 : 7;
  637. U16 clko_125_inv : 1;
  638. U16 clko_100_gat : 1;
  639. U16 clko_100_inv : 1;
  640. } bitc;
  641. } GH_EPHY_CLK0_S;
  642. typedef union { /* EPHY_WAVE_CTRL */
  643. U16 all;
  644. struct {
  645. U16 shadow : 3;
  646. U16 : 13;
  647. } bitc;
  648. } GH_EPHY_WAVE_CTRL_S;
  649. /*----------------------------------------------------------------------------*/
  650. /* mirror variables */
  651. /*----------------------------------------------------------------------------*/
  652. #ifdef __cplusplus
  653. extern "C" {
  654. #endif
  655. /*----------------------------------------------------------------------------*/
  656. /* register EPHY_MII_RMII (read/write) */
  657. /*----------------------------------------------------------------------------*/
  658. #if GH_INLINE_LEVEL == 0
  659. /*! \brief Writes the register 'EPHY_MII_RMII'. */
  660. void GH_EPHY_set_MII_RMII(U32 data);
  661. /*! \brief Reads the register 'EPHY_MII_RMII'. */
  662. U32 GH_EPHY_get_MII_RMII(void);
  663. /*! \brief Writes the bit group 'USB_TM1' of register 'EPHY_MII_RMII'. */
  664. void GH_EPHY_set_MII_RMII_USB_TM1(U8 data);
  665. /*! \brief Reads the bit group 'USB_TM1' of register 'EPHY_MII_RMII'. */
  666. U8 GH_EPHY_get_MII_RMII_USB_TM1(void);
  667. /*! \brief Writes the bit group 'rmii' of register 'EPHY_MII_RMII'. */
  668. void GH_EPHY_set_MII_RMII_rmii(U8 data);
  669. /*! \brief Reads the bit group 'rmii' of register 'EPHY_MII_RMII'. */
  670. U8 GH_EPHY_get_MII_RMII_rmii(void);
  671. #else /* GH_INLINE_LEVEL == 0 */
  672. GH_INLINE void GH_EPHY_set_MII_RMII(U32 data)
  673. {
  674. *(volatile U32 *)REG_EPHY_MII_RMII = data;
  675. #if GH_EPHY_ENABLE_DEBUG_PRINT
  676. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_MII_RMII] <-- 0x%08x\n",
  677. REG_EPHY_MII_RMII,data,data);
  678. #endif
  679. }
  680. GH_INLINE U32 GH_EPHY_get_MII_RMII(void)
  681. {
  682. U32 value = (*(volatile U32 *)REG_EPHY_MII_RMII);
  683. #if GH_EPHY_ENABLE_DEBUG_PRINT
  684. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_MII_RMII] --> 0x%08x\n",
  685. REG_EPHY_MII_RMII,value);
  686. #endif
  687. return value;
  688. }
  689. GH_INLINE void GH_EPHY_set_MII_RMII_USB_TM1(U8 data)
  690. {
  691. GH_EPHY_MII_RMII_S d;
  692. d.all = *(volatile U32 *)REG_EPHY_MII_RMII;
  693. d.bitc.usb_tm1 = data;
  694. *(volatile U32 *)REG_EPHY_MII_RMII = d.all;
  695. #if GH_EPHY_ENABLE_DEBUG_PRINT
  696. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_MII_RMII_USB_TM1] <-- 0x%08x\n",
  697. REG_EPHY_MII_RMII,d.all,d.all);
  698. #endif
  699. }
  700. GH_INLINE U8 GH_EPHY_get_MII_RMII_USB_TM1(void)
  701. {
  702. GH_EPHY_MII_RMII_S tmp_value;
  703. U32 value = (*(volatile U32 *)REG_EPHY_MII_RMII);
  704. tmp_value.all = value;
  705. #if GH_EPHY_ENABLE_DEBUG_PRINT
  706. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_MII_RMII_USB_TM1] --> 0x%08x\n",
  707. REG_EPHY_MII_RMII,value);
  708. #endif
  709. return tmp_value.bitc.usb_tm1;
  710. }
  711. GH_INLINE void GH_EPHY_set_MII_RMII_rmii(U8 data)
  712. {
  713. GH_EPHY_MII_RMII_S d;
  714. d.all = *(volatile U32 *)REG_EPHY_MII_RMII;
  715. d.bitc.rmii = data;
  716. *(volatile U32 *)REG_EPHY_MII_RMII = d.all;
  717. #if GH_EPHY_ENABLE_DEBUG_PRINT
  718. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_MII_RMII_rmii] <-- 0x%08x\n",
  719. REG_EPHY_MII_RMII,d.all,d.all);
  720. #endif
  721. }
  722. GH_INLINE U8 GH_EPHY_get_MII_RMII_rmii(void)
  723. {
  724. GH_EPHY_MII_RMII_S tmp_value;
  725. U32 value = (*(volatile U32 *)REG_EPHY_MII_RMII);
  726. tmp_value.all = value;
  727. #if GH_EPHY_ENABLE_DEBUG_PRINT
  728. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_MII_RMII_rmii] --> 0x%08x\n",
  729. REG_EPHY_MII_RMII,value);
  730. #endif
  731. return tmp_value.bitc.rmii;
  732. }
  733. #endif /* GH_INLINE_LEVEL == 0 */
  734. /*----------------------------------------------------------------------------*/
  735. /* register EPHY_CONTROL (read/write) */
  736. /*----------------------------------------------------------------------------*/
  737. #if GH_INLINE_LEVEL == 0
  738. /*! \brief Writes the register 'EPHY_CONTROL'. */
  739. void GH_EPHY_set_CONTROL(U16 data);
  740. /*! \brief Reads the register 'EPHY_CONTROL'. */
  741. U16 GH_EPHY_get_CONTROL(void);
  742. /*! \brief Writes the bit group 'mii_ctl_unidirectional_enable' of register 'EPHY_CONTROL'. */
  743. void GH_EPHY_set_CONTROL_mii_ctl_unidirectional_enable(U8 data);
  744. /*! \brief Reads the bit group 'mii_ctl_unidirectional_enable' of register 'EPHY_CONTROL'. */
  745. U8 GH_EPHY_get_CONTROL_mii_ctl_unidirectional_enable(void);
  746. /*! \brief Writes the bit group 'mii_ctl_speed_sel_msb' of register 'EPHY_CONTROL'. */
  747. void GH_EPHY_set_CONTROL_mii_ctl_speed_sel_msb(U8 data);
  748. /*! \brief Reads the bit group 'mii_ctl_speed_sel_msb' of register 'EPHY_CONTROL'. */
  749. U8 GH_EPHY_get_CONTROL_mii_ctl_speed_sel_msb(void);
  750. /*! \brief Writes the bit group 'mii_ctl_col_test' of register 'EPHY_CONTROL'. */
  751. void GH_EPHY_set_CONTROL_mii_ctl_col_test(U8 data);
  752. /*! \brief Reads the bit group 'mii_ctl_col_test' of register 'EPHY_CONTROL'. */
  753. U8 GH_EPHY_get_CONTROL_mii_ctl_col_test(void);
  754. /*! \brief Writes the bit group 'mii_ctl_duplex_mode' of register 'EPHY_CONTROL'. */
  755. void GH_EPHY_set_CONTROL_mii_ctl_duplex_mode(U8 data);
  756. /*! \brief Reads the bit group 'mii_ctl_duplex_mode' of register 'EPHY_CONTROL'. */
  757. U8 GH_EPHY_get_CONTROL_mii_ctl_duplex_mode(void);
  758. /*! \brief Writes the bit group 'mii_ctl_restart_an' of register 'EPHY_CONTROL'. */
  759. void GH_EPHY_set_CONTROL_mii_ctl_restart_an(U8 data);
  760. /*! \brief Reads the bit group 'mii_ctl_restart_an' of register 'EPHY_CONTROL'. */
  761. U8 GH_EPHY_get_CONTROL_mii_ctl_restart_an(void);
  762. /*! \brief Writes the bit group 'mii_ctl_isolate' of register 'EPHY_CONTROL'. */
  763. void GH_EPHY_set_CONTROL_mii_ctl_isolate(U8 data);
  764. /*! \brief Reads the bit group 'mii_ctl_isolate' of register 'EPHY_CONTROL'. */
  765. U8 GH_EPHY_get_CONTROL_mii_ctl_isolate(void);
  766. /*! \brief Writes the bit group 'mii_ctl_power_down' of register 'EPHY_CONTROL'. */
  767. void GH_EPHY_set_CONTROL_mii_ctl_power_down(U8 data);
  768. /*! \brief Reads the bit group 'mii_ctl_power_down' of register 'EPHY_CONTROL'. */
  769. U8 GH_EPHY_get_CONTROL_mii_ctl_power_down(void);
  770. /*! \brief Writes the bit group 'mii_ctl_an_en' of register 'EPHY_CONTROL'. */
  771. void GH_EPHY_set_CONTROL_mii_ctl_an_en(U8 data);
  772. /*! \brief Reads the bit group 'mii_ctl_an_en' of register 'EPHY_CONTROL'. */
  773. U8 GH_EPHY_get_CONTROL_mii_ctl_an_en(void);
  774. /*! \brief Writes the bit group 'mii_ctl_speed_sel_lsb' of register 'EPHY_CONTROL'. */
  775. void GH_EPHY_set_CONTROL_mii_ctl_speed_sel_lsb(U8 data);
  776. /*! \brief Reads the bit group 'mii_ctl_speed_sel_lsb' of register 'EPHY_CONTROL'. */
  777. U8 GH_EPHY_get_CONTROL_mii_ctl_speed_sel_lsb(void);
  778. /*! \brief Writes the bit group 'mii_ctl_loopback' of register 'EPHY_CONTROL'. */
  779. void GH_EPHY_set_CONTROL_mii_ctl_loopback(U8 data);
  780. /*! \brief Reads the bit group 'mii_ctl_loopback' of register 'EPHY_CONTROL'. */
  781. U8 GH_EPHY_get_CONTROL_mii_ctl_loopback(void);
  782. /*! \brief Writes the bit group 'mii_ctl_reset' of register 'EPHY_CONTROL'. */
  783. void GH_EPHY_set_CONTROL_mii_ctl_reset(U8 data);
  784. /*! \brief Reads the bit group 'mii_ctl_reset' of register 'EPHY_CONTROL'. */
  785. U8 GH_EPHY_get_CONTROL_mii_ctl_reset(void);
  786. #else /* GH_INLINE_LEVEL == 0 */
  787. GH_INLINE void GH_EPHY_set_CONTROL(U16 data)
  788. {
  789. *(volatile U16 *)REG_EPHY_CONTROL = data;
  790. #if GH_EPHY_ENABLE_DEBUG_PRINT
  791. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_CONTROL] <-- 0x%08x\n",
  792. REG_EPHY_CONTROL,data,data);
  793. #endif
  794. }
  795. GH_INLINE U16 GH_EPHY_get_CONTROL(void)
  796. {
  797. U16 value = (*(volatile U16 *)REG_EPHY_CONTROL);
  798. #if GH_EPHY_ENABLE_DEBUG_PRINT
  799. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_CONTROL] --> 0x%08x\n",
  800. REG_EPHY_CONTROL,value);
  801. #endif
  802. return value;
  803. }
  804. GH_INLINE void GH_EPHY_set_CONTROL_mii_ctl_unidirectional_enable(U8 data)
  805. {
  806. GH_EPHY_CONTROL_S d;
  807. d.all = *(volatile U16 *)REG_EPHY_CONTROL;
  808. d.bitc.mii_ctl_unidirectional_enable = data;
  809. *(volatile U16 *)REG_EPHY_CONTROL = d.all;
  810. #if GH_EPHY_ENABLE_DEBUG_PRINT
  811. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_CONTROL_mii_ctl_unidirectional_enable] <-- 0x%08x\n",
  812. REG_EPHY_CONTROL,d.all,d.all);
  813. #endif
  814. }
  815. GH_INLINE U8 GH_EPHY_get_CONTROL_mii_ctl_unidirectional_enable(void)
  816. {
  817. GH_EPHY_CONTROL_S tmp_value;
  818. U16 value = (*(volatile U16 *)REG_EPHY_CONTROL);
  819. tmp_value.all = value;
  820. #if GH_EPHY_ENABLE_DEBUG_PRINT
  821. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_CONTROL_mii_ctl_unidirectional_enable] --> 0x%08x\n",
  822. REG_EPHY_CONTROL,value);
  823. #endif
  824. return tmp_value.bitc.mii_ctl_unidirectional_enable;
  825. }
  826. GH_INLINE void GH_EPHY_set_CONTROL_mii_ctl_speed_sel_msb(U8 data)
  827. {
  828. GH_EPHY_CONTROL_S d;
  829. d.all = *(volatile U16 *)REG_EPHY_CONTROL;
  830. d.bitc.mii_ctl_speed_sel_msb = data;
  831. *(volatile U16 *)REG_EPHY_CONTROL = d.all;
  832. #if GH_EPHY_ENABLE_DEBUG_PRINT
  833. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_CONTROL_mii_ctl_speed_sel_msb] <-- 0x%08x\n",
  834. REG_EPHY_CONTROL,d.all,d.all);
  835. #endif
  836. }
  837. GH_INLINE U8 GH_EPHY_get_CONTROL_mii_ctl_speed_sel_msb(void)
  838. {
  839. GH_EPHY_CONTROL_S tmp_value;
  840. U16 value = (*(volatile U16 *)REG_EPHY_CONTROL);
  841. tmp_value.all = value;
  842. #if GH_EPHY_ENABLE_DEBUG_PRINT
  843. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_CONTROL_mii_ctl_speed_sel_msb] --> 0x%08x\n",
  844. REG_EPHY_CONTROL,value);
  845. #endif
  846. return tmp_value.bitc.mii_ctl_speed_sel_msb;
  847. }
  848. GH_INLINE void GH_EPHY_set_CONTROL_mii_ctl_col_test(U8 data)
  849. {
  850. GH_EPHY_CONTROL_S d;
  851. d.all = *(volatile U16 *)REG_EPHY_CONTROL;
  852. d.bitc.mii_ctl_col_test = data;
  853. *(volatile U16 *)REG_EPHY_CONTROL = d.all;
  854. #if GH_EPHY_ENABLE_DEBUG_PRINT
  855. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_CONTROL_mii_ctl_col_test] <-- 0x%08x\n",
  856. REG_EPHY_CONTROL,d.all,d.all);
  857. #endif
  858. }
  859. GH_INLINE U8 GH_EPHY_get_CONTROL_mii_ctl_col_test(void)
  860. {
  861. GH_EPHY_CONTROL_S tmp_value;
  862. U16 value = (*(volatile U16 *)REG_EPHY_CONTROL);
  863. tmp_value.all = value;
  864. #if GH_EPHY_ENABLE_DEBUG_PRINT
  865. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_CONTROL_mii_ctl_col_test] --> 0x%08x\n",
  866. REG_EPHY_CONTROL,value);
  867. #endif
  868. return tmp_value.bitc.mii_ctl_col_test;
  869. }
  870. GH_INLINE void GH_EPHY_set_CONTROL_mii_ctl_duplex_mode(U8 data)
  871. {
  872. GH_EPHY_CONTROL_S d;
  873. d.all = *(volatile U16 *)REG_EPHY_CONTROL;
  874. d.bitc.mii_ctl_duplex_mode = data;
  875. *(volatile U16 *)REG_EPHY_CONTROL = d.all;
  876. #if GH_EPHY_ENABLE_DEBUG_PRINT
  877. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_CONTROL_mii_ctl_duplex_mode] <-- 0x%08x\n",
  878. REG_EPHY_CONTROL,d.all,d.all);
  879. #endif
  880. }
  881. GH_INLINE U8 GH_EPHY_get_CONTROL_mii_ctl_duplex_mode(void)
  882. {
  883. GH_EPHY_CONTROL_S tmp_value;
  884. U16 value = (*(volatile U16 *)REG_EPHY_CONTROL);
  885. tmp_value.all = value;
  886. #if GH_EPHY_ENABLE_DEBUG_PRINT
  887. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_CONTROL_mii_ctl_duplex_mode] --> 0x%08x\n",
  888. REG_EPHY_CONTROL,value);
  889. #endif
  890. return tmp_value.bitc.mii_ctl_duplex_mode;
  891. }
  892. GH_INLINE void GH_EPHY_set_CONTROL_mii_ctl_restart_an(U8 data)
  893. {
  894. GH_EPHY_CONTROL_S d;
  895. d.all = *(volatile U16 *)REG_EPHY_CONTROL;
  896. d.bitc.mii_ctl_restart_an = data;
  897. *(volatile U16 *)REG_EPHY_CONTROL = d.all;
  898. #if GH_EPHY_ENABLE_DEBUG_PRINT
  899. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_CONTROL_mii_ctl_restart_an] <-- 0x%08x\n",
  900. REG_EPHY_CONTROL,d.all,d.all);
  901. #endif
  902. }
  903. GH_INLINE U8 GH_EPHY_get_CONTROL_mii_ctl_restart_an(void)
  904. {
  905. GH_EPHY_CONTROL_S tmp_value;
  906. U16 value = (*(volatile U16 *)REG_EPHY_CONTROL);
  907. tmp_value.all = value;
  908. #if GH_EPHY_ENABLE_DEBUG_PRINT
  909. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_CONTROL_mii_ctl_restart_an] --> 0x%08x\n",
  910. REG_EPHY_CONTROL,value);
  911. #endif
  912. return tmp_value.bitc.mii_ctl_restart_an;
  913. }
  914. GH_INLINE void GH_EPHY_set_CONTROL_mii_ctl_isolate(U8 data)
  915. {
  916. GH_EPHY_CONTROL_S d;
  917. d.all = *(volatile U16 *)REG_EPHY_CONTROL;
  918. d.bitc.mii_ctl_isolate = data;
  919. *(volatile U16 *)REG_EPHY_CONTROL = d.all;
  920. #if GH_EPHY_ENABLE_DEBUG_PRINT
  921. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_CONTROL_mii_ctl_isolate] <-- 0x%08x\n",
  922. REG_EPHY_CONTROL,d.all,d.all);
  923. #endif
  924. }
  925. GH_INLINE U8 GH_EPHY_get_CONTROL_mii_ctl_isolate(void)
  926. {
  927. GH_EPHY_CONTROL_S tmp_value;
  928. U16 value = (*(volatile U16 *)REG_EPHY_CONTROL);
  929. tmp_value.all = value;
  930. #if GH_EPHY_ENABLE_DEBUG_PRINT
  931. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_CONTROL_mii_ctl_isolate] --> 0x%08x\n",
  932. REG_EPHY_CONTROL,value);
  933. #endif
  934. return tmp_value.bitc.mii_ctl_isolate;
  935. }
  936. GH_INLINE void GH_EPHY_set_CONTROL_mii_ctl_power_down(U8 data)
  937. {
  938. GH_EPHY_CONTROL_S d;
  939. d.all = *(volatile U16 *)REG_EPHY_CONTROL;
  940. d.bitc.mii_ctl_power_down = data;
  941. *(volatile U16 *)REG_EPHY_CONTROL = d.all;
  942. #if GH_EPHY_ENABLE_DEBUG_PRINT
  943. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_CONTROL_mii_ctl_power_down] <-- 0x%08x\n",
  944. REG_EPHY_CONTROL,d.all,d.all);
  945. #endif
  946. }
  947. GH_INLINE U8 GH_EPHY_get_CONTROL_mii_ctl_power_down(void)
  948. {
  949. GH_EPHY_CONTROL_S tmp_value;
  950. U16 value = (*(volatile U16 *)REG_EPHY_CONTROL);
  951. tmp_value.all = value;
  952. #if GH_EPHY_ENABLE_DEBUG_PRINT
  953. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_CONTROL_mii_ctl_power_down] --> 0x%08x\n",
  954. REG_EPHY_CONTROL,value);
  955. #endif
  956. return tmp_value.bitc.mii_ctl_power_down;
  957. }
  958. GH_INLINE void GH_EPHY_set_CONTROL_mii_ctl_an_en(U8 data)
  959. {
  960. GH_EPHY_CONTROL_S d;
  961. d.all = *(volatile U16 *)REG_EPHY_CONTROL;
  962. d.bitc.mii_ctl_an_en = data;
  963. *(volatile U16 *)REG_EPHY_CONTROL = d.all;
  964. #if GH_EPHY_ENABLE_DEBUG_PRINT
  965. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_CONTROL_mii_ctl_an_en] <-- 0x%08x\n",
  966. REG_EPHY_CONTROL,d.all,d.all);
  967. #endif
  968. }
  969. GH_INLINE U8 GH_EPHY_get_CONTROL_mii_ctl_an_en(void)
  970. {
  971. GH_EPHY_CONTROL_S tmp_value;
  972. U16 value = (*(volatile U16 *)REG_EPHY_CONTROL);
  973. tmp_value.all = value;
  974. #if GH_EPHY_ENABLE_DEBUG_PRINT
  975. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_CONTROL_mii_ctl_an_en] --> 0x%08x\n",
  976. REG_EPHY_CONTROL,value);
  977. #endif
  978. return tmp_value.bitc.mii_ctl_an_en;
  979. }
  980. GH_INLINE void GH_EPHY_set_CONTROL_mii_ctl_speed_sel_lsb(U8 data)
  981. {
  982. GH_EPHY_CONTROL_S d;
  983. d.all = *(volatile U16 *)REG_EPHY_CONTROL;
  984. d.bitc.mii_ctl_speed_sel_lsb = data;
  985. *(volatile U16 *)REG_EPHY_CONTROL = d.all;
  986. #if GH_EPHY_ENABLE_DEBUG_PRINT
  987. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_CONTROL_mii_ctl_speed_sel_lsb] <-- 0x%08x\n",
  988. REG_EPHY_CONTROL,d.all,d.all);
  989. #endif
  990. }
  991. GH_INLINE U8 GH_EPHY_get_CONTROL_mii_ctl_speed_sel_lsb(void)
  992. {
  993. GH_EPHY_CONTROL_S tmp_value;
  994. U16 value = (*(volatile U16 *)REG_EPHY_CONTROL);
  995. tmp_value.all = value;
  996. #if GH_EPHY_ENABLE_DEBUG_PRINT
  997. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_CONTROL_mii_ctl_speed_sel_lsb] --> 0x%08x\n",
  998. REG_EPHY_CONTROL,value);
  999. #endif
  1000. return tmp_value.bitc.mii_ctl_speed_sel_lsb;
  1001. }
  1002. GH_INLINE void GH_EPHY_set_CONTROL_mii_ctl_loopback(U8 data)
  1003. {
  1004. GH_EPHY_CONTROL_S d;
  1005. d.all = *(volatile U16 *)REG_EPHY_CONTROL;
  1006. d.bitc.mii_ctl_loopback = data;
  1007. *(volatile U16 *)REG_EPHY_CONTROL = d.all;
  1008. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1009. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_CONTROL_mii_ctl_loopback] <-- 0x%08x\n",
  1010. REG_EPHY_CONTROL,d.all,d.all);
  1011. #endif
  1012. }
  1013. GH_INLINE U8 GH_EPHY_get_CONTROL_mii_ctl_loopback(void)
  1014. {
  1015. GH_EPHY_CONTROL_S tmp_value;
  1016. U16 value = (*(volatile U16 *)REG_EPHY_CONTROL);
  1017. tmp_value.all = value;
  1018. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1019. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_CONTROL_mii_ctl_loopback] --> 0x%08x\n",
  1020. REG_EPHY_CONTROL,value);
  1021. #endif
  1022. return tmp_value.bitc.mii_ctl_loopback;
  1023. }
  1024. GH_INLINE void GH_EPHY_set_CONTROL_mii_ctl_reset(U8 data)
  1025. {
  1026. GH_EPHY_CONTROL_S d;
  1027. d.all = *(volatile U16 *)REG_EPHY_CONTROL;
  1028. d.bitc.mii_ctl_reset = data;
  1029. *(volatile U16 *)REG_EPHY_CONTROL = d.all;
  1030. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1031. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_CONTROL_mii_ctl_reset] <-- 0x%08x\n",
  1032. REG_EPHY_CONTROL,d.all,d.all);
  1033. #endif
  1034. }
  1035. GH_INLINE U8 GH_EPHY_get_CONTROL_mii_ctl_reset(void)
  1036. {
  1037. GH_EPHY_CONTROL_S tmp_value;
  1038. U16 value = (*(volatile U16 *)REG_EPHY_CONTROL);
  1039. tmp_value.all = value;
  1040. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1041. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_CONTROL_mii_ctl_reset] --> 0x%08x\n",
  1042. REG_EPHY_CONTROL,value);
  1043. #endif
  1044. return tmp_value.bitc.mii_ctl_reset;
  1045. }
  1046. #endif /* GH_INLINE_LEVEL == 0 */
  1047. /*----------------------------------------------------------------------------*/
  1048. /* register EPHY_STATUS (read) */
  1049. /*----------------------------------------------------------------------------*/
  1050. #if GH_INLINE_LEVEL == 0
  1051. /*! \brief Reads the register 'EPHY_STATUS'. */
  1052. U16 GH_EPHY_get_STATUS(void);
  1053. /*! \brief Reads the bit group 'extended_capability' of register 'EPHY_STATUS'. */
  1054. U8 GH_EPHY_get_STATUS_extended_capability(void);
  1055. /*! \brief Reads the bit group 'jabber_detect' of register 'EPHY_STATUS'. */
  1056. U8 GH_EPHY_get_STATUS_jabber_detect(void);
  1057. /*! \brief Reads the bit group 'link_status' of register 'EPHY_STATUS'. */
  1058. U8 GH_EPHY_get_STATUS_link_status(void);
  1059. /*! \brief Reads the bit group 'an_ability' of register 'EPHY_STATUS'. */
  1060. U8 GH_EPHY_get_STATUS_an_ability(void);
  1061. /*! \brief Reads the bit group 'rf' of register 'EPHY_STATUS'. */
  1062. U8 GH_EPHY_get_STATUS_rf(void);
  1063. /*! \brief Reads the bit group 'an_complete' of register 'EPHY_STATUS'. */
  1064. U8 GH_EPHY_get_STATUS_an_complete(void);
  1065. /*! \brief Reads the bit group 'mf_preamble_suppression' of register 'EPHY_STATUS'. */
  1066. U8 GH_EPHY_get_STATUS_mf_preamble_suppression(void);
  1067. /*! \brief Reads the bit group 'unidirectional_ability' of register 'EPHY_STATUS'. */
  1068. U8 GH_EPHY_get_STATUS_unidirectional_ability(void);
  1069. /*! \brief Reads the bit group 'extended_status' of register 'EPHY_STATUS'. */
  1070. U8 GH_EPHY_get_STATUS_extended_status(void);
  1071. /*! \brief Reads the bit group 'half_duplex_100t2' of register 'EPHY_STATUS'. */
  1072. U8 GH_EPHY_get_STATUS_half_duplex_100t2(void);
  1073. /*! \brief Reads the bit group 'full_duplex_100t2' of register 'EPHY_STATUS'. */
  1074. U8 GH_EPHY_get_STATUS_full_duplex_100t2(void);
  1075. /*! \brief Reads the bit group 'half_duplex_10' of register 'EPHY_STATUS'. */
  1076. U8 GH_EPHY_get_STATUS_half_duplex_10(void);
  1077. /*! \brief Reads the bit group 'full_duplex_10' of register 'EPHY_STATUS'. */
  1078. U8 GH_EPHY_get_STATUS_full_duplex_10(void);
  1079. /*! \brief Reads the bit group 'half_duplex_100x' of register 'EPHY_STATUS'. */
  1080. U8 GH_EPHY_get_STATUS_half_duplex_100x(void);
  1081. /*! \brief Reads the bit group 'full_duplex_100x' of register 'EPHY_STATUS'. */
  1082. U8 GH_EPHY_get_STATUS_full_duplex_100x(void);
  1083. /*! \brief Reads the bit group 't4_100' of register 'EPHY_STATUS'. */
  1084. U8 GH_EPHY_get_STATUS_t4_100(void);
  1085. #else /* GH_INLINE_LEVEL == 0 */
  1086. GH_INLINE U16 GH_EPHY_get_STATUS(void)
  1087. {
  1088. U16 value = (*(volatile U16 *)REG_EPHY_STATUS);
  1089. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1090. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_STATUS] --> 0x%08x\n",
  1091. REG_EPHY_STATUS,value);
  1092. #endif
  1093. return value;
  1094. }
  1095. GH_INLINE U8 GH_EPHY_get_STATUS_extended_capability(void)
  1096. {
  1097. GH_EPHY_STATUS_S tmp_value;
  1098. U16 value = (*(volatile U16 *)REG_EPHY_STATUS);
  1099. tmp_value.all = value;
  1100. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1101. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_STATUS_extended_capability] --> 0x%08x\n",
  1102. REG_EPHY_STATUS,value);
  1103. #endif
  1104. return tmp_value.bitc.extended_capability;
  1105. }
  1106. GH_INLINE U8 GH_EPHY_get_STATUS_jabber_detect(void)
  1107. {
  1108. GH_EPHY_STATUS_S tmp_value;
  1109. U16 value = (*(volatile U16 *)REG_EPHY_STATUS);
  1110. tmp_value.all = value;
  1111. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1112. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_STATUS_jabber_detect] --> 0x%08x\n",
  1113. REG_EPHY_STATUS,value);
  1114. #endif
  1115. return tmp_value.bitc.jabber_detect;
  1116. }
  1117. GH_INLINE U8 GH_EPHY_get_STATUS_link_status(void)
  1118. {
  1119. GH_EPHY_STATUS_S tmp_value;
  1120. U16 value = (*(volatile U16 *)REG_EPHY_STATUS);
  1121. tmp_value.all = value;
  1122. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1123. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_STATUS_link_status] --> 0x%08x\n",
  1124. REG_EPHY_STATUS,value);
  1125. #endif
  1126. return tmp_value.bitc.link_status;
  1127. }
  1128. GH_INLINE U8 GH_EPHY_get_STATUS_an_ability(void)
  1129. {
  1130. GH_EPHY_STATUS_S tmp_value;
  1131. U16 value = (*(volatile U16 *)REG_EPHY_STATUS);
  1132. tmp_value.all = value;
  1133. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1134. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_STATUS_an_ability] --> 0x%08x\n",
  1135. REG_EPHY_STATUS,value);
  1136. #endif
  1137. return tmp_value.bitc.an_ability;
  1138. }
  1139. GH_INLINE U8 GH_EPHY_get_STATUS_rf(void)
  1140. {
  1141. GH_EPHY_STATUS_S tmp_value;
  1142. U16 value = (*(volatile U16 *)REG_EPHY_STATUS);
  1143. tmp_value.all = value;
  1144. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1145. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_STATUS_rf] --> 0x%08x\n",
  1146. REG_EPHY_STATUS,value);
  1147. #endif
  1148. return tmp_value.bitc.rf;
  1149. }
  1150. GH_INLINE U8 GH_EPHY_get_STATUS_an_complete(void)
  1151. {
  1152. GH_EPHY_STATUS_S tmp_value;
  1153. U16 value = (*(volatile U16 *)REG_EPHY_STATUS);
  1154. tmp_value.all = value;
  1155. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1156. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_STATUS_an_complete] --> 0x%08x\n",
  1157. REG_EPHY_STATUS,value);
  1158. #endif
  1159. return tmp_value.bitc.an_complete;
  1160. }
  1161. GH_INLINE U8 GH_EPHY_get_STATUS_mf_preamble_suppression(void)
  1162. {
  1163. GH_EPHY_STATUS_S tmp_value;
  1164. U16 value = (*(volatile U16 *)REG_EPHY_STATUS);
  1165. tmp_value.all = value;
  1166. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1167. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_STATUS_mf_preamble_suppression] --> 0x%08x\n",
  1168. REG_EPHY_STATUS,value);
  1169. #endif
  1170. return tmp_value.bitc.mf_preamble_suppression;
  1171. }
  1172. GH_INLINE U8 GH_EPHY_get_STATUS_unidirectional_ability(void)
  1173. {
  1174. GH_EPHY_STATUS_S tmp_value;
  1175. U16 value = (*(volatile U16 *)REG_EPHY_STATUS);
  1176. tmp_value.all = value;
  1177. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1178. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_STATUS_unidirectional_ability] --> 0x%08x\n",
  1179. REG_EPHY_STATUS,value);
  1180. #endif
  1181. return tmp_value.bitc.unidirectional_ability;
  1182. }
  1183. GH_INLINE U8 GH_EPHY_get_STATUS_extended_status(void)
  1184. {
  1185. GH_EPHY_STATUS_S tmp_value;
  1186. U16 value = (*(volatile U16 *)REG_EPHY_STATUS);
  1187. tmp_value.all = value;
  1188. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1189. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_STATUS_extended_status] --> 0x%08x\n",
  1190. REG_EPHY_STATUS,value);
  1191. #endif
  1192. return tmp_value.bitc.extended_status;
  1193. }
  1194. GH_INLINE U8 GH_EPHY_get_STATUS_half_duplex_100t2(void)
  1195. {
  1196. GH_EPHY_STATUS_S tmp_value;
  1197. U16 value = (*(volatile U16 *)REG_EPHY_STATUS);
  1198. tmp_value.all = value;
  1199. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1200. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_STATUS_half_duplex_100t2] --> 0x%08x\n",
  1201. REG_EPHY_STATUS,value);
  1202. #endif
  1203. return tmp_value.bitc.half_duplex_100t2;
  1204. }
  1205. GH_INLINE U8 GH_EPHY_get_STATUS_full_duplex_100t2(void)
  1206. {
  1207. GH_EPHY_STATUS_S tmp_value;
  1208. U16 value = (*(volatile U16 *)REG_EPHY_STATUS);
  1209. tmp_value.all = value;
  1210. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1211. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_STATUS_full_duplex_100t2] --> 0x%08x\n",
  1212. REG_EPHY_STATUS,value);
  1213. #endif
  1214. return tmp_value.bitc.full_duplex_100t2;
  1215. }
  1216. GH_INLINE U8 GH_EPHY_get_STATUS_half_duplex_10(void)
  1217. {
  1218. GH_EPHY_STATUS_S tmp_value;
  1219. U16 value = (*(volatile U16 *)REG_EPHY_STATUS);
  1220. tmp_value.all = value;
  1221. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1222. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_STATUS_half_duplex_10] --> 0x%08x\n",
  1223. REG_EPHY_STATUS,value);
  1224. #endif
  1225. return tmp_value.bitc.half_duplex_10;
  1226. }
  1227. GH_INLINE U8 GH_EPHY_get_STATUS_full_duplex_10(void)
  1228. {
  1229. GH_EPHY_STATUS_S tmp_value;
  1230. U16 value = (*(volatile U16 *)REG_EPHY_STATUS);
  1231. tmp_value.all = value;
  1232. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1233. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_STATUS_full_duplex_10] --> 0x%08x\n",
  1234. REG_EPHY_STATUS,value);
  1235. #endif
  1236. return tmp_value.bitc.full_duplex_10;
  1237. }
  1238. GH_INLINE U8 GH_EPHY_get_STATUS_half_duplex_100x(void)
  1239. {
  1240. GH_EPHY_STATUS_S tmp_value;
  1241. U16 value = (*(volatile U16 *)REG_EPHY_STATUS);
  1242. tmp_value.all = value;
  1243. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1244. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_STATUS_half_duplex_100x] --> 0x%08x\n",
  1245. REG_EPHY_STATUS,value);
  1246. #endif
  1247. return tmp_value.bitc.half_duplex_100x;
  1248. }
  1249. GH_INLINE U8 GH_EPHY_get_STATUS_full_duplex_100x(void)
  1250. {
  1251. GH_EPHY_STATUS_S tmp_value;
  1252. U16 value = (*(volatile U16 *)REG_EPHY_STATUS);
  1253. tmp_value.all = value;
  1254. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1255. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_STATUS_full_duplex_100x] --> 0x%08x\n",
  1256. REG_EPHY_STATUS,value);
  1257. #endif
  1258. return tmp_value.bitc.full_duplex_100x;
  1259. }
  1260. GH_INLINE U8 GH_EPHY_get_STATUS_t4_100(void)
  1261. {
  1262. GH_EPHY_STATUS_S tmp_value;
  1263. U16 value = (*(volatile U16 *)REG_EPHY_STATUS);
  1264. tmp_value.all = value;
  1265. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1266. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_STATUS_t4_100] --> 0x%08x\n",
  1267. REG_EPHY_STATUS,value);
  1268. #endif
  1269. return tmp_value.bitc.t4_100;
  1270. }
  1271. #endif /* GH_INLINE_LEVEL == 0 */
  1272. /*----------------------------------------------------------------------------*/
  1273. /* register EPHY_ID1 (read) */
  1274. /*----------------------------------------------------------------------------*/
  1275. #if GH_INLINE_LEVEL == 0
  1276. /*! \brief Reads the register 'EPHY_ID1'. */
  1277. U16 GH_EPHY_get_ID1(void);
  1278. #else /* GH_INLINE_LEVEL == 0 */
  1279. GH_INLINE U16 GH_EPHY_get_ID1(void)
  1280. {
  1281. U16 value = (*(volatile U16 *)REG_EPHY_ID1);
  1282. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1283. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ID1] --> 0x%08x\n",
  1284. REG_EPHY_ID1,value);
  1285. #endif
  1286. return value;
  1287. }
  1288. #endif /* GH_INLINE_LEVEL == 0 */
  1289. /*----------------------------------------------------------------------------*/
  1290. /* register EPHY_ID2 (read) */
  1291. /*----------------------------------------------------------------------------*/
  1292. #if GH_INLINE_LEVEL == 0
  1293. /*! \brief Reads the register 'EPHY_ID2'. */
  1294. U16 GH_EPHY_get_ID2(void);
  1295. #else /* GH_INLINE_LEVEL == 0 */
  1296. GH_INLINE U16 GH_EPHY_get_ID2(void)
  1297. {
  1298. U16 value = (*(volatile U16 *)REG_EPHY_ID2);
  1299. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1300. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ID2] --> 0x%08x\n",
  1301. REG_EPHY_ID2,value);
  1302. #endif
  1303. return value;
  1304. }
  1305. #endif /* GH_INLINE_LEVEL == 0 */
  1306. /*----------------------------------------------------------------------------*/
  1307. /* register EPHY_ANAR (read/write) */
  1308. /*----------------------------------------------------------------------------*/
  1309. #if GH_INLINE_LEVEL == 0
  1310. /*! \brief Writes the register 'EPHY_ANAR'. */
  1311. void GH_EPHY_set_ANAR(U16 data);
  1312. /*! \brief Reads the register 'EPHY_ANAR'. */
  1313. U16 GH_EPHY_get_ANAR(void);
  1314. /*! \brief Writes the bit group 'selector' of register 'EPHY_ANAR'. */
  1315. void GH_EPHY_set_ANAR_selector(U8 data);
  1316. /*! \brief Reads the bit group 'selector' of register 'EPHY_ANAR'. */
  1317. U8 GH_EPHY_get_ANAR_selector(void);
  1318. /*! \brief Writes the bit group 'tech_ability' of register 'EPHY_ANAR'. */
  1319. void GH_EPHY_set_ANAR_tech_ability(U8 data);
  1320. /*! \brief Reads the bit group 'tech_ability' of register 'EPHY_ANAR'. */
  1321. U8 GH_EPHY_get_ANAR_tech_ability(void);
  1322. /*! \brief Writes the bit group 'rf' of register 'EPHY_ANAR'. */
  1323. void GH_EPHY_set_ANAR_rf(U8 data);
  1324. /*! \brief Reads the bit group 'rf' of register 'EPHY_ANAR'. */
  1325. U8 GH_EPHY_get_ANAR_rf(void);
  1326. /*! \brief Writes the bit group 'np' of register 'EPHY_ANAR'. */
  1327. void GH_EPHY_set_ANAR_np(U8 data);
  1328. /*! \brief Reads the bit group 'np' of register 'EPHY_ANAR'. */
  1329. U8 GH_EPHY_get_ANAR_np(void);
  1330. #else /* GH_INLINE_LEVEL == 0 */
  1331. GH_INLINE void GH_EPHY_set_ANAR(U16 data)
  1332. {
  1333. *(volatile U16 *)REG_EPHY_ANAR = data;
  1334. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1335. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ANAR] <-- 0x%08x\n",
  1336. REG_EPHY_ANAR,data,data);
  1337. #endif
  1338. }
  1339. GH_INLINE U16 GH_EPHY_get_ANAR(void)
  1340. {
  1341. U16 value = (*(volatile U16 *)REG_EPHY_ANAR);
  1342. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1343. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ANAR] --> 0x%08x\n",
  1344. REG_EPHY_ANAR,value);
  1345. #endif
  1346. return value;
  1347. }
  1348. GH_INLINE void GH_EPHY_set_ANAR_selector(U8 data)
  1349. {
  1350. GH_EPHY_ANAR_S d;
  1351. d.all = *(volatile U16 *)REG_EPHY_ANAR;
  1352. d.bitc.selector = data;
  1353. *(volatile U16 *)REG_EPHY_ANAR = d.all;
  1354. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1355. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ANAR_selector] <-- 0x%08x\n",
  1356. REG_EPHY_ANAR,d.all,d.all);
  1357. #endif
  1358. }
  1359. GH_INLINE U8 GH_EPHY_get_ANAR_selector(void)
  1360. {
  1361. GH_EPHY_ANAR_S tmp_value;
  1362. U16 value = (*(volatile U16 *)REG_EPHY_ANAR);
  1363. tmp_value.all = value;
  1364. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1365. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ANAR_selector] --> 0x%08x\n",
  1366. REG_EPHY_ANAR,value);
  1367. #endif
  1368. return tmp_value.bitc.selector;
  1369. }
  1370. GH_INLINE void GH_EPHY_set_ANAR_tech_ability(U8 data)
  1371. {
  1372. GH_EPHY_ANAR_S d;
  1373. d.all = *(volatile U16 *)REG_EPHY_ANAR;
  1374. d.bitc.tech_ability = data;
  1375. *(volatile U16 *)REG_EPHY_ANAR = d.all;
  1376. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1377. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ANAR_tech_ability] <-- 0x%08x\n",
  1378. REG_EPHY_ANAR,d.all,d.all);
  1379. #endif
  1380. }
  1381. GH_INLINE U8 GH_EPHY_get_ANAR_tech_ability(void)
  1382. {
  1383. GH_EPHY_ANAR_S tmp_value;
  1384. U16 value = (*(volatile U16 *)REG_EPHY_ANAR);
  1385. tmp_value.all = value;
  1386. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1387. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ANAR_tech_ability] --> 0x%08x\n",
  1388. REG_EPHY_ANAR,value);
  1389. #endif
  1390. return tmp_value.bitc.tech_ability;
  1391. }
  1392. GH_INLINE void GH_EPHY_set_ANAR_rf(U8 data)
  1393. {
  1394. GH_EPHY_ANAR_S d;
  1395. d.all = *(volatile U16 *)REG_EPHY_ANAR;
  1396. d.bitc.rf = data;
  1397. *(volatile U16 *)REG_EPHY_ANAR = d.all;
  1398. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1399. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ANAR_rf] <-- 0x%08x\n",
  1400. REG_EPHY_ANAR,d.all,d.all);
  1401. #endif
  1402. }
  1403. GH_INLINE U8 GH_EPHY_get_ANAR_rf(void)
  1404. {
  1405. GH_EPHY_ANAR_S tmp_value;
  1406. U16 value = (*(volatile U16 *)REG_EPHY_ANAR);
  1407. tmp_value.all = value;
  1408. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1409. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ANAR_rf] --> 0x%08x\n",
  1410. REG_EPHY_ANAR,value);
  1411. #endif
  1412. return tmp_value.bitc.rf;
  1413. }
  1414. GH_INLINE void GH_EPHY_set_ANAR_np(U8 data)
  1415. {
  1416. GH_EPHY_ANAR_S d;
  1417. d.all = *(volatile U16 *)REG_EPHY_ANAR;
  1418. d.bitc.np = data;
  1419. *(volatile U16 *)REG_EPHY_ANAR = d.all;
  1420. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1421. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ANAR_np] <-- 0x%08x\n",
  1422. REG_EPHY_ANAR,d.all,d.all);
  1423. #endif
  1424. }
  1425. GH_INLINE U8 GH_EPHY_get_ANAR_np(void)
  1426. {
  1427. GH_EPHY_ANAR_S tmp_value;
  1428. U16 value = (*(volatile U16 *)REG_EPHY_ANAR);
  1429. tmp_value.all = value;
  1430. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1431. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ANAR_np] --> 0x%08x\n",
  1432. REG_EPHY_ANAR,value);
  1433. #endif
  1434. return tmp_value.bitc.np;
  1435. }
  1436. #endif /* GH_INLINE_LEVEL == 0 */
  1437. /*----------------------------------------------------------------------------*/
  1438. /* register EPHY_ANLPAR (read) */
  1439. /*----------------------------------------------------------------------------*/
  1440. #if GH_INLINE_LEVEL == 0
  1441. /*! \brief Reads the register 'EPHY_ANLPAR'. */
  1442. U16 GH_EPHY_get_ANLPAR(void);
  1443. /*! \brief Reads the bit group 'selector' of register 'EPHY_ANLPAR'. */
  1444. U8 GH_EPHY_get_ANLPAR_selector(void);
  1445. /*! \brief Reads the bit group 'tech_ability' of register 'EPHY_ANLPAR'. */
  1446. U8 GH_EPHY_get_ANLPAR_tech_ability(void);
  1447. /*! \brief Reads the bit group 'rf' of register 'EPHY_ANLPAR'. */
  1448. U8 GH_EPHY_get_ANLPAR_rf(void);
  1449. /*! \brief Reads the bit group 'ack' of register 'EPHY_ANLPAR'. */
  1450. U8 GH_EPHY_get_ANLPAR_ack(void);
  1451. /*! \brief Reads the bit group 'np' of register 'EPHY_ANLPAR'. */
  1452. U8 GH_EPHY_get_ANLPAR_np(void);
  1453. #else /* GH_INLINE_LEVEL == 0 */
  1454. GH_INLINE U16 GH_EPHY_get_ANLPAR(void)
  1455. {
  1456. U16 value = (*(volatile U16 *)REG_EPHY_ANLPAR);
  1457. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1458. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ANLPAR] --> 0x%08x\n",
  1459. REG_EPHY_ANLPAR,value);
  1460. #endif
  1461. return value;
  1462. }
  1463. GH_INLINE U8 GH_EPHY_get_ANLPAR_selector(void)
  1464. {
  1465. GH_EPHY_ANLPAR_S tmp_value;
  1466. U16 value = (*(volatile U16 *)REG_EPHY_ANLPAR);
  1467. tmp_value.all = value;
  1468. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1469. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ANLPAR_selector] --> 0x%08x\n",
  1470. REG_EPHY_ANLPAR,value);
  1471. #endif
  1472. return tmp_value.bitc.selector;
  1473. }
  1474. GH_INLINE U8 GH_EPHY_get_ANLPAR_tech_ability(void)
  1475. {
  1476. GH_EPHY_ANLPAR_S tmp_value;
  1477. U16 value = (*(volatile U16 *)REG_EPHY_ANLPAR);
  1478. tmp_value.all = value;
  1479. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1480. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ANLPAR_tech_ability] --> 0x%08x\n",
  1481. REG_EPHY_ANLPAR,value);
  1482. #endif
  1483. return tmp_value.bitc.tech_ability;
  1484. }
  1485. GH_INLINE U8 GH_EPHY_get_ANLPAR_rf(void)
  1486. {
  1487. GH_EPHY_ANLPAR_S tmp_value;
  1488. U16 value = (*(volatile U16 *)REG_EPHY_ANLPAR);
  1489. tmp_value.all = value;
  1490. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1491. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ANLPAR_rf] --> 0x%08x\n",
  1492. REG_EPHY_ANLPAR,value);
  1493. #endif
  1494. return tmp_value.bitc.rf;
  1495. }
  1496. GH_INLINE U8 GH_EPHY_get_ANLPAR_ack(void)
  1497. {
  1498. GH_EPHY_ANLPAR_S tmp_value;
  1499. U16 value = (*(volatile U16 *)REG_EPHY_ANLPAR);
  1500. tmp_value.all = value;
  1501. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1502. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ANLPAR_ack] --> 0x%08x\n",
  1503. REG_EPHY_ANLPAR,value);
  1504. #endif
  1505. return tmp_value.bitc.ack;
  1506. }
  1507. GH_INLINE U8 GH_EPHY_get_ANLPAR_np(void)
  1508. {
  1509. GH_EPHY_ANLPAR_S tmp_value;
  1510. U16 value = (*(volatile U16 *)REG_EPHY_ANLPAR);
  1511. tmp_value.all = value;
  1512. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1513. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ANLPAR_np] --> 0x%08x\n",
  1514. REG_EPHY_ANLPAR,value);
  1515. #endif
  1516. return tmp_value.bitc.np;
  1517. }
  1518. #endif /* GH_INLINE_LEVEL == 0 */
  1519. /*----------------------------------------------------------------------------*/
  1520. /* register EPHY_ANER (read/write) */
  1521. /*----------------------------------------------------------------------------*/
  1522. #if GH_INLINE_LEVEL == 0
  1523. /*! \brief Writes the register 'EPHY_ANER'. */
  1524. void GH_EPHY_set_ANER(U16 data);
  1525. /*! \brief Reads the register 'EPHY_ANER'. */
  1526. U16 GH_EPHY_get_ANER(void);
  1527. /*! \brief Writes the bit group 'lp_an_able' of register 'EPHY_ANER'. */
  1528. void GH_EPHY_set_ANER_lp_an_able(U8 data);
  1529. /*! \brief Reads the bit group 'lp_an_able' of register 'EPHY_ANER'. */
  1530. U8 GH_EPHY_get_ANER_lp_an_able(void);
  1531. /*! \brief Writes the bit group 'page_rec' of register 'EPHY_ANER'. */
  1532. void GH_EPHY_set_ANER_page_rec(U8 data);
  1533. /*! \brief Reads the bit group 'page_rec' of register 'EPHY_ANER'. */
  1534. U8 GH_EPHY_get_ANER_page_rec(void);
  1535. /*! \brief Writes the bit group 'np_able' of register 'EPHY_ANER'. */
  1536. void GH_EPHY_set_ANER_np_able(U8 data);
  1537. /*! \brief Reads the bit group 'np_able' of register 'EPHY_ANER'. */
  1538. U8 GH_EPHY_get_ANER_np_able(void);
  1539. /*! \brief Writes the bit group 'lp_np_able' of register 'EPHY_ANER'. */
  1540. void GH_EPHY_set_ANER_lp_np_able(U8 data);
  1541. /*! \brief Reads the bit group 'lp_np_able' of register 'EPHY_ANER'. */
  1542. U8 GH_EPHY_get_ANER_lp_np_able(void);
  1543. /*! \brief Writes the bit group 'pd_fault' of register 'EPHY_ANER'. */
  1544. void GH_EPHY_set_ANER_pd_fault(U8 data);
  1545. /*! \brief Reads the bit group 'pd_fault' of register 'EPHY_ANER'. */
  1546. U8 GH_EPHY_get_ANER_pd_fault(void);
  1547. /*! \brief Writes the bit group 'np_location' of register 'EPHY_ANER'. */
  1548. void GH_EPHY_set_ANER_np_location(U8 data);
  1549. /*! \brief Reads the bit group 'np_location' of register 'EPHY_ANER'. */
  1550. U8 GH_EPHY_get_ANER_np_location(void);
  1551. /*! \brief Writes the bit group 'np_location_able' of register 'EPHY_ANER'. */
  1552. void GH_EPHY_set_ANER_np_location_able(U8 data);
  1553. /*! \brief Reads the bit group 'np_location_able' of register 'EPHY_ANER'. */
  1554. U8 GH_EPHY_get_ANER_np_location_able(void);
  1555. #else /* GH_INLINE_LEVEL == 0 */
  1556. GH_INLINE void GH_EPHY_set_ANER(U16 data)
  1557. {
  1558. *(volatile U16 *)REG_EPHY_ANER = data;
  1559. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1560. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ANER] <-- 0x%08x\n",
  1561. REG_EPHY_ANER,data,data);
  1562. #endif
  1563. }
  1564. GH_INLINE U16 GH_EPHY_get_ANER(void)
  1565. {
  1566. U16 value = (*(volatile U16 *)REG_EPHY_ANER);
  1567. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1568. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ANER] --> 0x%08x\n",
  1569. REG_EPHY_ANER,value);
  1570. #endif
  1571. return value;
  1572. }
  1573. GH_INLINE void GH_EPHY_set_ANER_lp_an_able(U8 data)
  1574. {
  1575. GH_EPHY_ANER_S d;
  1576. d.all = *(volatile U16 *)REG_EPHY_ANER;
  1577. d.bitc.lp_an_able = data;
  1578. *(volatile U16 *)REG_EPHY_ANER = d.all;
  1579. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1580. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ANER_lp_an_able] <-- 0x%08x\n",
  1581. REG_EPHY_ANER,d.all,d.all);
  1582. #endif
  1583. }
  1584. GH_INLINE U8 GH_EPHY_get_ANER_lp_an_able(void)
  1585. {
  1586. GH_EPHY_ANER_S tmp_value;
  1587. U16 value = (*(volatile U16 *)REG_EPHY_ANER);
  1588. tmp_value.all = value;
  1589. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1590. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ANER_lp_an_able] --> 0x%08x\n",
  1591. REG_EPHY_ANER,value);
  1592. #endif
  1593. return tmp_value.bitc.lp_an_able;
  1594. }
  1595. GH_INLINE void GH_EPHY_set_ANER_page_rec(U8 data)
  1596. {
  1597. GH_EPHY_ANER_S d;
  1598. d.all = *(volatile U16 *)REG_EPHY_ANER;
  1599. d.bitc.page_rec = data;
  1600. *(volatile U16 *)REG_EPHY_ANER = d.all;
  1601. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1602. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ANER_page_rec] <-- 0x%08x\n",
  1603. REG_EPHY_ANER,d.all,d.all);
  1604. #endif
  1605. }
  1606. GH_INLINE U8 GH_EPHY_get_ANER_page_rec(void)
  1607. {
  1608. GH_EPHY_ANER_S tmp_value;
  1609. U16 value = (*(volatile U16 *)REG_EPHY_ANER);
  1610. tmp_value.all = value;
  1611. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1612. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ANER_page_rec] --> 0x%08x\n",
  1613. REG_EPHY_ANER,value);
  1614. #endif
  1615. return tmp_value.bitc.page_rec;
  1616. }
  1617. GH_INLINE void GH_EPHY_set_ANER_np_able(U8 data)
  1618. {
  1619. GH_EPHY_ANER_S d;
  1620. d.all = *(volatile U16 *)REG_EPHY_ANER;
  1621. d.bitc.np_able = data;
  1622. *(volatile U16 *)REG_EPHY_ANER = d.all;
  1623. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1624. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ANER_np_able] <-- 0x%08x\n",
  1625. REG_EPHY_ANER,d.all,d.all);
  1626. #endif
  1627. }
  1628. GH_INLINE U8 GH_EPHY_get_ANER_np_able(void)
  1629. {
  1630. GH_EPHY_ANER_S tmp_value;
  1631. U16 value = (*(volatile U16 *)REG_EPHY_ANER);
  1632. tmp_value.all = value;
  1633. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1634. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ANER_np_able] --> 0x%08x\n",
  1635. REG_EPHY_ANER,value);
  1636. #endif
  1637. return tmp_value.bitc.np_able;
  1638. }
  1639. GH_INLINE void GH_EPHY_set_ANER_lp_np_able(U8 data)
  1640. {
  1641. GH_EPHY_ANER_S d;
  1642. d.all = *(volatile U16 *)REG_EPHY_ANER;
  1643. d.bitc.lp_np_able = data;
  1644. *(volatile U16 *)REG_EPHY_ANER = d.all;
  1645. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1646. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ANER_lp_np_able] <-- 0x%08x\n",
  1647. REG_EPHY_ANER,d.all,d.all);
  1648. #endif
  1649. }
  1650. GH_INLINE U8 GH_EPHY_get_ANER_lp_np_able(void)
  1651. {
  1652. GH_EPHY_ANER_S tmp_value;
  1653. U16 value = (*(volatile U16 *)REG_EPHY_ANER);
  1654. tmp_value.all = value;
  1655. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1656. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ANER_lp_np_able] --> 0x%08x\n",
  1657. REG_EPHY_ANER,value);
  1658. #endif
  1659. return tmp_value.bitc.lp_np_able;
  1660. }
  1661. GH_INLINE void GH_EPHY_set_ANER_pd_fault(U8 data)
  1662. {
  1663. GH_EPHY_ANER_S d;
  1664. d.all = *(volatile U16 *)REG_EPHY_ANER;
  1665. d.bitc.pd_fault = data;
  1666. *(volatile U16 *)REG_EPHY_ANER = d.all;
  1667. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1668. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ANER_pd_fault] <-- 0x%08x\n",
  1669. REG_EPHY_ANER,d.all,d.all);
  1670. #endif
  1671. }
  1672. GH_INLINE U8 GH_EPHY_get_ANER_pd_fault(void)
  1673. {
  1674. GH_EPHY_ANER_S tmp_value;
  1675. U16 value = (*(volatile U16 *)REG_EPHY_ANER);
  1676. tmp_value.all = value;
  1677. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1678. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ANER_pd_fault] --> 0x%08x\n",
  1679. REG_EPHY_ANER,value);
  1680. #endif
  1681. return tmp_value.bitc.pd_fault;
  1682. }
  1683. GH_INLINE void GH_EPHY_set_ANER_np_location(U8 data)
  1684. {
  1685. GH_EPHY_ANER_S d;
  1686. d.all = *(volatile U16 *)REG_EPHY_ANER;
  1687. d.bitc.np_location = data;
  1688. *(volatile U16 *)REG_EPHY_ANER = d.all;
  1689. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1690. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ANER_np_location] <-- 0x%08x\n",
  1691. REG_EPHY_ANER,d.all,d.all);
  1692. #endif
  1693. }
  1694. GH_INLINE U8 GH_EPHY_get_ANER_np_location(void)
  1695. {
  1696. GH_EPHY_ANER_S tmp_value;
  1697. U16 value = (*(volatile U16 *)REG_EPHY_ANER);
  1698. tmp_value.all = value;
  1699. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1700. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ANER_np_location] --> 0x%08x\n",
  1701. REG_EPHY_ANER,value);
  1702. #endif
  1703. return tmp_value.bitc.np_location;
  1704. }
  1705. GH_INLINE void GH_EPHY_set_ANER_np_location_able(U8 data)
  1706. {
  1707. GH_EPHY_ANER_S d;
  1708. d.all = *(volatile U16 *)REG_EPHY_ANER;
  1709. d.bitc.np_location_able = data;
  1710. *(volatile U16 *)REG_EPHY_ANER = d.all;
  1711. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1712. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ANER_np_location_able] <-- 0x%08x\n",
  1713. REG_EPHY_ANER,d.all,d.all);
  1714. #endif
  1715. }
  1716. GH_INLINE U8 GH_EPHY_get_ANER_np_location_able(void)
  1717. {
  1718. GH_EPHY_ANER_S tmp_value;
  1719. U16 value = (*(volatile U16 *)REG_EPHY_ANER);
  1720. tmp_value.all = value;
  1721. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1722. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ANER_np_location_able] --> 0x%08x\n",
  1723. REG_EPHY_ANER,value);
  1724. #endif
  1725. return tmp_value.bitc.np_location_able;
  1726. }
  1727. #endif /* GH_INLINE_LEVEL == 0 */
  1728. /*----------------------------------------------------------------------------*/
  1729. /* register EPHY_ANNPAR (read/write) */
  1730. /*----------------------------------------------------------------------------*/
  1731. #if GH_INLINE_LEVEL == 0
  1732. /*! \brief Writes the register 'EPHY_ANNPAR'. */
  1733. void GH_EPHY_set_ANNPAR(U16 data);
  1734. /*! \brief Reads the register 'EPHY_ANNPAR'. */
  1735. U16 GH_EPHY_get_ANNPAR(void);
  1736. /*! \brief Writes the bit group 'msg' of register 'EPHY_ANNPAR'. */
  1737. void GH_EPHY_set_ANNPAR_msg(U16 data);
  1738. /*! \brief Reads the bit group 'msg' of register 'EPHY_ANNPAR'. */
  1739. U16 GH_EPHY_get_ANNPAR_msg(void);
  1740. /*! \brief Writes the bit group 'toggle' of register 'EPHY_ANNPAR'. */
  1741. void GH_EPHY_set_ANNPAR_toggle(U8 data);
  1742. /*! \brief Reads the bit group 'toggle' of register 'EPHY_ANNPAR'. */
  1743. U8 GH_EPHY_get_ANNPAR_toggle(void);
  1744. /*! \brief Writes the bit group 'ack2' of register 'EPHY_ANNPAR'. */
  1745. void GH_EPHY_set_ANNPAR_ack2(U8 data);
  1746. /*! \brief Reads the bit group 'ack2' of register 'EPHY_ANNPAR'. */
  1747. U8 GH_EPHY_get_ANNPAR_ack2(void);
  1748. /*! \brief Writes the bit group 'mp' of register 'EPHY_ANNPAR'. */
  1749. void GH_EPHY_set_ANNPAR_mp(U8 data);
  1750. /*! \brief Reads the bit group 'mp' of register 'EPHY_ANNPAR'. */
  1751. U8 GH_EPHY_get_ANNPAR_mp(void);
  1752. /*! \brief Writes the bit group 'np' of register 'EPHY_ANNPAR'. */
  1753. void GH_EPHY_set_ANNPAR_np(U8 data);
  1754. /*! \brief Reads the bit group 'np' of register 'EPHY_ANNPAR'. */
  1755. U8 GH_EPHY_get_ANNPAR_np(void);
  1756. #else /* GH_INLINE_LEVEL == 0 */
  1757. GH_INLINE void GH_EPHY_set_ANNPAR(U16 data)
  1758. {
  1759. *(volatile U16 *)REG_EPHY_ANNPAR = data;
  1760. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1761. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ANNPAR] <-- 0x%08x\n",
  1762. REG_EPHY_ANNPAR,data,data);
  1763. #endif
  1764. }
  1765. GH_INLINE U16 GH_EPHY_get_ANNPAR(void)
  1766. {
  1767. U16 value = (*(volatile U16 *)REG_EPHY_ANNPAR);
  1768. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1769. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ANNPAR] --> 0x%08x\n",
  1770. REG_EPHY_ANNPAR,value);
  1771. #endif
  1772. return value;
  1773. }
  1774. GH_INLINE void GH_EPHY_set_ANNPAR_msg(U16 data)
  1775. {
  1776. GH_EPHY_ANNPAR_S d;
  1777. d.all = *(volatile U16 *)REG_EPHY_ANNPAR;
  1778. d.bitc.msg = data;
  1779. *(volatile U16 *)REG_EPHY_ANNPAR = d.all;
  1780. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1781. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ANNPAR_msg] <-- 0x%08x\n",
  1782. REG_EPHY_ANNPAR,d.all,d.all);
  1783. #endif
  1784. }
  1785. GH_INLINE U16 GH_EPHY_get_ANNPAR_msg(void)
  1786. {
  1787. GH_EPHY_ANNPAR_S tmp_value;
  1788. U16 value = (*(volatile U16 *)REG_EPHY_ANNPAR);
  1789. tmp_value.all = value;
  1790. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1791. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ANNPAR_msg] --> 0x%08x\n",
  1792. REG_EPHY_ANNPAR,value);
  1793. #endif
  1794. return tmp_value.bitc.msg;
  1795. }
  1796. GH_INLINE void GH_EPHY_set_ANNPAR_toggle(U8 data)
  1797. {
  1798. GH_EPHY_ANNPAR_S d;
  1799. d.all = *(volatile U16 *)REG_EPHY_ANNPAR;
  1800. d.bitc.toggle = data;
  1801. *(volatile U16 *)REG_EPHY_ANNPAR = d.all;
  1802. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1803. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ANNPAR_toggle] <-- 0x%08x\n",
  1804. REG_EPHY_ANNPAR,d.all,d.all);
  1805. #endif
  1806. }
  1807. GH_INLINE U8 GH_EPHY_get_ANNPAR_toggle(void)
  1808. {
  1809. GH_EPHY_ANNPAR_S tmp_value;
  1810. U16 value = (*(volatile U16 *)REG_EPHY_ANNPAR);
  1811. tmp_value.all = value;
  1812. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1813. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ANNPAR_toggle] --> 0x%08x\n",
  1814. REG_EPHY_ANNPAR,value);
  1815. #endif
  1816. return tmp_value.bitc.toggle;
  1817. }
  1818. GH_INLINE void GH_EPHY_set_ANNPAR_ack2(U8 data)
  1819. {
  1820. GH_EPHY_ANNPAR_S d;
  1821. d.all = *(volatile U16 *)REG_EPHY_ANNPAR;
  1822. d.bitc.ack2 = data;
  1823. *(volatile U16 *)REG_EPHY_ANNPAR = d.all;
  1824. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1825. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ANNPAR_ack2] <-- 0x%08x\n",
  1826. REG_EPHY_ANNPAR,d.all,d.all);
  1827. #endif
  1828. }
  1829. GH_INLINE U8 GH_EPHY_get_ANNPAR_ack2(void)
  1830. {
  1831. GH_EPHY_ANNPAR_S tmp_value;
  1832. U16 value = (*(volatile U16 *)REG_EPHY_ANNPAR);
  1833. tmp_value.all = value;
  1834. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1835. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ANNPAR_ack2] --> 0x%08x\n",
  1836. REG_EPHY_ANNPAR,value);
  1837. #endif
  1838. return tmp_value.bitc.ack2;
  1839. }
  1840. GH_INLINE void GH_EPHY_set_ANNPAR_mp(U8 data)
  1841. {
  1842. GH_EPHY_ANNPAR_S d;
  1843. d.all = *(volatile U16 *)REG_EPHY_ANNPAR;
  1844. d.bitc.mp = data;
  1845. *(volatile U16 *)REG_EPHY_ANNPAR = d.all;
  1846. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1847. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ANNPAR_mp] <-- 0x%08x\n",
  1848. REG_EPHY_ANNPAR,d.all,d.all);
  1849. #endif
  1850. }
  1851. GH_INLINE U8 GH_EPHY_get_ANNPAR_mp(void)
  1852. {
  1853. GH_EPHY_ANNPAR_S tmp_value;
  1854. U16 value = (*(volatile U16 *)REG_EPHY_ANNPAR);
  1855. tmp_value.all = value;
  1856. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1857. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ANNPAR_mp] --> 0x%08x\n",
  1858. REG_EPHY_ANNPAR,value);
  1859. #endif
  1860. return tmp_value.bitc.mp;
  1861. }
  1862. GH_INLINE void GH_EPHY_set_ANNPAR_np(U8 data)
  1863. {
  1864. GH_EPHY_ANNPAR_S d;
  1865. d.all = *(volatile U16 *)REG_EPHY_ANNPAR;
  1866. d.bitc.np = data;
  1867. *(volatile U16 *)REG_EPHY_ANNPAR = d.all;
  1868. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1869. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ANNPAR_np] <-- 0x%08x\n",
  1870. REG_EPHY_ANNPAR,d.all,d.all);
  1871. #endif
  1872. }
  1873. GH_INLINE U8 GH_EPHY_get_ANNPAR_np(void)
  1874. {
  1875. GH_EPHY_ANNPAR_S tmp_value;
  1876. U16 value = (*(volatile U16 *)REG_EPHY_ANNPAR);
  1877. tmp_value.all = value;
  1878. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1879. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ANNPAR_np] --> 0x%08x\n",
  1880. REG_EPHY_ANNPAR,value);
  1881. #endif
  1882. return tmp_value.bitc.np;
  1883. }
  1884. #endif /* GH_INLINE_LEVEL == 0 */
  1885. /*----------------------------------------------------------------------------*/
  1886. /* register EPHY_ANLPNP (read) */
  1887. /*----------------------------------------------------------------------------*/
  1888. #if GH_INLINE_LEVEL == 0
  1889. /*! \brief Reads the register 'EPHY_ANLPNP'. */
  1890. U16 GH_EPHY_get_ANLPNP(void);
  1891. /*! \brief Reads the bit group 'msg' of register 'EPHY_ANLPNP'. */
  1892. U16 GH_EPHY_get_ANLPNP_msg(void);
  1893. /*! \brief Reads the bit group 'toggle' of register 'EPHY_ANLPNP'. */
  1894. U8 GH_EPHY_get_ANLPNP_toggle(void);
  1895. /*! \brief Reads the bit group 'ack2' of register 'EPHY_ANLPNP'. */
  1896. U8 GH_EPHY_get_ANLPNP_ack2(void);
  1897. /*! \brief Reads the bit group 'mp' of register 'EPHY_ANLPNP'. */
  1898. U8 GH_EPHY_get_ANLPNP_mp(void);
  1899. /*! \brief Reads the bit group 'np' of register 'EPHY_ANLPNP'. */
  1900. U8 GH_EPHY_get_ANLPNP_np(void);
  1901. #else /* GH_INLINE_LEVEL == 0 */
  1902. GH_INLINE U16 GH_EPHY_get_ANLPNP(void)
  1903. {
  1904. U16 value = (*(volatile U16 *)REG_EPHY_ANLPNP);
  1905. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1906. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ANLPNP] --> 0x%08x\n",
  1907. REG_EPHY_ANLPNP,value);
  1908. #endif
  1909. return value;
  1910. }
  1911. GH_INLINE U16 GH_EPHY_get_ANLPNP_msg(void)
  1912. {
  1913. GH_EPHY_ANLPNP_S tmp_value;
  1914. U16 value = (*(volatile U16 *)REG_EPHY_ANLPNP);
  1915. tmp_value.all = value;
  1916. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1917. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ANLPNP_msg] --> 0x%08x\n",
  1918. REG_EPHY_ANLPNP,value);
  1919. #endif
  1920. return tmp_value.bitc.msg;
  1921. }
  1922. GH_INLINE U8 GH_EPHY_get_ANLPNP_toggle(void)
  1923. {
  1924. GH_EPHY_ANLPNP_S tmp_value;
  1925. U16 value = (*(volatile U16 *)REG_EPHY_ANLPNP);
  1926. tmp_value.all = value;
  1927. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1928. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ANLPNP_toggle] --> 0x%08x\n",
  1929. REG_EPHY_ANLPNP,value);
  1930. #endif
  1931. return tmp_value.bitc.toggle;
  1932. }
  1933. GH_INLINE U8 GH_EPHY_get_ANLPNP_ack2(void)
  1934. {
  1935. GH_EPHY_ANLPNP_S tmp_value;
  1936. U16 value = (*(volatile U16 *)REG_EPHY_ANLPNP);
  1937. tmp_value.all = value;
  1938. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1939. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ANLPNP_ack2] --> 0x%08x\n",
  1940. REG_EPHY_ANLPNP,value);
  1941. #endif
  1942. return tmp_value.bitc.ack2;
  1943. }
  1944. GH_INLINE U8 GH_EPHY_get_ANLPNP_mp(void)
  1945. {
  1946. GH_EPHY_ANLPNP_S tmp_value;
  1947. U16 value = (*(volatile U16 *)REG_EPHY_ANLPNP);
  1948. tmp_value.all = value;
  1949. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1950. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ANLPNP_mp] --> 0x%08x\n",
  1951. REG_EPHY_ANLPNP,value);
  1952. #endif
  1953. return tmp_value.bitc.mp;
  1954. }
  1955. GH_INLINE U8 GH_EPHY_get_ANLPNP_np(void)
  1956. {
  1957. GH_EPHY_ANLPNP_S tmp_value;
  1958. U16 value = (*(volatile U16 *)REG_EPHY_ANLPNP);
  1959. tmp_value.all = value;
  1960. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1961. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ANLPNP_np] --> 0x%08x\n",
  1962. REG_EPHY_ANLPNP,value);
  1963. #endif
  1964. return tmp_value.bitc.np;
  1965. }
  1966. #endif /* GH_INLINE_LEVEL == 0 */
  1967. /*----------------------------------------------------------------------------*/
  1968. /* register EPHY_MS_CONTROL (read/write) */
  1969. /*----------------------------------------------------------------------------*/
  1970. #if GH_INLINE_LEVEL == 0
  1971. /*! \brief Writes the register 'EPHY_MS_CONTROL'. */
  1972. void GH_EPHY_set_MS_CONTROL(U16 data);
  1973. /*! \brief Reads the register 'EPHY_MS_CONTROL'. */
  1974. U16 GH_EPHY_get_MS_CONTROL(void);
  1975. #else /* GH_INLINE_LEVEL == 0 */
  1976. GH_INLINE void GH_EPHY_set_MS_CONTROL(U16 data)
  1977. {
  1978. *(volatile U16 *)REG_EPHY_MS_CONTROL = data;
  1979. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1980. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_MS_CONTROL] <-- 0x%08x\n",
  1981. REG_EPHY_MS_CONTROL,data,data);
  1982. #endif
  1983. }
  1984. GH_INLINE U16 GH_EPHY_get_MS_CONTROL(void)
  1985. {
  1986. U16 value = (*(volatile U16 *)REG_EPHY_MS_CONTROL);
  1987. #if GH_EPHY_ENABLE_DEBUG_PRINT
  1988. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_MS_CONTROL] --> 0x%08x\n",
  1989. REG_EPHY_MS_CONTROL,value);
  1990. #endif
  1991. return value;
  1992. }
  1993. #endif /* GH_INLINE_LEVEL == 0 */
  1994. /*----------------------------------------------------------------------------*/
  1995. /* register EPHY_MS_STATUS (read) */
  1996. /*----------------------------------------------------------------------------*/
  1997. #if GH_INLINE_LEVEL == 0
  1998. /*! \brief Reads the register 'EPHY_MS_STATUS'. */
  1999. U16 GH_EPHY_get_MS_STATUS(void);
  2000. #else /* GH_INLINE_LEVEL == 0 */
  2001. GH_INLINE U16 GH_EPHY_get_MS_STATUS(void)
  2002. {
  2003. U16 value = (*(volatile U16 *)REG_EPHY_MS_STATUS);
  2004. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2005. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_MS_STATUS] --> 0x%08x\n",
  2006. REG_EPHY_MS_STATUS,value);
  2007. #endif
  2008. return value;
  2009. }
  2010. #endif /* GH_INLINE_LEVEL == 0 */
  2011. /*----------------------------------------------------------------------------*/
  2012. /* register EPHY_PSE_CONTROL (read/write) */
  2013. /*----------------------------------------------------------------------------*/
  2014. #if GH_INLINE_LEVEL == 0
  2015. /*! \brief Writes the register 'EPHY_PSE_CONTROL'. */
  2016. void GH_EPHY_set_PSE_CONTROL(U16 data);
  2017. /*! \brief Reads the register 'EPHY_PSE_CONTROL'. */
  2018. U16 GH_EPHY_get_PSE_CONTROL(void);
  2019. #else /* GH_INLINE_LEVEL == 0 */
  2020. GH_INLINE void GH_EPHY_set_PSE_CONTROL(U16 data)
  2021. {
  2022. *(volatile U16 *)REG_EPHY_PSE_CONTROL = data;
  2023. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2024. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PSE_CONTROL] <-- 0x%08x\n",
  2025. REG_EPHY_PSE_CONTROL,data,data);
  2026. #endif
  2027. }
  2028. GH_INLINE U16 GH_EPHY_get_PSE_CONTROL(void)
  2029. {
  2030. U16 value = (*(volatile U16 *)REG_EPHY_PSE_CONTROL);
  2031. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2032. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PSE_CONTROL] --> 0x%08x\n",
  2033. REG_EPHY_PSE_CONTROL,value);
  2034. #endif
  2035. return value;
  2036. }
  2037. #endif /* GH_INLINE_LEVEL == 0 */
  2038. /*----------------------------------------------------------------------------*/
  2039. /* register EPHY_PSE_STATUS (read) */
  2040. /*----------------------------------------------------------------------------*/
  2041. #if GH_INLINE_LEVEL == 0
  2042. /*! \brief Reads the register 'EPHY_PSE_STATUS'. */
  2043. U16 GH_EPHY_get_PSE_STATUS(void);
  2044. #else /* GH_INLINE_LEVEL == 0 */
  2045. GH_INLINE U16 GH_EPHY_get_PSE_STATUS(void)
  2046. {
  2047. U16 value = (*(volatile U16 *)REG_EPHY_PSE_STATUS);
  2048. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2049. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PSE_STATUS] --> 0x%08x\n",
  2050. REG_EPHY_PSE_STATUS,value);
  2051. #endif
  2052. return value;
  2053. }
  2054. #endif /* GH_INLINE_LEVEL == 0 */
  2055. /*----------------------------------------------------------------------------*/
  2056. /* register EPHY_MMD_CONTROL (read/write) */
  2057. /*----------------------------------------------------------------------------*/
  2058. #if GH_INLINE_LEVEL == 0
  2059. /*! \brief Writes the register 'EPHY_MMD_CONTROL'. */
  2060. void GH_EPHY_set_MMD_CONTROL(U16 data);
  2061. /*! \brief Reads the register 'EPHY_MMD_CONTROL'. */
  2062. U16 GH_EPHY_get_MMD_CONTROL(void);
  2063. /*! \brief Writes the bit group 'devad' of register 'EPHY_MMD_CONTROL'. */
  2064. void GH_EPHY_set_MMD_CONTROL_devad(U8 data);
  2065. /*! \brief Reads the bit group 'devad' of register 'EPHY_MMD_CONTROL'. */
  2066. U8 GH_EPHY_get_MMD_CONTROL_devad(void);
  2067. /*! \brief Writes the bit group 'func' of register 'EPHY_MMD_CONTROL'. */
  2068. void GH_EPHY_set_MMD_CONTROL_func(U8 data);
  2069. /*! \brief Reads the bit group 'func' of register 'EPHY_MMD_CONTROL'. */
  2070. U8 GH_EPHY_get_MMD_CONTROL_func(void);
  2071. #else /* GH_INLINE_LEVEL == 0 */
  2072. GH_INLINE void GH_EPHY_set_MMD_CONTROL(U16 data)
  2073. {
  2074. *(volatile U16 *)REG_EPHY_MMD_CONTROL = data;
  2075. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2076. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_MMD_CONTROL] <-- 0x%08x\n",
  2077. REG_EPHY_MMD_CONTROL,data,data);
  2078. #endif
  2079. }
  2080. GH_INLINE U16 GH_EPHY_get_MMD_CONTROL(void)
  2081. {
  2082. U16 value = (*(volatile U16 *)REG_EPHY_MMD_CONTROL);
  2083. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2084. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_MMD_CONTROL] --> 0x%08x\n",
  2085. REG_EPHY_MMD_CONTROL,value);
  2086. #endif
  2087. return value;
  2088. }
  2089. GH_INLINE void GH_EPHY_set_MMD_CONTROL_devad(U8 data)
  2090. {
  2091. GH_EPHY_MMD_CONTROL_S d;
  2092. d.all = *(volatile U16 *)REG_EPHY_MMD_CONTROL;
  2093. d.bitc.devad = data;
  2094. *(volatile U16 *)REG_EPHY_MMD_CONTROL = d.all;
  2095. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2096. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_MMD_CONTROL_devad] <-- 0x%08x\n",
  2097. REG_EPHY_MMD_CONTROL,d.all,d.all);
  2098. #endif
  2099. }
  2100. GH_INLINE U8 GH_EPHY_get_MMD_CONTROL_devad(void)
  2101. {
  2102. GH_EPHY_MMD_CONTROL_S tmp_value;
  2103. U16 value = (*(volatile U16 *)REG_EPHY_MMD_CONTROL);
  2104. tmp_value.all = value;
  2105. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2106. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_MMD_CONTROL_devad] --> 0x%08x\n",
  2107. REG_EPHY_MMD_CONTROL,value);
  2108. #endif
  2109. return tmp_value.bitc.devad;
  2110. }
  2111. GH_INLINE void GH_EPHY_set_MMD_CONTROL_func(U8 data)
  2112. {
  2113. GH_EPHY_MMD_CONTROL_S d;
  2114. d.all = *(volatile U16 *)REG_EPHY_MMD_CONTROL;
  2115. d.bitc.func = data;
  2116. *(volatile U16 *)REG_EPHY_MMD_CONTROL = d.all;
  2117. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2118. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_MMD_CONTROL_func] <-- 0x%08x\n",
  2119. REG_EPHY_MMD_CONTROL,d.all,d.all);
  2120. #endif
  2121. }
  2122. GH_INLINE U8 GH_EPHY_get_MMD_CONTROL_func(void)
  2123. {
  2124. GH_EPHY_MMD_CONTROL_S tmp_value;
  2125. U16 value = (*(volatile U16 *)REG_EPHY_MMD_CONTROL);
  2126. tmp_value.all = value;
  2127. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2128. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_MMD_CONTROL_func] --> 0x%08x\n",
  2129. REG_EPHY_MMD_CONTROL,value);
  2130. #endif
  2131. return tmp_value.bitc.func;
  2132. }
  2133. #endif /* GH_INLINE_LEVEL == 0 */
  2134. /*----------------------------------------------------------------------------*/
  2135. /* register EPHY_MMD_CONTROL_ADDR (read/write) */
  2136. /*----------------------------------------------------------------------------*/
  2137. #if GH_INLINE_LEVEL == 0
  2138. /*! \brief Writes the register 'EPHY_MMD_CONTROL_ADDR'. */
  2139. void GH_EPHY_set_MMD_CONTROL_ADDR(U16 data);
  2140. /*! \brief Reads the register 'EPHY_MMD_CONTROL_ADDR'. */
  2141. U16 GH_EPHY_get_MMD_CONTROL_ADDR(void);
  2142. #else /* GH_INLINE_LEVEL == 0 */
  2143. GH_INLINE void GH_EPHY_set_MMD_CONTROL_ADDR(U16 data)
  2144. {
  2145. *(volatile U16 *)REG_EPHY_MMD_CONTROL_ADDR = data;
  2146. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2147. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_MMD_CONTROL_ADDR] <-- 0x%08x\n",
  2148. REG_EPHY_MMD_CONTROL_ADDR,data,data);
  2149. #endif
  2150. }
  2151. GH_INLINE U16 GH_EPHY_get_MMD_CONTROL_ADDR(void)
  2152. {
  2153. U16 value = (*(volatile U16 *)REG_EPHY_MMD_CONTROL_ADDR);
  2154. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2155. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_MMD_CONTROL_ADDR] --> 0x%08x\n",
  2156. REG_EPHY_MMD_CONTROL_ADDR,value);
  2157. #endif
  2158. return value;
  2159. }
  2160. #endif /* GH_INLINE_LEVEL == 0 */
  2161. /*----------------------------------------------------------------------------*/
  2162. /* register EPHY_AN_R_15 (read) */
  2163. /*----------------------------------------------------------------------------*/
  2164. #if GH_INLINE_LEVEL == 0
  2165. /*! \brief Reads the register 'EPHY_AN_R_15'. */
  2166. U16 GH_EPHY_get_AN_R_15(void);
  2167. /*! \brief Reads the bit group 'an_register_15' of register 'EPHY_AN_R_15'. */
  2168. U8 GH_EPHY_get_AN_R_15_an_register_15(void);
  2169. #else /* GH_INLINE_LEVEL == 0 */
  2170. GH_INLINE U16 GH_EPHY_get_AN_R_15(void)
  2171. {
  2172. U16 value = (*(volatile U16 *)REG_EPHY_AN_R_15);
  2173. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2174. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_AN_R_15] --> 0x%08x\n",
  2175. REG_EPHY_AN_R_15,value);
  2176. #endif
  2177. return value;
  2178. }
  2179. GH_INLINE U8 GH_EPHY_get_AN_R_15_an_register_15(void)
  2180. {
  2181. GH_EPHY_AN_R_15_S tmp_value;
  2182. U16 value = (*(volatile U16 *)REG_EPHY_AN_R_15);
  2183. tmp_value.all = value;
  2184. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2185. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_AN_R_15_an_register_15] --> 0x%08x\n",
  2186. REG_EPHY_AN_R_15,value);
  2187. #endif
  2188. return tmp_value.bitc.an_register_15;
  2189. }
  2190. #endif /* GH_INLINE_LEVEL == 0 */
  2191. /*----------------------------------------------------------------------------*/
  2192. /* register EPHY_WAVE_SHAPING_34 (read/write) */
  2193. /*----------------------------------------------------------------------------*/
  2194. #if GH_INLINE_LEVEL == 0
  2195. /*! \brief Writes the register 'EPHY_WAVE_SHAPING_34'. */
  2196. void GH_EPHY_set_WAVE_SHAPING_34(U16 data);
  2197. /*! \brief Reads the register 'EPHY_WAVE_SHAPING_34'. */
  2198. U16 GH_EPHY_get_WAVE_SHAPING_34(void);
  2199. /*! \brief Writes the bit group 'ltp_3' of register 'EPHY_WAVE_SHAPING_34'. */
  2200. void GH_EPHY_set_WAVE_SHAPING_34_ltp_3(U8 data);
  2201. /*! \brief Reads the bit group 'ltp_3' of register 'EPHY_WAVE_SHAPING_34'. */
  2202. U8 GH_EPHY_get_WAVE_SHAPING_34_ltp_3(void);
  2203. /*! \brief Writes the bit group 'ltp_4' of register 'EPHY_WAVE_SHAPING_34'. */
  2204. void GH_EPHY_set_WAVE_SHAPING_34_ltp_4(U8 data);
  2205. /*! \brief Reads the bit group 'ltp_4' of register 'EPHY_WAVE_SHAPING_34'. */
  2206. U8 GH_EPHY_get_WAVE_SHAPING_34_ltp_4(void);
  2207. #else /* GH_INLINE_LEVEL == 0 */
  2208. GH_INLINE void GH_EPHY_set_WAVE_SHAPING_34(U16 data)
  2209. {
  2210. *(volatile U16 *)REG_EPHY_WAVE_SHAPING_34 = data;
  2211. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2212. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_WAVE_SHAPING_34] <-- 0x%08x\n",
  2213. REG_EPHY_WAVE_SHAPING_34,data,data);
  2214. #endif
  2215. }
  2216. GH_INLINE U16 GH_EPHY_get_WAVE_SHAPING_34(void)
  2217. {
  2218. U16 value = (*(volatile U16 *)REG_EPHY_WAVE_SHAPING_34);
  2219. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2220. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_WAVE_SHAPING_34] --> 0x%08x\n",
  2221. REG_EPHY_WAVE_SHAPING_34,value);
  2222. #endif
  2223. return value;
  2224. }
  2225. GH_INLINE void GH_EPHY_set_WAVE_SHAPING_34_ltp_3(U8 data)
  2226. {
  2227. GH_EPHY_WAVE_SHAPING_34_S d;
  2228. d.all = *(volatile U16 *)REG_EPHY_WAVE_SHAPING_34;
  2229. d.bitc.ltp_3 = data;
  2230. *(volatile U16 *)REG_EPHY_WAVE_SHAPING_34 = d.all;
  2231. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2232. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_WAVE_SHAPING_34_ltp_3] <-- 0x%08x\n",
  2233. REG_EPHY_WAVE_SHAPING_34,d.all,d.all);
  2234. #endif
  2235. }
  2236. GH_INLINE U8 GH_EPHY_get_WAVE_SHAPING_34_ltp_3(void)
  2237. {
  2238. GH_EPHY_WAVE_SHAPING_34_S tmp_value;
  2239. U16 value = (*(volatile U16 *)REG_EPHY_WAVE_SHAPING_34);
  2240. tmp_value.all = value;
  2241. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2242. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_WAVE_SHAPING_34_ltp_3] --> 0x%08x\n",
  2243. REG_EPHY_WAVE_SHAPING_34,value);
  2244. #endif
  2245. return tmp_value.bitc.ltp_3;
  2246. }
  2247. GH_INLINE void GH_EPHY_set_WAVE_SHAPING_34_ltp_4(U8 data)
  2248. {
  2249. GH_EPHY_WAVE_SHAPING_34_S d;
  2250. d.all = *(volatile U16 *)REG_EPHY_WAVE_SHAPING_34;
  2251. d.bitc.ltp_4 = data;
  2252. *(volatile U16 *)REG_EPHY_WAVE_SHAPING_34 = d.all;
  2253. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2254. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_WAVE_SHAPING_34_ltp_4] <-- 0x%08x\n",
  2255. REG_EPHY_WAVE_SHAPING_34,d.all,d.all);
  2256. #endif
  2257. }
  2258. GH_INLINE U8 GH_EPHY_get_WAVE_SHAPING_34_ltp_4(void)
  2259. {
  2260. GH_EPHY_WAVE_SHAPING_34_S tmp_value;
  2261. U16 value = (*(volatile U16 *)REG_EPHY_WAVE_SHAPING_34);
  2262. tmp_value.all = value;
  2263. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2264. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_WAVE_SHAPING_34_ltp_4] --> 0x%08x\n",
  2265. REG_EPHY_WAVE_SHAPING_34,value);
  2266. #endif
  2267. return tmp_value.bitc.ltp_4;
  2268. }
  2269. #endif /* GH_INLINE_LEVEL == 0 */
  2270. /*----------------------------------------------------------------------------*/
  2271. /* register EPHY_WAVE_SHAPING_56 (read/write) */
  2272. /*----------------------------------------------------------------------------*/
  2273. #if GH_INLINE_LEVEL == 0
  2274. /*! \brief Writes the register 'EPHY_WAVE_SHAPING_56'. */
  2275. void GH_EPHY_set_WAVE_SHAPING_56(U16 data);
  2276. /*! \brief Reads the register 'EPHY_WAVE_SHAPING_56'. */
  2277. U16 GH_EPHY_get_WAVE_SHAPING_56(void);
  2278. /*! \brief Writes the bit group 'ltp_5' of register 'EPHY_WAVE_SHAPING_56'. */
  2279. void GH_EPHY_set_WAVE_SHAPING_56_ltp_5(U8 data);
  2280. /*! \brief Reads the bit group 'ltp_5' of register 'EPHY_WAVE_SHAPING_56'. */
  2281. U8 GH_EPHY_get_WAVE_SHAPING_56_ltp_5(void);
  2282. /*! \brief Writes the bit group 'ltp_6' of register 'EPHY_WAVE_SHAPING_56'. */
  2283. void GH_EPHY_set_WAVE_SHAPING_56_ltp_6(U8 data);
  2284. /*! \brief Reads the bit group 'ltp_6' of register 'EPHY_WAVE_SHAPING_56'. */
  2285. U8 GH_EPHY_get_WAVE_SHAPING_56_ltp_6(void);
  2286. #else /* GH_INLINE_LEVEL == 0 */
  2287. GH_INLINE void GH_EPHY_set_WAVE_SHAPING_56(U16 data)
  2288. {
  2289. *(volatile U16 *)REG_EPHY_WAVE_SHAPING_56 = data;
  2290. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2291. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_WAVE_SHAPING_56] <-- 0x%08x\n",
  2292. REG_EPHY_WAVE_SHAPING_56,data,data);
  2293. #endif
  2294. }
  2295. GH_INLINE U16 GH_EPHY_get_WAVE_SHAPING_56(void)
  2296. {
  2297. U16 value = (*(volatile U16 *)REG_EPHY_WAVE_SHAPING_56);
  2298. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2299. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_WAVE_SHAPING_56] --> 0x%08x\n",
  2300. REG_EPHY_WAVE_SHAPING_56,value);
  2301. #endif
  2302. return value;
  2303. }
  2304. GH_INLINE void GH_EPHY_set_WAVE_SHAPING_56_ltp_5(U8 data)
  2305. {
  2306. GH_EPHY_WAVE_SHAPING_56_S d;
  2307. d.all = *(volatile U16 *)REG_EPHY_WAVE_SHAPING_56;
  2308. d.bitc.ltp_5 = data;
  2309. *(volatile U16 *)REG_EPHY_WAVE_SHAPING_56 = d.all;
  2310. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2311. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_WAVE_SHAPING_56_ltp_5] <-- 0x%08x\n",
  2312. REG_EPHY_WAVE_SHAPING_56,d.all,d.all);
  2313. #endif
  2314. }
  2315. GH_INLINE U8 GH_EPHY_get_WAVE_SHAPING_56_ltp_5(void)
  2316. {
  2317. GH_EPHY_WAVE_SHAPING_56_S tmp_value;
  2318. U16 value = (*(volatile U16 *)REG_EPHY_WAVE_SHAPING_56);
  2319. tmp_value.all = value;
  2320. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2321. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_WAVE_SHAPING_56_ltp_5] --> 0x%08x\n",
  2322. REG_EPHY_WAVE_SHAPING_56,value);
  2323. #endif
  2324. return tmp_value.bitc.ltp_5;
  2325. }
  2326. GH_INLINE void GH_EPHY_set_WAVE_SHAPING_56_ltp_6(U8 data)
  2327. {
  2328. GH_EPHY_WAVE_SHAPING_56_S d;
  2329. d.all = *(volatile U16 *)REG_EPHY_WAVE_SHAPING_56;
  2330. d.bitc.ltp_6 = data;
  2331. *(volatile U16 *)REG_EPHY_WAVE_SHAPING_56 = d.all;
  2332. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2333. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_WAVE_SHAPING_56_ltp_6] <-- 0x%08x\n",
  2334. REG_EPHY_WAVE_SHAPING_56,d.all,d.all);
  2335. #endif
  2336. }
  2337. GH_INLINE U8 GH_EPHY_get_WAVE_SHAPING_56_ltp_6(void)
  2338. {
  2339. GH_EPHY_WAVE_SHAPING_56_S tmp_value;
  2340. U16 value = (*(volatile U16 *)REG_EPHY_WAVE_SHAPING_56);
  2341. tmp_value.all = value;
  2342. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2343. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_WAVE_SHAPING_56_ltp_6] --> 0x%08x\n",
  2344. REG_EPHY_WAVE_SHAPING_56,value);
  2345. #endif
  2346. return tmp_value.bitc.ltp_6;
  2347. }
  2348. #endif /* GH_INLINE_LEVEL == 0 */
  2349. /*----------------------------------------------------------------------------*/
  2350. /* register EPHY_WAVE_SHAPING_78 (read/write) */
  2351. /*----------------------------------------------------------------------------*/
  2352. #if GH_INLINE_LEVEL == 0
  2353. /*! \brief Writes the register 'EPHY_WAVE_SHAPING_78'. */
  2354. void GH_EPHY_set_WAVE_SHAPING_78(U16 data);
  2355. /*! \brief Reads the register 'EPHY_WAVE_SHAPING_78'. */
  2356. U16 GH_EPHY_get_WAVE_SHAPING_78(void);
  2357. /*! \brief Writes the bit group 'ltp_7' of register 'EPHY_WAVE_SHAPING_78'. */
  2358. void GH_EPHY_set_WAVE_SHAPING_78_ltp_7(U8 data);
  2359. /*! \brief Reads the bit group 'ltp_7' of register 'EPHY_WAVE_SHAPING_78'. */
  2360. U8 GH_EPHY_get_WAVE_SHAPING_78_ltp_7(void);
  2361. /*! \brief Writes the bit group 'ltp_8' of register 'EPHY_WAVE_SHAPING_78'. */
  2362. void GH_EPHY_set_WAVE_SHAPING_78_ltp_8(U8 data);
  2363. /*! \brief Reads the bit group 'ltp_8' of register 'EPHY_WAVE_SHAPING_78'. */
  2364. U8 GH_EPHY_get_WAVE_SHAPING_78_ltp_8(void);
  2365. #else /* GH_INLINE_LEVEL == 0 */
  2366. GH_INLINE void GH_EPHY_set_WAVE_SHAPING_78(U16 data)
  2367. {
  2368. *(volatile U16 *)REG_EPHY_WAVE_SHAPING_78 = data;
  2369. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2370. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_WAVE_SHAPING_78] <-- 0x%08x\n",
  2371. REG_EPHY_WAVE_SHAPING_78,data,data);
  2372. #endif
  2373. }
  2374. GH_INLINE U16 GH_EPHY_get_WAVE_SHAPING_78(void)
  2375. {
  2376. U16 value = (*(volatile U16 *)REG_EPHY_WAVE_SHAPING_78);
  2377. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2378. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_WAVE_SHAPING_78] --> 0x%08x\n",
  2379. REG_EPHY_WAVE_SHAPING_78,value);
  2380. #endif
  2381. return value;
  2382. }
  2383. GH_INLINE void GH_EPHY_set_WAVE_SHAPING_78_ltp_7(U8 data)
  2384. {
  2385. GH_EPHY_WAVE_SHAPING_78_S d;
  2386. d.all = *(volatile U16 *)REG_EPHY_WAVE_SHAPING_78;
  2387. d.bitc.ltp_7 = data;
  2388. *(volatile U16 *)REG_EPHY_WAVE_SHAPING_78 = d.all;
  2389. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2390. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_WAVE_SHAPING_78_ltp_7] <-- 0x%08x\n",
  2391. REG_EPHY_WAVE_SHAPING_78,d.all,d.all);
  2392. #endif
  2393. }
  2394. GH_INLINE U8 GH_EPHY_get_WAVE_SHAPING_78_ltp_7(void)
  2395. {
  2396. GH_EPHY_WAVE_SHAPING_78_S tmp_value;
  2397. U16 value = (*(volatile U16 *)REG_EPHY_WAVE_SHAPING_78);
  2398. tmp_value.all = value;
  2399. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2400. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_WAVE_SHAPING_78_ltp_7] --> 0x%08x\n",
  2401. REG_EPHY_WAVE_SHAPING_78,value);
  2402. #endif
  2403. return tmp_value.bitc.ltp_7;
  2404. }
  2405. GH_INLINE void GH_EPHY_set_WAVE_SHAPING_78_ltp_8(U8 data)
  2406. {
  2407. GH_EPHY_WAVE_SHAPING_78_S d;
  2408. d.all = *(volatile U16 *)REG_EPHY_WAVE_SHAPING_78;
  2409. d.bitc.ltp_8 = data;
  2410. *(volatile U16 *)REG_EPHY_WAVE_SHAPING_78 = d.all;
  2411. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2412. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_WAVE_SHAPING_78_ltp_8] <-- 0x%08x\n",
  2413. REG_EPHY_WAVE_SHAPING_78,d.all,d.all);
  2414. #endif
  2415. }
  2416. GH_INLINE U8 GH_EPHY_get_WAVE_SHAPING_78_ltp_8(void)
  2417. {
  2418. GH_EPHY_WAVE_SHAPING_78_S tmp_value;
  2419. U16 value = (*(volatile U16 *)REG_EPHY_WAVE_SHAPING_78);
  2420. tmp_value.all = value;
  2421. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2422. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_WAVE_SHAPING_78_ltp_8] --> 0x%08x\n",
  2423. REG_EPHY_WAVE_SHAPING_78,value);
  2424. #endif
  2425. return tmp_value.bitc.ltp_8;
  2426. }
  2427. #endif /* GH_INLINE_LEVEL == 0 */
  2428. /*----------------------------------------------------------------------------*/
  2429. /* register EPHY_WAVE_SHAPING_9A (read/write) */
  2430. /*----------------------------------------------------------------------------*/
  2431. #if GH_INLINE_LEVEL == 0
  2432. /*! \brief Writes the register 'EPHY_WAVE_SHAPING_9A'. */
  2433. void GH_EPHY_set_WAVE_SHAPING_9A(U16 data);
  2434. /*! \brief Reads the register 'EPHY_WAVE_SHAPING_9A'. */
  2435. U16 GH_EPHY_get_WAVE_SHAPING_9A(void);
  2436. /*! \brief Writes the bit group 'ltp_9' of register 'EPHY_WAVE_SHAPING_9A'. */
  2437. void GH_EPHY_set_WAVE_SHAPING_9A_ltp_9(U8 data);
  2438. /*! \brief Reads the bit group 'ltp_9' of register 'EPHY_WAVE_SHAPING_9A'. */
  2439. U8 GH_EPHY_get_WAVE_SHAPING_9A_ltp_9(void);
  2440. /*! \brief Writes the bit group 'ltp_A' of register 'EPHY_WAVE_SHAPING_9A'. */
  2441. void GH_EPHY_set_WAVE_SHAPING_9A_ltp_A(U8 data);
  2442. /*! \brief Reads the bit group 'ltp_A' of register 'EPHY_WAVE_SHAPING_9A'. */
  2443. U8 GH_EPHY_get_WAVE_SHAPING_9A_ltp_A(void);
  2444. #else /* GH_INLINE_LEVEL == 0 */
  2445. GH_INLINE void GH_EPHY_set_WAVE_SHAPING_9A(U16 data)
  2446. {
  2447. *(volatile U16 *)REG_EPHY_WAVE_SHAPING_9A = data;
  2448. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2449. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_WAVE_SHAPING_9A] <-- 0x%08x\n",
  2450. REG_EPHY_WAVE_SHAPING_9A,data,data);
  2451. #endif
  2452. }
  2453. GH_INLINE U16 GH_EPHY_get_WAVE_SHAPING_9A(void)
  2454. {
  2455. U16 value = (*(volatile U16 *)REG_EPHY_WAVE_SHAPING_9A);
  2456. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2457. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_WAVE_SHAPING_9A] --> 0x%08x\n",
  2458. REG_EPHY_WAVE_SHAPING_9A,value);
  2459. #endif
  2460. return value;
  2461. }
  2462. GH_INLINE void GH_EPHY_set_WAVE_SHAPING_9A_ltp_9(U8 data)
  2463. {
  2464. GH_EPHY_WAVE_SHAPING_9A_S d;
  2465. d.all = *(volatile U16 *)REG_EPHY_WAVE_SHAPING_9A;
  2466. d.bitc.ltp_9 = data;
  2467. *(volatile U16 *)REG_EPHY_WAVE_SHAPING_9A = d.all;
  2468. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2469. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_WAVE_SHAPING_9A_ltp_9] <-- 0x%08x\n",
  2470. REG_EPHY_WAVE_SHAPING_9A,d.all,d.all);
  2471. #endif
  2472. }
  2473. GH_INLINE U8 GH_EPHY_get_WAVE_SHAPING_9A_ltp_9(void)
  2474. {
  2475. GH_EPHY_WAVE_SHAPING_9A_S tmp_value;
  2476. U16 value = (*(volatile U16 *)REG_EPHY_WAVE_SHAPING_9A);
  2477. tmp_value.all = value;
  2478. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2479. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_WAVE_SHAPING_9A_ltp_9] --> 0x%08x\n",
  2480. REG_EPHY_WAVE_SHAPING_9A,value);
  2481. #endif
  2482. return tmp_value.bitc.ltp_9;
  2483. }
  2484. GH_INLINE void GH_EPHY_set_WAVE_SHAPING_9A_ltp_A(U8 data)
  2485. {
  2486. GH_EPHY_WAVE_SHAPING_9A_S d;
  2487. d.all = *(volatile U16 *)REG_EPHY_WAVE_SHAPING_9A;
  2488. d.bitc.ltp_a = data;
  2489. *(volatile U16 *)REG_EPHY_WAVE_SHAPING_9A = d.all;
  2490. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2491. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_WAVE_SHAPING_9A_ltp_A] <-- 0x%08x\n",
  2492. REG_EPHY_WAVE_SHAPING_9A,d.all,d.all);
  2493. #endif
  2494. }
  2495. GH_INLINE U8 GH_EPHY_get_WAVE_SHAPING_9A_ltp_A(void)
  2496. {
  2497. GH_EPHY_WAVE_SHAPING_9A_S tmp_value;
  2498. U16 value = (*(volatile U16 *)REG_EPHY_WAVE_SHAPING_9A);
  2499. tmp_value.all = value;
  2500. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2501. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_WAVE_SHAPING_9A_ltp_A] --> 0x%08x\n",
  2502. REG_EPHY_WAVE_SHAPING_9A,value);
  2503. #endif
  2504. return tmp_value.bitc.ltp_a;
  2505. }
  2506. #endif /* GH_INLINE_LEVEL == 0 */
  2507. /*----------------------------------------------------------------------------*/
  2508. /* register EPHY_WAVE_SHAPING_BC (read/write) */
  2509. /*----------------------------------------------------------------------------*/
  2510. #if GH_INLINE_LEVEL == 0
  2511. /*! \brief Writes the register 'EPHY_WAVE_SHAPING_BC'. */
  2512. void GH_EPHY_set_WAVE_SHAPING_BC(U16 data);
  2513. /*! \brief Reads the register 'EPHY_WAVE_SHAPING_BC'. */
  2514. U16 GH_EPHY_get_WAVE_SHAPING_BC(void);
  2515. /*! \brief Writes the bit group 'ltp_B' of register 'EPHY_WAVE_SHAPING_BC'. */
  2516. void GH_EPHY_set_WAVE_SHAPING_BC_ltp_B(U8 data);
  2517. /*! \brief Reads the bit group 'ltp_B' of register 'EPHY_WAVE_SHAPING_BC'. */
  2518. U8 GH_EPHY_get_WAVE_SHAPING_BC_ltp_B(void);
  2519. /*! \brief Writes the bit group 'ltp_C' of register 'EPHY_WAVE_SHAPING_BC'. */
  2520. void GH_EPHY_set_WAVE_SHAPING_BC_ltp_C(U8 data);
  2521. /*! \brief Reads the bit group 'ltp_C' of register 'EPHY_WAVE_SHAPING_BC'. */
  2522. U8 GH_EPHY_get_WAVE_SHAPING_BC_ltp_C(void);
  2523. #else /* GH_INLINE_LEVEL == 0 */
  2524. GH_INLINE void GH_EPHY_set_WAVE_SHAPING_BC(U16 data)
  2525. {
  2526. *(volatile U16 *)REG_EPHY_WAVE_SHAPING_BC = data;
  2527. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2528. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_WAVE_SHAPING_BC] <-- 0x%08x\n",
  2529. REG_EPHY_WAVE_SHAPING_BC,data,data);
  2530. #endif
  2531. }
  2532. GH_INLINE U16 GH_EPHY_get_WAVE_SHAPING_BC(void)
  2533. {
  2534. U16 value = (*(volatile U16 *)REG_EPHY_WAVE_SHAPING_BC);
  2535. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2536. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_WAVE_SHAPING_BC] --> 0x%08x\n",
  2537. REG_EPHY_WAVE_SHAPING_BC,value);
  2538. #endif
  2539. return value;
  2540. }
  2541. GH_INLINE void GH_EPHY_set_WAVE_SHAPING_BC_ltp_B(U8 data)
  2542. {
  2543. GH_EPHY_WAVE_SHAPING_BC_S d;
  2544. d.all = *(volatile U16 *)REG_EPHY_WAVE_SHAPING_BC;
  2545. d.bitc.ltp_b = data;
  2546. *(volatile U16 *)REG_EPHY_WAVE_SHAPING_BC = d.all;
  2547. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2548. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_WAVE_SHAPING_BC_ltp_B] <-- 0x%08x\n",
  2549. REG_EPHY_WAVE_SHAPING_BC,d.all,d.all);
  2550. #endif
  2551. }
  2552. GH_INLINE U8 GH_EPHY_get_WAVE_SHAPING_BC_ltp_B(void)
  2553. {
  2554. GH_EPHY_WAVE_SHAPING_BC_S tmp_value;
  2555. U16 value = (*(volatile U16 *)REG_EPHY_WAVE_SHAPING_BC);
  2556. tmp_value.all = value;
  2557. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2558. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_WAVE_SHAPING_BC_ltp_B] --> 0x%08x\n",
  2559. REG_EPHY_WAVE_SHAPING_BC,value);
  2560. #endif
  2561. return tmp_value.bitc.ltp_b;
  2562. }
  2563. GH_INLINE void GH_EPHY_set_WAVE_SHAPING_BC_ltp_C(U8 data)
  2564. {
  2565. GH_EPHY_WAVE_SHAPING_BC_S d;
  2566. d.all = *(volatile U16 *)REG_EPHY_WAVE_SHAPING_BC;
  2567. d.bitc.ltp_c = data;
  2568. *(volatile U16 *)REG_EPHY_WAVE_SHAPING_BC = d.all;
  2569. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2570. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_WAVE_SHAPING_BC_ltp_C] <-- 0x%08x\n",
  2571. REG_EPHY_WAVE_SHAPING_BC,d.all,d.all);
  2572. #endif
  2573. }
  2574. GH_INLINE U8 GH_EPHY_get_WAVE_SHAPING_BC_ltp_C(void)
  2575. {
  2576. GH_EPHY_WAVE_SHAPING_BC_S tmp_value;
  2577. U16 value = (*(volatile U16 *)REG_EPHY_WAVE_SHAPING_BC);
  2578. tmp_value.all = value;
  2579. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2580. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_WAVE_SHAPING_BC_ltp_C] --> 0x%08x\n",
  2581. REG_EPHY_WAVE_SHAPING_BC,value);
  2582. #endif
  2583. return tmp_value.bitc.ltp_c;
  2584. }
  2585. #endif /* GH_INLINE_LEVEL == 0 */
  2586. /*----------------------------------------------------------------------------*/
  2587. /* register EPHY_WAVE_SHAPING_DE (read/write) */
  2588. /*----------------------------------------------------------------------------*/
  2589. #if GH_INLINE_LEVEL == 0
  2590. /*! \brief Writes the register 'EPHY_WAVE_SHAPING_DE'. */
  2591. void GH_EPHY_set_WAVE_SHAPING_DE(U16 data);
  2592. /*! \brief Reads the register 'EPHY_WAVE_SHAPING_DE'. */
  2593. U16 GH_EPHY_get_WAVE_SHAPING_DE(void);
  2594. /*! \brief Writes the bit group 'ltp_D' of register 'EPHY_WAVE_SHAPING_DE'. */
  2595. void GH_EPHY_set_WAVE_SHAPING_DE_ltp_D(U8 data);
  2596. /*! \brief Reads the bit group 'ltp_D' of register 'EPHY_WAVE_SHAPING_DE'. */
  2597. U8 GH_EPHY_get_WAVE_SHAPING_DE_ltp_D(void);
  2598. /*! \brief Writes the bit group 'ltp_E' of register 'EPHY_WAVE_SHAPING_DE'. */
  2599. void GH_EPHY_set_WAVE_SHAPING_DE_ltp_E(U8 data);
  2600. /*! \brief Reads the bit group 'ltp_E' of register 'EPHY_WAVE_SHAPING_DE'. */
  2601. U8 GH_EPHY_get_WAVE_SHAPING_DE_ltp_E(void);
  2602. #else /* GH_INLINE_LEVEL == 0 */
  2603. GH_INLINE void GH_EPHY_set_WAVE_SHAPING_DE(U16 data)
  2604. {
  2605. *(volatile U16 *)REG_EPHY_WAVE_SHAPING_DE = data;
  2606. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2607. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_WAVE_SHAPING_DE] <-- 0x%08x\n",
  2608. REG_EPHY_WAVE_SHAPING_DE,data,data);
  2609. #endif
  2610. }
  2611. GH_INLINE U16 GH_EPHY_get_WAVE_SHAPING_DE(void)
  2612. {
  2613. U16 value = (*(volatile U16 *)REG_EPHY_WAVE_SHAPING_DE);
  2614. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2615. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_WAVE_SHAPING_DE] --> 0x%08x\n",
  2616. REG_EPHY_WAVE_SHAPING_DE,value);
  2617. #endif
  2618. return value;
  2619. }
  2620. GH_INLINE void GH_EPHY_set_WAVE_SHAPING_DE_ltp_D(U8 data)
  2621. {
  2622. GH_EPHY_WAVE_SHAPING_DE_S d;
  2623. d.all = *(volatile U16 *)REG_EPHY_WAVE_SHAPING_DE;
  2624. d.bitc.ltp_d = data;
  2625. *(volatile U16 *)REG_EPHY_WAVE_SHAPING_DE = d.all;
  2626. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2627. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_WAVE_SHAPING_DE_ltp_D] <-- 0x%08x\n",
  2628. REG_EPHY_WAVE_SHAPING_DE,d.all,d.all);
  2629. #endif
  2630. }
  2631. GH_INLINE U8 GH_EPHY_get_WAVE_SHAPING_DE_ltp_D(void)
  2632. {
  2633. GH_EPHY_WAVE_SHAPING_DE_S tmp_value;
  2634. U16 value = (*(volatile U16 *)REG_EPHY_WAVE_SHAPING_DE);
  2635. tmp_value.all = value;
  2636. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2637. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_WAVE_SHAPING_DE_ltp_D] --> 0x%08x\n",
  2638. REG_EPHY_WAVE_SHAPING_DE,value);
  2639. #endif
  2640. return tmp_value.bitc.ltp_d;
  2641. }
  2642. GH_INLINE void GH_EPHY_set_WAVE_SHAPING_DE_ltp_E(U8 data)
  2643. {
  2644. GH_EPHY_WAVE_SHAPING_DE_S d;
  2645. d.all = *(volatile U16 *)REG_EPHY_WAVE_SHAPING_DE;
  2646. d.bitc.ltp_e = data;
  2647. *(volatile U16 *)REG_EPHY_WAVE_SHAPING_DE = d.all;
  2648. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2649. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_WAVE_SHAPING_DE_ltp_E] <-- 0x%08x\n",
  2650. REG_EPHY_WAVE_SHAPING_DE,d.all,d.all);
  2651. #endif
  2652. }
  2653. GH_INLINE U8 GH_EPHY_get_WAVE_SHAPING_DE_ltp_E(void)
  2654. {
  2655. GH_EPHY_WAVE_SHAPING_DE_S tmp_value;
  2656. U16 value = (*(volatile U16 *)REG_EPHY_WAVE_SHAPING_DE);
  2657. tmp_value.all = value;
  2658. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2659. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_WAVE_SHAPING_DE_ltp_E] --> 0x%08x\n",
  2660. REG_EPHY_WAVE_SHAPING_DE,value);
  2661. #endif
  2662. return tmp_value.bitc.ltp_e;
  2663. }
  2664. #endif /* GH_INLINE_LEVEL == 0 */
  2665. /*----------------------------------------------------------------------------*/
  2666. /* register EPHY_SPEED (read/write) */
  2667. /*----------------------------------------------------------------------------*/
  2668. #if GH_INLINE_LEVEL == 0
  2669. /*! \brief Writes the register 'EPHY_SPEED'. */
  2670. void GH_EPHY_set_SPEED(U16 data);
  2671. /*! \brief Reads the register 'EPHY_SPEED'. */
  2672. U16 GH_EPHY_get_SPEED(void);
  2673. /*! \brief Writes the bit group 'ltp_F' of register 'EPHY_SPEED'. */
  2674. void GH_EPHY_set_SPEED_ltp_F(U8 data);
  2675. /*! \brief Reads the bit group 'ltp_F' of register 'EPHY_SPEED'. */
  2676. U8 GH_EPHY_get_SPEED_ltp_F(void);
  2677. /*! \brief Writes the bit group 'isolate' of register 'EPHY_SPEED'. */
  2678. void GH_EPHY_set_SPEED_isolate(U8 data);
  2679. /*! \brief Reads the bit group 'isolate' of register 'EPHY_SPEED'. */
  2680. U8 GH_EPHY_get_SPEED_isolate(void);
  2681. /*! \brief Writes the bit group 'rptr' of register 'EPHY_SPEED'. */
  2682. void GH_EPHY_set_SPEED_rptr(U8 data);
  2683. /*! \brief Reads the bit group 'rptr' of register 'EPHY_SPEED'. */
  2684. U8 GH_EPHY_get_SPEED_rptr(void);
  2685. /*! \brief Writes the bit group 'duplex' of register 'EPHY_SPEED'. */
  2686. void GH_EPHY_set_SPEED_duplex(U8 data);
  2687. /*! \brief Reads the bit group 'duplex' of register 'EPHY_SPEED'. */
  2688. U8 GH_EPHY_get_SPEED_duplex(void);
  2689. /*! \brief Writes the bit group 'speed' of register 'EPHY_SPEED'. */
  2690. void GH_EPHY_set_SPEED_speed(U8 data);
  2691. /*! \brief Reads the bit group 'speed' of register 'EPHY_SPEED'. */
  2692. U8 GH_EPHY_get_SPEED_speed(void);
  2693. /*! \brief Writes the bit group 'ane' of register 'EPHY_SPEED'. */
  2694. void GH_EPHY_set_SPEED_ane(U8 data);
  2695. /*! \brief Reads the bit group 'ane' of register 'EPHY_SPEED'. */
  2696. U8 GH_EPHY_get_SPEED_ane(void);
  2697. /*! \brief Writes the bit group 'ldps' of register 'EPHY_SPEED'. */
  2698. void GH_EPHY_set_SPEED_ldps(U8 data);
  2699. /*! \brief Reads the bit group 'ldps' of register 'EPHY_SPEED'. */
  2700. U8 GH_EPHY_get_SPEED_ldps(void);
  2701. /*! \brief Writes the bit group 'disable_eee_force' of register 'EPHY_SPEED'. */
  2702. void GH_EPHY_set_SPEED_disable_eee_force(U8 data);
  2703. /*! \brief Reads the bit group 'disable_eee_force' of register 'EPHY_SPEED'. */
  2704. U8 GH_EPHY_get_SPEED_disable_eee_force(void);
  2705. #else /* GH_INLINE_LEVEL == 0 */
  2706. GH_INLINE void GH_EPHY_set_SPEED(U16 data)
  2707. {
  2708. *(volatile U16 *)REG_EPHY_SPEED = data;
  2709. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2710. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_SPEED] <-- 0x%08x\n",
  2711. REG_EPHY_SPEED,data,data);
  2712. #endif
  2713. }
  2714. GH_INLINE U16 GH_EPHY_get_SPEED(void)
  2715. {
  2716. U16 value = (*(volatile U16 *)REG_EPHY_SPEED);
  2717. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2718. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_SPEED] --> 0x%08x\n",
  2719. REG_EPHY_SPEED,value);
  2720. #endif
  2721. return value;
  2722. }
  2723. GH_INLINE void GH_EPHY_set_SPEED_ltp_F(U8 data)
  2724. {
  2725. GH_EPHY_SPEED_S d;
  2726. d.all = *(volatile U16 *)REG_EPHY_SPEED;
  2727. d.bitc.ltp_f = data;
  2728. *(volatile U16 *)REG_EPHY_SPEED = d.all;
  2729. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2730. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_SPEED_ltp_F] <-- 0x%08x\n",
  2731. REG_EPHY_SPEED,d.all,d.all);
  2732. #endif
  2733. }
  2734. GH_INLINE U8 GH_EPHY_get_SPEED_ltp_F(void)
  2735. {
  2736. GH_EPHY_SPEED_S tmp_value;
  2737. U16 value = (*(volatile U16 *)REG_EPHY_SPEED);
  2738. tmp_value.all = value;
  2739. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2740. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_SPEED_ltp_F] --> 0x%08x\n",
  2741. REG_EPHY_SPEED,value);
  2742. #endif
  2743. return tmp_value.bitc.ltp_f;
  2744. }
  2745. GH_INLINE void GH_EPHY_set_SPEED_isolate(U8 data)
  2746. {
  2747. GH_EPHY_SPEED_S d;
  2748. d.all = *(volatile U16 *)REG_EPHY_SPEED;
  2749. d.bitc.isolate = data;
  2750. *(volatile U16 *)REG_EPHY_SPEED = d.all;
  2751. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2752. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_SPEED_isolate] <-- 0x%08x\n",
  2753. REG_EPHY_SPEED,d.all,d.all);
  2754. #endif
  2755. }
  2756. GH_INLINE U8 GH_EPHY_get_SPEED_isolate(void)
  2757. {
  2758. GH_EPHY_SPEED_S tmp_value;
  2759. U16 value = (*(volatile U16 *)REG_EPHY_SPEED);
  2760. tmp_value.all = value;
  2761. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2762. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_SPEED_isolate] --> 0x%08x\n",
  2763. REG_EPHY_SPEED,value);
  2764. #endif
  2765. return tmp_value.bitc.isolate;
  2766. }
  2767. GH_INLINE void GH_EPHY_set_SPEED_rptr(U8 data)
  2768. {
  2769. GH_EPHY_SPEED_S d;
  2770. d.all = *(volatile U16 *)REG_EPHY_SPEED;
  2771. d.bitc.rptr = data;
  2772. *(volatile U16 *)REG_EPHY_SPEED = d.all;
  2773. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2774. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_SPEED_rptr] <-- 0x%08x\n",
  2775. REG_EPHY_SPEED,d.all,d.all);
  2776. #endif
  2777. }
  2778. GH_INLINE U8 GH_EPHY_get_SPEED_rptr(void)
  2779. {
  2780. GH_EPHY_SPEED_S tmp_value;
  2781. U16 value = (*(volatile U16 *)REG_EPHY_SPEED);
  2782. tmp_value.all = value;
  2783. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2784. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_SPEED_rptr] --> 0x%08x\n",
  2785. REG_EPHY_SPEED,value);
  2786. #endif
  2787. return tmp_value.bitc.rptr;
  2788. }
  2789. GH_INLINE void GH_EPHY_set_SPEED_duplex(U8 data)
  2790. {
  2791. GH_EPHY_SPEED_S d;
  2792. d.all = *(volatile U16 *)REG_EPHY_SPEED;
  2793. d.bitc.duplex = data;
  2794. *(volatile U16 *)REG_EPHY_SPEED = d.all;
  2795. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2796. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_SPEED_duplex] <-- 0x%08x\n",
  2797. REG_EPHY_SPEED,d.all,d.all);
  2798. #endif
  2799. }
  2800. GH_INLINE U8 GH_EPHY_get_SPEED_duplex(void)
  2801. {
  2802. GH_EPHY_SPEED_S tmp_value;
  2803. U16 value = (*(volatile U16 *)REG_EPHY_SPEED);
  2804. tmp_value.all = value;
  2805. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2806. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_SPEED_duplex] --> 0x%08x\n",
  2807. REG_EPHY_SPEED,value);
  2808. #endif
  2809. return tmp_value.bitc.duplex;
  2810. }
  2811. GH_INLINE void GH_EPHY_set_SPEED_speed(U8 data)
  2812. {
  2813. GH_EPHY_SPEED_S d;
  2814. d.all = *(volatile U16 *)REG_EPHY_SPEED;
  2815. d.bitc.speed = data;
  2816. *(volatile U16 *)REG_EPHY_SPEED = d.all;
  2817. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2818. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_SPEED_speed] <-- 0x%08x\n",
  2819. REG_EPHY_SPEED,d.all,d.all);
  2820. #endif
  2821. }
  2822. GH_INLINE U8 GH_EPHY_get_SPEED_speed(void)
  2823. {
  2824. GH_EPHY_SPEED_S tmp_value;
  2825. U16 value = (*(volatile U16 *)REG_EPHY_SPEED);
  2826. tmp_value.all = value;
  2827. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2828. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_SPEED_speed] --> 0x%08x\n",
  2829. REG_EPHY_SPEED,value);
  2830. #endif
  2831. return tmp_value.bitc.speed;
  2832. }
  2833. GH_INLINE void GH_EPHY_set_SPEED_ane(U8 data)
  2834. {
  2835. GH_EPHY_SPEED_S d;
  2836. d.all = *(volatile U16 *)REG_EPHY_SPEED;
  2837. d.bitc.ane = data;
  2838. *(volatile U16 *)REG_EPHY_SPEED = d.all;
  2839. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2840. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_SPEED_ane] <-- 0x%08x\n",
  2841. REG_EPHY_SPEED,d.all,d.all);
  2842. #endif
  2843. }
  2844. GH_INLINE U8 GH_EPHY_get_SPEED_ane(void)
  2845. {
  2846. GH_EPHY_SPEED_S tmp_value;
  2847. U16 value = (*(volatile U16 *)REG_EPHY_SPEED);
  2848. tmp_value.all = value;
  2849. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2850. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_SPEED_ane] --> 0x%08x\n",
  2851. REG_EPHY_SPEED,value);
  2852. #endif
  2853. return tmp_value.bitc.ane;
  2854. }
  2855. GH_INLINE void GH_EPHY_set_SPEED_ldps(U8 data)
  2856. {
  2857. GH_EPHY_SPEED_S d;
  2858. d.all = *(volatile U16 *)REG_EPHY_SPEED;
  2859. d.bitc.ldps = data;
  2860. *(volatile U16 *)REG_EPHY_SPEED = d.all;
  2861. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2862. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_SPEED_ldps] <-- 0x%08x\n",
  2863. REG_EPHY_SPEED,d.all,d.all);
  2864. #endif
  2865. }
  2866. GH_INLINE U8 GH_EPHY_get_SPEED_ldps(void)
  2867. {
  2868. GH_EPHY_SPEED_S tmp_value;
  2869. U16 value = (*(volatile U16 *)REG_EPHY_SPEED);
  2870. tmp_value.all = value;
  2871. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2872. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_SPEED_ldps] --> 0x%08x\n",
  2873. REG_EPHY_SPEED,value);
  2874. #endif
  2875. return tmp_value.bitc.ldps;
  2876. }
  2877. GH_INLINE void GH_EPHY_set_SPEED_disable_eee_force(U8 data)
  2878. {
  2879. GH_EPHY_SPEED_S d;
  2880. d.all = *(volatile U16 *)REG_EPHY_SPEED;
  2881. d.bitc.disable_eee_force = data;
  2882. *(volatile U16 *)REG_EPHY_SPEED = d.all;
  2883. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2884. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_SPEED_disable_eee_force] <-- 0x%08x\n",
  2885. REG_EPHY_SPEED,d.all,d.all);
  2886. #endif
  2887. }
  2888. GH_INLINE U8 GH_EPHY_get_SPEED_disable_eee_force(void)
  2889. {
  2890. GH_EPHY_SPEED_S tmp_value;
  2891. U16 value = (*(volatile U16 *)REG_EPHY_SPEED);
  2892. tmp_value.all = value;
  2893. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2894. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_SPEED_disable_eee_force] --> 0x%08x\n",
  2895. REG_EPHY_SPEED,value);
  2896. #endif
  2897. return tmp_value.bitc.disable_eee_force;
  2898. }
  2899. #endif /* GH_INLINE_LEVEL == 0 */
  2900. /*----------------------------------------------------------------------------*/
  2901. /* register EPHY_LTP (read/write) */
  2902. /*----------------------------------------------------------------------------*/
  2903. #if GH_INLINE_LEVEL == 0
  2904. /*! \brief Writes the register 'EPHY_LTP'. */
  2905. void GH_EPHY_set_LTP(U16 data);
  2906. /*! \brief Reads the register 'EPHY_LTP'. */
  2907. U16 GH_EPHY_get_LTP(void);
  2908. /*! \brief Writes the bit group 'width' of register 'EPHY_LTP'. */
  2909. void GH_EPHY_set_LTP_width(U8 data);
  2910. /*! \brief Reads the bit group 'width' of register 'EPHY_LTP'. */
  2911. U8 GH_EPHY_get_LTP_width(void);
  2912. /*! \brief Writes the bit group 'tx_gm_rctrl' of register 'EPHY_LTP'. */
  2913. void GH_EPHY_set_LTP_tx_gm_rctrl(U8 data);
  2914. /*! \brief Reads the bit group 'tx_gm_rctrl' of register 'EPHY_LTP'. */
  2915. U8 GH_EPHY_get_LTP_tx_gm_rctrl(void);
  2916. #else /* GH_INLINE_LEVEL == 0 */
  2917. GH_INLINE void GH_EPHY_set_LTP(U16 data)
  2918. {
  2919. *(volatile U16 *)REG_EPHY_LTP = data;
  2920. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2921. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_LTP] <-- 0x%08x\n",
  2922. REG_EPHY_LTP,data,data);
  2923. #endif
  2924. }
  2925. GH_INLINE U16 GH_EPHY_get_LTP(void)
  2926. {
  2927. U16 value = (*(volatile U16 *)REG_EPHY_LTP);
  2928. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2929. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_LTP] --> 0x%08x\n",
  2930. REG_EPHY_LTP,value);
  2931. #endif
  2932. return value;
  2933. }
  2934. GH_INLINE void GH_EPHY_set_LTP_width(U8 data)
  2935. {
  2936. GH_EPHY_LTP_S d;
  2937. d.all = *(volatile U16 *)REG_EPHY_LTP;
  2938. d.bitc.width = data;
  2939. *(volatile U16 *)REG_EPHY_LTP = d.all;
  2940. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2941. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_LTP_width] <-- 0x%08x\n",
  2942. REG_EPHY_LTP,d.all,d.all);
  2943. #endif
  2944. }
  2945. GH_INLINE U8 GH_EPHY_get_LTP_width(void)
  2946. {
  2947. GH_EPHY_LTP_S tmp_value;
  2948. U16 value = (*(volatile U16 *)REG_EPHY_LTP);
  2949. tmp_value.all = value;
  2950. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2951. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_LTP_width] --> 0x%08x\n",
  2952. REG_EPHY_LTP,value);
  2953. #endif
  2954. return tmp_value.bitc.width;
  2955. }
  2956. GH_INLINE void GH_EPHY_set_LTP_tx_gm_rctrl(U8 data)
  2957. {
  2958. GH_EPHY_LTP_S d;
  2959. d.all = *(volatile U16 *)REG_EPHY_LTP;
  2960. d.bitc.tx_gm_rctrl = data;
  2961. *(volatile U16 *)REG_EPHY_LTP = d.all;
  2962. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2963. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_LTP_tx_gm_rctrl] <-- 0x%08x\n",
  2964. REG_EPHY_LTP,d.all,d.all);
  2965. #endif
  2966. }
  2967. GH_INLINE U8 GH_EPHY_get_LTP_tx_gm_rctrl(void)
  2968. {
  2969. GH_EPHY_LTP_S tmp_value;
  2970. U16 value = (*(volatile U16 *)REG_EPHY_LTP);
  2971. tmp_value.all = value;
  2972. #if GH_EPHY_ENABLE_DEBUG_PRINT
  2973. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_LTP_tx_gm_rctrl] --> 0x%08x\n",
  2974. REG_EPHY_LTP,value);
  2975. #endif
  2976. return tmp_value.bitc.tx_gm_rctrl;
  2977. }
  2978. #endif /* GH_INLINE_LEVEL == 0 */
  2979. /*----------------------------------------------------------------------------*/
  2980. /* register EPHY_MCU (read/write) */
  2981. /*----------------------------------------------------------------------------*/
  2982. #if GH_INLINE_LEVEL == 0
  2983. /*! \brief Writes the register 'EPHY_MCU'. */
  2984. void GH_EPHY_set_MCU(U16 data);
  2985. /*! \brief Reads the register 'EPHY_MCU'. */
  2986. U16 GH_EPHY_get_MCU(void);
  2987. /*! \brief Writes the bit group 'en' of register 'EPHY_MCU'. */
  2988. void GH_EPHY_set_MCU_en(U8 data);
  2989. /*! \brief Reads the bit group 'en' of register 'EPHY_MCU'. */
  2990. U8 GH_EPHY_get_MCU_en(void);
  2991. /*! \brief Writes the bit group 'mcu_rdy' of register 'EPHY_MCU'. */
  2992. void GH_EPHY_set_MCU_mcu_rdy(U8 data);
  2993. /*! \brief Reads the bit group 'mcu_rdy' of register 'EPHY_MCU'. */
  2994. U8 GH_EPHY_get_MCU_mcu_rdy(void);
  2995. #else /* GH_INLINE_LEVEL == 0 */
  2996. GH_INLINE void GH_EPHY_set_MCU(U16 data)
  2997. {
  2998. *(volatile U16 *)REG_EPHY_MCU = data;
  2999. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3000. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_MCU] <-- 0x%08x\n",
  3001. REG_EPHY_MCU,data,data);
  3002. #endif
  3003. }
  3004. GH_INLINE U16 GH_EPHY_get_MCU(void)
  3005. {
  3006. U16 value = (*(volatile U16 *)REG_EPHY_MCU);
  3007. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3008. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_MCU] --> 0x%08x\n",
  3009. REG_EPHY_MCU,value);
  3010. #endif
  3011. return value;
  3012. }
  3013. GH_INLINE void GH_EPHY_set_MCU_en(U8 data)
  3014. {
  3015. GH_EPHY_MCU_S d;
  3016. d.all = *(volatile U16 *)REG_EPHY_MCU;
  3017. d.bitc.en = data;
  3018. *(volatile U16 *)REG_EPHY_MCU = d.all;
  3019. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3020. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_MCU_en] <-- 0x%08x\n",
  3021. REG_EPHY_MCU,d.all,d.all);
  3022. #endif
  3023. }
  3024. GH_INLINE U8 GH_EPHY_get_MCU_en(void)
  3025. {
  3026. GH_EPHY_MCU_S tmp_value;
  3027. U16 value = (*(volatile U16 *)REG_EPHY_MCU);
  3028. tmp_value.all = value;
  3029. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3030. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_MCU_en] --> 0x%08x\n",
  3031. REG_EPHY_MCU,value);
  3032. #endif
  3033. return tmp_value.bitc.en;
  3034. }
  3035. GH_INLINE void GH_EPHY_set_MCU_mcu_rdy(U8 data)
  3036. {
  3037. GH_EPHY_MCU_S d;
  3038. d.all = *(volatile U16 *)REG_EPHY_MCU;
  3039. d.bitc.mcu_rdy = data;
  3040. *(volatile U16 *)REG_EPHY_MCU = d.all;
  3041. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3042. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_MCU_mcu_rdy] <-- 0x%08x\n",
  3043. REG_EPHY_MCU,d.all,d.all);
  3044. #endif
  3045. }
  3046. GH_INLINE U8 GH_EPHY_get_MCU_mcu_rdy(void)
  3047. {
  3048. GH_EPHY_MCU_S tmp_value;
  3049. U16 value = (*(volatile U16 *)REG_EPHY_MCU);
  3050. tmp_value.all = value;
  3051. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3052. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_MCU_mcu_rdy] --> 0x%08x\n",
  3053. REG_EPHY_MCU,value);
  3054. #endif
  3055. return tmp_value.bitc.mcu_rdy;
  3056. }
  3057. #endif /* GH_INLINE_LEVEL == 0 */
  3058. /*----------------------------------------------------------------------------*/
  3059. /* register EPHY_CODE_RAM (read/write) */
  3060. /*----------------------------------------------------------------------------*/
  3061. #if GH_INLINE_LEVEL == 0
  3062. /*! \brief Writes the register 'EPHY_CODE_RAM'. */
  3063. void GH_EPHY_set_CODE_RAM(U16 data);
  3064. /*! \brief Reads the register 'EPHY_CODE_RAM'. */
  3065. U16 GH_EPHY_get_CODE_RAM(void);
  3066. /*! \brief Writes the bit group 'start_addr' of register 'EPHY_CODE_RAM'. */
  3067. void GH_EPHY_set_CODE_RAM_start_addr(U16 data);
  3068. /*! \brief Reads the bit group 'start_addr' of register 'EPHY_CODE_RAM'. */
  3069. U16 GH_EPHY_get_CODE_RAM_start_addr(void);
  3070. #else /* GH_INLINE_LEVEL == 0 */
  3071. GH_INLINE void GH_EPHY_set_CODE_RAM(U16 data)
  3072. {
  3073. *(volatile U16 *)REG_EPHY_CODE_RAM = data;
  3074. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3075. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_CODE_RAM] <-- 0x%08x\n",
  3076. REG_EPHY_CODE_RAM,data,data);
  3077. #endif
  3078. }
  3079. GH_INLINE U16 GH_EPHY_get_CODE_RAM(void)
  3080. {
  3081. U16 value = (*(volatile U16 *)REG_EPHY_CODE_RAM);
  3082. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3083. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_CODE_RAM] --> 0x%08x\n",
  3084. REG_EPHY_CODE_RAM,value);
  3085. #endif
  3086. return value;
  3087. }
  3088. GH_INLINE void GH_EPHY_set_CODE_RAM_start_addr(U16 data)
  3089. {
  3090. GH_EPHY_CODE_RAM_S d;
  3091. d.all = *(volatile U16 *)REG_EPHY_CODE_RAM;
  3092. d.bitc.start_addr = data;
  3093. *(volatile U16 *)REG_EPHY_CODE_RAM = d.all;
  3094. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3095. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_CODE_RAM_start_addr] <-- 0x%08x\n",
  3096. REG_EPHY_CODE_RAM,d.all,d.all);
  3097. #endif
  3098. }
  3099. GH_INLINE U16 GH_EPHY_get_CODE_RAM_start_addr(void)
  3100. {
  3101. GH_EPHY_CODE_RAM_S tmp_value;
  3102. U16 value = (*(volatile U16 *)REG_EPHY_CODE_RAM);
  3103. tmp_value.all = value;
  3104. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3105. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_CODE_RAM_start_addr] --> 0x%08x\n",
  3106. REG_EPHY_CODE_RAM,value);
  3107. #endif
  3108. return tmp_value.bitc.start_addr;
  3109. }
  3110. #endif /* GH_INLINE_LEVEL == 0 */
  3111. /*----------------------------------------------------------------------------*/
  3112. /* register EPHY_CODE_RAM_W (read/write) */
  3113. /*----------------------------------------------------------------------------*/
  3114. #if GH_INLINE_LEVEL == 0
  3115. /*! \brief Writes the register 'EPHY_CODE_RAM_W'. */
  3116. void GH_EPHY_set_CODE_RAM_W(U16 data);
  3117. /*! \brief Reads the register 'EPHY_CODE_RAM_W'. */
  3118. U16 GH_EPHY_get_CODE_RAM_W(void);
  3119. /*! \brief Writes the bit group 'start_addr' of register 'EPHY_CODE_RAM_W'. */
  3120. void GH_EPHY_set_CODE_RAM_W_start_addr(U16 data);
  3121. /*! \brief Reads the bit group 'start_addr' of register 'EPHY_CODE_RAM_W'. */
  3122. U16 GH_EPHY_get_CODE_RAM_W_start_addr(void);
  3123. #else /* GH_INLINE_LEVEL == 0 */
  3124. GH_INLINE void GH_EPHY_set_CODE_RAM_W(U16 data)
  3125. {
  3126. *(volatile U16 *)REG_EPHY_CODE_RAM_W = data;
  3127. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3128. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_CODE_RAM_W] <-- 0x%08x\n",
  3129. REG_EPHY_CODE_RAM_W,data,data);
  3130. #endif
  3131. }
  3132. GH_INLINE U16 GH_EPHY_get_CODE_RAM_W(void)
  3133. {
  3134. U16 value = (*(volatile U16 *)REG_EPHY_CODE_RAM_W);
  3135. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3136. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_CODE_RAM_W] --> 0x%08x\n",
  3137. REG_EPHY_CODE_RAM_W,value);
  3138. #endif
  3139. return value;
  3140. }
  3141. GH_INLINE void GH_EPHY_set_CODE_RAM_W_start_addr(U16 data)
  3142. {
  3143. GH_EPHY_CODE_RAM_W_S d;
  3144. d.all = *(volatile U16 *)REG_EPHY_CODE_RAM_W;
  3145. d.bitc.start_addr = data;
  3146. *(volatile U16 *)REG_EPHY_CODE_RAM_W = d.all;
  3147. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3148. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_CODE_RAM_W_start_addr] <-- 0x%08x\n",
  3149. REG_EPHY_CODE_RAM_W,d.all,d.all);
  3150. #endif
  3151. }
  3152. GH_INLINE U16 GH_EPHY_get_CODE_RAM_W_start_addr(void)
  3153. {
  3154. GH_EPHY_CODE_RAM_W_S tmp_value;
  3155. U16 value = (*(volatile U16 *)REG_EPHY_CODE_RAM_W);
  3156. tmp_value.all = value;
  3157. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3158. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_CODE_RAM_W_start_addr] --> 0x%08x\n",
  3159. REG_EPHY_CODE_RAM_W,value);
  3160. #endif
  3161. return tmp_value.bitc.start_addr;
  3162. }
  3163. #endif /* GH_INLINE_LEVEL == 0 */
  3164. /*----------------------------------------------------------------------------*/
  3165. /* register EPHY_100M_LINK (read/write) */
  3166. /*----------------------------------------------------------------------------*/
  3167. #if GH_INLINE_LEVEL == 0
  3168. /*! \brief Writes the register 'EPHY_100M_LINK'. */
  3169. void GH_EPHY_set_100M_LINK(U16 data);
  3170. /*! \brief Reads the register 'EPHY_100M_LINK'. */
  3171. U16 GH_EPHY_get_100M_LINK(void);
  3172. /*! \brief Writes the bit group 'an_mcu_100t_link_control' of register 'EPHY_100M_LINK'. */
  3173. void GH_EPHY_set_100M_LINK_an_mcu_100t_link_control(U8 data);
  3174. /*! \brief Reads the bit group 'an_mcu_100t_link_control' of register 'EPHY_100M_LINK'. */
  3175. U8 GH_EPHY_get_100M_LINK_an_mcu_100t_link_control(void);
  3176. /*! \brief Writes the bit group 'an_mcu_nlp_link_control' of register 'EPHY_100M_LINK'. */
  3177. void GH_EPHY_set_100M_LINK_an_mcu_nlp_link_control(U8 data);
  3178. /*! \brief Reads the bit group 'an_mcu_nlp_link_control' of register 'EPHY_100M_LINK'. */
  3179. U8 GH_EPHY_get_100M_LINK_an_mcu_nlp_link_control(void);
  3180. /*! \brief Writes the bit group 'nlp_frame_start_mode_en' of register 'EPHY_100M_LINK'. */
  3181. void GH_EPHY_set_100M_LINK_nlp_frame_start_mode_en(U8 data);
  3182. /*! \brief Reads the bit group 'nlp_frame_start_mode_en' of register 'EPHY_100M_LINK'. */
  3183. U8 GH_EPHY_get_100M_LINK_nlp_frame_start_mode_en(void);
  3184. /*! \brief Writes the bit group 'detect_100m' of register 'EPHY_100M_LINK'. */
  3185. void GH_EPHY_set_100M_LINK_detect_100m(U8 data);
  3186. /*! \brief Reads the bit group 'detect_100m' of register 'EPHY_100M_LINK'. */
  3187. U8 GH_EPHY_get_100M_LINK_detect_100m(void);
  3188. /*! \brief Writes the bit group 'mcu_an_enable' of register 'EPHY_100M_LINK'. */
  3189. void GH_EPHY_set_100M_LINK_mcu_an_enable(U8 data);
  3190. /*! \brief Reads the bit group 'mcu_an_enable' of register 'EPHY_100M_LINK'. */
  3191. U8 GH_EPHY_get_100M_LINK_mcu_an_enable(void);
  3192. /*! \brief Writes the bit group 'force_100m_link_good' of register 'EPHY_100M_LINK'. */
  3193. void GH_EPHY_set_100M_LINK_force_100m_link_good(U8 data);
  3194. /*! \brief Reads the bit group 'force_100m_link_good' of register 'EPHY_100M_LINK'. */
  3195. U8 GH_EPHY_get_100M_LINK_force_100m_link_good(void);
  3196. /*! \brief Writes the bit group 'an_100t_link_status' of register 'EPHY_100M_LINK'. */
  3197. void GH_EPHY_set_100M_LINK_an_100t_link_status(U8 data);
  3198. /*! \brief Reads the bit group 'an_100t_link_status' of register 'EPHY_100M_LINK'. */
  3199. U8 GH_EPHY_get_100M_LINK_an_100t_link_status(void);
  3200. /*! \brief Writes the bit group 'an_nlp_link_status' of register 'EPHY_100M_LINK'. */
  3201. void GH_EPHY_set_100M_LINK_an_nlp_link_status(U8 data);
  3202. /*! \brief Reads the bit group 'an_nlp_link_status' of register 'EPHY_100M_LINK'. */
  3203. U8 GH_EPHY_get_100M_LINK_an_nlp_link_status(void);
  3204. /*! \brief Writes the bit group 'mdio_disable' of register 'EPHY_100M_LINK'. */
  3205. void GH_EPHY_set_100M_LINK_mdio_disable(U8 data);
  3206. /*! \brief Reads the bit group 'mdio_disable' of register 'EPHY_100M_LINK'. */
  3207. U8 GH_EPHY_get_100M_LINK_mdio_disable(void);
  3208. /*! \brief Writes the bit group 'mdc_edge_sel' of register 'EPHY_100M_LINK'. */
  3209. void GH_EPHY_set_100M_LINK_mdc_edge_sel(U8 data);
  3210. /*! \brief Reads the bit group 'mdc_edge_sel' of register 'EPHY_100M_LINK'. */
  3211. U8 GH_EPHY_get_100M_LINK_mdc_edge_sel(void);
  3212. /*! \brief Writes the bit group 'an_bypass_link_status_check' of register 'EPHY_100M_LINK'. */
  3213. void GH_EPHY_set_100M_LINK_an_bypass_link_status_check(U8 data);
  3214. /*! \brief Reads the bit group 'an_bypass_link_status_check' of register 'EPHY_100M_LINK'. */
  3215. U8 GH_EPHY_get_100M_LINK_an_bypass_link_status_check(void);
  3216. /*! \brief Writes the bit group 'adc_loop' of register 'EPHY_100M_LINK'. */
  3217. void GH_EPHY_set_100M_LINK_adc_loop(U8 data);
  3218. /*! \brief Reads the bit group 'adc_loop' of register 'EPHY_100M_LINK'. */
  3219. U8 GH_EPHY_get_100M_LINK_adc_loop(void);
  3220. #else /* GH_INLINE_LEVEL == 0 */
  3221. GH_INLINE void GH_EPHY_set_100M_LINK(U16 data)
  3222. {
  3223. *(volatile U16 *)REG_EPHY_100M_LINK = data;
  3224. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3225. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_100M_LINK] <-- 0x%08x\n",
  3226. REG_EPHY_100M_LINK,data,data);
  3227. #endif
  3228. }
  3229. GH_INLINE U16 GH_EPHY_get_100M_LINK(void)
  3230. {
  3231. U16 value = (*(volatile U16 *)REG_EPHY_100M_LINK);
  3232. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3233. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_100M_LINK] --> 0x%08x\n",
  3234. REG_EPHY_100M_LINK,value);
  3235. #endif
  3236. return value;
  3237. }
  3238. GH_INLINE void GH_EPHY_set_100M_LINK_an_mcu_100t_link_control(U8 data)
  3239. {
  3240. GH_EPHY_100M_LINK_S d;
  3241. d.all = *(volatile U16 *)REG_EPHY_100M_LINK;
  3242. d.bitc.an_mcu_100t_link_control = data;
  3243. *(volatile U16 *)REG_EPHY_100M_LINK = d.all;
  3244. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3245. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_100M_LINK_an_mcu_100t_link_control] <-- 0x%08x\n",
  3246. REG_EPHY_100M_LINK,d.all,d.all);
  3247. #endif
  3248. }
  3249. GH_INLINE U8 GH_EPHY_get_100M_LINK_an_mcu_100t_link_control(void)
  3250. {
  3251. GH_EPHY_100M_LINK_S tmp_value;
  3252. U16 value = (*(volatile U16 *)REG_EPHY_100M_LINK);
  3253. tmp_value.all = value;
  3254. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3255. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_100M_LINK_an_mcu_100t_link_control] --> 0x%08x\n",
  3256. REG_EPHY_100M_LINK,value);
  3257. #endif
  3258. return tmp_value.bitc.an_mcu_100t_link_control;
  3259. }
  3260. GH_INLINE void GH_EPHY_set_100M_LINK_an_mcu_nlp_link_control(U8 data)
  3261. {
  3262. GH_EPHY_100M_LINK_S d;
  3263. d.all = *(volatile U16 *)REG_EPHY_100M_LINK;
  3264. d.bitc.an_mcu_nlp_link_control = data;
  3265. *(volatile U16 *)REG_EPHY_100M_LINK = d.all;
  3266. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3267. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_100M_LINK_an_mcu_nlp_link_control] <-- 0x%08x\n",
  3268. REG_EPHY_100M_LINK,d.all,d.all);
  3269. #endif
  3270. }
  3271. GH_INLINE U8 GH_EPHY_get_100M_LINK_an_mcu_nlp_link_control(void)
  3272. {
  3273. GH_EPHY_100M_LINK_S tmp_value;
  3274. U16 value = (*(volatile U16 *)REG_EPHY_100M_LINK);
  3275. tmp_value.all = value;
  3276. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3277. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_100M_LINK_an_mcu_nlp_link_control] --> 0x%08x\n",
  3278. REG_EPHY_100M_LINK,value);
  3279. #endif
  3280. return tmp_value.bitc.an_mcu_nlp_link_control;
  3281. }
  3282. GH_INLINE void GH_EPHY_set_100M_LINK_nlp_frame_start_mode_en(U8 data)
  3283. {
  3284. GH_EPHY_100M_LINK_S d;
  3285. d.all = *(volatile U16 *)REG_EPHY_100M_LINK;
  3286. d.bitc.nlp_frame_start_mode_en = data;
  3287. *(volatile U16 *)REG_EPHY_100M_LINK = d.all;
  3288. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3289. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_100M_LINK_nlp_frame_start_mode_en] <-- 0x%08x\n",
  3290. REG_EPHY_100M_LINK,d.all,d.all);
  3291. #endif
  3292. }
  3293. GH_INLINE U8 GH_EPHY_get_100M_LINK_nlp_frame_start_mode_en(void)
  3294. {
  3295. GH_EPHY_100M_LINK_S tmp_value;
  3296. U16 value = (*(volatile U16 *)REG_EPHY_100M_LINK);
  3297. tmp_value.all = value;
  3298. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3299. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_100M_LINK_nlp_frame_start_mode_en] --> 0x%08x\n",
  3300. REG_EPHY_100M_LINK,value);
  3301. #endif
  3302. return tmp_value.bitc.nlp_frame_start_mode_en;
  3303. }
  3304. GH_INLINE void GH_EPHY_set_100M_LINK_detect_100m(U8 data)
  3305. {
  3306. GH_EPHY_100M_LINK_S d;
  3307. d.all = *(volatile U16 *)REG_EPHY_100M_LINK;
  3308. d.bitc.detect_100m = data;
  3309. *(volatile U16 *)REG_EPHY_100M_LINK = d.all;
  3310. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3311. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_100M_LINK_detect_100m] <-- 0x%08x\n",
  3312. REG_EPHY_100M_LINK,d.all,d.all);
  3313. #endif
  3314. }
  3315. GH_INLINE U8 GH_EPHY_get_100M_LINK_detect_100m(void)
  3316. {
  3317. GH_EPHY_100M_LINK_S tmp_value;
  3318. U16 value = (*(volatile U16 *)REG_EPHY_100M_LINK);
  3319. tmp_value.all = value;
  3320. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3321. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_100M_LINK_detect_100m] --> 0x%08x\n",
  3322. REG_EPHY_100M_LINK,value);
  3323. #endif
  3324. return tmp_value.bitc.detect_100m;
  3325. }
  3326. GH_INLINE void GH_EPHY_set_100M_LINK_mcu_an_enable(U8 data)
  3327. {
  3328. GH_EPHY_100M_LINK_S d;
  3329. d.all = *(volatile U16 *)REG_EPHY_100M_LINK;
  3330. d.bitc.mcu_an_enable = data;
  3331. *(volatile U16 *)REG_EPHY_100M_LINK = d.all;
  3332. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3333. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_100M_LINK_mcu_an_enable] <-- 0x%08x\n",
  3334. REG_EPHY_100M_LINK,d.all,d.all);
  3335. #endif
  3336. }
  3337. GH_INLINE U8 GH_EPHY_get_100M_LINK_mcu_an_enable(void)
  3338. {
  3339. GH_EPHY_100M_LINK_S tmp_value;
  3340. U16 value = (*(volatile U16 *)REG_EPHY_100M_LINK);
  3341. tmp_value.all = value;
  3342. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3343. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_100M_LINK_mcu_an_enable] --> 0x%08x\n",
  3344. REG_EPHY_100M_LINK,value);
  3345. #endif
  3346. return tmp_value.bitc.mcu_an_enable;
  3347. }
  3348. GH_INLINE void GH_EPHY_set_100M_LINK_force_100m_link_good(U8 data)
  3349. {
  3350. GH_EPHY_100M_LINK_S d;
  3351. d.all = *(volatile U16 *)REG_EPHY_100M_LINK;
  3352. d.bitc.force_100m_link_good = data;
  3353. *(volatile U16 *)REG_EPHY_100M_LINK = d.all;
  3354. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3355. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_100M_LINK_force_100m_link_good] <-- 0x%08x\n",
  3356. REG_EPHY_100M_LINK,d.all,d.all);
  3357. #endif
  3358. }
  3359. GH_INLINE U8 GH_EPHY_get_100M_LINK_force_100m_link_good(void)
  3360. {
  3361. GH_EPHY_100M_LINK_S tmp_value;
  3362. U16 value = (*(volatile U16 *)REG_EPHY_100M_LINK);
  3363. tmp_value.all = value;
  3364. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3365. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_100M_LINK_force_100m_link_good] --> 0x%08x\n",
  3366. REG_EPHY_100M_LINK,value);
  3367. #endif
  3368. return tmp_value.bitc.force_100m_link_good;
  3369. }
  3370. GH_INLINE void GH_EPHY_set_100M_LINK_an_100t_link_status(U8 data)
  3371. {
  3372. GH_EPHY_100M_LINK_S d;
  3373. d.all = *(volatile U16 *)REG_EPHY_100M_LINK;
  3374. d.bitc.an_100t_link_status = data;
  3375. *(volatile U16 *)REG_EPHY_100M_LINK = d.all;
  3376. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3377. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_100M_LINK_an_100t_link_status] <-- 0x%08x\n",
  3378. REG_EPHY_100M_LINK,d.all,d.all);
  3379. #endif
  3380. }
  3381. GH_INLINE U8 GH_EPHY_get_100M_LINK_an_100t_link_status(void)
  3382. {
  3383. GH_EPHY_100M_LINK_S tmp_value;
  3384. U16 value = (*(volatile U16 *)REG_EPHY_100M_LINK);
  3385. tmp_value.all = value;
  3386. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3387. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_100M_LINK_an_100t_link_status] --> 0x%08x\n",
  3388. REG_EPHY_100M_LINK,value);
  3389. #endif
  3390. return tmp_value.bitc.an_100t_link_status;
  3391. }
  3392. GH_INLINE void GH_EPHY_set_100M_LINK_an_nlp_link_status(U8 data)
  3393. {
  3394. GH_EPHY_100M_LINK_S d;
  3395. d.all = *(volatile U16 *)REG_EPHY_100M_LINK;
  3396. d.bitc.an_nlp_link_status = data;
  3397. *(volatile U16 *)REG_EPHY_100M_LINK = d.all;
  3398. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3399. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_100M_LINK_an_nlp_link_status] <-- 0x%08x\n",
  3400. REG_EPHY_100M_LINK,d.all,d.all);
  3401. #endif
  3402. }
  3403. GH_INLINE U8 GH_EPHY_get_100M_LINK_an_nlp_link_status(void)
  3404. {
  3405. GH_EPHY_100M_LINK_S tmp_value;
  3406. U16 value = (*(volatile U16 *)REG_EPHY_100M_LINK);
  3407. tmp_value.all = value;
  3408. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3409. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_100M_LINK_an_nlp_link_status] --> 0x%08x\n",
  3410. REG_EPHY_100M_LINK,value);
  3411. #endif
  3412. return tmp_value.bitc.an_nlp_link_status;
  3413. }
  3414. GH_INLINE void GH_EPHY_set_100M_LINK_mdio_disable(U8 data)
  3415. {
  3416. GH_EPHY_100M_LINK_S d;
  3417. d.all = *(volatile U16 *)REG_EPHY_100M_LINK;
  3418. d.bitc.mdio_disable = data;
  3419. *(volatile U16 *)REG_EPHY_100M_LINK = d.all;
  3420. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3421. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_100M_LINK_mdio_disable] <-- 0x%08x\n",
  3422. REG_EPHY_100M_LINK,d.all,d.all);
  3423. #endif
  3424. }
  3425. GH_INLINE U8 GH_EPHY_get_100M_LINK_mdio_disable(void)
  3426. {
  3427. GH_EPHY_100M_LINK_S tmp_value;
  3428. U16 value = (*(volatile U16 *)REG_EPHY_100M_LINK);
  3429. tmp_value.all = value;
  3430. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3431. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_100M_LINK_mdio_disable] --> 0x%08x\n",
  3432. REG_EPHY_100M_LINK,value);
  3433. #endif
  3434. return tmp_value.bitc.mdio_disable;
  3435. }
  3436. GH_INLINE void GH_EPHY_set_100M_LINK_mdc_edge_sel(U8 data)
  3437. {
  3438. GH_EPHY_100M_LINK_S d;
  3439. d.all = *(volatile U16 *)REG_EPHY_100M_LINK;
  3440. d.bitc.mdc_edge_sel = data;
  3441. *(volatile U16 *)REG_EPHY_100M_LINK = d.all;
  3442. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3443. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_100M_LINK_mdc_edge_sel] <-- 0x%08x\n",
  3444. REG_EPHY_100M_LINK,d.all,d.all);
  3445. #endif
  3446. }
  3447. GH_INLINE U8 GH_EPHY_get_100M_LINK_mdc_edge_sel(void)
  3448. {
  3449. GH_EPHY_100M_LINK_S tmp_value;
  3450. U16 value = (*(volatile U16 *)REG_EPHY_100M_LINK);
  3451. tmp_value.all = value;
  3452. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3453. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_100M_LINK_mdc_edge_sel] --> 0x%08x\n",
  3454. REG_EPHY_100M_LINK,value);
  3455. #endif
  3456. return tmp_value.bitc.mdc_edge_sel;
  3457. }
  3458. GH_INLINE void GH_EPHY_set_100M_LINK_an_bypass_link_status_check(U8 data)
  3459. {
  3460. GH_EPHY_100M_LINK_S d;
  3461. d.all = *(volatile U16 *)REG_EPHY_100M_LINK;
  3462. d.bitc.an_bypass_link_status_check = data;
  3463. *(volatile U16 *)REG_EPHY_100M_LINK = d.all;
  3464. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3465. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_100M_LINK_an_bypass_link_status_check] <-- 0x%08x\n",
  3466. REG_EPHY_100M_LINK,d.all,d.all);
  3467. #endif
  3468. }
  3469. GH_INLINE U8 GH_EPHY_get_100M_LINK_an_bypass_link_status_check(void)
  3470. {
  3471. GH_EPHY_100M_LINK_S tmp_value;
  3472. U16 value = (*(volatile U16 *)REG_EPHY_100M_LINK);
  3473. tmp_value.all = value;
  3474. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3475. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_100M_LINK_an_bypass_link_status_check] --> 0x%08x\n",
  3476. REG_EPHY_100M_LINK,value);
  3477. #endif
  3478. return tmp_value.bitc.an_bypass_link_status_check;
  3479. }
  3480. GH_INLINE void GH_EPHY_set_100M_LINK_adc_loop(U8 data)
  3481. {
  3482. GH_EPHY_100M_LINK_S d;
  3483. d.all = *(volatile U16 *)REG_EPHY_100M_LINK;
  3484. d.bitc.adc_loop = data;
  3485. *(volatile U16 *)REG_EPHY_100M_LINK = d.all;
  3486. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3487. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_100M_LINK_adc_loop] <-- 0x%08x\n",
  3488. REG_EPHY_100M_LINK,d.all,d.all);
  3489. #endif
  3490. }
  3491. GH_INLINE U8 GH_EPHY_get_100M_LINK_adc_loop(void)
  3492. {
  3493. GH_EPHY_100M_LINK_S tmp_value;
  3494. U16 value = (*(volatile U16 *)REG_EPHY_100M_LINK);
  3495. tmp_value.all = value;
  3496. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3497. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_100M_LINK_adc_loop] --> 0x%08x\n",
  3498. REG_EPHY_100M_LINK,value);
  3499. #endif
  3500. return tmp_value.bitc.adc_loop;
  3501. }
  3502. #endif /* GH_INLINE_LEVEL == 0 */
  3503. /*----------------------------------------------------------------------------*/
  3504. /* register EPHY_DEBUG (read/write) */
  3505. /*----------------------------------------------------------------------------*/
  3506. #if GH_INLINE_LEVEL == 0
  3507. /*! \brief Writes the register 'EPHY_DEBUG'. */
  3508. void GH_EPHY_set_DEBUG(U16 data);
  3509. /*! \brief Reads the register 'EPHY_DEBUG'. */
  3510. U16 GH_EPHY_get_DEBUG(void);
  3511. /*! \brief Writes the bit group 'snr_locked' of register 'EPHY_DEBUG'. */
  3512. void GH_EPHY_set_DEBUG_snr_locked(U8 data);
  3513. /*! \brief Reads the bit group 'snr_locked' of register 'EPHY_DEBUG'. */
  3514. U8 GH_EPHY_get_DEBUG_snr_locked(void);
  3515. /*! \brief Writes the bit group 'snr_locked_raw' of register 'EPHY_DEBUG'. */
  3516. void GH_EPHY_set_DEBUG_snr_locked_raw(U8 data);
  3517. /*! \brief Reads the bit group 'snr_locked_raw' of register 'EPHY_DEBUG'. */
  3518. U8 GH_EPHY_get_DEBUG_snr_locked_raw(void);
  3519. /*! \brief Writes the bit group 'sig_det_flag' of register 'EPHY_DEBUG'. */
  3520. void GH_EPHY_set_DEBUG_sig_det_flag(U8 data);
  3521. /*! \brief Reads the bit group 'sig_det_flag' of register 'EPHY_DEBUG'. */
  3522. U8 GH_EPHY_get_DEBUG_sig_det_flag(void);
  3523. /*! \brief Writes the bit group 'state_sync_on' of register 'EPHY_DEBUG'. */
  3524. void GH_EPHY_set_DEBUG_state_sync_on(U8 data);
  3525. /*! \brief Reads the bit group 'state_sync_on' of register 'EPHY_DEBUG'. */
  3526. U8 GH_EPHY_get_DEBUG_state_sync_on(void);
  3527. /*! \brief Writes the bit group 'state_st_lk' of register 'EPHY_DEBUG'. */
  3528. void GH_EPHY_set_DEBUG_state_st_lk(U8 data);
  3529. /*! \brief Reads the bit group 'state_st_lk' of register 'EPHY_DEBUG'. */
  3530. U8 GH_EPHY_get_DEBUG_state_st_lk(void);
  3531. /*! \brief Writes the bit group 'mux_recov_cnt' of register 'EPHY_DEBUG'. */
  3532. void GH_EPHY_set_DEBUG_mux_recov_cnt(U8 data);
  3533. /*! \brief Reads the bit group 'mux_recov_cnt' of register 'EPHY_DEBUG'. */
  3534. U8 GH_EPHY_get_DEBUG_mux_recov_cnt(void);
  3535. /*! \brief Writes the bit group 'test_mux_sel' of register 'EPHY_DEBUG'. */
  3536. void GH_EPHY_set_DEBUG_test_mux_sel(U8 data);
  3537. /*! \brief Reads the bit group 'test_mux_sel' of register 'EPHY_DEBUG'. */
  3538. U8 GH_EPHY_get_DEBUG_test_mux_sel(void);
  3539. #else /* GH_INLINE_LEVEL == 0 */
  3540. GH_INLINE void GH_EPHY_set_DEBUG(U16 data)
  3541. {
  3542. *(volatile U16 *)REG_EPHY_DEBUG = data;
  3543. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3544. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_DEBUG] <-- 0x%08x\n",
  3545. REG_EPHY_DEBUG,data,data);
  3546. #endif
  3547. }
  3548. GH_INLINE U16 GH_EPHY_get_DEBUG(void)
  3549. {
  3550. U16 value = (*(volatile U16 *)REG_EPHY_DEBUG);
  3551. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3552. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_DEBUG] --> 0x%08x\n",
  3553. REG_EPHY_DEBUG,value);
  3554. #endif
  3555. return value;
  3556. }
  3557. GH_INLINE void GH_EPHY_set_DEBUG_snr_locked(U8 data)
  3558. {
  3559. GH_EPHY_DEBUG_S d;
  3560. d.all = *(volatile U16 *)REG_EPHY_DEBUG;
  3561. d.bitc.snr_locked = data;
  3562. *(volatile U16 *)REG_EPHY_DEBUG = d.all;
  3563. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3564. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_DEBUG_snr_locked] <-- 0x%08x\n",
  3565. REG_EPHY_DEBUG,d.all,d.all);
  3566. #endif
  3567. }
  3568. GH_INLINE U8 GH_EPHY_get_DEBUG_snr_locked(void)
  3569. {
  3570. GH_EPHY_DEBUG_S tmp_value;
  3571. U16 value = (*(volatile U16 *)REG_EPHY_DEBUG);
  3572. tmp_value.all = value;
  3573. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3574. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_DEBUG_snr_locked] --> 0x%08x\n",
  3575. REG_EPHY_DEBUG,value);
  3576. #endif
  3577. return tmp_value.bitc.snr_locked;
  3578. }
  3579. GH_INLINE void GH_EPHY_set_DEBUG_snr_locked_raw(U8 data)
  3580. {
  3581. GH_EPHY_DEBUG_S d;
  3582. d.all = *(volatile U16 *)REG_EPHY_DEBUG;
  3583. d.bitc.snr_locked_raw = data;
  3584. *(volatile U16 *)REG_EPHY_DEBUG = d.all;
  3585. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3586. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_DEBUG_snr_locked_raw] <-- 0x%08x\n",
  3587. REG_EPHY_DEBUG,d.all,d.all);
  3588. #endif
  3589. }
  3590. GH_INLINE U8 GH_EPHY_get_DEBUG_snr_locked_raw(void)
  3591. {
  3592. GH_EPHY_DEBUG_S tmp_value;
  3593. U16 value = (*(volatile U16 *)REG_EPHY_DEBUG);
  3594. tmp_value.all = value;
  3595. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3596. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_DEBUG_snr_locked_raw] --> 0x%08x\n",
  3597. REG_EPHY_DEBUG,value);
  3598. #endif
  3599. return tmp_value.bitc.snr_locked_raw;
  3600. }
  3601. GH_INLINE void GH_EPHY_set_DEBUG_sig_det_flag(U8 data)
  3602. {
  3603. GH_EPHY_DEBUG_S d;
  3604. d.all = *(volatile U16 *)REG_EPHY_DEBUG;
  3605. d.bitc.sig_det_flag = data;
  3606. *(volatile U16 *)REG_EPHY_DEBUG = d.all;
  3607. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3608. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_DEBUG_sig_det_flag] <-- 0x%08x\n",
  3609. REG_EPHY_DEBUG,d.all,d.all);
  3610. #endif
  3611. }
  3612. GH_INLINE U8 GH_EPHY_get_DEBUG_sig_det_flag(void)
  3613. {
  3614. GH_EPHY_DEBUG_S tmp_value;
  3615. U16 value = (*(volatile U16 *)REG_EPHY_DEBUG);
  3616. tmp_value.all = value;
  3617. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3618. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_DEBUG_sig_det_flag] --> 0x%08x\n",
  3619. REG_EPHY_DEBUG,value);
  3620. #endif
  3621. return tmp_value.bitc.sig_det_flag;
  3622. }
  3623. GH_INLINE void GH_EPHY_set_DEBUG_state_sync_on(U8 data)
  3624. {
  3625. GH_EPHY_DEBUG_S d;
  3626. d.all = *(volatile U16 *)REG_EPHY_DEBUG;
  3627. d.bitc.state_sync_on = data;
  3628. *(volatile U16 *)REG_EPHY_DEBUG = d.all;
  3629. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3630. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_DEBUG_state_sync_on] <-- 0x%08x\n",
  3631. REG_EPHY_DEBUG,d.all,d.all);
  3632. #endif
  3633. }
  3634. GH_INLINE U8 GH_EPHY_get_DEBUG_state_sync_on(void)
  3635. {
  3636. GH_EPHY_DEBUG_S tmp_value;
  3637. U16 value = (*(volatile U16 *)REG_EPHY_DEBUG);
  3638. tmp_value.all = value;
  3639. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3640. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_DEBUG_state_sync_on] --> 0x%08x\n",
  3641. REG_EPHY_DEBUG,value);
  3642. #endif
  3643. return tmp_value.bitc.state_sync_on;
  3644. }
  3645. GH_INLINE void GH_EPHY_set_DEBUG_state_st_lk(U8 data)
  3646. {
  3647. GH_EPHY_DEBUG_S d;
  3648. d.all = *(volatile U16 *)REG_EPHY_DEBUG;
  3649. d.bitc.state_st_lk = data;
  3650. *(volatile U16 *)REG_EPHY_DEBUG = d.all;
  3651. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3652. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_DEBUG_state_st_lk] <-- 0x%08x\n",
  3653. REG_EPHY_DEBUG,d.all,d.all);
  3654. #endif
  3655. }
  3656. GH_INLINE U8 GH_EPHY_get_DEBUG_state_st_lk(void)
  3657. {
  3658. GH_EPHY_DEBUG_S tmp_value;
  3659. U16 value = (*(volatile U16 *)REG_EPHY_DEBUG);
  3660. tmp_value.all = value;
  3661. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3662. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_DEBUG_state_st_lk] --> 0x%08x\n",
  3663. REG_EPHY_DEBUG,value);
  3664. #endif
  3665. return tmp_value.bitc.state_st_lk;
  3666. }
  3667. GH_INLINE void GH_EPHY_set_DEBUG_mux_recov_cnt(U8 data)
  3668. {
  3669. GH_EPHY_DEBUG_S d;
  3670. d.all = *(volatile U16 *)REG_EPHY_DEBUG;
  3671. d.bitc.mux_recov_cnt = data;
  3672. *(volatile U16 *)REG_EPHY_DEBUG = d.all;
  3673. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3674. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_DEBUG_mux_recov_cnt] <-- 0x%08x\n",
  3675. REG_EPHY_DEBUG,d.all,d.all);
  3676. #endif
  3677. }
  3678. GH_INLINE U8 GH_EPHY_get_DEBUG_mux_recov_cnt(void)
  3679. {
  3680. GH_EPHY_DEBUG_S tmp_value;
  3681. U16 value = (*(volatile U16 *)REG_EPHY_DEBUG);
  3682. tmp_value.all = value;
  3683. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3684. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_DEBUG_mux_recov_cnt] --> 0x%08x\n",
  3685. REG_EPHY_DEBUG,value);
  3686. #endif
  3687. return tmp_value.bitc.mux_recov_cnt;
  3688. }
  3689. GH_INLINE void GH_EPHY_set_DEBUG_test_mux_sel(U8 data)
  3690. {
  3691. GH_EPHY_DEBUG_S d;
  3692. d.all = *(volatile U16 *)REG_EPHY_DEBUG;
  3693. d.bitc.test_mux_sel = data;
  3694. *(volatile U16 *)REG_EPHY_DEBUG = d.all;
  3695. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3696. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_DEBUG_test_mux_sel] <-- 0x%08x\n",
  3697. REG_EPHY_DEBUG,d.all,d.all);
  3698. #endif
  3699. }
  3700. GH_INLINE U8 GH_EPHY_get_DEBUG_test_mux_sel(void)
  3701. {
  3702. GH_EPHY_DEBUG_S tmp_value;
  3703. U16 value = (*(volatile U16 *)REG_EPHY_DEBUG);
  3704. tmp_value.all = value;
  3705. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3706. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_DEBUG_test_mux_sel] --> 0x%08x\n",
  3707. REG_EPHY_DEBUG,value);
  3708. #endif
  3709. return tmp_value.bitc.test_mux_sel;
  3710. }
  3711. #endif /* GH_INLINE_LEVEL == 0 */
  3712. /*----------------------------------------------------------------------------*/
  3713. /* register EPHY_DEBUG_MODE (read/write) */
  3714. /*----------------------------------------------------------------------------*/
  3715. #if GH_INLINE_LEVEL == 0
  3716. /*! \brief Writes the register 'EPHY_DEBUG_MODE'. */
  3717. void GH_EPHY_set_DEBUG_MODE(U16 data);
  3718. /*! \brief Reads the register 'EPHY_DEBUG_MODE'. */
  3719. U16 GH_EPHY_get_DEBUG_MODE(void);
  3720. /*! \brief Writes the bit group 'signal' of register 'EPHY_DEBUG_MODE'. */
  3721. void GH_EPHY_set_DEBUG_MODE_signal(U8 data);
  3722. /*! \brief Reads the bit group 'signal' of register 'EPHY_DEBUG_MODE'. */
  3723. U8 GH_EPHY_get_DEBUG_MODE_signal(void);
  3724. /*! \brief Writes the bit group 'module' of register 'EPHY_DEBUG_MODE'. */
  3725. void GH_EPHY_set_DEBUG_MODE_module(U8 data);
  3726. /*! \brief Reads the bit group 'module' of register 'EPHY_DEBUG_MODE'. */
  3727. U8 GH_EPHY_get_DEBUG_MODE_module(void);
  3728. #else /* GH_INLINE_LEVEL == 0 */
  3729. GH_INLINE void GH_EPHY_set_DEBUG_MODE(U16 data)
  3730. {
  3731. *(volatile U16 *)REG_EPHY_DEBUG_MODE = data;
  3732. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3733. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_DEBUG_MODE] <-- 0x%08x\n",
  3734. REG_EPHY_DEBUG_MODE,data,data);
  3735. #endif
  3736. }
  3737. GH_INLINE U16 GH_EPHY_get_DEBUG_MODE(void)
  3738. {
  3739. U16 value = (*(volatile U16 *)REG_EPHY_DEBUG_MODE);
  3740. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3741. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_DEBUG_MODE] --> 0x%08x\n",
  3742. REG_EPHY_DEBUG_MODE,value);
  3743. #endif
  3744. return value;
  3745. }
  3746. GH_INLINE void GH_EPHY_set_DEBUG_MODE_signal(U8 data)
  3747. {
  3748. GH_EPHY_DEBUG_MODE_S d;
  3749. d.all = *(volatile U16 *)REG_EPHY_DEBUG_MODE;
  3750. d.bitc.signal = data;
  3751. *(volatile U16 *)REG_EPHY_DEBUG_MODE = d.all;
  3752. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3753. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_DEBUG_MODE_signal] <-- 0x%08x\n",
  3754. REG_EPHY_DEBUG_MODE,d.all,d.all);
  3755. #endif
  3756. }
  3757. GH_INLINE U8 GH_EPHY_get_DEBUG_MODE_signal(void)
  3758. {
  3759. GH_EPHY_DEBUG_MODE_S tmp_value;
  3760. U16 value = (*(volatile U16 *)REG_EPHY_DEBUG_MODE);
  3761. tmp_value.all = value;
  3762. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3763. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_DEBUG_MODE_signal] --> 0x%08x\n",
  3764. REG_EPHY_DEBUG_MODE,value);
  3765. #endif
  3766. return tmp_value.bitc.signal;
  3767. }
  3768. GH_INLINE void GH_EPHY_set_DEBUG_MODE_module(U8 data)
  3769. {
  3770. GH_EPHY_DEBUG_MODE_S d;
  3771. d.all = *(volatile U16 *)REG_EPHY_DEBUG_MODE;
  3772. d.bitc.module = data;
  3773. *(volatile U16 *)REG_EPHY_DEBUG_MODE = d.all;
  3774. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3775. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_DEBUG_MODE_module] <-- 0x%08x\n",
  3776. REG_EPHY_DEBUG_MODE,d.all,d.all);
  3777. #endif
  3778. }
  3779. GH_INLINE U8 GH_EPHY_get_DEBUG_MODE_module(void)
  3780. {
  3781. GH_EPHY_DEBUG_MODE_S tmp_value;
  3782. U16 value = (*(volatile U16 *)REG_EPHY_DEBUG_MODE);
  3783. tmp_value.all = value;
  3784. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3785. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_DEBUG_MODE_module] --> 0x%08x\n",
  3786. REG_EPHY_DEBUG_MODE,value);
  3787. #endif
  3788. return tmp_value.bitc.module;
  3789. }
  3790. #endif /* GH_INLINE_LEVEL == 0 */
  3791. /*----------------------------------------------------------------------------*/
  3792. /* register EPHY_RST_EN (read/write) */
  3793. /*----------------------------------------------------------------------------*/
  3794. #if GH_INLINE_LEVEL == 0
  3795. /*! \brief Writes the register 'EPHY_RST_EN'. */
  3796. void GH_EPHY_set_RST_EN(U16 data);
  3797. /*! \brief Reads the register 'EPHY_RST_EN'. */
  3798. U16 GH_EPHY_get_RST_EN(void);
  3799. /*! \brief Writes the bit group 'mau_srst' of register 'EPHY_RST_EN'. */
  3800. void GH_EPHY_set_RST_EN_mau_srst(U8 data);
  3801. /*! \brief Reads the bit group 'mau_srst' of register 'EPHY_RST_EN'. */
  3802. U8 GH_EPHY_get_RST_EN_mau_srst(void);
  3803. /*! \brief Writes the bit group 'pls_srst' of register 'EPHY_RST_EN'. */
  3804. void GH_EPHY_set_RST_EN_pls_srst(U8 data);
  3805. /*! \brief Reads the bit group 'pls_srst' of register 'EPHY_RST_EN'. */
  3806. U8 GH_EPHY_get_RST_EN_pls_srst(void);
  3807. /*! \brief Writes the bit group 'sqe_test_enable' of register 'EPHY_RST_EN'. */
  3808. void GH_EPHY_set_RST_EN_sqe_test_enable(U8 data);
  3809. /*! \brief Reads the bit group 'sqe_test_enable' of register 'EPHY_RST_EN'. */
  3810. U8 GH_EPHY_get_RST_EN_sqe_test_enable(void);
  3811. /*! \brief Writes the bit group 'lpbk_enable' of register 'EPHY_RST_EN'. */
  3812. void GH_EPHY_set_RST_EN_lpbk_enable(U8 data);
  3813. /*! \brief Reads the bit group 'lpbk_enable' of register 'EPHY_RST_EN'. */
  3814. U8 GH_EPHY_get_RST_EN_lpbk_enable(void);
  3815. /*! \brief Writes the bit group 'jabber_enable' of register 'EPHY_RST_EN'. */
  3816. void GH_EPHY_set_RST_EN_jabber_enable(U8 data);
  3817. /*! \brief Reads the bit group 'jabber_enable' of register 'EPHY_RST_EN'. */
  3818. U8 GH_EPHY_get_RST_EN_jabber_enable(void);
  3819. /*! \brief Writes the bit group 'ser_polarity_correction' of register 'EPHY_RST_EN'. */
  3820. void GH_EPHY_set_RST_EN_ser_polarity_correction(U8 data);
  3821. /*! \brief Reads the bit group 'ser_polarity_correction' of register 'EPHY_RST_EN'. */
  3822. U8 GH_EPHY_get_RST_EN_ser_polarity_correction(void);
  3823. /*! \brief Writes the bit group 'por_stick_mode' of register 'EPHY_RST_EN'. */
  3824. void GH_EPHY_set_RST_EN_por_stick_mode(U8 data);
  3825. /*! \brief Reads the bit group 'por_stick_mode' of register 'EPHY_RST_EN'. */
  3826. U8 GH_EPHY_get_RST_EN_por_stick_mode(void);
  3827. /*! \brief Writes the bit group 'recv_bit_bucket' of register 'EPHY_RST_EN'. */
  3828. void GH_EPHY_set_RST_EN_recv_bit_bucket(U8 data);
  3829. /*! \brief Reads the bit group 'recv_bit_bucket' of register 'EPHY_RST_EN'. */
  3830. U8 GH_EPHY_get_RST_EN_recv_bit_bucket(void);
  3831. /*! \brief Writes the bit group 'rxclk_pol' of register 'EPHY_RST_EN'. */
  3832. void GH_EPHY_set_RST_EN_rxclk_pol(U8 data);
  3833. /*! \brief Reads the bit group 'rxclk_pol' of register 'EPHY_RST_EN'. */
  3834. U8 GH_EPHY_get_RST_EN_rxclk_pol(void);
  3835. /*! \brief Writes the bit group 'txclk_pol' of register 'EPHY_RST_EN'. */
  3836. void GH_EPHY_set_RST_EN_txclk_pol(U8 data);
  3837. /*! \brief Reads the bit group 'txclk_pol' of register 'EPHY_RST_EN'. */
  3838. U8 GH_EPHY_get_RST_EN_txclk_pol(void);
  3839. /*! \brief Writes the bit group 'adc_input_sign' of register 'EPHY_RST_EN'. */
  3840. void GH_EPHY_set_RST_EN_adc_input_sign(U8 data);
  3841. /*! \brief Reads the bit group 'adc_input_sign' of register 'EPHY_RST_EN'. */
  3842. U8 GH_EPHY_get_RST_EN_adc_input_sign(void);
  3843. /*! \brief Writes the bit group 'mii_test_packet' of register 'EPHY_RST_EN'. */
  3844. void GH_EPHY_set_RST_EN_mii_test_packet(U8 data);
  3845. /*! \brief Reads the bit group 'mii_test_packet' of register 'EPHY_RST_EN'. */
  3846. U8 GH_EPHY_get_RST_EN_mii_test_packet(void);
  3847. /*! \brief Writes the bit group 'clear_rcvpack' of register 'EPHY_RST_EN'. */
  3848. void GH_EPHY_set_RST_EN_clear_rcvpack(U8 data);
  3849. /*! \brief Reads the bit group 'clear_rcvpack' of register 'EPHY_RST_EN'. */
  3850. U8 GH_EPHY_get_RST_EN_clear_rcvpack(void);
  3851. /*! \brief Writes the bit group 'miiloop_en_10m' of register 'EPHY_RST_EN'. */
  3852. void GH_EPHY_set_RST_EN_miiloop_en_10m(U8 data);
  3853. /*! \brief Reads the bit group 'miiloop_en_10m' of register 'EPHY_RST_EN'. */
  3854. U8 GH_EPHY_get_RST_EN_miiloop_en_10m(void);
  3855. /*! \brief Writes the bit group 'mii_rxclk_pol' of register 'EPHY_RST_EN'. */
  3856. void GH_EPHY_set_RST_EN_mii_rxclk_pol(U8 data);
  3857. /*! \brief Reads the bit group 'mii_rxclk_pol' of register 'EPHY_RST_EN'. */
  3858. U8 GH_EPHY_get_RST_EN_mii_rxclk_pol(void);
  3859. /*! \brief Writes the bit group 'mii_txclk_pol' of register 'EPHY_RST_EN'. */
  3860. void GH_EPHY_set_RST_EN_mii_txclk_pol(U8 data);
  3861. /*! \brief Reads the bit group 'mii_txclk_pol' of register 'EPHY_RST_EN'. */
  3862. U8 GH_EPHY_get_RST_EN_mii_txclk_pol(void);
  3863. #else /* GH_INLINE_LEVEL == 0 */
  3864. GH_INLINE void GH_EPHY_set_RST_EN(U16 data)
  3865. {
  3866. *(volatile U16 *)REG_EPHY_RST_EN = data;
  3867. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3868. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_RST_EN] <-- 0x%08x\n",
  3869. REG_EPHY_RST_EN,data,data);
  3870. #endif
  3871. }
  3872. GH_INLINE U16 GH_EPHY_get_RST_EN(void)
  3873. {
  3874. U16 value = (*(volatile U16 *)REG_EPHY_RST_EN);
  3875. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3876. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_RST_EN] --> 0x%08x\n",
  3877. REG_EPHY_RST_EN,value);
  3878. #endif
  3879. return value;
  3880. }
  3881. GH_INLINE void GH_EPHY_set_RST_EN_mau_srst(U8 data)
  3882. {
  3883. GH_EPHY_RST_EN_S d;
  3884. d.all = *(volatile U16 *)REG_EPHY_RST_EN;
  3885. d.bitc.mau_srst = data;
  3886. *(volatile U16 *)REG_EPHY_RST_EN = d.all;
  3887. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3888. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_RST_EN_mau_srst] <-- 0x%08x\n",
  3889. REG_EPHY_RST_EN,d.all,d.all);
  3890. #endif
  3891. }
  3892. GH_INLINE U8 GH_EPHY_get_RST_EN_mau_srst(void)
  3893. {
  3894. GH_EPHY_RST_EN_S tmp_value;
  3895. U16 value = (*(volatile U16 *)REG_EPHY_RST_EN);
  3896. tmp_value.all = value;
  3897. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3898. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_RST_EN_mau_srst] --> 0x%08x\n",
  3899. REG_EPHY_RST_EN,value);
  3900. #endif
  3901. return tmp_value.bitc.mau_srst;
  3902. }
  3903. GH_INLINE void GH_EPHY_set_RST_EN_pls_srst(U8 data)
  3904. {
  3905. GH_EPHY_RST_EN_S d;
  3906. d.all = *(volatile U16 *)REG_EPHY_RST_EN;
  3907. d.bitc.pls_srst = data;
  3908. *(volatile U16 *)REG_EPHY_RST_EN = d.all;
  3909. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3910. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_RST_EN_pls_srst] <-- 0x%08x\n",
  3911. REG_EPHY_RST_EN,d.all,d.all);
  3912. #endif
  3913. }
  3914. GH_INLINE U8 GH_EPHY_get_RST_EN_pls_srst(void)
  3915. {
  3916. GH_EPHY_RST_EN_S tmp_value;
  3917. U16 value = (*(volatile U16 *)REG_EPHY_RST_EN);
  3918. tmp_value.all = value;
  3919. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3920. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_RST_EN_pls_srst] --> 0x%08x\n",
  3921. REG_EPHY_RST_EN,value);
  3922. #endif
  3923. return tmp_value.bitc.pls_srst;
  3924. }
  3925. GH_INLINE void GH_EPHY_set_RST_EN_sqe_test_enable(U8 data)
  3926. {
  3927. GH_EPHY_RST_EN_S d;
  3928. d.all = *(volatile U16 *)REG_EPHY_RST_EN;
  3929. d.bitc.sqe_test_enable = data;
  3930. *(volatile U16 *)REG_EPHY_RST_EN = d.all;
  3931. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3932. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_RST_EN_sqe_test_enable] <-- 0x%08x\n",
  3933. REG_EPHY_RST_EN,d.all,d.all);
  3934. #endif
  3935. }
  3936. GH_INLINE U8 GH_EPHY_get_RST_EN_sqe_test_enable(void)
  3937. {
  3938. GH_EPHY_RST_EN_S tmp_value;
  3939. U16 value = (*(volatile U16 *)REG_EPHY_RST_EN);
  3940. tmp_value.all = value;
  3941. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3942. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_RST_EN_sqe_test_enable] --> 0x%08x\n",
  3943. REG_EPHY_RST_EN,value);
  3944. #endif
  3945. return tmp_value.bitc.sqe_test_enable;
  3946. }
  3947. GH_INLINE void GH_EPHY_set_RST_EN_lpbk_enable(U8 data)
  3948. {
  3949. GH_EPHY_RST_EN_S d;
  3950. d.all = *(volatile U16 *)REG_EPHY_RST_EN;
  3951. d.bitc.lpbk_enable = data;
  3952. *(volatile U16 *)REG_EPHY_RST_EN = d.all;
  3953. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3954. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_RST_EN_lpbk_enable] <-- 0x%08x\n",
  3955. REG_EPHY_RST_EN,d.all,d.all);
  3956. #endif
  3957. }
  3958. GH_INLINE U8 GH_EPHY_get_RST_EN_lpbk_enable(void)
  3959. {
  3960. GH_EPHY_RST_EN_S tmp_value;
  3961. U16 value = (*(volatile U16 *)REG_EPHY_RST_EN);
  3962. tmp_value.all = value;
  3963. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3964. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_RST_EN_lpbk_enable] --> 0x%08x\n",
  3965. REG_EPHY_RST_EN,value);
  3966. #endif
  3967. return tmp_value.bitc.lpbk_enable;
  3968. }
  3969. GH_INLINE void GH_EPHY_set_RST_EN_jabber_enable(U8 data)
  3970. {
  3971. GH_EPHY_RST_EN_S d;
  3972. d.all = *(volatile U16 *)REG_EPHY_RST_EN;
  3973. d.bitc.jabber_enable = data;
  3974. *(volatile U16 *)REG_EPHY_RST_EN = d.all;
  3975. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3976. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_RST_EN_jabber_enable] <-- 0x%08x\n",
  3977. REG_EPHY_RST_EN,d.all,d.all);
  3978. #endif
  3979. }
  3980. GH_INLINE U8 GH_EPHY_get_RST_EN_jabber_enable(void)
  3981. {
  3982. GH_EPHY_RST_EN_S tmp_value;
  3983. U16 value = (*(volatile U16 *)REG_EPHY_RST_EN);
  3984. tmp_value.all = value;
  3985. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3986. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_RST_EN_jabber_enable] --> 0x%08x\n",
  3987. REG_EPHY_RST_EN,value);
  3988. #endif
  3989. return tmp_value.bitc.jabber_enable;
  3990. }
  3991. GH_INLINE void GH_EPHY_set_RST_EN_ser_polarity_correction(U8 data)
  3992. {
  3993. GH_EPHY_RST_EN_S d;
  3994. d.all = *(volatile U16 *)REG_EPHY_RST_EN;
  3995. d.bitc.ser_polarity_correction = data;
  3996. *(volatile U16 *)REG_EPHY_RST_EN = d.all;
  3997. #if GH_EPHY_ENABLE_DEBUG_PRINT
  3998. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_RST_EN_ser_polarity_correction] <-- 0x%08x\n",
  3999. REG_EPHY_RST_EN,d.all,d.all);
  4000. #endif
  4001. }
  4002. GH_INLINE U8 GH_EPHY_get_RST_EN_ser_polarity_correction(void)
  4003. {
  4004. GH_EPHY_RST_EN_S tmp_value;
  4005. U16 value = (*(volatile U16 *)REG_EPHY_RST_EN);
  4006. tmp_value.all = value;
  4007. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4008. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_RST_EN_ser_polarity_correction] --> 0x%08x\n",
  4009. REG_EPHY_RST_EN,value);
  4010. #endif
  4011. return tmp_value.bitc.ser_polarity_correction;
  4012. }
  4013. GH_INLINE void GH_EPHY_set_RST_EN_por_stick_mode(U8 data)
  4014. {
  4015. GH_EPHY_RST_EN_S d;
  4016. d.all = *(volatile U16 *)REG_EPHY_RST_EN;
  4017. d.bitc.por_stick_mode = data;
  4018. *(volatile U16 *)REG_EPHY_RST_EN = d.all;
  4019. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4020. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_RST_EN_por_stick_mode] <-- 0x%08x\n",
  4021. REG_EPHY_RST_EN,d.all,d.all);
  4022. #endif
  4023. }
  4024. GH_INLINE U8 GH_EPHY_get_RST_EN_por_stick_mode(void)
  4025. {
  4026. GH_EPHY_RST_EN_S tmp_value;
  4027. U16 value = (*(volatile U16 *)REG_EPHY_RST_EN);
  4028. tmp_value.all = value;
  4029. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4030. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_RST_EN_por_stick_mode] --> 0x%08x\n",
  4031. REG_EPHY_RST_EN,value);
  4032. #endif
  4033. return tmp_value.bitc.por_stick_mode;
  4034. }
  4035. GH_INLINE void GH_EPHY_set_RST_EN_recv_bit_bucket(U8 data)
  4036. {
  4037. GH_EPHY_RST_EN_S d;
  4038. d.all = *(volatile U16 *)REG_EPHY_RST_EN;
  4039. d.bitc.recv_bit_bucket = data;
  4040. *(volatile U16 *)REG_EPHY_RST_EN = d.all;
  4041. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4042. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_RST_EN_recv_bit_bucket] <-- 0x%08x\n",
  4043. REG_EPHY_RST_EN,d.all,d.all);
  4044. #endif
  4045. }
  4046. GH_INLINE U8 GH_EPHY_get_RST_EN_recv_bit_bucket(void)
  4047. {
  4048. GH_EPHY_RST_EN_S tmp_value;
  4049. U16 value = (*(volatile U16 *)REG_EPHY_RST_EN);
  4050. tmp_value.all = value;
  4051. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4052. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_RST_EN_recv_bit_bucket] --> 0x%08x\n",
  4053. REG_EPHY_RST_EN,value);
  4054. #endif
  4055. return tmp_value.bitc.recv_bit_bucket;
  4056. }
  4057. GH_INLINE void GH_EPHY_set_RST_EN_rxclk_pol(U8 data)
  4058. {
  4059. GH_EPHY_RST_EN_S d;
  4060. d.all = *(volatile U16 *)REG_EPHY_RST_EN;
  4061. d.bitc.rxclk_pol = data;
  4062. *(volatile U16 *)REG_EPHY_RST_EN = d.all;
  4063. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4064. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_RST_EN_rxclk_pol] <-- 0x%08x\n",
  4065. REG_EPHY_RST_EN,d.all,d.all);
  4066. #endif
  4067. }
  4068. GH_INLINE U8 GH_EPHY_get_RST_EN_rxclk_pol(void)
  4069. {
  4070. GH_EPHY_RST_EN_S tmp_value;
  4071. U16 value = (*(volatile U16 *)REG_EPHY_RST_EN);
  4072. tmp_value.all = value;
  4073. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4074. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_RST_EN_rxclk_pol] --> 0x%08x\n",
  4075. REG_EPHY_RST_EN,value);
  4076. #endif
  4077. return tmp_value.bitc.rxclk_pol;
  4078. }
  4079. GH_INLINE void GH_EPHY_set_RST_EN_txclk_pol(U8 data)
  4080. {
  4081. GH_EPHY_RST_EN_S d;
  4082. d.all = *(volatile U16 *)REG_EPHY_RST_EN;
  4083. d.bitc.txclk_pol = data;
  4084. *(volatile U16 *)REG_EPHY_RST_EN = d.all;
  4085. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4086. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_RST_EN_txclk_pol] <-- 0x%08x\n",
  4087. REG_EPHY_RST_EN,d.all,d.all);
  4088. #endif
  4089. }
  4090. GH_INLINE U8 GH_EPHY_get_RST_EN_txclk_pol(void)
  4091. {
  4092. GH_EPHY_RST_EN_S tmp_value;
  4093. U16 value = (*(volatile U16 *)REG_EPHY_RST_EN);
  4094. tmp_value.all = value;
  4095. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4096. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_RST_EN_txclk_pol] --> 0x%08x\n",
  4097. REG_EPHY_RST_EN,value);
  4098. #endif
  4099. return tmp_value.bitc.txclk_pol;
  4100. }
  4101. GH_INLINE void GH_EPHY_set_RST_EN_adc_input_sign(U8 data)
  4102. {
  4103. GH_EPHY_RST_EN_S d;
  4104. d.all = *(volatile U16 *)REG_EPHY_RST_EN;
  4105. d.bitc.adc_input_sign = data;
  4106. *(volatile U16 *)REG_EPHY_RST_EN = d.all;
  4107. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4108. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_RST_EN_adc_input_sign] <-- 0x%08x\n",
  4109. REG_EPHY_RST_EN,d.all,d.all);
  4110. #endif
  4111. }
  4112. GH_INLINE U8 GH_EPHY_get_RST_EN_adc_input_sign(void)
  4113. {
  4114. GH_EPHY_RST_EN_S tmp_value;
  4115. U16 value = (*(volatile U16 *)REG_EPHY_RST_EN);
  4116. tmp_value.all = value;
  4117. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4118. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_RST_EN_adc_input_sign] --> 0x%08x\n",
  4119. REG_EPHY_RST_EN,value);
  4120. #endif
  4121. return tmp_value.bitc.adc_input_sign;
  4122. }
  4123. GH_INLINE void GH_EPHY_set_RST_EN_mii_test_packet(U8 data)
  4124. {
  4125. GH_EPHY_RST_EN_S d;
  4126. d.all = *(volatile U16 *)REG_EPHY_RST_EN;
  4127. d.bitc.mii_test_packet = data;
  4128. *(volatile U16 *)REG_EPHY_RST_EN = d.all;
  4129. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4130. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_RST_EN_mii_test_packet] <-- 0x%08x\n",
  4131. REG_EPHY_RST_EN,d.all,d.all);
  4132. #endif
  4133. }
  4134. GH_INLINE U8 GH_EPHY_get_RST_EN_mii_test_packet(void)
  4135. {
  4136. GH_EPHY_RST_EN_S tmp_value;
  4137. U16 value = (*(volatile U16 *)REG_EPHY_RST_EN);
  4138. tmp_value.all = value;
  4139. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4140. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_RST_EN_mii_test_packet] --> 0x%08x\n",
  4141. REG_EPHY_RST_EN,value);
  4142. #endif
  4143. return tmp_value.bitc.mii_test_packet;
  4144. }
  4145. GH_INLINE void GH_EPHY_set_RST_EN_clear_rcvpack(U8 data)
  4146. {
  4147. GH_EPHY_RST_EN_S d;
  4148. d.all = *(volatile U16 *)REG_EPHY_RST_EN;
  4149. d.bitc.clear_rcvpack = data;
  4150. *(volatile U16 *)REG_EPHY_RST_EN = d.all;
  4151. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4152. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_RST_EN_clear_rcvpack] <-- 0x%08x\n",
  4153. REG_EPHY_RST_EN,d.all,d.all);
  4154. #endif
  4155. }
  4156. GH_INLINE U8 GH_EPHY_get_RST_EN_clear_rcvpack(void)
  4157. {
  4158. GH_EPHY_RST_EN_S tmp_value;
  4159. U16 value = (*(volatile U16 *)REG_EPHY_RST_EN);
  4160. tmp_value.all = value;
  4161. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4162. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_RST_EN_clear_rcvpack] --> 0x%08x\n",
  4163. REG_EPHY_RST_EN,value);
  4164. #endif
  4165. return tmp_value.bitc.clear_rcvpack;
  4166. }
  4167. GH_INLINE void GH_EPHY_set_RST_EN_miiloop_en_10m(U8 data)
  4168. {
  4169. GH_EPHY_RST_EN_S d;
  4170. d.all = *(volatile U16 *)REG_EPHY_RST_EN;
  4171. d.bitc.miiloop_en_10m = data;
  4172. *(volatile U16 *)REG_EPHY_RST_EN = d.all;
  4173. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4174. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_RST_EN_miiloop_en_10m] <-- 0x%08x\n",
  4175. REG_EPHY_RST_EN,d.all,d.all);
  4176. #endif
  4177. }
  4178. GH_INLINE U8 GH_EPHY_get_RST_EN_miiloop_en_10m(void)
  4179. {
  4180. GH_EPHY_RST_EN_S tmp_value;
  4181. U16 value = (*(volatile U16 *)REG_EPHY_RST_EN);
  4182. tmp_value.all = value;
  4183. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4184. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_RST_EN_miiloop_en_10m] --> 0x%08x\n",
  4185. REG_EPHY_RST_EN,value);
  4186. #endif
  4187. return tmp_value.bitc.miiloop_en_10m;
  4188. }
  4189. GH_INLINE void GH_EPHY_set_RST_EN_mii_rxclk_pol(U8 data)
  4190. {
  4191. GH_EPHY_RST_EN_S d;
  4192. d.all = *(volatile U16 *)REG_EPHY_RST_EN;
  4193. d.bitc.mii_rxclk_pol = data;
  4194. *(volatile U16 *)REG_EPHY_RST_EN = d.all;
  4195. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4196. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_RST_EN_mii_rxclk_pol] <-- 0x%08x\n",
  4197. REG_EPHY_RST_EN,d.all,d.all);
  4198. #endif
  4199. }
  4200. GH_INLINE U8 GH_EPHY_get_RST_EN_mii_rxclk_pol(void)
  4201. {
  4202. GH_EPHY_RST_EN_S tmp_value;
  4203. U16 value = (*(volatile U16 *)REG_EPHY_RST_EN);
  4204. tmp_value.all = value;
  4205. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4206. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_RST_EN_mii_rxclk_pol] --> 0x%08x\n",
  4207. REG_EPHY_RST_EN,value);
  4208. #endif
  4209. return tmp_value.bitc.mii_rxclk_pol;
  4210. }
  4211. GH_INLINE void GH_EPHY_set_RST_EN_mii_txclk_pol(U8 data)
  4212. {
  4213. GH_EPHY_RST_EN_S d;
  4214. d.all = *(volatile U16 *)REG_EPHY_RST_EN;
  4215. d.bitc.mii_txclk_pol = data;
  4216. *(volatile U16 *)REG_EPHY_RST_EN = d.all;
  4217. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4218. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_RST_EN_mii_txclk_pol] <-- 0x%08x\n",
  4219. REG_EPHY_RST_EN,d.all,d.all);
  4220. #endif
  4221. }
  4222. GH_INLINE U8 GH_EPHY_get_RST_EN_mii_txclk_pol(void)
  4223. {
  4224. GH_EPHY_RST_EN_S tmp_value;
  4225. U16 value = (*(volatile U16 *)REG_EPHY_RST_EN);
  4226. tmp_value.all = value;
  4227. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4228. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_RST_EN_mii_txclk_pol] --> 0x%08x\n",
  4229. REG_EPHY_RST_EN,value);
  4230. #endif
  4231. return tmp_value.bitc.mii_txclk_pol;
  4232. }
  4233. #endif /* GH_INLINE_LEVEL == 0 */
  4234. /*----------------------------------------------------------------------------*/
  4235. /* register EPHY_SNR_K (read/write) */
  4236. /*----------------------------------------------------------------------------*/
  4237. #if GH_INLINE_LEVEL == 0
  4238. /*! \brief Writes the register 'EPHY_SNR_K'. */
  4239. void GH_EPHY_set_SNR_K(U16 data);
  4240. /*! \brief Reads the register 'EPHY_SNR_K'. */
  4241. U16 GH_EPHY_get_SNR_K(void);
  4242. /*! \brief Writes the bit group 'slice_up' of register 'EPHY_SNR_K'. */
  4243. void GH_EPHY_set_SNR_K_slice_up(U8 data);
  4244. /*! \brief Reads the bit group 'slice_up' of register 'EPHY_SNR_K'. */
  4245. U8 GH_EPHY_get_SNR_K_slice_up(void);
  4246. /*! \brief Writes the bit group 'snrchk_k1' of register 'EPHY_SNR_K'. */
  4247. void GH_EPHY_set_SNR_K_snrchk_k1(U8 data);
  4248. /*! \brief Reads the bit group 'snrchk_k1' of register 'EPHY_SNR_K'. */
  4249. U8 GH_EPHY_get_SNR_K_snrchk_k1(void);
  4250. /*! \brief Writes the bit group 'snrchk_k2' of register 'EPHY_SNR_K'. */
  4251. void GH_EPHY_set_SNR_K_snrchk_k2(U8 data);
  4252. /*! \brief Reads the bit group 'snrchk_k2' of register 'EPHY_SNR_K'. */
  4253. U8 GH_EPHY_get_SNR_K_snrchk_k2(void);
  4254. /*! \brief Writes the bit group 'snrchk_k3' of register 'EPHY_SNR_K'. */
  4255. void GH_EPHY_set_SNR_K_snrchk_k3(U8 data);
  4256. /*! \brief Reads the bit group 'snrchk_k3' of register 'EPHY_SNR_K'. */
  4257. U8 GH_EPHY_get_SNR_K_snrchk_k3(void);
  4258. /*! \brief Writes the bit group 'gcr_ccpl_master_coarse_clkcc' of register 'EPHY_SNR_K'. */
  4259. void GH_EPHY_set_SNR_K_gcr_ccpl_master_coarse_clkcc(U8 data);
  4260. /*! \brief Reads the bit group 'gcr_ccpl_master_coarse_clkcc' of register 'EPHY_SNR_K'. */
  4261. U8 GH_EPHY_get_SNR_K_gcr_ccpl_master_coarse_clkcc(void);
  4262. #else /* GH_INLINE_LEVEL == 0 */
  4263. GH_INLINE void GH_EPHY_set_SNR_K(U16 data)
  4264. {
  4265. *(volatile U16 *)REG_EPHY_SNR_K = data;
  4266. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4267. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_SNR_K] <-- 0x%08x\n",
  4268. REG_EPHY_SNR_K,data,data);
  4269. #endif
  4270. }
  4271. GH_INLINE U16 GH_EPHY_get_SNR_K(void)
  4272. {
  4273. U16 value = (*(volatile U16 *)REG_EPHY_SNR_K);
  4274. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4275. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_SNR_K] --> 0x%08x\n",
  4276. REG_EPHY_SNR_K,value);
  4277. #endif
  4278. return value;
  4279. }
  4280. GH_INLINE void GH_EPHY_set_SNR_K_slice_up(U8 data)
  4281. {
  4282. GH_EPHY_SNR_K_S d;
  4283. d.all = *(volatile U16 *)REG_EPHY_SNR_K;
  4284. d.bitc.slice_up = data;
  4285. *(volatile U16 *)REG_EPHY_SNR_K = d.all;
  4286. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4287. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_SNR_K_slice_up] <-- 0x%08x\n",
  4288. REG_EPHY_SNR_K,d.all,d.all);
  4289. #endif
  4290. }
  4291. GH_INLINE U8 GH_EPHY_get_SNR_K_slice_up(void)
  4292. {
  4293. GH_EPHY_SNR_K_S tmp_value;
  4294. U16 value = (*(volatile U16 *)REG_EPHY_SNR_K);
  4295. tmp_value.all = value;
  4296. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4297. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_SNR_K_slice_up] --> 0x%08x\n",
  4298. REG_EPHY_SNR_K,value);
  4299. #endif
  4300. return tmp_value.bitc.slice_up;
  4301. }
  4302. GH_INLINE void GH_EPHY_set_SNR_K_snrchk_k1(U8 data)
  4303. {
  4304. GH_EPHY_SNR_K_S d;
  4305. d.all = *(volatile U16 *)REG_EPHY_SNR_K;
  4306. d.bitc.snrchk_k1 = data;
  4307. *(volatile U16 *)REG_EPHY_SNR_K = d.all;
  4308. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4309. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_SNR_K_snrchk_k1] <-- 0x%08x\n",
  4310. REG_EPHY_SNR_K,d.all,d.all);
  4311. #endif
  4312. }
  4313. GH_INLINE U8 GH_EPHY_get_SNR_K_snrchk_k1(void)
  4314. {
  4315. GH_EPHY_SNR_K_S tmp_value;
  4316. U16 value = (*(volatile U16 *)REG_EPHY_SNR_K);
  4317. tmp_value.all = value;
  4318. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4319. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_SNR_K_snrchk_k1] --> 0x%08x\n",
  4320. REG_EPHY_SNR_K,value);
  4321. #endif
  4322. return tmp_value.bitc.snrchk_k1;
  4323. }
  4324. GH_INLINE void GH_EPHY_set_SNR_K_snrchk_k2(U8 data)
  4325. {
  4326. GH_EPHY_SNR_K_S d;
  4327. d.all = *(volatile U16 *)REG_EPHY_SNR_K;
  4328. d.bitc.snrchk_k2 = data;
  4329. *(volatile U16 *)REG_EPHY_SNR_K = d.all;
  4330. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4331. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_SNR_K_snrchk_k2] <-- 0x%08x\n",
  4332. REG_EPHY_SNR_K,d.all,d.all);
  4333. #endif
  4334. }
  4335. GH_INLINE U8 GH_EPHY_get_SNR_K_snrchk_k2(void)
  4336. {
  4337. GH_EPHY_SNR_K_S tmp_value;
  4338. U16 value = (*(volatile U16 *)REG_EPHY_SNR_K);
  4339. tmp_value.all = value;
  4340. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4341. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_SNR_K_snrchk_k2] --> 0x%08x\n",
  4342. REG_EPHY_SNR_K,value);
  4343. #endif
  4344. return tmp_value.bitc.snrchk_k2;
  4345. }
  4346. GH_INLINE void GH_EPHY_set_SNR_K_snrchk_k3(U8 data)
  4347. {
  4348. GH_EPHY_SNR_K_S d;
  4349. d.all = *(volatile U16 *)REG_EPHY_SNR_K;
  4350. d.bitc.snrchk_k3 = data;
  4351. *(volatile U16 *)REG_EPHY_SNR_K = d.all;
  4352. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4353. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_SNR_K_snrchk_k3] <-- 0x%08x\n",
  4354. REG_EPHY_SNR_K,d.all,d.all);
  4355. #endif
  4356. }
  4357. GH_INLINE U8 GH_EPHY_get_SNR_K_snrchk_k3(void)
  4358. {
  4359. GH_EPHY_SNR_K_S tmp_value;
  4360. U16 value = (*(volatile U16 *)REG_EPHY_SNR_K);
  4361. tmp_value.all = value;
  4362. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4363. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_SNR_K_snrchk_k3] --> 0x%08x\n",
  4364. REG_EPHY_SNR_K,value);
  4365. #endif
  4366. return tmp_value.bitc.snrchk_k3;
  4367. }
  4368. GH_INLINE void GH_EPHY_set_SNR_K_gcr_ccpl_master_coarse_clkcc(U8 data)
  4369. {
  4370. GH_EPHY_SNR_K_S d;
  4371. d.all = *(volatile U16 *)REG_EPHY_SNR_K;
  4372. d.bitc.gcr_ccpl_master_coarse_clkcc = data;
  4373. *(volatile U16 *)REG_EPHY_SNR_K = d.all;
  4374. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4375. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_SNR_K_gcr_ccpl_master_coarse_clkcc] <-- 0x%08x\n",
  4376. REG_EPHY_SNR_K,d.all,d.all);
  4377. #endif
  4378. }
  4379. GH_INLINE U8 GH_EPHY_get_SNR_K_gcr_ccpl_master_coarse_clkcc(void)
  4380. {
  4381. GH_EPHY_SNR_K_S tmp_value;
  4382. U16 value = (*(volatile U16 *)REG_EPHY_SNR_K);
  4383. tmp_value.all = value;
  4384. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4385. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_SNR_K_gcr_ccpl_master_coarse_clkcc] --> 0x%08x\n",
  4386. REG_EPHY_SNR_K,value);
  4387. #endif
  4388. return tmp_value.bitc.gcr_ccpl_master_coarse_clkcc;
  4389. }
  4390. #endif /* GH_INLINE_LEVEL == 0 */
  4391. /*----------------------------------------------------------------------------*/
  4392. /* register EPHY_DET_MAX (read/write) */
  4393. /*----------------------------------------------------------------------------*/
  4394. #if GH_INLINE_LEVEL == 0
  4395. /*! \brief Writes the register 'EPHY_DET_MAX'. */
  4396. void GH_EPHY_set_DET_MAX(U16 data);
  4397. /*! \brief Reads the register 'EPHY_DET_MAX'. */
  4398. U16 GH_EPHY_get_DET_MAX(void);
  4399. /*! \brief Writes the bit group 'thrh_max_vga_coarse' of register 'EPHY_DET_MAX'. */
  4400. void GH_EPHY_set_DET_MAX_thrh_max_vga_coarse(U8 data);
  4401. /*! \brief Reads the bit group 'thrh_max_vga_coarse' of register 'EPHY_DET_MAX'. */
  4402. U8 GH_EPHY_get_DET_MAX_thrh_max_vga_coarse(void);
  4403. /*! \brief Writes the bit group 'thrh_max_sig_det' of register 'EPHY_DET_MAX'. */
  4404. void GH_EPHY_set_DET_MAX_thrh_max_sig_det(U8 data);
  4405. /*! \brief Reads the bit group 'thrh_max_sig_det' of register 'EPHY_DET_MAX'. */
  4406. U8 GH_EPHY_get_DET_MAX_thrh_max_sig_det(void);
  4407. #else /* GH_INLINE_LEVEL == 0 */
  4408. GH_INLINE void GH_EPHY_set_DET_MAX(U16 data)
  4409. {
  4410. *(volatile U16 *)REG_EPHY_DET_MAX = data;
  4411. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4412. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_DET_MAX] <-- 0x%08x\n",
  4413. REG_EPHY_DET_MAX,data,data);
  4414. #endif
  4415. }
  4416. GH_INLINE U16 GH_EPHY_get_DET_MAX(void)
  4417. {
  4418. U16 value = (*(volatile U16 *)REG_EPHY_DET_MAX);
  4419. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4420. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_DET_MAX] --> 0x%08x\n",
  4421. REG_EPHY_DET_MAX,value);
  4422. #endif
  4423. return value;
  4424. }
  4425. GH_INLINE void GH_EPHY_set_DET_MAX_thrh_max_vga_coarse(U8 data)
  4426. {
  4427. GH_EPHY_DET_MAX_S d;
  4428. d.all = *(volatile U16 *)REG_EPHY_DET_MAX;
  4429. d.bitc.thrh_max_vga_coarse = data;
  4430. *(volatile U16 *)REG_EPHY_DET_MAX = d.all;
  4431. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4432. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_DET_MAX_thrh_max_vga_coarse] <-- 0x%08x\n",
  4433. REG_EPHY_DET_MAX,d.all,d.all);
  4434. #endif
  4435. }
  4436. GH_INLINE U8 GH_EPHY_get_DET_MAX_thrh_max_vga_coarse(void)
  4437. {
  4438. GH_EPHY_DET_MAX_S tmp_value;
  4439. U16 value = (*(volatile U16 *)REG_EPHY_DET_MAX);
  4440. tmp_value.all = value;
  4441. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4442. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_DET_MAX_thrh_max_vga_coarse] --> 0x%08x\n",
  4443. REG_EPHY_DET_MAX,value);
  4444. #endif
  4445. return tmp_value.bitc.thrh_max_vga_coarse;
  4446. }
  4447. GH_INLINE void GH_EPHY_set_DET_MAX_thrh_max_sig_det(U8 data)
  4448. {
  4449. GH_EPHY_DET_MAX_S d;
  4450. d.all = *(volatile U16 *)REG_EPHY_DET_MAX;
  4451. d.bitc.thrh_max_sig_det = data;
  4452. *(volatile U16 *)REG_EPHY_DET_MAX = d.all;
  4453. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4454. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_DET_MAX_thrh_max_sig_det] <-- 0x%08x\n",
  4455. REG_EPHY_DET_MAX,d.all,d.all);
  4456. #endif
  4457. }
  4458. GH_INLINE U8 GH_EPHY_get_DET_MAX_thrh_max_sig_det(void)
  4459. {
  4460. GH_EPHY_DET_MAX_S tmp_value;
  4461. U16 value = (*(volatile U16 *)REG_EPHY_DET_MAX);
  4462. tmp_value.all = value;
  4463. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4464. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_DET_MAX_thrh_max_sig_det] --> 0x%08x\n",
  4465. REG_EPHY_DET_MAX,value);
  4466. #endif
  4467. return tmp_value.bitc.thrh_max_sig_det;
  4468. }
  4469. #endif /* GH_INLINE_LEVEL == 0 */
  4470. /*----------------------------------------------------------------------------*/
  4471. /* register EPHY_DET_MIN (read/write) */
  4472. /*----------------------------------------------------------------------------*/
  4473. #if GH_INLINE_LEVEL == 0
  4474. /*! \brief Writes the register 'EPHY_DET_MIN'. */
  4475. void GH_EPHY_set_DET_MIN(U16 data);
  4476. /*! \brief Reads the register 'EPHY_DET_MIN'. */
  4477. U16 GH_EPHY_get_DET_MIN(void);
  4478. /*! \brief Writes the bit group 'thrh_max_vga_fine' of register 'EPHY_DET_MIN'. */
  4479. void GH_EPHY_set_DET_MIN_thrh_max_vga_fine(U8 data);
  4480. /*! \brief Reads the bit group 'thrh_max_vga_fine' of register 'EPHY_DET_MIN'. */
  4481. U8 GH_EPHY_get_DET_MIN_thrh_max_vga_fine(void);
  4482. /*! \brief Writes the bit group 'thrh_min_sig_det' of register 'EPHY_DET_MIN'. */
  4483. void GH_EPHY_set_DET_MIN_thrh_min_sig_det(U8 data);
  4484. /*! \brief Reads the bit group 'thrh_min_sig_det' of register 'EPHY_DET_MIN'. */
  4485. U8 GH_EPHY_get_DET_MIN_thrh_min_sig_det(void);
  4486. #else /* GH_INLINE_LEVEL == 0 */
  4487. GH_INLINE void GH_EPHY_set_DET_MIN(U16 data)
  4488. {
  4489. *(volatile U16 *)REG_EPHY_DET_MIN = data;
  4490. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4491. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_DET_MIN] <-- 0x%08x\n",
  4492. REG_EPHY_DET_MIN,data,data);
  4493. #endif
  4494. }
  4495. GH_INLINE U16 GH_EPHY_get_DET_MIN(void)
  4496. {
  4497. U16 value = (*(volatile U16 *)REG_EPHY_DET_MIN);
  4498. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4499. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_DET_MIN] --> 0x%08x\n",
  4500. REG_EPHY_DET_MIN,value);
  4501. #endif
  4502. return value;
  4503. }
  4504. GH_INLINE void GH_EPHY_set_DET_MIN_thrh_max_vga_fine(U8 data)
  4505. {
  4506. GH_EPHY_DET_MIN_S d;
  4507. d.all = *(volatile U16 *)REG_EPHY_DET_MIN;
  4508. d.bitc.thrh_max_vga_fine = data;
  4509. *(volatile U16 *)REG_EPHY_DET_MIN = d.all;
  4510. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4511. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_DET_MIN_thrh_max_vga_fine] <-- 0x%08x\n",
  4512. REG_EPHY_DET_MIN,d.all,d.all);
  4513. #endif
  4514. }
  4515. GH_INLINE U8 GH_EPHY_get_DET_MIN_thrh_max_vga_fine(void)
  4516. {
  4517. GH_EPHY_DET_MIN_S tmp_value;
  4518. U16 value = (*(volatile U16 *)REG_EPHY_DET_MIN);
  4519. tmp_value.all = value;
  4520. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4521. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_DET_MIN_thrh_max_vga_fine] --> 0x%08x\n",
  4522. REG_EPHY_DET_MIN,value);
  4523. #endif
  4524. return tmp_value.bitc.thrh_max_vga_fine;
  4525. }
  4526. GH_INLINE void GH_EPHY_set_DET_MIN_thrh_min_sig_det(U8 data)
  4527. {
  4528. GH_EPHY_DET_MIN_S d;
  4529. d.all = *(volatile U16 *)REG_EPHY_DET_MIN;
  4530. d.bitc.thrh_min_sig_det = data;
  4531. *(volatile U16 *)REG_EPHY_DET_MIN = d.all;
  4532. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4533. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_DET_MIN_thrh_min_sig_det] <-- 0x%08x\n",
  4534. REG_EPHY_DET_MIN,d.all,d.all);
  4535. #endif
  4536. }
  4537. GH_INLINE U8 GH_EPHY_get_DET_MIN_thrh_min_sig_det(void)
  4538. {
  4539. GH_EPHY_DET_MIN_S tmp_value;
  4540. U16 value = (*(volatile U16 *)REG_EPHY_DET_MIN);
  4541. tmp_value.all = value;
  4542. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4543. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_DET_MIN_thrh_min_sig_det] --> 0x%08x\n",
  4544. REG_EPHY_DET_MIN,value);
  4545. #endif
  4546. return tmp_value.bitc.thrh_min_sig_det;
  4547. }
  4548. #endif /* GH_INLINE_LEVEL == 0 */
  4549. /*----------------------------------------------------------------------------*/
  4550. /* register EPHY_SNR_LEN (read/write) */
  4551. /*----------------------------------------------------------------------------*/
  4552. #if GH_INLINE_LEVEL == 0
  4553. /*! \brief Writes the register 'EPHY_SNR_LEN'. */
  4554. void GH_EPHY_set_SNR_LEN(U16 data);
  4555. /*! \brief Reads the register 'EPHY_SNR_LEN'. */
  4556. U16 GH_EPHY_get_SNR_LEN(void);
  4557. /*! \brief Writes the bit group 'mcu_ctrl_dsp_fsm_state' of register 'EPHY_SNR_LEN'. */
  4558. void GH_EPHY_set_SNR_LEN_mcu_ctrl_dsp_fsm_state(U8 data);
  4559. /*! \brief Reads the bit group 'mcu_ctrl_dsp_fsm_state' of register 'EPHY_SNR_LEN'. */
  4560. U8 GH_EPHY_get_SNR_LEN_mcu_ctrl_dsp_fsm_state(void);
  4561. /*! \brief Writes the bit group 'force_100m_en' of register 'EPHY_SNR_LEN'. */
  4562. void GH_EPHY_set_SNR_LEN_force_100m_en(U8 data);
  4563. /*! \brief Reads the bit group 'force_100m_en' of register 'EPHY_SNR_LEN'. */
  4564. U8 GH_EPHY_get_SNR_LEN_force_100m_en(void);
  4565. /*! \brief Writes the bit group 'force_100m_snr_lock' of register 'EPHY_SNR_LEN'. */
  4566. void GH_EPHY_set_SNR_LEN_force_100m_snr_lock(U8 data);
  4567. /*! \brief Reads the bit group 'force_100m_snr_lock' of register 'EPHY_SNR_LEN'. */
  4568. U8 GH_EPHY_get_SNR_LEN_force_100m_snr_lock(void);
  4569. /*! \brief Writes the bit group 'dsp_fsm_agc_en_mode_a' of register 'EPHY_SNR_LEN'. */
  4570. void GH_EPHY_set_SNR_LEN_dsp_fsm_agc_en_mode_a(U8 data);
  4571. /*! \brief Reads the bit group 'dsp_fsm_agc_en_mode_a' of register 'EPHY_SNR_LEN'. */
  4572. U8 GH_EPHY_get_SNR_LEN_dsp_fsm_agc_en_mode_a(void);
  4573. /*! \brief Writes the bit group 'cable_len_offset' of register 'EPHY_SNR_LEN'. */
  4574. void GH_EPHY_set_SNR_LEN_cable_len_offset(U8 data);
  4575. /*! \brief Reads the bit group 'cable_len_offset' of register 'EPHY_SNR_LEN'. */
  4576. U8 GH_EPHY_get_SNR_LEN_cable_len_offset(void);
  4577. #else /* GH_INLINE_LEVEL == 0 */
  4578. GH_INLINE void GH_EPHY_set_SNR_LEN(U16 data)
  4579. {
  4580. *(volatile U16 *)REG_EPHY_SNR_LEN = data;
  4581. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4582. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_SNR_LEN] <-- 0x%08x\n",
  4583. REG_EPHY_SNR_LEN,data,data);
  4584. #endif
  4585. }
  4586. GH_INLINE U16 GH_EPHY_get_SNR_LEN(void)
  4587. {
  4588. U16 value = (*(volatile U16 *)REG_EPHY_SNR_LEN);
  4589. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4590. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_SNR_LEN] --> 0x%08x\n",
  4591. REG_EPHY_SNR_LEN,value);
  4592. #endif
  4593. return value;
  4594. }
  4595. GH_INLINE void GH_EPHY_set_SNR_LEN_mcu_ctrl_dsp_fsm_state(U8 data)
  4596. {
  4597. GH_EPHY_SNR_LEN_S d;
  4598. d.all = *(volatile U16 *)REG_EPHY_SNR_LEN;
  4599. d.bitc.mcu_ctrl_dsp_fsm_state = data;
  4600. *(volatile U16 *)REG_EPHY_SNR_LEN = d.all;
  4601. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4602. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_SNR_LEN_mcu_ctrl_dsp_fsm_state] <-- 0x%08x\n",
  4603. REG_EPHY_SNR_LEN,d.all,d.all);
  4604. #endif
  4605. }
  4606. GH_INLINE U8 GH_EPHY_get_SNR_LEN_mcu_ctrl_dsp_fsm_state(void)
  4607. {
  4608. GH_EPHY_SNR_LEN_S tmp_value;
  4609. U16 value = (*(volatile U16 *)REG_EPHY_SNR_LEN);
  4610. tmp_value.all = value;
  4611. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4612. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_SNR_LEN_mcu_ctrl_dsp_fsm_state] --> 0x%08x\n",
  4613. REG_EPHY_SNR_LEN,value);
  4614. #endif
  4615. return tmp_value.bitc.mcu_ctrl_dsp_fsm_state;
  4616. }
  4617. GH_INLINE void GH_EPHY_set_SNR_LEN_force_100m_en(U8 data)
  4618. {
  4619. GH_EPHY_SNR_LEN_S d;
  4620. d.all = *(volatile U16 *)REG_EPHY_SNR_LEN;
  4621. d.bitc.force_100m_en = data;
  4622. *(volatile U16 *)REG_EPHY_SNR_LEN = d.all;
  4623. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4624. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_SNR_LEN_force_100m_en] <-- 0x%08x\n",
  4625. REG_EPHY_SNR_LEN,d.all,d.all);
  4626. #endif
  4627. }
  4628. GH_INLINE U8 GH_EPHY_get_SNR_LEN_force_100m_en(void)
  4629. {
  4630. GH_EPHY_SNR_LEN_S tmp_value;
  4631. U16 value = (*(volatile U16 *)REG_EPHY_SNR_LEN);
  4632. tmp_value.all = value;
  4633. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4634. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_SNR_LEN_force_100m_en] --> 0x%08x\n",
  4635. REG_EPHY_SNR_LEN,value);
  4636. #endif
  4637. return tmp_value.bitc.force_100m_en;
  4638. }
  4639. GH_INLINE void GH_EPHY_set_SNR_LEN_force_100m_snr_lock(U8 data)
  4640. {
  4641. GH_EPHY_SNR_LEN_S d;
  4642. d.all = *(volatile U16 *)REG_EPHY_SNR_LEN;
  4643. d.bitc.force_100m_snr_lock = data;
  4644. *(volatile U16 *)REG_EPHY_SNR_LEN = d.all;
  4645. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4646. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_SNR_LEN_force_100m_snr_lock] <-- 0x%08x\n",
  4647. REG_EPHY_SNR_LEN,d.all,d.all);
  4648. #endif
  4649. }
  4650. GH_INLINE U8 GH_EPHY_get_SNR_LEN_force_100m_snr_lock(void)
  4651. {
  4652. GH_EPHY_SNR_LEN_S tmp_value;
  4653. U16 value = (*(volatile U16 *)REG_EPHY_SNR_LEN);
  4654. tmp_value.all = value;
  4655. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4656. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_SNR_LEN_force_100m_snr_lock] --> 0x%08x\n",
  4657. REG_EPHY_SNR_LEN,value);
  4658. #endif
  4659. return tmp_value.bitc.force_100m_snr_lock;
  4660. }
  4661. GH_INLINE void GH_EPHY_set_SNR_LEN_dsp_fsm_agc_en_mode_a(U8 data)
  4662. {
  4663. GH_EPHY_SNR_LEN_S d;
  4664. d.all = *(volatile U16 *)REG_EPHY_SNR_LEN;
  4665. d.bitc.dsp_fsm_agc_en_mode_a = data;
  4666. *(volatile U16 *)REG_EPHY_SNR_LEN = d.all;
  4667. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4668. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_SNR_LEN_dsp_fsm_agc_en_mode_a] <-- 0x%08x\n",
  4669. REG_EPHY_SNR_LEN,d.all,d.all);
  4670. #endif
  4671. }
  4672. GH_INLINE U8 GH_EPHY_get_SNR_LEN_dsp_fsm_agc_en_mode_a(void)
  4673. {
  4674. GH_EPHY_SNR_LEN_S tmp_value;
  4675. U16 value = (*(volatile U16 *)REG_EPHY_SNR_LEN);
  4676. tmp_value.all = value;
  4677. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4678. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_SNR_LEN_dsp_fsm_agc_en_mode_a] --> 0x%08x\n",
  4679. REG_EPHY_SNR_LEN,value);
  4680. #endif
  4681. return tmp_value.bitc.dsp_fsm_agc_en_mode_a;
  4682. }
  4683. GH_INLINE void GH_EPHY_set_SNR_LEN_cable_len_offset(U8 data)
  4684. {
  4685. GH_EPHY_SNR_LEN_S d;
  4686. d.all = *(volatile U16 *)REG_EPHY_SNR_LEN;
  4687. d.bitc.cable_len_offset = data;
  4688. *(volatile U16 *)REG_EPHY_SNR_LEN = d.all;
  4689. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4690. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_SNR_LEN_cable_len_offset] <-- 0x%08x\n",
  4691. REG_EPHY_SNR_LEN,d.all,d.all);
  4692. #endif
  4693. }
  4694. GH_INLINE U8 GH_EPHY_get_SNR_LEN_cable_len_offset(void)
  4695. {
  4696. GH_EPHY_SNR_LEN_S tmp_value;
  4697. U16 value = (*(volatile U16 *)REG_EPHY_SNR_LEN);
  4698. tmp_value.all = value;
  4699. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4700. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_SNR_LEN_cable_len_offset] --> 0x%08x\n",
  4701. REG_EPHY_SNR_LEN,value);
  4702. #endif
  4703. return tmp_value.bitc.cable_len_offset;
  4704. }
  4705. #endif /* GH_INLINE_LEVEL == 0 */
  4706. /*----------------------------------------------------------------------------*/
  4707. /* register EPHY_LPF (read/write) */
  4708. /*----------------------------------------------------------------------------*/
  4709. #if GH_INLINE_LEVEL == 0
  4710. /*! \brief Writes the register 'EPHY_LPF'. */
  4711. void GH_EPHY_set_LPF(U16 data);
  4712. /*! \brief Reads the register 'EPHY_LPF'. */
  4713. U16 GH_EPHY_get_LPF(void);
  4714. /*! \brief Writes the bit group 'lpf_out_h' of register 'EPHY_LPF'. */
  4715. void GH_EPHY_set_LPF_lpf_out_h(U16 data);
  4716. /*! \brief Reads the bit group 'lpf_out_h' of register 'EPHY_LPF'. */
  4717. U16 GH_EPHY_get_LPF_lpf_out_h(void);
  4718. /*! \brief Writes the bit group 'rxlpf_bwsel_10t' of register 'EPHY_LPF'. */
  4719. void GH_EPHY_set_LPF_rxlpf_bwsel_10t(U8 data);
  4720. /*! \brief Reads the bit group 'rxlpf_bwsel_10t' of register 'EPHY_LPF'. */
  4721. U8 GH_EPHY_get_LPF_rxlpf_bwsel_10t(void);
  4722. /*! \brief Writes the bit group 'rxlpf_bwsel_100t' of register 'EPHY_LPF'. */
  4723. void GH_EPHY_set_LPF_rxlpf_bwsel_100t(U8 data);
  4724. /*! \brief Reads the bit group 'rxlpf_bwsel_100t' of register 'EPHY_LPF'. */
  4725. U8 GH_EPHY_get_LPF_rxlpf_bwsel_100t(void);
  4726. /*! \brief Writes the bit group 'cable_length' of register 'EPHY_LPF'. */
  4727. void GH_EPHY_set_LPF_cable_length(U8 data);
  4728. /*! \brief Reads the bit group 'cable_length' of register 'EPHY_LPF'. */
  4729. U8 GH_EPHY_get_LPF_cable_length(void);
  4730. #else /* GH_INLINE_LEVEL == 0 */
  4731. GH_INLINE void GH_EPHY_set_LPF(U16 data)
  4732. {
  4733. *(volatile U16 *)REG_EPHY_LPF = data;
  4734. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4735. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_LPF] <-- 0x%08x\n",
  4736. REG_EPHY_LPF,data,data);
  4737. #endif
  4738. }
  4739. GH_INLINE U16 GH_EPHY_get_LPF(void)
  4740. {
  4741. U16 value = (*(volatile U16 *)REG_EPHY_LPF);
  4742. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4743. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_LPF] --> 0x%08x\n",
  4744. REG_EPHY_LPF,value);
  4745. #endif
  4746. return value;
  4747. }
  4748. GH_INLINE void GH_EPHY_set_LPF_lpf_out_h(U16 data)
  4749. {
  4750. GH_EPHY_LPF_S d;
  4751. d.all = *(volatile U16 *)REG_EPHY_LPF;
  4752. d.bitc.lpf_out_h = data;
  4753. *(volatile U16 *)REG_EPHY_LPF = d.all;
  4754. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4755. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_LPF_lpf_out_h] <-- 0x%08x\n",
  4756. REG_EPHY_LPF,d.all,d.all);
  4757. #endif
  4758. }
  4759. GH_INLINE U16 GH_EPHY_get_LPF_lpf_out_h(void)
  4760. {
  4761. GH_EPHY_LPF_S tmp_value;
  4762. U16 value = (*(volatile U16 *)REG_EPHY_LPF);
  4763. tmp_value.all = value;
  4764. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4765. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_LPF_lpf_out_h] --> 0x%08x\n",
  4766. REG_EPHY_LPF,value);
  4767. #endif
  4768. return tmp_value.bitc.lpf_out_h;
  4769. }
  4770. GH_INLINE void GH_EPHY_set_LPF_rxlpf_bwsel_10t(U8 data)
  4771. {
  4772. GH_EPHY_LPF_S d;
  4773. d.all = *(volatile U16 *)REG_EPHY_LPF;
  4774. d.bitc.rxlpf_bwsel_10t = data;
  4775. *(volatile U16 *)REG_EPHY_LPF = d.all;
  4776. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4777. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_LPF_rxlpf_bwsel_10t] <-- 0x%08x\n",
  4778. REG_EPHY_LPF,d.all,d.all);
  4779. #endif
  4780. }
  4781. GH_INLINE U8 GH_EPHY_get_LPF_rxlpf_bwsel_10t(void)
  4782. {
  4783. GH_EPHY_LPF_S tmp_value;
  4784. U16 value = (*(volatile U16 *)REG_EPHY_LPF);
  4785. tmp_value.all = value;
  4786. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4787. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_LPF_rxlpf_bwsel_10t] --> 0x%08x\n",
  4788. REG_EPHY_LPF,value);
  4789. #endif
  4790. return tmp_value.bitc.rxlpf_bwsel_10t;
  4791. }
  4792. GH_INLINE void GH_EPHY_set_LPF_rxlpf_bwsel_100t(U8 data)
  4793. {
  4794. GH_EPHY_LPF_S d;
  4795. d.all = *(volatile U16 *)REG_EPHY_LPF;
  4796. d.bitc.rxlpf_bwsel_100t = data;
  4797. *(volatile U16 *)REG_EPHY_LPF = d.all;
  4798. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4799. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_LPF_rxlpf_bwsel_100t] <-- 0x%08x\n",
  4800. REG_EPHY_LPF,d.all,d.all);
  4801. #endif
  4802. }
  4803. GH_INLINE U8 GH_EPHY_get_LPF_rxlpf_bwsel_100t(void)
  4804. {
  4805. GH_EPHY_LPF_S tmp_value;
  4806. U16 value = (*(volatile U16 *)REG_EPHY_LPF);
  4807. tmp_value.all = value;
  4808. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4809. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_LPF_rxlpf_bwsel_100t] --> 0x%08x\n",
  4810. REG_EPHY_LPF,value);
  4811. #endif
  4812. return tmp_value.bitc.rxlpf_bwsel_100t;
  4813. }
  4814. GH_INLINE void GH_EPHY_set_LPF_cable_length(U8 data)
  4815. {
  4816. GH_EPHY_LPF_S d;
  4817. d.all = *(volatile U16 *)REG_EPHY_LPF;
  4818. d.bitc.cable_length = data;
  4819. *(volatile U16 *)REG_EPHY_LPF = d.all;
  4820. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4821. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_LPF_cable_length] <-- 0x%08x\n",
  4822. REG_EPHY_LPF,d.all,d.all);
  4823. #endif
  4824. }
  4825. GH_INLINE U8 GH_EPHY_get_LPF_cable_length(void)
  4826. {
  4827. GH_EPHY_LPF_S tmp_value;
  4828. U16 value = (*(volatile U16 *)REG_EPHY_LPF);
  4829. tmp_value.all = value;
  4830. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4831. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_LPF_cable_length] --> 0x%08x\n",
  4832. REG_EPHY_LPF,value);
  4833. #endif
  4834. return tmp_value.bitc.cable_length;
  4835. }
  4836. #endif /* GH_INLINE_LEVEL == 0 */
  4837. /*----------------------------------------------------------------------------*/
  4838. /* register EPHY_ADC_GAIN_PGA (read/write) */
  4839. /*----------------------------------------------------------------------------*/
  4840. #if GH_INLINE_LEVEL == 0
  4841. /*! \brief Writes the register 'EPHY_ADC_GAIN_PGA'. */
  4842. void GH_EPHY_set_ADC_GAIN_PGA(U16 data);
  4843. /*! \brief Reads the register 'EPHY_ADC_GAIN_PGA'. */
  4844. U16 GH_EPHY_get_ADC_GAIN_PGA(void);
  4845. /*! \brief Writes the bit group 'adc_bp' of register 'EPHY_ADC_GAIN_PGA'. */
  4846. void GH_EPHY_set_ADC_GAIN_PGA_adc_bp(U8 data);
  4847. /*! \brief Reads the bit group 'adc_bp' of register 'EPHY_ADC_GAIN_PGA'. */
  4848. U8 GH_EPHY_get_ADC_GAIN_PGA_adc_bp(void);
  4849. /*! \brief Writes the bit group 'dac10t_testen' of register 'EPHY_ADC_GAIN_PGA'. */
  4850. void GH_EPHY_set_ADC_GAIN_PGA_dac10t_testen(U8 data);
  4851. /*! \brief Reads the bit group 'dac10t_testen' of register 'EPHY_ADC_GAIN_PGA'. */
  4852. U8 GH_EPHY_get_ADC_GAIN_PGA_dac10t_testen(void);
  4853. /*! \brief Writes the bit group 'dac100t_testen' of register 'EPHY_ADC_GAIN_PGA'. */
  4854. void GH_EPHY_set_ADC_GAIN_PGA_dac100t_testen(U8 data);
  4855. /*! \brief Reads the bit group 'dac100t_testen' of register 'EPHY_ADC_GAIN_PGA'. */
  4856. U8 GH_EPHY_get_ADC_GAIN_PGA_dac100t_testen(void);
  4857. /*! \brief Writes the bit group 'adc_bma' of register 'EPHY_ADC_GAIN_PGA'. */
  4858. void GH_EPHY_set_ADC_GAIN_PGA_adc_bma(U8 data);
  4859. /*! \brief Reads the bit group 'adc_bma' of register 'EPHY_ADC_GAIN_PGA'. */
  4860. U8 GH_EPHY_get_ADC_GAIN_PGA_adc_bma(void);
  4861. /*! \brief Writes the bit group 'adc_pd' of register 'EPHY_ADC_GAIN_PGA'. */
  4862. void GH_EPHY_set_ADC_GAIN_PGA_adc_pd(U8 data);
  4863. /*! \brief Reads the bit group 'adc_pd' of register 'EPHY_ADC_GAIN_PGA'. */
  4864. U8 GH_EPHY_get_ADC_GAIN_PGA_adc_pd(void);
  4865. /*! \brief Writes the bit group 'region_bank_rd' of register 'EPHY_ADC_GAIN_PGA'. */
  4866. void GH_EPHY_set_ADC_GAIN_PGA_region_bank_rd(U8 data);
  4867. /*! \brief Reads the bit group 'region_bank_rd' of register 'EPHY_ADC_GAIN_PGA'. */
  4868. U8 GH_EPHY_get_ADC_GAIN_PGA_region_bank_rd(void);
  4869. /*! \brief Writes the bit group 'adcpll_ana_clken' of register 'EPHY_ADC_GAIN_PGA'. */
  4870. void GH_EPHY_set_ADC_GAIN_PGA_adcpll_ana_clken(U8 data);
  4871. /*! \brief Reads the bit group 'adcpll_ana_clken' of register 'EPHY_ADC_GAIN_PGA'. */
  4872. U8 GH_EPHY_get_ADC_GAIN_PGA_adcpll_ana_clken(void);
  4873. /*! \brief Writes the bit group 'adcbin_testen' of register 'EPHY_ADC_GAIN_PGA'. */
  4874. void GH_EPHY_set_ADC_GAIN_PGA_adcbin_testen(U8 data);
  4875. /*! \brief Reads the bit group 'adcbin_testen' of register 'EPHY_ADC_GAIN_PGA'. */
  4876. U8 GH_EPHY_get_ADC_GAIN_PGA_adcbin_testen(void);
  4877. #else /* GH_INLINE_LEVEL == 0 */
  4878. GH_INLINE void GH_EPHY_set_ADC_GAIN_PGA(U16 data)
  4879. {
  4880. *(volatile U16 *)REG_EPHY_ADC_GAIN_PGA = data;
  4881. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4882. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADC_GAIN_PGA] <-- 0x%08x\n",
  4883. REG_EPHY_ADC_GAIN_PGA,data,data);
  4884. #endif
  4885. }
  4886. GH_INLINE U16 GH_EPHY_get_ADC_GAIN_PGA(void)
  4887. {
  4888. U16 value = (*(volatile U16 *)REG_EPHY_ADC_GAIN_PGA);
  4889. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4890. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADC_GAIN_PGA] --> 0x%08x\n",
  4891. REG_EPHY_ADC_GAIN_PGA,value);
  4892. #endif
  4893. return value;
  4894. }
  4895. GH_INLINE void GH_EPHY_set_ADC_GAIN_PGA_adc_bp(U8 data)
  4896. {
  4897. GH_EPHY_ADC_GAIN_PGA_S d;
  4898. d.all = *(volatile U16 *)REG_EPHY_ADC_GAIN_PGA;
  4899. d.bitc.adc_bp = data;
  4900. *(volatile U16 *)REG_EPHY_ADC_GAIN_PGA = d.all;
  4901. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4902. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADC_GAIN_PGA_adc_bp] <-- 0x%08x\n",
  4903. REG_EPHY_ADC_GAIN_PGA,d.all,d.all);
  4904. #endif
  4905. }
  4906. GH_INLINE U8 GH_EPHY_get_ADC_GAIN_PGA_adc_bp(void)
  4907. {
  4908. GH_EPHY_ADC_GAIN_PGA_S tmp_value;
  4909. U16 value = (*(volatile U16 *)REG_EPHY_ADC_GAIN_PGA);
  4910. tmp_value.all = value;
  4911. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4912. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADC_GAIN_PGA_adc_bp] --> 0x%08x\n",
  4913. REG_EPHY_ADC_GAIN_PGA,value);
  4914. #endif
  4915. return tmp_value.bitc.adc_bp;
  4916. }
  4917. GH_INLINE void GH_EPHY_set_ADC_GAIN_PGA_dac10t_testen(U8 data)
  4918. {
  4919. GH_EPHY_ADC_GAIN_PGA_S d;
  4920. d.all = *(volatile U16 *)REG_EPHY_ADC_GAIN_PGA;
  4921. d.bitc.dac10t_testen = data;
  4922. *(volatile U16 *)REG_EPHY_ADC_GAIN_PGA = d.all;
  4923. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4924. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADC_GAIN_PGA_dac10t_testen] <-- 0x%08x\n",
  4925. REG_EPHY_ADC_GAIN_PGA,d.all,d.all);
  4926. #endif
  4927. }
  4928. GH_INLINE U8 GH_EPHY_get_ADC_GAIN_PGA_dac10t_testen(void)
  4929. {
  4930. GH_EPHY_ADC_GAIN_PGA_S tmp_value;
  4931. U16 value = (*(volatile U16 *)REG_EPHY_ADC_GAIN_PGA);
  4932. tmp_value.all = value;
  4933. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4934. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADC_GAIN_PGA_dac10t_testen] --> 0x%08x\n",
  4935. REG_EPHY_ADC_GAIN_PGA,value);
  4936. #endif
  4937. return tmp_value.bitc.dac10t_testen;
  4938. }
  4939. GH_INLINE void GH_EPHY_set_ADC_GAIN_PGA_dac100t_testen(U8 data)
  4940. {
  4941. GH_EPHY_ADC_GAIN_PGA_S d;
  4942. d.all = *(volatile U16 *)REG_EPHY_ADC_GAIN_PGA;
  4943. d.bitc.dac100t_testen = data;
  4944. *(volatile U16 *)REG_EPHY_ADC_GAIN_PGA = d.all;
  4945. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4946. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADC_GAIN_PGA_dac100t_testen] <-- 0x%08x\n",
  4947. REG_EPHY_ADC_GAIN_PGA,d.all,d.all);
  4948. #endif
  4949. }
  4950. GH_INLINE U8 GH_EPHY_get_ADC_GAIN_PGA_dac100t_testen(void)
  4951. {
  4952. GH_EPHY_ADC_GAIN_PGA_S tmp_value;
  4953. U16 value = (*(volatile U16 *)REG_EPHY_ADC_GAIN_PGA);
  4954. tmp_value.all = value;
  4955. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4956. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADC_GAIN_PGA_dac100t_testen] --> 0x%08x\n",
  4957. REG_EPHY_ADC_GAIN_PGA,value);
  4958. #endif
  4959. return tmp_value.bitc.dac100t_testen;
  4960. }
  4961. GH_INLINE void GH_EPHY_set_ADC_GAIN_PGA_adc_bma(U8 data)
  4962. {
  4963. GH_EPHY_ADC_GAIN_PGA_S d;
  4964. d.all = *(volatile U16 *)REG_EPHY_ADC_GAIN_PGA;
  4965. d.bitc.adc_bma = data;
  4966. *(volatile U16 *)REG_EPHY_ADC_GAIN_PGA = d.all;
  4967. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4968. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADC_GAIN_PGA_adc_bma] <-- 0x%08x\n",
  4969. REG_EPHY_ADC_GAIN_PGA,d.all,d.all);
  4970. #endif
  4971. }
  4972. GH_INLINE U8 GH_EPHY_get_ADC_GAIN_PGA_adc_bma(void)
  4973. {
  4974. GH_EPHY_ADC_GAIN_PGA_S tmp_value;
  4975. U16 value = (*(volatile U16 *)REG_EPHY_ADC_GAIN_PGA);
  4976. tmp_value.all = value;
  4977. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4978. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADC_GAIN_PGA_adc_bma] --> 0x%08x\n",
  4979. REG_EPHY_ADC_GAIN_PGA,value);
  4980. #endif
  4981. return tmp_value.bitc.adc_bma;
  4982. }
  4983. GH_INLINE void GH_EPHY_set_ADC_GAIN_PGA_adc_pd(U8 data)
  4984. {
  4985. GH_EPHY_ADC_GAIN_PGA_S d;
  4986. d.all = *(volatile U16 *)REG_EPHY_ADC_GAIN_PGA;
  4987. d.bitc.adc_pd = data;
  4988. *(volatile U16 *)REG_EPHY_ADC_GAIN_PGA = d.all;
  4989. #if GH_EPHY_ENABLE_DEBUG_PRINT
  4990. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADC_GAIN_PGA_adc_pd] <-- 0x%08x\n",
  4991. REG_EPHY_ADC_GAIN_PGA,d.all,d.all);
  4992. #endif
  4993. }
  4994. GH_INLINE U8 GH_EPHY_get_ADC_GAIN_PGA_adc_pd(void)
  4995. {
  4996. GH_EPHY_ADC_GAIN_PGA_S tmp_value;
  4997. U16 value = (*(volatile U16 *)REG_EPHY_ADC_GAIN_PGA);
  4998. tmp_value.all = value;
  4999. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5000. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADC_GAIN_PGA_adc_pd] --> 0x%08x\n",
  5001. REG_EPHY_ADC_GAIN_PGA,value);
  5002. #endif
  5003. return tmp_value.bitc.adc_pd;
  5004. }
  5005. GH_INLINE void GH_EPHY_set_ADC_GAIN_PGA_region_bank_rd(U8 data)
  5006. {
  5007. GH_EPHY_ADC_GAIN_PGA_S d;
  5008. d.all = *(volatile U16 *)REG_EPHY_ADC_GAIN_PGA;
  5009. d.bitc.region_bank_rd = data;
  5010. *(volatile U16 *)REG_EPHY_ADC_GAIN_PGA = d.all;
  5011. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5012. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADC_GAIN_PGA_region_bank_rd] <-- 0x%08x\n",
  5013. REG_EPHY_ADC_GAIN_PGA,d.all,d.all);
  5014. #endif
  5015. }
  5016. GH_INLINE U8 GH_EPHY_get_ADC_GAIN_PGA_region_bank_rd(void)
  5017. {
  5018. GH_EPHY_ADC_GAIN_PGA_S tmp_value;
  5019. U16 value = (*(volatile U16 *)REG_EPHY_ADC_GAIN_PGA);
  5020. tmp_value.all = value;
  5021. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5022. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADC_GAIN_PGA_region_bank_rd] --> 0x%08x\n",
  5023. REG_EPHY_ADC_GAIN_PGA,value);
  5024. #endif
  5025. return tmp_value.bitc.region_bank_rd;
  5026. }
  5027. GH_INLINE void GH_EPHY_set_ADC_GAIN_PGA_adcpll_ana_clken(U8 data)
  5028. {
  5029. GH_EPHY_ADC_GAIN_PGA_S d;
  5030. d.all = *(volatile U16 *)REG_EPHY_ADC_GAIN_PGA;
  5031. d.bitc.adcpll_ana_clken = data;
  5032. *(volatile U16 *)REG_EPHY_ADC_GAIN_PGA = d.all;
  5033. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5034. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADC_GAIN_PGA_adcpll_ana_clken] <-- 0x%08x\n",
  5035. REG_EPHY_ADC_GAIN_PGA,d.all,d.all);
  5036. #endif
  5037. }
  5038. GH_INLINE U8 GH_EPHY_get_ADC_GAIN_PGA_adcpll_ana_clken(void)
  5039. {
  5040. GH_EPHY_ADC_GAIN_PGA_S tmp_value;
  5041. U16 value = (*(volatile U16 *)REG_EPHY_ADC_GAIN_PGA);
  5042. tmp_value.all = value;
  5043. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5044. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADC_GAIN_PGA_adcpll_ana_clken] --> 0x%08x\n",
  5045. REG_EPHY_ADC_GAIN_PGA,value);
  5046. #endif
  5047. return tmp_value.bitc.adcpll_ana_clken;
  5048. }
  5049. GH_INLINE void GH_EPHY_set_ADC_GAIN_PGA_adcbin_testen(U8 data)
  5050. {
  5051. GH_EPHY_ADC_GAIN_PGA_S d;
  5052. d.all = *(volatile U16 *)REG_EPHY_ADC_GAIN_PGA;
  5053. d.bitc.adcbin_testen = data;
  5054. *(volatile U16 *)REG_EPHY_ADC_GAIN_PGA = d.all;
  5055. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5056. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADC_GAIN_PGA_adcbin_testen] <-- 0x%08x\n",
  5057. REG_EPHY_ADC_GAIN_PGA,d.all,d.all);
  5058. #endif
  5059. }
  5060. GH_INLINE U8 GH_EPHY_get_ADC_GAIN_PGA_adcbin_testen(void)
  5061. {
  5062. GH_EPHY_ADC_GAIN_PGA_S tmp_value;
  5063. U16 value = (*(volatile U16 *)REG_EPHY_ADC_GAIN_PGA);
  5064. tmp_value.all = value;
  5065. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5066. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADC_GAIN_PGA_adcbin_testen] --> 0x%08x\n",
  5067. REG_EPHY_ADC_GAIN_PGA,value);
  5068. #endif
  5069. return tmp_value.bitc.adcbin_testen;
  5070. }
  5071. #endif /* GH_INLINE_LEVEL == 0 */
  5072. /*----------------------------------------------------------------------------*/
  5073. /* register EPHY_ADC_GSHIFT (read/write) */
  5074. /*----------------------------------------------------------------------------*/
  5075. #if GH_INLINE_LEVEL == 0
  5076. /*! \brief Writes the register 'EPHY_ADC_GSHIFT'. */
  5077. void GH_EPHY_set_ADC_GSHIFT(U16 data);
  5078. /*! \brief Reads the register 'EPHY_ADC_GSHIFT'. */
  5079. U16 GH_EPHY_get_ADC_GSHIFT(void);
  5080. /*! \brief Writes the bit group 'adc_gshift' of register 'EPHY_ADC_GSHIFT'. */
  5081. void GH_EPHY_set_ADC_GSHIFT_adc_gshift(U8 data);
  5082. /*! \brief Reads the bit group 'adc_gshift' of register 'EPHY_ADC_GSHIFT'. */
  5083. U8 GH_EPHY_get_ADC_GSHIFT_adc_gshift(void);
  5084. /*! \brief Writes the bit group 'gain' of register 'EPHY_ADC_GSHIFT'. */
  5085. void GH_EPHY_set_ADC_GSHIFT_gain(U8 data);
  5086. /*! \brief Reads the bit group 'gain' of register 'EPHY_ADC_GSHIFT'. */
  5087. U8 GH_EPHY_get_ADC_GSHIFT_gain(void);
  5088. #else /* GH_INLINE_LEVEL == 0 */
  5089. GH_INLINE void GH_EPHY_set_ADC_GSHIFT(U16 data)
  5090. {
  5091. *(volatile U16 *)REG_EPHY_ADC_GSHIFT = data;
  5092. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5093. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADC_GSHIFT] <-- 0x%08x\n",
  5094. REG_EPHY_ADC_GSHIFT,data,data);
  5095. #endif
  5096. }
  5097. GH_INLINE U16 GH_EPHY_get_ADC_GSHIFT(void)
  5098. {
  5099. U16 value = (*(volatile U16 *)REG_EPHY_ADC_GSHIFT);
  5100. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5101. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADC_GSHIFT] --> 0x%08x\n",
  5102. REG_EPHY_ADC_GSHIFT,value);
  5103. #endif
  5104. return value;
  5105. }
  5106. GH_INLINE void GH_EPHY_set_ADC_GSHIFT_adc_gshift(U8 data)
  5107. {
  5108. GH_EPHY_ADC_GSHIFT_S d;
  5109. d.all = *(volatile U16 *)REG_EPHY_ADC_GSHIFT;
  5110. d.bitc.adc_gshift = data;
  5111. *(volatile U16 *)REG_EPHY_ADC_GSHIFT = d.all;
  5112. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5113. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADC_GSHIFT_adc_gshift] <-- 0x%08x\n",
  5114. REG_EPHY_ADC_GSHIFT,d.all,d.all);
  5115. #endif
  5116. }
  5117. GH_INLINE U8 GH_EPHY_get_ADC_GSHIFT_adc_gshift(void)
  5118. {
  5119. GH_EPHY_ADC_GSHIFT_S tmp_value;
  5120. U16 value = (*(volatile U16 *)REG_EPHY_ADC_GSHIFT);
  5121. tmp_value.all = value;
  5122. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5123. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADC_GSHIFT_adc_gshift] --> 0x%08x\n",
  5124. REG_EPHY_ADC_GSHIFT,value);
  5125. #endif
  5126. return tmp_value.bitc.adc_gshift;
  5127. }
  5128. GH_INLINE void GH_EPHY_set_ADC_GSHIFT_gain(U8 data)
  5129. {
  5130. GH_EPHY_ADC_GSHIFT_S d;
  5131. d.all = *(volatile U16 *)REG_EPHY_ADC_GSHIFT;
  5132. d.bitc.gain = data;
  5133. *(volatile U16 *)REG_EPHY_ADC_GSHIFT = d.all;
  5134. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5135. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADC_GSHIFT_gain] <-- 0x%08x\n",
  5136. REG_EPHY_ADC_GSHIFT,d.all,d.all);
  5137. #endif
  5138. }
  5139. GH_INLINE U8 GH_EPHY_get_ADC_GSHIFT_gain(void)
  5140. {
  5141. GH_EPHY_ADC_GSHIFT_S tmp_value;
  5142. U16 value = (*(volatile U16 *)REG_EPHY_ADC_GSHIFT);
  5143. tmp_value.all = value;
  5144. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5145. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADC_GSHIFT_gain] --> 0x%08x\n",
  5146. REG_EPHY_ADC_GSHIFT,value);
  5147. #endif
  5148. return tmp_value.bitc.gain;
  5149. }
  5150. #endif /* GH_INLINE_LEVEL == 0 */
  5151. /*----------------------------------------------------------------------------*/
  5152. /* register EPHY_ADC (read/write) */
  5153. /*----------------------------------------------------------------------------*/
  5154. #if GH_INLINE_LEVEL == 0
  5155. /*! \brief Writes the register 'EPHY_ADC'. */
  5156. void GH_EPHY_set_ADC(U16 data);
  5157. /*! \brief Reads the register 'EPHY_ADC'. */
  5158. U16 GH_EPHY_get_ADC(void);
  5159. /*! \brief Writes the bit group 'adc_bp' of register 'EPHY_ADC'. */
  5160. void GH_EPHY_set_ADC_adc_bp(U8 data);
  5161. /*! \brief Reads the bit group 'adc_bp' of register 'EPHY_ADC'. */
  5162. U8 GH_EPHY_get_ADC_adc_bp(void);
  5163. /*! \brief Writes the bit group 'dac10t_testen' of register 'EPHY_ADC'. */
  5164. void GH_EPHY_set_ADC_dac10t_testen(U8 data);
  5165. /*! \brief Reads the bit group 'dac10t_testen' of register 'EPHY_ADC'. */
  5166. U8 GH_EPHY_get_ADC_dac10t_testen(void);
  5167. /*! \brief Writes the bit group 'reg_dac100t_testen' of register 'EPHY_ADC'. */
  5168. void GH_EPHY_set_ADC_reg_dac100t_testen(U8 data);
  5169. /*! \brief Reads the bit group 'reg_dac100t_testen' of register 'EPHY_ADC'. */
  5170. U8 GH_EPHY_get_ADC_reg_dac100t_testen(void);
  5171. /*! \brief Writes the bit group 'adc_bma' of register 'EPHY_ADC'. */
  5172. void GH_EPHY_set_ADC_adc_bma(U8 data);
  5173. /*! \brief Reads the bit group 'adc_bma' of register 'EPHY_ADC'. */
  5174. U8 GH_EPHY_get_ADC_adc_bma(void);
  5175. /*! \brief Writes the bit group 'adc_pd' of register 'EPHY_ADC'. */
  5176. void GH_EPHY_set_ADC_adc_pd(U8 data);
  5177. /*! \brief Reads the bit group 'adc_pd' of register 'EPHY_ADC'. */
  5178. U8 GH_EPHY_get_ADC_adc_pd(void);
  5179. /*! \brief Writes the bit group 'region_bank_rd' of register 'EPHY_ADC'. */
  5180. void GH_EPHY_set_ADC_region_bank_rd(U8 data);
  5181. /*! \brief Reads the bit group 'region_bank_rd' of register 'EPHY_ADC'. */
  5182. U8 GH_EPHY_get_ADC_region_bank_rd(void);
  5183. /*! \brief Writes the bit group 'adcpll_ana_clken' of register 'EPHY_ADC'. */
  5184. void GH_EPHY_set_ADC_adcpll_ana_clken(U8 data);
  5185. /*! \brief Reads the bit group 'adcpll_ana_clken' of register 'EPHY_ADC'. */
  5186. U8 GH_EPHY_get_ADC_adcpll_ana_clken(void);
  5187. /*! \brief Writes the bit group 'adcbin_testen' of register 'EPHY_ADC'. */
  5188. void GH_EPHY_set_ADC_adcbin_testen(U8 data);
  5189. /*! \brief Reads the bit group 'adcbin_testen' of register 'EPHY_ADC'. */
  5190. U8 GH_EPHY_get_ADC_adcbin_testen(void);
  5191. #else /* GH_INLINE_LEVEL == 0 */
  5192. GH_INLINE void GH_EPHY_set_ADC(U16 data)
  5193. {
  5194. *(volatile U16 *)REG_EPHY_ADC = data;
  5195. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5196. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADC] <-- 0x%08x\n",
  5197. REG_EPHY_ADC,data,data);
  5198. #endif
  5199. }
  5200. GH_INLINE U16 GH_EPHY_get_ADC(void)
  5201. {
  5202. U16 value = (*(volatile U16 *)REG_EPHY_ADC);
  5203. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5204. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADC] --> 0x%08x\n",
  5205. REG_EPHY_ADC,value);
  5206. #endif
  5207. return value;
  5208. }
  5209. GH_INLINE void GH_EPHY_set_ADC_adc_bp(U8 data)
  5210. {
  5211. GH_EPHY_ADC_S d;
  5212. d.all = *(volatile U16 *)REG_EPHY_ADC;
  5213. d.bitc.adc_bp = data;
  5214. *(volatile U16 *)REG_EPHY_ADC = d.all;
  5215. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5216. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADC_adc_bp] <-- 0x%08x\n",
  5217. REG_EPHY_ADC,d.all,d.all);
  5218. #endif
  5219. }
  5220. GH_INLINE U8 GH_EPHY_get_ADC_adc_bp(void)
  5221. {
  5222. GH_EPHY_ADC_S tmp_value;
  5223. U16 value = (*(volatile U16 *)REG_EPHY_ADC);
  5224. tmp_value.all = value;
  5225. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5226. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADC_adc_bp] --> 0x%08x\n",
  5227. REG_EPHY_ADC,value);
  5228. #endif
  5229. return tmp_value.bitc.adc_bp;
  5230. }
  5231. GH_INLINE void GH_EPHY_set_ADC_dac10t_testen(U8 data)
  5232. {
  5233. GH_EPHY_ADC_S d;
  5234. d.all = *(volatile U16 *)REG_EPHY_ADC;
  5235. d.bitc.dac10t_testen = data;
  5236. *(volatile U16 *)REG_EPHY_ADC = d.all;
  5237. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5238. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADC_dac10t_testen] <-- 0x%08x\n",
  5239. REG_EPHY_ADC,d.all,d.all);
  5240. #endif
  5241. }
  5242. GH_INLINE U8 GH_EPHY_get_ADC_dac10t_testen(void)
  5243. {
  5244. GH_EPHY_ADC_S tmp_value;
  5245. U16 value = (*(volatile U16 *)REG_EPHY_ADC);
  5246. tmp_value.all = value;
  5247. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5248. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADC_dac10t_testen] --> 0x%08x\n",
  5249. REG_EPHY_ADC,value);
  5250. #endif
  5251. return tmp_value.bitc.dac10t_testen;
  5252. }
  5253. GH_INLINE void GH_EPHY_set_ADC_reg_dac100t_testen(U8 data)
  5254. {
  5255. GH_EPHY_ADC_S d;
  5256. d.all = *(volatile U16 *)REG_EPHY_ADC;
  5257. d.bitc.reg_dac100t_testen = data;
  5258. *(volatile U16 *)REG_EPHY_ADC = d.all;
  5259. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5260. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADC_reg_dac100t_testen] <-- 0x%08x\n",
  5261. REG_EPHY_ADC,d.all,d.all);
  5262. #endif
  5263. }
  5264. GH_INLINE U8 GH_EPHY_get_ADC_reg_dac100t_testen(void)
  5265. {
  5266. GH_EPHY_ADC_S tmp_value;
  5267. U16 value = (*(volatile U16 *)REG_EPHY_ADC);
  5268. tmp_value.all = value;
  5269. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5270. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADC_reg_dac100t_testen] --> 0x%08x\n",
  5271. REG_EPHY_ADC,value);
  5272. #endif
  5273. return tmp_value.bitc.reg_dac100t_testen;
  5274. }
  5275. GH_INLINE void GH_EPHY_set_ADC_adc_bma(U8 data)
  5276. {
  5277. GH_EPHY_ADC_S d;
  5278. d.all = *(volatile U16 *)REG_EPHY_ADC;
  5279. d.bitc.adc_bma = data;
  5280. *(volatile U16 *)REG_EPHY_ADC = d.all;
  5281. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5282. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADC_adc_bma] <-- 0x%08x\n",
  5283. REG_EPHY_ADC,d.all,d.all);
  5284. #endif
  5285. }
  5286. GH_INLINE U8 GH_EPHY_get_ADC_adc_bma(void)
  5287. {
  5288. GH_EPHY_ADC_S tmp_value;
  5289. U16 value = (*(volatile U16 *)REG_EPHY_ADC);
  5290. tmp_value.all = value;
  5291. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5292. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADC_adc_bma] --> 0x%08x\n",
  5293. REG_EPHY_ADC,value);
  5294. #endif
  5295. return tmp_value.bitc.adc_bma;
  5296. }
  5297. GH_INLINE void GH_EPHY_set_ADC_adc_pd(U8 data)
  5298. {
  5299. GH_EPHY_ADC_S d;
  5300. d.all = *(volatile U16 *)REG_EPHY_ADC;
  5301. d.bitc.adc_pd = data;
  5302. *(volatile U16 *)REG_EPHY_ADC = d.all;
  5303. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5304. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADC_adc_pd] <-- 0x%08x\n",
  5305. REG_EPHY_ADC,d.all,d.all);
  5306. #endif
  5307. }
  5308. GH_INLINE U8 GH_EPHY_get_ADC_adc_pd(void)
  5309. {
  5310. GH_EPHY_ADC_S tmp_value;
  5311. U16 value = (*(volatile U16 *)REG_EPHY_ADC);
  5312. tmp_value.all = value;
  5313. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5314. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADC_adc_pd] --> 0x%08x\n",
  5315. REG_EPHY_ADC,value);
  5316. #endif
  5317. return tmp_value.bitc.adc_pd;
  5318. }
  5319. GH_INLINE void GH_EPHY_set_ADC_region_bank_rd(U8 data)
  5320. {
  5321. GH_EPHY_ADC_S d;
  5322. d.all = *(volatile U16 *)REG_EPHY_ADC;
  5323. d.bitc.region_bank_rd = data;
  5324. *(volatile U16 *)REG_EPHY_ADC = d.all;
  5325. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5326. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADC_region_bank_rd] <-- 0x%08x\n",
  5327. REG_EPHY_ADC,d.all,d.all);
  5328. #endif
  5329. }
  5330. GH_INLINE U8 GH_EPHY_get_ADC_region_bank_rd(void)
  5331. {
  5332. GH_EPHY_ADC_S tmp_value;
  5333. U16 value = (*(volatile U16 *)REG_EPHY_ADC);
  5334. tmp_value.all = value;
  5335. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5336. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADC_region_bank_rd] --> 0x%08x\n",
  5337. REG_EPHY_ADC,value);
  5338. #endif
  5339. return tmp_value.bitc.region_bank_rd;
  5340. }
  5341. GH_INLINE void GH_EPHY_set_ADC_adcpll_ana_clken(U8 data)
  5342. {
  5343. GH_EPHY_ADC_S d;
  5344. d.all = *(volatile U16 *)REG_EPHY_ADC;
  5345. d.bitc.adcpll_ana_clken = data;
  5346. *(volatile U16 *)REG_EPHY_ADC = d.all;
  5347. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5348. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADC_adcpll_ana_clken] <-- 0x%08x\n",
  5349. REG_EPHY_ADC,d.all,d.all);
  5350. #endif
  5351. }
  5352. GH_INLINE U8 GH_EPHY_get_ADC_adcpll_ana_clken(void)
  5353. {
  5354. GH_EPHY_ADC_S tmp_value;
  5355. U16 value = (*(volatile U16 *)REG_EPHY_ADC);
  5356. tmp_value.all = value;
  5357. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5358. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADC_adcpll_ana_clken] --> 0x%08x\n",
  5359. REG_EPHY_ADC,value);
  5360. #endif
  5361. return tmp_value.bitc.adcpll_ana_clken;
  5362. }
  5363. GH_INLINE void GH_EPHY_set_ADC_adcbin_testen(U8 data)
  5364. {
  5365. GH_EPHY_ADC_S d;
  5366. d.all = *(volatile U16 *)REG_EPHY_ADC;
  5367. d.bitc.adcbin_testen = data;
  5368. *(volatile U16 *)REG_EPHY_ADC = d.all;
  5369. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5370. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADC_adcbin_testen] <-- 0x%08x\n",
  5371. REG_EPHY_ADC,d.all,d.all);
  5372. #endif
  5373. }
  5374. GH_INLINE U8 GH_EPHY_get_ADC_adcbin_testen(void)
  5375. {
  5376. GH_EPHY_ADC_S tmp_value;
  5377. U16 value = (*(volatile U16 *)REG_EPHY_ADC);
  5378. tmp_value.all = value;
  5379. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5380. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADC_adcbin_testen] --> 0x%08x\n",
  5381. REG_EPHY_ADC,value);
  5382. #endif
  5383. return tmp_value.bitc.adcbin_testen;
  5384. }
  5385. #endif /* GH_INLINE_LEVEL == 0 */
  5386. /*----------------------------------------------------------------------------*/
  5387. /* register EPHY_PLL_ADC_CTRL3 (read/write) */
  5388. /*----------------------------------------------------------------------------*/
  5389. #if GH_INLINE_LEVEL == 0
  5390. /*! \brief Writes the register 'EPHY_PLL_ADC_CTRL3'. */
  5391. void GH_EPHY_set_PLL_ADC_CTRL3(U16 data);
  5392. /*! \brief Reads the register 'EPHY_PLL_ADC_CTRL3'. */
  5393. U16 GH_EPHY_get_PLL_ADC_CTRL3(void);
  5394. /*! \brief Writes the bit group 'rxlpf_pd' of register 'EPHY_PLL_ADC_CTRL3'. */
  5395. void GH_EPHY_set_PLL_ADC_CTRL3_rxlpf_pd(U8 data);
  5396. /*! \brief Reads the bit group 'rxlpf_pd' of register 'EPHY_PLL_ADC_CTRL3'. */
  5397. U8 GH_EPHY_get_PLL_ADC_CTRL3_rxlpf_pd(void);
  5398. /*! \brief Writes the bit group 'tx_b_test' of register 'EPHY_PLL_ADC_CTRL3'. */
  5399. void GH_EPHY_set_PLL_ADC_CTRL3_tx_b_test(U8 data);
  5400. /*! \brief Reads the bit group 'tx_b_test' of register 'EPHY_PLL_ADC_CTRL3'. */
  5401. U8 GH_EPHY_get_PLL_ADC_CTRL3_tx_b_test(void);
  5402. #else /* GH_INLINE_LEVEL == 0 */
  5403. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL3(U16 data)
  5404. {
  5405. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL3 = data;
  5406. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5407. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL3] <-- 0x%08x\n",
  5408. REG_EPHY_PLL_ADC_CTRL3,data,data);
  5409. #endif
  5410. }
  5411. GH_INLINE U16 GH_EPHY_get_PLL_ADC_CTRL3(void)
  5412. {
  5413. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL3);
  5414. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5415. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL3] --> 0x%08x\n",
  5416. REG_EPHY_PLL_ADC_CTRL3,value);
  5417. #endif
  5418. return value;
  5419. }
  5420. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL3_rxlpf_pd(U8 data)
  5421. {
  5422. GH_EPHY_PLL_ADC_CTRL3_S d;
  5423. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL3;
  5424. d.bitc.rxlpf_pd = data;
  5425. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL3 = d.all;
  5426. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5427. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL3_rxlpf_pd] <-- 0x%08x\n",
  5428. REG_EPHY_PLL_ADC_CTRL3,d.all,d.all);
  5429. #endif
  5430. }
  5431. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL3_rxlpf_pd(void)
  5432. {
  5433. GH_EPHY_PLL_ADC_CTRL3_S tmp_value;
  5434. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL3);
  5435. tmp_value.all = value;
  5436. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5437. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL3_rxlpf_pd] --> 0x%08x\n",
  5438. REG_EPHY_PLL_ADC_CTRL3,value);
  5439. #endif
  5440. return tmp_value.bitc.rxlpf_pd;
  5441. }
  5442. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL3_tx_b_test(U8 data)
  5443. {
  5444. GH_EPHY_PLL_ADC_CTRL3_S d;
  5445. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL3;
  5446. d.bitc.tx_b_test = data;
  5447. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL3 = d.all;
  5448. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5449. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL3_tx_b_test] <-- 0x%08x\n",
  5450. REG_EPHY_PLL_ADC_CTRL3,d.all,d.all);
  5451. #endif
  5452. }
  5453. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL3_tx_b_test(void)
  5454. {
  5455. GH_EPHY_PLL_ADC_CTRL3_S tmp_value;
  5456. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL3);
  5457. tmp_value.all = value;
  5458. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5459. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL3_tx_b_test] --> 0x%08x\n",
  5460. REG_EPHY_PLL_ADC_CTRL3,value);
  5461. #endif
  5462. return tmp_value.bitc.tx_b_test;
  5463. }
  5464. #endif /* GH_INLINE_LEVEL == 0 */
  5465. /*----------------------------------------------------------------------------*/
  5466. /* register EPHY_RX_LPF (read/write) */
  5467. /*----------------------------------------------------------------------------*/
  5468. #if GH_INLINE_LEVEL == 0
  5469. /*! \brief Writes the register 'EPHY_RX_LPF'. */
  5470. void GH_EPHY_set_RX_LPF(U16 data);
  5471. /*! \brief Reads the register 'EPHY_RX_LPF'. */
  5472. U16 GH_EPHY_get_RX_LPF(void);
  5473. /*! \brief Writes the bit group 'rxlpf_ibsel' of register 'EPHY_RX_LPF'. */
  5474. void GH_EPHY_set_RX_LPF_rxlpf_ibsel(U8 data);
  5475. /*! \brief Reads the bit group 'rxlpf_ibsel' of register 'EPHY_RX_LPF'. */
  5476. U8 GH_EPHY_get_RX_LPF_rxlpf_ibsel(void);
  5477. /*! \brief Writes the bit group 'rxlpf_bwsel' of register 'EPHY_RX_LPF'. */
  5478. void GH_EPHY_set_RX_LPF_rxlpf_bwsel(U8 data);
  5479. /*! \brief Reads the bit group 'rxlpf_bwsel' of register 'EPHY_RX_LPF'. */
  5480. U8 GH_EPHY_get_RX_LPF_rxlpf_bwsel(void);
  5481. /*! \brief Writes the bit group 'unkown' of register 'EPHY_RX_LPF'. */
  5482. void GH_EPHY_set_RX_LPF_unkown(U8 data);
  5483. /*! \brief Reads the bit group 'unkown' of register 'EPHY_RX_LPF'. */
  5484. U8 GH_EPHY_get_RX_LPF_unkown(void);
  5485. /*! \brief Writes the bit group 'rxlpf_cmsel' of register 'EPHY_RX_LPF'. */
  5486. void GH_EPHY_set_RX_LPF_rxlpf_cmsel(U8 data);
  5487. /*! \brief Reads the bit group 'rxlpf_cmsel' of register 'EPHY_RX_LPF'. */
  5488. U8 GH_EPHY_get_RX_LPF_rxlpf_cmsel(void);
  5489. /*! \brief Writes the bit group 'rxlpf_outp_test' of register 'EPHY_RX_LPF'. */
  5490. void GH_EPHY_set_RX_LPF_rxlpf_outp_test(U8 data);
  5491. /*! \brief Reads the bit group 'rxlpf_outp_test' of register 'EPHY_RX_LPF'. */
  5492. U8 GH_EPHY_get_RX_LPF_rxlpf_outp_test(void);
  5493. /*! \brief Writes the bit group 'rxlpf_outm_test' of register 'EPHY_RX_LPF'. */
  5494. void GH_EPHY_set_RX_LPF_rxlpf_outm_test(U8 data);
  5495. /*! \brief Reads the bit group 'rxlpf_outm_test' of register 'EPHY_RX_LPF'. */
  5496. U8 GH_EPHY_get_RX_LPF_rxlpf_outm_test(void);
  5497. /*! \brief Writes the bit group 'rxlpf_bypass' of register 'EPHY_RX_LPF'. */
  5498. void GH_EPHY_set_RX_LPF_rxlpf_bypass(U8 data);
  5499. /*! \brief Reads the bit group 'rxlpf_bypass' of register 'EPHY_RX_LPF'. */
  5500. U8 GH_EPHY_get_RX_LPF_rxlpf_bypass(void);
  5501. /*! \brief Writes the bit group 'ref_pd' of register 'EPHY_RX_LPF'. */
  5502. void GH_EPHY_set_RX_LPF_ref_pd(U8 data);
  5503. /*! \brief Reads the bit group 'ref_pd' of register 'EPHY_RX_LPF'. */
  5504. U8 GH_EPHY_get_RX_LPF_ref_pd(void);
  5505. /*! \brief Writes the bit group 'ref_iint_pd' of register 'EPHY_RX_LPF'. */
  5506. void GH_EPHY_set_RX_LPF_ref_iint_pd(U8 data);
  5507. /*! \brief Reads the bit group 'ref_iint_pd' of register 'EPHY_RX_LPF'. */
  5508. U8 GH_EPHY_get_RX_LPF_ref_iint_pd(void);
  5509. #else /* GH_INLINE_LEVEL == 0 */
  5510. GH_INLINE void GH_EPHY_set_RX_LPF(U16 data)
  5511. {
  5512. *(volatile U16 *)REG_EPHY_RX_LPF = data;
  5513. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5514. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_RX_LPF] <-- 0x%08x\n",
  5515. REG_EPHY_RX_LPF,data,data);
  5516. #endif
  5517. }
  5518. GH_INLINE U16 GH_EPHY_get_RX_LPF(void)
  5519. {
  5520. U16 value = (*(volatile U16 *)REG_EPHY_RX_LPF);
  5521. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5522. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_RX_LPF] --> 0x%08x\n",
  5523. REG_EPHY_RX_LPF,value);
  5524. #endif
  5525. return value;
  5526. }
  5527. GH_INLINE void GH_EPHY_set_RX_LPF_rxlpf_ibsel(U8 data)
  5528. {
  5529. GH_EPHY_RX_LPF_S d;
  5530. d.all = *(volatile U16 *)REG_EPHY_RX_LPF;
  5531. d.bitc.rxlpf_ibsel = data;
  5532. *(volatile U16 *)REG_EPHY_RX_LPF = d.all;
  5533. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5534. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_RX_LPF_rxlpf_ibsel] <-- 0x%08x\n",
  5535. REG_EPHY_RX_LPF,d.all,d.all);
  5536. #endif
  5537. }
  5538. GH_INLINE U8 GH_EPHY_get_RX_LPF_rxlpf_ibsel(void)
  5539. {
  5540. GH_EPHY_RX_LPF_S tmp_value;
  5541. U16 value = (*(volatile U16 *)REG_EPHY_RX_LPF);
  5542. tmp_value.all = value;
  5543. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5544. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_RX_LPF_rxlpf_ibsel] --> 0x%08x\n",
  5545. REG_EPHY_RX_LPF,value);
  5546. #endif
  5547. return tmp_value.bitc.rxlpf_ibsel;
  5548. }
  5549. GH_INLINE void GH_EPHY_set_RX_LPF_rxlpf_bwsel(U8 data)
  5550. {
  5551. GH_EPHY_RX_LPF_S d;
  5552. d.all = *(volatile U16 *)REG_EPHY_RX_LPF;
  5553. d.bitc.rxlpf_bwsel = data;
  5554. *(volatile U16 *)REG_EPHY_RX_LPF = d.all;
  5555. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5556. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_RX_LPF_rxlpf_bwsel] <-- 0x%08x\n",
  5557. REG_EPHY_RX_LPF,d.all,d.all);
  5558. #endif
  5559. }
  5560. GH_INLINE U8 GH_EPHY_get_RX_LPF_rxlpf_bwsel(void)
  5561. {
  5562. GH_EPHY_RX_LPF_S tmp_value;
  5563. U16 value = (*(volatile U16 *)REG_EPHY_RX_LPF);
  5564. tmp_value.all = value;
  5565. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5566. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_RX_LPF_rxlpf_bwsel] --> 0x%08x\n",
  5567. REG_EPHY_RX_LPF,value);
  5568. #endif
  5569. return tmp_value.bitc.rxlpf_bwsel;
  5570. }
  5571. GH_INLINE void GH_EPHY_set_RX_LPF_unkown(U8 data)
  5572. {
  5573. GH_EPHY_RX_LPF_S d;
  5574. d.all = *(volatile U16 *)REG_EPHY_RX_LPF;
  5575. d.bitc.unkown = data;
  5576. *(volatile U16 *)REG_EPHY_RX_LPF = d.all;
  5577. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5578. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_RX_LPF_unkown] <-- 0x%08x\n",
  5579. REG_EPHY_RX_LPF,d.all,d.all);
  5580. #endif
  5581. }
  5582. GH_INLINE U8 GH_EPHY_get_RX_LPF_unkown(void)
  5583. {
  5584. GH_EPHY_RX_LPF_S tmp_value;
  5585. U16 value = (*(volatile U16 *)REG_EPHY_RX_LPF);
  5586. tmp_value.all = value;
  5587. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5588. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_RX_LPF_unkown] --> 0x%08x\n",
  5589. REG_EPHY_RX_LPF,value);
  5590. #endif
  5591. return tmp_value.bitc.unkown;
  5592. }
  5593. GH_INLINE void GH_EPHY_set_RX_LPF_rxlpf_cmsel(U8 data)
  5594. {
  5595. GH_EPHY_RX_LPF_S d;
  5596. d.all = *(volatile U16 *)REG_EPHY_RX_LPF;
  5597. d.bitc.rxlpf_cmsel = data;
  5598. *(volatile U16 *)REG_EPHY_RX_LPF = d.all;
  5599. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5600. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_RX_LPF_rxlpf_cmsel] <-- 0x%08x\n",
  5601. REG_EPHY_RX_LPF,d.all,d.all);
  5602. #endif
  5603. }
  5604. GH_INLINE U8 GH_EPHY_get_RX_LPF_rxlpf_cmsel(void)
  5605. {
  5606. GH_EPHY_RX_LPF_S tmp_value;
  5607. U16 value = (*(volatile U16 *)REG_EPHY_RX_LPF);
  5608. tmp_value.all = value;
  5609. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5610. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_RX_LPF_rxlpf_cmsel] --> 0x%08x\n",
  5611. REG_EPHY_RX_LPF,value);
  5612. #endif
  5613. return tmp_value.bitc.rxlpf_cmsel;
  5614. }
  5615. GH_INLINE void GH_EPHY_set_RX_LPF_rxlpf_outp_test(U8 data)
  5616. {
  5617. GH_EPHY_RX_LPF_S d;
  5618. d.all = *(volatile U16 *)REG_EPHY_RX_LPF;
  5619. d.bitc.rxlpf_outp_test = data;
  5620. *(volatile U16 *)REG_EPHY_RX_LPF = d.all;
  5621. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5622. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_RX_LPF_rxlpf_outp_test] <-- 0x%08x\n",
  5623. REG_EPHY_RX_LPF,d.all,d.all);
  5624. #endif
  5625. }
  5626. GH_INLINE U8 GH_EPHY_get_RX_LPF_rxlpf_outp_test(void)
  5627. {
  5628. GH_EPHY_RX_LPF_S tmp_value;
  5629. U16 value = (*(volatile U16 *)REG_EPHY_RX_LPF);
  5630. tmp_value.all = value;
  5631. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5632. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_RX_LPF_rxlpf_outp_test] --> 0x%08x\n",
  5633. REG_EPHY_RX_LPF,value);
  5634. #endif
  5635. return tmp_value.bitc.rxlpf_outp_test;
  5636. }
  5637. GH_INLINE void GH_EPHY_set_RX_LPF_rxlpf_outm_test(U8 data)
  5638. {
  5639. GH_EPHY_RX_LPF_S d;
  5640. d.all = *(volatile U16 *)REG_EPHY_RX_LPF;
  5641. d.bitc.rxlpf_outm_test = data;
  5642. *(volatile U16 *)REG_EPHY_RX_LPF = d.all;
  5643. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5644. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_RX_LPF_rxlpf_outm_test] <-- 0x%08x\n",
  5645. REG_EPHY_RX_LPF,d.all,d.all);
  5646. #endif
  5647. }
  5648. GH_INLINE U8 GH_EPHY_get_RX_LPF_rxlpf_outm_test(void)
  5649. {
  5650. GH_EPHY_RX_LPF_S tmp_value;
  5651. U16 value = (*(volatile U16 *)REG_EPHY_RX_LPF);
  5652. tmp_value.all = value;
  5653. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5654. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_RX_LPF_rxlpf_outm_test] --> 0x%08x\n",
  5655. REG_EPHY_RX_LPF,value);
  5656. #endif
  5657. return tmp_value.bitc.rxlpf_outm_test;
  5658. }
  5659. GH_INLINE void GH_EPHY_set_RX_LPF_rxlpf_bypass(U8 data)
  5660. {
  5661. GH_EPHY_RX_LPF_S d;
  5662. d.all = *(volatile U16 *)REG_EPHY_RX_LPF;
  5663. d.bitc.rxlpf_bypass = data;
  5664. *(volatile U16 *)REG_EPHY_RX_LPF = d.all;
  5665. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5666. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_RX_LPF_rxlpf_bypass] <-- 0x%08x\n",
  5667. REG_EPHY_RX_LPF,d.all,d.all);
  5668. #endif
  5669. }
  5670. GH_INLINE U8 GH_EPHY_get_RX_LPF_rxlpf_bypass(void)
  5671. {
  5672. GH_EPHY_RX_LPF_S tmp_value;
  5673. U16 value = (*(volatile U16 *)REG_EPHY_RX_LPF);
  5674. tmp_value.all = value;
  5675. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5676. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_RX_LPF_rxlpf_bypass] --> 0x%08x\n",
  5677. REG_EPHY_RX_LPF,value);
  5678. #endif
  5679. return tmp_value.bitc.rxlpf_bypass;
  5680. }
  5681. GH_INLINE void GH_EPHY_set_RX_LPF_ref_pd(U8 data)
  5682. {
  5683. GH_EPHY_RX_LPF_S d;
  5684. d.all = *(volatile U16 *)REG_EPHY_RX_LPF;
  5685. d.bitc.ref_pd = data;
  5686. *(volatile U16 *)REG_EPHY_RX_LPF = d.all;
  5687. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5688. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_RX_LPF_ref_pd] <-- 0x%08x\n",
  5689. REG_EPHY_RX_LPF,d.all,d.all);
  5690. #endif
  5691. }
  5692. GH_INLINE U8 GH_EPHY_get_RX_LPF_ref_pd(void)
  5693. {
  5694. GH_EPHY_RX_LPF_S tmp_value;
  5695. U16 value = (*(volatile U16 *)REG_EPHY_RX_LPF);
  5696. tmp_value.all = value;
  5697. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5698. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_RX_LPF_ref_pd] --> 0x%08x\n",
  5699. REG_EPHY_RX_LPF,value);
  5700. #endif
  5701. return tmp_value.bitc.ref_pd;
  5702. }
  5703. GH_INLINE void GH_EPHY_set_RX_LPF_ref_iint_pd(U8 data)
  5704. {
  5705. GH_EPHY_RX_LPF_S d;
  5706. d.all = *(volatile U16 *)REG_EPHY_RX_LPF;
  5707. d.bitc.ref_iint_pd = data;
  5708. *(volatile U16 *)REG_EPHY_RX_LPF = d.all;
  5709. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5710. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_RX_LPF_ref_iint_pd] <-- 0x%08x\n",
  5711. REG_EPHY_RX_LPF,d.all,d.all);
  5712. #endif
  5713. }
  5714. GH_INLINE U8 GH_EPHY_get_RX_LPF_ref_iint_pd(void)
  5715. {
  5716. GH_EPHY_RX_LPF_S tmp_value;
  5717. U16 value = (*(volatile U16 *)REG_EPHY_RX_LPF);
  5718. tmp_value.all = value;
  5719. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5720. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_RX_LPF_ref_iint_pd] --> 0x%08x\n",
  5721. REG_EPHY_RX_LPF,value);
  5722. #endif
  5723. return tmp_value.bitc.ref_iint_pd;
  5724. }
  5725. #endif /* GH_INLINE_LEVEL == 0 */
  5726. /*----------------------------------------------------------------------------*/
  5727. /* register EPHY_PLL_ADC_CTRL0 (read/write) */
  5728. /*----------------------------------------------------------------------------*/
  5729. #if GH_INLINE_LEVEL == 0
  5730. /*! \brief Writes the register 'EPHY_PLL_ADC_CTRL0'. */
  5731. void GH_EPHY_set_PLL_ADC_CTRL0(U16 data);
  5732. /*! \brief Reads the register 'EPHY_PLL_ADC_CTRL0'. */
  5733. U16 GH_EPHY_get_PLL_ADC_CTRL0(void);
  5734. /*! \brief Writes the bit group 'ro_adcpl_lock' of register 'EPHY_PLL_ADC_CTRL0'. */
  5735. void GH_EPHY_set_PLL_ADC_CTRL0_ro_adcpl_lock(U8 data);
  5736. /*! \brief Reads the bit group 'ro_adcpl_lock' of register 'EPHY_PLL_ADC_CTRL0'. */
  5737. U8 GH_EPHY_get_PLL_ADC_CTRL0_ro_adcpl_lock(void);
  5738. /*! \brief Writes the bit group 'gcr_adcpl_div' of register 'EPHY_PLL_ADC_CTRL0'. */
  5739. void GH_EPHY_set_PLL_ADC_CTRL0_gcr_adcpl_div(U8 data);
  5740. /*! \brief Reads the bit group 'gcr_adcpl_div' of register 'EPHY_PLL_ADC_CTRL0'. */
  5741. U8 GH_EPHY_get_PLL_ADC_CTRL0_gcr_adcpl_div(void);
  5742. /*! \brief Writes the bit group 'test_adcpl_extcksel' of register 'EPHY_PLL_ADC_CTRL0'. */
  5743. void GH_EPHY_set_PLL_ADC_CTRL0_test_adcpl_extcksel(U8 data);
  5744. /*! \brief Reads the bit group 'test_adcpl_extcksel' of register 'EPHY_PLL_ADC_CTRL0'. */
  5745. U8 GH_EPHY_get_PLL_ADC_CTRL0_test_adcpl_extcksel(void);
  5746. /*! \brief Writes the bit group 'ro_adcpl_high_flag' of register 'EPHY_PLL_ADC_CTRL0'. */
  5747. void GH_EPHY_set_PLL_ADC_CTRL0_ro_adcpl_high_flag(U8 data);
  5748. /*! \brief Reads the bit group 'ro_adcpl_high_flag' of register 'EPHY_PLL_ADC_CTRL0'. */
  5749. U8 GH_EPHY_get_PLL_ADC_CTRL0_ro_adcpl_high_flag(void);
  5750. /*! \brief Writes the bit group 'pllclk_outen' of register 'EPHY_PLL_ADC_CTRL0'. */
  5751. void GH_EPHY_set_PLL_ADC_CTRL0_pllclk_outen(U8 data);
  5752. /*! \brief Reads the bit group 'pllclk_outen' of register 'EPHY_PLL_ADC_CTRL0'. */
  5753. U8 GH_EPHY_get_PLL_ADC_CTRL0_pllclk_outen(void);
  5754. /*! \brief Writes the bit group 'ov_ref_test' of register 'EPHY_PLL_ADC_CTRL0'. */
  5755. void GH_EPHY_set_PLL_ADC_CTRL0_ov_ref_test(U8 data);
  5756. /*! \brief Reads the bit group 'ov_ref_test' of register 'EPHY_PLL_ADC_CTRL0'. */
  5757. U8 GH_EPHY_get_PLL_ADC_CTRL0_ov_ref_test(void);
  5758. /*! \brief Writes the bit group 'gc_adcpl_rstb' of register 'EPHY_PLL_ADC_CTRL0'. */
  5759. void GH_EPHY_set_PLL_ADC_CTRL0_gc_adcpl_rstb(U8 data);
  5760. /*! \brief Reads the bit group 'gc_adcpl_rstb' of register 'EPHY_PLL_ADC_CTRL0'. */
  5761. U8 GH_EPHY_get_PLL_ADC_CTRL0_gc_adcpl_rstb(void);
  5762. /*! \brief Writes the bit group 'ref_bgap_pd' of register 'EPHY_PLL_ADC_CTRL0'. */
  5763. void GH_EPHY_set_PLL_ADC_CTRL0_ref_bgap_pd(U8 data);
  5764. /*! \brief Reads the bit group 'ref_bgap_pd' of register 'EPHY_PLL_ADC_CTRL0'. */
  5765. U8 GH_EPHY_get_PLL_ADC_CTRL0_ref_bgap_pd(void);
  5766. /*! \brief Writes the bit group 'adcraw_tst' of register 'EPHY_PLL_ADC_CTRL0'. */
  5767. void GH_EPHY_set_PLL_ADC_CTRL0_adcraw_tst(U8 data);
  5768. /*! \brief Reads the bit group 'adcraw_tst' of register 'EPHY_PLL_ADC_CTRL0'. */
  5769. U8 GH_EPHY_get_PLL_ADC_CTRL0_adcraw_tst(void);
  5770. /*! \brief Writes the bit group 'adcraw_tst_sw' of register 'EPHY_PLL_ADC_CTRL0'. */
  5771. void GH_EPHY_set_PLL_ADC_CTRL0_adcraw_tst_sw(U8 data);
  5772. /*! \brief Reads the bit group 'adcraw_tst_sw' of register 'EPHY_PLL_ADC_CTRL0'. */
  5773. U8 GH_EPHY_get_PLL_ADC_CTRL0_adcraw_tst_sw(void);
  5774. /*! \brief Writes the bit group 'ldo_pwrgd' of register 'EPHY_PLL_ADC_CTRL0'. */
  5775. void GH_EPHY_set_PLL_ADC_CTRL0_ldo_pwrgd(U8 data);
  5776. /*! \brief Reads the bit group 'ldo_pwrgd' of register 'EPHY_PLL_ADC_CTRL0'. */
  5777. U8 GH_EPHY_get_PLL_ADC_CTRL0_ldo_pwrgd(void);
  5778. /*! \brief Writes the bit group 'adcraw_overflow' of register 'EPHY_PLL_ADC_CTRL0'. */
  5779. void GH_EPHY_set_PLL_ADC_CTRL0_adcraw_overflow(U8 data);
  5780. /*! \brief Reads the bit group 'adcraw_overflow' of register 'EPHY_PLL_ADC_CTRL0'. */
  5781. U8 GH_EPHY_get_PLL_ADC_CTRL0_adcraw_overflow(void);
  5782. /*! \brief Writes the bit group 'adcpl_force_phase' of register 'EPHY_PLL_ADC_CTRL0'. */
  5783. void GH_EPHY_set_PLL_ADC_CTRL0_adcpl_force_phase(U8 data);
  5784. /*! \brief Reads the bit group 'adcpl_force_phase' of register 'EPHY_PLL_ADC_CTRL0'. */
  5785. U8 GH_EPHY_get_PLL_ADC_CTRL0_adcpl_force_phase(void);
  5786. /*! \brief Writes the bit group 'gcr_adcpl_tog_clkcc' of register 'EPHY_PLL_ADC_CTRL0'. */
  5787. void GH_EPHY_set_PLL_ADC_CTRL0_gcr_adcpl_tog_clkcc(U8 data);
  5788. /*! \brief Reads the bit group 'gcr_adcpl_tog_clkcc' of register 'EPHY_PLL_ADC_CTRL0'. */
  5789. U8 GH_EPHY_get_PLL_ADC_CTRL0_gcr_adcpl_tog_clkcc(void);
  5790. #else /* GH_INLINE_LEVEL == 0 */
  5791. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL0(U16 data)
  5792. {
  5793. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0 = data;
  5794. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5795. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL0] <-- 0x%08x\n",
  5796. REG_EPHY_PLL_ADC_CTRL0,data,data);
  5797. #endif
  5798. }
  5799. GH_INLINE U16 GH_EPHY_get_PLL_ADC_CTRL0(void)
  5800. {
  5801. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0);
  5802. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5803. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL0] --> 0x%08x\n",
  5804. REG_EPHY_PLL_ADC_CTRL0,value);
  5805. #endif
  5806. return value;
  5807. }
  5808. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL0_ro_adcpl_lock(U8 data)
  5809. {
  5810. GH_EPHY_PLL_ADC_CTRL0_S d;
  5811. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0;
  5812. d.bitc.ro_adcpl_lock = data;
  5813. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0 = d.all;
  5814. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5815. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL0_ro_adcpl_lock] <-- 0x%08x\n",
  5816. REG_EPHY_PLL_ADC_CTRL0,d.all,d.all);
  5817. #endif
  5818. }
  5819. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL0_ro_adcpl_lock(void)
  5820. {
  5821. GH_EPHY_PLL_ADC_CTRL0_S tmp_value;
  5822. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0);
  5823. tmp_value.all = value;
  5824. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5825. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL0_ro_adcpl_lock] --> 0x%08x\n",
  5826. REG_EPHY_PLL_ADC_CTRL0,value);
  5827. #endif
  5828. return tmp_value.bitc.ro_adcpl_lock;
  5829. }
  5830. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL0_gcr_adcpl_div(U8 data)
  5831. {
  5832. GH_EPHY_PLL_ADC_CTRL0_S d;
  5833. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0;
  5834. d.bitc.gcr_adcpl_div = data;
  5835. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0 = d.all;
  5836. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5837. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL0_gcr_adcpl_div] <-- 0x%08x\n",
  5838. REG_EPHY_PLL_ADC_CTRL0,d.all,d.all);
  5839. #endif
  5840. }
  5841. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL0_gcr_adcpl_div(void)
  5842. {
  5843. GH_EPHY_PLL_ADC_CTRL0_S tmp_value;
  5844. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0);
  5845. tmp_value.all = value;
  5846. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5847. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL0_gcr_adcpl_div] --> 0x%08x\n",
  5848. REG_EPHY_PLL_ADC_CTRL0,value);
  5849. #endif
  5850. return tmp_value.bitc.gcr_adcpl_div;
  5851. }
  5852. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL0_test_adcpl_extcksel(U8 data)
  5853. {
  5854. GH_EPHY_PLL_ADC_CTRL0_S d;
  5855. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0;
  5856. d.bitc.test_adcpl_extcksel = data;
  5857. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0 = d.all;
  5858. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5859. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL0_test_adcpl_extcksel] <-- 0x%08x\n",
  5860. REG_EPHY_PLL_ADC_CTRL0,d.all,d.all);
  5861. #endif
  5862. }
  5863. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL0_test_adcpl_extcksel(void)
  5864. {
  5865. GH_EPHY_PLL_ADC_CTRL0_S tmp_value;
  5866. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0);
  5867. tmp_value.all = value;
  5868. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5869. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL0_test_adcpl_extcksel] --> 0x%08x\n",
  5870. REG_EPHY_PLL_ADC_CTRL0,value);
  5871. #endif
  5872. return tmp_value.bitc.test_adcpl_extcksel;
  5873. }
  5874. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL0_ro_adcpl_high_flag(U8 data)
  5875. {
  5876. GH_EPHY_PLL_ADC_CTRL0_S d;
  5877. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0;
  5878. d.bitc.ro_adcpl_high_flag = data;
  5879. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0 = d.all;
  5880. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5881. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL0_ro_adcpl_high_flag] <-- 0x%08x\n",
  5882. REG_EPHY_PLL_ADC_CTRL0,d.all,d.all);
  5883. #endif
  5884. }
  5885. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL0_ro_adcpl_high_flag(void)
  5886. {
  5887. GH_EPHY_PLL_ADC_CTRL0_S tmp_value;
  5888. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0);
  5889. tmp_value.all = value;
  5890. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5891. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL0_ro_adcpl_high_flag] --> 0x%08x\n",
  5892. REG_EPHY_PLL_ADC_CTRL0,value);
  5893. #endif
  5894. return tmp_value.bitc.ro_adcpl_high_flag;
  5895. }
  5896. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL0_pllclk_outen(U8 data)
  5897. {
  5898. GH_EPHY_PLL_ADC_CTRL0_S d;
  5899. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0;
  5900. d.bitc.pllclk_outen = data;
  5901. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0 = d.all;
  5902. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5903. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL0_pllclk_outen] <-- 0x%08x\n",
  5904. REG_EPHY_PLL_ADC_CTRL0,d.all,d.all);
  5905. #endif
  5906. }
  5907. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL0_pllclk_outen(void)
  5908. {
  5909. GH_EPHY_PLL_ADC_CTRL0_S tmp_value;
  5910. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0);
  5911. tmp_value.all = value;
  5912. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5913. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL0_pllclk_outen] --> 0x%08x\n",
  5914. REG_EPHY_PLL_ADC_CTRL0,value);
  5915. #endif
  5916. return tmp_value.bitc.pllclk_outen;
  5917. }
  5918. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL0_ov_ref_test(U8 data)
  5919. {
  5920. GH_EPHY_PLL_ADC_CTRL0_S d;
  5921. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0;
  5922. d.bitc.ov_ref_test = data;
  5923. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0 = d.all;
  5924. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5925. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL0_ov_ref_test] <-- 0x%08x\n",
  5926. REG_EPHY_PLL_ADC_CTRL0,d.all,d.all);
  5927. #endif
  5928. }
  5929. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL0_ov_ref_test(void)
  5930. {
  5931. GH_EPHY_PLL_ADC_CTRL0_S tmp_value;
  5932. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0);
  5933. tmp_value.all = value;
  5934. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5935. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL0_ov_ref_test] --> 0x%08x\n",
  5936. REG_EPHY_PLL_ADC_CTRL0,value);
  5937. #endif
  5938. return tmp_value.bitc.ov_ref_test;
  5939. }
  5940. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL0_gc_adcpl_rstb(U8 data)
  5941. {
  5942. GH_EPHY_PLL_ADC_CTRL0_S d;
  5943. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0;
  5944. d.bitc.gc_adcpl_rstb = data;
  5945. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0 = d.all;
  5946. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5947. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL0_gc_adcpl_rstb] <-- 0x%08x\n",
  5948. REG_EPHY_PLL_ADC_CTRL0,d.all,d.all);
  5949. #endif
  5950. }
  5951. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL0_gc_adcpl_rstb(void)
  5952. {
  5953. GH_EPHY_PLL_ADC_CTRL0_S tmp_value;
  5954. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0);
  5955. tmp_value.all = value;
  5956. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5957. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL0_gc_adcpl_rstb] --> 0x%08x\n",
  5958. REG_EPHY_PLL_ADC_CTRL0,value);
  5959. #endif
  5960. return tmp_value.bitc.gc_adcpl_rstb;
  5961. }
  5962. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL0_ref_bgap_pd(U8 data)
  5963. {
  5964. GH_EPHY_PLL_ADC_CTRL0_S d;
  5965. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0;
  5966. d.bitc.ref_bgap_pd = data;
  5967. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0 = d.all;
  5968. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5969. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL0_ref_bgap_pd] <-- 0x%08x\n",
  5970. REG_EPHY_PLL_ADC_CTRL0,d.all,d.all);
  5971. #endif
  5972. }
  5973. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL0_ref_bgap_pd(void)
  5974. {
  5975. GH_EPHY_PLL_ADC_CTRL0_S tmp_value;
  5976. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0);
  5977. tmp_value.all = value;
  5978. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5979. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL0_ref_bgap_pd] --> 0x%08x\n",
  5980. REG_EPHY_PLL_ADC_CTRL0,value);
  5981. #endif
  5982. return tmp_value.bitc.ref_bgap_pd;
  5983. }
  5984. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL0_adcraw_tst(U8 data)
  5985. {
  5986. GH_EPHY_PLL_ADC_CTRL0_S d;
  5987. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0;
  5988. d.bitc.adcraw_tst = data;
  5989. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0 = d.all;
  5990. #if GH_EPHY_ENABLE_DEBUG_PRINT
  5991. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL0_adcraw_tst] <-- 0x%08x\n",
  5992. REG_EPHY_PLL_ADC_CTRL0,d.all,d.all);
  5993. #endif
  5994. }
  5995. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL0_adcraw_tst(void)
  5996. {
  5997. GH_EPHY_PLL_ADC_CTRL0_S tmp_value;
  5998. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0);
  5999. tmp_value.all = value;
  6000. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6001. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL0_adcraw_tst] --> 0x%08x\n",
  6002. REG_EPHY_PLL_ADC_CTRL0,value);
  6003. #endif
  6004. return tmp_value.bitc.adcraw_tst;
  6005. }
  6006. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL0_adcraw_tst_sw(U8 data)
  6007. {
  6008. GH_EPHY_PLL_ADC_CTRL0_S d;
  6009. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0;
  6010. d.bitc.adcraw_tst_sw = data;
  6011. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0 = d.all;
  6012. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6013. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL0_adcraw_tst_sw] <-- 0x%08x\n",
  6014. REG_EPHY_PLL_ADC_CTRL0,d.all,d.all);
  6015. #endif
  6016. }
  6017. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL0_adcraw_tst_sw(void)
  6018. {
  6019. GH_EPHY_PLL_ADC_CTRL0_S tmp_value;
  6020. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0);
  6021. tmp_value.all = value;
  6022. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6023. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL0_adcraw_tst_sw] --> 0x%08x\n",
  6024. REG_EPHY_PLL_ADC_CTRL0,value);
  6025. #endif
  6026. return tmp_value.bitc.adcraw_tst_sw;
  6027. }
  6028. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL0_ldo_pwrgd(U8 data)
  6029. {
  6030. GH_EPHY_PLL_ADC_CTRL0_S d;
  6031. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0;
  6032. d.bitc.ldo_pwrgd = data;
  6033. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0 = d.all;
  6034. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6035. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL0_ldo_pwrgd] <-- 0x%08x\n",
  6036. REG_EPHY_PLL_ADC_CTRL0,d.all,d.all);
  6037. #endif
  6038. }
  6039. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL0_ldo_pwrgd(void)
  6040. {
  6041. GH_EPHY_PLL_ADC_CTRL0_S tmp_value;
  6042. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0);
  6043. tmp_value.all = value;
  6044. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6045. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL0_ldo_pwrgd] --> 0x%08x\n",
  6046. REG_EPHY_PLL_ADC_CTRL0,value);
  6047. #endif
  6048. return tmp_value.bitc.ldo_pwrgd;
  6049. }
  6050. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL0_adcraw_overflow(U8 data)
  6051. {
  6052. GH_EPHY_PLL_ADC_CTRL0_S d;
  6053. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0;
  6054. d.bitc.adcraw_overflow = data;
  6055. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0 = d.all;
  6056. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6057. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL0_adcraw_overflow] <-- 0x%08x\n",
  6058. REG_EPHY_PLL_ADC_CTRL0,d.all,d.all);
  6059. #endif
  6060. }
  6061. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL0_adcraw_overflow(void)
  6062. {
  6063. GH_EPHY_PLL_ADC_CTRL0_S tmp_value;
  6064. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0);
  6065. tmp_value.all = value;
  6066. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6067. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL0_adcraw_overflow] --> 0x%08x\n",
  6068. REG_EPHY_PLL_ADC_CTRL0,value);
  6069. #endif
  6070. return tmp_value.bitc.adcraw_overflow;
  6071. }
  6072. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL0_adcpl_force_phase(U8 data)
  6073. {
  6074. GH_EPHY_PLL_ADC_CTRL0_S d;
  6075. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0;
  6076. d.bitc.adcpl_force_phase = data;
  6077. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0 = d.all;
  6078. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6079. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL0_adcpl_force_phase] <-- 0x%08x\n",
  6080. REG_EPHY_PLL_ADC_CTRL0,d.all,d.all);
  6081. #endif
  6082. }
  6083. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL0_adcpl_force_phase(void)
  6084. {
  6085. GH_EPHY_PLL_ADC_CTRL0_S tmp_value;
  6086. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0);
  6087. tmp_value.all = value;
  6088. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6089. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL0_adcpl_force_phase] --> 0x%08x\n",
  6090. REG_EPHY_PLL_ADC_CTRL0,value);
  6091. #endif
  6092. return tmp_value.bitc.adcpl_force_phase;
  6093. }
  6094. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL0_gcr_adcpl_tog_clkcc(U8 data)
  6095. {
  6096. GH_EPHY_PLL_ADC_CTRL0_S d;
  6097. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0;
  6098. d.bitc.gcr_adcpl_tog_clkcc = data;
  6099. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0 = d.all;
  6100. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6101. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL0_gcr_adcpl_tog_clkcc] <-- 0x%08x\n",
  6102. REG_EPHY_PLL_ADC_CTRL0,d.all,d.all);
  6103. #endif
  6104. }
  6105. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL0_gcr_adcpl_tog_clkcc(void)
  6106. {
  6107. GH_EPHY_PLL_ADC_CTRL0_S tmp_value;
  6108. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL0);
  6109. tmp_value.all = value;
  6110. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6111. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL0_gcr_adcpl_tog_clkcc] --> 0x%08x\n",
  6112. REG_EPHY_PLL_ADC_CTRL0,value);
  6113. #endif
  6114. return tmp_value.bitc.gcr_adcpl_tog_clkcc;
  6115. }
  6116. #endif /* GH_INLINE_LEVEL == 0 */
  6117. /*----------------------------------------------------------------------------*/
  6118. /* register EPHY_PLL_ADC_CTRL1 (read/write) */
  6119. /*----------------------------------------------------------------------------*/
  6120. #if GH_INLINE_LEVEL == 0
  6121. /*! \brief Writes the register 'EPHY_PLL_ADC_CTRL1'. */
  6122. void GH_EPHY_set_PLL_ADC_CTRL1(U16 data);
  6123. /*! \brief Reads the register 'EPHY_PLL_ADC_CTRL1'. */
  6124. U16 GH_EPHY_get_PLL_ADC_CTRL1(void);
  6125. /*! \brief Writes the bit group 'gc_adcpl_adcpd0' of register 'EPHY_PLL_ADC_CTRL1'. */
  6126. void GH_EPHY_set_PLL_ADC_CTRL1_gc_adcpl_adcpd0(U8 data);
  6127. /*! \brief Reads the bit group 'gc_adcpl_adcpd0' of register 'EPHY_PLL_ADC_CTRL1'. */
  6128. U8 GH_EPHY_get_PLL_ADC_CTRL1_gc_adcpl_adcpd0(void);
  6129. /*! \brief Writes the bit group 'gc_adcpl_adcpd1' of register 'EPHY_PLL_ADC_CTRL1'. */
  6130. void GH_EPHY_set_PLL_ADC_CTRL1_gc_adcpl_adcpd1(U8 data);
  6131. /*! \brief Reads the bit group 'gc_adcpl_adcpd1' of register 'EPHY_PLL_ADC_CTRL1'. */
  6132. U8 GH_EPHY_get_PLL_ADC_CTRL1_gc_adcpl_adcpd1(void);
  6133. /*! \brief Writes the bit group 'gc_adcpl_ccpd0' of register 'EPHY_PLL_ADC_CTRL1'. */
  6134. void GH_EPHY_set_PLL_ADC_CTRL1_gc_adcpl_ccpd0(U8 data);
  6135. /*! \brief Reads the bit group 'gc_adcpl_ccpd0' of register 'EPHY_PLL_ADC_CTRL1'. */
  6136. U8 GH_EPHY_get_PLL_ADC_CTRL1_gc_adcpl_ccpd0(void);
  6137. /*! \brief Writes the bit group 'gc_adcpl_ccpd1' of register 'EPHY_PLL_ADC_CTRL1'. */
  6138. void GH_EPHY_set_PLL_ADC_CTRL1_gc_adcpl_ccpd1(U8 data);
  6139. /*! \brief Reads the bit group 'gc_adcpl_ccpd1' of register 'EPHY_PLL_ADC_CTRL1'. */
  6140. U8 GH_EPHY_get_PLL_ADC_CTRL1_gc_adcpl_ccpd1(void);
  6141. /*! \brief Writes the bit group 'pd_adcpl_reg' of register 'EPHY_PLL_ADC_CTRL1'. */
  6142. void GH_EPHY_set_PLL_ADC_CTRL1_pd_adcpl_reg(U8 data);
  6143. /*! \brief Reads the bit group 'pd_adcpl_reg' of register 'EPHY_PLL_ADC_CTRL1'. */
  6144. U8 GH_EPHY_get_PLL_ADC_CTRL1_pd_adcpl_reg(void);
  6145. /*! \brief Writes the bit group 'gcr_adcpl_mod_100t' of register 'EPHY_PLL_ADC_CTRL1'. */
  6146. void GH_EPHY_set_PLL_ADC_CTRL1_gcr_adcpl_mod_100t(U8 data);
  6147. /*! \brief Reads the bit group 'gcr_adcpl_mod_100t' of register 'EPHY_PLL_ADC_CTRL1'. */
  6148. U8 GH_EPHY_get_PLL_ADC_CTRL1_gcr_adcpl_mod_100t(void);
  6149. /*! \brief Writes the bit group 'gcr_adcpl_ictrl' of register 'EPHY_PLL_ADC_CTRL1'. */
  6150. void GH_EPHY_set_PLL_ADC_CTRL1_gcr_adcpl_ictrl(U8 data);
  6151. /*! \brief Reads the bit group 'gcr_adcpl_ictrl' of register 'EPHY_PLL_ADC_CTRL1'. */
  6152. U8 GH_EPHY_get_PLL_ADC_CTRL1_gcr_adcpl_ictrl(void);
  6153. /*! \brief Writes the bit group 'gcr_adcpl_enfrunz' of register 'EPHY_PLL_ADC_CTRL1'. */
  6154. void GH_EPHY_set_PLL_ADC_CTRL1_gcr_adcpl_enfrunz(U8 data);
  6155. /*! \brief Reads the bit group 'gcr_adcpl_enfrunz' of register 'EPHY_PLL_ADC_CTRL1'. */
  6156. U8 GH_EPHY_get_PLL_ADC_CTRL1_gcr_adcpl_enfrunz(void);
  6157. /*! \brief Writes the bit group 'en_adcpl_porst' of register 'EPHY_PLL_ADC_CTRL1'. */
  6158. void GH_EPHY_set_PLL_ADC_CTRL1_en_adcpl_porst(U8 data);
  6159. /*! \brief Reads the bit group 'en_adcpl_porst' of register 'EPHY_PLL_ADC_CTRL1'. */
  6160. U8 GH_EPHY_get_PLL_ADC_CTRL1_en_adcpl_porst(void);
  6161. /*! \brief Writes the bit group 'en_adcpl_adcphdac' of register 'EPHY_PLL_ADC_CTRL1'. */
  6162. void GH_EPHY_set_PLL_ADC_CTRL1_en_adcpl_adcphdac(U8 data);
  6163. /*! \brief Reads the bit group 'en_adcpl_adcphdac' of register 'EPHY_PLL_ADC_CTRL1'. */
  6164. U8 GH_EPHY_get_PLL_ADC_CTRL1_en_adcpl_adcphdac(void);
  6165. /*! \brief Writes the bit group 'gc_adcpl_adcselect' of register 'EPHY_PLL_ADC_CTRL1'. */
  6166. void GH_EPHY_set_PLL_ADC_CTRL1_gc_adcpl_adcselect(U8 data);
  6167. /*! \brief Reads the bit group 'gc_adcpl_adcselect' of register 'EPHY_PLL_ADC_CTRL1'. */
  6168. U8 GH_EPHY_get_PLL_ADC_CTRL1_gc_adcpl_adcselect(void);
  6169. /*! \brief Writes the bit group 'tx_d_test' of register 'EPHY_PLL_ADC_CTRL1'. */
  6170. void GH_EPHY_set_PLL_ADC_CTRL1_tx_d_test(U8 data);
  6171. /*! \brief Reads the bit group 'tx_d_test' of register 'EPHY_PLL_ADC_CTRL1'. */
  6172. U8 GH_EPHY_get_PLL_ADC_CTRL1_tx_d_test(void);
  6173. #else /* GH_INLINE_LEVEL == 0 */
  6174. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL1(U16 data)
  6175. {
  6176. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1 = data;
  6177. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6178. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL1] <-- 0x%08x\n",
  6179. REG_EPHY_PLL_ADC_CTRL1,data,data);
  6180. #endif
  6181. }
  6182. GH_INLINE U16 GH_EPHY_get_PLL_ADC_CTRL1(void)
  6183. {
  6184. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1);
  6185. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6186. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL1] --> 0x%08x\n",
  6187. REG_EPHY_PLL_ADC_CTRL1,value);
  6188. #endif
  6189. return value;
  6190. }
  6191. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL1_gc_adcpl_adcpd0(U8 data)
  6192. {
  6193. GH_EPHY_PLL_ADC_CTRL1_S d;
  6194. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1;
  6195. d.bitc.gc_adcpl_adcpd0 = data;
  6196. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1 = d.all;
  6197. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6198. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL1_gc_adcpl_adcpd0] <-- 0x%08x\n",
  6199. REG_EPHY_PLL_ADC_CTRL1,d.all,d.all);
  6200. #endif
  6201. }
  6202. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL1_gc_adcpl_adcpd0(void)
  6203. {
  6204. GH_EPHY_PLL_ADC_CTRL1_S tmp_value;
  6205. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1);
  6206. tmp_value.all = value;
  6207. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6208. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL1_gc_adcpl_adcpd0] --> 0x%08x\n",
  6209. REG_EPHY_PLL_ADC_CTRL1,value);
  6210. #endif
  6211. return tmp_value.bitc.gc_adcpl_adcpd0;
  6212. }
  6213. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL1_gc_adcpl_adcpd1(U8 data)
  6214. {
  6215. GH_EPHY_PLL_ADC_CTRL1_S d;
  6216. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1;
  6217. d.bitc.gc_adcpl_adcpd1 = data;
  6218. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1 = d.all;
  6219. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6220. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL1_gc_adcpl_adcpd1] <-- 0x%08x\n",
  6221. REG_EPHY_PLL_ADC_CTRL1,d.all,d.all);
  6222. #endif
  6223. }
  6224. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL1_gc_adcpl_adcpd1(void)
  6225. {
  6226. GH_EPHY_PLL_ADC_CTRL1_S tmp_value;
  6227. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1);
  6228. tmp_value.all = value;
  6229. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6230. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL1_gc_adcpl_adcpd1] --> 0x%08x\n",
  6231. REG_EPHY_PLL_ADC_CTRL1,value);
  6232. #endif
  6233. return tmp_value.bitc.gc_adcpl_adcpd1;
  6234. }
  6235. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL1_gc_adcpl_ccpd0(U8 data)
  6236. {
  6237. GH_EPHY_PLL_ADC_CTRL1_S d;
  6238. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1;
  6239. d.bitc.gc_adcpl_ccpd0 = data;
  6240. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1 = d.all;
  6241. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6242. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL1_gc_adcpl_ccpd0] <-- 0x%08x\n",
  6243. REG_EPHY_PLL_ADC_CTRL1,d.all,d.all);
  6244. #endif
  6245. }
  6246. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL1_gc_adcpl_ccpd0(void)
  6247. {
  6248. GH_EPHY_PLL_ADC_CTRL1_S tmp_value;
  6249. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1);
  6250. tmp_value.all = value;
  6251. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6252. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL1_gc_adcpl_ccpd0] --> 0x%08x\n",
  6253. REG_EPHY_PLL_ADC_CTRL1,value);
  6254. #endif
  6255. return tmp_value.bitc.gc_adcpl_ccpd0;
  6256. }
  6257. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL1_gc_adcpl_ccpd1(U8 data)
  6258. {
  6259. GH_EPHY_PLL_ADC_CTRL1_S d;
  6260. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1;
  6261. d.bitc.gc_adcpl_ccpd1 = data;
  6262. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1 = d.all;
  6263. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6264. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL1_gc_adcpl_ccpd1] <-- 0x%08x\n",
  6265. REG_EPHY_PLL_ADC_CTRL1,d.all,d.all);
  6266. #endif
  6267. }
  6268. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL1_gc_adcpl_ccpd1(void)
  6269. {
  6270. GH_EPHY_PLL_ADC_CTRL1_S tmp_value;
  6271. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1);
  6272. tmp_value.all = value;
  6273. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6274. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL1_gc_adcpl_ccpd1] --> 0x%08x\n",
  6275. REG_EPHY_PLL_ADC_CTRL1,value);
  6276. #endif
  6277. return tmp_value.bitc.gc_adcpl_ccpd1;
  6278. }
  6279. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL1_pd_adcpl_reg(U8 data)
  6280. {
  6281. GH_EPHY_PLL_ADC_CTRL1_S d;
  6282. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1;
  6283. d.bitc.pd_adcpl_reg = data;
  6284. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1 = d.all;
  6285. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6286. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL1_pd_adcpl_reg] <-- 0x%08x\n",
  6287. REG_EPHY_PLL_ADC_CTRL1,d.all,d.all);
  6288. #endif
  6289. }
  6290. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL1_pd_adcpl_reg(void)
  6291. {
  6292. GH_EPHY_PLL_ADC_CTRL1_S tmp_value;
  6293. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1);
  6294. tmp_value.all = value;
  6295. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6296. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL1_pd_adcpl_reg] --> 0x%08x\n",
  6297. REG_EPHY_PLL_ADC_CTRL1,value);
  6298. #endif
  6299. return tmp_value.bitc.pd_adcpl_reg;
  6300. }
  6301. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL1_gcr_adcpl_mod_100t(U8 data)
  6302. {
  6303. GH_EPHY_PLL_ADC_CTRL1_S d;
  6304. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1;
  6305. d.bitc.gcr_adcpl_mod_100t = data;
  6306. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1 = d.all;
  6307. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6308. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL1_gcr_adcpl_mod_100t] <-- 0x%08x\n",
  6309. REG_EPHY_PLL_ADC_CTRL1,d.all,d.all);
  6310. #endif
  6311. }
  6312. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL1_gcr_adcpl_mod_100t(void)
  6313. {
  6314. GH_EPHY_PLL_ADC_CTRL1_S tmp_value;
  6315. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1);
  6316. tmp_value.all = value;
  6317. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6318. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL1_gcr_adcpl_mod_100t] --> 0x%08x\n",
  6319. REG_EPHY_PLL_ADC_CTRL1,value);
  6320. #endif
  6321. return tmp_value.bitc.gcr_adcpl_mod_100t;
  6322. }
  6323. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL1_gcr_adcpl_ictrl(U8 data)
  6324. {
  6325. GH_EPHY_PLL_ADC_CTRL1_S d;
  6326. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1;
  6327. d.bitc.gcr_adcpl_ictrl = data;
  6328. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1 = d.all;
  6329. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6330. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL1_gcr_adcpl_ictrl] <-- 0x%08x\n",
  6331. REG_EPHY_PLL_ADC_CTRL1,d.all,d.all);
  6332. #endif
  6333. }
  6334. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL1_gcr_adcpl_ictrl(void)
  6335. {
  6336. GH_EPHY_PLL_ADC_CTRL1_S tmp_value;
  6337. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1);
  6338. tmp_value.all = value;
  6339. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6340. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL1_gcr_adcpl_ictrl] --> 0x%08x\n",
  6341. REG_EPHY_PLL_ADC_CTRL1,value);
  6342. #endif
  6343. return tmp_value.bitc.gcr_adcpl_ictrl;
  6344. }
  6345. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL1_gcr_adcpl_enfrunz(U8 data)
  6346. {
  6347. GH_EPHY_PLL_ADC_CTRL1_S d;
  6348. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1;
  6349. d.bitc.gcr_adcpl_enfrunz = data;
  6350. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1 = d.all;
  6351. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6352. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL1_gcr_adcpl_enfrunz] <-- 0x%08x\n",
  6353. REG_EPHY_PLL_ADC_CTRL1,d.all,d.all);
  6354. #endif
  6355. }
  6356. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL1_gcr_adcpl_enfrunz(void)
  6357. {
  6358. GH_EPHY_PLL_ADC_CTRL1_S tmp_value;
  6359. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1);
  6360. tmp_value.all = value;
  6361. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6362. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL1_gcr_adcpl_enfrunz] --> 0x%08x\n",
  6363. REG_EPHY_PLL_ADC_CTRL1,value);
  6364. #endif
  6365. return tmp_value.bitc.gcr_adcpl_enfrunz;
  6366. }
  6367. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL1_en_adcpl_porst(U8 data)
  6368. {
  6369. GH_EPHY_PLL_ADC_CTRL1_S d;
  6370. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1;
  6371. d.bitc.en_adcpl_porst = data;
  6372. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1 = d.all;
  6373. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6374. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL1_en_adcpl_porst] <-- 0x%08x\n",
  6375. REG_EPHY_PLL_ADC_CTRL1,d.all,d.all);
  6376. #endif
  6377. }
  6378. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL1_en_adcpl_porst(void)
  6379. {
  6380. GH_EPHY_PLL_ADC_CTRL1_S tmp_value;
  6381. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1);
  6382. tmp_value.all = value;
  6383. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6384. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL1_en_adcpl_porst] --> 0x%08x\n",
  6385. REG_EPHY_PLL_ADC_CTRL1,value);
  6386. #endif
  6387. return tmp_value.bitc.en_adcpl_porst;
  6388. }
  6389. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL1_en_adcpl_adcphdac(U8 data)
  6390. {
  6391. GH_EPHY_PLL_ADC_CTRL1_S d;
  6392. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1;
  6393. d.bitc.en_adcpl_adcphdac = data;
  6394. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1 = d.all;
  6395. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6396. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL1_en_adcpl_adcphdac] <-- 0x%08x\n",
  6397. REG_EPHY_PLL_ADC_CTRL1,d.all,d.all);
  6398. #endif
  6399. }
  6400. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL1_en_adcpl_adcphdac(void)
  6401. {
  6402. GH_EPHY_PLL_ADC_CTRL1_S tmp_value;
  6403. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1);
  6404. tmp_value.all = value;
  6405. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6406. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL1_en_adcpl_adcphdac] --> 0x%08x\n",
  6407. REG_EPHY_PLL_ADC_CTRL1,value);
  6408. #endif
  6409. return tmp_value.bitc.en_adcpl_adcphdac;
  6410. }
  6411. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL1_gc_adcpl_adcselect(U8 data)
  6412. {
  6413. GH_EPHY_PLL_ADC_CTRL1_S d;
  6414. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1;
  6415. d.bitc.gc_adcpl_adcselect = data;
  6416. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1 = d.all;
  6417. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6418. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL1_gc_adcpl_adcselect] <-- 0x%08x\n",
  6419. REG_EPHY_PLL_ADC_CTRL1,d.all,d.all);
  6420. #endif
  6421. }
  6422. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL1_gc_adcpl_adcselect(void)
  6423. {
  6424. GH_EPHY_PLL_ADC_CTRL1_S tmp_value;
  6425. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1);
  6426. tmp_value.all = value;
  6427. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6428. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL1_gc_adcpl_adcselect] --> 0x%08x\n",
  6429. REG_EPHY_PLL_ADC_CTRL1,value);
  6430. #endif
  6431. return tmp_value.bitc.gc_adcpl_adcselect;
  6432. }
  6433. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL1_tx_d_test(U8 data)
  6434. {
  6435. GH_EPHY_PLL_ADC_CTRL1_S d;
  6436. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1;
  6437. d.bitc.tx_d_test = data;
  6438. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1 = d.all;
  6439. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6440. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL1_tx_d_test] <-- 0x%08x\n",
  6441. REG_EPHY_PLL_ADC_CTRL1,d.all,d.all);
  6442. #endif
  6443. }
  6444. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL1_tx_d_test(void)
  6445. {
  6446. GH_EPHY_PLL_ADC_CTRL1_S tmp_value;
  6447. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL1);
  6448. tmp_value.all = value;
  6449. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6450. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL1_tx_d_test] --> 0x%08x\n",
  6451. REG_EPHY_PLL_ADC_CTRL1,value);
  6452. #endif
  6453. return tmp_value.bitc.tx_d_test;
  6454. }
  6455. #endif /* GH_INLINE_LEVEL == 0 */
  6456. /*----------------------------------------------------------------------------*/
  6457. /* register EPHY_PLL_ADC_CTRL2 (read/write) */
  6458. /*----------------------------------------------------------------------------*/
  6459. #if GH_INLINE_LEVEL == 0
  6460. /*! \brief Writes the register 'EPHY_PLL_ADC_CTRL2'. */
  6461. void GH_EPHY_set_PLL_ADC_CTRL2(U16 data);
  6462. /*! \brief Reads the register 'EPHY_PLL_ADC_CTRL2'. */
  6463. U16 GH_EPHY_get_PLL_ADC_CTRL2(void);
  6464. /*! \brief Writes the bit group 'gc_ref_vgen' of register 'EPHY_PLL_ADC_CTRL2'. */
  6465. void GH_EPHY_set_PLL_ADC_CTRL2_gc_ref_vgen(U8 data);
  6466. /*! \brief Reads the bit group 'gc_ref_vgen' of register 'EPHY_PLL_ADC_CTRL2'. */
  6467. U8 GH_EPHY_get_PLL_ADC_CTRL2_gc_ref_vgen(void);
  6468. /*! \brief Writes the bit group 'gc_ref_vcom' of register 'EPHY_PLL_ADC_CTRL2'. */
  6469. void GH_EPHY_set_PLL_ADC_CTRL2_gc_ref_vcom(U8 data);
  6470. /*! \brief Reads the bit group 'gc_ref_vcom' of register 'EPHY_PLL_ADC_CTRL2'. */
  6471. U8 GH_EPHY_get_PLL_ADC_CTRL2_gc_ref_vcom(void);
  6472. /*! \brief Writes the bit group 'gc_ref_vcmpcmvx' of register 'EPHY_PLL_ADC_CTRL2'. */
  6473. void GH_EPHY_set_PLL_ADC_CTRL2_gc_ref_vcmpcmvx(U8 data);
  6474. /*! \brief Reads the bit group 'gc_ref_vcmpcmvx' of register 'EPHY_PLL_ADC_CTRL2'. */
  6475. U8 GH_EPHY_get_PLL_ADC_CTRL2_gc_ref_vcmpcmvx(void);
  6476. /*! \brief Writes the bit group 'pd_lpf_op' of register 'EPHY_PLL_ADC_CTRL2'. */
  6477. void GH_EPHY_set_PLL_ADC_CTRL2_pd_lpf_op(U8 data);
  6478. /*! \brief Reads the bit group 'pd_lpf_op' of register 'EPHY_PLL_ADC_CTRL2'. */
  6479. U8 GH_EPHY_get_PLL_ADC_CTRL2_pd_lpf_op(void);
  6480. /*! \brief Writes the bit group 'gc_adc_force1' of register 'EPHY_PLL_ADC_CTRL2'. */
  6481. void GH_EPHY_set_PLL_ADC_CTRL2_gc_adc_force1(U8 data);
  6482. /*! \brief Reads the bit group 'gc_adc_force1' of register 'EPHY_PLL_ADC_CTRL2'. */
  6483. U8 GH_EPHY_get_PLL_ADC_CTRL2_gc_adc_force1(void);
  6484. /*! \brief Writes the bit group 'gc_adc_force0' of register 'EPHY_PLL_ADC_CTRL2'. */
  6485. void GH_EPHY_set_PLL_ADC_CTRL2_gc_adc_force0(U8 data);
  6486. /*! \brief Reads the bit group 'gc_adc_force0' of register 'EPHY_PLL_ADC_CTRL2'. */
  6487. U8 GH_EPHY_get_PLL_ADC_CTRL2_gc_adc_force0(void);
  6488. /*! \brief Writes the bit group 'endiscz_10' of register 'EPHY_PLL_ADC_CTRL2'. */
  6489. void GH_EPHY_set_PLL_ADC_CTRL2_endiscz_10(U8 data);
  6490. /*! \brief Reads the bit group 'endiscz_10' of register 'EPHY_PLL_ADC_CTRL2'. */
  6491. U8 GH_EPHY_get_PLL_ADC_CTRL2_endiscz_10(void);
  6492. /*! \brief Writes the bit group 'gcr_adcpl_pdphadc' of register 'EPHY_PLL_ADC_CTRL2'. */
  6493. void GH_EPHY_set_PLL_ADC_CTRL2_gcr_adcpl_pdphadc(U8 data);
  6494. /*! \brief Reads the bit group 'gcr_adcpl_pdphadc' of register 'EPHY_PLL_ADC_CTRL2'. */
  6495. U8 GH_EPHY_get_PLL_ADC_CTRL2_gcr_adcpl_pdphadc(void);
  6496. /*! \brief Writes the bit group 'adcpl_bank' of register 'EPHY_PLL_ADC_CTRL2'. */
  6497. void GH_EPHY_set_PLL_ADC_CTRL2_adcpl_bank(U8 data);
  6498. /*! \brief Reads the bit group 'adcpl_bank' of register 'EPHY_PLL_ADC_CTRL2'. */
  6499. U8 GH_EPHY_get_PLL_ADC_CTRL2_adcpl_bank(void);
  6500. /*! \brief Writes the bit group 'adcpl_phase_force' of register 'EPHY_PLL_ADC_CTRL2'. */
  6501. void GH_EPHY_set_PLL_ADC_CTRL2_adcpl_phase_force(U8 data);
  6502. /*! \brief Reads the bit group 'adcpl_phase_force' of register 'EPHY_PLL_ADC_CTRL2'. */
  6503. U8 GH_EPHY_get_PLL_ADC_CTRL2_adcpl_phase_force(void);
  6504. /*! \brief Writes the bit group 'adcpl_phase_force_st' of register 'EPHY_PLL_ADC_CTRL2'. */
  6505. void GH_EPHY_set_PLL_ADC_CTRL2_adcpl_phase_force_st(U8 data);
  6506. /*! \brief Reads the bit group 'adcpl_phase_force_st' of register 'EPHY_PLL_ADC_CTRL2'. */
  6507. U8 GH_EPHY_get_PLL_ADC_CTRL2_adcpl_phase_force_st(void);
  6508. /*! \brief Writes the bit group 'adcpl_force_go' of register 'EPHY_PLL_ADC_CTRL2'. */
  6509. void GH_EPHY_set_PLL_ADC_CTRL2_adcpl_force_go(U8 data);
  6510. /*! \brief Reads the bit group 'adcpl_force_go' of register 'EPHY_PLL_ADC_CTRL2'. */
  6511. U8 GH_EPHY_get_PLL_ADC_CTRL2_adcpl_force_go(void);
  6512. #else /* GH_INLINE_LEVEL == 0 */
  6513. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL2(U16 data)
  6514. {
  6515. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2 = data;
  6516. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6517. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL2] <-- 0x%08x\n",
  6518. REG_EPHY_PLL_ADC_CTRL2,data,data);
  6519. #endif
  6520. }
  6521. GH_INLINE U16 GH_EPHY_get_PLL_ADC_CTRL2(void)
  6522. {
  6523. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2);
  6524. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6525. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL2] --> 0x%08x\n",
  6526. REG_EPHY_PLL_ADC_CTRL2,value);
  6527. #endif
  6528. return value;
  6529. }
  6530. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL2_gc_ref_vgen(U8 data)
  6531. {
  6532. GH_EPHY_PLL_ADC_CTRL2_S d;
  6533. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2;
  6534. d.bitc.gc_ref_vgen = data;
  6535. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2 = d.all;
  6536. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6537. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL2_gc_ref_vgen] <-- 0x%08x\n",
  6538. REG_EPHY_PLL_ADC_CTRL2,d.all,d.all);
  6539. #endif
  6540. }
  6541. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL2_gc_ref_vgen(void)
  6542. {
  6543. GH_EPHY_PLL_ADC_CTRL2_S tmp_value;
  6544. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2);
  6545. tmp_value.all = value;
  6546. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6547. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL2_gc_ref_vgen] --> 0x%08x\n",
  6548. REG_EPHY_PLL_ADC_CTRL2,value);
  6549. #endif
  6550. return tmp_value.bitc.gc_ref_vgen;
  6551. }
  6552. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL2_gc_ref_vcom(U8 data)
  6553. {
  6554. GH_EPHY_PLL_ADC_CTRL2_S d;
  6555. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2;
  6556. d.bitc.gc_ref_vcom = data;
  6557. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2 = d.all;
  6558. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6559. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL2_gc_ref_vcom] <-- 0x%08x\n",
  6560. REG_EPHY_PLL_ADC_CTRL2,d.all,d.all);
  6561. #endif
  6562. }
  6563. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL2_gc_ref_vcom(void)
  6564. {
  6565. GH_EPHY_PLL_ADC_CTRL2_S tmp_value;
  6566. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2);
  6567. tmp_value.all = value;
  6568. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6569. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL2_gc_ref_vcom] --> 0x%08x\n",
  6570. REG_EPHY_PLL_ADC_CTRL2,value);
  6571. #endif
  6572. return tmp_value.bitc.gc_ref_vcom;
  6573. }
  6574. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL2_gc_ref_vcmpcmvx(U8 data)
  6575. {
  6576. GH_EPHY_PLL_ADC_CTRL2_S d;
  6577. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2;
  6578. d.bitc.gc_ref_vcmpcmvx = data;
  6579. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2 = d.all;
  6580. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6581. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL2_gc_ref_vcmpcmvx] <-- 0x%08x\n",
  6582. REG_EPHY_PLL_ADC_CTRL2,d.all,d.all);
  6583. #endif
  6584. }
  6585. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL2_gc_ref_vcmpcmvx(void)
  6586. {
  6587. GH_EPHY_PLL_ADC_CTRL2_S tmp_value;
  6588. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2);
  6589. tmp_value.all = value;
  6590. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6591. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL2_gc_ref_vcmpcmvx] --> 0x%08x\n",
  6592. REG_EPHY_PLL_ADC_CTRL2,value);
  6593. #endif
  6594. return tmp_value.bitc.gc_ref_vcmpcmvx;
  6595. }
  6596. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL2_pd_lpf_op(U8 data)
  6597. {
  6598. GH_EPHY_PLL_ADC_CTRL2_S d;
  6599. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2;
  6600. d.bitc.pd_lpf_op = data;
  6601. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2 = d.all;
  6602. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6603. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL2_pd_lpf_op] <-- 0x%08x\n",
  6604. REG_EPHY_PLL_ADC_CTRL2,d.all,d.all);
  6605. #endif
  6606. }
  6607. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL2_pd_lpf_op(void)
  6608. {
  6609. GH_EPHY_PLL_ADC_CTRL2_S tmp_value;
  6610. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2);
  6611. tmp_value.all = value;
  6612. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6613. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL2_pd_lpf_op] --> 0x%08x\n",
  6614. REG_EPHY_PLL_ADC_CTRL2,value);
  6615. #endif
  6616. return tmp_value.bitc.pd_lpf_op;
  6617. }
  6618. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL2_gc_adc_force1(U8 data)
  6619. {
  6620. GH_EPHY_PLL_ADC_CTRL2_S d;
  6621. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2;
  6622. d.bitc.gc_adc_force1 = data;
  6623. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2 = d.all;
  6624. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6625. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL2_gc_adc_force1] <-- 0x%08x\n",
  6626. REG_EPHY_PLL_ADC_CTRL2,d.all,d.all);
  6627. #endif
  6628. }
  6629. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL2_gc_adc_force1(void)
  6630. {
  6631. GH_EPHY_PLL_ADC_CTRL2_S tmp_value;
  6632. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2);
  6633. tmp_value.all = value;
  6634. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6635. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL2_gc_adc_force1] --> 0x%08x\n",
  6636. REG_EPHY_PLL_ADC_CTRL2,value);
  6637. #endif
  6638. return tmp_value.bitc.gc_adc_force1;
  6639. }
  6640. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL2_gc_adc_force0(U8 data)
  6641. {
  6642. GH_EPHY_PLL_ADC_CTRL2_S d;
  6643. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2;
  6644. d.bitc.gc_adc_force0 = data;
  6645. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2 = d.all;
  6646. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6647. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL2_gc_adc_force0] <-- 0x%08x\n",
  6648. REG_EPHY_PLL_ADC_CTRL2,d.all,d.all);
  6649. #endif
  6650. }
  6651. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL2_gc_adc_force0(void)
  6652. {
  6653. GH_EPHY_PLL_ADC_CTRL2_S tmp_value;
  6654. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2);
  6655. tmp_value.all = value;
  6656. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6657. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL2_gc_adc_force0] --> 0x%08x\n",
  6658. REG_EPHY_PLL_ADC_CTRL2,value);
  6659. #endif
  6660. return tmp_value.bitc.gc_adc_force0;
  6661. }
  6662. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL2_endiscz_10(U8 data)
  6663. {
  6664. GH_EPHY_PLL_ADC_CTRL2_S d;
  6665. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2;
  6666. d.bitc.endiscz_10 = data;
  6667. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2 = d.all;
  6668. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6669. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL2_endiscz_10] <-- 0x%08x\n",
  6670. REG_EPHY_PLL_ADC_CTRL2,d.all,d.all);
  6671. #endif
  6672. }
  6673. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL2_endiscz_10(void)
  6674. {
  6675. GH_EPHY_PLL_ADC_CTRL2_S tmp_value;
  6676. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2);
  6677. tmp_value.all = value;
  6678. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6679. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL2_endiscz_10] --> 0x%08x\n",
  6680. REG_EPHY_PLL_ADC_CTRL2,value);
  6681. #endif
  6682. return tmp_value.bitc.endiscz_10;
  6683. }
  6684. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL2_gcr_adcpl_pdphadc(U8 data)
  6685. {
  6686. GH_EPHY_PLL_ADC_CTRL2_S d;
  6687. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2;
  6688. d.bitc.gcr_adcpl_pdphadc = data;
  6689. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2 = d.all;
  6690. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6691. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL2_gcr_adcpl_pdphadc] <-- 0x%08x\n",
  6692. REG_EPHY_PLL_ADC_CTRL2,d.all,d.all);
  6693. #endif
  6694. }
  6695. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL2_gcr_adcpl_pdphadc(void)
  6696. {
  6697. GH_EPHY_PLL_ADC_CTRL2_S tmp_value;
  6698. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2);
  6699. tmp_value.all = value;
  6700. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6701. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL2_gcr_adcpl_pdphadc] --> 0x%08x\n",
  6702. REG_EPHY_PLL_ADC_CTRL2,value);
  6703. #endif
  6704. return tmp_value.bitc.gcr_adcpl_pdphadc;
  6705. }
  6706. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL2_adcpl_bank(U8 data)
  6707. {
  6708. GH_EPHY_PLL_ADC_CTRL2_S d;
  6709. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2;
  6710. d.bitc.adcpl_bank = data;
  6711. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2 = d.all;
  6712. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6713. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL2_adcpl_bank] <-- 0x%08x\n",
  6714. REG_EPHY_PLL_ADC_CTRL2,d.all,d.all);
  6715. #endif
  6716. }
  6717. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL2_adcpl_bank(void)
  6718. {
  6719. GH_EPHY_PLL_ADC_CTRL2_S tmp_value;
  6720. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2);
  6721. tmp_value.all = value;
  6722. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6723. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL2_adcpl_bank] --> 0x%08x\n",
  6724. REG_EPHY_PLL_ADC_CTRL2,value);
  6725. #endif
  6726. return tmp_value.bitc.adcpl_bank;
  6727. }
  6728. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL2_adcpl_phase_force(U8 data)
  6729. {
  6730. GH_EPHY_PLL_ADC_CTRL2_S d;
  6731. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2;
  6732. d.bitc.adcpl_phase_force = data;
  6733. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2 = d.all;
  6734. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6735. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL2_adcpl_phase_force] <-- 0x%08x\n",
  6736. REG_EPHY_PLL_ADC_CTRL2,d.all,d.all);
  6737. #endif
  6738. }
  6739. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL2_adcpl_phase_force(void)
  6740. {
  6741. GH_EPHY_PLL_ADC_CTRL2_S tmp_value;
  6742. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2);
  6743. tmp_value.all = value;
  6744. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6745. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL2_adcpl_phase_force] --> 0x%08x\n",
  6746. REG_EPHY_PLL_ADC_CTRL2,value);
  6747. #endif
  6748. return tmp_value.bitc.adcpl_phase_force;
  6749. }
  6750. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL2_adcpl_phase_force_st(U8 data)
  6751. {
  6752. GH_EPHY_PLL_ADC_CTRL2_S d;
  6753. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2;
  6754. d.bitc.adcpl_phase_force_st = data;
  6755. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2 = d.all;
  6756. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6757. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL2_adcpl_phase_force_st] <-- 0x%08x\n",
  6758. REG_EPHY_PLL_ADC_CTRL2,d.all,d.all);
  6759. #endif
  6760. }
  6761. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL2_adcpl_phase_force_st(void)
  6762. {
  6763. GH_EPHY_PLL_ADC_CTRL2_S tmp_value;
  6764. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2);
  6765. tmp_value.all = value;
  6766. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6767. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL2_adcpl_phase_force_st] --> 0x%08x\n",
  6768. REG_EPHY_PLL_ADC_CTRL2,value);
  6769. #endif
  6770. return tmp_value.bitc.adcpl_phase_force_st;
  6771. }
  6772. GH_INLINE void GH_EPHY_set_PLL_ADC_CTRL2_adcpl_force_go(U8 data)
  6773. {
  6774. GH_EPHY_PLL_ADC_CTRL2_S d;
  6775. d.all = *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2;
  6776. d.bitc.adcpl_force_go = data;
  6777. *(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2 = d.all;
  6778. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6779. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PLL_ADC_CTRL2_adcpl_force_go] <-- 0x%08x\n",
  6780. REG_EPHY_PLL_ADC_CTRL2,d.all,d.all);
  6781. #endif
  6782. }
  6783. GH_INLINE U8 GH_EPHY_get_PLL_ADC_CTRL2_adcpl_force_go(void)
  6784. {
  6785. GH_EPHY_PLL_ADC_CTRL2_S tmp_value;
  6786. U16 value = (*(volatile U16 *)REG_EPHY_PLL_ADC_CTRL2);
  6787. tmp_value.all = value;
  6788. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6789. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PLL_ADC_CTRL2_adcpl_force_go] --> 0x%08x\n",
  6790. REG_EPHY_PLL_ADC_CTRL2,value);
  6791. #endif
  6792. return tmp_value.bitc.adcpl_force_go;
  6793. }
  6794. #endif /* GH_INLINE_LEVEL == 0 */
  6795. /*----------------------------------------------------------------------------*/
  6796. /* register EPHY_TEST_TX (read/write) */
  6797. /*----------------------------------------------------------------------------*/
  6798. #if GH_INLINE_LEVEL == 0
  6799. /*! \brief Writes the register 'EPHY_TEST_TX'. */
  6800. void GH_EPHY_set_TEST_TX(U16 data);
  6801. /*! \brief Reads the register 'EPHY_TEST_TX'. */
  6802. U16 GH_EPHY_get_TEST_TX(void);
  6803. #else /* GH_INLINE_LEVEL == 0 */
  6804. GH_INLINE void GH_EPHY_set_TEST_TX(U16 data)
  6805. {
  6806. *(volatile U16 *)REG_EPHY_TEST_TX = data;
  6807. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6808. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_TEST_TX] <-- 0x%08x\n",
  6809. REG_EPHY_TEST_TX,data,data);
  6810. #endif
  6811. }
  6812. GH_INLINE U16 GH_EPHY_get_TEST_TX(void)
  6813. {
  6814. U16 value = (*(volatile U16 *)REG_EPHY_TEST_TX);
  6815. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6816. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_TEST_TX] --> 0x%08x\n",
  6817. REG_EPHY_TEST_TX,value);
  6818. #endif
  6819. return value;
  6820. }
  6821. #endif /* GH_INLINE_LEVEL == 0 */
  6822. /*----------------------------------------------------------------------------*/
  6823. /* register EPHY_PWR (read/write) */
  6824. /*----------------------------------------------------------------------------*/
  6825. #if GH_INLINE_LEVEL == 0
  6826. /*! \brief Writes the register 'EPHY_PWR'. */
  6827. void GH_EPHY_set_PWR(U16 data);
  6828. /*! \brief Reads the register 'EPHY_PWR'. */
  6829. U16 GH_EPHY_get_PWR(void);
  6830. /*! \brief Writes the bit group 'pwr_k_in_lp' of register 'EPHY_PWR'. */
  6831. void GH_EPHY_set_PWR_pwr_k_in_lp(U8 data);
  6832. /*! \brief Reads the bit group 'pwr_k_in_lp' of register 'EPHY_PWR'. */
  6833. U8 GH_EPHY_get_PWR_pwr_k_in_lp(void);
  6834. /*! \brief Writes the bit group 'dtpwr_enable_lp' of register 'EPHY_PWR'. */
  6835. void GH_EPHY_set_PWR_dtpwr_enable_lp(U8 data);
  6836. /*! \brief Reads the bit group 'dtpwr_enable_lp' of register 'EPHY_PWR'. */
  6837. U8 GH_EPHY_get_PWR_dtpwr_enable_lp(void);
  6838. /*! \brief Writes the bit group 'gcr_adcpl_div_lp' of register 'EPHY_PWR'. */
  6839. void GH_EPHY_set_PWR_gcr_adcpl_div_lp(U8 data);
  6840. /*! \brief Reads the bit group 'gcr_adcpl_div_lp' of register 'EPHY_PWR'. */
  6841. U8 GH_EPHY_get_PWR_gcr_adcpl_div_lp(void);
  6842. /*! \brief Writes the bit group 'dummy' of register 'EPHY_PWR'. */
  6843. void GH_EPHY_set_PWR_dummy(U16 data);
  6844. /*! \brief Reads the bit group 'dummy' of register 'EPHY_PWR'. */
  6845. U16 GH_EPHY_get_PWR_dummy(void);
  6846. #else /* GH_INLINE_LEVEL == 0 */
  6847. GH_INLINE void GH_EPHY_set_PWR(U16 data)
  6848. {
  6849. *(volatile U16 *)REG_EPHY_PWR = data;
  6850. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6851. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PWR] <-- 0x%08x\n",
  6852. REG_EPHY_PWR,data,data);
  6853. #endif
  6854. }
  6855. GH_INLINE U16 GH_EPHY_get_PWR(void)
  6856. {
  6857. U16 value = (*(volatile U16 *)REG_EPHY_PWR);
  6858. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6859. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PWR] --> 0x%08x\n",
  6860. REG_EPHY_PWR,value);
  6861. #endif
  6862. return value;
  6863. }
  6864. GH_INLINE void GH_EPHY_set_PWR_pwr_k_in_lp(U8 data)
  6865. {
  6866. GH_EPHY_PWR_S d;
  6867. d.all = *(volatile U16 *)REG_EPHY_PWR;
  6868. d.bitc.pwr_k_in_lp = data;
  6869. *(volatile U16 *)REG_EPHY_PWR = d.all;
  6870. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6871. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PWR_pwr_k_in_lp] <-- 0x%08x\n",
  6872. REG_EPHY_PWR,d.all,d.all);
  6873. #endif
  6874. }
  6875. GH_INLINE U8 GH_EPHY_get_PWR_pwr_k_in_lp(void)
  6876. {
  6877. GH_EPHY_PWR_S tmp_value;
  6878. U16 value = (*(volatile U16 *)REG_EPHY_PWR);
  6879. tmp_value.all = value;
  6880. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6881. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PWR_pwr_k_in_lp] --> 0x%08x\n",
  6882. REG_EPHY_PWR,value);
  6883. #endif
  6884. return tmp_value.bitc.pwr_k_in_lp;
  6885. }
  6886. GH_INLINE void GH_EPHY_set_PWR_dtpwr_enable_lp(U8 data)
  6887. {
  6888. GH_EPHY_PWR_S d;
  6889. d.all = *(volatile U16 *)REG_EPHY_PWR;
  6890. d.bitc.dtpwr_enable_lp = data;
  6891. *(volatile U16 *)REG_EPHY_PWR = d.all;
  6892. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6893. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PWR_dtpwr_enable_lp] <-- 0x%08x\n",
  6894. REG_EPHY_PWR,d.all,d.all);
  6895. #endif
  6896. }
  6897. GH_INLINE U8 GH_EPHY_get_PWR_dtpwr_enable_lp(void)
  6898. {
  6899. GH_EPHY_PWR_S tmp_value;
  6900. U16 value = (*(volatile U16 *)REG_EPHY_PWR);
  6901. tmp_value.all = value;
  6902. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6903. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PWR_dtpwr_enable_lp] --> 0x%08x\n",
  6904. REG_EPHY_PWR,value);
  6905. #endif
  6906. return tmp_value.bitc.dtpwr_enable_lp;
  6907. }
  6908. GH_INLINE void GH_EPHY_set_PWR_gcr_adcpl_div_lp(U8 data)
  6909. {
  6910. GH_EPHY_PWR_S d;
  6911. d.all = *(volatile U16 *)REG_EPHY_PWR;
  6912. d.bitc.gcr_adcpl_div_lp = data;
  6913. *(volatile U16 *)REG_EPHY_PWR = d.all;
  6914. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6915. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PWR_gcr_adcpl_div_lp] <-- 0x%08x\n",
  6916. REG_EPHY_PWR,d.all,d.all);
  6917. #endif
  6918. }
  6919. GH_INLINE U8 GH_EPHY_get_PWR_gcr_adcpl_div_lp(void)
  6920. {
  6921. GH_EPHY_PWR_S tmp_value;
  6922. U16 value = (*(volatile U16 *)REG_EPHY_PWR);
  6923. tmp_value.all = value;
  6924. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6925. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PWR_gcr_adcpl_div_lp] --> 0x%08x\n",
  6926. REG_EPHY_PWR,value);
  6927. #endif
  6928. return tmp_value.bitc.gcr_adcpl_div_lp;
  6929. }
  6930. GH_INLINE void GH_EPHY_set_PWR_dummy(U16 data)
  6931. {
  6932. GH_EPHY_PWR_S d;
  6933. d.all = *(volatile U16 *)REG_EPHY_PWR;
  6934. d.bitc.dummy = data;
  6935. *(volatile U16 *)REG_EPHY_PWR = d.all;
  6936. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6937. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_PWR_dummy] <-- 0x%08x\n",
  6938. REG_EPHY_PWR,d.all,d.all);
  6939. #endif
  6940. }
  6941. GH_INLINE U16 GH_EPHY_get_PWR_dummy(void)
  6942. {
  6943. GH_EPHY_PWR_S tmp_value;
  6944. U16 value = (*(volatile U16 *)REG_EPHY_PWR);
  6945. tmp_value.all = value;
  6946. #if GH_EPHY_ENABLE_DEBUG_PRINT
  6947. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_PWR_dummy] --> 0x%08x\n",
  6948. REG_EPHY_PWR,value);
  6949. #endif
  6950. return tmp_value.bitc.dummy;
  6951. }
  6952. #endif /* GH_INLINE_LEVEL == 0 */
  6953. /*----------------------------------------------------------------------------*/
  6954. /* register EPHY_ADC_DC (read/write) */
  6955. /*----------------------------------------------------------------------------*/
  6956. #if GH_INLINE_LEVEL == 0
  6957. /*! \brief Writes the register 'EPHY_ADC_DC'. */
  6958. void GH_EPHY_set_ADC_DC(U16 data);
  6959. /*! \brief Reads the register 'EPHY_ADC_DC'. */
  6960. U16 GH_EPHY_get_ADC_DC(void);
  6961. /*! \brief Writes the bit group 'dc_force_en' of register 'EPHY_ADC_DC'. */
  6962. void GH_EPHY_set_ADC_DC_dc_force_en(U8 data);
  6963. /*! \brief Reads the bit group 'dc_force_en' of register 'EPHY_ADC_DC'. */
  6964. U8 GH_EPHY_get_ADC_DC_dc_force_en(void);
  6965. /*! \brief Writes the bit group 'dc_force' of register 'EPHY_ADC_DC'. */
  6966. void GH_EPHY_set_ADC_DC_dc_force(U8 data);
  6967. /*! \brief Reads the bit group 'dc_force' of register 'EPHY_ADC_DC'. */
  6968. U8 GH_EPHY_get_ADC_DC_dc_force(void);
  6969. /*! \brief Writes the bit group 'dc_can_inv' of register 'EPHY_ADC_DC'. */
  6970. void GH_EPHY_set_ADC_DC_dc_can_inv(U8 data);
  6971. /*! \brief Reads the bit group 'dc_can_inv' of register 'EPHY_ADC_DC'. */
  6972. U8 GH_EPHY_get_ADC_DC_dc_can_inv(void);
  6973. /*! \brief Writes the bit group 'analog_blw' of register 'EPHY_ADC_DC'. */
  6974. void GH_EPHY_set_ADC_DC_analog_blw(U8 data);
  6975. /*! \brief Reads the bit group 'analog_blw' of register 'EPHY_ADC_DC'. */
  6976. U8 GH_EPHY_get_ADC_DC_analog_blw(void);
  6977. /*! \brief Writes the bit group 'dc_k' of register 'EPHY_ADC_DC'. */
  6978. void GH_EPHY_set_ADC_DC_dc_k(U8 data);
  6979. /*! \brief Reads the bit group 'dc_k' of register 'EPHY_ADC_DC'. */
  6980. U8 GH_EPHY_get_ADC_DC_dc_k(void);
  6981. /*! \brief Writes the bit group 'srst' of register 'EPHY_ADC_DC'. */
  6982. void GH_EPHY_set_ADC_DC_srst(U8 data);
  6983. /*! \brief Reads the bit group 'srst' of register 'EPHY_ADC_DC'. */
  6984. U8 GH_EPHY_get_ADC_DC_srst(void);
  6985. /*! \brief Writes the bit group 'adc_cancel_out' of register 'EPHY_ADC_DC'. */
  6986. void GH_EPHY_set_ADC_DC_adc_cancel_out(U8 data);
  6987. /*! \brief Reads the bit group 'adc_cancel_out' of register 'EPHY_ADC_DC'. */
  6988. U8 GH_EPHY_get_ADC_DC_adc_cancel_out(void);
  6989. /*! \brief Writes the bit group 'adc_cancel_disable' of register 'EPHY_ADC_DC'. */
  6990. void GH_EPHY_set_ADC_DC_adc_cancel_disable(U8 data);
  6991. /*! \brief Reads the bit group 'adc_cancel_disable' of register 'EPHY_ADC_DC'. */
  6992. U8 GH_EPHY_get_ADC_DC_adc_cancel_disable(void);
  6993. /*! \brief Writes the bit group 'adc_start' of register 'EPHY_ADC_DC'. */
  6994. void GH_EPHY_set_ADC_DC_adc_start(U8 data);
  6995. /*! \brief Reads the bit group 'adc_start' of register 'EPHY_ADC_DC'. */
  6996. U8 GH_EPHY_get_ADC_DC_adc_start(void);
  6997. #else /* GH_INLINE_LEVEL == 0 */
  6998. GH_INLINE void GH_EPHY_set_ADC_DC(U16 data)
  6999. {
  7000. *(volatile U16 *)REG_EPHY_ADC_DC = data;
  7001. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7002. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADC_DC] <-- 0x%08x\n",
  7003. REG_EPHY_ADC_DC,data,data);
  7004. #endif
  7005. }
  7006. GH_INLINE U16 GH_EPHY_get_ADC_DC(void)
  7007. {
  7008. U16 value = (*(volatile U16 *)REG_EPHY_ADC_DC);
  7009. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7010. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADC_DC] --> 0x%08x\n",
  7011. REG_EPHY_ADC_DC,value);
  7012. #endif
  7013. return value;
  7014. }
  7015. GH_INLINE void GH_EPHY_set_ADC_DC_dc_force_en(U8 data)
  7016. {
  7017. GH_EPHY_ADC_DC_S d;
  7018. d.all = *(volatile U16 *)REG_EPHY_ADC_DC;
  7019. d.bitc.dc_force_en = data;
  7020. *(volatile U16 *)REG_EPHY_ADC_DC = d.all;
  7021. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7022. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADC_DC_dc_force_en] <-- 0x%08x\n",
  7023. REG_EPHY_ADC_DC,d.all,d.all);
  7024. #endif
  7025. }
  7026. GH_INLINE U8 GH_EPHY_get_ADC_DC_dc_force_en(void)
  7027. {
  7028. GH_EPHY_ADC_DC_S tmp_value;
  7029. U16 value = (*(volatile U16 *)REG_EPHY_ADC_DC);
  7030. tmp_value.all = value;
  7031. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7032. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADC_DC_dc_force_en] --> 0x%08x\n",
  7033. REG_EPHY_ADC_DC,value);
  7034. #endif
  7035. return tmp_value.bitc.dc_force_en;
  7036. }
  7037. GH_INLINE void GH_EPHY_set_ADC_DC_dc_force(U8 data)
  7038. {
  7039. GH_EPHY_ADC_DC_S d;
  7040. d.all = *(volatile U16 *)REG_EPHY_ADC_DC;
  7041. d.bitc.dc_force = data;
  7042. *(volatile U16 *)REG_EPHY_ADC_DC = d.all;
  7043. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7044. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADC_DC_dc_force] <-- 0x%08x\n",
  7045. REG_EPHY_ADC_DC,d.all,d.all);
  7046. #endif
  7047. }
  7048. GH_INLINE U8 GH_EPHY_get_ADC_DC_dc_force(void)
  7049. {
  7050. GH_EPHY_ADC_DC_S tmp_value;
  7051. U16 value = (*(volatile U16 *)REG_EPHY_ADC_DC);
  7052. tmp_value.all = value;
  7053. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7054. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADC_DC_dc_force] --> 0x%08x\n",
  7055. REG_EPHY_ADC_DC,value);
  7056. #endif
  7057. return tmp_value.bitc.dc_force;
  7058. }
  7059. GH_INLINE void GH_EPHY_set_ADC_DC_dc_can_inv(U8 data)
  7060. {
  7061. GH_EPHY_ADC_DC_S d;
  7062. d.all = *(volatile U16 *)REG_EPHY_ADC_DC;
  7063. d.bitc.dc_can_inv = data;
  7064. *(volatile U16 *)REG_EPHY_ADC_DC = d.all;
  7065. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7066. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADC_DC_dc_can_inv] <-- 0x%08x\n",
  7067. REG_EPHY_ADC_DC,d.all,d.all);
  7068. #endif
  7069. }
  7070. GH_INLINE U8 GH_EPHY_get_ADC_DC_dc_can_inv(void)
  7071. {
  7072. GH_EPHY_ADC_DC_S tmp_value;
  7073. U16 value = (*(volatile U16 *)REG_EPHY_ADC_DC);
  7074. tmp_value.all = value;
  7075. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7076. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADC_DC_dc_can_inv] --> 0x%08x\n",
  7077. REG_EPHY_ADC_DC,value);
  7078. #endif
  7079. return tmp_value.bitc.dc_can_inv;
  7080. }
  7081. GH_INLINE void GH_EPHY_set_ADC_DC_analog_blw(U8 data)
  7082. {
  7083. GH_EPHY_ADC_DC_S d;
  7084. d.all = *(volatile U16 *)REG_EPHY_ADC_DC;
  7085. d.bitc.analog_blw = data;
  7086. *(volatile U16 *)REG_EPHY_ADC_DC = d.all;
  7087. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7088. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADC_DC_analog_blw] <-- 0x%08x\n",
  7089. REG_EPHY_ADC_DC,d.all,d.all);
  7090. #endif
  7091. }
  7092. GH_INLINE U8 GH_EPHY_get_ADC_DC_analog_blw(void)
  7093. {
  7094. GH_EPHY_ADC_DC_S tmp_value;
  7095. U16 value = (*(volatile U16 *)REG_EPHY_ADC_DC);
  7096. tmp_value.all = value;
  7097. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7098. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADC_DC_analog_blw] --> 0x%08x\n",
  7099. REG_EPHY_ADC_DC,value);
  7100. #endif
  7101. return tmp_value.bitc.analog_blw;
  7102. }
  7103. GH_INLINE void GH_EPHY_set_ADC_DC_dc_k(U8 data)
  7104. {
  7105. GH_EPHY_ADC_DC_S d;
  7106. d.all = *(volatile U16 *)REG_EPHY_ADC_DC;
  7107. d.bitc.dc_k = data;
  7108. *(volatile U16 *)REG_EPHY_ADC_DC = d.all;
  7109. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7110. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADC_DC_dc_k] <-- 0x%08x\n",
  7111. REG_EPHY_ADC_DC,d.all,d.all);
  7112. #endif
  7113. }
  7114. GH_INLINE U8 GH_EPHY_get_ADC_DC_dc_k(void)
  7115. {
  7116. GH_EPHY_ADC_DC_S tmp_value;
  7117. U16 value = (*(volatile U16 *)REG_EPHY_ADC_DC);
  7118. tmp_value.all = value;
  7119. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7120. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADC_DC_dc_k] --> 0x%08x\n",
  7121. REG_EPHY_ADC_DC,value);
  7122. #endif
  7123. return tmp_value.bitc.dc_k;
  7124. }
  7125. GH_INLINE void GH_EPHY_set_ADC_DC_srst(U8 data)
  7126. {
  7127. GH_EPHY_ADC_DC_S d;
  7128. d.all = *(volatile U16 *)REG_EPHY_ADC_DC;
  7129. d.bitc.srst = data;
  7130. *(volatile U16 *)REG_EPHY_ADC_DC = d.all;
  7131. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7132. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADC_DC_srst] <-- 0x%08x\n",
  7133. REG_EPHY_ADC_DC,d.all,d.all);
  7134. #endif
  7135. }
  7136. GH_INLINE U8 GH_EPHY_get_ADC_DC_srst(void)
  7137. {
  7138. GH_EPHY_ADC_DC_S tmp_value;
  7139. U16 value = (*(volatile U16 *)REG_EPHY_ADC_DC);
  7140. tmp_value.all = value;
  7141. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7142. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADC_DC_srst] --> 0x%08x\n",
  7143. REG_EPHY_ADC_DC,value);
  7144. #endif
  7145. return tmp_value.bitc.srst;
  7146. }
  7147. GH_INLINE void GH_EPHY_set_ADC_DC_adc_cancel_out(U8 data)
  7148. {
  7149. GH_EPHY_ADC_DC_S d;
  7150. d.all = *(volatile U16 *)REG_EPHY_ADC_DC;
  7151. d.bitc.adc_cancel_out = data;
  7152. *(volatile U16 *)REG_EPHY_ADC_DC = d.all;
  7153. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7154. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADC_DC_adc_cancel_out] <-- 0x%08x\n",
  7155. REG_EPHY_ADC_DC,d.all,d.all);
  7156. #endif
  7157. }
  7158. GH_INLINE U8 GH_EPHY_get_ADC_DC_adc_cancel_out(void)
  7159. {
  7160. GH_EPHY_ADC_DC_S tmp_value;
  7161. U16 value = (*(volatile U16 *)REG_EPHY_ADC_DC);
  7162. tmp_value.all = value;
  7163. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7164. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADC_DC_adc_cancel_out] --> 0x%08x\n",
  7165. REG_EPHY_ADC_DC,value);
  7166. #endif
  7167. return tmp_value.bitc.adc_cancel_out;
  7168. }
  7169. GH_INLINE void GH_EPHY_set_ADC_DC_adc_cancel_disable(U8 data)
  7170. {
  7171. GH_EPHY_ADC_DC_S d;
  7172. d.all = *(volatile U16 *)REG_EPHY_ADC_DC;
  7173. d.bitc.adc_cancel_disable = data;
  7174. *(volatile U16 *)REG_EPHY_ADC_DC = d.all;
  7175. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7176. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADC_DC_adc_cancel_disable] <-- 0x%08x\n",
  7177. REG_EPHY_ADC_DC,d.all,d.all);
  7178. #endif
  7179. }
  7180. GH_INLINE U8 GH_EPHY_get_ADC_DC_adc_cancel_disable(void)
  7181. {
  7182. GH_EPHY_ADC_DC_S tmp_value;
  7183. U16 value = (*(volatile U16 *)REG_EPHY_ADC_DC);
  7184. tmp_value.all = value;
  7185. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7186. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADC_DC_adc_cancel_disable] --> 0x%08x\n",
  7187. REG_EPHY_ADC_DC,value);
  7188. #endif
  7189. return tmp_value.bitc.adc_cancel_disable;
  7190. }
  7191. GH_INLINE void GH_EPHY_set_ADC_DC_adc_start(U8 data)
  7192. {
  7193. GH_EPHY_ADC_DC_S d;
  7194. d.all = *(volatile U16 *)REG_EPHY_ADC_DC;
  7195. d.bitc.adc_start = data;
  7196. *(volatile U16 *)REG_EPHY_ADC_DC = d.all;
  7197. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7198. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADC_DC_adc_start] <-- 0x%08x\n",
  7199. REG_EPHY_ADC_DC,d.all,d.all);
  7200. #endif
  7201. }
  7202. GH_INLINE U8 GH_EPHY_get_ADC_DC_adc_start(void)
  7203. {
  7204. GH_EPHY_ADC_DC_S tmp_value;
  7205. U16 value = (*(volatile U16 *)REG_EPHY_ADC_DC);
  7206. tmp_value.all = value;
  7207. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7208. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADC_DC_adc_start] --> 0x%08x\n",
  7209. REG_EPHY_ADC_DC,value);
  7210. #endif
  7211. return tmp_value.bitc.adc_start;
  7212. }
  7213. #endif /* GH_INLINE_LEVEL == 0 */
  7214. /*----------------------------------------------------------------------------*/
  7215. /* register EPHY_ADCPL (read/write) */
  7216. /*----------------------------------------------------------------------------*/
  7217. #if GH_INLINE_LEVEL == 0
  7218. /*! \brief Writes the register 'EPHY_ADCPL'. */
  7219. void GH_EPHY_set_ADCPL(U16 data);
  7220. /*! \brief Reads the register 'EPHY_ADCPL'. */
  7221. U16 GH_EPHY_get_ADCPL(void);
  7222. /*! \brief Writes the bit group 'mod_10t' of register 'EPHY_ADCPL'. */
  7223. void GH_EPHY_set_ADCPL_mod_10t(U8 data);
  7224. /*! \brief Reads the bit group 'mod_10t' of register 'EPHY_ADCPL'. */
  7225. U8 GH_EPHY_get_ADCPL_mod_10t(void);
  7226. /*! \brief Writes the bit group 'mod' of register 'EPHY_ADCPL'. */
  7227. void GH_EPHY_set_ADCPL_mod(U8 data);
  7228. /*! \brief Reads the bit group 'mod' of register 'EPHY_ADCPL'. */
  7229. U8 GH_EPHY_get_ADCPL_mod(void);
  7230. /*! \brief Writes the bit group 'mod_lp' of register 'EPHY_ADCPL'. */
  7231. void GH_EPHY_set_ADCPL_mod_lp(U8 data);
  7232. /*! \brief Reads the bit group 'mod_lp' of register 'EPHY_ADCPL'. */
  7233. U8 GH_EPHY_get_ADCPL_mod_lp(void);
  7234. /*! \brief Writes the bit group 'adc_frc_zero' of register 'EPHY_ADCPL'. */
  7235. void GH_EPHY_set_ADCPL_adc_frc_zero(U8 data);
  7236. /*! \brief Reads the bit group 'adc_frc_zero' of register 'EPHY_ADCPL'. */
  7237. U8 GH_EPHY_get_ADCPL_adc_frc_zero(void);
  7238. /*! \brief Writes the bit group 'adcpl_step' of register 'EPHY_ADCPL'. */
  7239. void GH_EPHY_set_ADCPL_adcpl_step(U8 data);
  7240. /*! \brief Reads the bit group 'adcpl_step' of register 'EPHY_ADCPL'. */
  7241. U8 GH_EPHY_get_ADCPL_adcpl_step(void);
  7242. /*! \brief Writes the bit group 'ac_a_timer_start' of register 'EPHY_ADCPL'. */
  7243. void GH_EPHY_set_ADCPL_ac_a_timer_start(U8 data);
  7244. /*! \brief Reads the bit group 'ac_a_timer_start' of register 'EPHY_ADCPL'. */
  7245. U8 GH_EPHY_get_ADCPL_ac_a_timer_start(void);
  7246. /*! \brief Writes the bit group 'ac_sample_timer_start' of register 'EPHY_ADCPL'. */
  7247. void GH_EPHY_set_ADCPL_ac_sample_timer_start(U8 data);
  7248. /*! \brief Reads the bit group 'ac_sample_timer_start' of register 'EPHY_ADCPL'. */
  7249. U8 GH_EPHY_get_ADCPL_ac_sample_timer_start(void);
  7250. /*! \brief Writes the bit group 'txramp_gen_10t' of register 'EPHY_ADCPL'. */
  7251. void GH_EPHY_set_ADCPL_txramp_gen_10t(U8 data);
  7252. /*! \brief Reads the bit group 'txramp_gen_10t' of register 'EPHY_ADCPL'. */
  7253. U8 GH_EPHY_get_ADCPL_txramp_gen_10t(void);
  7254. #else /* GH_INLINE_LEVEL == 0 */
  7255. GH_INLINE void GH_EPHY_set_ADCPL(U16 data)
  7256. {
  7257. *(volatile U16 *)REG_EPHY_ADCPL = data;
  7258. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7259. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADCPL] <-- 0x%08x\n",
  7260. REG_EPHY_ADCPL,data,data);
  7261. #endif
  7262. }
  7263. GH_INLINE U16 GH_EPHY_get_ADCPL(void)
  7264. {
  7265. U16 value = (*(volatile U16 *)REG_EPHY_ADCPL);
  7266. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7267. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADCPL] --> 0x%08x\n",
  7268. REG_EPHY_ADCPL,value);
  7269. #endif
  7270. return value;
  7271. }
  7272. GH_INLINE void GH_EPHY_set_ADCPL_mod_10t(U8 data)
  7273. {
  7274. GH_EPHY_ADCPL_S d;
  7275. d.all = *(volatile U16 *)REG_EPHY_ADCPL;
  7276. d.bitc.mod_10t = data;
  7277. *(volatile U16 *)REG_EPHY_ADCPL = d.all;
  7278. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7279. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADCPL_mod_10t] <-- 0x%08x\n",
  7280. REG_EPHY_ADCPL,d.all,d.all);
  7281. #endif
  7282. }
  7283. GH_INLINE U8 GH_EPHY_get_ADCPL_mod_10t(void)
  7284. {
  7285. GH_EPHY_ADCPL_S tmp_value;
  7286. U16 value = (*(volatile U16 *)REG_EPHY_ADCPL);
  7287. tmp_value.all = value;
  7288. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7289. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADCPL_mod_10t] --> 0x%08x\n",
  7290. REG_EPHY_ADCPL,value);
  7291. #endif
  7292. return tmp_value.bitc.mod_10t;
  7293. }
  7294. GH_INLINE void GH_EPHY_set_ADCPL_mod(U8 data)
  7295. {
  7296. GH_EPHY_ADCPL_S d;
  7297. d.all = *(volatile U16 *)REG_EPHY_ADCPL;
  7298. d.bitc.mod = data;
  7299. *(volatile U16 *)REG_EPHY_ADCPL = d.all;
  7300. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7301. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADCPL_mod] <-- 0x%08x\n",
  7302. REG_EPHY_ADCPL,d.all,d.all);
  7303. #endif
  7304. }
  7305. GH_INLINE U8 GH_EPHY_get_ADCPL_mod(void)
  7306. {
  7307. GH_EPHY_ADCPL_S tmp_value;
  7308. U16 value = (*(volatile U16 *)REG_EPHY_ADCPL);
  7309. tmp_value.all = value;
  7310. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7311. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADCPL_mod] --> 0x%08x\n",
  7312. REG_EPHY_ADCPL,value);
  7313. #endif
  7314. return tmp_value.bitc.mod;
  7315. }
  7316. GH_INLINE void GH_EPHY_set_ADCPL_mod_lp(U8 data)
  7317. {
  7318. GH_EPHY_ADCPL_S d;
  7319. d.all = *(volatile U16 *)REG_EPHY_ADCPL;
  7320. d.bitc.mod_lp = data;
  7321. *(volatile U16 *)REG_EPHY_ADCPL = d.all;
  7322. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7323. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADCPL_mod_lp] <-- 0x%08x\n",
  7324. REG_EPHY_ADCPL,d.all,d.all);
  7325. #endif
  7326. }
  7327. GH_INLINE U8 GH_EPHY_get_ADCPL_mod_lp(void)
  7328. {
  7329. GH_EPHY_ADCPL_S tmp_value;
  7330. U16 value = (*(volatile U16 *)REG_EPHY_ADCPL);
  7331. tmp_value.all = value;
  7332. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7333. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADCPL_mod_lp] --> 0x%08x\n",
  7334. REG_EPHY_ADCPL,value);
  7335. #endif
  7336. return tmp_value.bitc.mod_lp;
  7337. }
  7338. GH_INLINE void GH_EPHY_set_ADCPL_adc_frc_zero(U8 data)
  7339. {
  7340. GH_EPHY_ADCPL_S d;
  7341. d.all = *(volatile U16 *)REG_EPHY_ADCPL;
  7342. d.bitc.adc_frc_zero = data;
  7343. *(volatile U16 *)REG_EPHY_ADCPL = d.all;
  7344. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7345. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADCPL_adc_frc_zero] <-- 0x%08x\n",
  7346. REG_EPHY_ADCPL,d.all,d.all);
  7347. #endif
  7348. }
  7349. GH_INLINE U8 GH_EPHY_get_ADCPL_adc_frc_zero(void)
  7350. {
  7351. GH_EPHY_ADCPL_S tmp_value;
  7352. U16 value = (*(volatile U16 *)REG_EPHY_ADCPL);
  7353. tmp_value.all = value;
  7354. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7355. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADCPL_adc_frc_zero] --> 0x%08x\n",
  7356. REG_EPHY_ADCPL,value);
  7357. #endif
  7358. return tmp_value.bitc.adc_frc_zero;
  7359. }
  7360. GH_INLINE void GH_EPHY_set_ADCPL_adcpl_step(U8 data)
  7361. {
  7362. GH_EPHY_ADCPL_S d;
  7363. d.all = *(volatile U16 *)REG_EPHY_ADCPL;
  7364. d.bitc.adcpl_step = data;
  7365. *(volatile U16 *)REG_EPHY_ADCPL = d.all;
  7366. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7367. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADCPL_adcpl_step] <-- 0x%08x\n",
  7368. REG_EPHY_ADCPL,d.all,d.all);
  7369. #endif
  7370. }
  7371. GH_INLINE U8 GH_EPHY_get_ADCPL_adcpl_step(void)
  7372. {
  7373. GH_EPHY_ADCPL_S tmp_value;
  7374. U16 value = (*(volatile U16 *)REG_EPHY_ADCPL);
  7375. tmp_value.all = value;
  7376. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7377. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADCPL_adcpl_step] --> 0x%08x\n",
  7378. REG_EPHY_ADCPL,value);
  7379. #endif
  7380. return tmp_value.bitc.adcpl_step;
  7381. }
  7382. GH_INLINE void GH_EPHY_set_ADCPL_ac_a_timer_start(U8 data)
  7383. {
  7384. GH_EPHY_ADCPL_S d;
  7385. d.all = *(volatile U16 *)REG_EPHY_ADCPL;
  7386. d.bitc.ac_a_timer_start = data;
  7387. *(volatile U16 *)REG_EPHY_ADCPL = d.all;
  7388. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7389. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADCPL_ac_a_timer_start] <-- 0x%08x\n",
  7390. REG_EPHY_ADCPL,d.all,d.all);
  7391. #endif
  7392. }
  7393. GH_INLINE U8 GH_EPHY_get_ADCPL_ac_a_timer_start(void)
  7394. {
  7395. GH_EPHY_ADCPL_S tmp_value;
  7396. U16 value = (*(volatile U16 *)REG_EPHY_ADCPL);
  7397. tmp_value.all = value;
  7398. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7399. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADCPL_ac_a_timer_start] --> 0x%08x\n",
  7400. REG_EPHY_ADCPL,value);
  7401. #endif
  7402. return tmp_value.bitc.ac_a_timer_start;
  7403. }
  7404. GH_INLINE void GH_EPHY_set_ADCPL_ac_sample_timer_start(U8 data)
  7405. {
  7406. GH_EPHY_ADCPL_S d;
  7407. d.all = *(volatile U16 *)REG_EPHY_ADCPL;
  7408. d.bitc.ac_sample_timer_start = data;
  7409. *(volatile U16 *)REG_EPHY_ADCPL = d.all;
  7410. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7411. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADCPL_ac_sample_timer_start] <-- 0x%08x\n",
  7412. REG_EPHY_ADCPL,d.all,d.all);
  7413. #endif
  7414. }
  7415. GH_INLINE U8 GH_EPHY_get_ADCPL_ac_sample_timer_start(void)
  7416. {
  7417. GH_EPHY_ADCPL_S tmp_value;
  7418. U16 value = (*(volatile U16 *)REG_EPHY_ADCPL);
  7419. tmp_value.all = value;
  7420. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7421. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADCPL_ac_sample_timer_start] --> 0x%08x\n",
  7422. REG_EPHY_ADCPL,value);
  7423. #endif
  7424. return tmp_value.bitc.ac_sample_timer_start;
  7425. }
  7426. GH_INLINE void GH_EPHY_set_ADCPL_txramp_gen_10t(U8 data)
  7427. {
  7428. GH_EPHY_ADCPL_S d;
  7429. d.all = *(volatile U16 *)REG_EPHY_ADCPL;
  7430. d.bitc.txramp_gen_10t = data;
  7431. *(volatile U16 *)REG_EPHY_ADCPL = d.all;
  7432. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7433. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_ADCPL_txramp_gen_10t] <-- 0x%08x\n",
  7434. REG_EPHY_ADCPL,d.all,d.all);
  7435. #endif
  7436. }
  7437. GH_INLINE U8 GH_EPHY_get_ADCPL_txramp_gen_10t(void)
  7438. {
  7439. GH_EPHY_ADCPL_S tmp_value;
  7440. U16 value = (*(volatile U16 *)REG_EPHY_ADCPL);
  7441. tmp_value.all = value;
  7442. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7443. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_ADCPL_txramp_gen_10t] --> 0x%08x\n",
  7444. REG_EPHY_ADCPL,value);
  7445. #endif
  7446. return tmp_value.bitc.txramp_gen_10t;
  7447. }
  7448. #endif /* GH_INLINE_LEVEL == 0 */
  7449. /*----------------------------------------------------------------------------*/
  7450. /* register EPHY_LDO (read/write) */
  7451. /*----------------------------------------------------------------------------*/
  7452. #if GH_INLINE_LEVEL == 0
  7453. /*! \brief Writes the register 'EPHY_LDO'. */
  7454. void GH_EPHY_set_LDO(U16 data);
  7455. /*! \brief Reads the register 'EPHY_LDO'. */
  7456. U16 GH_EPHY_get_LDO(void);
  7457. /*! \brief Writes the bit group 'dummy' of register 'EPHY_LDO'. */
  7458. void GH_EPHY_set_LDO_dummy(U16 data);
  7459. /*! \brief Reads the bit group 'dummy' of register 'EPHY_LDO'. */
  7460. U16 GH_EPHY_get_LDO_dummy(void);
  7461. #else /* GH_INLINE_LEVEL == 0 */
  7462. GH_INLINE void GH_EPHY_set_LDO(U16 data)
  7463. {
  7464. *(volatile U16 *)REG_EPHY_LDO = data;
  7465. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7466. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_LDO] <-- 0x%08x\n",
  7467. REG_EPHY_LDO,data,data);
  7468. #endif
  7469. }
  7470. GH_INLINE U16 GH_EPHY_get_LDO(void)
  7471. {
  7472. U16 value = (*(volatile U16 *)REG_EPHY_LDO);
  7473. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7474. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_LDO] --> 0x%08x\n",
  7475. REG_EPHY_LDO,value);
  7476. #endif
  7477. return value;
  7478. }
  7479. GH_INLINE void GH_EPHY_set_LDO_dummy(U16 data)
  7480. {
  7481. GH_EPHY_LDO_S d;
  7482. d.all = *(volatile U16 *)REG_EPHY_LDO;
  7483. d.bitc.dummy = data;
  7484. *(volatile U16 *)REG_EPHY_LDO = d.all;
  7485. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7486. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_LDO_dummy] <-- 0x%08x\n",
  7487. REG_EPHY_LDO,d.all,d.all);
  7488. #endif
  7489. }
  7490. GH_INLINE U16 GH_EPHY_get_LDO_dummy(void)
  7491. {
  7492. GH_EPHY_LDO_S tmp_value;
  7493. U16 value = (*(volatile U16 *)REG_EPHY_LDO);
  7494. tmp_value.all = value;
  7495. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7496. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_LDO_dummy] --> 0x%08x\n",
  7497. REG_EPHY_LDO,value);
  7498. #endif
  7499. return tmp_value.bitc.dummy;
  7500. }
  7501. #endif /* GH_INLINE_LEVEL == 0 */
  7502. /*----------------------------------------------------------------------------*/
  7503. /* register EPHY_CLK_GATE (read) */
  7504. /*----------------------------------------------------------------------------*/
  7505. #if GH_INLINE_LEVEL == 0
  7506. /*! \brief Reads the register 'EPHY_CLK_GATE'. */
  7507. U16 GH_EPHY_get_CLK_GATE(void);
  7508. /*! \brief Reads the bit group 'eee_capability' of register 'EPHY_CLK_GATE'. */
  7509. U16 GH_EPHY_get_CLK_GATE_eee_capability(void);
  7510. #else /* GH_INLINE_LEVEL == 0 */
  7511. GH_INLINE U16 GH_EPHY_get_CLK_GATE(void)
  7512. {
  7513. U16 value = (*(volatile U16 *)REG_EPHY_CLK_GATE);
  7514. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7515. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_CLK_GATE] --> 0x%08x\n",
  7516. REG_EPHY_CLK_GATE,value);
  7517. #endif
  7518. return value;
  7519. }
  7520. GH_INLINE U16 GH_EPHY_get_CLK_GATE_eee_capability(void)
  7521. {
  7522. GH_EPHY_CLK_GATE_S tmp_value;
  7523. U16 value = (*(volatile U16 *)REG_EPHY_CLK_GATE);
  7524. tmp_value.all = value;
  7525. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7526. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_CLK_GATE_eee_capability] --> 0x%08x\n",
  7527. REG_EPHY_CLK_GATE,value);
  7528. #endif
  7529. return tmp_value.bitc.eee_capability;
  7530. }
  7531. #endif /* GH_INLINE_LEVEL == 0 */
  7532. /*----------------------------------------------------------------------------*/
  7533. /* register EPHY_CLK1 (read/write) */
  7534. /*----------------------------------------------------------------------------*/
  7535. #if GH_INLINE_LEVEL == 0
  7536. /*! \brief Writes the register 'EPHY_CLK1'. */
  7537. void GH_EPHY_set_CLK1(U16 data);
  7538. /*! \brief Reads the register 'EPHY_CLK1'. */
  7539. U16 GH_EPHY_get_CLK1(void);
  7540. /*! \brief Writes the bit group 'unkown' of register 'EPHY_CLK1'. */
  7541. void GH_EPHY_set_CLK1_unkown(U8 data);
  7542. /*! \brief Reads the bit group 'unkown' of register 'EPHY_CLK1'. */
  7543. U8 GH_EPHY_get_CLK1_unkown(void);
  7544. /*! \brief Writes the bit group 'clko_200_gat' of register 'EPHY_CLK1'. */
  7545. void GH_EPHY_set_CLK1_clko_200_gat(U8 data);
  7546. /*! \brief Reads the bit group 'clko_200_gat' of register 'EPHY_CLK1'. */
  7547. U8 GH_EPHY_get_CLK1_clko_200_gat(void);
  7548. /*! \brief Writes the bit group 'clko_200_inv' of register 'EPHY_CLK1'. */
  7549. void GH_EPHY_set_CLK1_clko_200_inv(U8 data);
  7550. /*! \brief Reads the bit group 'clko_200_inv' of register 'EPHY_CLK1'. */
  7551. U8 GH_EPHY_get_CLK1_clko_200_inv(void);
  7552. /*! \brief Writes the bit group 'lut_new' of register 'EPHY_CLK1'. */
  7553. void GH_EPHY_set_CLK1_lut_new(U8 data);
  7554. /*! \brief Reads the bit group 'lut_new' of register 'EPHY_CLK1'. */
  7555. U8 GH_EPHY_get_CLK1_lut_new(void);
  7556. #else /* GH_INLINE_LEVEL == 0 */
  7557. GH_INLINE void GH_EPHY_set_CLK1(U16 data)
  7558. {
  7559. *(volatile U16 *)REG_EPHY_CLK1 = data;
  7560. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7561. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_CLK1] <-- 0x%08x\n",
  7562. REG_EPHY_CLK1,data,data);
  7563. #endif
  7564. }
  7565. GH_INLINE U16 GH_EPHY_get_CLK1(void)
  7566. {
  7567. U16 value = (*(volatile U16 *)REG_EPHY_CLK1);
  7568. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7569. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_CLK1] --> 0x%08x\n",
  7570. REG_EPHY_CLK1,value);
  7571. #endif
  7572. return value;
  7573. }
  7574. GH_INLINE void GH_EPHY_set_CLK1_unkown(U8 data)
  7575. {
  7576. GH_EPHY_CLK1_S d;
  7577. d.all = *(volatile U16 *)REG_EPHY_CLK1;
  7578. d.bitc.unkown = data;
  7579. *(volatile U16 *)REG_EPHY_CLK1 = d.all;
  7580. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7581. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_CLK1_unkown] <-- 0x%08x\n",
  7582. REG_EPHY_CLK1,d.all,d.all);
  7583. #endif
  7584. }
  7585. GH_INLINE U8 GH_EPHY_get_CLK1_unkown(void)
  7586. {
  7587. GH_EPHY_CLK1_S tmp_value;
  7588. U16 value = (*(volatile U16 *)REG_EPHY_CLK1);
  7589. tmp_value.all = value;
  7590. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7591. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_CLK1_unkown] --> 0x%08x\n",
  7592. REG_EPHY_CLK1,value);
  7593. #endif
  7594. return tmp_value.bitc.unkown;
  7595. }
  7596. GH_INLINE void GH_EPHY_set_CLK1_clko_200_gat(U8 data)
  7597. {
  7598. GH_EPHY_CLK1_S d;
  7599. d.all = *(volatile U16 *)REG_EPHY_CLK1;
  7600. d.bitc.clko_200_gat = data;
  7601. *(volatile U16 *)REG_EPHY_CLK1 = d.all;
  7602. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7603. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_CLK1_clko_200_gat] <-- 0x%08x\n",
  7604. REG_EPHY_CLK1,d.all,d.all);
  7605. #endif
  7606. }
  7607. GH_INLINE U8 GH_EPHY_get_CLK1_clko_200_gat(void)
  7608. {
  7609. GH_EPHY_CLK1_S tmp_value;
  7610. U16 value = (*(volatile U16 *)REG_EPHY_CLK1);
  7611. tmp_value.all = value;
  7612. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7613. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_CLK1_clko_200_gat] --> 0x%08x\n",
  7614. REG_EPHY_CLK1,value);
  7615. #endif
  7616. return tmp_value.bitc.clko_200_gat;
  7617. }
  7618. GH_INLINE void GH_EPHY_set_CLK1_clko_200_inv(U8 data)
  7619. {
  7620. GH_EPHY_CLK1_S d;
  7621. d.all = *(volatile U16 *)REG_EPHY_CLK1;
  7622. d.bitc.clko_200_inv = data;
  7623. *(volatile U16 *)REG_EPHY_CLK1 = d.all;
  7624. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7625. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_CLK1_clko_200_inv] <-- 0x%08x\n",
  7626. REG_EPHY_CLK1,d.all,d.all);
  7627. #endif
  7628. }
  7629. GH_INLINE U8 GH_EPHY_get_CLK1_clko_200_inv(void)
  7630. {
  7631. GH_EPHY_CLK1_S tmp_value;
  7632. U16 value = (*(volatile U16 *)REG_EPHY_CLK1);
  7633. tmp_value.all = value;
  7634. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7635. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_CLK1_clko_200_inv] --> 0x%08x\n",
  7636. REG_EPHY_CLK1,value);
  7637. #endif
  7638. return tmp_value.bitc.clko_200_inv;
  7639. }
  7640. GH_INLINE void GH_EPHY_set_CLK1_lut_new(U8 data)
  7641. {
  7642. GH_EPHY_CLK1_S d;
  7643. d.all = *(volatile U16 *)REG_EPHY_CLK1;
  7644. d.bitc.lut_new = data;
  7645. *(volatile U16 *)REG_EPHY_CLK1 = d.all;
  7646. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7647. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_CLK1_lut_new] <-- 0x%08x\n",
  7648. REG_EPHY_CLK1,d.all,d.all);
  7649. #endif
  7650. }
  7651. GH_INLINE U8 GH_EPHY_get_CLK1_lut_new(void)
  7652. {
  7653. GH_EPHY_CLK1_S tmp_value;
  7654. U16 value = (*(volatile U16 *)REG_EPHY_CLK1);
  7655. tmp_value.all = value;
  7656. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7657. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_CLK1_lut_new] --> 0x%08x\n",
  7658. REG_EPHY_CLK1,value);
  7659. #endif
  7660. return tmp_value.bitc.lut_new;
  7661. }
  7662. #endif /* GH_INLINE_LEVEL == 0 */
  7663. /*----------------------------------------------------------------------------*/
  7664. /* register EPHY_GCR_TX (read/write) */
  7665. /*----------------------------------------------------------------------------*/
  7666. #if GH_INLINE_LEVEL == 0
  7667. /*! \brief Writes the register 'EPHY_GCR_TX'. */
  7668. void GH_EPHY_set_GCR_TX(U16 data);
  7669. /*! \brief Reads the register 'EPHY_GCR_TX'. */
  7670. U16 GH_EPHY_get_GCR_TX(void);
  7671. /*! \brief Writes the bit group 'ioffset_sel' of register 'EPHY_GCR_TX'. */
  7672. void GH_EPHY_set_GCR_TX_ioffset_sel(U8 data);
  7673. /*! \brief Reads the bit group 'ioffset_sel' of register 'EPHY_GCR_TX'. */
  7674. U8 GH_EPHY_get_GCR_TX_ioffset_sel(void);
  7675. /*! \brief Writes the bit group 'ld_vcmo' of register 'EPHY_GCR_TX'. */
  7676. void GH_EPHY_set_GCR_TX_ld_vcmo(U8 data);
  7677. /*! \brief Reads the bit group 'ld_vcmo' of register 'EPHY_GCR_TX'. */
  7678. U8 GH_EPHY_get_GCR_TX_ld_vcmo(void);
  7679. /*! \brief Writes the bit group 'ph_delay' of register 'EPHY_GCR_TX'. */
  7680. void GH_EPHY_set_GCR_TX_ph_delay(U8 data);
  7681. /*! \brief Reads the bit group 'ph_delay' of register 'EPHY_GCR_TX'. */
  7682. U8 GH_EPHY_get_GCR_TX_ph_delay(void);
  7683. /*! \brief Writes the bit group 'phase_100t' of register 'EPHY_GCR_TX'. */
  7684. void GH_EPHY_set_GCR_TX_phase_100t(U8 data);
  7685. /*! \brief Reads the bit group 'phase_100t' of register 'EPHY_GCR_TX'. */
  7686. U8 GH_EPHY_get_GCR_TX_phase_100t(void);
  7687. /*! \brief Writes the bit group 'ld_iq_sel' of register 'EPHY_GCR_TX'. */
  7688. void GH_EPHY_set_GCR_TX_ld_iq_sel(U8 data);
  7689. /*! \brief Reads the bit group 'ld_iq_sel' of register 'EPHY_GCR_TX'. */
  7690. U8 GH_EPHY_get_GCR_TX_ld_iq_sel(void);
  7691. /*! \brief Writes the bit group 'ld_iq_ibias' of register 'EPHY_GCR_TX'. */
  7692. void GH_EPHY_set_GCR_TX_ld_iq_ibias(U8 data);
  7693. /*! \brief Reads the bit group 'ld_iq_ibias' of register 'EPHY_GCR_TX'. */
  7694. U8 GH_EPHY_get_GCR_TX_ld_iq_ibias(void);
  7695. /*! \brief Writes the bit group 'en_tx_ioffset' of register 'EPHY_GCR_TX'. */
  7696. void GH_EPHY_set_GCR_TX_en_tx_ioffset(U8 data);
  7697. /*! \brief Reads the bit group 'en_tx_ioffset' of register 'EPHY_GCR_TX'. */
  7698. U8 GH_EPHY_get_GCR_TX_en_tx_ioffset(void);
  7699. /*! \brief Writes the bit group 'save2x_tx' of register 'EPHY_GCR_TX'. */
  7700. void GH_EPHY_set_GCR_TX_save2x_tx(U8 data);
  7701. /*! \brief Reads the bit group 'save2x_tx' of register 'EPHY_GCR_TX'. */
  7702. U8 GH_EPHY_get_GCR_TX_save2x_tx(void);
  7703. /*! \brief Writes the bit group 'wssel_inv' of register 'EPHY_GCR_TX'. */
  7704. void GH_EPHY_set_GCR_TX_wssel_inv(U8 data);
  7705. /*! \brief Reads the bit group 'wssel_inv' of register 'EPHY_GCR_TX'. */
  7706. U8 GH_EPHY_get_GCR_TX_wssel_inv(void);
  7707. #else /* GH_INLINE_LEVEL == 0 */
  7708. GH_INLINE void GH_EPHY_set_GCR_TX(U16 data)
  7709. {
  7710. *(volatile U16 *)REG_EPHY_GCR_TX = data;
  7711. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7712. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_GCR_TX] <-- 0x%08x\n",
  7713. REG_EPHY_GCR_TX,data,data);
  7714. #endif
  7715. }
  7716. GH_INLINE U16 GH_EPHY_get_GCR_TX(void)
  7717. {
  7718. U16 value = (*(volatile U16 *)REG_EPHY_GCR_TX);
  7719. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7720. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_GCR_TX] --> 0x%08x\n",
  7721. REG_EPHY_GCR_TX,value);
  7722. #endif
  7723. return value;
  7724. }
  7725. GH_INLINE void GH_EPHY_set_GCR_TX_ioffset_sel(U8 data)
  7726. {
  7727. GH_EPHY_GCR_TX_S d;
  7728. d.all = *(volatile U16 *)REG_EPHY_GCR_TX;
  7729. d.bitc.ioffset_sel = data;
  7730. *(volatile U16 *)REG_EPHY_GCR_TX = d.all;
  7731. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7732. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_GCR_TX_ioffset_sel] <-- 0x%08x\n",
  7733. REG_EPHY_GCR_TX,d.all,d.all);
  7734. #endif
  7735. }
  7736. GH_INLINE U8 GH_EPHY_get_GCR_TX_ioffset_sel(void)
  7737. {
  7738. GH_EPHY_GCR_TX_S tmp_value;
  7739. U16 value = (*(volatile U16 *)REG_EPHY_GCR_TX);
  7740. tmp_value.all = value;
  7741. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7742. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_GCR_TX_ioffset_sel] --> 0x%08x\n",
  7743. REG_EPHY_GCR_TX,value);
  7744. #endif
  7745. return tmp_value.bitc.ioffset_sel;
  7746. }
  7747. GH_INLINE void GH_EPHY_set_GCR_TX_ld_vcmo(U8 data)
  7748. {
  7749. GH_EPHY_GCR_TX_S d;
  7750. d.all = *(volatile U16 *)REG_EPHY_GCR_TX;
  7751. d.bitc.ld_vcmo = data;
  7752. *(volatile U16 *)REG_EPHY_GCR_TX = d.all;
  7753. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7754. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_GCR_TX_ld_vcmo] <-- 0x%08x\n",
  7755. REG_EPHY_GCR_TX,d.all,d.all);
  7756. #endif
  7757. }
  7758. GH_INLINE U8 GH_EPHY_get_GCR_TX_ld_vcmo(void)
  7759. {
  7760. GH_EPHY_GCR_TX_S tmp_value;
  7761. U16 value = (*(volatile U16 *)REG_EPHY_GCR_TX);
  7762. tmp_value.all = value;
  7763. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7764. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_GCR_TX_ld_vcmo] --> 0x%08x\n",
  7765. REG_EPHY_GCR_TX,value);
  7766. #endif
  7767. return tmp_value.bitc.ld_vcmo;
  7768. }
  7769. GH_INLINE void GH_EPHY_set_GCR_TX_ph_delay(U8 data)
  7770. {
  7771. GH_EPHY_GCR_TX_S d;
  7772. d.all = *(volatile U16 *)REG_EPHY_GCR_TX;
  7773. d.bitc.ph_delay = data;
  7774. *(volatile U16 *)REG_EPHY_GCR_TX = d.all;
  7775. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7776. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_GCR_TX_ph_delay] <-- 0x%08x\n",
  7777. REG_EPHY_GCR_TX,d.all,d.all);
  7778. #endif
  7779. }
  7780. GH_INLINE U8 GH_EPHY_get_GCR_TX_ph_delay(void)
  7781. {
  7782. GH_EPHY_GCR_TX_S tmp_value;
  7783. U16 value = (*(volatile U16 *)REG_EPHY_GCR_TX);
  7784. tmp_value.all = value;
  7785. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7786. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_GCR_TX_ph_delay] --> 0x%08x\n",
  7787. REG_EPHY_GCR_TX,value);
  7788. #endif
  7789. return tmp_value.bitc.ph_delay;
  7790. }
  7791. GH_INLINE void GH_EPHY_set_GCR_TX_phase_100t(U8 data)
  7792. {
  7793. GH_EPHY_GCR_TX_S d;
  7794. d.all = *(volatile U16 *)REG_EPHY_GCR_TX;
  7795. d.bitc.phase_100t = data;
  7796. *(volatile U16 *)REG_EPHY_GCR_TX = d.all;
  7797. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7798. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_GCR_TX_phase_100t] <-- 0x%08x\n",
  7799. REG_EPHY_GCR_TX,d.all,d.all);
  7800. #endif
  7801. }
  7802. GH_INLINE U8 GH_EPHY_get_GCR_TX_phase_100t(void)
  7803. {
  7804. GH_EPHY_GCR_TX_S tmp_value;
  7805. U16 value = (*(volatile U16 *)REG_EPHY_GCR_TX);
  7806. tmp_value.all = value;
  7807. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7808. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_GCR_TX_phase_100t] --> 0x%08x\n",
  7809. REG_EPHY_GCR_TX,value);
  7810. #endif
  7811. return tmp_value.bitc.phase_100t;
  7812. }
  7813. GH_INLINE void GH_EPHY_set_GCR_TX_ld_iq_sel(U8 data)
  7814. {
  7815. GH_EPHY_GCR_TX_S d;
  7816. d.all = *(volatile U16 *)REG_EPHY_GCR_TX;
  7817. d.bitc.ld_iq_sel = data;
  7818. *(volatile U16 *)REG_EPHY_GCR_TX = d.all;
  7819. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7820. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_GCR_TX_ld_iq_sel] <-- 0x%08x\n",
  7821. REG_EPHY_GCR_TX,d.all,d.all);
  7822. #endif
  7823. }
  7824. GH_INLINE U8 GH_EPHY_get_GCR_TX_ld_iq_sel(void)
  7825. {
  7826. GH_EPHY_GCR_TX_S tmp_value;
  7827. U16 value = (*(volatile U16 *)REG_EPHY_GCR_TX);
  7828. tmp_value.all = value;
  7829. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7830. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_GCR_TX_ld_iq_sel] --> 0x%08x\n",
  7831. REG_EPHY_GCR_TX,value);
  7832. #endif
  7833. return tmp_value.bitc.ld_iq_sel;
  7834. }
  7835. GH_INLINE void GH_EPHY_set_GCR_TX_ld_iq_ibias(U8 data)
  7836. {
  7837. GH_EPHY_GCR_TX_S d;
  7838. d.all = *(volatile U16 *)REG_EPHY_GCR_TX;
  7839. d.bitc.ld_iq_ibias = data;
  7840. *(volatile U16 *)REG_EPHY_GCR_TX = d.all;
  7841. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7842. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_GCR_TX_ld_iq_ibias] <-- 0x%08x\n",
  7843. REG_EPHY_GCR_TX,d.all,d.all);
  7844. #endif
  7845. }
  7846. GH_INLINE U8 GH_EPHY_get_GCR_TX_ld_iq_ibias(void)
  7847. {
  7848. GH_EPHY_GCR_TX_S tmp_value;
  7849. U16 value = (*(volatile U16 *)REG_EPHY_GCR_TX);
  7850. tmp_value.all = value;
  7851. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7852. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_GCR_TX_ld_iq_ibias] --> 0x%08x\n",
  7853. REG_EPHY_GCR_TX,value);
  7854. #endif
  7855. return tmp_value.bitc.ld_iq_ibias;
  7856. }
  7857. GH_INLINE void GH_EPHY_set_GCR_TX_en_tx_ioffset(U8 data)
  7858. {
  7859. GH_EPHY_GCR_TX_S d;
  7860. d.all = *(volatile U16 *)REG_EPHY_GCR_TX;
  7861. d.bitc.en_tx_ioffset = data;
  7862. *(volatile U16 *)REG_EPHY_GCR_TX = d.all;
  7863. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7864. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_GCR_TX_en_tx_ioffset] <-- 0x%08x\n",
  7865. REG_EPHY_GCR_TX,d.all,d.all);
  7866. #endif
  7867. }
  7868. GH_INLINE U8 GH_EPHY_get_GCR_TX_en_tx_ioffset(void)
  7869. {
  7870. GH_EPHY_GCR_TX_S tmp_value;
  7871. U16 value = (*(volatile U16 *)REG_EPHY_GCR_TX);
  7872. tmp_value.all = value;
  7873. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7874. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_GCR_TX_en_tx_ioffset] --> 0x%08x\n",
  7875. REG_EPHY_GCR_TX,value);
  7876. #endif
  7877. return tmp_value.bitc.en_tx_ioffset;
  7878. }
  7879. GH_INLINE void GH_EPHY_set_GCR_TX_save2x_tx(U8 data)
  7880. {
  7881. GH_EPHY_GCR_TX_S d;
  7882. d.all = *(volatile U16 *)REG_EPHY_GCR_TX;
  7883. d.bitc.save2x_tx = data;
  7884. *(volatile U16 *)REG_EPHY_GCR_TX = d.all;
  7885. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7886. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_GCR_TX_save2x_tx] <-- 0x%08x\n",
  7887. REG_EPHY_GCR_TX,d.all,d.all);
  7888. #endif
  7889. }
  7890. GH_INLINE U8 GH_EPHY_get_GCR_TX_save2x_tx(void)
  7891. {
  7892. GH_EPHY_GCR_TX_S tmp_value;
  7893. U16 value = (*(volatile U16 *)REG_EPHY_GCR_TX);
  7894. tmp_value.all = value;
  7895. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7896. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_GCR_TX_save2x_tx] --> 0x%08x\n",
  7897. REG_EPHY_GCR_TX,value);
  7898. #endif
  7899. return tmp_value.bitc.save2x_tx;
  7900. }
  7901. GH_INLINE void GH_EPHY_set_GCR_TX_wssel_inv(U8 data)
  7902. {
  7903. GH_EPHY_GCR_TX_S d;
  7904. d.all = *(volatile U16 *)REG_EPHY_GCR_TX;
  7905. d.bitc.wssel_inv = data;
  7906. *(volatile U16 *)REG_EPHY_GCR_TX = d.all;
  7907. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7908. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_GCR_TX_wssel_inv] <-- 0x%08x\n",
  7909. REG_EPHY_GCR_TX,d.all,d.all);
  7910. #endif
  7911. }
  7912. GH_INLINE U8 GH_EPHY_get_GCR_TX_wssel_inv(void)
  7913. {
  7914. GH_EPHY_GCR_TX_S tmp_value;
  7915. U16 value = (*(volatile U16 *)REG_EPHY_GCR_TX);
  7916. tmp_value.all = value;
  7917. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7918. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_GCR_TX_wssel_inv] --> 0x%08x\n",
  7919. REG_EPHY_GCR_TX,value);
  7920. #endif
  7921. return tmp_value.bitc.wssel_inv;
  7922. }
  7923. #endif /* GH_INLINE_LEVEL == 0 */
  7924. /*----------------------------------------------------------------------------*/
  7925. /* register EPHY_POWER (read/write) */
  7926. /*----------------------------------------------------------------------------*/
  7927. #if GH_INLINE_LEVEL == 0
  7928. /*! \brief Writes the register 'EPHY_POWER'. */
  7929. void GH_EPHY_set_POWER(U16 data);
  7930. /*! \brief Reads the register 'EPHY_POWER'. */
  7931. U16 GH_EPHY_get_POWER(void);
  7932. /*! \brief Writes the bit group 'pd_tx_ld' of register 'EPHY_POWER'. */
  7933. void GH_EPHY_set_POWER_pd_tx_ld(U8 data);
  7934. /*! \brief Reads the bit group 'pd_tx_ld' of register 'EPHY_POWER'. */
  7935. U8 GH_EPHY_get_POWER_pd_tx_ld(void);
  7936. /*! \brief Writes the bit group 'pd_tx_idac' of register 'EPHY_POWER'. */
  7937. void GH_EPHY_set_POWER_pd_tx_idac(U8 data);
  7938. /*! \brief Reads the bit group 'pd_tx_idac' of register 'EPHY_POWER'. */
  7939. U8 GH_EPHY_get_POWER_pd_tx_idac(void);
  7940. /*! \brief Writes the bit group 'pd_dacramp_new' of register 'EPHY_POWER'. */
  7941. void GH_EPHY_set_POWER_pd_dacramp_new(U8 data);
  7942. /*! \brief Reads the bit group 'pd_dacramp_new' of register 'EPHY_POWER'. */
  7943. U8 GH_EPHY_get_POWER_pd_dacramp_new(void);
  7944. /*! \brief Writes the bit group 'pd_dacnew_testen' of register 'EPHY_POWER'. */
  7945. void GH_EPHY_set_POWER_pd_dacnew_testen(U8 data);
  7946. /*! \brief Reads the bit group 'pd_dacnew_testen' of register 'EPHY_POWER'. */
  7947. U8 GH_EPHY_get_POWER_pd_dacnew_testen(void);
  7948. /*! \brief Writes the bit group 'pd_tx_ld_10t' of register 'EPHY_POWER'. */
  7949. void GH_EPHY_set_POWER_pd_tx_ld_10t(U8 data);
  7950. /*! \brief Reads the bit group 'pd_tx_ld_10t' of register 'EPHY_POWER'. */
  7951. U8 GH_EPHY_get_POWER_pd_tx_ld_10t(void);
  7952. /*! \brief Writes the bit group 'pd_tx_ld_100t' of register 'EPHY_POWER'. */
  7953. void GH_EPHY_set_POWER_pd_tx_ld_100t(U8 data);
  7954. /*! \brief Reads the bit group 'pd_tx_ld_100t' of register 'EPHY_POWER'. */
  7955. U8 GH_EPHY_get_POWER_pd_tx_ld_100t(void);
  7956. /*! \brief Writes the bit group 'pd_tx_ld_lp' of register 'EPHY_POWER'. */
  7957. void GH_EPHY_set_POWER_pd_tx_ld_lp(U8 data);
  7958. /*! \brief Reads the bit group 'pd_tx_ld_lp' of register 'EPHY_POWER'. */
  7959. U8 GH_EPHY_get_POWER_pd_tx_ld_lp(void);
  7960. /*! \brief Writes the bit group 'pd_tx_idac_10t' of register 'EPHY_POWER'. */
  7961. void GH_EPHY_set_POWER_pd_tx_idac_10t(U8 data);
  7962. /*! \brief Reads the bit group 'pd_tx_idac_10t' of register 'EPHY_POWER'. */
  7963. U8 GH_EPHY_get_POWER_pd_tx_idac_10t(void);
  7964. /*! \brief Writes the bit group 'pd_tx_idac_100t' of register 'EPHY_POWER'. */
  7965. void GH_EPHY_set_POWER_pd_tx_idac_100t(U8 data);
  7966. /*! \brief Reads the bit group 'pd_tx_idac_100t' of register 'EPHY_POWER'. */
  7967. U8 GH_EPHY_get_POWER_pd_tx_idac_100t(void);
  7968. /*! \brief Writes the bit group 'pd_tx_idac_lp' of register 'EPHY_POWER'. */
  7969. void GH_EPHY_set_POWER_pd_tx_idac_lp(U8 data);
  7970. /*! \brief Reads the bit group 'pd_tx_idac_lp' of register 'EPHY_POWER'. */
  7971. U8 GH_EPHY_get_POWER_pd_tx_idac_lp(void);
  7972. #else /* GH_INLINE_LEVEL == 0 */
  7973. GH_INLINE void GH_EPHY_set_POWER(U16 data)
  7974. {
  7975. *(volatile U16 *)REG_EPHY_POWER = data;
  7976. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7977. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_POWER] <-- 0x%08x\n",
  7978. REG_EPHY_POWER,data,data);
  7979. #endif
  7980. }
  7981. GH_INLINE U16 GH_EPHY_get_POWER(void)
  7982. {
  7983. U16 value = (*(volatile U16 *)REG_EPHY_POWER);
  7984. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7985. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_POWER] --> 0x%08x\n",
  7986. REG_EPHY_POWER,value);
  7987. #endif
  7988. return value;
  7989. }
  7990. GH_INLINE void GH_EPHY_set_POWER_pd_tx_ld(U8 data)
  7991. {
  7992. GH_EPHY_POWER_S d;
  7993. d.all = *(volatile U16 *)REG_EPHY_POWER;
  7994. d.bitc.pd_tx_ld = data;
  7995. *(volatile U16 *)REG_EPHY_POWER = d.all;
  7996. #if GH_EPHY_ENABLE_DEBUG_PRINT
  7997. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_POWER_pd_tx_ld] <-- 0x%08x\n",
  7998. REG_EPHY_POWER,d.all,d.all);
  7999. #endif
  8000. }
  8001. GH_INLINE U8 GH_EPHY_get_POWER_pd_tx_ld(void)
  8002. {
  8003. GH_EPHY_POWER_S tmp_value;
  8004. U16 value = (*(volatile U16 *)REG_EPHY_POWER);
  8005. tmp_value.all = value;
  8006. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8007. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_POWER_pd_tx_ld] --> 0x%08x\n",
  8008. REG_EPHY_POWER,value);
  8009. #endif
  8010. return tmp_value.bitc.pd_tx_ld;
  8011. }
  8012. GH_INLINE void GH_EPHY_set_POWER_pd_tx_idac(U8 data)
  8013. {
  8014. GH_EPHY_POWER_S d;
  8015. d.all = *(volatile U16 *)REG_EPHY_POWER;
  8016. d.bitc.pd_tx_idac = data;
  8017. *(volatile U16 *)REG_EPHY_POWER = d.all;
  8018. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8019. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_POWER_pd_tx_idac] <-- 0x%08x\n",
  8020. REG_EPHY_POWER,d.all,d.all);
  8021. #endif
  8022. }
  8023. GH_INLINE U8 GH_EPHY_get_POWER_pd_tx_idac(void)
  8024. {
  8025. GH_EPHY_POWER_S tmp_value;
  8026. U16 value = (*(volatile U16 *)REG_EPHY_POWER);
  8027. tmp_value.all = value;
  8028. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8029. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_POWER_pd_tx_idac] --> 0x%08x\n",
  8030. REG_EPHY_POWER,value);
  8031. #endif
  8032. return tmp_value.bitc.pd_tx_idac;
  8033. }
  8034. GH_INLINE void GH_EPHY_set_POWER_pd_dacramp_new(U8 data)
  8035. {
  8036. GH_EPHY_POWER_S d;
  8037. d.all = *(volatile U16 *)REG_EPHY_POWER;
  8038. d.bitc.pd_dacramp_new = data;
  8039. *(volatile U16 *)REG_EPHY_POWER = d.all;
  8040. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8041. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_POWER_pd_dacramp_new] <-- 0x%08x\n",
  8042. REG_EPHY_POWER,d.all,d.all);
  8043. #endif
  8044. }
  8045. GH_INLINE U8 GH_EPHY_get_POWER_pd_dacramp_new(void)
  8046. {
  8047. GH_EPHY_POWER_S tmp_value;
  8048. U16 value = (*(volatile U16 *)REG_EPHY_POWER);
  8049. tmp_value.all = value;
  8050. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8051. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_POWER_pd_dacramp_new] --> 0x%08x\n",
  8052. REG_EPHY_POWER,value);
  8053. #endif
  8054. return tmp_value.bitc.pd_dacramp_new;
  8055. }
  8056. GH_INLINE void GH_EPHY_set_POWER_pd_dacnew_testen(U8 data)
  8057. {
  8058. GH_EPHY_POWER_S d;
  8059. d.all = *(volatile U16 *)REG_EPHY_POWER;
  8060. d.bitc.pd_dacnew_testen = data;
  8061. *(volatile U16 *)REG_EPHY_POWER = d.all;
  8062. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8063. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_POWER_pd_dacnew_testen] <-- 0x%08x\n",
  8064. REG_EPHY_POWER,d.all,d.all);
  8065. #endif
  8066. }
  8067. GH_INLINE U8 GH_EPHY_get_POWER_pd_dacnew_testen(void)
  8068. {
  8069. GH_EPHY_POWER_S tmp_value;
  8070. U16 value = (*(volatile U16 *)REG_EPHY_POWER);
  8071. tmp_value.all = value;
  8072. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8073. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_POWER_pd_dacnew_testen] --> 0x%08x\n",
  8074. REG_EPHY_POWER,value);
  8075. #endif
  8076. return tmp_value.bitc.pd_dacnew_testen;
  8077. }
  8078. GH_INLINE void GH_EPHY_set_POWER_pd_tx_ld_10t(U8 data)
  8079. {
  8080. GH_EPHY_POWER_S d;
  8081. d.all = *(volatile U16 *)REG_EPHY_POWER;
  8082. d.bitc.pd_tx_ld_10t = data;
  8083. *(volatile U16 *)REG_EPHY_POWER = d.all;
  8084. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8085. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_POWER_pd_tx_ld_10t] <-- 0x%08x\n",
  8086. REG_EPHY_POWER,d.all,d.all);
  8087. #endif
  8088. }
  8089. GH_INLINE U8 GH_EPHY_get_POWER_pd_tx_ld_10t(void)
  8090. {
  8091. GH_EPHY_POWER_S tmp_value;
  8092. U16 value = (*(volatile U16 *)REG_EPHY_POWER);
  8093. tmp_value.all = value;
  8094. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8095. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_POWER_pd_tx_ld_10t] --> 0x%08x\n",
  8096. REG_EPHY_POWER,value);
  8097. #endif
  8098. return tmp_value.bitc.pd_tx_ld_10t;
  8099. }
  8100. GH_INLINE void GH_EPHY_set_POWER_pd_tx_ld_100t(U8 data)
  8101. {
  8102. GH_EPHY_POWER_S d;
  8103. d.all = *(volatile U16 *)REG_EPHY_POWER;
  8104. d.bitc.pd_tx_ld_100t = data;
  8105. *(volatile U16 *)REG_EPHY_POWER = d.all;
  8106. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8107. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_POWER_pd_tx_ld_100t] <-- 0x%08x\n",
  8108. REG_EPHY_POWER,d.all,d.all);
  8109. #endif
  8110. }
  8111. GH_INLINE U8 GH_EPHY_get_POWER_pd_tx_ld_100t(void)
  8112. {
  8113. GH_EPHY_POWER_S tmp_value;
  8114. U16 value = (*(volatile U16 *)REG_EPHY_POWER);
  8115. tmp_value.all = value;
  8116. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8117. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_POWER_pd_tx_ld_100t] --> 0x%08x\n",
  8118. REG_EPHY_POWER,value);
  8119. #endif
  8120. return tmp_value.bitc.pd_tx_ld_100t;
  8121. }
  8122. GH_INLINE void GH_EPHY_set_POWER_pd_tx_ld_lp(U8 data)
  8123. {
  8124. GH_EPHY_POWER_S d;
  8125. d.all = *(volatile U16 *)REG_EPHY_POWER;
  8126. d.bitc.pd_tx_ld_lp = data;
  8127. *(volatile U16 *)REG_EPHY_POWER = d.all;
  8128. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8129. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_POWER_pd_tx_ld_lp] <-- 0x%08x\n",
  8130. REG_EPHY_POWER,d.all,d.all);
  8131. #endif
  8132. }
  8133. GH_INLINE U8 GH_EPHY_get_POWER_pd_tx_ld_lp(void)
  8134. {
  8135. GH_EPHY_POWER_S tmp_value;
  8136. U16 value = (*(volatile U16 *)REG_EPHY_POWER);
  8137. tmp_value.all = value;
  8138. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8139. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_POWER_pd_tx_ld_lp] --> 0x%08x\n",
  8140. REG_EPHY_POWER,value);
  8141. #endif
  8142. return tmp_value.bitc.pd_tx_ld_lp;
  8143. }
  8144. GH_INLINE void GH_EPHY_set_POWER_pd_tx_idac_10t(U8 data)
  8145. {
  8146. GH_EPHY_POWER_S d;
  8147. d.all = *(volatile U16 *)REG_EPHY_POWER;
  8148. d.bitc.pd_tx_idac_10t = data;
  8149. *(volatile U16 *)REG_EPHY_POWER = d.all;
  8150. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8151. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_POWER_pd_tx_idac_10t] <-- 0x%08x\n",
  8152. REG_EPHY_POWER,d.all,d.all);
  8153. #endif
  8154. }
  8155. GH_INLINE U8 GH_EPHY_get_POWER_pd_tx_idac_10t(void)
  8156. {
  8157. GH_EPHY_POWER_S tmp_value;
  8158. U16 value = (*(volatile U16 *)REG_EPHY_POWER);
  8159. tmp_value.all = value;
  8160. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8161. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_POWER_pd_tx_idac_10t] --> 0x%08x\n",
  8162. REG_EPHY_POWER,value);
  8163. #endif
  8164. return tmp_value.bitc.pd_tx_idac_10t;
  8165. }
  8166. GH_INLINE void GH_EPHY_set_POWER_pd_tx_idac_100t(U8 data)
  8167. {
  8168. GH_EPHY_POWER_S d;
  8169. d.all = *(volatile U16 *)REG_EPHY_POWER;
  8170. d.bitc.pd_tx_idac_100t = data;
  8171. *(volatile U16 *)REG_EPHY_POWER = d.all;
  8172. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8173. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_POWER_pd_tx_idac_100t] <-- 0x%08x\n",
  8174. REG_EPHY_POWER,d.all,d.all);
  8175. #endif
  8176. }
  8177. GH_INLINE U8 GH_EPHY_get_POWER_pd_tx_idac_100t(void)
  8178. {
  8179. GH_EPHY_POWER_S tmp_value;
  8180. U16 value = (*(volatile U16 *)REG_EPHY_POWER);
  8181. tmp_value.all = value;
  8182. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8183. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_POWER_pd_tx_idac_100t] --> 0x%08x\n",
  8184. REG_EPHY_POWER,value);
  8185. #endif
  8186. return tmp_value.bitc.pd_tx_idac_100t;
  8187. }
  8188. GH_INLINE void GH_EPHY_set_POWER_pd_tx_idac_lp(U8 data)
  8189. {
  8190. GH_EPHY_POWER_S d;
  8191. d.all = *(volatile U16 *)REG_EPHY_POWER;
  8192. d.bitc.pd_tx_idac_lp = data;
  8193. *(volatile U16 *)REG_EPHY_POWER = d.all;
  8194. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8195. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_POWER_pd_tx_idac_lp] <-- 0x%08x\n",
  8196. REG_EPHY_POWER,d.all,d.all);
  8197. #endif
  8198. }
  8199. GH_INLINE U8 GH_EPHY_get_POWER_pd_tx_idac_lp(void)
  8200. {
  8201. GH_EPHY_POWER_S tmp_value;
  8202. U16 value = (*(volatile U16 *)REG_EPHY_POWER);
  8203. tmp_value.all = value;
  8204. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8205. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_POWER_pd_tx_idac_lp] --> 0x%08x\n",
  8206. REG_EPHY_POWER,value);
  8207. #endif
  8208. return tmp_value.bitc.pd_tx_idac_lp;
  8209. }
  8210. #endif /* GH_INLINE_LEVEL == 0 */
  8211. /*----------------------------------------------------------------------------*/
  8212. /* register EPHY_MDIIO (read/write) */
  8213. /*----------------------------------------------------------------------------*/
  8214. #if GH_INLINE_LEVEL == 0
  8215. /*! \brief Writes the register 'EPHY_MDIIO'. */
  8216. void GH_EPHY_set_MDIIO(U16 data);
  8217. /*! \brief Reads the register 'EPHY_MDIIO'. */
  8218. U16 GH_EPHY_get_MDIIO(void);
  8219. /*! \brief Writes the bit group 'mdio_idle_error_cnt_clear' of register 'EPHY_MDIIO'. */
  8220. void GH_EPHY_set_MDIIO_mdio_idle_error_cnt_clear(U8 data);
  8221. /*! \brief Reads the bit group 'mdio_idle_error_cnt_clear' of register 'EPHY_MDIIO'. */
  8222. U8 GH_EPHY_get_MDIIO_mdio_idle_error_cnt_clear(void);
  8223. /*! \brief Writes the bit group 'pd_vbuf' of register 'EPHY_MDIIO'. */
  8224. void GH_EPHY_set_MDIIO_pd_vbuf(U8 data);
  8225. /*! \brief Reads the bit group 'pd_vbuf' of register 'EPHY_MDIIO'. */
  8226. U8 GH_EPHY_get_MDIIO_pd_vbuf(void);
  8227. #else /* GH_INLINE_LEVEL == 0 */
  8228. GH_INLINE void GH_EPHY_set_MDIIO(U16 data)
  8229. {
  8230. *(volatile U16 *)REG_EPHY_MDIIO = data;
  8231. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8232. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_MDIIO] <-- 0x%08x\n",
  8233. REG_EPHY_MDIIO,data,data);
  8234. #endif
  8235. }
  8236. GH_INLINE U16 GH_EPHY_get_MDIIO(void)
  8237. {
  8238. U16 value = (*(volatile U16 *)REG_EPHY_MDIIO);
  8239. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8240. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_MDIIO] --> 0x%08x\n",
  8241. REG_EPHY_MDIIO,value);
  8242. #endif
  8243. return value;
  8244. }
  8245. GH_INLINE void GH_EPHY_set_MDIIO_mdio_idle_error_cnt_clear(U8 data)
  8246. {
  8247. GH_EPHY_MDIIO_S d;
  8248. d.all = *(volatile U16 *)REG_EPHY_MDIIO;
  8249. d.bitc.mdio_idle_error_cnt_clear = data;
  8250. *(volatile U16 *)REG_EPHY_MDIIO = d.all;
  8251. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8252. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_MDIIO_mdio_idle_error_cnt_clear] <-- 0x%08x\n",
  8253. REG_EPHY_MDIIO,d.all,d.all);
  8254. #endif
  8255. }
  8256. GH_INLINE U8 GH_EPHY_get_MDIIO_mdio_idle_error_cnt_clear(void)
  8257. {
  8258. GH_EPHY_MDIIO_S tmp_value;
  8259. U16 value = (*(volatile U16 *)REG_EPHY_MDIIO);
  8260. tmp_value.all = value;
  8261. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8262. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_MDIIO_mdio_idle_error_cnt_clear] --> 0x%08x\n",
  8263. REG_EPHY_MDIIO,value);
  8264. #endif
  8265. return tmp_value.bitc.mdio_idle_error_cnt_clear;
  8266. }
  8267. GH_INLINE void GH_EPHY_set_MDIIO_pd_vbuf(U8 data)
  8268. {
  8269. GH_EPHY_MDIIO_S d;
  8270. d.all = *(volatile U16 *)REG_EPHY_MDIIO;
  8271. d.bitc.pd_vbuf = data;
  8272. *(volatile U16 *)REG_EPHY_MDIIO = d.all;
  8273. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8274. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_MDIIO_pd_vbuf] <-- 0x%08x\n",
  8275. REG_EPHY_MDIIO,d.all,d.all);
  8276. #endif
  8277. }
  8278. GH_INLINE U8 GH_EPHY_get_MDIIO_pd_vbuf(void)
  8279. {
  8280. GH_EPHY_MDIIO_S tmp_value;
  8281. U16 value = (*(volatile U16 *)REG_EPHY_MDIIO);
  8282. tmp_value.all = value;
  8283. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8284. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_MDIIO_pd_vbuf] --> 0x%08x\n",
  8285. REG_EPHY_MDIIO,value);
  8286. #endif
  8287. return tmp_value.bitc.pd_vbuf;
  8288. }
  8289. #endif /* GH_INLINE_LEVEL == 0 */
  8290. /*----------------------------------------------------------------------------*/
  8291. /* register EPHY_CLK0 (read/write) */
  8292. /*----------------------------------------------------------------------------*/
  8293. #if GH_INLINE_LEVEL == 0
  8294. /*! \brief Writes the register 'EPHY_CLK0'. */
  8295. void GH_EPHY_set_CLK0(U16 data);
  8296. /*! \brief Reads the register 'EPHY_CLK0'. */
  8297. U16 GH_EPHY_get_CLK0(void);
  8298. /*! \brief Writes the bit group 'lpi_tx_tq_timer_msb' of register 'EPHY_CLK0'. */
  8299. void GH_EPHY_set_CLK0_lpi_tx_tq_timer_msb(U8 data);
  8300. /*! \brief Reads the bit group 'lpi_tx_tq_timer_msb' of register 'EPHY_CLK0'. */
  8301. U8 GH_EPHY_get_CLK0_lpi_tx_tq_timer_msb(void);
  8302. /*! \brief Writes the bit group 'clko_125_inv' of register 'EPHY_CLK0'. */
  8303. void GH_EPHY_set_CLK0_clko_125_inv(U8 data);
  8304. /*! \brief Reads the bit group 'clko_125_inv' of register 'EPHY_CLK0'. */
  8305. U8 GH_EPHY_get_CLK0_clko_125_inv(void);
  8306. /*! \brief Writes the bit group 'clko_100_gat' of register 'EPHY_CLK0'. */
  8307. void GH_EPHY_set_CLK0_clko_100_gat(U8 data);
  8308. /*! \brief Reads the bit group 'clko_100_gat' of register 'EPHY_CLK0'. */
  8309. U8 GH_EPHY_get_CLK0_clko_100_gat(void);
  8310. /*! \brief Writes the bit group 'clko_100_inv' of register 'EPHY_CLK0'. */
  8311. void GH_EPHY_set_CLK0_clko_100_inv(U8 data);
  8312. /*! \brief Reads the bit group 'clko_100_inv' of register 'EPHY_CLK0'. */
  8313. U8 GH_EPHY_get_CLK0_clko_100_inv(void);
  8314. #else /* GH_INLINE_LEVEL == 0 */
  8315. GH_INLINE void GH_EPHY_set_CLK0(U16 data)
  8316. {
  8317. *(volatile U16 *)REG_EPHY_CLK0 = data;
  8318. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8319. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_CLK0] <-- 0x%08x\n",
  8320. REG_EPHY_CLK0,data,data);
  8321. #endif
  8322. }
  8323. GH_INLINE U16 GH_EPHY_get_CLK0(void)
  8324. {
  8325. U16 value = (*(volatile U16 *)REG_EPHY_CLK0);
  8326. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8327. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_CLK0] --> 0x%08x\n",
  8328. REG_EPHY_CLK0,value);
  8329. #endif
  8330. return value;
  8331. }
  8332. GH_INLINE void GH_EPHY_set_CLK0_lpi_tx_tq_timer_msb(U8 data)
  8333. {
  8334. GH_EPHY_CLK0_S d;
  8335. d.all = *(volatile U16 *)REG_EPHY_CLK0;
  8336. d.bitc.lpi_tx_tq_timer_msb = data;
  8337. *(volatile U16 *)REG_EPHY_CLK0 = d.all;
  8338. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8339. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_CLK0_lpi_tx_tq_timer_msb] <-- 0x%08x\n",
  8340. REG_EPHY_CLK0,d.all,d.all);
  8341. #endif
  8342. }
  8343. GH_INLINE U8 GH_EPHY_get_CLK0_lpi_tx_tq_timer_msb(void)
  8344. {
  8345. GH_EPHY_CLK0_S tmp_value;
  8346. U16 value = (*(volatile U16 *)REG_EPHY_CLK0);
  8347. tmp_value.all = value;
  8348. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8349. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_CLK0_lpi_tx_tq_timer_msb] --> 0x%08x\n",
  8350. REG_EPHY_CLK0,value);
  8351. #endif
  8352. return tmp_value.bitc.lpi_tx_tq_timer_msb;
  8353. }
  8354. GH_INLINE void GH_EPHY_set_CLK0_clko_125_inv(U8 data)
  8355. {
  8356. GH_EPHY_CLK0_S d;
  8357. d.all = *(volatile U16 *)REG_EPHY_CLK0;
  8358. d.bitc.clko_125_inv = data;
  8359. *(volatile U16 *)REG_EPHY_CLK0 = d.all;
  8360. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8361. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_CLK0_clko_125_inv] <-- 0x%08x\n",
  8362. REG_EPHY_CLK0,d.all,d.all);
  8363. #endif
  8364. }
  8365. GH_INLINE U8 GH_EPHY_get_CLK0_clko_125_inv(void)
  8366. {
  8367. GH_EPHY_CLK0_S tmp_value;
  8368. U16 value = (*(volatile U16 *)REG_EPHY_CLK0);
  8369. tmp_value.all = value;
  8370. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8371. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_CLK0_clko_125_inv] --> 0x%08x\n",
  8372. REG_EPHY_CLK0,value);
  8373. #endif
  8374. return tmp_value.bitc.clko_125_inv;
  8375. }
  8376. GH_INLINE void GH_EPHY_set_CLK0_clko_100_gat(U8 data)
  8377. {
  8378. GH_EPHY_CLK0_S d;
  8379. d.all = *(volatile U16 *)REG_EPHY_CLK0;
  8380. d.bitc.clko_100_gat = data;
  8381. *(volatile U16 *)REG_EPHY_CLK0 = d.all;
  8382. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8383. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_CLK0_clko_100_gat] <-- 0x%08x\n",
  8384. REG_EPHY_CLK0,d.all,d.all);
  8385. #endif
  8386. }
  8387. GH_INLINE U8 GH_EPHY_get_CLK0_clko_100_gat(void)
  8388. {
  8389. GH_EPHY_CLK0_S tmp_value;
  8390. U16 value = (*(volatile U16 *)REG_EPHY_CLK0);
  8391. tmp_value.all = value;
  8392. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8393. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_CLK0_clko_100_gat] --> 0x%08x\n",
  8394. REG_EPHY_CLK0,value);
  8395. #endif
  8396. return tmp_value.bitc.clko_100_gat;
  8397. }
  8398. GH_INLINE void GH_EPHY_set_CLK0_clko_100_inv(U8 data)
  8399. {
  8400. GH_EPHY_CLK0_S d;
  8401. d.all = *(volatile U16 *)REG_EPHY_CLK0;
  8402. d.bitc.clko_100_inv = data;
  8403. *(volatile U16 *)REG_EPHY_CLK0 = d.all;
  8404. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8405. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_CLK0_clko_100_inv] <-- 0x%08x\n",
  8406. REG_EPHY_CLK0,d.all,d.all);
  8407. #endif
  8408. }
  8409. GH_INLINE U8 GH_EPHY_get_CLK0_clko_100_inv(void)
  8410. {
  8411. GH_EPHY_CLK0_S tmp_value;
  8412. U16 value = (*(volatile U16 *)REG_EPHY_CLK0);
  8413. tmp_value.all = value;
  8414. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8415. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_CLK0_clko_100_inv] --> 0x%08x\n",
  8416. REG_EPHY_CLK0,value);
  8417. #endif
  8418. return tmp_value.bitc.clko_100_inv;
  8419. }
  8420. #endif /* GH_INLINE_LEVEL == 0 */
  8421. /*----------------------------------------------------------------------------*/
  8422. /* register EPHY_WAVE_CTRL (read/write) */
  8423. /*----------------------------------------------------------------------------*/
  8424. #if GH_INLINE_LEVEL == 0
  8425. /*! \brief Writes the register 'EPHY_WAVE_CTRL'. */
  8426. void GH_EPHY_set_WAVE_CTRL(U16 data);
  8427. /*! \brief Reads the register 'EPHY_WAVE_CTRL'. */
  8428. U16 GH_EPHY_get_WAVE_CTRL(void);
  8429. /*! \brief Writes the bit group 'shadow' of register 'EPHY_WAVE_CTRL'. */
  8430. void GH_EPHY_set_WAVE_CTRL_shadow(U8 data);
  8431. /*! \brief Reads the bit group 'shadow' of register 'EPHY_WAVE_CTRL'. */
  8432. U8 GH_EPHY_get_WAVE_CTRL_shadow(void);
  8433. #else /* GH_INLINE_LEVEL == 0 */
  8434. GH_INLINE void GH_EPHY_set_WAVE_CTRL(U16 data)
  8435. {
  8436. *(volatile U16 *)REG_EPHY_WAVE_CTRL = data;
  8437. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8438. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_WAVE_CTRL] <-- 0x%08x\n",
  8439. REG_EPHY_WAVE_CTRL,data,data);
  8440. #endif
  8441. }
  8442. GH_INLINE U16 GH_EPHY_get_WAVE_CTRL(void)
  8443. {
  8444. U16 value = (*(volatile U16 *)REG_EPHY_WAVE_CTRL);
  8445. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8446. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_WAVE_CTRL] --> 0x%08x\n",
  8447. REG_EPHY_WAVE_CTRL,value);
  8448. #endif
  8449. return value;
  8450. }
  8451. GH_INLINE void GH_EPHY_set_WAVE_CTRL_shadow(U8 data)
  8452. {
  8453. GH_EPHY_WAVE_CTRL_S d;
  8454. d.all = *(volatile U16 *)REG_EPHY_WAVE_CTRL;
  8455. d.bitc.shadow = data;
  8456. *(volatile U16 *)REG_EPHY_WAVE_CTRL = d.all;
  8457. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8458. GH_EPHY_DEBUG_PRINT_FUNCTION( "WRREG(0x%08x,0x%08x); \\\\ [GH_EPHY_set_WAVE_CTRL_shadow] <-- 0x%08x\n",
  8459. REG_EPHY_WAVE_CTRL,d.all,d.all);
  8460. #endif
  8461. }
  8462. GH_INLINE U8 GH_EPHY_get_WAVE_CTRL_shadow(void)
  8463. {
  8464. GH_EPHY_WAVE_CTRL_S tmp_value;
  8465. U16 value = (*(volatile U16 *)REG_EPHY_WAVE_CTRL);
  8466. tmp_value.all = value;
  8467. #if GH_EPHY_ENABLE_DEBUG_PRINT
  8468. GH_EPHY_DEBUG_PRINT_FUNCTION( "value = RDREG(0x%08x); \\\\ [GH_EPHY_get_WAVE_CTRL_shadow] --> 0x%08x\n",
  8469. REG_EPHY_WAVE_CTRL,value);
  8470. #endif
  8471. return tmp_value.bitc.shadow;
  8472. }
  8473. #endif /* GH_INLINE_LEVEL == 0 */
  8474. /*----------------------------------------------------------------------------*/
  8475. /* init function */
  8476. /*----------------------------------------------------------------------------*/
  8477. /*! \brief Initialises the registers and mirror variables. */
  8478. void GH_EPHY_init(void);
  8479. #ifdef __cplusplus
  8480. }
  8481. #endif
  8482. #endif /* _GH_EPHY_H */
  8483. /*----------------------------------------------------------------------------*/
  8484. /* end of file */
  8485. /*----------------------------------------------------------------------------*/