iodefine.h 615 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435
  1. /***********************************************************************************************************************
  2. * DISCLAIMER
  3. * This software is supplied by Renesas Electronics Corporation and is only intended for use with Renesas products. No
  4. * other uses are authorized. This software is owned by Renesas Electronics Corporation and is protected under all
  5. * applicable laws, including copyright laws.
  6. * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
  7. * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY,
  8. * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. TO THE MAXIMUM
  9. * EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES
  10. * SHALL BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY REASON RELATED TO THIS
  11. * SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
  12. * Renesas reserves the right, without notice, to make changes to this software and to discontinue the availability of
  13. * this software. By using this software, you agree to the additional terms and conditions found by accessing the
  14. * following link:
  15. * http://www.renesas.com/disclaimer
  16. *
  17. * Copyright (C) 2013 Renesas Electronics Corporation. All rights reserved.
  18. ***********************************************************************************************************************/
  19. /*******************************************************************************
  20. *
  21. * Device : RX/RX600/RX65N
  22. *
  23. * File Name : iodefine.h
  24. *
  25. * Abstract : Definition of I/O Register.
  26. *
  27. * History : V0.5B (2015-11-25) [Hardware Manual Revision : 0.50]
  28. * : V0.5C (2015-12-04) [Hardware Manual Revision : 0.50]
  29. * : V0.5D (2015-12-29) [Hardware Manual Revision : 0.50]
  30. * : V0.8 (2016-04-19) [Hardware Manual Revision : 0.80]
  31. * : V0.8A (2016-06-03) [Hardware Manual Revision : 0.80]
  32. * : V0.8B (2016-06-16) [Hardware Manual Revision : 0.80]
  33. * : V1.0 (2016-06-20) [Hardware Manual Revision : 1.00]
  34. * : V1.0A (2016-08-03) [Hardware Manual Revision : 1.00]
  35. * : V1.5 (2016-11-07) [Hardware Manual Revision : 1.00]
  36. * : V1.5A (2016-12-15) [Hardware Manual Revision : 1.00]
  37. * : V1.5B (2017-03-22) [Hardware Manual Revision : 1.00]
  38. * : V2.0 (2017-04-21) [Hardware Manual Revision : 2.00]
  39. * : V2.0A (2017-10-23) [Hardware Manual Revision : 2.00]
  40. *
  41. * NOTE : THIS IS A TYPICAL EXAMPLE.
  42. *
  43. * Copyright(c) 2017 Renesas Electronics Corporation.
  44. *
  45. *********************************************************************************/
  46. /********************************************************************************/
  47. /* */
  48. /* DESCRIPTION : Definition of ICU Register */
  49. /* CPU TYPE : RX65N */
  50. /* */
  51. /* Usage : IR,DTCER,IER,IPR of ICU Register */
  52. /* The following IR, DTCE, IEN, IPR macro functions simplify usage. */
  53. /* The bit access operation is "Bit_Name(interrupt source,name)". */
  54. /* A part of the name can be omitted. */
  55. /* for example : */
  56. /* IR(BSC,BUSERR) = 0; expands to : */
  57. /* ICU.IR[16].BIT.IR = 0; */
  58. /* */
  59. /* DTCE(ICU,IRQ0) = 1; expands to : */
  60. /* ICU.DTCER[64].BIT.DTCE = 1; */
  61. /* */
  62. /* IEN(CMT0,CMI0) = 1; expands to : */
  63. /* ICU.IER[0x03].BIT.IEN4 = 1; */
  64. /* */
  65. /* IPR(ICU,SWINT2) = 2; expands to : */
  66. /* IPR(ICU,SWI ) = 2; // SWINT2,SWINT share IPR level. */
  67. /* ICU.IPR[3].BIT.IPR = 2; */
  68. /* */
  69. /* Usage : #pragma interrupt Function_Identifier(vect=**) */
  70. /* The number of vector is "(interrupt source, name)". */
  71. /* for example : */
  72. /* #pragma interrupt INT_IRQ0(vect=VECT(ICU,IRQ0)) expands to : */
  73. /* #pragma interrupt INT_IRQ0(vect=64) */
  74. /* #pragma interrupt INT_CMT0_CMI0(vect=VECT(CMT0,CMI0)) expands to : */
  75. /* #pragma interrupt INT_CMT0_CMI0(vect=28) */
  76. /* */
  77. /* Usage : MSTPCRA,MSTPCRB,MSTPCRC of SYSTEM Register */
  78. /* The bit access operation is "MSTP(name)". */
  79. /* The name that can be used is a macro name defined with "iodefine.h". */
  80. /* for example : */
  81. /* MSTP(TMR2) = 0; // TMR2,TMR3,TMR23 expands to : */
  82. /* SYSTEM.MSTPCRA.BIT.MSTPA4 = 0; */
  83. /* MSTP(SCI0) = 0; // SCI0,SMCI0 expands to : */
  84. /* SYSTEM.MSTPCRB.BIT.MSTPB31 = 0; */
  85. /* MSTP(MTU4) = 0; // MTU,MTU0,MTU1,MTU2,MTU3,MTU4,... expands to : */
  86. /* SYSTEM.MSTPCRA.BIT.MSTPA9 = 0; */
  87. /* MSTP(TPU4) = 0; // TPU0,TPU1,TPU2,TPU3,TPU4,TPU5,TPUA expands to : */
  88. /* SYSTEM.MSTPCRA.BIT.MSTPA13 = 0; */
  89. /* MSTP(CMT3) = 0; // CMT2,CMT3 expands to : */
  90. /* SYSTEM.MSTPCRA.BIT.MSTPA14 = 0; */
  91. /* */
  92. /* */
  93. /********************************************************************************/
  94. #ifndef __RX65NIODEFINE_HEADER__
  95. #define __RX65NIODEFINE_HEADER__
  96. #ifdef GRROSE
  97. #define IODEFINE_H_HISTORY
  98. #endif
  99. #define IEN_BSC_BUSERR IEN0
  100. #define IEN_RAM_RAMERR IEN2
  101. #define IEN_FCU_FIFERR IEN5
  102. #define IEN_FCU_FRDYI IEN7
  103. #define IEN_ICU_SWINT2 IEN2
  104. #define IEN_ICU_SWINT IEN3
  105. #define IEN_CMT0_CMI0 IEN4
  106. #define IEN_CMT1_CMI1 IEN5
  107. #define IEN_CMTW0_CMWI0 IEN6
  108. #define IEN_CMTW1_CMWI1 IEN7
  109. #define IEN_USB0_D0FIFO0 IEN2
  110. #define IEN_USB0_D1FIFO0 IEN3
  111. #define IEN_RSPI0_SPRI0 IEN6
  112. #define IEN_RSPI0_SPTI0 IEN7
  113. #define IEN_RSPI1_SPRI1 IEN0
  114. #define IEN_RSPI1_SPTI1 IEN1
  115. #define IEN_QSPI_SPRI IEN2
  116. #define IEN_QSPI_SPTI IEN3
  117. #define IEN_SDHI_SBFAI IEN4
  118. #define IEN_MMCIF_MBFAI IEN5
  119. #define IEN_RIIC1_RXI1 IEN2
  120. #define IEN_RIIC1_TXI1 IEN3
  121. #define IEN_RIIC0_RXI0 IEN4
  122. #define IEN_RIIC0_TXI0 IEN5
  123. #define IEN_RIIC2_RXI2 IEN6
  124. #define IEN_RIIC2_TXI2 IEN7
  125. #define IEN_SCI0_RXI0 IEN2
  126. #define IEN_SCI0_TXI0 IEN3
  127. #define IEN_SCI1_RXI1 IEN4
  128. #define IEN_SCI1_TXI1 IEN5
  129. #define IEN_SCI2_RXI2 IEN6
  130. #define IEN_SCI2_TXI2 IEN7
  131. #define IEN_ICU_IRQ0 IEN0
  132. #define IEN_ICU_IRQ1 IEN1
  133. #define IEN_ICU_IRQ2 IEN2
  134. #define IEN_ICU_IRQ3 IEN3
  135. #define IEN_ICU_IRQ4 IEN4
  136. #define IEN_ICU_IRQ5 IEN5
  137. #define IEN_ICU_IRQ6 IEN6
  138. #define IEN_ICU_IRQ7 IEN7
  139. #define IEN_ICU_IRQ8 IEN0
  140. #define IEN_ICU_IRQ9 IEN1
  141. #define IEN_ICU_IRQ10 IEN2
  142. #define IEN_ICU_IRQ11 IEN3
  143. #define IEN_ICU_IRQ12 IEN4
  144. #define IEN_ICU_IRQ13 IEN5
  145. #define IEN_ICU_IRQ14 IEN6
  146. #define IEN_ICU_IRQ15 IEN7
  147. #define IEN_SCI3_RXI3 IEN0
  148. #define IEN_SCI3_TXI3 IEN1
  149. #define IEN_SCI4_RXI4 IEN2
  150. #define IEN_SCI4_TXI4 IEN3
  151. #define IEN_SCI5_RXI5 IEN4
  152. #define IEN_SCI5_TXI5 IEN5
  153. #define IEN_SCI6_RXI6 IEN6
  154. #define IEN_SCI6_TXI6 IEN7
  155. #define IEN_LVD1_LVD1 IEN0
  156. #define IEN_LVD2_LVD2 IEN1
  157. #define IEN_USB0_USBR0 IEN2
  158. #define IEN_RTC_ALM IEN4
  159. #define IEN_RTC_PRD IEN5
  160. #define IEN_IWDT_IWUNI IEN7
  161. #define IEN_WDT_WUNI IEN0
  162. #define IEN_PDC_PCDFI IEN1
  163. #define IEN_SCI7_RXI7 IEN2
  164. #define IEN_SCI7_TXI7 IEN3
  165. #define IEN_SCI8_RXI8 IEN4
  166. #define IEN_SCI8_TXI8 IEN5
  167. #define IEN_SCI9_RXI9 IEN6
  168. #define IEN_SCI9_TXI9 IEN7
  169. #define IEN_SCI10_RXI10 IEN0
  170. #define IEN_SCI10_TXI10 IEN1
  171. #define IEN_ICU_GROUPBE0 IEN2
  172. #define IEN_ICU_GROUPBL2 IEN3
  173. #define IEN_RSPI2_SPRI2 IEN4
  174. #define IEN_RSPI2_SPTI2 IEN5
  175. #define IEN_ICU_GROUPBL0 IEN6
  176. #define IEN_ICU_GROUPBL1 IEN7
  177. #define IEN_ICU_GROUPAL0 IEN0
  178. #define IEN_ICU_GROUPAL1 IEN1
  179. #define IEN_SCI11_RXI11 IEN2
  180. #define IEN_SCI11_TXI11 IEN3
  181. #define IEN_SCI12_RXI12 IEN4
  182. #define IEN_SCI12_TXI12 IEN5
  183. #define IEN_DMAC_DMAC0I IEN0
  184. #define IEN_DMAC_DMAC1I IEN1
  185. #define IEN_DMAC_DMAC2I IEN2
  186. #define IEN_DMAC_DMAC3I IEN3
  187. #define IEN_DMAC_DMAC74I IEN4
  188. #define IEN_OST_OSTDI IEN5
  189. #define IEN_EXDMAC_EXDMAC0I IEN6
  190. #define IEN_EXDMAC_EXDMAC1I IEN7
  191. #define IEN_PERIB_INTB128 IEN0
  192. #define IEN_PERIB_INTB129 IEN1
  193. #define IEN_PERIB_INTB130 IEN2
  194. #define IEN_PERIB_INTB131 IEN3
  195. #define IEN_PERIB_INTB132 IEN4
  196. #define IEN_PERIB_INTB133 IEN5
  197. #define IEN_PERIB_INTB134 IEN6
  198. #define IEN_PERIB_INTB135 IEN7
  199. #define IEN_PERIB_INTB136 IEN0
  200. #define IEN_PERIB_INTB137 IEN1
  201. #define IEN_PERIB_INTB138 IEN2
  202. #define IEN_PERIB_INTB139 IEN3
  203. #define IEN_PERIB_INTB140 IEN4
  204. #define IEN_PERIB_INTB141 IEN5
  205. #define IEN_PERIB_INTB142 IEN6
  206. #define IEN_PERIB_INTB143 IEN7
  207. #define IEN_PERIB_INTB144 IEN0
  208. #define IEN_PERIB_INTB145 IEN1
  209. #define IEN_PERIB_INTB146 IEN2
  210. #define IEN_PERIB_INTB147 IEN3
  211. #define IEN_PERIB_INTB148 IEN4
  212. #define IEN_PERIB_INTB149 IEN5
  213. #define IEN_PERIB_INTB150 IEN6
  214. #define IEN_PERIB_INTB151 IEN7
  215. #define IEN_PERIB_INTB152 IEN0
  216. #define IEN_PERIB_INTB153 IEN1
  217. #define IEN_PERIB_INTB154 IEN2
  218. #define IEN_PERIB_INTB155 IEN3
  219. #define IEN_PERIB_INTB156 IEN4
  220. #define IEN_PERIB_INTB157 IEN5
  221. #define IEN_PERIB_INTB158 IEN6
  222. #define IEN_PERIB_INTB159 IEN7
  223. #define IEN_PERIB_INTB160 IEN0
  224. #define IEN_PERIB_INTB161 IEN1
  225. #define IEN_PERIB_INTB162 IEN2
  226. #define IEN_PERIB_INTB163 IEN3
  227. #define IEN_PERIB_INTB164 IEN4
  228. #define IEN_PERIB_INTB165 IEN5
  229. #define IEN_PERIB_INTB166 IEN6
  230. #define IEN_PERIB_INTB167 IEN7
  231. #define IEN_PERIB_INTB168 IEN0
  232. #define IEN_PERIB_INTB169 IEN1
  233. #define IEN_PERIB_INTB170 IEN2
  234. #define IEN_PERIB_INTB171 IEN3
  235. #define IEN_PERIB_INTB172 IEN4
  236. #define IEN_PERIB_INTB173 IEN5
  237. #define IEN_PERIB_INTB174 IEN6
  238. #define IEN_PERIB_INTB175 IEN7
  239. #define IEN_PERIB_INTB176 IEN0
  240. #define IEN_PERIB_INTB177 IEN1
  241. #define IEN_PERIB_INTB178 IEN2
  242. #define IEN_PERIB_INTB179 IEN3
  243. #define IEN_PERIB_INTB180 IEN4
  244. #define IEN_PERIB_INTB181 IEN5
  245. #define IEN_PERIB_INTB182 IEN6
  246. #define IEN_PERIB_INTB183 IEN7
  247. #define IEN_PERIB_INTB184 IEN0
  248. #define IEN_PERIB_INTB185 IEN1
  249. #define IEN_PERIB_INTB186 IEN2
  250. #define IEN_PERIB_INTB187 IEN3
  251. #define IEN_PERIB_INTB188 IEN4
  252. #define IEN_PERIB_INTB189 IEN5
  253. #define IEN_PERIB_INTB190 IEN6
  254. #define IEN_PERIB_INTB191 IEN7
  255. #define IEN_PERIB_INTB192 IEN0
  256. #define IEN_PERIB_INTB193 IEN1
  257. #define IEN_PERIB_INTB194 IEN2
  258. #define IEN_PERIB_INTB195 IEN3
  259. #define IEN_PERIB_INTB196 IEN4
  260. #define IEN_PERIB_INTB197 IEN5
  261. #define IEN_PERIB_INTB198 IEN6
  262. #define IEN_PERIB_INTB199 IEN7
  263. #define IEN_PERIB_INTB200 IEN0
  264. #define IEN_PERIB_INTB201 IEN1
  265. #define IEN_PERIB_INTB202 IEN2
  266. #define IEN_PERIB_INTB203 IEN3
  267. #define IEN_PERIB_INTB204 IEN4
  268. #define IEN_PERIB_INTB205 IEN5
  269. #define IEN_PERIB_INTB206 IEN6
  270. #define IEN_PERIB_INTB207 IEN7
  271. #define IEN_PERIA_INTA208 IEN0
  272. #define IEN_PERIA_INTA209 IEN1
  273. #define IEN_PERIA_INTA210 IEN2
  274. #define IEN_PERIA_INTA211 IEN3
  275. #define IEN_PERIA_INTA212 IEN4
  276. #define IEN_PERIA_INTA213 IEN5
  277. #define IEN_PERIA_INTA214 IEN6
  278. #define IEN_PERIA_INTA215 IEN7
  279. #define IEN_PERIA_INTA216 IEN0
  280. #define IEN_PERIA_INTA217 IEN1
  281. #define IEN_PERIA_INTA218 IEN2
  282. #define IEN_PERIA_INTA219 IEN3
  283. #define IEN_PERIA_INTA220 IEN4
  284. #define IEN_PERIA_INTA221 IEN5
  285. #define IEN_PERIA_INTA222 IEN6
  286. #define IEN_PERIA_INTA223 IEN7
  287. #define IEN_PERIA_INTA224 IEN0
  288. #define IEN_PERIA_INTA225 IEN1
  289. #define IEN_PERIA_INTA226 IEN2
  290. #define IEN_PERIA_INTA227 IEN3
  291. #define IEN_PERIA_INTA228 IEN4
  292. #define IEN_PERIA_INTA229 IEN5
  293. #define IEN_PERIA_INTA230 IEN6
  294. #define IEN_PERIA_INTA231 IEN7
  295. #define IEN_PERIA_INTA232 IEN0
  296. #define IEN_PERIA_INTA233 IEN1
  297. #define IEN_PERIA_INTA234 IEN2
  298. #define IEN_PERIA_INTA235 IEN3
  299. #define IEN_PERIA_INTA236 IEN4
  300. #define IEN_PERIA_INTA237 IEN5
  301. #define IEN_PERIA_INTA238 IEN6
  302. #define IEN_PERIA_INTA239 IEN7
  303. #define IEN_PERIA_INTA240 IEN0
  304. #define IEN_PERIA_INTA241 IEN1
  305. #define IEN_PERIA_INTA242 IEN2
  306. #define IEN_PERIA_INTA243 IEN3
  307. #define IEN_PERIA_INTA244 IEN4
  308. #define IEN_PERIA_INTA245 IEN5
  309. #define IEN_PERIA_INTA246 IEN6
  310. #define IEN_PERIA_INTA247 IEN7
  311. #define IEN_PERIA_INTA248 IEN0
  312. #define IEN_PERIA_INTA249 IEN1
  313. #define IEN_PERIA_INTA250 IEN2
  314. #define IEN_PERIA_INTA251 IEN3
  315. #define IEN_PERIA_INTA252 IEN4
  316. #define IEN_PERIA_INTA253 IEN5
  317. #define IEN_PERIA_INTA254 IEN6
  318. #define IEN_PERIA_INTA255 IEN7
  319. #define VECT_BSC_BUSERR 16
  320. #define VECT_RAM_RAMERR 18
  321. #define VECT_FCU_FIFERR 21
  322. #define VECT_FCU_FRDYI 23
  323. #define VECT_ICU_SWINT2 26
  324. #define VECT_ICU_SWINT 27
  325. #define VECT_CMT0_CMI0 28
  326. #define VECT_CMT1_CMI1 29
  327. #define VECT_CMTW0_CMWI0 30
  328. #define VECT_CMTW1_CMWI1 31
  329. #define VECT_USB0_D0FIFO0 34
  330. #define VECT_USB0_D1FIFO0 35
  331. #define VECT_RSPI0_SPRI0 38
  332. #define VECT_RSPI0_SPTI0 39
  333. #define VECT_RSPI1_SPRI1 40
  334. #define VECT_RSPI1_SPTI1 41
  335. #define VECT_QSPI_SPRI 42
  336. #define VECT_QSPI_SPTI 43
  337. #define VECT_SDHI_SBFAI 44
  338. #define VECT_MMCIF_MBFAI 45
  339. #define VECT_RIIC1_RXI1 50
  340. #define VECT_RIIC1_TXI1 51
  341. #define VECT_RIIC0_RXI0 52
  342. #define VECT_RIIC0_TXI0 53
  343. #define VECT_RIIC2_RXI2 54
  344. #define VECT_RIIC2_TXI2 55
  345. #define VECT_SCI0_RXI0 58
  346. #define VECT_SCI0_TXI0 59
  347. #define VECT_SCI1_RXI1 60
  348. #define VECT_SCI1_TXI1 61
  349. #define VECT_SCI2_RXI2 62
  350. #define VECT_SCI2_TXI2 63
  351. #define VECT_ICU_IRQ0 64
  352. #define VECT_ICU_IRQ1 65
  353. #define VECT_ICU_IRQ2 66
  354. #define VECT_ICU_IRQ3 67
  355. #define VECT_ICU_IRQ4 68
  356. #define VECT_ICU_IRQ5 69
  357. #define VECT_ICU_IRQ6 70
  358. #define VECT_ICU_IRQ7 71
  359. #define VECT_ICU_IRQ8 72
  360. #define VECT_ICU_IRQ9 73
  361. #define VECT_ICU_IRQ10 74
  362. #define VECT_ICU_IRQ11 75
  363. #define VECT_ICU_IRQ12 76
  364. #define VECT_ICU_IRQ13 77
  365. #define VECT_ICU_IRQ14 78
  366. #define VECT_ICU_IRQ15 79
  367. #define VECT_SCI3_RXI3 80
  368. #define VECT_SCI3_TXI3 81
  369. #define VECT_SCI4_RXI4 82
  370. #define VECT_SCI4_TXI4 83
  371. #define VECT_SCI5_RXI5 84
  372. #define VECT_SCI5_TXI5 85
  373. #define VECT_SCI6_RXI6 86
  374. #define VECT_SCI6_TXI6 87
  375. #define VECT_LVD1_LVD1 88
  376. #define VECT_LVD2_LVD2 89
  377. #define VECT_USB0_USBR0 90
  378. #define VECT_RTC_ALM 92
  379. #define VECT_RTC_PRD 93
  380. #define VECT_IWDT_IWUNI 95
  381. #define VECT_WDT_WUNI 96
  382. #define VECT_PDC_PCDFI 97
  383. #define VECT_SCI7_RXI7 98
  384. #define VECT_SCI7_TXI7 99
  385. #define VECT_SCI8_RXI8 100
  386. #define VECT_SCI8_TXI8 101
  387. #define VECT_SCI9_RXI9 102
  388. #define VECT_SCI9_TXI9 103
  389. #define VECT_SCI10_RXI10 104
  390. #define VECT_SCI10_TXI10 105
  391. #define VECT_ICU_GROUPBE0 106
  392. #define VECT_ICU_GROUPBL2 107
  393. #define VECT_RSPI2_SPRI2 108
  394. #define VECT_RSPI2_SPTI2 109
  395. #define VECT_ICU_GROUPBL0 110
  396. #define VECT_ICU_GROUPBL1 111
  397. #define VECT_ICU_GROUPAL0 112
  398. #define VECT_ICU_GROUPAL1 113
  399. #define VECT_SCI11_RXI11 114
  400. #define VECT_SCI11_TXI11 115
  401. #define VECT_SCI12_RXI12 116
  402. #define VECT_SCI12_TXI12 117
  403. #define VECT_DMAC_DMAC0I 120
  404. #define VECT_DMAC_DMAC1I 121
  405. #define VECT_DMAC_DMAC2I 122
  406. #define VECT_DMAC_DMAC3I 123
  407. #define VECT_DMAC_DMAC74I 124
  408. #define VECT_OST_OSTDI 125
  409. #define VECT_EXDMAC_EXDMAC0I 126
  410. #define VECT_EXDMAC_EXDMAC1I 127
  411. #define VECT_PERIB_INTB128 128
  412. #define VECT_PERIB_INTB129 129
  413. #define VECT_PERIB_INTB130 130
  414. #define VECT_PERIB_INTB131 131
  415. #define VECT_PERIB_INTB132 132
  416. #define VECT_PERIB_INTB133 133
  417. #define VECT_PERIB_INTB134 134
  418. #define VECT_PERIB_INTB135 135
  419. #define VECT_PERIB_INTB136 136
  420. #define VECT_PERIB_INTB137 137
  421. #define VECT_PERIB_INTB138 138
  422. #define VECT_PERIB_INTB139 139
  423. #define VECT_PERIB_INTB140 140
  424. #define VECT_PERIB_INTB141 141
  425. #define VECT_PERIB_INTB142 142
  426. #define VECT_PERIB_INTB143 143
  427. #define VECT_PERIB_INTB144 144
  428. #define VECT_PERIB_INTB145 145
  429. #define VECT_PERIB_INTB146 146
  430. #define VECT_PERIB_INTB147 147
  431. #define VECT_PERIB_INTB148 148
  432. #define VECT_PERIB_INTB149 149
  433. #define VECT_PERIB_INTB150 150
  434. #define VECT_PERIB_INTB151 151
  435. #define VECT_PERIB_INTB152 152
  436. #define VECT_PERIB_INTB153 153
  437. #define VECT_PERIB_INTB154 154
  438. #define VECT_PERIB_INTB155 155
  439. #define VECT_PERIB_INTB156 156
  440. #define VECT_PERIB_INTB157 157
  441. #define VECT_PERIB_INTB158 158
  442. #define VECT_PERIB_INTB159 159
  443. #define VECT_PERIB_INTB160 160
  444. #define VECT_PERIB_INTB161 161
  445. #define VECT_PERIB_INTB162 162
  446. #define VECT_PERIB_INTB163 163
  447. #define VECT_PERIB_INTB164 164
  448. #define VECT_PERIB_INTB165 165
  449. #define VECT_PERIB_INTB166 166
  450. #define VECT_PERIB_INTB167 167
  451. #define VECT_PERIB_INTB168 168
  452. #define VECT_PERIB_INTB169 169
  453. #define VECT_PERIB_INTB170 170
  454. #define VECT_PERIB_INTB171 171
  455. #define VECT_PERIB_INTB172 172
  456. #define VECT_PERIB_INTB173 173
  457. #define VECT_PERIB_INTB174 174
  458. #define VECT_PERIB_INTB175 175
  459. #define VECT_PERIB_INTB176 176
  460. #define VECT_PERIB_INTB177 177
  461. #define VECT_PERIB_INTB178 178
  462. #define VECT_PERIB_INTB179 179
  463. #define VECT_PERIB_INTB180 180
  464. #define VECT_PERIB_INTB181 181
  465. #define VECT_PERIB_INTB182 182
  466. #define VECT_PERIB_INTB183 183
  467. #define VECT_PERIB_INTB184 184
  468. #define VECT_PERIB_INTB185 185
  469. #define VECT_PERIB_INTB186 186
  470. #define VECT_PERIB_INTB187 187
  471. #define VECT_PERIB_INTB188 188
  472. #define VECT_PERIB_INTB189 189
  473. #define VECT_PERIB_INTB190 190
  474. #define VECT_PERIB_INTB191 191
  475. #define VECT_PERIB_INTB192 192
  476. #define VECT_PERIB_INTB193 193
  477. #define VECT_PERIB_INTB194 194
  478. #define VECT_PERIB_INTB195 195
  479. #define VECT_PERIB_INTB196 196
  480. #define VECT_PERIB_INTB197 197
  481. #define VECT_PERIB_INTB198 198
  482. #define VECT_PERIB_INTB199 199
  483. #define VECT_PERIB_INTB200 200
  484. #define VECT_PERIB_INTB201 201
  485. #define VECT_PERIB_INTB202 202
  486. #define VECT_PERIB_INTB203 203
  487. #define VECT_PERIB_INTB204 204
  488. #define VECT_PERIB_INTB205 205
  489. #define VECT_PERIB_INTB206 206
  490. #define VECT_PERIB_INTB207 207
  491. #define VECT_PERIA_INTA208 208
  492. #define VECT_PERIA_INTA209 209
  493. #define VECT_PERIA_INTA210 210
  494. #define VECT_PERIA_INTA211 211
  495. #define VECT_PERIA_INTA212 212
  496. #define VECT_PERIA_INTA213 213
  497. #define VECT_PERIA_INTA214 214
  498. #define VECT_PERIA_INTA215 215
  499. #define VECT_PERIA_INTA216 216
  500. #define VECT_PERIA_INTA217 217
  501. #define VECT_PERIA_INTA218 218
  502. #define VECT_PERIA_INTA219 219
  503. #define VECT_PERIA_INTA220 220
  504. #define VECT_PERIA_INTA221 221
  505. #define VECT_PERIA_INTA222 222
  506. #define VECT_PERIA_INTA223 223
  507. #define VECT_PERIA_INTA224 224
  508. #define VECT_PERIA_INTA225 225
  509. #define VECT_PERIA_INTA226 226
  510. #define VECT_PERIA_INTA227 227
  511. #define VECT_PERIA_INTA228 228
  512. #define VECT_PERIA_INTA229 229
  513. #define VECT_PERIA_INTA230 230
  514. #define VECT_PERIA_INTA231 231
  515. #define VECT_PERIA_INTA232 232
  516. #define VECT_PERIA_INTA233 233
  517. #define VECT_PERIA_INTA234 234
  518. #define VECT_PERIA_INTA235 235
  519. #define VECT_PERIA_INTA236 236
  520. #define VECT_PERIA_INTA237 237
  521. #define VECT_PERIA_INTA238 238
  522. #define VECT_PERIA_INTA239 239
  523. #define VECT_PERIA_INTA240 240
  524. #define VECT_PERIA_INTA241 241
  525. #define VECT_PERIA_INTA242 242
  526. #define VECT_PERIA_INTA243 243
  527. #define VECT_PERIA_INTA244 244
  528. #define VECT_PERIA_INTA245 245
  529. #define VECT_PERIA_INTA246 246
  530. #define VECT_PERIA_INTA247 247
  531. #define VECT_PERIA_INTA248 248
  532. #define VECT_PERIA_INTA249 249
  533. #define VECT_PERIA_INTA250 250
  534. #define VECT_PERIA_INTA251 251
  535. #define VECT_PERIA_INTA252 252
  536. #define VECT_PERIA_INTA253 253
  537. #define VECT_PERIA_INTA254 254
  538. #define VECT_PERIA_INTA255 255
  539. #define MSTP_EXDMAC SYSTEM.MSTPCRA.BIT.MSTPA29
  540. #define MSTP_EXDMAC0 SYSTEM.MSTPCRA.BIT.MSTPA29
  541. #define MSTP_EXDMAC1 SYSTEM.MSTPCRA.BIT.MSTPA29
  542. #define MSTP_DMAC SYSTEM.MSTPCRA.BIT.MSTPA28
  543. #define MSTP_DMAC0 SYSTEM.MSTPCRA.BIT.MSTPA28
  544. #define MSTP_DMAC1 SYSTEM.MSTPCRA.BIT.MSTPA28
  545. #define MSTP_DMAC2 SYSTEM.MSTPCRA.BIT.MSTPA28
  546. #define MSTP_DMAC3 SYSTEM.MSTPCRA.BIT.MSTPA28
  547. #define MSTP_DMAC4 SYSTEM.MSTPCRA.BIT.MSTPA28
  548. #define MSTP_DMAC5 SYSTEM.MSTPCRA.BIT.MSTPA28
  549. #define MSTP_DMAC6 SYSTEM.MSTPCRA.BIT.MSTPA28
  550. #define MSTP_DMAC7 SYSTEM.MSTPCRA.BIT.MSTPA28
  551. #define MSTP_DTC SYSTEM.MSTPCRA.BIT.MSTPA28
  552. #define MSTP_DA SYSTEM.MSTPCRA.BIT.MSTPA19
  553. #define MSTP_S12AD SYSTEM.MSTPCRA.BIT.MSTPA17
  554. #define MSTP_S12AD1 SYSTEM.MSTPCRA.BIT.MSTPA16
  555. #define MSTP_CMT0 SYSTEM.MSTPCRA.BIT.MSTPA15
  556. #define MSTP_CMT1 SYSTEM.MSTPCRA.BIT.MSTPA15
  557. #define MSTP_CMT2 SYSTEM.MSTPCRA.BIT.MSTPA14
  558. #define MSTP_CMT3 SYSTEM.MSTPCRA.BIT.MSTPA14
  559. #define MSTP_TPU0 SYSTEM.MSTPCRA.BIT.MSTPA13
  560. #define MSTP_TPU1 SYSTEM.MSTPCRA.BIT.MSTPA13
  561. #define MSTP_TPU2 SYSTEM.MSTPCRA.BIT.MSTPA13
  562. #define MSTP_TPU3 SYSTEM.MSTPCRA.BIT.MSTPA13
  563. #define MSTP_TPU4 SYSTEM.MSTPCRA.BIT.MSTPA13
  564. #define MSTP_TPU5 SYSTEM.MSTPCRA.BIT.MSTPA13
  565. #define MSTP_TPUA SYSTEM.MSTPCRA.BIT.MSTPA13
  566. #define MSTP_PPG0 SYSTEM.MSTPCRA.BIT.MSTPA11
  567. #define MSTP_PPG1 SYSTEM.MSTPCRA.BIT.MSTPA10
  568. #define MSTP_MTU SYSTEM.MSTPCRA.BIT.MSTPA9
  569. #define MSTP_MTU0 SYSTEM.MSTPCRA.BIT.MSTPA9
  570. #define MSTP_MTU1 SYSTEM.MSTPCRA.BIT.MSTPA9
  571. #define MSTP_MTU2 SYSTEM.MSTPCRA.BIT.MSTPA9
  572. #define MSTP_MTU3 SYSTEM.MSTPCRA.BIT.MSTPA9
  573. #define MSTP_MTU4 SYSTEM.MSTPCRA.BIT.MSTPA9
  574. #define MSTP_MTU5 SYSTEM.MSTPCRA.BIT.MSTPA9
  575. #define MSTP_MTU6 SYSTEM.MSTPCRA.BIT.MSTPA9
  576. #define MSTP_MTU7 SYSTEM.MSTPCRA.BIT.MSTPA9
  577. #define MSTP_MTU8 SYSTEM.MSTPCRA.BIT.MSTPA9
  578. #define MSTP_TMR0 SYSTEM.MSTPCRA.BIT.MSTPA5
  579. #define MSTP_TMR1 SYSTEM.MSTPCRA.BIT.MSTPA5
  580. #define MSTP_TMR01 SYSTEM.MSTPCRA.BIT.MSTPA5
  581. #define MSTP_TMR2 SYSTEM.MSTPCRA.BIT.MSTPA4
  582. #define MSTP_TMR3 SYSTEM.MSTPCRA.BIT.MSTPA4
  583. #define MSTP_TMR23 SYSTEM.MSTPCRA.BIT.MSTPA4
  584. #define MSTP_CMTW0 SYSTEM.MSTPCRA.BIT.MSTPA1
  585. #define MSTP_CMTW1 SYSTEM.MSTPCRA.BIT.MSTPA0
  586. #define MSTP_SCI0 SYSTEM.MSTPCRB.BIT.MSTPB31
  587. #define MSTP_SMCI0 SYSTEM.MSTPCRB.BIT.MSTPB31
  588. #define MSTP_SCI1 SYSTEM.MSTPCRB.BIT.MSTPB30
  589. #define MSTP_SMCI1 SYSTEM.MSTPCRB.BIT.MSTPB30
  590. #define MSTP_SCI2 SYSTEM.MSTPCRB.BIT.MSTPB29
  591. #define MSTP_SMCI2 SYSTEM.MSTPCRB.BIT.MSTPB29
  592. #define MSTP_SCI3 SYSTEM.MSTPCRB.BIT.MSTPB28
  593. #define MSTP_SMCI3 SYSTEM.MSTPCRB.BIT.MSTPB28
  594. #define MSTP_SCI4 SYSTEM.MSTPCRB.BIT.MSTPB27
  595. #define MSTP_SMCI4 SYSTEM.MSTPCRB.BIT.MSTPB27
  596. #define MSTP_SCI5 SYSTEM.MSTPCRB.BIT.MSTPB26
  597. #define MSTP_SMCI5 SYSTEM.MSTPCRB.BIT.MSTPB26
  598. #define MSTP_SCI6 SYSTEM.MSTPCRB.BIT.MSTPB25
  599. #define MSTP_SMCI6 SYSTEM.MSTPCRB.BIT.MSTPB25
  600. #define MSTP_SCI7 SYSTEM.MSTPCRB.BIT.MSTPB24
  601. #define MSTP_SMCI7 SYSTEM.MSTPCRB.BIT.MSTPB24
  602. #define MSTP_CRC SYSTEM.MSTPCRB.BIT.MSTPB23
  603. #define MSTP_PDC SYSTEM.MSTPCRB.BIT.MSTPB22
  604. #define MSTP_RIIC0 SYSTEM.MSTPCRB.BIT.MSTPB21
  605. #define MSTP_RIIC1 SYSTEM.MSTPCRB.BIT.MSTPB20
  606. #define MSTP_USB0 SYSTEM.MSTPCRB.BIT.MSTPB19
  607. #define MSTP_RSPI0 SYSTEM.MSTPCRB.BIT.MSTPB17
  608. #define MSTP_RSPI1 SYSTEM.MSTPCRB.BIT.MSTPB16
  609. #define MSTP_EDMAC0 SYSTEM.MSTPCRB.BIT.MSTPB15
  610. #define MSTP_ETHERC0 SYSTEM.MSTPCRB.BIT.MSTPB15
  611. #define MSTP_ELC SYSTEM.MSTPCRB.BIT.MSTPB9
  612. #define MSTP_TEMPS SYSTEM.MSTPCRB.BIT.MSTPB8
  613. #define MSTP_DOC SYSTEM.MSTPCRB.BIT.MSTPB6
  614. #define MSTP_SCI12 SYSTEM.MSTPCRB.BIT.MSTPB4
  615. #define MSTP_SMCI12 SYSTEM.MSTPCRB.BIT.MSTPB4
  616. #define MSTP_CAN1 SYSTEM.MSTPCRB.BIT.MSTPB1
  617. #define MSTP_CAN0 SYSTEM.MSTPCRB.BIT.MSTPB0
  618. #define MSTP_GLCDC SYSTEM.MSTPCRC.BIT.MSTPC29
  619. #define MSTP_DRW2D SYSTEM.MSTPCRC.BIT.MSTPC28
  620. #define MSTP_SCI8 SYSTEM.MSTPCRC.BIT.MSTPC27
  621. #define MSTP_SMCI8 SYSTEM.MSTPCRC.BIT.MSTPC27
  622. #define MSTP_SCI9 SYSTEM.MSTPCRC.BIT.MSTPC26
  623. #define MSTP_SMCI9 SYSTEM.MSTPCRC.BIT.MSTPC26
  624. #define MSTP_SCI10 SYSTEM.MSTPCRC.BIT.MSTPC25
  625. #define MSTP_SMCI10 SYSTEM.MSTPCRC.BIT.MSTPC25
  626. #define MSTP_SCI11 SYSTEM.MSTPCRC.BIT.MSTPC24
  627. #define MSTP_SMCI11 SYSTEM.MSTPCRC.BIT.MSTPC24
  628. #define MSTP_QSPI SYSTEM.MSTPCRC.BIT.MSTPC23
  629. #define MSTP_RSPI2 SYSTEM.MSTPCRC.BIT.MSTPC22
  630. #define MSTP_CAC SYSTEM.MSTPCRC.BIT.MSTPC19
  631. #define MSTP_RIIC2 SYSTEM.MSTPCRC.BIT.MSTPC17
  632. #define MSTP_STBYRAM SYSTEM.MSTPCRC.BIT.MSTPC7
  633. #define MSTP_RAM2 SYSTEM.MSTPCRC.BIT.MSTPC2
  634. #define MSTP_RAM0 SYSTEM.MSTPCRC.BIT.MSTPC0
  635. #define MSTP_MMCIF SYSTEM.MSTPCRD.BIT.MSTPD21
  636. #define MSTP_SDHI SYSTEM.MSTPCRD.BIT.MSTPD19
  637. #define MSTP_SDSI SYSTEM.MSTPCRD.BIT.MSTPD13
  638. #define IS_CAN0_ERS0 IS0
  639. #define IS_CAN1_ERS1 IS1
  640. #define IS_SCI0_TEI0 IS0
  641. #define IS_SCI0_ERI0 IS1
  642. #define IS_SCI1_TEI1 IS2
  643. #define IS_SCI1_ERI1 IS3
  644. #define IS_SCI2_TEI2 IS4
  645. #define IS_SCI2_ERI2 IS5
  646. #define IS_SCI3_TEI3 IS6
  647. #define IS_SCI3_ERI3 IS7
  648. #define IS_SCI4_TEI4 IS8
  649. #define IS_SCI4_ERI4 IS9
  650. #define IS_SCI5_TEI5 IS10
  651. #define IS_SCI5_ERI5 IS11
  652. #define IS_SCI6_TEI6 IS12
  653. #define IS_SCI6_ERI6 IS13
  654. #define IS_SCI7_TEI7 IS14
  655. #define IS_SCI7_ERI7 IS15
  656. #define IS_SCI12_TEI12 IS16
  657. #define IS_SCI12_ERI12 IS17
  658. #define IS_SCI12_SCIX0 IS18
  659. #define IS_SCI12_SCIX1 IS19
  660. #define IS_SCI12_SCIX2 IS20
  661. #define IS_SCI12_SCIX3 IS21
  662. #define IS_QSPI_QSPSSLI IS24
  663. #define IS_CAC_FERRI IS26
  664. #define IS_CAC_MENDI IS27
  665. #define IS_CAC_OVFI IS28
  666. #define IS_DOC_DOPCI IS29
  667. #define IS_PDC_PCFEI IS30
  668. #define IS_PDC_PCERI IS31
  669. #define IS_SDHI_CDETI IS3
  670. #define IS_SDHI_CACI IS4
  671. #define IS_SDHI_SDACI IS5
  672. #define IS_MMCIF_CDETIO IS6
  673. #define IS_MMCIF_ERRIO IS7
  674. #define IS_MMCIF_ACCIO IS8
  675. #define IS_POE3_OEI1 IS9
  676. #define IS_POE3_OEI2 IS10
  677. #define IS_POE3_OEI3 IS11
  678. #define IS_POE3_OEI4 IS12
  679. #define IS_RIIC0_TEI0 IS13
  680. #define IS_RIIC0_EEI0 IS14
  681. #define IS_RIIC2_TEI2 IS15
  682. #define IS_RIIC2_EEI2 IS16
  683. #define IS_S12AD_S12CMPAI IS20
  684. #define IS_S12AD_S12CMPBI IS21
  685. #define IS_S12AD1_S12CMPAI1 IS22
  686. #define IS_S12AD1_S12CMPBI1 IS23
  687. #define IS_SCI8_TEI8 IS24
  688. #define IS_SCI8_ERI8 IS25
  689. #define IS_SCI9_TEI9 IS26
  690. #define IS_SCI9_ERI9 IS27
  691. #define IS_RIIC1_TEI1 IS28
  692. #define IS_RIIC1_EEI1 IS29
  693. #define IS_SDSI_SDIOI IS0
  694. #define IS_SCI10_TEI10 IS8
  695. #define IS_SCI10_ERI10 IS9
  696. #define IS_SCI11_TEI11 IS12
  697. #define IS_SCI11_ERI11 IS13
  698. #define IS_RSPI0_SPII0 IS16
  699. #define IS_RSPI0_SPEI0 IS17
  700. #define IS_RSPI1_SPII1 IS18
  701. #define IS_RSPI1_SPEI1 IS19
  702. #define IS_RSPI2_SPII2 IS20
  703. #define IS_RSPI2_SPEI2 IS21
  704. #define IS_EDMAC0_EINT0 IS4
  705. #define IS_GLCDC_VPOS IS8
  706. #define IS_GLCDC_GR1UF IS9
  707. #define IS_GLCDC_GR2UF IS10
  708. #define IS_DRW2D_DRWIRQ IS11
  709. #define EN_CAN0_ERS0 EN0
  710. #define EN_CAN1_ERS1 EN1
  711. #define EN_SCI0_TEI0 EN0
  712. #define EN_SCI0_ERI0 EN1
  713. #define EN_SCI1_TEI1 EN2
  714. #define EN_SCI1_ERI1 EN3
  715. #define EN_SCI2_TEI2 EN4
  716. #define EN_SCI2_ERI2 EN5
  717. #define EN_SCI3_TEI3 EN6
  718. #define EN_SCI3_ERI3 EN7
  719. #define EN_SCI4_TEI4 EN8
  720. #define EN_SCI4_ERI4 EN9
  721. #define EN_SCI5_TEI5 EN10
  722. #define EN_SCI5_ERI5 EN11
  723. #define EN_SCI6_TEI6 EN12
  724. #define EN_SCI6_ERI6 EN13
  725. #define EN_SCI7_TEI7 EN14
  726. #define EN_SCI7_ERI7 EN15
  727. #define EN_SCI12_TEI12 EN16
  728. #define EN_SCI12_ERI12 EN17
  729. #define EN_SCI12_SCIX0 EN18
  730. #define EN_SCI12_SCIX1 EN19
  731. #define EN_SCI12_SCIX2 EN20
  732. #define EN_SCI12_SCIX3 EN21
  733. #define EN_QSPI_QSPSSLI EN24
  734. #define EN_CAC_FERRI EN26
  735. #define EN_CAC_MENDI EN27
  736. #define EN_CAC_OVFI EN28
  737. #define EN_DOC_DOPCI EN29
  738. #define EN_PDC_PCFEI EN30
  739. #define EN_PDC_PCERI EN31
  740. #define EN_SDHI_CDETI EN3
  741. #define EN_SDHI_CACI EN4
  742. #define EN_SDHI_SDACI EN5
  743. #define EN_MMCIF_CDETIO EN6
  744. #define EN_MMCIF_ERRIO EN7
  745. #define EN_MMCIF_ACCIO EN8
  746. #define EN_POE3_OEI1 EN9
  747. #define EN_POE3_OEI2 EN10
  748. #define EN_POE3_OEI3 EN11
  749. #define EN_POE3_OEI4 EN12
  750. #define EN_RIIC0_TEI0 EN13
  751. #define EN_RIIC0_EEI0 EN14
  752. #define EN_RIIC2_TEI2 EN15
  753. #define EN_RIIC2_EEI2 EN16
  754. #define EN_S12AD_S12CMPAI EN20
  755. #define EN_S12AD_S12CMPBI EN21
  756. #define EN_S12AD1_S12CMPAI1 EN22
  757. #define EN_S12AD1_S12CMPBI1 EN23
  758. #define EN_SCI8_TEI8 EN24
  759. #define EN_SCI8_ERI8 EN25
  760. #define EN_SCI9_TEI9 EN26
  761. #define EN_SCI9_ERI9 EN27
  762. #define EN_RIIC1_TEI1 EN28
  763. #define EN_RIIC1_EEI1 EN29
  764. #define EN_SDSI_SDIOI EN0
  765. #define EN_SCI10_TEI10 EN8
  766. #define EN_SCI10_ERI10 EN9
  767. #define EN_SCI11_TEI11 EN12
  768. #define EN_SCI11_ERI11 EN13
  769. #define EN_RSPI0_SPII0 EN16
  770. #define EN_RSPI0_SPEI0 EN17
  771. #define EN_RSPI1_SPII1 EN18
  772. #define EN_RSPI1_SPEI1 EN19
  773. #define EN_RSPI2_SPII2 EN20
  774. #define EN_RSPI2_SPEI2 EN21
  775. #define EN_EDMAC0_EINT0 EN4
  776. #define EN_GLCDC_VPOS EN8
  777. #define EN_GLCDC_GR1UF EN9
  778. #define EN_GLCDC_GR2UF EN10
  779. #define EN_DRW2D_DRWIRQ EN11
  780. #define CLR_CAN0_ERS0 CLR0
  781. #define CLR_CAN1_ERS1 CLR1
  782. #define GEN_CAN0_ERS0 GENBE0
  783. #define GEN_CAN1_ERS1 GENBE0
  784. #define GEN_SCI0_TEI0 GENBL0
  785. #define GEN_SCI0_ERI0 GENBL0
  786. #define GEN_SCI1_TEI1 GENBL0
  787. #define GEN_SCI1_ERI1 GENBL0
  788. #define GEN_SCI2_TEI2 GENBL0
  789. #define GEN_SCI2_ERI2 GENBL0
  790. #define GEN_SCI3_TEI3 GENBL0
  791. #define GEN_SCI3_ERI3 GENBL0
  792. #define GEN_SCI4_TEI4 GENBL0
  793. #define GEN_SCI4_ERI4 GENBL0
  794. #define GEN_SCI5_TEI5 GENBL0
  795. #define GEN_SCI5_ERI5 GENBL0
  796. #define GEN_SCI6_TEI6 GENBL0
  797. #define GEN_SCI6_ERI6 GENBL0
  798. #define GEN_SCI7_TEI7 GENBL0
  799. #define GEN_SCI7_ERI7 GENBL0
  800. #define GEN_SCI12_TEI12 GENBL0
  801. #define GEN_SCI12_ERI12 GENBL0
  802. #define GEN_SCI12_SCIX0 GENBL0
  803. #define GEN_SCI12_SCIX1 GENBL0
  804. #define GEN_SCI12_SCIX2 GENBL0
  805. #define GEN_SCI12_SCIX3 GENBL0
  806. #define GEN_QSPI_QSPSSLI GENBL0
  807. #define GEN_CAC_FERRI GENBL0
  808. #define GEN_CAC_MENDI GENBL0
  809. #define GEN_CAC_OVFI GENBL0
  810. #define GEN_DOC_DOPCI GENBL0
  811. #define GEN_PDC_PCFEI GENBL0
  812. #define GEN_PDC_PCERI GENBL0
  813. #define GEN_SDHI_CDETI GENBL1
  814. #define GEN_SDHI_CACI GENBL1
  815. #define GEN_SDHI_SDACI GENBL1
  816. #define GEN_MMCIF_CDETIO GENBL1
  817. #define GEN_MMCIF_ERRIO GENBL1
  818. #define GEN_MMCIF_ACCIO GENBL1
  819. #define GEN_POE3_OEI1 GENBL1
  820. #define GEN_POE3_OEI2 GENBL1
  821. #define GEN_POE3_OEI3 GENBL1
  822. #define GEN_POE3_OEI4 GENBL1
  823. #define GEN_RIIC0_TEI0 GENBL1
  824. #define GEN_RIIC0_EEI0 GENBL1
  825. #define GEN_RIIC2_TEI2 GENBL1
  826. #define GEN_RIIC2_EEI2 GENBL1
  827. #define GEN_S12AD_S12CMPAI GENBL1
  828. #define GEN_S12AD_S12CMPBI GENBL1
  829. #define GEN_S12AD1_S12CMPAI1 GENBL1
  830. #define GEN_S12AD1_S12CMPBI1 GENBL1
  831. #define GEN_SCI8_TEI8 GENBL1
  832. #define GEN_SCI8_ERI8 GENBL1
  833. #define GEN_SCI9_TEI9 GENBL1
  834. #define GEN_SCI9_ERI9 GENBL1
  835. #define GEN_RIIC1_TEI1 GENBL1
  836. #define GEN_RIIC1_EEI1 GENBL1
  837. #define GEN_SDSI_SDIOI GENBL2
  838. #define GEN_SCI10_TEI10 GENAL0
  839. #define GEN_SCI10_ERI10 GENAL0
  840. #define GEN_SCI11_TEI11 GENAL0
  841. #define GEN_SCI11_ERI11 GENAL0
  842. #define GEN_RSPI0_SPII0 GENAL0
  843. #define GEN_RSPI0_SPEI0 GENAL0
  844. #define GEN_RSPI1_SPII1 GENAL0
  845. #define GEN_RSPI1_SPEI1 GENAL0
  846. #define GEN_RSPI2_SPII2 GENAL0
  847. #define GEN_RSPI2_SPEI2 GENAL0
  848. #define GEN_EDMAC0_EINT0 GENAL1
  849. #define GEN_GLCDC_VPOS GENAL1
  850. #define GEN_GLCDC_GR1UF GENAL1
  851. #define GEN_GLCDC_GR2UF GENAL1
  852. #define GEN_DRW2D_DRWIRQ GENAL1
  853. #define GRP_CAN0_ERS0 GRPBE0
  854. #define GRP_CAN1_ERS1 GRPBE0
  855. #define GRP_SCI0_TEI0 GRPBL0
  856. #define GRP_SCI0_ERI0 GRPBL0
  857. #define GRP_SCI1_TEI1 GRPBL0
  858. #define GRP_SCI1_ERI1 GRPBL0
  859. #define GRP_SCI2_TEI2 GRPBL0
  860. #define GRP_SCI2_ERI2 GRPBL0
  861. #define GRP_SCI3_TEI3 GRPBL0
  862. #define GRP_SCI3_ERI3 GRPBL0
  863. #define GRP_SCI4_TEI4 GRPBL0
  864. #define GRP_SCI4_ERI4 GRPBL0
  865. #define GRP_SCI5_TEI5 GRPBL0
  866. #define GRP_SCI5_ERI5 GRPBL0
  867. #define GRP_SCI6_TEI6 GRPBL0
  868. #define GRP_SCI6_ERI6 GRPBL0
  869. #define GRP_SCI7_TEI7 GRPBL0
  870. #define GRP_SCI7_ERI7 GRPBL0
  871. #define GRP_SCI12_TEI12 GRPBL0
  872. #define GRP_SCI12_ERI12 GRPBL0
  873. #define GRP_SCI12_SCIX0 GRPBL0
  874. #define GRP_SCI12_SCIX1 GRPBL0
  875. #define GRP_SCI12_SCIX2 GRPBL0
  876. #define GRP_SCI12_SCIX3 GRPBL0
  877. #define GRP_QSPI_QSPSSLI GRPBL0
  878. #define GRP_CAC_FERRI GRPBL0
  879. #define GRP_CAC_MENDI GRPBL0
  880. #define GRP_CAC_OVFI GRPBL0
  881. #define GRP_DOC_DOPCI GRPBL0
  882. #define GRP_PDC_PCFEI GRPBL0
  883. #define GRP_PDC_PCERI GRPBL0
  884. #define GRP_SDHI_CDETI GRPBL1
  885. #define GRP_SDHI_CACI GRPBL1
  886. #define GRP_SDHI_SDACI GRPBL1
  887. #define GRP_MMCIF_CDETIO GRPBL1
  888. #define GRP_MMCIF_ERRIO GRPBL1
  889. #define GRP_MMCIF_ACCIO GRPBL1
  890. #define GRP_POE3_OEI1 GRPBL1
  891. #define GRP_POE3_OEI2 GRPBL1
  892. #define GRP_POE3_OEI3 GRPBL1
  893. #define GRP_POE3_OEI4 GRPBL1
  894. #define GRP_RIIC0_TEI0 GRPBL1
  895. #define GRP_RIIC0_EEI0 GRPBL1
  896. #define GRP_RIIC2_TEI2 GRPBL1
  897. #define GRP_RIIC2_EEI2 GRPBL1
  898. #define GRP_S12AD_S12CMPAI GRPBL1
  899. #define GRP_S12AD_S12CMPBI GRPBL1
  900. #define GRP_S12AD1_S12CMPAI1 GRPBL1
  901. #define GRP_S12AD1_S12CMPBI1 GRPBL1
  902. #define GRP_SCI8_TEI8 GRPBL1
  903. #define GRP_SCI8_ERI8 GRPBL1
  904. #define GRP_SCI9_TEI9 GRPBL1
  905. #define GRP_SCI9_ERI9 GRPBL1
  906. #define GRP_RIIC1_TEI1 GRPBL1
  907. #define GRP_RIIC1_EEI1 GRPBL1
  908. #define GRP_SDSI_SDIOI GRPBL2
  909. #define GRP_SCI10_TEI10 GRPAL0
  910. #define GRP_SCI10_ERI10 GRPAL0
  911. #define GRP_SCI11_TEI11 GRPAL0
  912. #define GRP_SCI11_ERI11 GRPAL0
  913. #define GRP_RSPI0_SPII0 GRPAL0
  914. #define GRP_RSPI0_SPEI0 GRPAL0
  915. #define GRP_RSPI1_SPII1 GRPAL0
  916. #define GRP_RSPI1_SPEI1 GRPAL0
  917. #define GRP_RSPI2_SPII2 GRPAL0
  918. #define GRP_RSPI2_SPEI2 GRPAL0
  919. #define GRP_EDMAC0_EINT0 GRPAL1
  920. #define GRP_GLCDC_VPOS GRPAL1
  921. #define GRP_GLCDC_GR1UF GRPAL1
  922. #define GRP_GLCDC_GR2UF GRPAL1
  923. #define GRP_DRW2D_DRWIRQ GRPAL1
  924. #define GCR_CAN0_ERS0 GCRBE0
  925. #define GCR_CAN1_ERS1 GCRBE0
  926. #define __IR( x ) ICU.IR[ IR ## x ].BIT.IR
  927. #define _IR( x ) __IR( x )
  928. #define IR( x , y ) _IR( _ ## x ## _ ## y )
  929. #define __DTCE( x ) ICU.DTCER[ DTCE ## x ].BIT.DTCE
  930. #define _DTCE( x ) __DTCE( x )
  931. #define DTCE( x , y ) _DTCE( _ ## x ## _ ## y )
  932. #define __IEN( x ) ICU.IER[ IER ## x ].BIT.IEN ## x
  933. #define _IEN( x ) __IEN( x )
  934. #define IEN( x , y ) _IEN( _ ## x ## _ ## y )
  935. #define __IPR( x ) ICU.IPR[ IPR ## x ].BIT.IPR
  936. #define _IPR( x ) __IPR( x )
  937. #define IPR( x , y ) _IPR( _ ## x ## _ ## y )
  938. #define __VECT( x ) VECT ## x
  939. #define _VECT( x ) __VECT( x )
  940. #define VECT( x , y ) _VECT( _ ## x ## _ ## y )
  941. #define __MSTP( x ) MSTP ## x
  942. #define _MSTP( x ) __MSTP( x )
  943. #define MSTP( x ) _MSTP( _ ## x )
  944. #define __IS( x ) ICU.GRP ## x.BIT.IS ## x
  945. #define _IS( x ) __IS( x )
  946. #define IS( x , y ) _IS( _ ## x ## _ ## y )
  947. #define __EN( x ) ICU.GEN ## x.BIT.EN ## x
  948. #define _EN( x ) __EN( x )
  949. #define EN( x , y ) _EN( _ ## x ## _ ## y )
  950. #define __CLR( x ) ICU.GCR ## x.BIT.CLR ## x
  951. #define _CLR( x ) __CLR( x )
  952. #define CLR( x , y ) _CLR( _ ## x ## _ ## y )
  953. #define BSC (*(volatile struct st_bsc *)0x81300)
  954. #define CAC (*(volatile struct st_cac *)0x8B000)
  955. #define CAN0 (*(volatile struct st_can *)0x90200)
  956. #define CAN1 (*(volatile struct st_can *)0x91200)
  957. #define CMT (*(volatile struct st_cmt *)0x88000)
  958. #define CMT0 (*(volatile struct st_cmt0 *)0x88002)
  959. #define CMT1 (*(volatile struct st_cmt0 *)0x88008)
  960. #define CMT2 (*(volatile struct st_cmt0 *)0x88012)
  961. #define CMT3 (*(volatile struct st_cmt0 *)0x88018)
  962. #define CMTW0 (*(volatile struct st_cmtw *)0x94200)
  963. #define CMTW1 (*(volatile struct st_cmtw *)0x94280)
  964. #define CRC (*(volatile struct st_crc *)0x88280)
  965. #define DA (*(volatile struct st_da *)0x88040)
  966. #define DMAC (*(volatile struct st_dmac *)0x82200)
  967. #define DMAC0 (*(volatile struct st_dmac0 *)0x82000)
  968. #define DMAC1 (*(volatile struct st_dmac1 *)0x82040)
  969. #define DMAC2 (*(volatile struct st_dmac1 *)0x82080)
  970. #define DMAC3 (*(volatile struct st_dmac1 *)0x820C0)
  971. #define DMAC4 (*(volatile struct st_dmac1 *)0x82100)
  972. #define DMAC5 (*(volatile struct st_dmac1 *)0x82140)
  973. #define DMAC6 (*(volatile struct st_dmac1 *)0x82180)
  974. #define DMAC7 (*(volatile struct st_dmac1 *)0x821C0)
  975. #define DOC (*(volatile struct st_doc *)0x8B080)
  976. #define DRW2D (*(volatile struct st_drw2d *)0xE3000)
  977. #define DTC (*(volatile struct st_dtc *)0x82400)
  978. #define EDMAC0 (*(volatile struct st_edmac *)0xC0000)
  979. #define ELC (*(volatile struct st_elc *)0x8B100)
  980. #define ETHERC0 (*(volatile struct st_etherc *)0xC0100)
  981. #define EXDMAC (*(volatile struct st_exdmac *)0x82A00)
  982. #define EXDMAC0 (*(volatile struct st_exdmac0 *)0x82800)
  983. #define EXDMAC1 (*(volatile struct st_exdmac1 *)0x82840)
  984. #define FLASH (*(volatile struct st_flash *)0x81000)
  985. #define GLCDC (*(volatile struct st_glcdc *)0xE0000)
  986. #define ICU (*(volatile struct st_icu *)0x87000)
  987. #define IWDT (*(volatile struct st_iwdt *)0x88030)
  988. #define MMCIF (*(volatile struct st_mmcif *)0x88500)
  989. #define MPC (*(volatile struct st_mpc *)0x8C100)
  990. #define MPU (*(volatile struct st_mpu *)0x86400)
  991. #define MTU (*(volatile struct st_mtu *)0xC120A)
  992. #define MTU0 (*(volatile struct st_mtu0 *)0xC1290)
  993. #define MTU1 (*(volatile struct st_mtu1 *)0xC1290)
  994. #define MTU2 (*(volatile struct st_mtu2 *)0xC1292)
  995. #define MTU3 (*(volatile struct st_mtu3 *)0xC1200)
  996. #define MTU4 (*(volatile struct st_mtu4 *)0xC1200)
  997. #define MTU5 (*(volatile struct st_mtu5 *)0xC1A94)
  998. #define MTU6 (*(volatile struct st_mtu6 *)0xC1A00)
  999. #define MTU7 (*(volatile struct st_mtu7 *)0xC1A00)
  1000. #define MTU8 (*(volatile struct st_mtu8 *)0xC1298)
  1001. #define PDC (*(volatile struct st_pdc *)0xA0500)
  1002. #define POE3 (*(volatile struct st_poe *)0x8C4C0)
  1003. #define PORT0 (*(volatile struct st_port0 *)0x8C000)
  1004. #define PORT1 (*(volatile struct st_port1 *)0x8C001)
  1005. #define PORT2 (*(volatile struct st_port2 *)0x8C002)
  1006. #define PORT3 (*(volatile struct st_port3 *)0x8C003)
  1007. #define PORT4 (*(volatile struct st_port4 *)0x8C004)
  1008. #define PORT5 (*(volatile struct st_port5 *)0x8C005)
  1009. #define PORT6 (*(volatile struct st_port6 *)0x8C006)
  1010. #define PORT7 (*(volatile struct st_port7 *)0x8C007)
  1011. #define PORT8 (*(volatile struct st_port8 *)0x8C008)
  1012. #define PORT9 (*(volatile struct st_port9 *)0x8C009)
  1013. #define PORTA (*(volatile struct st_porta *)0x8C00A)
  1014. #define PORTB (*(volatile struct st_portb *)0x8C00B)
  1015. #define PORTC (*(volatile struct st_portc *)0x8C00C)
  1016. #define PORTD (*(volatile struct st_portd *)0x8C00D)
  1017. #define PORTE (*(volatile struct st_porte *)0x8C00E)
  1018. #define PORTF (*(volatile struct st_portf *)0x8C00F)
  1019. #define PORTG (*(volatile struct st_portg *)0x8C010)
  1020. #define PORTJ (*(volatile struct st_portj *)0x8C012)
  1021. #define PPG0 (*(volatile struct st_ppg0 *)0x881E6)
  1022. #define PPG1 (*(volatile struct st_ppg1 *)0x881F0)
  1023. #define QSPI (*(volatile struct st_qspi *)0x89E00)
  1024. #define RAM (*(volatile struct st_ram *)0x81200)
  1025. #define RIIC0 (*(volatile struct st_riic *)0x88300)
  1026. #define RIIC1 (*(volatile struct st_riic *)0x88320)
  1027. #define RIIC2 (*(volatile struct st_riic *)0x88340)
  1028. #define RSPI0 (*(volatile struct st_rspi *)0xD0100)
  1029. #define RSPI1 (*(volatile struct st_rspi *)0xD0140)
  1030. #define RSPI2 (*(volatile struct st_rspi *)0xD0300)
  1031. #define RTC (*(volatile struct st_rtc *)0x8C400)
  1032. #define S12AD (*(volatile struct st_s12ad *)0x89000)
  1033. #define S12AD1 (*(volatile struct st_s12ad1 *)0x89100)
  1034. #define SCI0 (*(volatile struct st_sci0 *)0x8A000)
  1035. #define SCI1 (*(volatile struct st_sci0 *)0x8A020)
  1036. #define SCI2 (*(volatile struct st_sci0 *)0x8A040)
  1037. #define SCI3 (*(volatile struct st_sci0 *)0x8A060)
  1038. #define SCI4 (*(volatile struct st_sci0 *)0x8A080)
  1039. #define SCI5 (*(volatile struct st_sci0 *)0x8A0A0)
  1040. #define SCI6 (*(volatile struct st_sci0 *)0x8A0C0)
  1041. #define SCI7 (*(volatile struct st_sci0 *)0x8A0E0)
  1042. #define SCI8 (*(volatile struct st_sci0 *)0x8A100)
  1043. #define SCI9 (*(volatile struct st_sci0 *)0x8A120)
  1044. #define SCI10 (*(volatile struct st_sci10 *)0xD0040)
  1045. #define SCI11 (*(volatile struct st_sci10 *)0xD0060)
  1046. #define SCI12 (*(volatile struct st_sci12 *)0x8B300)
  1047. #define SDHI (*(volatile struct st_sdhi *)0x8AC00)
  1048. #define SDSI (*(volatile struct st_sdsi *)0x95000)
  1049. #define SMCI0 (*(volatile struct st_smci0 *)0x8A000)
  1050. #define SMCI1 (*(volatile struct st_smci0 *)0x8A020)
  1051. #define SMCI2 (*(volatile struct st_smci0 *)0x8A040)
  1052. #define SMCI3 (*(volatile struct st_smci0 *)0x8A060)
  1053. #define SMCI4 (*(volatile struct st_smci0 *)0x8A080)
  1054. #define SMCI5 (*(volatile struct st_smci0 *)0x8A0A0)
  1055. #define SMCI6 (*(volatile struct st_smci0 *)0x8A0C0)
  1056. #define SMCI7 (*(volatile struct st_smci0 *)0x8A0E0)
  1057. #define SMCI8 (*(volatile struct st_smci0 *)0x8A100)
  1058. #define SMCI9 (*(volatile struct st_smci0 *)0x8A120)
  1059. #define SMCI10 (*(volatile struct st_smci10 *)0xD0040)
  1060. #define SMCI11 (*(volatile struct st_smci10 *)0xD0060)
  1061. #define SMCI12 (*(volatile struct st_smci0 *)0x8B300)
  1062. #define SYSTEM (*(volatile struct st_system *)0x80000)
  1063. #define TEMPS (*(volatile struct st_temps *)0x8C500)
  1064. #define TMR0 (*(volatile struct st_tmr0 *)0x88200)
  1065. #define TMR1 (*(volatile struct st_tmr1 *)0x88201)
  1066. #define TMR2 (*(volatile struct st_tmr0 *)0x88210)
  1067. #define TMR3 (*(volatile struct st_tmr1 *)0x88211)
  1068. #define TMR01 (*(volatile struct st_tmr01 *)0x88204)
  1069. #define TMR23 (*(volatile struct st_tmr01 *)0x88214)
  1070. #define TPU0 (*(volatile struct st_tpu0 *)0x88108)
  1071. #define TPU1 (*(volatile struct st_tpu1 *)0x88108)
  1072. #define TPU2 (*(volatile struct st_tpu2 *)0x8810A)
  1073. #define TPU3 (*(volatile struct st_tpu3 *)0x8810A)
  1074. #define TPU4 (*(volatile struct st_tpu4 *)0x8810C)
  1075. #define TPU5 (*(volatile struct st_tpu5 *)0x8810C)
  1076. #define TPUA (*(volatile struct st_tpua *)0x88100)
  1077. #define USB (*(volatile struct st_usb *)0xA0400)
  1078. #define USB0 (*(volatile struct st_usb0 *)0xA0000)
  1079. #define WDT (*(volatile struct st_wdt *)0x88020)
  1080. #define FLASHCONST (*(volatile struct st_flashconst *)0xFE7F7D90)
  1081. #define TEMPSCONST (*(volatile struct st_tempsconst *)0xFE7F7D7C)
  1082. typedef enum enum_ir {
  1083. IR_BSC_BUSERR=16,IR_RAM_RAMERR=18,
  1084. IR_FCU_FIFERR=21,IR_FCU_FRDYI=23,
  1085. IR_ICU_SWINT2=26,IR_ICU_SWINT,
  1086. IR_CMT0_CMI0,
  1087. IR_CMT1_CMI1,
  1088. IR_CMTW0_CMWI0,
  1089. IR_CMTW1_CMWI1,
  1090. IR_USB0_D0FIFO0=34,IR_USB0_D1FIFO0,
  1091. IR_RSPI0_SPRI0=38,IR_RSPI0_SPTI0,
  1092. IR_RSPI1_SPRI1,IR_RSPI1_SPTI1,
  1093. IR_QSPI_SPRI,IR_QSPI_SPTI,
  1094. IR_SDHI_SBFAI,
  1095. IR_MMCIF_MBFAI,
  1096. IR_RIIC1_RXI1=50,IR_RIIC1_TXI1,
  1097. IR_RIIC0_RXI0,IR_RIIC0_TXI0,
  1098. IR_RIIC2_RXI2,IR_RIIC2_TXI2,
  1099. IR_SCI0_RXI0=58,IR_SCI0_TXI0,
  1100. IR_SCI1_RXI1,IR_SCI1_TXI1,
  1101. IR_SCI2_RXI2,IR_SCI2_TXI2,
  1102. IR_ICU_IRQ0,IR_ICU_IRQ1,IR_ICU_IRQ2,IR_ICU_IRQ3,IR_ICU_IRQ4,IR_ICU_IRQ5,IR_ICU_IRQ6,IR_ICU_IRQ7,
  1103. IR_ICU_IRQ8,IR_ICU_IRQ9,IR_ICU_IRQ10,IR_ICU_IRQ11,IR_ICU_IRQ12,IR_ICU_IRQ13,IR_ICU_IRQ14,IR_ICU_IRQ15,
  1104. IR_SCI3_RXI3,IR_SCI3_TXI3,
  1105. IR_SCI4_RXI4,IR_SCI4_TXI4,
  1106. IR_SCI5_RXI5,IR_SCI5_TXI5,
  1107. IR_SCI6_RXI6,IR_SCI6_TXI6,
  1108. IR_LVD1_LVD1,
  1109. IR_LVD2_LVD2,
  1110. IR_USB0_USBR0,
  1111. IR_RTC_ALM=92,IR_RTC_PRD,
  1112. IR_IWDT_IWUNI=95,
  1113. IR_WDT_WUNI,
  1114. IR_PDC_PCDFI,
  1115. IR_SCI7_RXI7,IR_SCI7_TXI7,
  1116. IR_SCI8_RXI8,IR_SCI8_TXI8,
  1117. IR_SCI9_RXI9,IR_SCI9_TXI9,
  1118. IR_SCI10_RXI10,IR_SCI10_TXI10,
  1119. IR_ICU_GROUPBE0,IR_ICU_GROUPBL2,
  1120. IR_RSPI2_SPRI2,IR_RSPI2_SPTI2,
  1121. IR_ICU_GROUPBL0,IR_ICU_GROUPBL1,IR_ICU_GROUPAL0,IR_ICU_GROUPAL1,
  1122. IR_SCI11_RXI11,IR_SCI11_TXI11,
  1123. IR_SCI12_RXI12,IR_SCI12_TXI12,
  1124. IR_DMAC_DMAC0I=120,IR_DMAC_DMAC1I,IR_DMAC_DMAC2I,IR_DMAC_DMAC3I,IR_DMAC_DMAC74I,
  1125. IR_OST_OSTDI,
  1126. IR_EXDMAC_EXDMAC0I,IR_EXDMAC_EXDMAC1I,
  1127. IR_PERIB_INTB128,IR_PERIB_INTB129,IR_PERIB_INTB130,IR_PERIB_INTB131,IR_PERIB_INTB132,
  1128. IR_PERIB_INTB133,IR_PERIB_INTB134,IR_PERIB_INTB135,IR_PERIB_INTB136,IR_PERIB_INTB137,
  1129. IR_PERIB_INTB138,IR_PERIB_INTB139,IR_PERIB_INTB140,IR_PERIB_INTB141,IR_PERIB_INTB142,
  1130. IR_PERIB_INTB143,IR_PERIB_INTB144,IR_PERIB_INTB145,IR_PERIB_INTB146,IR_PERIB_INTB147,
  1131. IR_PERIB_INTB148,IR_PERIB_INTB149,IR_PERIB_INTB150,IR_PERIB_INTB151,IR_PERIB_INTB152,
  1132. IR_PERIB_INTB153,IR_PERIB_INTB154,IR_PERIB_INTB155,IR_PERIB_INTB156,IR_PERIB_INTB157,
  1133. IR_PERIB_INTB158,IR_PERIB_INTB159,IR_PERIB_INTB160,IR_PERIB_INTB161,IR_PERIB_INTB162,
  1134. IR_PERIB_INTB163,IR_PERIB_INTB164,IR_PERIB_INTB165,IR_PERIB_INTB166,IR_PERIB_INTB167,
  1135. IR_PERIB_INTB168,IR_PERIB_INTB169,IR_PERIB_INTB170,IR_PERIB_INTB171,IR_PERIB_INTB172,
  1136. IR_PERIB_INTB173,IR_PERIB_INTB174,IR_PERIB_INTB175,IR_PERIB_INTB176,IR_PERIB_INTB177,
  1137. IR_PERIB_INTB178,IR_PERIB_INTB179,IR_PERIB_INTB180,IR_PERIB_INTB181,IR_PERIB_INTB182,
  1138. IR_PERIB_INTB183,IR_PERIB_INTB184,IR_PERIB_INTB185,IR_PERIB_INTB186,IR_PERIB_INTB187,
  1139. IR_PERIB_INTB188,IR_PERIB_INTB189,IR_PERIB_INTB190,IR_PERIB_INTB191,IR_PERIB_INTB192,
  1140. IR_PERIB_INTB193,IR_PERIB_INTB194,IR_PERIB_INTB195,IR_PERIB_INTB196,IR_PERIB_INTB197,
  1141. IR_PERIB_INTB198,IR_PERIB_INTB199,IR_PERIB_INTB200,IR_PERIB_INTB201,IR_PERIB_INTB202,
  1142. IR_PERIB_INTB203,IR_PERIB_INTB204,IR_PERIB_INTB205,IR_PERIB_INTB206,IR_PERIB_INTB207,
  1143. IR_PERIA_INTA208,IR_PERIA_INTA209,IR_PERIA_INTA210,IR_PERIA_INTA211,IR_PERIA_INTA212,
  1144. IR_PERIA_INTA213,IR_PERIA_INTA214,IR_PERIA_INTA215,IR_PERIA_INTA216,IR_PERIA_INTA217,
  1145. IR_PERIA_INTA218,IR_PERIA_INTA219,IR_PERIA_INTA220,IR_PERIA_INTA221,IR_PERIA_INTA222,
  1146. IR_PERIA_INTA223,IR_PERIA_INTA224,IR_PERIA_INTA225,IR_PERIA_INTA226,IR_PERIA_INTA227,
  1147. IR_PERIA_INTA228,IR_PERIA_INTA229,IR_PERIA_INTA230,IR_PERIA_INTA231,IR_PERIA_INTA232,
  1148. IR_PERIA_INTA233,IR_PERIA_INTA234,IR_PERIA_INTA235,IR_PERIA_INTA236,IR_PERIA_INTA237,
  1149. IR_PERIA_INTA238,IR_PERIA_INTA239,IR_PERIA_INTA240,IR_PERIA_INTA241,IR_PERIA_INTA242,
  1150. IR_PERIA_INTA243,IR_PERIA_INTA244,IR_PERIA_INTA245,IR_PERIA_INTA246,IR_PERIA_INTA247,
  1151. IR_PERIA_INTA248,IR_PERIA_INTA249,IR_PERIA_INTA250,IR_PERIA_INTA251,IR_PERIA_INTA252,
  1152. IR_PERIA_INTA253,IR_PERIA_INTA254,IR_PERIA_INTA255
  1153. } enum_ir_t;
  1154. typedef enum enum_dtce {
  1155. DTCE_ICU_SWINT2=26,DTCE_ICU_SWINT,
  1156. DTCE_CMT0_CMI0,
  1157. DTCE_CMT1_CMI1,
  1158. DTCE_CMTW0_CMWI0,
  1159. DTCE_CMTW1_CMWI1,
  1160. DTCE_USB0_D0FIFO0=34,DTCE_USB0_D1FIFO0,
  1161. DTCE_RSPI0_SPRI0=38,DTCE_RSPI0_SPTI0,
  1162. DTCE_RSPI1_SPRI1,DTCE_RSPI1_SPTI1,
  1163. DTCE_QSPI_SPRI,DTCE_QSPI_SPTI,
  1164. DTCE_SDHI_SBFAI,
  1165. DTCE_MMCIF_MBFAI,
  1166. DTCE_RIIC1_RXI1=50,DTCE_RIIC1_TXI1,
  1167. DTCE_RIIC0_RXI0,DTCE_RIIC0_TXI0,
  1168. DTCE_RIIC2_RXI2,DTCE_RIIC2_TXI2,
  1169. DTCE_SCI0_RXI0=58,DTCE_SCI0_TXI0,
  1170. DTCE_SCI1_RXI1,DTCE_SCI1_TXI1,
  1171. DTCE_SCI2_RXI2,DTCE_SCI2_TXI2,
  1172. DTCE_ICU_IRQ0,DTCE_ICU_IRQ1,DTCE_ICU_IRQ2,DTCE_ICU_IRQ3,DTCE_ICU_IRQ4,DTCE_ICU_IRQ5,DTCE_ICU_IRQ6,DTCE_ICU_IRQ7,
  1173. DTCE_ICU_IRQ8,DTCE_ICU_IRQ9,DTCE_ICU_IRQ10,DTCE_ICU_IRQ11,DTCE_ICU_IRQ12,DTCE_ICU_IRQ13,DTCE_ICU_IRQ14,DTCE_ICU_IRQ15,
  1174. DTCE_SCI3_RXI3,DTCE_SCI3_TXI3,
  1175. DTCE_SCI4_RXI4,DTCE_SCI4_TXI4,
  1176. DTCE_SCI5_RXI5,DTCE_SCI5_TXI5,
  1177. DTCE_SCI6_RXI6,DTCE_SCI6_TXI6,
  1178. DTCE_PDC_PCDFI=97,
  1179. DTCE_SCI7_RXI7,DTCE_SCI7_TXI7,
  1180. DTCE_SCI8_RXI8,DTCE_SCI8_TXI8,
  1181. DTCE_SCI9_RXI9,DTCE_SCI9_TXI9,
  1182. DTCE_SCI10_RXI10,DTCE_SCI10_TXI10,
  1183. DTCE_RSPI2_SPRI2=108,DTCE_RSPI2_SPTI2,
  1184. DTCE_SCI11_RXI11=114,DTCE_SCI11_TXI11,
  1185. DTCE_SCI12_RXI12,DTCE_SCI12_TXI12,
  1186. DTCE_DMAC_DMAC0I=120,DTCE_DMAC_DMAC1I,DTCE_DMAC_DMAC2I,DTCE_DMAC_DMAC3I,
  1187. DTCE_EXDMAC_EXDMAC0I=126,DTCE_EXDMAC_EXDMAC1I,
  1188. DTCE_PERIB_INTB128,DTCE_PERIB_INTB129,DTCE_PERIB_INTB130,DTCE_PERIB_INTB131,DTCE_PERIB_INTB132,
  1189. DTCE_PERIB_INTB133,DTCE_PERIB_INTB134,DTCE_PERIB_INTB135,DTCE_PERIB_INTB136,DTCE_PERIB_INTB137,
  1190. DTCE_PERIB_INTB138,DTCE_PERIB_INTB139,DTCE_PERIB_INTB140,DTCE_PERIB_INTB141,DTCE_PERIB_INTB142,
  1191. DTCE_PERIB_INTB143,DTCE_PERIB_INTB144,DTCE_PERIB_INTB145,DTCE_PERIB_INTB146,DTCE_PERIB_INTB147,
  1192. DTCE_PERIB_INTB148,DTCE_PERIB_INTB149,DTCE_PERIB_INTB150,DTCE_PERIB_INTB151,DTCE_PERIB_INTB152,
  1193. DTCE_PERIB_INTB153,DTCE_PERIB_INTB154,DTCE_PERIB_INTB155,DTCE_PERIB_INTB156,DTCE_PERIB_INTB157,
  1194. DTCE_PERIB_INTB158,DTCE_PERIB_INTB159,DTCE_PERIB_INTB160,DTCE_PERIB_INTB161,DTCE_PERIB_INTB162,
  1195. DTCE_PERIB_INTB163,DTCE_PERIB_INTB164,DTCE_PERIB_INTB165,DTCE_PERIB_INTB166,DTCE_PERIB_INTB167,
  1196. DTCE_PERIB_INTB168,DTCE_PERIB_INTB169,DTCE_PERIB_INTB170,DTCE_PERIB_INTB171,DTCE_PERIB_INTB172,
  1197. DTCE_PERIB_INTB173,DTCE_PERIB_INTB174,DTCE_PERIB_INTB175,DTCE_PERIB_INTB176,DTCE_PERIB_INTB177,
  1198. DTCE_PERIB_INTB178,DTCE_PERIB_INTB179,DTCE_PERIB_INTB180,DTCE_PERIB_INTB181,DTCE_PERIB_INTB182,
  1199. DTCE_PERIB_INTB183,DTCE_PERIB_INTB184,DTCE_PERIB_INTB185,DTCE_PERIB_INTB186,DTCE_PERIB_INTB187,
  1200. DTCE_PERIB_INTB188,DTCE_PERIB_INTB189,DTCE_PERIB_INTB190,DTCE_PERIB_INTB191,DTCE_PERIB_INTB192,
  1201. DTCE_PERIB_INTB193,DTCE_PERIB_INTB194,DTCE_PERIB_INTB195,DTCE_PERIB_INTB196,DTCE_PERIB_INTB197,
  1202. DTCE_PERIB_INTB198,DTCE_PERIB_INTB199,DTCE_PERIB_INTB200,DTCE_PERIB_INTB201,DTCE_PERIB_INTB202,
  1203. DTCE_PERIB_INTB203,DTCE_PERIB_INTB204,DTCE_PERIB_INTB205,DTCE_PERIB_INTB206,DTCE_PERIB_INTB207,
  1204. DTCE_PERIA_INTA208,DTCE_PERIA_INTA209,DTCE_PERIA_INTA210,DTCE_PERIA_INTA211,DTCE_PERIA_INTA212,
  1205. DTCE_PERIA_INTA213,DTCE_PERIA_INTA214,DTCE_PERIA_INTA215,DTCE_PERIA_INTA216,DTCE_PERIA_INTA217,
  1206. DTCE_PERIA_INTA218,DTCE_PERIA_INTA219,DTCE_PERIA_INTA220,DTCE_PERIA_INTA221,DTCE_PERIA_INTA222,
  1207. DTCE_PERIA_INTA223,DTCE_PERIA_INTA224,DTCE_PERIA_INTA225,DTCE_PERIA_INTA226,DTCE_PERIA_INTA227,
  1208. DTCE_PERIA_INTA228,DTCE_PERIA_INTA229,DTCE_PERIA_INTA230,DTCE_PERIA_INTA231,DTCE_PERIA_INTA232,
  1209. DTCE_PERIA_INTA233,DTCE_PERIA_INTA234,DTCE_PERIA_INTA235,DTCE_PERIA_INTA236,DTCE_PERIA_INTA237,
  1210. DTCE_PERIA_INTA238,DTCE_PERIA_INTA239,DTCE_PERIA_INTA240,DTCE_PERIA_INTA241,DTCE_PERIA_INTA242,
  1211. DTCE_PERIA_INTA243,DTCE_PERIA_INTA244,DTCE_PERIA_INTA245,DTCE_PERIA_INTA246,DTCE_PERIA_INTA247,
  1212. DTCE_PERIA_INTA248,DTCE_PERIA_INTA249,DTCE_PERIA_INTA250,DTCE_PERIA_INTA251,DTCE_PERIA_INTA252,
  1213. DTCE_PERIA_INTA253,DTCE_PERIA_INTA254,DTCE_PERIA_INTA255
  1214. } enum_dtce_t;
  1215. typedef enum enum_ier {
  1216. IER_BSC_BUSERR=0x02,
  1217. IER_RAM_RAMERR=0x02,
  1218. IER_FCU_FIFERR=0x02,IER_FCU_FRDYI=0x02,
  1219. IER_ICU_SWINT2=0x03,IER_ICU_SWINT=0x03,
  1220. IER_CMT0_CMI0=0x03,
  1221. IER_CMT1_CMI1=0x03,
  1222. IER_CMTW0_CMWI0=0x03,
  1223. IER_CMTW1_CMWI1=0x03,
  1224. IER_USB0_D0FIFO0=0x04,IER_USB0_D1FIFO0=0x04,
  1225. IER_RSPI0_SPRI0=0x04,IER_RSPI0_SPTI0=0x04,
  1226. IER_RSPI1_SPRI1=0x05,IER_RSPI1_SPTI1=0x05,
  1227. IER_QSPI_SPRI=0x05,IER_QSPI_SPTI=0x05,
  1228. IER_SDHI_SBFAI=0x05,
  1229. IER_MMCIF_MBFAI=0x05,
  1230. IER_RIIC1_RXI1=0x06,IER_RIIC1_TXI1=0x06,
  1231. IER_RIIC0_RXI0=0x06,IER_RIIC0_TXI0=0x06,
  1232. IER_RIIC2_RXI2=0x06,IER_RIIC2_TXI2=0x06,
  1233. IER_SCI0_RXI0=0x07,IER_SCI0_TXI0=0x07,
  1234. IER_SCI1_RXI1=0x07,IER_SCI1_TXI1=0x07,
  1235. IER_SCI2_RXI2=0x07,IER_SCI2_TXI2=0x07,
  1236. IER_ICU_IRQ0=0x08,IER_ICU_IRQ1=0x08,IER_ICU_IRQ2=0x08,IER_ICU_IRQ3=0x08,IER_ICU_IRQ4=0x08,IER_ICU_IRQ5=0x08,IER_ICU_IRQ6=0x08,IER_ICU_IRQ7=0x08,
  1237. IER_ICU_IRQ8=0x09,IER_ICU_IRQ9=0x09,IER_ICU_IRQ10=0x09,IER_ICU_IRQ11=0x09,IER_ICU_IRQ12=0x09,IER_ICU_IRQ13=0x09,IER_ICU_IRQ14=0x09,IER_ICU_IRQ15=0x09,
  1238. IER_SCI3_RXI3=0x0A,IER_SCI3_TXI3=0x0A,
  1239. IER_SCI4_RXI4=0x0A,IER_SCI4_TXI4=0x0A,
  1240. IER_SCI5_RXI5=0x0A,IER_SCI5_TXI5=0x0A,
  1241. IER_SCI6_RXI6=0x0A,IER_SCI6_TXI6=0x0A,
  1242. IER_LVD1_LVD1=0x0B,
  1243. IER_LVD2_LVD2=0x0B,
  1244. IER_USB0_USBR0=0x0B,
  1245. IER_RTC_ALM=0x0B,IER_RTC_PRD=0x0B,
  1246. IER_IWDT_IWUNI=0x0B,
  1247. IER_WDT_WUNI=0x0C,
  1248. IER_PDC_PCDFI=0x0C,
  1249. IER_SCI7_RXI7=0x0C,IER_SCI7_TXI7=0x0C,
  1250. IER_SCI8_RXI8=0x0C,IER_SCI8_TXI8=0x0C,
  1251. IER_SCI9_RXI9=0x0C,IER_SCI9_TXI9=0x0C,
  1252. IER_SCI10_RXI10=0x0D,IER_SCI10_TXI10=0x0D,
  1253. IER_ICU_GROUPBE0=0x0D,IER_ICU_GROUPBL2=0x0D,
  1254. IER_RSPI2_SPRI2=0x0D,IER_RSPI2_SPTI2=0x0D,
  1255. IER_ICU_GROUPBL0=0x0D,IER_ICU_GROUPBL1=0x0D,IER_ICU_GROUPAL0=0x0E,IER_ICU_GROUPAL1=0x0E,
  1256. IER_SCI11_RXI11=0x0E,IER_SCI11_TXI11=0x0E,
  1257. IER_SCI12_RXI12=0x0E,IER_SCI12_TXI12=0x0E,
  1258. IER_DMAC_DMAC0I=0x0F,IER_DMAC_DMAC1I=0x0F,IER_DMAC_DMAC2I=0x0F,IER_DMAC_DMAC3I=0x0F,IER_DMAC_DMAC74I=0x0F,
  1259. IER_OST_OSTDI=0x0F,
  1260. IER_EXDMAC_EXDMAC0I=0x0F,IER_EXDMAC_EXDMAC1I=0x0F,
  1261. IER_PERIB_INTB128=0x10,IER_PERIB_INTB129=0x10,IER_PERIB_INTB130=0x10,IER_PERIB_INTB131=0x10,IER_PERIB_INTB132=0x10,
  1262. IER_PERIB_INTB133=0x10,IER_PERIB_INTB134=0x10,IER_PERIB_INTB135=0x10,IER_PERIB_INTB136=0x11,IER_PERIB_INTB137=0x11,
  1263. IER_PERIB_INTB138=0x11,IER_PERIB_INTB139=0x11,IER_PERIB_INTB140=0x11,IER_PERIB_INTB141=0x11,IER_PERIB_INTB142=0x11,
  1264. IER_PERIB_INTB143=0x11,IER_PERIB_INTB144=0x12,IER_PERIB_INTB145=0x12,IER_PERIB_INTB146=0x12,IER_PERIB_INTB147=0x12,
  1265. IER_PERIB_INTB148=0x12,IER_PERIB_INTB149=0x12,IER_PERIB_INTB150=0x12,IER_PERIB_INTB151=0x12,IER_PERIB_INTB152=0x13,
  1266. IER_PERIB_INTB153=0x13,IER_PERIB_INTB154=0x13,IER_PERIB_INTB155=0x13,IER_PERIB_INTB156=0x13,IER_PERIB_INTB157=0x13,
  1267. IER_PERIB_INTB158=0x13,IER_PERIB_INTB159=0x13,IER_PERIB_INTB160=0x14,IER_PERIB_INTB161=0x14,IER_PERIB_INTB162=0x14,
  1268. IER_PERIB_INTB163=0x14,IER_PERIB_INTB164=0x14,IER_PERIB_INTB165=0x14,IER_PERIB_INTB166=0x14,IER_PERIB_INTB167=0x14,
  1269. IER_PERIB_INTB168=0x15,IER_PERIB_INTB169=0x15,IER_PERIB_INTB170=0x15,IER_PERIB_INTB171=0x15,IER_PERIB_INTB172=0x15,
  1270. IER_PERIB_INTB173=0x15,IER_PERIB_INTB174=0x15,IER_PERIB_INTB175=0x15,IER_PERIB_INTB176=0x16,IER_PERIB_INTB177=0x16,
  1271. IER_PERIB_INTB178=0x16,IER_PERIB_INTB179=0x16,IER_PERIB_INTB180=0x16,IER_PERIB_INTB181=0x16,IER_PERIB_INTB182=0x16,
  1272. IER_PERIB_INTB183=0x16,IER_PERIB_INTB184=0x17,IER_PERIB_INTB185=0x17,IER_PERIB_INTB186=0x17,IER_PERIB_INTB187=0x17,
  1273. IER_PERIB_INTB188=0x17,IER_PERIB_INTB189=0x17,IER_PERIB_INTB190=0x17,IER_PERIB_INTB191=0x17,IER_PERIB_INTB192=0x18,
  1274. IER_PERIB_INTB193=0x18,IER_PERIB_INTB194=0x18,IER_PERIB_INTB195=0x18,IER_PERIB_INTB196=0x18,IER_PERIB_INTB197=0x18,
  1275. IER_PERIB_INTB198=0x18,IER_PERIB_INTB199=0x18,IER_PERIB_INTB200=0x19,IER_PERIB_INTB201=0x19,IER_PERIB_INTB202=0x19,
  1276. IER_PERIB_INTB203=0x19,IER_PERIB_INTB204=0x19,IER_PERIB_INTB205=0x19,IER_PERIB_INTB206=0x19,IER_PERIB_INTB207=0x19,
  1277. IER_PERIA_INTA208=0x1A,IER_PERIA_INTA209=0x1A,IER_PERIA_INTA210=0x1A,IER_PERIA_INTA211=0x1A,IER_PERIA_INTA212=0x1A,
  1278. IER_PERIA_INTA213=0x1A,IER_PERIA_INTA214=0x1A,IER_PERIA_INTA215=0x1A,IER_PERIA_INTA216=0x1B,IER_PERIA_INTA217=0x1B,
  1279. IER_PERIA_INTA218=0x1B,IER_PERIA_INTA219=0x1B,IER_PERIA_INTA220=0x1B,IER_PERIA_INTA221=0x1B,IER_PERIA_INTA222=0x1B,
  1280. IER_PERIA_INTA223=0x1B,IER_PERIA_INTA224=0x1C,IER_PERIA_INTA225=0x1C,IER_PERIA_INTA226=0x1C,IER_PERIA_INTA227=0x1C,
  1281. IER_PERIA_INTA228=0x1C,IER_PERIA_INTA229=0x1C,IER_PERIA_INTA230=0x1C,IER_PERIA_INTA231=0x1C,IER_PERIA_INTA232=0x1D,
  1282. IER_PERIA_INTA233=0x1D,IER_PERIA_INTA234=0x1D,IER_PERIA_INTA235=0x1D,IER_PERIA_INTA236=0x1D,IER_PERIA_INTA237=0x1D,
  1283. IER_PERIA_INTA238=0x1D,IER_PERIA_INTA239=0x1D,IER_PERIA_INTA240=0x1E,IER_PERIA_INTA241=0x1E,IER_PERIA_INTA242=0x1E,
  1284. IER_PERIA_INTA243=0x1E,IER_PERIA_INTA244=0x1E,IER_PERIA_INTA245=0x1E,IER_PERIA_INTA246=0x1E,IER_PERIA_INTA247=0x1E,
  1285. IER_PERIA_INTA248=0x1F,IER_PERIA_INTA249=0x1F,IER_PERIA_INTA250=0x1F,IER_PERIA_INTA251=0x1F,IER_PERIA_INTA252=0x1F,
  1286. IER_PERIA_INTA253=0x1F,IER_PERIA_INTA254=0x1F,IER_PERIA_INTA255=0x1F
  1287. } enum_ier_t;
  1288. typedef enum enum_ipr {
  1289. IPR_BSC_BUSERR=0,
  1290. IPR_RAM_RAMERR=0,
  1291. IPR_FCU_FIFERR=1,IPR_FCU_FRDYI=2,
  1292. IPR_ICU_SWINT2=3,IPR_ICU_SWINT=3,
  1293. IPR_CMT0_CMI0=4,
  1294. IPR_CMT1_CMI1=5,
  1295. IPR_CMTW0_CMWI0=6,
  1296. IPR_CMTW1_CMWI1=7,
  1297. IPR_USB0_D0FIFO0=34,IPR_USB0_D1FIFO0=35,
  1298. IPR_RSPI0_SPRI0=38,IPR_RSPI0_SPTI0=39,
  1299. IPR_RSPI1_SPRI1=40,IPR_RSPI1_SPTI1=41,
  1300. IPR_QSPI_SPRI=42,IPR_QSPI_SPTI=43,
  1301. IPR_SDHI_SBFAI=44,
  1302. IPR_MMCIF_MBFAI=45,
  1303. IPR_RIIC1_RXI1=50,IPR_RIIC1_TXI1=51,
  1304. IPR_RIIC0_RXI0=52,IPR_RIIC0_TXI0=53,
  1305. IPR_RIIC2_RXI2=54,IPR_RIIC2_TXI2=55,
  1306. IPR_SCI0_RXI0=58,IPR_SCI0_TXI0=59,
  1307. IPR_SCI1_RXI1=60,IPR_SCI1_TXI1=61,
  1308. IPR_SCI2_RXI2=62,IPR_SCI2_TXI2=63,
  1309. IPR_ICU_IRQ0=64,IPR_ICU_IRQ1=65,IPR_ICU_IRQ2=66,IPR_ICU_IRQ3=67,IPR_ICU_IRQ4=68,IPR_ICU_IRQ5=69,IPR_ICU_IRQ6=70,IPR_ICU_IRQ7=71,
  1310. IPR_ICU_IRQ8=72,IPR_ICU_IRQ9=73,IPR_ICU_IRQ10=74,IPR_ICU_IRQ11=75,IPR_ICU_IRQ12=76,IPR_ICU_IRQ13=77,IPR_ICU_IRQ14=78,IPR_ICU_IRQ15=79,
  1311. IPR_SCI3_RXI3=80,IPR_SCI3_TXI3=81,
  1312. IPR_SCI4_RXI4=82,IPR_SCI4_TXI4=83,
  1313. IPR_SCI5_RXI5=84,IPR_SCI5_TXI5=85,
  1314. IPR_SCI6_RXI6=86,IPR_SCI6_TXI6=87,
  1315. IPR_LVD1_LVD1=88,
  1316. IPR_LVD2_LVD2=89,
  1317. IPR_USB0_USBR0=90,
  1318. IPR_RTC_ALM=92,IPR_RTC_PRD=93,
  1319. IPR_IWDT_IWUNI=95,
  1320. IPR_WDT_WUNI=96,
  1321. IPR_PDC_PCDFI=97,
  1322. IPR_SCI7_RXI7=98,IPR_SCI7_TXI7=99,
  1323. IPR_SCI8_RXI8=100,IPR_SCI8_TXI8=101,
  1324. IPR_SCI9_RXI9=102,IPR_SCI9_TXI9=103,
  1325. IPR_SCI10_RXI10=104,IPR_SCI10_TXI10=105,
  1326. IPR_ICU_GROUPBE0=106,IPR_ICU_GROUPBL2=107,
  1327. IPR_RSPI2_SPRI2=108,IPR_RSPI2_SPTI2=109,
  1328. IPR_ICU_GROUPBL0=110,IPR_ICU_GROUPBL1=111,IPR_ICU_GROUPAL0=112,IPR_ICU_GROUPAL1=113,
  1329. IPR_SCI11_RXI11=114,IPR_SCI11_TXI11=115,
  1330. IPR_SCI12_RXI12=116,IPR_SCI12_TXI12=117,
  1331. IPR_DMAC_DMAC0I=120,IPR_DMAC_DMAC1I=121,IPR_DMAC_DMAC2I=122,IPR_DMAC_DMAC3I=123,IPR_DMAC_DMAC74I=124,
  1332. IPR_OST_OSTDI=125,
  1333. IPR_EXDMAC_EXDMAC0I=126,IPR_EXDMAC_EXDMAC1I=127,
  1334. IPR_PERIB_INTB128=128,IPR_PERIB_INTB129=129,IPR_PERIB_INTB130=130,IPR_PERIB_INTB131=131,IPR_PERIB_INTB132=132,
  1335. IPR_PERIB_INTB133=133,IPR_PERIB_INTB134=134,IPR_PERIB_INTB135=135,IPR_PERIB_INTB136=136,IPR_PERIB_INTB137=137,
  1336. IPR_PERIB_INTB138=138,IPR_PERIB_INTB139=139,IPR_PERIB_INTB140=140,IPR_PERIB_INTB141=141,IPR_PERIB_INTB142=142,
  1337. IPR_PERIB_INTB143=143,IPR_PERIB_INTB144=144,IPR_PERIB_INTB145=145,IPR_PERIB_INTB146=146,IPR_PERIB_INTB147=147,
  1338. IPR_PERIB_INTB148=148,IPR_PERIB_INTB149=149,IPR_PERIB_INTB150=150,IPR_PERIB_INTB151=151,IPR_PERIB_INTB152=152,
  1339. IPR_PERIB_INTB153=153,IPR_PERIB_INTB154=154,IPR_PERIB_INTB155=155,IPR_PERIB_INTB156=156,IPR_PERIB_INTB157=157,
  1340. IPR_PERIB_INTB158=158,IPR_PERIB_INTB159=159,IPR_PERIB_INTB160=160,IPR_PERIB_INTB161=161,IPR_PERIB_INTB162=162,
  1341. IPR_PERIB_INTB163=163,IPR_PERIB_INTB164=164,IPR_PERIB_INTB165=165,IPR_PERIB_INTB166=166,IPR_PERIB_INTB167=167,
  1342. IPR_PERIB_INTB168=168,IPR_PERIB_INTB169=169,IPR_PERIB_INTB170=170,IPR_PERIB_INTB171=171,IPR_PERIB_INTB172=172,
  1343. IPR_PERIB_INTB173=173,IPR_PERIB_INTB174=174,IPR_PERIB_INTB175=175,IPR_PERIB_INTB176=176,IPR_PERIB_INTB177=177,
  1344. IPR_PERIB_INTB178=178,IPR_PERIB_INTB179=179,IPR_PERIB_INTB180=180,IPR_PERIB_INTB181=181,IPR_PERIB_INTB182=182,
  1345. IPR_PERIB_INTB183=183,IPR_PERIB_INTB184=184,IPR_PERIB_INTB185=185,IPR_PERIB_INTB186=186,IPR_PERIB_INTB187=187,
  1346. IPR_PERIB_INTB188=188,IPR_PERIB_INTB189=189,IPR_PERIB_INTB190=190,IPR_PERIB_INTB191=191,IPR_PERIB_INTB192=192,
  1347. IPR_PERIB_INTB193=193,IPR_PERIB_INTB194=194,IPR_PERIB_INTB195=195,IPR_PERIB_INTB196=196,IPR_PERIB_INTB197=197,
  1348. IPR_PERIB_INTB198=198,IPR_PERIB_INTB199=199,IPR_PERIB_INTB200=200,IPR_PERIB_INTB201=201,IPR_PERIB_INTB202=202,
  1349. IPR_PERIB_INTB203=203,IPR_PERIB_INTB204=204,IPR_PERIB_INTB205=205,IPR_PERIB_INTB206=206,IPR_PERIB_INTB207=207,
  1350. IPR_PERIA_INTA208=208,IPR_PERIA_INTA209=209,IPR_PERIA_INTA210=210,IPR_PERIA_INTA211=211,IPR_PERIA_INTA212=212,
  1351. IPR_PERIA_INTA213=213,IPR_PERIA_INTA214=214,IPR_PERIA_INTA215=215,IPR_PERIA_INTA216=216,IPR_PERIA_INTA217=217,
  1352. IPR_PERIA_INTA218=218,IPR_PERIA_INTA219=219,IPR_PERIA_INTA220=220,IPR_PERIA_INTA221=221,IPR_PERIA_INTA222=222,
  1353. IPR_PERIA_INTA223=223,IPR_PERIA_INTA224=224,IPR_PERIA_INTA225=225,IPR_PERIA_INTA226=226,IPR_PERIA_INTA227=227,
  1354. IPR_PERIA_INTA228=228,IPR_PERIA_INTA229=229,IPR_PERIA_INTA230=230,IPR_PERIA_INTA231=231,IPR_PERIA_INTA232=232,
  1355. IPR_PERIA_INTA233=233,IPR_PERIA_INTA234=234,IPR_PERIA_INTA235=235,IPR_PERIA_INTA236=236,IPR_PERIA_INTA237=237,
  1356. IPR_PERIA_INTA238=238,IPR_PERIA_INTA239=239,IPR_PERIA_INTA240=240,IPR_PERIA_INTA241=241,IPR_PERIA_INTA242=242,
  1357. IPR_PERIA_INTA243=243,IPR_PERIA_INTA244=244,IPR_PERIA_INTA245=245,IPR_PERIA_INTA246=246,IPR_PERIA_INTA247=247,
  1358. IPR_PERIA_INTA248=248,IPR_PERIA_INTA249=249,IPR_PERIA_INTA250=250,IPR_PERIA_INTA251=251,IPR_PERIA_INTA252=252,
  1359. IPR_PERIA_INTA253=253,IPR_PERIA_INTA254=254,IPR_PERIA_INTA255=255,
  1360. IPR_ICU_SWI=3,
  1361. IPR_CMT0_=4,
  1362. IPR_CMT1_=5,
  1363. IPR_CMTW0_=6,
  1364. IPR_CMTW1_=7,
  1365. IPR_SDHI_=44,
  1366. IPR_MMCIF_=45,
  1367. IPR_LVD1_=88,
  1368. IPR_LVD2_=89,
  1369. IPR_IWDT_=95,
  1370. IPR_WDT_=96,
  1371. IPR_PDC_=97,
  1372. IPR_OST_=125
  1373. } enum_ipr_t;
  1374. #pragma pack(4)
  1375. typedef struct st_bsc {
  1376. union {
  1377. unsigned char BYTE;
  1378. struct {
  1379. #ifdef __RX_LITTLE_ENDIAN__
  1380. unsigned char STSCLR : 1;
  1381. unsigned char : 7;
  1382. #else
  1383. unsigned char : 7;
  1384. unsigned char STSCLR : 1;
  1385. #endif
  1386. } BIT;
  1387. } BERCLR;
  1388. char wk0[3];
  1389. union {
  1390. unsigned char BYTE;
  1391. struct {
  1392. #ifdef __RX_LITTLE_ENDIAN__
  1393. unsigned char IGAEN : 1;
  1394. unsigned char TOEN : 1;
  1395. unsigned char : 6;
  1396. #else
  1397. unsigned char : 6;
  1398. unsigned char TOEN : 1;
  1399. unsigned char IGAEN : 1;
  1400. #endif
  1401. } BIT;
  1402. } BEREN;
  1403. char wk1[3];
  1404. union {
  1405. unsigned char BYTE;
  1406. struct {
  1407. #ifdef __RX_LITTLE_ENDIAN__
  1408. unsigned char IA : 1;
  1409. unsigned char TO : 1;
  1410. unsigned char : 2;
  1411. unsigned char MST : 3;
  1412. unsigned char : 1;
  1413. #else
  1414. unsigned char : 1;
  1415. unsigned char MST : 3;
  1416. unsigned char : 2;
  1417. unsigned char TO : 1;
  1418. unsigned char IA : 1;
  1419. #endif
  1420. } BIT;
  1421. } BERSR1;
  1422. char wk2[1];
  1423. union {
  1424. unsigned short WORD;
  1425. struct {
  1426. #ifdef __RX_LITTLE_ENDIAN__
  1427. unsigned short : 3;
  1428. unsigned short ADDR : 13;
  1429. #else
  1430. unsigned short ADDR : 13;
  1431. unsigned short : 3;
  1432. #endif
  1433. } BIT;
  1434. } BERSR2;
  1435. char wk3[4];
  1436. union {
  1437. unsigned short WORD;
  1438. struct {
  1439. #ifdef __RX_LITTLE_ENDIAN__
  1440. unsigned short BPRA : 2;
  1441. unsigned short BPRO : 2;
  1442. unsigned short BPIB : 2;
  1443. unsigned short BPGB : 2;
  1444. unsigned short BPHB : 2;
  1445. unsigned short BPFB : 2;
  1446. unsigned short BPEB : 2;
  1447. unsigned short : 2;
  1448. #else
  1449. unsigned short : 2;
  1450. unsigned short BPEB : 2;
  1451. unsigned short BPFB : 2;
  1452. unsigned short BPHB : 2;
  1453. unsigned short BPGB : 2;
  1454. unsigned short BPIB : 2;
  1455. unsigned short BPRO : 2;
  1456. unsigned short BPRA : 2;
  1457. #endif
  1458. } BIT;
  1459. } BUSPRI;
  1460. char wk4[7408];
  1461. union {
  1462. unsigned short WORD;
  1463. struct {
  1464. #ifdef __RX_LITTLE_ENDIAN__
  1465. unsigned short WRMOD : 1;
  1466. unsigned short : 2;
  1467. unsigned short EWENB : 1;
  1468. unsigned short : 4;
  1469. unsigned short PRENB : 1;
  1470. unsigned short PWENB : 1;
  1471. unsigned short : 5;
  1472. unsigned short PRMOD : 1;
  1473. #else
  1474. unsigned short PRMOD : 1;
  1475. unsigned short : 5;
  1476. unsigned short PWENB : 1;
  1477. unsigned short PRENB : 1;
  1478. unsigned short : 4;
  1479. unsigned short EWENB : 1;
  1480. unsigned short : 2;
  1481. unsigned short WRMOD : 1;
  1482. #endif
  1483. } BIT;
  1484. } CS0MOD;
  1485. union {
  1486. unsigned long LONG;
  1487. struct {
  1488. #ifdef __RX_LITTLE_ENDIAN__
  1489. unsigned long CSPWWAIT : 3;
  1490. unsigned long : 5;
  1491. unsigned long CSPRWAIT : 3;
  1492. unsigned long : 5;
  1493. unsigned long CSWWAIT : 5;
  1494. unsigned long : 3;
  1495. unsigned long CSRWAIT : 5;
  1496. unsigned long : 3;
  1497. #else
  1498. unsigned long : 3;
  1499. unsigned long CSRWAIT : 5;
  1500. unsigned long : 3;
  1501. unsigned long CSWWAIT : 5;
  1502. unsigned long : 5;
  1503. unsigned long CSPRWAIT : 3;
  1504. unsigned long : 5;
  1505. unsigned long CSPWWAIT : 3;
  1506. #endif
  1507. } BIT;
  1508. } CS0WCR1;
  1509. union {
  1510. unsigned long LONG;
  1511. struct {
  1512. #ifdef __RX_LITTLE_ENDIAN__
  1513. unsigned long CSROFF : 3;
  1514. unsigned long : 1;
  1515. unsigned long CSWOFF : 3;
  1516. unsigned long : 1;
  1517. unsigned long WDOFF : 3;
  1518. unsigned long : 1;
  1519. unsigned long AWAIT : 2;
  1520. unsigned long : 2;
  1521. unsigned long RDON : 3;
  1522. unsigned long : 1;
  1523. unsigned long WRON : 3;
  1524. unsigned long : 1;
  1525. unsigned long WDON : 3;
  1526. unsigned long : 1;
  1527. unsigned long CSON : 3;
  1528. unsigned long : 1;
  1529. #else
  1530. unsigned long : 1;
  1531. unsigned long CSON : 3;
  1532. unsigned long : 1;
  1533. unsigned long WDON : 3;
  1534. unsigned long : 1;
  1535. unsigned long WRON : 3;
  1536. unsigned long : 1;
  1537. unsigned long RDON : 3;
  1538. unsigned long : 2;
  1539. unsigned long AWAIT : 2;
  1540. unsigned long : 1;
  1541. unsigned long WDOFF : 3;
  1542. unsigned long : 1;
  1543. unsigned long CSWOFF : 3;
  1544. unsigned long : 1;
  1545. unsigned long CSROFF : 3;
  1546. #endif
  1547. } BIT;
  1548. } CS0WCR2;
  1549. char wk5[6];
  1550. union {
  1551. unsigned short WORD;
  1552. struct {
  1553. #ifdef __RX_LITTLE_ENDIAN__
  1554. unsigned short WRMOD : 1;
  1555. unsigned short : 2;
  1556. unsigned short EWENB : 1;
  1557. unsigned short : 4;
  1558. unsigned short PRENB : 1;
  1559. unsigned short PWENB : 1;
  1560. unsigned short : 5;
  1561. unsigned short PRMOD : 1;
  1562. #else
  1563. unsigned short PRMOD : 1;
  1564. unsigned short : 5;
  1565. unsigned short PWENB : 1;
  1566. unsigned short PRENB : 1;
  1567. unsigned short : 4;
  1568. unsigned short EWENB : 1;
  1569. unsigned short : 2;
  1570. unsigned short WRMOD : 1;
  1571. #endif
  1572. } BIT;
  1573. } CS1MOD;
  1574. union {
  1575. unsigned long LONG;
  1576. struct {
  1577. #ifdef __RX_LITTLE_ENDIAN__
  1578. unsigned long CSPWWAIT : 3;
  1579. unsigned long : 5;
  1580. unsigned long CSPRWAIT : 3;
  1581. unsigned long : 5;
  1582. unsigned long CSWWAIT : 5;
  1583. unsigned long : 3;
  1584. unsigned long CSRWAIT : 5;
  1585. unsigned long : 3;
  1586. #else
  1587. unsigned long : 3;
  1588. unsigned long CSRWAIT : 5;
  1589. unsigned long : 3;
  1590. unsigned long CSWWAIT : 5;
  1591. unsigned long : 5;
  1592. unsigned long CSPRWAIT : 3;
  1593. unsigned long : 5;
  1594. unsigned long CSPWWAIT : 3;
  1595. #endif
  1596. } BIT;
  1597. } CS1WCR1;
  1598. union {
  1599. unsigned long LONG;
  1600. struct {
  1601. #ifdef __RX_LITTLE_ENDIAN__
  1602. unsigned long CSROFF : 3;
  1603. unsigned long : 1;
  1604. unsigned long CSWOFF : 3;
  1605. unsigned long : 1;
  1606. unsigned long WDOFF : 3;
  1607. unsigned long : 1;
  1608. unsigned long AWAIT : 2;
  1609. unsigned long : 2;
  1610. unsigned long RDON : 3;
  1611. unsigned long : 1;
  1612. unsigned long WRON : 3;
  1613. unsigned long : 1;
  1614. unsigned long WDON : 3;
  1615. unsigned long : 1;
  1616. unsigned long CSON : 3;
  1617. unsigned long : 1;
  1618. #else
  1619. unsigned long : 1;
  1620. unsigned long CSON : 3;
  1621. unsigned long : 1;
  1622. unsigned long WDON : 3;
  1623. unsigned long : 1;
  1624. unsigned long WRON : 3;
  1625. unsigned long : 1;
  1626. unsigned long RDON : 3;
  1627. unsigned long : 2;
  1628. unsigned long AWAIT : 2;
  1629. unsigned long : 1;
  1630. unsigned long WDOFF : 3;
  1631. unsigned long : 1;
  1632. unsigned long CSWOFF : 3;
  1633. unsigned long : 1;
  1634. unsigned long CSROFF : 3;
  1635. #endif
  1636. } BIT;
  1637. } CS1WCR2;
  1638. char wk6[6];
  1639. union {
  1640. unsigned short WORD;
  1641. struct {
  1642. #ifdef __RX_LITTLE_ENDIAN__
  1643. unsigned short WRMOD : 1;
  1644. unsigned short : 2;
  1645. unsigned short EWENB : 1;
  1646. unsigned short : 4;
  1647. unsigned short PRENB : 1;
  1648. unsigned short PWENB : 1;
  1649. unsigned short : 5;
  1650. unsigned short PRMOD : 1;
  1651. #else
  1652. unsigned short PRMOD : 1;
  1653. unsigned short : 5;
  1654. unsigned short PWENB : 1;
  1655. unsigned short PRENB : 1;
  1656. unsigned short : 4;
  1657. unsigned short EWENB : 1;
  1658. unsigned short : 2;
  1659. unsigned short WRMOD : 1;
  1660. #endif
  1661. } BIT;
  1662. } CS2MOD;
  1663. union {
  1664. unsigned long LONG;
  1665. struct {
  1666. #ifdef __RX_LITTLE_ENDIAN__
  1667. unsigned long CSPWWAIT : 3;
  1668. unsigned long : 5;
  1669. unsigned long CSPRWAIT : 3;
  1670. unsigned long : 5;
  1671. unsigned long CSWWAIT : 5;
  1672. unsigned long : 3;
  1673. unsigned long CSRWAIT : 5;
  1674. unsigned long : 3;
  1675. #else
  1676. unsigned long : 3;
  1677. unsigned long CSRWAIT : 5;
  1678. unsigned long : 3;
  1679. unsigned long CSWWAIT : 5;
  1680. unsigned long : 5;
  1681. unsigned long CSPRWAIT : 3;
  1682. unsigned long : 5;
  1683. unsigned long CSPWWAIT : 3;
  1684. #endif
  1685. } BIT;
  1686. } CS2WCR1;
  1687. union {
  1688. unsigned long LONG;
  1689. struct {
  1690. #ifdef __RX_LITTLE_ENDIAN__
  1691. unsigned long CSROFF : 3;
  1692. unsigned long : 1;
  1693. unsigned long CSWOFF : 3;
  1694. unsigned long : 1;
  1695. unsigned long WDOFF : 3;
  1696. unsigned long : 1;
  1697. unsigned long AWAIT : 2;
  1698. unsigned long : 2;
  1699. unsigned long RDON : 3;
  1700. unsigned long : 1;
  1701. unsigned long WRON : 3;
  1702. unsigned long : 1;
  1703. unsigned long WDON : 3;
  1704. unsigned long : 1;
  1705. unsigned long CSON : 3;
  1706. unsigned long : 1;
  1707. #else
  1708. unsigned long : 1;
  1709. unsigned long CSON : 3;
  1710. unsigned long : 1;
  1711. unsigned long WDON : 3;
  1712. unsigned long : 1;
  1713. unsigned long WRON : 3;
  1714. unsigned long : 1;
  1715. unsigned long RDON : 3;
  1716. unsigned long : 2;
  1717. unsigned long AWAIT : 2;
  1718. unsigned long : 1;
  1719. unsigned long WDOFF : 3;
  1720. unsigned long : 1;
  1721. unsigned long CSWOFF : 3;
  1722. unsigned long : 1;
  1723. unsigned long CSROFF : 3;
  1724. #endif
  1725. } BIT;
  1726. } CS2WCR2;
  1727. char wk7[6];
  1728. union {
  1729. unsigned short WORD;
  1730. struct {
  1731. #ifdef __RX_LITTLE_ENDIAN__
  1732. unsigned short WRMOD : 1;
  1733. unsigned short : 2;
  1734. unsigned short EWENB : 1;
  1735. unsigned short : 4;
  1736. unsigned short PRENB : 1;
  1737. unsigned short PWENB : 1;
  1738. unsigned short : 5;
  1739. unsigned short PRMOD : 1;
  1740. #else
  1741. unsigned short PRMOD : 1;
  1742. unsigned short : 5;
  1743. unsigned short PWENB : 1;
  1744. unsigned short PRENB : 1;
  1745. unsigned short : 4;
  1746. unsigned short EWENB : 1;
  1747. unsigned short : 2;
  1748. unsigned short WRMOD : 1;
  1749. #endif
  1750. } BIT;
  1751. } CS3MOD;
  1752. union {
  1753. unsigned long LONG;
  1754. struct {
  1755. #ifdef __RX_LITTLE_ENDIAN__
  1756. unsigned long CSPWWAIT : 3;
  1757. unsigned long : 5;
  1758. unsigned long CSPRWAIT : 3;
  1759. unsigned long : 5;
  1760. unsigned long CSWWAIT : 5;
  1761. unsigned long : 3;
  1762. unsigned long CSRWAIT : 5;
  1763. unsigned long : 3;
  1764. #else
  1765. unsigned long : 3;
  1766. unsigned long CSRWAIT : 5;
  1767. unsigned long : 3;
  1768. unsigned long CSWWAIT : 5;
  1769. unsigned long : 5;
  1770. unsigned long CSPRWAIT : 3;
  1771. unsigned long : 5;
  1772. unsigned long CSPWWAIT : 3;
  1773. #endif
  1774. } BIT;
  1775. } CS3WCR1;
  1776. union {
  1777. unsigned long LONG;
  1778. struct {
  1779. #ifdef __RX_LITTLE_ENDIAN__
  1780. unsigned long CSROFF : 3;
  1781. unsigned long : 1;
  1782. unsigned long CSWOFF : 3;
  1783. unsigned long : 1;
  1784. unsigned long WDOFF : 3;
  1785. unsigned long : 1;
  1786. unsigned long AWAIT : 2;
  1787. unsigned long : 2;
  1788. unsigned long RDON : 3;
  1789. unsigned long : 1;
  1790. unsigned long WRON : 3;
  1791. unsigned long : 1;
  1792. unsigned long WDON : 3;
  1793. unsigned long : 1;
  1794. unsigned long CSON : 3;
  1795. unsigned long : 1;
  1796. #else
  1797. unsigned long : 1;
  1798. unsigned long CSON : 3;
  1799. unsigned long : 1;
  1800. unsigned long WDON : 3;
  1801. unsigned long : 1;
  1802. unsigned long WRON : 3;
  1803. unsigned long : 1;
  1804. unsigned long RDON : 3;
  1805. unsigned long : 2;
  1806. unsigned long AWAIT : 2;
  1807. unsigned long : 1;
  1808. unsigned long WDOFF : 3;
  1809. unsigned long : 1;
  1810. unsigned long CSWOFF : 3;
  1811. unsigned long : 1;
  1812. unsigned long CSROFF : 3;
  1813. #endif
  1814. } BIT;
  1815. } CS3WCR2;
  1816. char wk8[6];
  1817. union {
  1818. unsigned short WORD;
  1819. struct {
  1820. #ifdef __RX_LITTLE_ENDIAN__
  1821. unsigned short WRMOD : 1;
  1822. unsigned short : 2;
  1823. unsigned short EWENB : 1;
  1824. unsigned short : 4;
  1825. unsigned short PRENB : 1;
  1826. unsigned short PWENB : 1;
  1827. unsigned short : 5;
  1828. unsigned short PRMOD : 1;
  1829. #else
  1830. unsigned short PRMOD : 1;
  1831. unsigned short : 5;
  1832. unsigned short PWENB : 1;
  1833. unsigned short PRENB : 1;
  1834. unsigned short : 4;
  1835. unsigned short EWENB : 1;
  1836. unsigned short : 2;
  1837. unsigned short WRMOD : 1;
  1838. #endif
  1839. } BIT;
  1840. } CS4MOD;
  1841. union {
  1842. unsigned long LONG;
  1843. struct {
  1844. #ifdef __RX_LITTLE_ENDIAN__
  1845. unsigned long CSPWWAIT : 3;
  1846. unsigned long : 5;
  1847. unsigned long CSPRWAIT : 3;
  1848. unsigned long : 5;
  1849. unsigned long CSWWAIT : 5;
  1850. unsigned long : 3;
  1851. unsigned long CSRWAIT : 5;
  1852. unsigned long : 3;
  1853. #else
  1854. unsigned long : 3;
  1855. unsigned long CSRWAIT : 5;
  1856. unsigned long : 3;
  1857. unsigned long CSWWAIT : 5;
  1858. unsigned long : 5;
  1859. unsigned long CSPRWAIT : 3;
  1860. unsigned long : 5;
  1861. unsigned long CSPWWAIT : 3;
  1862. #endif
  1863. } BIT;
  1864. } CS4WCR1;
  1865. union {
  1866. unsigned long LONG;
  1867. struct {
  1868. #ifdef __RX_LITTLE_ENDIAN__
  1869. unsigned long CSROFF : 3;
  1870. unsigned long : 1;
  1871. unsigned long CSWOFF : 3;
  1872. unsigned long : 1;
  1873. unsigned long WDOFF : 3;
  1874. unsigned long : 1;
  1875. unsigned long AWAIT : 2;
  1876. unsigned long : 2;
  1877. unsigned long RDON : 3;
  1878. unsigned long : 1;
  1879. unsigned long WRON : 3;
  1880. unsigned long : 1;
  1881. unsigned long WDON : 3;
  1882. unsigned long : 1;
  1883. unsigned long CSON : 3;
  1884. unsigned long : 1;
  1885. #else
  1886. unsigned long : 1;
  1887. unsigned long CSON : 3;
  1888. unsigned long : 1;
  1889. unsigned long WDON : 3;
  1890. unsigned long : 1;
  1891. unsigned long WRON : 3;
  1892. unsigned long : 1;
  1893. unsigned long RDON : 3;
  1894. unsigned long : 2;
  1895. unsigned long AWAIT : 2;
  1896. unsigned long : 1;
  1897. unsigned long WDOFF : 3;
  1898. unsigned long : 1;
  1899. unsigned long CSWOFF : 3;
  1900. unsigned long : 1;
  1901. unsigned long CSROFF : 3;
  1902. #endif
  1903. } BIT;
  1904. } CS4WCR2;
  1905. char wk9[6];
  1906. union {
  1907. unsigned short WORD;
  1908. struct {
  1909. #ifdef __RX_LITTLE_ENDIAN__
  1910. unsigned short WRMOD : 1;
  1911. unsigned short : 2;
  1912. unsigned short EWENB : 1;
  1913. unsigned short : 4;
  1914. unsigned short PRENB : 1;
  1915. unsigned short PWENB : 1;
  1916. unsigned short : 5;
  1917. unsigned short PRMOD : 1;
  1918. #else
  1919. unsigned short PRMOD : 1;
  1920. unsigned short : 5;
  1921. unsigned short PWENB : 1;
  1922. unsigned short PRENB : 1;
  1923. unsigned short : 4;
  1924. unsigned short EWENB : 1;
  1925. unsigned short : 2;
  1926. unsigned short WRMOD : 1;
  1927. #endif
  1928. } BIT;
  1929. } CS5MOD;
  1930. union {
  1931. unsigned long LONG;
  1932. struct {
  1933. #ifdef __RX_LITTLE_ENDIAN__
  1934. unsigned long CSPWWAIT : 3;
  1935. unsigned long : 5;
  1936. unsigned long CSPRWAIT : 3;
  1937. unsigned long : 5;
  1938. unsigned long CSWWAIT : 5;
  1939. unsigned long : 3;
  1940. unsigned long CSRWAIT : 5;
  1941. unsigned long : 3;
  1942. #else
  1943. unsigned long : 3;
  1944. unsigned long CSRWAIT : 5;
  1945. unsigned long : 3;
  1946. unsigned long CSWWAIT : 5;
  1947. unsigned long : 5;
  1948. unsigned long CSPRWAIT : 3;
  1949. unsigned long : 5;
  1950. unsigned long CSPWWAIT : 3;
  1951. #endif
  1952. } BIT;
  1953. } CS5WCR1;
  1954. union {
  1955. unsigned long LONG;
  1956. struct {
  1957. #ifdef __RX_LITTLE_ENDIAN__
  1958. unsigned long CSROFF : 3;
  1959. unsigned long : 1;
  1960. unsigned long CSWOFF : 3;
  1961. unsigned long : 1;
  1962. unsigned long WDOFF : 3;
  1963. unsigned long : 1;
  1964. unsigned long AWAIT : 2;
  1965. unsigned long : 2;
  1966. unsigned long RDON : 3;
  1967. unsigned long : 1;
  1968. unsigned long WRON : 3;
  1969. unsigned long : 1;
  1970. unsigned long WDON : 3;
  1971. unsigned long : 1;
  1972. unsigned long CSON : 3;
  1973. unsigned long : 1;
  1974. #else
  1975. unsigned long : 1;
  1976. unsigned long CSON : 3;
  1977. unsigned long : 1;
  1978. unsigned long WDON : 3;
  1979. unsigned long : 1;
  1980. unsigned long WRON : 3;
  1981. unsigned long : 1;
  1982. unsigned long RDON : 3;
  1983. unsigned long : 2;
  1984. unsigned long AWAIT : 2;
  1985. unsigned long : 1;
  1986. unsigned long WDOFF : 3;
  1987. unsigned long : 1;
  1988. unsigned long CSWOFF : 3;
  1989. unsigned long : 1;
  1990. unsigned long CSROFF : 3;
  1991. #endif
  1992. } BIT;
  1993. } CS5WCR2;
  1994. char wk10[6];
  1995. union {
  1996. unsigned short WORD;
  1997. struct {
  1998. #ifdef __RX_LITTLE_ENDIAN__
  1999. unsigned short WRMOD : 1;
  2000. unsigned short : 2;
  2001. unsigned short EWENB : 1;
  2002. unsigned short : 4;
  2003. unsigned short PRENB : 1;
  2004. unsigned short PWENB : 1;
  2005. unsigned short : 5;
  2006. unsigned short PRMOD : 1;
  2007. #else
  2008. unsigned short PRMOD : 1;
  2009. unsigned short : 5;
  2010. unsigned short PWENB : 1;
  2011. unsigned short PRENB : 1;
  2012. unsigned short : 4;
  2013. unsigned short EWENB : 1;
  2014. unsigned short : 2;
  2015. unsigned short WRMOD : 1;
  2016. #endif
  2017. } BIT;
  2018. } CS6MOD;
  2019. union {
  2020. unsigned long LONG;
  2021. struct {
  2022. #ifdef __RX_LITTLE_ENDIAN__
  2023. unsigned long CSPWWAIT : 3;
  2024. unsigned long : 5;
  2025. unsigned long CSPRWAIT : 3;
  2026. unsigned long : 5;
  2027. unsigned long CSWWAIT : 5;
  2028. unsigned long : 3;
  2029. unsigned long CSRWAIT : 5;
  2030. unsigned long : 3;
  2031. #else
  2032. unsigned long : 3;
  2033. unsigned long CSRWAIT : 5;
  2034. unsigned long : 3;
  2035. unsigned long CSWWAIT : 5;
  2036. unsigned long : 5;
  2037. unsigned long CSPRWAIT : 3;
  2038. unsigned long : 5;
  2039. unsigned long CSPWWAIT : 3;
  2040. #endif
  2041. } BIT;
  2042. } CS6WCR1;
  2043. union {
  2044. unsigned long LONG;
  2045. struct {
  2046. #ifdef __RX_LITTLE_ENDIAN__
  2047. unsigned long CSROFF : 3;
  2048. unsigned long : 1;
  2049. unsigned long CSWOFF : 3;
  2050. unsigned long : 1;
  2051. unsigned long WDOFF : 3;
  2052. unsigned long : 1;
  2053. unsigned long AWAIT : 2;
  2054. unsigned long : 2;
  2055. unsigned long RDON : 3;
  2056. unsigned long : 1;
  2057. unsigned long WRON : 3;
  2058. unsigned long : 1;
  2059. unsigned long WDON : 3;
  2060. unsigned long : 1;
  2061. unsigned long CSON : 3;
  2062. unsigned long : 1;
  2063. #else
  2064. unsigned long : 1;
  2065. unsigned long CSON : 3;
  2066. unsigned long : 1;
  2067. unsigned long WDON : 3;
  2068. unsigned long : 1;
  2069. unsigned long WRON : 3;
  2070. unsigned long : 1;
  2071. unsigned long RDON : 3;
  2072. unsigned long : 2;
  2073. unsigned long AWAIT : 2;
  2074. unsigned long : 1;
  2075. unsigned long WDOFF : 3;
  2076. unsigned long : 1;
  2077. unsigned long CSWOFF : 3;
  2078. unsigned long : 1;
  2079. unsigned long CSROFF : 3;
  2080. #endif
  2081. } BIT;
  2082. } CS6WCR2;
  2083. char wk11[6];
  2084. union {
  2085. unsigned short WORD;
  2086. struct {
  2087. #ifdef __RX_LITTLE_ENDIAN__
  2088. unsigned short WRMOD : 1;
  2089. unsigned short : 2;
  2090. unsigned short EWENB : 1;
  2091. unsigned short : 4;
  2092. unsigned short PRENB : 1;
  2093. unsigned short PWENB : 1;
  2094. unsigned short : 5;
  2095. unsigned short PRMOD : 1;
  2096. #else
  2097. unsigned short PRMOD : 1;
  2098. unsigned short : 5;
  2099. unsigned short PWENB : 1;
  2100. unsigned short PRENB : 1;
  2101. unsigned short : 4;
  2102. unsigned short EWENB : 1;
  2103. unsigned short : 2;
  2104. unsigned short WRMOD : 1;
  2105. #endif
  2106. } BIT;
  2107. } CS7MOD;
  2108. union {
  2109. unsigned long LONG;
  2110. struct {
  2111. #ifdef __RX_LITTLE_ENDIAN__
  2112. unsigned long CSPWWAIT : 3;
  2113. unsigned long : 5;
  2114. unsigned long CSPRWAIT : 3;
  2115. unsigned long : 5;
  2116. unsigned long CSWWAIT : 5;
  2117. unsigned long : 3;
  2118. unsigned long CSRWAIT : 5;
  2119. unsigned long : 3;
  2120. #else
  2121. unsigned long : 3;
  2122. unsigned long CSRWAIT : 5;
  2123. unsigned long : 3;
  2124. unsigned long CSWWAIT : 5;
  2125. unsigned long : 5;
  2126. unsigned long CSPRWAIT : 3;
  2127. unsigned long : 5;
  2128. unsigned long CSPWWAIT : 3;
  2129. #endif
  2130. } BIT;
  2131. } CS7WCR1;
  2132. union {
  2133. unsigned long LONG;
  2134. struct {
  2135. #ifdef __RX_LITTLE_ENDIAN__
  2136. unsigned long CSROFF : 3;
  2137. unsigned long : 1;
  2138. unsigned long CSWOFF : 3;
  2139. unsigned long : 1;
  2140. unsigned long WDOFF : 3;
  2141. unsigned long : 1;
  2142. unsigned long AWAIT : 2;
  2143. unsigned long : 2;
  2144. unsigned long RDON : 3;
  2145. unsigned long : 1;
  2146. unsigned long WRON : 3;
  2147. unsigned long : 1;
  2148. unsigned long WDON : 3;
  2149. unsigned long : 1;
  2150. unsigned long CSON : 3;
  2151. unsigned long : 1;
  2152. #else
  2153. unsigned long : 1;
  2154. unsigned long CSON : 3;
  2155. unsigned long : 1;
  2156. unsigned long WDON : 3;
  2157. unsigned long : 1;
  2158. unsigned long WRON : 3;
  2159. unsigned long : 1;
  2160. unsigned long RDON : 3;
  2161. unsigned long : 2;
  2162. unsigned long AWAIT : 2;
  2163. unsigned long : 1;
  2164. unsigned long WDOFF : 3;
  2165. unsigned long : 1;
  2166. unsigned long CSWOFF : 3;
  2167. unsigned long : 1;
  2168. unsigned long CSROFF : 3;
  2169. #endif
  2170. } BIT;
  2171. } CS7WCR2;
  2172. char wk12[1926];
  2173. union {
  2174. unsigned short WORD;
  2175. struct {
  2176. #ifdef __RX_LITTLE_ENDIAN__
  2177. unsigned short EXENB : 1;
  2178. unsigned short : 3;
  2179. unsigned short BSIZE : 2;
  2180. unsigned short : 2;
  2181. unsigned short EMODE : 1;
  2182. unsigned short : 3;
  2183. unsigned short MPXEN : 1;
  2184. unsigned short : 3;
  2185. #else
  2186. unsigned short : 3;
  2187. unsigned short MPXEN : 1;
  2188. unsigned short : 3;
  2189. unsigned short EMODE : 1;
  2190. unsigned short : 2;
  2191. unsigned short BSIZE : 2;
  2192. unsigned short : 3;
  2193. unsigned short EXENB : 1;
  2194. #endif
  2195. } BIT;
  2196. } CS0CR;
  2197. char wk13[6];
  2198. union {
  2199. unsigned short WORD;
  2200. struct {
  2201. #ifdef __RX_LITTLE_ENDIAN__
  2202. unsigned short RRCV : 4;
  2203. unsigned short : 4;
  2204. unsigned short WRCV : 4;
  2205. unsigned short : 4;
  2206. #else
  2207. unsigned short : 4;
  2208. unsigned short WRCV : 4;
  2209. unsigned short : 4;
  2210. unsigned short RRCV : 4;
  2211. #endif
  2212. } BIT;
  2213. } CS0REC;
  2214. char wk14[6];
  2215. union {
  2216. unsigned short WORD;
  2217. struct {
  2218. #ifdef __RX_LITTLE_ENDIAN__
  2219. unsigned short EXENB : 1;
  2220. unsigned short : 3;
  2221. unsigned short BSIZE : 2;
  2222. unsigned short : 2;
  2223. unsigned short EMODE : 1;
  2224. unsigned short : 3;
  2225. unsigned short MPXEN : 1;
  2226. unsigned short : 3;
  2227. #else
  2228. unsigned short : 3;
  2229. unsigned short MPXEN : 1;
  2230. unsigned short : 3;
  2231. unsigned short EMODE : 1;
  2232. unsigned short : 2;
  2233. unsigned short BSIZE : 2;
  2234. unsigned short : 3;
  2235. unsigned short EXENB : 1;
  2236. #endif
  2237. } BIT;
  2238. } CS1CR;
  2239. char wk15[6];
  2240. union {
  2241. unsigned short WORD;
  2242. struct {
  2243. #ifdef __RX_LITTLE_ENDIAN__
  2244. unsigned short RRCV : 4;
  2245. unsigned short : 4;
  2246. unsigned short WRCV : 4;
  2247. unsigned short : 4;
  2248. #else
  2249. unsigned short : 4;
  2250. unsigned short WRCV : 4;
  2251. unsigned short : 4;
  2252. unsigned short RRCV : 4;
  2253. #endif
  2254. } BIT;
  2255. } CS1REC;
  2256. char wk16[6];
  2257. union {
  2258. unsigned short WORD;
  2259. struct {
  2260. #ifdef __RX_LITTLE_ENDIAN__
  2261. unsigned short EXENB : 1;
  2262. unsigned short : 3;
  2263. unsigned short BSIZE : 2;
  2264. unsigned short : 2;
  2265. unsigned short EMODE : 1;
  2266. unsigned short : 3;
  2267. unsigned short MPXEN : 1;
  2268. unsigned short : 3;
  2269. #else
  2270. unsigned short : 3;
  2271. unsigned short MPXEN : 1;
  2272. unsigned short : 3;
  2273. unsigned short EMODE : 1;
  2274. unsigned short : 2;
  2275. unsigned short BSIZE : 2;
  2276. unsigned short : 3;
  2277. unsigned short EXENB : 1;
  2278. #endif
  2279. } BIT;
  2280. } CS2CR;
  2281. char wk17[6];
  2282. union {
  2283. unsigned short WORD;
  2284. struct {
  2285. #ifdef __RX_LITTLE_ENDIAN__
  2286. unsigned short RRCV : 4;
  2287. unsigned short : 4;
  2288. unsigned short WRCV : 4;
  2289. unsigned short : 4;
  2290. #else
  2291. unsigned short : 4;
  2292. unsigned short WRCV : 4;
  2293. unsigned short : 4;
  2294. unsigned short RRCV : 4;
  2295. #endif
  2296. } BIT;
  2297. } CS2REC;
  2298. char wk18[6];
  2299. union {
  2300. unsigned short WORD;
  2301. struct {
  2302. #ifdef __RX_LITTLE_ENDIAN__
  2303. unsigned short EXENB : 1;
  2304. unsigned short : 3;
  2305. unsigned short BSIZE : 2;
  2306. unsigned short : 2;
  2307. unsigned short EMODE : 1;
  2308. unsigned short : 3;
  2309. unsigned short MPXEN : 1;
  2310. unsigned short : 3;
  2311. #else
  2312. unsigned short : 3;
  2313. unsigned short MPXEN : 1;
  2314. unsigned short : 3;
  2315. unsigned short EMODE : 1;
  2316. unsigned short : 2;
  2317. unsigned short BSIZE : 2;
  2318. unsigned short : 3;
  2319. unsigned short EXENB : 1;
  2320. #endif
  2321. } BIT;
  2322. } CS3CR;
  2323. char wk19[6];
  2324. union {
  2325. unsigned short WORD;
  2326. struct {
  2327. #ifdef __RX_LITTLE_ENDIAN__
  2328. unsigned short RRCV : 4;
  2329. unsigned short : 4;
  2330. unsigned short WRCV : 4;
  2331. unsigned short : 4;
  2332. #else
  2333. unsigned short : 4;
  2334. unsigned short WRCV : 4;
  2335. unsigned short : 4;
  2336. unsigned short RRCV : 4;
  2337. #endif
  2338. } BIT;
  2339. } CS3REC;
  2340. char wk20[6];
  2341. union {
  2342. unsigned short WORD;
  2343. struct {
  2344. #ifdef __RX_LITTLE_ENDIAN__
  2345. unsigned short EXENB : 1;
  2346. unsigned short : 3;
  2347. unsigned short BSIZE : 2;
  2348. unsigned short : 2;
  2349. unsigned short EMODE : 1;
  2350. unsigned short : 3;
  2351. unsigned short MPXEN : 1;
  2352. unsigned short : 3;
  2353. #else
  2354. unsigned short : 3;
  2355. unsigned short MPXEN : 1;
  2356. unsigned short : 3;
  2357. unsigned short EMODE : 1;
  2358. unsigned short : 2;
  2359. unsigned short BSIZE : 2;
  2360. unsigned short : 3;
  2361. unsigned short EXENB : 1;
  2362. #endif
  2363. } BIT;
  2364. } CS4CR;
  2365. char wk21[6];
  2366. union {
  2367. unsigned short WORD;
  2368. struct {
  2369. #ifdef __RX_LITTLE_ENDIAN__
  2370. unsigned short RRCV : 4;
  2371. unsigned short : 4;
  2372. unsigned short WRCV : 4;
  2373. unsigned short : 4;
  2374. #else
  2375. unsigned short : 4;
  2376. unsigned short WRCV : 4;
  2377. unsigned short : 4;
  2378. unsigned short RRCV : 4;
  2379. #endif
  2380. } BIT;
  2381. } CS4REC;
  2382. char wk22[6];
  2383. union {
  2384. unsigned short WORD;
  2385. struct {
  2386. #ifdef __RX_LITTLE_ENDIAN__
  2387. unsigned short EXENB : 1;
  2388. unsigned short : 3;
  2389. unsigned short BSIZE : 2;
  2390. unsigned short : 2;
  2391. unsigned short EMODE : 1;
  2392. unsigned short : 3;
  2393. unsigned short MPXEN : 1;
  2394. unsigned short : 3;
  2395. #else
  2396. unsigned short : 3;
  2397. unsigned short MPXEN : 1;
  2398. unsigned short : 3;
  2399. unsigned short EMODE : 1;
  2400. unsigned short : 2;
  2401. unsigned short BSIZE : 2;
  2402. unsigned short : 3;
  2403. unsigned short EXENB : 1;
  2404. #endif
  2405. } BIT;
  2406. } CS5CR;
  2407. char wk23[6];
  2408. union {
  2409. unsigned short WORD;
  2410. struct {
  2411. #ifdef __RX_LITTLE_ENDIAN__
  2412. unsigned short RRCV : 4;
  2413. unsigned short : 4;
  2414. unsigned short WRCV : 4;
  2415. unsigned short : 4;
  2416. #else
  2417. unsigned short : 4;
  2418. unsigned short WRCV : 4;
  2419. unsigned short : 4;
  2420. unsigned short RRCV : 4;
  2421. #endif
  2422. } BIT;
  2423. } CS5REC;
  2424. char wk24[6];
  2425. union {
  2426. unsigned short WORD;
  2427. struct {
  2428. #ifdef __RX_LITTLE_ENDIAN__
  2429. unsigned short EXENB : 1;
  2430. unsigned short : 3;
  2431. unsigned short BSIZE : 2;
  2432. unsigned short : 2;
  2433. unsigned short EMODE : 1;
  2434. unsigned short : 3;
  2435. unsigned short MPXEN : 1;
  2436. unsigned short : 3;
  2437. #else
  2438. unsigned short : 3;
  2439. unsigned short MPXEN : 1;
  2440. unsigned short : 3;
  2441. unsigned short EMODE : 1;
  2442. unsigned short : 2;
  2443. unsigned short BSIZE : 2;
  2444. unsigned short : 3;
  2445. unsigned short EXENB : 1;
  2446. #endif
  2447. } BIT;
  2448. } CS6CR;
  2449. char wk25[6];
  2450. union {
  2451. unsigned short WORD;
  2452. struct {
  2453. #ifdef __RX_LITTLE_ENDIAN__
  2454. unsigned short RRCV : 4;
  2455. unsigned short : 4;
  2456. unsigned short WRCV : 4;
  2457. unsigned short : 4;
  2458. #else
  2459. unsigned short : 4;
  2460. unsigned short WRCV : 4;
  2461. unsigned short : 4;
  2462. unsigned short RRCV : 4;
  2463. #endif
  2464. } BIT;
  2465. } CS6REC;
  2466. char wk26[6];
  2467. union {
  2468. unsigned short WORD;
  2469. struct {
  2470. #ifdef __RX_LITTLE_ENDIAN__
  2471. unsigned short EXENB : 1;
  2472. unsigned short : 3;
  2473. unsigned short BSIZE : 2;
  2474. unsigned short : 2;
  2475. unsigned short EMODE : 1;
  2476. unsigned short : 3;
  2477. unsigned short MPXEN : 1;
  2478. unsigned short : 3;
  2479. #else
  2480. unsigned short : 3;
  2481. unsigned short MPXEN : 1;
  2482. unsigned short : 3;
  2483. unsigned short EMODE : 1;
  2484. unsigned short : 2;
  2485. unsigned short BSIZE : 2;
  2486. unsigned short : 3;
  2487. unsigned short EXENB : 1;
  2488. #endif
  2489. } BIT;
  2490. } CS7CR;
  2491. char wk27[6];
  2492. union {
  2493. unsigned short WORD;
  2494. struct {
  2495. #ifdef __RX_LITTLE_ENDIAN__
  2496. unsigned short RRCV : 4;
  2497. unsigned short : 4;
  2498. unsigned short WRCV : 4;
  2499. unsigned short : 4;
  2500. #else
  2501. unsigned short : 4;
  2502. unsigned short WRCV : 4;
  2503. unsigned short : 4;
  2504. unsigned short RRCV : 4;
  2505. #endif
  2506. } BIT;
  2507. } CS7REC;
  2508. char wk28[4];
  2509. union {
  2510. unsigned short WORD;
  2511. struct {
  2512. #ifdef __RX_LITTLE_ENDIAN__
  2513. unsigned short RCVEN0 : 1;
  2514. unsigned short RCVEN1 : 1;
  2515. unsigned short RCVEN2 : 1;
  2516. unsigned short RCVEN3 : 1;
  2517. unsigned short RCVEN4 : 1;
  2518. unsigned short RCVEN5 : 1;
  2519. unsigned short RCVEN6 : 1;
  2520. unsigned short RCVEN7 : 1;
  2521. unsigned short RCVENM0 : 1;
  2522. unsigned short RCVENM1 : 1;
  2523. unsigned short RCVENM2 : 1;
  2524. unsigned short RCVENM3 : 1;
  2525. unsigned short RCVENM4 : 1;
  2526. unsigned short RCVENM5 : 1;
  2527. unsigned short RCVENM6 : 1;
  2528. unsigned short RCVENM7 : 1;
  2529. #else
  2530. unsigned short RCVENM7 : 1;
  2531. unsigned short RCVENM6 : 1;
  2532. unsigned short RCVENM5 : 1;
  2533. unsigned short RCVENM4 : 1;
  2534. unsigned short RCVENM3 : 1;
  2535. unsigned short RCVENM2 : 1;
  2536. unsigned short RCVENM1 : 1;
  2537. unsigned short RCVENM0 : 1;
  2538. unsigned short RCVEN7 : 1;
  2539. unsigned short RCVEN6 : 1;
  2540. unsigned short RCVEN5 : 1;
  2541. unsigned short RCVEN4 : 1;
  2542. unsigned short RCVEN3 : 1;
  2543. unsigned short RCVEN2 : 1;
  2544. unsigned short RCVEN1 : 1;
  2545. unsigned short RCVEN0 : 1;
  2546. #endif
  2547. } BIT;
  2548. } CSRECEN;
  2549. char wk29[894];
  2550. union {
  2551. unsigned char BYTE;
  2552. struct {
  2553. #ifdef __RX_LITTLE_ENDIAN__
  2554. unsigned char EXENB : 1;
  2555. unsigned char : 3;
  2556. unsigned char BSIZE : 2;
  2557. unsigned char : 2;
  2558. #else
  2559. unsigned char : 2;
  2560. unsigned char BSIZE : 2;
  2561. unsigned char : 3;
  2562. unsigned char EXENB : 1;
  2563. #endif
  2564. } BIT;
  2565. } SDCCR;
  2566. union {
  2567. unsigned char BYTE;
  2568. struct {
  2569. #ifdef __RX_LITTLE_ENDIAN__
  2570. unsigned char EMODE : 1;
  2571. unsigned char : 7;
  2572. #else
  2573. unsigned char : 7;
  2574. unsigned char EMODE : 1;
  2575. #endif
  2576. } BIT;
  2577. } SDCMOD;
  2578. union {
  2579. unsigned char BYTE;
  2580. struct {
  2581. #ifdef __RX_LITTLE_ENDIAN__
  2582. unsigned char BE : 1;
  2583. unsigned char : 7;
  2584. #else
  2585. unsigned char : 7;
  2586. unsigned char BE : 1;
  2587. #endif
  2588. } BIT;
  2589. } SDAMOD;
  2590. char wk30[13];
  2591. union {
  2592. unsigned char BYTE;
  2593. struct {
  2594. #ifdef __RX_LITTLE_ENDIAN__
  2595. unsigned char SFEN : 1;
  2596. unsigned char : 7;
  2597. #else
  2598. unsigned char : 7;
  2599. unsigned char SFEN : 1;
  2600. #endif
  2601. } BIT;
  2602. } SDSELF;
  2603. char wk31[3];
  2604. union {
  2605. unsigned short WORD;
  2606. struct {
  2607. #ifdef __RX_LITTLE_ENDIAN__
  2608. unsigned short RFC : 12;
  2609. unsigned short REFW : 4;
  2610. #else
  2611. unsigned short REFW : 4;
  2612. unsigned short RFC : 12;
  2613. #endif
  2614. } BIT;
  2615. } SDRFCR;
  2616. union {
  2617. unsigned char BYTE;
  2618. struct {
  2619. #ifdef __RX_LITTLE_ENDIAN__
  2620. unsigned char RFEN : 1;
  2621. unsigned char : 7;
  2622. #else
  2623. unsigned char : 7;
  2624. unsigned char RFEN : 1;
  2625. #endif
  2626. } BIT;
  2627. } SDRFEN;
  2628. char wk32[9];
  2629. union {
  2630. unsigned char BYTE;
  2631. struct {
  2632. #ifdef __RX_LITTLE_ENDIAN__
  2633. unsigned char INIRQ : 1;
  2634. unsigned char : 7;
  2635. #else
  2636. unsigned char : 7;
  2637. unsigned char INIRQ : 1;
  2638. #endif
  2639. } BIT;
  2640. } SDICR;
  2641. char wk33[3];
  2642. union {
  2643. unsigned short WORD;
  2644. struct {
  2645. #ifdef __RX_LITTLE_ENDIAN__
  2646. unsigned short ARFI : 4;
  2647. unsigned short ARFC : 4;
  2648. unsigned short PRC : 3;
  2649. unsigned short : 5;
  2650. #else
  2651. unsigned short : 5;
  2652. unsigned short PRC : 3;
  2653. unsigned short ARFC : 4;
  2654. unsigned short ARFI : 4;
  2655. #endif
  2656. } BIT;
  2657. } SDIR;
  2658. char wk34[26];
  2659. union {
  2660. unsigned char BYTE;
  2661. struct {
  2662. #ifdef __RX_LITTLE_ENDIAN__
  2663. unsigned char MXC : 2;
  2664. unsigned char : 6;
  2665. #else
  2666. unsigned char : 6;
  2667. unsigned char MXC : 2;
  2668. #endif
  2669. } BIT;
  2670. } SDADR;
  2671. char wk35[3];
  2672. union {
  2673. unsigned long LONG;
  2674. struct {
  2675. #ifdef __RX_LITTLE_ENDIAN__
  2676. unsigned long CL : 3;
  2677. unsigned long : 5;
  2678. unsigned long WR : 1;
  2679. unsigned long RP : 3;
  2680. unsigned long RCD : 2;
  2681. unsigned long : 2;
  2682. unsigned long RAS : 3;
  2683. unsigned long : 13;
  2684. #else
  2685. unsigned long : 13;
  2686. unsigned long RAS : 3;
  2687. unsigned long : 2;
  2688. unsigned long RCD : 2;
  2689. unsigned long RP : 3;
  2690. unsigned long WR : 1;
  2691. unsigned long : 5;
  2692. unsigned long CL : 3;
  2693. #endif
  2694. } BIT;
  2695. } SDTR;
  2696. union {
  2697. unsigned short WORD;
  2698. struct {
  2699. #ifdef __RX_LITTLE_ENDIAN__
  2700. unsigned short MR : 15;
  2701. unsigned short : 1;
  2702. #else
  2703. unsigned short : 1;
  2704. unsigned short MR : 15;
  2705. #endif
  2706. } BIT;
  2707. } SDMOD;
  2708. char wk36[6];
  2709. union {
  2710. unsigned char BYTE;
  2711. struct {
  2712. #ifdef __RX_LITTLE_ENDIAN__
  2713. unsigned char MRSST : 1;
  2714. unsigned char : 2;
  2715. unsigned char INIST : 1;
  2716. unsigned char SRFST : 1;
  2717. unsigned char : 3;
  2718. #else
  2719. unsigned char : 3;
  2720. unsigned char SRFST : 1;
  2721. unsigned char INIST : 1;
  2722. unsigned char : 2;
  2723. unsigned char MRSST : 1;
  2724. #endif
  2725. } BIT;
  2726. } SDSR;
  2727. char wk37[269231];
  2728. union {
  2729. unsigned long LONG;
  2730. struct {
  2731. #ifdef __RX_LITTLE_ENDIAN__
  2732. unsigned long PR1SEL : 3;
  2733. unsigned long : 1;
  2734. unsigned long PR2SEL : 3;
  2735. unsigned long : 1;
  2736. unsigned long PR3SEL : 3;
  2737. unsigned long : 1;
  2738. unsigned long PR4SEL : 3;
  2739. unsigned long : 1;
  2740. unsigned long PR5SEL : 3;
  2741. unsigned long : 10;
  2742. unsigned long RPSTOP : 1;
  2743. unsigned long : 1;
  2744. unsigned long PRERR : 1;
  2745. #else
  2746. unsigned long PRERR : 1;
  2747. unsigned long : 1;
  2748. unsigned long RPSTOP : 1;
  2749. unsigned long : 10;
  2750. unsigned long PR5SEL : 3;
  2751. unsigned long : 1;
  2752. unsigned long PR4SEL : 3;
  2753. unsigned long : 1;
  2754. unsigned long PR3SEL : 3;
  2755. unsigned long : 1;
  2756. unsigned long PR2SEL : 3;
  2757. unsigned long : 1;
  2758. unsigned long PR1SEL : 3;
  2759. #endif
  2760. } BIT;
  2761. } EBMAPCR;
  2762. } st_bsc_t;
  2763. typedef struct st_cac {
  2764. union {
  2765. unsigned char BYTE;
  2766. struct {
  2767. #ifdef __RX_LITTLE_ENDIAN__
  2768. unsigned char CFME : 1;
  2769. unsigned char : 7;
  2770. #else
  2771. unsigned char : 7;
  2772. unsigned char CFME : 1;
  2773. #endif
  2774. } BIT;
  2775. } CACR0;
  2776. union {
  2777. unsigned char BYTE;
  2778. struct {
  2779. #ifdef __RX_LITTLE_ENDIAN__
  2780. unsigned char CACREFE : 1;
  2781. unsigned char FMCS : 3;
  2782. unsigned char TCSS : 2;
  2783. unsigned char EDGES : 2;
  2784. #else
  2785. unsigned char EDGES : 2;
  2786. unsigned char TCSS : 2;
  2787. unsigned char FMCS : 3;
  2788. unsigned char CACREFE : 1;
  2789. #endif
  2790. } BIT;
  2791. } CACR1;
  2792. union {
  2793. unsigned char BYTE;
  2794. struct {
  2795. #ifdef __RX_LITTLE_ENDIAN__
  2796. unsigned char RPS : 1;
  2797. unsigned char RSCS : 3;
  2798. unsigned char RCDS : 2;
  2799. unsigned char DFS : 2;
  2800. #else
  2801. unsigned char DFS : 2;
  2802. unsigned char RCDS : 2;
  2803. unsigned char RSCS : 3;
  2804. unsigned char RPS : 1;
  2805. #endif
  2806. } BIT;
  2807. } CACR2;
  2808. union {
  2809. unsigned char BYTE;
  2810. struct {
  2811. #ifdef __RX_LITTLE_ENDIAN__
  2812. unsigned char FERRIE : 1;
  2813. unsigned char MENDIE : 1;
  2814. unsigned char OVFIE : 1;
  2815. unsigned char : 1;
  2816. unsigned char FERRFCL : 1;
  2817. unsigned char MENDFCL : 1;
  2818. unsigned char OVFFCL : 1;
  2819. unsigned char : 1;
  2820. #else
  2821. unsigned char : 1;
  2822. unsigned char OVFFCL : 1;
  2823. unsigned char MENDFCL : 1;
  2824. unsigned char FERRFCL : 1;
  2825. unsigned char : 1;
  2826. unsigned char OVFIE : 1;
  2827. unsigned char MENDIE : 1;
  2828. unsigned char FERRIE : 1;
  2829. #endif
  2830. } BIT;
  2831. } CAICR;
  2832. union {
  2833. unsigned char BYTE;
  2834. struct {
  2835. #ifdef __RX_LITTLE_ENDIAN__
  2836. unsigned char FERRF : 1;
  2837. unsigned char MENDF : 1;
  2838. unsigned char OVFF : 1;
  2839. unsigned char : 5;
  2840. #else
  2841. unsigned char : 5;
  2842. unsigned char OVFF : 1;
  2843. unsigned char MENDF : 1;
  2844. unsigned char FERRF : 1;
  2845. #endif
  2846. } BIT;
  2847. } CASTR;
  2848. char wk0[1];
  2849. unsigned short CAULVR;
  2850. unsigned short CALLVR;
  2851. unsigned short CACNTBR;
  2852. } st_cac_t;
  2853. typedef struct st_can {
  2854. struct {
  2855. union {
  2856. unsigned long LONG;
  2857. struct {
  2858. unsigned short H;
  2859. unsigned short L;
  2860. } WORD;
  2861. struct {
  2862. unsigned char HH;
  2863. unsigned char HL;
  2864. unsigned char LH;
  2865. unsigned char LL;
  2866. } BYTE;
  2867. struct {
  2868. #ifdef __RX_LITTLE_ENDIAN__
  2869. unsigned long EID : 18;
  2870. unsigned long SID : 11;
  2871. unsigned long : 1;
  2872. unsigned long RTR : 1;
  2873. unsigned long IDE : 1;
  2874. #else
  2875. unsigned long IDE : 1;
  2876. unsigned long RTR : 1;
  2877. unsigned long : 1;
  2878. unsigned long SID : 11;
  2879. unsigned long EID : 18;
  2880. #endif
  2881. } BIT;
  2882. } ID;
  2883. unsigned short DLC;
  2884. unsigned char DATA[8];
  2885. unsigned short TS;
  2886. } MB[32];
  2887. union {
  2888. unsigned long LONG;
  2889. struct {
  2890. unsigned short H;
  2891. unsigned short L;
  2892. } WORD;
  2893. struct {
  2894. unsigned char HH;
  2895. unsigned char HL;
  2896. unsigned char LH;
  2897. unsigned char LL;
  2898. } BYTE;
  2899. struct {
  2900. #ifdef __RX_LITTLE_ENDIAN__
  2901. unsigned long EID : 18;
  2902. unsigned long SID : 11;
  2903. unsigned long : 3;
  2904. #else
  2905. unsigned long : 3;
  2906. unsigned long SID : 11;
  2907. unsigned long EID : 18;
  2908. #endif
  2909. } BIT;
  2910. } MKR[8];
  2911. union {
  2912. unsigned long LONG;
  2913. struct {
  2914. unsigned short H;
  2915. unsigned short L;
  2916. } WORD;
  2917. struct {
  2918. unsigned char HH;
  2919. unsigned char HL;
  2920. unsigned char LH;
  2921. unsigned char LL;
  2922. } BYTE;
  2923. struct {
  2924. #ifdef __RX_LITTLE_ENDIAN__
  2925. unsigned long EID : 18;
  2926. unsigned long SID : 11;
  2927. unsigned long : 1;
  2928. unsigned long RTR : 1;
  2929. unsigned long IDE : 1;
  2930. #else
  2931. unsigned long IDE : 1;
  2932. unsigned long RTR : 1;
  2933. unsigned long : 1;
  2934. unsigned long SID : 11;
  2935. unsigned long EID : 18;
  2936. #endif
  2937. } BIT;
  2938. } FIDCR0;
  2939. union {
  2940. unsigned long LONG;
  2941. struct {
  2942. unsigned short H;
  2943. unsigned short L;
  2944. } WORD;
  2945. struct {
  2946. unsigned char HH;
  2947. unsigned char HL;
  2948. unsigned char LH;
  2949. unsigned char LL;
  2950. } BYTE;
  2951. struct {
  2952. #ifdef __RX_LITTLE_ENDIAN__
  2953. unsigned long EID : 18;
  2954. unsigned long SID : 11;
  2955. unsigned long : 1;
  2956. unsigned long RTR : 1;
  2957. unsigned long IDE : 1;
  2958. #else
  2959. unsigned long IDE : 1;
  2960. unsigned long RTR : 1;
  2961. unsigned long : 1;
  2962. unsigned long SID : 11;
  2963. unsigned long EID : 18;
  2964. #endif
  2965. } BIT;
  2966. } FIDCR1;
  2967. union {
  2968. unsigned long LONG;
  2969. struct {
  2970. unsigned short H;
  2971. unsigned short L;
  2972. } WORD;
  2973. struct {
  2974. unsigned char HH;
  2975. unsigned char HL;
  2976. unsigned char LH;
  2977. unsigned char LL;
  2978. } BYTE;
  2979. struct {
  2980. #ifdef __RX_LITTLE_ENDIAN__
  2981. unsigned long MB0 : 1;
  2982. unsigned long MB1 : 1;
  2983. unsigned long MB2 : 1;
  2984. unsigned long MB3 : 1;
  2985. unsigned long MB4 : 1;
  2986. unsigned long MB5 : 1;
  2987. unsigned long MB6 : 1;
  2988. unsigned long MB7 : 1;
  2989. unsigned long MB8 : 1;
  2990. unsigned long MB9 : 1;
  2991. unsigned long MB10 : 1;
  2992. unsigned long MB11 : 1;
  2993. unsigned long MB12 : 1;
  2994. unsigned long MB13 : 1;
  2995. unsigned long MB14 : 1;
  2996. unsigned long MB15 : 1;
  2997. unsigned long MB16 : 1;
  2998. unsigned long MB17 : 1;
  2999. unsigned long MB18 : 1;
  3000. unsigned long MB19 : 1;
  3001. unsigned long MB20 : 1;
  3002. unsigned long MB21 : 1;
  3003. unsigned long MB22 : 1;
  3004. unsigned long MB23 : 1;
  3005. unsigned long MB24 : 1;
  3006. unsigned long MB25 : 1;
  3007. unsigned long MB26 : 1;
  3008. unsigned long MB27 : 1;
  3009. unsigned long MB28 : 1;
  3010. unsigned long MB29 : 1;
  3011. unsigned long MB30 : 1;
  3012. unsigned long MB31 : 1;
  3013. #else
  3014. unsigned long MB31 : 1;
  3015. unsigned long MB30 : 1;
  3016. unsigned long MB29 : 1;
  3017. unsigned long MB28 : 1;
  3018. unsigned long MB27 : 1;
  3019. unsigned long MB26 : 1;
  3020. unsigned long MB25 : 1;
  3021. unsigned long MB24 : 1;
  3022. unsigned long MB23 : 1;
  3023. unsigned long MB22 : 1;
  3024. unsigned long MB21 : 1;
  3025. unsigned long MB20 : 1;
  3026. unsigned long MB19 : 1;
  3027. unsigned long MB18 : 1;
  3028. unsigned long MB17 : 1;
  3029. unsigned long MB16 : 1;
  3030. unsigned long MB15 : 1;
  3031. unsigned long MB14 : 1;
  3032. unsigned long MB13 : 1;
  3033. unsigned long MB12 : 1;
  3034. unsigned long MB11 : 1;
  3035. unsigned long MB10 : 1;
  3036. unsigned long MB9 : 1;
  3037. unsigned long MB8 : 1;
  3038. unsigned long MB7 : 1;
  3039. unsigned long MB6 : 1;
  3040. unsigned long MB5 : 1;
  3041. unsigned long MB4 : 1;
  3042. unsigned long MB3 : 1;
  3043. unsigned long MB2 : 1;
  3044. unsigned long MB1 : 1;
  3045. unsigned long MB0 : 1;
  3046. #endif
  3047. } BIT;
  3048. } MKIVLR;
  3049. union {
  3050. unsigned long LONG;
  3051. struct {
  3052. unsigned short H;
  3053. unsigned short L;
  3054. } WORD;
  3055. struct {
  3056. unsigned char HH;
  3057. unsigned char HL;
  3058. unsigned char LH;
  3059. unsigned char LL;
  3060. } BYTE;
  3061. struct {
  3062. #ifdef __RX_LITTLE_ENDIAN__
  3063. unsigned long MB0 : 1;
  3064. unsigned long MB1 : 1;
  3065. unsigned long MB2 : 1;
  3066. unsigned long MB3 : 1;
  3067. unsigned long MB4 : 1;
  3068. unsigned long MB5 : 1;
  3069. unsigned long MB6 : 1;
  3070. unsigned long MB7 : 1;
  3071. unsigned long MB8 : 1;
  3072. unsigned long MB9 : 1;
  3073. unsigned long MB10 : 1;
  3074. unsigned long MB11 : 1;
  3075. unsigned long MB12 : 1;
  3076. unsigned long MB13 : 1;
  3077. unsigned long MB14 : 1;
  3078. unsigned long MB15 : 1;
  3079. unsigned long MB16 : 1;
  3080. unsigned long MB17 : 1;
  3081. unsigned long MB18 : 1;
  3082. unsigned long MB19 : 1;
  3083. unsigned long MB20 : 1;
  3084. unsigned long MB21 : 1;
  3085. unsigned long MB22 : 1;
  3086. unsigned long MB23 : 1;
  3087. unsigned long MB24 : 1;
  3088. unsigned long MB25 : 1;
  3089. unsigned long MB26 : 1;
  3090. unsigned long MB27 : 1;
  3091. unsigned long MB28 : 1;
  3092. unsigned long MB29 : 1;
  3093. unsigned long MB30 : 1;
  3094. unsigned long MB31 : 1;
  3095. #else
  3096. unsigned long MB31 : 1;
  3097. unsigned long MB30 : 1;
  3098. unsigned long MB29 : 1;
  3099. unsigned long MB28 : 1;
  3100. unsigned long MB27 : 1;
  3101. unsigned long MB26 : 1;
  3102. unsigned long MB25 : 1;
  3103. unsigned long MB24 : 1;
  3104. unsigned long MB23 : 1;
  3105. unsigned long MB22 : 1;
  3106. unsigned long MB21 : 1;
  3107. unsigned long MB20 : 1;
  3108. unsigned long MB19 : 1;
  3109. unsigned long MB18 : 1;
  3110. unsigned long MB17 : 1;
  3111. unsigned long MB16 : 1;
  3112. unsigned long MB15 : 1;
  3113. unsigned long MB14 : 1;
  3114. unsigned long MB13 : 1;
  3115. unsigned long MB12 : 1;
  3116. unsigned long MB11 : 1;
  3117. unsigned long MB10 : 1;
  3118. unsigned long MB9 : 1;
  3119. unsigned long MB8 : 1;
  3120. unsigned long MB7 : 1;
  3121. unsigned long MB6 : 1;
  3122. unsigned long MB5 : 1;
  3123. unsigned long MB4 : 1;
  3124. unsigned long MB3 : 1;
  3125. unsigned long MB2 : 1;
  3126. unsigned long MB1 : 1;
  3127. unsigned long MB0 : 1;
  3128. #endif
  3129. } BIT;
  3130. } MIER;
  3131. char wk0[1008];
  3132. union {
  3133. unsigned char BYTE;
  3134. union {
  3135. struct {
  3136. #ifdef __RX_LITTLE_ENDIAN__
  3137. unsigned char SENTDATA : 1;
  3138. unsigned char TRMACTIVE : 1;
  3139. unsigned char TRMABT : 1;
  3140. unsigned char : 1;
  3141. unsigned char ONESHOT : 1;
  3142. unsigned char : 1;
  3143. unsigned char RECREQ : 1;
  3144. unsigned char TRMREQ : 1;
  3145. #else
  3146. unsigned char TRMREQ : 1;
  3147. unsigned char RECREQ : 1;
  3148. unsigned char : 1;
  3149. unsigned char ONESHOT : 1;
  3150. unsigned char : 1;
  3151. unsigned char TRMABT : 1;
  3152. unsigned char TRMACTIVE : 1;
  3153. unsigned char SENTDATA : 1;
  3154. #endif
  3155. } TX;
  3156. struct {
  3157. #ifdef __RX_LITTLE_ENDIAN__
  3158. unsigned char NEWDATA : 1;
  3159. unsigned char INVALDATA : 1;
  3160. unsigned char MSGLOST : 1;
  3161. unsigned char : 1;
  3162. unsigned char ONESHOT : 1;
  3163. unsigned char : 1;
  3164. unsigned char RECREQ : 1;
  3165. unsigned char TRMREQ : 1;
  3166. #else
  3167. unsigned char TRMREQ : 1;
  3168. unsigned char RECREQ : 1;
  3169. unsigned char : 1;
  3170. unsigned char ONESHOT : 1;
  3171. unsigned char : 1;
  3172. unsigned char MSGLOST : 1;
  3173. unsigned char INVALDATA : 1;
  3174. unsigned char NEWDATA : 1;
  3175. #endif
  3176. } RX;
  3177. } BIT;
  3178. } MCTL[32];
  3179. union {
  3180. unsigned short WORD;
  3181. struct {
  3182. unsigned char H;
  3183. unsigned char L;
  3184. } BYTE;
  3185. struct {
  3186. #ifdef __RX_LITTLE_ENDIAN__
  3187. unsigned short MBM : 1;
  3188. unsigned short IDFM : 2;
  3189. unsigned short MLM : 1;
  3190. unsigned short TPM : 1;
  3191. unsigned short TSRC : 1;
  3192. unsigned short TSPS : 2;
  3193. unsigned short CANM : 2;
  3194. unsigned short SLPM : 1;
  3195. unsigned short BOM : 2;
  3196. unsigned short RBOC : 1;
  3197. unsigned short : 2;
  3198. #else
  3199. unsigned short : 2;
  3200. unsigned short RBOC : 1;
  3201. unsigned short BOM : 2;
  3202. unsigned short SLPM : 1;
  3203. unsigned short CANM : 2;
  3204. unsigned short TSPS : 2;
  3205. unsigned short TSRC : 1;
  3206. unsigned short TPM : 1;
  3207. unsigned short MLM : 1;
  3208. unsigned short IDFM : 2;
  3209. unsigned short MBM : 1;
  3210. #endif
  3211. } BIT;
  3212. } CTLR;
  3213. union {
  3214. unsigned short WORD;
  3215. struct {
  3216. unsigned char H;
  3217. unsigned char L;
  3218. } BYTE;
  3219. struct {
  3220. #ifdef __RX_LITTLE_ENDIAN__
  3221. unsigned short NDST : 1;
  3222. unsigned short SDST : 1;
  3223. unsigned short RFST : 1;
  3224. unsigned short TFST : 1;
  3225. unsigned short NMLST : 1;
  3226. unsigned short FMLST : 1;
  3227. unsigned short TABST : 1;
  3228. unsigned short EST : 1;
  3229. unsigned short RSTST : 1;
  3230. unsigned short HLTST : 1;
  3231. unsigned short SLPST : 1;
  3232. unsigned short EPST : 1;
  3233. unsigned short BOST : 1;
  3234. unsigned short TRMST : 1;
  3235. unsigned short RECST : 1;
  3236. unsigned short : 1;
  3237. #else
  3238. unsigned short : 1;
  3239. unsigned short RECST : 1;
  3240. unsigned short TRMST : 1;
  3241. unsigned short BOST : 1;
  3242. unsigned short EPST : 1;
  3243. unsigned short SLPST : 1;
  3244. unsigned short HLTST : 1;
  3245. unsigned short RSTST : 1;
  3246. unsigned short EST : 1;
  3247. unsigned short TABST : 1;
  3248. unsigned short FMLST : 1;
  3249. unsigned short NMLST : 1;
  3250. unsigned short TFST : 1;
  3251. unsigned short RFST : 1;
  3252. unsigned short SDST : 1;
  3253. unsigned short NDST : 1;
  3254. #endif
  3255. } BIT;
  3256. } STR;
  3257. union {
  3258. unsigned long LONG;
  3259. struct {
  3260. unsigned short H;
  3261. unsigned short L;
  3262. } WORD;
  3263. struct {
  3264. unsigned char HH;
  3265. unsigned char HL;
  3266. unsigned char LH;
  3267. unsigned char LL;
  3268. } BYTE;
  3269. struct {
  3270. #ifdef __RX_LITTLE_ENDIAN__
  3271. unsigned long CCLKS : 1;
  3272. unsigned long : 7;
  3273. unsigned long TSEG2 : 3;
  3274. unsigned long : 1;
  3275. unsigned long SJW : 2;
  3276. unsigned long : 2;
  3277. unsigned long BRP : 10;
  3278. unsigned long : 2;
  3279. unsigned long TSEG1 : 4;
  3280. #else
  3281. unsigned long TSEG1 : 4;
  3282. unsigned long : 2;
  3283. unsigned long BRP : 10;
  3284. unsigned long : 2;
  3285. unsigned long SJW : 2;
  3286. unsigned long : 1;
  3287. unsigned long TSEG2 : 3;
  3288. unsigned long : 7;
  3289. unsigned long CCLKS : 1;
  3290. #endif
  3291. } BIT;
  3292. } BCR;
  3293. union {
  3294. unsigned char BYTE;
  3295. struct {
  3296. #ifdef __RX_LITTLE_ENDIAN__
  3297. unsigned char RFE : 1;
  3298. unsigned char RFUST : 3;
  3299. unsigned char RFMLF : 1;
  3300. unsigned char RFFST : 1;
  3301. unsigned char RFWST : 1;
  3302. unsigned char RFEST : 1;
  3303. #else
  3304. unsigned char RFEST : 1;
  3305. unsigned char RFWST : 1;
  3306. unsigned char RFFST : 1;
  3307. unsigned char RFMLF : 1;
  3308. unsigned char RFUST : 3;
  3309. unsigned char RFE : 1;
  3310. #endif
  3311. } BIT;
  3312. } RFCR;
  3313. unsigned char RFPCR;
  3314. union {
  3315. unsigned char BYTE;
  3316. struct {
  3317. #ifdef __RX_LITTLE_ENDIAN__
  3318. unsigned char TFE : 1;
  3319. unsigned char TFUST : 3;
  3320. unsigned char : 2;
  3321. unsigned char TFFST : 1;
  3322. unsigned char TFEST : 1;
  3323. #else
  3324. unsigned char TFEST : 1;
  3325. unsigned char TFFST : 1;
  3326. unsigned char : 2;
  3327. unsigned char TFUST : 3;
  3328. unsigned char TFE : 1;
  3329. #endif
  3330. } BIT;
  3331. } TFCR;
  3332. unsigned char TFPCR;
  3333. union {
  3334. unsigned char BYTE;
  3335. struct {
  3336. #ifdef __RX_LITTLE_ENDIAN__
  3337. unsigned char BEIE : 1;
  3338. unsigned char EWIE : 1;
  3339. unsigned char EPIE : 1;
  3340. unsigned char BOEIE : 1;
  3341. unsigned char BORIE : 1;
  3342. unsigned char ORIE : 1;
  3343. unsigned char OLIE : 1;
  3344. unsigned char BLIE : 1;
  3345. #else
  3346. unsigned char BLIE : 1;
  3347. unsigned char OLIE : 1;
  3348. unsigned char ORIE : 1;
  3349. unsigned char BORIE : 1;
  3350. unsigned char BOEIE : 1;
  3351. unsigned char EPIE : 1;
  3352. unsigned char EWIE : 1;
  3353. unsigned char BEIE : 1;
  3354. #endif
  3355. } BIT;
  3356. } EIER;
  3357. union {
  3358. unsigned char BYTE;
  3359. struct {
  3360. #ifdef __RX_LITTLE_ENDIAN__
  3361. unsigned char BEIF : 1;
  3362. unsigned char EWIF : 1;
  3363. unsigned char EPIF : 1;
  3364. unsigned char BOEIF : 1;
  3365. unsigned char BORIF : 1;
  3366. unsigned char ORIF : 1;
  3367. unsigned char OLIF : 1;
  3368. unsigned char BLIF : 1;
  3369. #else
  3370. unsigned char BLIF : 1;
  3371. unsigned char OLIF : 1;
  3372. unsigned char ORIF : 1;
  3373. unsigned char BORIF : 1;
  3374. unsigned char BOEIF : 1;
  3375. unsigned char EPIF : 1;
  3376. unsigned char EWIF : 1;
  3377. unsigned char BEIF : 1;
  3378. #endif
  3379. } BIT;
  3380. } EIFR;
  3381. unsigned char RECR;
  3382. unsigned char TECR;
  3383. union {
  3384. unsigned char BYTE;
  3385. struct {
  3386. #ifdef __RX_LITTLE_ENDIAN__
  3387. unsigned char SEF : 1;
  3388. unsigned char FEF : 1;
  3389. unsigned char AEF : 1;
  3390. unsigned char CEF : 1;
  3391. unsigned char BE1F : 1;
  3392. unsigned char BE0F : 1;
  3393. unsigned char ADEF : 1;
  3394. unsigned char EDPM : 1;
  3395. #else
  3396. unsigned char EDPM : 1;
  3397. unsigned char ADEF : 1;
  3398. unsigned char BE0F : 1;
  3399. unsigned char BE1F : 1;
  3400. unsigned char CEF : 1;
  3401. unsigned char AEF : 1;
  3402. unsigned char FEF : 1;
  3403. unsigned char SEF : 1;
  3404. #endif
  3405. } BIT;
  3406. } ECSR;
  3407. unsigned char CSSR;
  3408. union {
  3409. unsigned char BYTE;
  3410. struct {
  3411. #ifdef __RX_LITTLE_ENDIAN__
  3412. unsigned char MBNST : 5;
  3413. unsigned char : 2;
  3414. unsigned char SEST : 1;
  3415. #else
  3416. unsigned char SEST : 1;
  3417. unsigned char : 2;
  3418. unsigned char MBNST : 5;
  3419. #endif
  3420. } BIT;
  3421. } MSSR;
  3422. union {
  3423. unsigned char BYTE;
  3424. struct {
  3425. #ifdef __RX_LITTLE_ENDIAN__
  3426. unsigned char MBSM : 2;
  3427. unsigned char : 6;
  3428. #else
  3429. unsigned char : 6;
  3430. unsigned char MBSM : 2;
  3431. #endif
  3432. } BIT;
  3433. } MSMR;
  3434. unsigned short TSR;
  3435. unsigned short AFSR;
  3436. union {
  3437. unsigned char BYTE;
  3438. struct {
  3439. #ifdef __RX_LITTLE_ENDIAN__
  3440. unsigned char TSTE : 1;
  3441. unsigned char TSTM : 2;
  3442. unsigned char : 5;
  3443. #else
  3444. unsigned char : 5;
  3445. unsigned char TSTM : 2;
  3446. unsigned char TSTE : 1;
  3447. #endif
  3448. } BIT;
  3449. } TCR;
  3450. } st_can_t;
  3451. typedef struct st_cmt {
  3452. union {
  3453. unsigned short WORD;
  3454. struct {
  3455. #ifdef __RX_LITTLE_ENDIAN__
  3456. unsigned short STR0 : 1;
  3457. unsigned short STR1 : 1;
  3458. unsigned short : 14;
  3459. #else
  3460. unsigned short : 14;
  3461. unsigned short STR1 : 1;
  3462. unsigned short STR0 : 1;
  3463. #endif
  3464. } BIT;
  3465. } CMSTR0;
  3466. char wk0[14];
  3467. union {
  3468. unsigned short WORD;
  3469. struct {
  3470. #ifdef __RX_LITTLE_ENDIAN__
  3471. unsigned short STR2 : 1;
  3472. unsigned short STR3 : 1;
  3473. unsigned short : 14;
  3474. #else
  3475. unsigned short : 14;
  3476. unsigned short STR3 : 1;
  3477. unsigned short STR2 : 1;
  3478. #endif
  3479. } BIT;
  3480. } CMSTR1;
  3481. } st_cmt_t;
  3482. typedef struct st_cmt0 {
  3483. union {
  3484. unsigned short WORD;
  3485. struct {
  3486. #ifdef __RX_LITTLE_ENDIAN__
  3487. unsigned short CKS : 2;
  3488. unsigned short : 4;
  3489. unsigned short CMIE : 1;
  3490. unsigned short : 9;
  3491. #else
  3492. unsigned short : 9;
  3493. unsigned short CMIE : 1;
  3494. unsigned short : 4;
  3495. unsigned short CKS : 2;
  3496. #endif
  3497. } BIT;
  3498. } CMCR;
  3499. unsigned short CMCNT;
  3500. unsigned short CMCOR;
  3501. } st_cmt0_t;
  3502. typedef struct st_cmtw {
  3503. union {
  3504. unsigned short WORD;
  3505. struct {
  3506. #ifdef __RX_LITTLE_ENDIAN__
  3507. unsigned short STR : 1;
  3508. unsigned short : 15;
  3509. #else
  3510. unsigned short : 15;
  3511. unsigned short STR : 1;
  3512. #endif
  3513. } BIT;
  3514. } CMWSTR;
  3515. char wk0[2];
  3516. union {
  3517. unsigned short WORD;
  3518. struct {
  3519. #ifdef __RX_LITTLE_ENDIAN__
  3520. unsigned short CKS : 2;
  3521. unsigned short : 1;
  3522. unsigned short CMWIE : 1;
  3523. unsigned short IC0IE : 1;
  3524. unsigned short IC1IE : 1;
  3525. unsigned short OC0IE : 1;
  3526. unsigned short OC1IE : 1;
  3527. unsigned short : 1;
  3528. unsigned short CMS : 1;
  3529. unsigned short : 3;
  3530. unsigned short CCLR : 3;
  3531. #else
  3532. unsigned short CCLR : 3;
  3533. unsigned short : 3;
  3534. unsigned short CMS : 1;
  3535. unsigned short : 1;
  3536. unsigned short OC1IE : 1;
  3537. unsigned short OC0IE : 1;
  3538. unsigned short IC1IE : 1;
  3539. unsigned short IC0IE : 1;
  3540. unsigned short CMWIE : 1;
  3541. unsigned short : 1;
  3542. unsigned short CKS : 2;
  3543. #endif
  3544. } BIT;
  3545. } CMWCR;
  3546. char wk1[2];
  3547. union {
  3548. unsigned short WORD;
  3549. struct {
  3550. #ifdef __RX_LITTLE_ENDIAN__
  3551. unsigned short IC0 : 2;
  3552. unsigned short IC1 : 2;
  3553. unsigned short IC0E : 1;
  3554. unsigned short IC1E : 1;
  3555. unsigned short : 2;
  3556. unsigned short OC0 : 2;
  3557. unsigned short OC1 : 2;
  3558. unsigned short OC0E : 1;
  3559. unsigned short OC1E : 1;
  3560. unsigned short : 1;
  3561. unsigned short CMWE : 1;
  3562. #else
  3563. unsigned short CMWE : 1;
  3564. unsigned short : 1;
  3565. unsigned short OC1E : 1;
  3566. unsigned short OC0E : 1;
  3567. unsigned short OC1 : 2;
  3568. unsigned short OC0 : 2;
  3569. unsigned short : 2;
  3570. unsigned short IC1E : 1;
  3571. unsigned short IC0E : 1;
  3572. unsigned short IC1 : 2;
  3573. unsigned short IC0 : 2;
  3574. #endif
  3575. } BIT;
  3576. } CMWIOR;
  3577. char wk2[6];
  3578. unsigned long CMWCNT;
  3579. unsigned long CMWCOR;
  3580. unsigned long CMWICR0;
  3581. unsigned long CMWICR1;
  3582. unsigned long CMWOCR0;
  3583. unsigned long CMWOCR1;
  3584. } st_cmtw_t;
  3585. typedef struct st_crc {
  3586. union {
  3587. unsigned char BYTE;
  3588. struct {
  3589. #ifdef __RX_LITTLE_ENDIAN__
  3590. unsigned char GPS : 3;
  3591. unsigned char : 3;
  3592. unsigned char LMS : 1;
  3593. unsigned char DORCLR : 1;
  3594. #else
  3595. unsigned char DORCLR : 1;
  3596. unsigned char LMS : 1;
  3597. unsigned char : 3;
  3598. unsigned char GPS : 3;
  3599. #endif
  3600. } BIT;
  3601. } CRCCR;
  3602. char wk0[3];
  3603. union {
  3604. unsigned long LONG;
  3605. unsigned char BYTE;
  3606. } CRCDIR;
  3607. union {
  3608. unsigned long LONG;
  3609. unsigned short WORD;
  3610. unsigned char BYTE;
  3611. } CRCDOR;
  3612. } st_crc_t;
  3613. typedef struct st_da {
  3614. unsigned short DADR0;
  3615. unsigned short DADR1;
  3616. union {
  3617. unsigned char BYTE;
  3618. struct {
  3619. #ifdef __RX_LITTLE_ENDIAN__
  3620. unsigned char : 5;
  3621. unsigned char DAE : 1;
  3622. unsigned char DAOE0 : 1;
  3623. unsigned char DAOE1 : 1;
  3624. #else
  3625. unsigned char DAOE1 : 1;
  3626. unsigned char DAOE0 : 1;
  3627. unsigned char DAE : 1;
  3628. unsigned char : 5;
  3629. #endif
  3630. } BIT;
  3631. } DACR;
  3632. union {
  3633. unsigned char BYTE;
  3634. struct {
  3635. #ifdef __RX_LITTLE_ENDIAN__
  3636. unsigned char : 7;
  3637. unsigned char DPSEL : 1;
  3638. #else
  3639. unsigned char DPSEL : 1;
  3640. unsigned char : 7;
  3641. #endif
  3642. } BIT;
  3643. } DADPR;
  3644. union {
  3645. unsigned char BYTE;
  3646. struct {
  3647. #ifdef __RX_LITTLE_ENDIAN__
  3648. unsigned char : 7;
  3649. unsigned char DAADST : 1;
  3650. #else
  3651. unsigned char DAADST : 1;
  3652. unsigned char : 7;
  3653. #endif
  3654. } BIT;
  3655. } DAADSCR;
  3656. char wk0[1];
  3657. union {
  3658. unsigned char BYTE;
  3659. struct {
  3660. #ifdef __RX_LITTLE_ENDIAN__
  3661. unsigned char : 6;
  3662. unsigned char DAAMP0 : 1;
  3663. unsigned char DAAMP1 : 1;
  3664. #else
  3665. unsigned char DAAMP1 : 1;
  3666. unsigned char DAAMP0 : 1;
  3667. unsigned char : 6;
  3668. #endif
  3669. } BIT;
  3670. } DAAMPCR;
  3671. char wk1[19];
  3672. union {
  3673. unsigned char BYTE;
  3674. struct {
  3675. #ifdef __RX_LITTLE_ENDIAN__
  3676. unsigned char : 6;
  3677. unsigned char DAASW0 : 1;
  3678. unsigned char DAASW1 : 1;
  3679. #else
  3680. unsigned char DAASW1 : 1;
  3681. unsigned char DAASW0 : 1;
  3682. unsigned char : 6;
  3683. #endif
  3684. } BIT;
  3685. } DAASWCR;
  3686. char wk2[17763];
  3687. union {
  3688. unsigned char BYTE;
  3689. struct {
  3690. #ifdef __RX_LITTLE_ENDIAN__
  3691. unsigned char : 1;
  3692. unsigned char AMADSEL1 : 1;
  3693. unsigned char : 6;
  3694. #else
  3695. unsigned char : 6;
  3696. unsigned char AMADSEL1 : 1;
  3697. unsigned char : 1;
  3698. #endif
  3699. } BIT;
  3700. } DAADUSR;
  3701. } st_da_t;
  3702. typedef struct st_dmac {
  3703. union {
  3704. unsigned char BYTE;
  3705. struct {
  3706. #ifdef __RX_LITTLE_ENDIAN__
  3707. unsigned char DMST : 1;
  3708. unsigned char : 7;
  3709. #else
  3710. unsigned char : 7;
  3711. unsigned char DMST : 1;
  3712. #endif
  3713. } BIT;
  3714. } DMAST;
  3715. char wk0[3];
  3716. union {
  3717. unsigned char BYTE;
  3718. struct {
  3719. #ifdef __RX_LITTLE_ENDIAN__
  3720. unsigned char : 4;
  3721. unsigned char DMIS4 : 1;
  3722. unsigned char DMIS5 : 1;
  3723. unsigned char DMIS6 : 1;
  3724. unsigned char DMIS7 : 1;
  3725. #else
  3726. unsigned char DMIS7 : 1;
  3727. unsigned char DMIS6 : 1;
  3728. unsigned char DMIS5 : 1;
  3729. unsigned char DMIS4 : 1;
  3730. unsigned char : 4;
  3731. #endif
  3732. } BIT;
  3733. } DMIST;
  3734. } st_dmac_t;
  3735. typedef struct st_dmac0 {
  3736. void *DMSAR;
  3737. void *DMDAR;
  3738. unsigned long DMCRA;
  3739. unsigned short DMCRB;
  3740. char wk0[2];
  3741. union {
  3742. unsigned short WORD;
  3743. struct {
  3744. #ifdef __RX_LITTLE_ENDIAN__
  3745. unsigned short DCTG : 2;
  3746. unsigned short : 6;
  3747. unsigned short SZ : 2;
  3748. unsigned short : 2;
  3749. unsigned short DTS : 2;
  3750. unsigned short MD : 2;
  3751. #else
  3752. unsigned short MD : 2;
  3753. unsigned short DTS : 2;
  3754. unsigned short : 2;
  3755. unsigned short SZ : 2;
  3756. unsigned short : 6;
  3757. unsigned short DCTG : 2;
  3758. #endif
  3759. } BIT;
  3760. } DMTMD;
  3761. char wk1[1];
  3762. union {
  3763. unsigned char BYTE;
  3764. struct {
  3765. #ifdef __RX_LITTLE_ENDIAN__
  3766. unsigned char DARIE : 1;
  3767. unsigned char SARIE : 1;
  3768. unsigned char RPTIE : 1;
  3769. unsigned char ESIE : 1;
  3770. unsigned char DTIE : 1;
  3771. unsigned char : 3;
  3772. #else
  3773. unsigned char : 3;
  3774. unsigned char DTIE : 1;
  3775. unsigned char ESIE : 1;
  3776. unsigned char RPTIE : 1;
  3777. unsigned char SARIE : 1;
  3778. unsigned char DARIE : 1;
  3779. #endif
  3780. } BIT;
  3781. } DMINT;
  3782. union {
  3783. unsigned short WORD;
  3784. struct {
  3785. #ifdef __RX_LITTLE_ENDIAN__
  3786. unsigned short DARA : 5;
  3787. unsigned short : 1;
  3788. unsigned short DM : 2;
  3789. unsigned short SARA : 5;
  3790. unsigned short : 1;
  3791. unsigned short SM : 2;
  3792. #else
  3793. unsigned short SM : 2;
  3794. unsigned short : 1;
  3795. unsigned short SARA : 5;
  3796. unsigned short DM : 2;
  3797. unsigned short : 1;
  3798. unsigned short DARA : 5;
  3799. #endif
  3800. } BIT;
  3801. } DMAMD;
  3802. char wk2[2];
  3803. unsigned long DMOFR;
  3804. union {
  3805. unsigned char BYTE;
  3806. struct {
  3807. #ifdef __RX_LITTLE_ENDIAN__
  3808. unsigned char DTE : 1;
  3809. unsigned char : 7;
  3810. #else
  3811. unsigned char : 7;
  3812. unsigned char DTE : 1;
  3813. #endif
  3814. } BIT;
  3815. } DMCNT;
  3816. union {
  3817. unsigned char BYTE;
  3818. struct {
  3819. #ifdef __RX_LITTLE_ENDIAN__
  3820. unsigned char SWREQ : 1;
  3821. unsigned char : 3;
  3822. unsigned char CLRS : 1;
  3823. unsigned char : 3;
  3824. #else
  3825. unsigned char : 3;
  3826. unsigned char CLRS : 1;
  3827. unsigned char : 3;
  3828. unsigned char SWREQ : 1;
  3829. #endif
  3830. } BIT;
  3831. } DMREQ;
  3832. union {
  3833. unsigned char BYTE;
  3834. struct {
  3835. #ifdef __RX_LITTLE_ENDIAN__
  3836. unsigned char ESIF : 1;
  3837. unsigned char : 3;
  3838. unsigned char DTIF : 1;
  3839. unsigned char : 2;
  3840. unsigned char ACT : 1;
  3841. #else
  3842. unsigned char ACT : 1;
  3843. unsigned char : 2;
  3844. unsigned char DTIF : 1;
  3845. unsigned char : 3;
  3846. unsigned char ESIF : 1;
  3847. #endif
  3848. } BIT;
  3849. } DMSTS;
  3850. union {
  3851. unsigned char BYTE;
  3852. struct {
  3853. #ifdef __RX_LITTLE_ENDIAN__
  3854. unsigned char DISEL : 1;
  3855. unsigned char : 7;
  3856. #else
  3857. unsigned char : 7;
  3858. unsigned char DISEL : 1;
  3859. #endif
  3860. } BIT;
  3861. } DMCSL;
  3862. } st_dmac0_t;
  3863. typedef struct st_dmac1 {
  3864. void *DMSAR;
  3865. void *DMDAR;
  3866. unsigned long DMCRA;
  3867. unsigned short DMCRB;
  3868. char wk0[2];
  3869. union {
  3870. unsigned short WORD;
  3871. struct {
  3872. #ifdef __RX_LITTLE_ENDIAN__
  3873. unsigned short DCTG : 2;
  3874. unsigned short : 6;
  3875. unsigned short SZ : 2;
  3876. unsigned short : 2;
  3877. unsigned short DTS : 2;
  3878. unsigned short MD : 2;
  3879. #else
  3880. unsigned short MD : 2;
  3881. unsigned short DTS : 2;
  3882. unsigned short : 2;
  3883. unsigned short SZ : 2;
  3884. unsigned short : 6;
  3885. unsigned short DCTG : 2;
  3886. #endif
  3887. } BIT;
  3888. } DMTMD;
  3889. char wk1[1];
  3890. union {
  3891. unsigned char BYTE;
  3892. struct {
  3893. #ifdef __RX_LITTLE_ENDIAN__
  3894. unsigned char DARIE : 1;
  3895. unsigned char SARIE : 1;
  3896. unsigned char RPTIE : 1;
  3897. unsigned char ESIE : 1;
  3898. unsigned char DTIE : 1;
  3899. unsigned char : 3;
  3900. #else
  3901. unsigned char : 3;
  3902. unsigned char DTIE : 1;
  3903. unsigned char ESIE : 1;
  3904. unsigned char RPTIE : 1;
  3905. unsigned char SARIE : 1;
  3906. unsigned char DARIE : 1;
  3907. #endif
  3908. } BIT;
  3909. } DMINT;
  3910. union {
  3911. unsigned short WORD;
  3912. struct {
  3913. #ifdef __RX_LITTLE_ENDIAN__
  3914. unsigned short DARA : 5;
  3915. unsigned short : 1;
  3916. unsigned short DM : 2;
  3917. unsigned short SARA : 5;
  3918. unsigned short : 1;
  3919. unsigned short SM : 2;
  3920. #else
  3921. unsigned short SM : 2;
  3922. unsigned short : 1;
  3923. unsigned short SARA : 5;
  3924. unsigned short DM : 2;
  3925. unsigned short : 1;
  3926. unsigned short DARA : 5;
  3927. #endif
  3928. } BIT;
  3929. } DMAMD;
  3930. char wk2[6];
  3931. union {
  3932. unsigned char BYTE;
  3933. struct {
  3934. #ifdef __RX_LITTLE_ENDIAN__
  3935. unsigned char DTE : 1;
  3936. unsigned char : 7;
  3937. #else
  3938. unsigned char : 7;
  3939. unsigned char DTE : 1;
  3940. #endif
  3941. } BIT;
  3942. } DMCNT;
  3943. union {
  3944. unsigned char BYTE;
  3945. struct {
  3946. #ifdef __RX_LITTLE_ENDIAN__
  3947. unsigned char SWREQ : 1;
  3948. unsigned char : 3;
  3949. unsigned char CLRS : 1;
  3950. unsigned char : 3;
  3951. #else
  3952. unsigned char : 3;
  3953. unsigned char CLRS : 1;
  3954. unsigned char : 3;
  3955. unsigned char SWREQ : 1;
  3956. #endif
  3957. } BIT;
  3958. } DMREQ;
  3959. union {
  3960. unsigned char BYTE;
  3961. struct {
  3962. #ifdef __RX_LITTLE_ENDIAN__
  3963. unsigned char ESIF : 1;
  3964. unsigned char : 3;
  3965. unsigned char DTIF : 1;
  3966. unsigned char : 2;
  3967. unsigned char ACT : 1;
  3968. #else
  3969. unsigned char ACT : 1;
  3970. unsigned char : 2;
  3971. unsigned char DTIF : 1;
  3972. unsigned char : 3;
  3973. unsigned char ESIF : 1;
  3974. #endif
  3975. } BIT;
  3976. } DMSTS;
  3977. union {
  3978. unsigned char BYTE;
  3979. struct {
  3980. #ifdef __RX_LITTLE_ENDIAN__
  3981. unsigned char DISEL : 1;
  3982. unsigned char : 7;
  3983. #else
  3984. unsigned char : 7;
  3985. unsigned char DISEL : 1;
  3986. #endif
  3987. } BIT;
  3988. } DMCSL;
  3989. } st_dmac1_t;
  3990. typedef struct st_doc {
  3991. union {
  3992. unsigned char BYTE;
  3993. struct {
  3994. #ifdef __RX_LITTLE_ENDIAN__
  3995. unsigned char OMS : 2;
  3996. unsigned char DCSEL : 1;
  3997. unsigned char : 1;
  3998. unsigned char DOPCIE : 1;
  3999. unsigned char DOPCF : 1;
  4000. unsigned char DOPCFCL : 1;
  4001. unsigned char : 1;
  4002. #else
  4003. unsigned char : 1;
  4004. unsigned char DOPCFCL : 1;
  4005. unsigned char DOPCF : 1;
  4006. unsigned char DOPCIE : 1;
  4007. unsigned char : 1;
  4008. unsigned char DCSEL : 1;
  4009. unsigned char OMS : 2;
  4010. #endif
  4011. } BIT;
  4012. } DOCR;
  4013. char wk0[1];
  4014. unsigned short DODIR;
  4015. unsigned short DODSR;
  4016. } st_doc_t;
  4017. typedef struct st_drw2d {
  4018. union {
  4019. union {
  4020. unsigned long LONG;
  4021. struct {
  4022. #ifdef __RX_LITTLE_ENDIAN__
  4023. unsigned long LIM1EN : 1;
  4024. unsigned long LIM2EN : 1;
  4025. unsigned long LIM3EN : 1;
  4026. unsigned long LIM4EN : 1;
  4027. unsigned long LIM5EN : 1;
  4028. unsigned long LIM6EN : 1;
  4029. unsigned long QUAD1EN : 1;
  4030. unsigned long QUAD2EN : 1;
  4031. unsigned long QUAD3EN : 1;
  4032. unsigned long LIM1TH : 1;
  4033. unsigned long LIM2TH : 1;
  4034. unsigned long LIM3TH : 1;
  4035. unsigned long LIM4TH : 1;
  4036. unsigned long LIM5TH : 1;
  4037. unsigned long LIM6TH : 1;
  4038. unsigned long BAND1EN : 1;
  4039. unsigned long BAND2EN : 1;
  4040. unsigned long UNION12 : 1;
  4041. unsigned long UNION34 : 1;
  4042. unsigned long UNION56 : 1;
  4043. unsigned long UNIONAB : 1;
  4044. unsigned long UNIONCD : 1;
  4045. unsigned long SPANABT : 1;
  4046. unsigned long SPANSTR : 1;
  4047. unsigned long : 8;
  4048. #else
  4049. unsigned long : 8;
  4050. unsigned long SPANSTR : 1;
  4051. unsigned long SPANABT : 1;
  4052. unsigned long UNIONCD : 1;
  4053. unsigned long UNIONAB : 1;
  4054. unsigned long UNION56 : 1;
  4055. unsigned long UNION34 : 1;
  4056. unsigned long UNION12 : 1;
  4057. unsigned long BAND2EN : 1;
  4058. unsigned long BAND1EN : 1;
  4059. unsigned long LIM6TH : 1;
  4060. unsigned long LIM5TH : 1;
  4061. unsigned long LIM4TH : 1;
  4062. unsigned long LIM3TH : 1;
  4063. unsigned long LIM2TH : 1;
  4064. unsigned long LIM1TH : 1;
  4065. unsigned long QUAD3EN : 1;
  4066. unsigned long QUAD2EN : 1;
  4067. unsigned long QUAD1EN : 1;
  4068. unsigned long LIM6EN : 1;
  4069. unsigned long LIM5EN : 1;
  4070. unsigned long LIM4EN : 1;
  4071. unsigned long LIM3EN : 1;
  4072. unsigned long LIM2EN : 1;
  4073. unsigned long LIM1EN : 1;
  4074. #endif
  4075. } BIT;
  4076. } CONTROL;
  4077. union {
  4078. unsigned long LONG;
  4079. struct {
  4080. #ifdef __RX_LITTLE_ENDIAN__
  4081. unsigned long BSYENUM : 1;
  4082. unsigned long BSYWR : 1;
  4083. unsigned long CACHEDTY : 1;
  4084. unsigned long DLSTACT : 1;
  4085. unsigned long ENUIR : 1;
  4086. unsigned long DLIR : 1;
  4087. unsigned long : 26;
  4088. #else
  4089. unsigned long : 26;
  4090. unsigned long DLIR : 1;
  4091. unsigned long ENUIR : 1;
  4092. unsigned long DLSTACT : 1;
  4093. unsigned long CACHEDTY : 1;
  4094. unsigned long BSYWR : 1;
  4095. unsigned long BSYENUM : 1;
  4096. #endif
  4097. } BIT;
  4098. } STATUS;
  4099. };
  4100. union {
  4101. union {
  4102. unsigned long LONG;
  4103. struct {
  4104. #ifdef __RX_LITTLE_ENDIAN__
  4105. unsigned long PTNEN : 1;
  4106. unsigned long TEXENA : 1;
  4107. unsigned long PTNSRCL5 : 1;
  4108. unsigned long USEACB : 1;
  4109. unsigned long RDFMT2 : 2;
  4110. unsigned long BSFA : 1;
  4111. unsigned long BDFA : 1;
  4112. unsigned long WRFMT2 : 1;
  4113. unsigned long BSF : 1;
  4114. unsigned long BDF : 1;
  4115. unsigned long BSI : 1;
  4116. unsigned long BDI : 1;
  4117. unsigned long BC2 : 1;
  4118. unsigned long TEXCLPX : 1;
  4119. unsigned long TEXCLPY : 1;
  4120. unsigned long TEXFILTX : 1;
  4121. unsigned long TEXFILTY : 1;
  4122. unsigned long RDFMT : 2;
  4123. unsigned long WRFMT : 2;
  4124. unsigned long WRALPHA : 2;
  4125. unsigned long RLEEN : 1;
  4126. unsigned long CLUTEN : 1;
  4127. unsigned long COLKEYEN : 1;
  4128. unsigned long CLUTFORM : 1;
  4129. unsigned long BSIA : 1;
  4130. unsigned long BDIA : 1;
  4131. unsigned long RLEPIXW : 2;
  4132. #else
  4133. unsigned long RLEPIXW : 2;
  4134. unsigned long BDIA : 1;
  4135. unsigned long BSIA : 1;
  4136. unsigned long CLUTFORM : 1;
  4137. unsigned long COLKEYEN : 1;
  4138. unsigned long CLUTEN : 1;
  4139. unsigned long RLEEN : 1;
  4140. unsigned long WRALPHA : 2;
  4141. unsigned long WRFMT : 2;
  4142. unsigned long RDFMT : 2;
  4143. unsigned long TEXFILTY : 1;
  4144. unsigned long TEXFILTX : 1;
  4145. unsigned long TEXCLPY : 1;
  4146. unsigned long TEXCLPX : 1;
  4147. unsigned long BC2 : 1;
  4148. unsigned long BDI : 1;
  4149. unsigned long BSI : 1;
  4150. unsigned long BDF : 1;
  4151. unsigned long BSF : 1;
  4152. unsigned long WRFMT2 : 1;
  4153. unsigned long BDFA : 1;
  4154. unsigned long BSFA : 1;
  4155. unsigned long RDFMT2 : 2;
  4156. unsigned long USEACB : 1;
  4157. unsigned long PTNSRCL5 : 1;
  4158. unsigned long TEXENA : 1;
  4159. unsigned long PTNEN : 1;
  4160. #endif
  4161. } BIT;
  4162. } CONTROL2;
  4163. union {
  4164. unsigned long LONG;
  4165. struct {
  4166. #ifdef __RX_LITTLE_ENDIAN__
  4167. unsigned long REV : 12;
  4168. unsigned long : 5;
  4169. unsigned long DLR : 1;
  4170. unsigned long FBCACHE : 1;
  4171. unsigned long TXCACHE : 1;
  4172. unsigned long PERFCNT : 1;
  4173. unsigned long TEXCLUT : 1;
  4174. unsigned long : 1;
  4175. unsigned long RLEUNIT : 1;
  4176. unsigned long TEXCLUT256 : 1;
  4177. unsigned long COLKEY : 1;
  4178. unsigned long : 1;
  4179. unsigned long ACBLD : 1;
  4180. unsigned long : 4;
  4181. #else
  4182. unsigned long : 4;
  4183. unsigned long ACBLD : 1;
  4184. unsigned long : 1;
  4185. unsigned long COLKEY : 1;
  4186. unsigned long TEXCLUT256 : 1;
  4187. unsigned long RLEUNIT : 1;
  4188. unsigned long : 1;
  4189. unsigned long TEXCLUT : 1;
  4190. unsigned long PERFCNT : 1;
  4191. unsigned long TXCACHE : 1;
  4192. unsigned long FBCACHE : 1;
  4193. unsigned long DLR : 1;
  4194. unsigned long : 5;
  4195. unsigned long REV : 12;
  4196. #endif
  4197. } BIT;
  4198. } HWVER;
  4199. };
  4200. char wk0[8];
  4201. unsigned long L1START;
  4202. unsigned long L2START;
  4203. unsigned long L3START;
  4204. unsigned long L4START;
  4205. unsigned long L5START;
  4206. unsigned long L6START;
  4207. unsigned long L1XADD;
  4208. unsigned long L2XADD;
  4209. unsigned long L3XADD;
  4210. unsigned long L4XADD;
  4211. unsigned long L5XADD;
  4212. unsigned long L6XADD;
  4213. unsigned long L1YADD;
  4214. unsigned long L2YADD;
  4215. unsigned long L3YADD;
  4216. unsigned long L4YADD;
  4217. unsigned long L5YADD;
  4218. unsigned long L6YADD;
  4219. unsigned long L1BAND;
  4220. unsigned long L2BAND;
  4221. char wk1[4];
  4222. union {
  4223. unsigned long LONG;
  4224. struct {
  4225. #ifdef __RX_LITTLE_ENDIAN__
  4226. unsigned long COL1B : 8;
  4227. unsigned long COL1G : 8;
  4228. unsigned long COL1R : 8;
  4229. unsigned long COL1A : 8;
  4230. #else
  4231. unsigned long COL1A : 8;
  4232. unsigned long COL1R : 8;
  4233. unsigned long COL1G : 8;
  4234. unsigned long COL1B : 8;
  4235. #endif
  4236. } BIT;
  4237. } COLOR1;
  4238. union {
  4239. unsigned long LONG;
  4240. struct {
  4241. #ifdef __RX_LITTLE_ENDIAN__
  4242. unsigned long COL2B : 8;
  4243. unsigned long COL2G : 8;
  4244. unsigned long COL2R : 8;
  4245. unsigned long COL2A : 8;
  4246. #else
  4247. unsigned long COL2A : 8;
  4248. unsigned long COL2R : 8;
  4249. unsigned long COL2G : 8;
  4250. unsigned long COL2B : 8;
  4251. #endif
  4252. } BIT;
  4253. } COLOR2;
  4254. char wk2[8];
  4255. unsigned long PATTERN;
  4256. union {
  4257. unsigned long LONG;
  4258. struct {
  4259. #ifdef __RX_LITTLE_ENDIAN__
  4260. unsigned long X : 16;
  4261. unsigned long Y : 16;
  4262. #else
  4263. unsigned long Y : 16;
  4264. unsigned long X : 16;
  4265. #endif
  4266. } BIT;
  4267. } SIZE;
  4268. union {
  4269. unsigned long LONG;
  4270. struct {
  4271. #ifdef __RX_LITTLE_ENDIAN__
  4272. unsigned long PITCH : 16;
  4273. unsigned long SSD : 16;
  4274. #else
  4275. unsigned long SSD : 16;
  4276. unsigned long PITCH : 16;
  4277. #endif
  4278. } BIT;
  4279. } PITCH;
  4280. unsigned long ORIGIN;
  4281. char wk3[12];
  4282. unsigned long LUST;
  4283. unsigned long LUXADD;
  4284. unsigned long LUYADD;
  4285. unsigned long LVSTI;
  4286. unsigned long LVSTF;
  4287. unsigned long LVXADDI;
  4288. unsigned long LVYADDI;
  4289. union {
  4290. unsigned long LONG;
  4291. struct {
  4292. #ifdef __RX_LITTLE_ENDIAN__
  4293. unsigned long LVXADDF : 16;
  4294. unsigned long LVYADDF : 16;
  4295. #else
  4296. unsigned long LVYADDF : 16;
  4297. unsigned long LVXADDF : 16;
  4298. #endif
  4299. } BIT;
  4300. } LVYXADDF;
  4301. char wk4[4];
  4302. unsigned long TEXPITCH;
  4303. union {
  4304. unsigned long LONG;
  4305. struct {
  4306. #ifdef __RX_LITTLE_ENDIAN__
  4307. unsigned long TEXUMSK : 11;
  4308. unsigned long TEXVMSK : 21;
  4309. #else
  4310. unsigned long TEXVMSK : 21;
  4311. unsigned long TEXUMSK : 11;
  4312. #endif
  4313. } BIT;
  4314. } TEXMSK;
  4315. unsigned long TEXORG;
  4316. union {
  4317. unsigned long LONG;
  4318. struct {
  4319. #ifdef __RX_LITTLE_ENDIAN__
  4320. unsigned long ENUIREN : 1;
  4321. unsigned long DLIREN : 1;
  4322. unsigned long ENUIRCLR : 1;
  4323. unsigned long DLIRCLR : 1;
  4324. unsigned long : 28;
  4325. #else
  4326. unsigned long : 28;
  4327. unsigned long DLIRCLR : 1;
  4328. unsigned long ENUIRCLR : 1;
  4329. unsigned long DLIREN : 1;
  4330. unsigned long ENUIREN : 1;
  4331. #endif
  4332. } BIT;
  4333. } IRQCTL;
  4334. union {
  4335. unsigned long LONG;
  4336. struct {
  4337. #ifdef __RX_LITTLE_ENDIAN__
  4338. unsigned long CENFX : 1;
  4339. unsigned long CFLUFX : 1;
  4340. unsigned long CENTX : 1;
  4341. unsigned long CFLUTX : 1;
  4342. unsigned long : 28;
  4343. #else
  4344. unsigned long : 28;
  4345. unsigned long CFLUTX : 1;
  4346. unsigned long CENTX : 1;
  4347. unsigned long CFLUFX : 1;
  4348. unsigned long CENFX : 1;
  4349. #endif
  4350. } BIT;
  4351. } CACHECTL;
  4352. unsigned long DLISTST;
  4353. unsigned long PERFCNT1;
  4354. unsigned long PERFCNT2;
  4355. union {
  4356. unsigned long LONG;
  4357. struct {
  4358. #ifdef __RX_LITTLE_ENDIAN__
  4359. unsigned long TRG1 : 16;
  4360. unsigned long TRG2 : 16;
  4361. #else
  4362. unsigned long TRG2 : 16;
  4363. unsigned long TRG1 : 16;
  4364. #endif
  4365. } BIT;
  4366. } PERFTRG;
  4367. char wk5[4];
  4368. unsigned long TEXCLADDR;
  4369. unsigned long TEXCLDATA;
  4370. unsigned long TEXCLOFST;
  4371. union {
  4372. unsigned long LONG;
  4373. struct {
  4374. #ifdef __RX_LITTLE_ENDIAN__
  4375. unsigned long B : 8;
  4376. unsigned long G : 8;
  4377. unsigned long R : 8;
  4378. unsigned long : 8;
  4379. #else
  4380. unsigned long : 8;
  4381. unsigned long R : 8;
  4382. unsigned long G : 8;
  4383. unsigned long B : 8;
  4384. #endif
  4385. } BIT;
  4386. } COLKEY;
  4387. } st_drw2d_t;
  4388. typedef struct st_dtc {
  4389. union {
  4390. unsigned char BYTE;
  4391. struct {
  4392. #ifdef __RX_LITTLE_ENDIAN__
  4393. unsigned char : 4;
  4394. unsigned char RRS : 1;
  4395. unsigned char : 3;
  4396. #else
  4397. unsigned char : 3;
  4398. unsigned char RRS : 1;
  4399. unsigned char : 4;
  4400. #endif
  4401. } BIT;
  4402. } DTCCR;
  4403. char wk0[3];
  4404. void *DTCVBR;
  4405. union {
  4406. unsigned char BYTE;
  4407. struct {
  4408. #ifdef __RX_LITTLE_ENDIAN__
  4409. unsigned char SHORT : 1;
  4410. unsigned char : 7;
  4411. #else
  4412. unsigned char : 7;
  4413. unsigned char SHORT : 1;
  4414. #endif
  4415. } BIT;
  4416. } DTCADMOD;
  4417. char wk1[3];
  4418. union {
  4419. unsigned char BYTE;
  4420. struct {
  4421. #ifdef __RX_LITTLE_ENDIAN__
  4422. unsigned char DTCST : 1;
  4423. unsigned char : 7;
  4424. #else
  4425. unsigned char : 7;
  4426. unsigned char DTCST : 1;
  4427. #endif
  4428. } BIT;
  4429. } DTCST;
  4430. char wk2[1];
  4431. union {
  4432. unsigned short WORD;
  4433. struct {
  4434. #ifdef __RX_LITTLE_ENDIAN__
  4435. unsigned short VECN : 8;
  4436. unsigned short : 7;
  4437. unsigned short ACT : 1;
  4438. #else
  4439. unsigned short ACT : 1;
  4440. unsigned short : 7;
  4441. unsigned short VECN : 8;
  4442. #endif
  4443. } BIT;
  4444. } DTCSTS;
  4445. void *DTCIBR;
  4446. union {
  4447. unsigned char BYTE;
  4448. struct {
  4449. #ifdef __RX_LITTLE_ENDIAN__
  4450. unsigned char SQTFRL : 1;
  4451. unsigned char : 7;
  4452. #else
  4453. unsigned char : 7;
  4454. unsigned char SQTFRL : 1;
  4455. #endif
  4456. } BIT;
  4457. } DTCOR;
  4458. char wk3[1];
  4459. union {
  4460. unsigned short WORD;
  4461. struct {
  4462. #ifdef __RX_LITTLE_ENDIAN__
  4463. unsigned short VECN : 8;
  4464. unsigned short : 7;
  4465. unsigned short ESPSEL : 1;
  4466. #else
  4467. unsigned short ESPSEL : 1;
  4468. unsigned short : 7;
  4469. unsigned short VECN : 8;
  4470. #endif
  4471. } BIT;
  4472. } DTCSQE;
  4473. unsigned long DTCDISP;
  4474. } st_dtc_t;
  4475. typedef struct st_edmac {
  4476. union {
  4477. unsigned long LONG;
  4478. struct {
  4479. #ifdef __RX_LITTLE_ENDIAN__
  4480. unsigned long SWR : 1;
  4481. unsigned long : 3;
  4482. unsigned long DL : 2;
  4483. unsigned long DE : 1;
  4484. unsigned long : 25;
  4485. #else
  4486. unsigned long : 25;
  4487. unsigned long DE : 1;
  4488. unsigned long DL : 2;
  4489. unsigned long : 3;
  4490. unsigned long SWR : 1;
  4491. #endif
  4492. } BIT;
  4493. } EDMR;
  4494. char wk0[4];
  4495. union {
  4496. unsigned long LONG;
  4497. struct {
  4498. #ifdef __RX_LITTLE_ENDIAN__
  4499. unsigned long TR : 1;
  4500. unsigned long : 31;
  4501. #else
  4502. unsigned long : 31;
  4503. unsigned long TR : 1;
  4504. #endif
  4505. } BIT;
  4506. } EDTRR;
  4507. char wk1[4];
  4508. union {
  4509. unsigned long LONG;
  4510. struct {
  4511. #ifdef __RX_LITTLE_ENDIAN__
  4512. unsigned long RR : 1;
  4513. unsigned long : 31;
  4514. #else
  4515. unsigned long : 31;
  4516. unsigned long RR : 1;
  4517. #endif
  4518. } BIT;
  4519. } EDRRR;
  4520. char wk2[4];
  4521. void *TDLAR;
  4522. char wk3[4];
  4523. void *RDLAR;
  4524. char wk4[4];
  4525. union {
  4526. unsigned long LONG;
  4527. struct {
  4528. #ifdef __RX_LITTLE_ENDIAN__
  4529. unsigned long CERF : 1;
  4530. unsigned long PRE : 1;
  4531. unsigned long RTSF : 1;
  4532. unsigned long RTLF : 1;
  4533. unsigned long RRF : 1;
  4534. unsigned long : 2;
  4535. unsigned long RMAF : 1;
  4536. unsigned long TRO : 1;
  4537. unsigned long CD : 1;
  4538. unsigned long DLC : 1;
  4539. unsigned long CND : 1;
  4540. unsigned long : 4;
  4541. unsigned long RFOF : 1;
  4542. unsigned long RDE : 1;
  4543. unsigned long FR : 1;
  4544. unsigned long TFUF : 1;
  4545. unsigned long TDE : 1;
  4546. unsigned long TC : 1;
  4547. unsigned long ECI : 1;
  4548. unsigned long : 1;
  4549. unsigned long RFCOF : 1;
  4550. unsigned long RABT : 1;
  4551. unsigned long TABT : 1;
  4552. unsigned long : 3;
  4553. unsigned long TWB : 1;
  4554. unsigned long : 1;
  4555. #else
  4556. unsigned long : 1;
  4557. unsigned long TWB : 1;
  4558. unsigned long : 3;
  4559. unsigned long TABT : 1;
  4560. unsigned long RABT : 1;
  4561. unsigned long RFCOF : 1;
  4562. unsigned long : 1;
  4563. unsigned long ECI : 1;
  4564. unsigned long TC : 1;
  4565. unsigned long TDE : 1;
  4566. unsigned long TFUF : 1;
  4567. unsigned long FR : 1;
  4568. unsigned long RDE : 1;
  4569. unsigned long RFOF : 1;
  4570. unsigned long : 4;
  4571. unsigned long CND : 1;
  4572. unsigned long DLC : 1;
  4573. unsigned long CD : 1;
  4574. unsigned long TRO : 1;
  4575. unsigned long RMAF : 1;
  4576. unsigned long : 2;
  4577. unsigned long RRF : 1;
  4578. unsigned long RTLF : 1;
  4579. unsigned long RTSF : 1;
  4580. unsigned long PRE : 1;
  4581. unsigned long CERF : 1;
  4582. #endif
  4583. } BIT;
  4584. } EESR;
  4585. char wk5[4];
  4586. union {
  4587. unsigned long LONG;
  4588. struct {
  4589. #ifdef __RX_LITTLE_ENDIAN__
  4590. unsigned long CERFIP : 1;
  4591. unsigned long PREIP : 1;
  4592. unsigned long RTSFIP : 1;
  4593. unsigned long RTLFIP : 1;
  4594. unsigned long RRFIP : 1;
  4595. unsigned long : 2;
  4596. unsigned long RMAFIP : 1;
  4597. unsigned long TROIP : 1;
  4598. unsigned long CDIP : 1;
  4599. unsigned long DLCIP : 1;
  4600. unsigned long CNDIP : 1;
  4601. unsigned long : 4;
  4602. unsigned long RFOFIP : 1;
  4603. unsigned long RDEIP : 1;
  4604. unsigned long FRIP : 1;
  4605. unsigned long TFUFIP : 1;
  4606. unsigned long TDEIP : 1;
  4607. unsigned long TCIP : 1;
  4608. unsigned long ECIIP : 1;
  4609. unsigned long : 1;
  4610. unsigned long RFCOFIP : 1;
  4611. unsigned long RABTIP : 1;
  4612. unsigned long TABTIP : 1;
  4613. unsigned long : 3;
  4614. unsigned long TWBIP : 1;
  4615. unsigned long : 1;
  4616. #else
  4617. unsigned long : 1;
  4618. unsigned long TWBIP : 1;
  4619. unsigned long : 3;
  4620. unsigned long TABTIP : 1;
  4621. unsigned long RABTIP : 1;
  4622. unsigned long RFCOFIP : 1;
  4623. unsigned long : 1;
  4624. unsigned long ECIIP : 1;
  4625. unsigned long TCIP : 1;
  4626. unsigned long TDEIP : 1;
  4627. unsigned long TFUFIP : 1;
  4628. unsigned long FRIP : 1;
  4629. unsigned long RDEIP : 1;
  4630. unsigned long RFOFIP : 1;
  4631. unsigned long : 4;
  4632. unsigned long CNDIP : 1;
  4633. unsigned long DLCIP : 1;
  4634. unsigned long CDIP : 1;
  4635. unsigned long TROIP : 1;
  4636. unsigned long RMAFIP : 1;
  4637. unsigned long : 2;
  4638. unsigned long RRFIP : 1;
  4639. unsigned long RTLFIP : 1;
  4640. unsigned long RTSFIP : 1;
  4641. unsigned long PREIP : 1;
  4642. unsigned long CERFIP : 1;
  4643. #endif
  4644. } BIT;
  4645. } EESIPR;
  4646. char wk6[4];
  4647. union {
  4648. unsigned long LONG;
  4649. struct {
  4650. #ifdef __RX_LITTLE_ENDIAN__
  4651. unsigned long : 4;
  4652. unsigned long RRFCE : 1;
  4653. unsigned long : 2;
  4654. unsigned long RMAFCE : 1;
  4655. unsigned long : 24;
  4656. #else
  4657. unsigned long : 24;
  4658. unsigned long RMAFCE : 1;
  4659. unsigned long : 2;
  4660. unsigned long RRFCE : 1;
  4661. unsigned long : 4;
  4662. #endif
  4663. } BIT;
  4664. } TRSCER;
  4665. char wk7[4];
  4666. union {
  4667. unsigned long LONG;
  4668. struct {
  4669. #ifdef __RX_LITTLE_ENDIAN__
  4670. unsigned long MFC : 16;
  4671. unsigned long : 16;
  4672. #else
  4673. unsigned long : 16;
  4674. unsigned long MFC : 16;
  4675. #endif
  4676. } BIT;
  4677. } RMFCR;
  4678. char wk8[4];
  4679. union {
  4680. unsigned long LONG;
  4681. struct {
  4682. #ifdef __RX_LITTLE_ENDIAN__
  4683. unsigned long TFT : 11;
  4684. unsigned long : 21;
  4685. #else
  4686. unsigned long : 21;
  4687. unsigned long TFT : 11;
  4688. #endif
  4689. } BIT;
  4690. } TFTR;
  4691. char wk9[4];
  4692. union {
  4693. unsigned long LONG;
  4694. struct {
  4695. #ifdef __RX_LITTLE_ENDIAN__
  4696. unsigned long RFD : 5;
  4697. unsigned long : 3;
  4698. unsigned long TFD : 5;
  4699. unsigned long : 19;
  4700. #else
  4701. unsigned long : 19;
  4702. unsigned long TFD : 5;
  4703. unsigned long : 3;
  4704. unsigned long RFD : 5;
  4705. #endif
  4706. } BIT;
  4707. } FDR;
  4708. char wk10[4];
  4709. union {
  4710. unsigned long LONG;
  4711. struct {
  4712. #ifdef __RX_LITTLE_ENDIAN__
  4713. unsigned long RNR : 1;
  4714. unsigned long : 31;
  4715. #else
  4716. unsigned long : 31;
  4717. unsigned long RNR : 1;
  4718. #endif
  4719. } BIT;
  4720. } RMCR;
  4721. char wk11[8];
  4722. union {
  4723. unsigned long LONG;
  4724. struct {
  4725. #ifdef __RX_LITTLE_ENDIAN__
  4726. unsigned long UNDER : 16;
  4727. unsigned long : 16;
  4728. #else
  4729. unsigned long : 16;
  4730. unsigned long UNDER : 16;
  4731. #endif
  4732. } BIT;
  4733. } TFUCR;
  4734. union {
  4735. unsigned long LONG;
  4736. struct {
  4737. #ifdef __RX_LITTLE_ENDIAN__
  4738. unsigned long OVER : 16;
  4739. unsigned long : 16;
  4740. #else
  4741. unsigned long : 16;
  4742. unsigned long OVER : 16;
  4743. #endif
  4744. } BIT;
  4745. } RFOCR;
  4746. union {
  4747. unsigned long LONG;
  4748. struct {
  4749. #ifdef __RX_LITTLE_ENDIAN__
  4750. unsigned long ELB : 1;
  4751. unsigned long : 31;
  4752. #else
  4753. unsigned long : 31;
  4754. unsigned long ELB : 1;
  4755. #endif
  4756. } BIT;
  4757. } IOSR;
  4758. union {
  4759. unsigned long LONG;
  4760. struct {
  4761. #ifdef __RX_LITTLE_ENDIAN__
  4762. unsigned long RFDO : 3;
  4763. unsigned long : 13;
  4764. unsigned long RFFO : 3;
  4765. unsigned long : 13;
  4766. #else
  4767. unsigned long : 13;
  4768. unsigned long RFFO : 3;
  4769. unsigned long : 13;
  4770. unsigned long RFDO : 3;
  4771. #endif
  4772. } BIT;
  4773. } FCFTR;
  4774. char wk12[4];
  4775. union {
  4776. unsigned long LONG;
  4777. struct {
  4778. #ifdef __RX_LITTLE_ENDIAN__
  4779. unsigned long PADR : 6;
  4780. unsigned long : 10;
  4781. unsigned long PADS : 2;
  4782. unsigned long : 14;
  4783. #else
  4784. unsigned long : 14;
  4785. unsigned long PADS : 2;
  4786. unsigned long : 10;
  4787. unsigned long PADR : 6;
  4788. #endif
  4789. } BIT;
  4790. } RPADIR;
  4791. union {
  4792. unsigned long LONG;
  4793. struct {
  4794. #ifdef __RX_LITTLE_ENDIAN__
  4795. unsigned long TIS : 1;
  4796. unsigned long : 3;
  4797. unsigned long TIM : 1;
  4798. unsigned long : 27;
  4799. #else
  4800. unsigned long : 27;
  4801. unsigned long TIM : 1;
  4802. unsigned long : 3;
  4803. unsigned long TIS : 1;
  4804. #endif
  4805. } BIT;
  4806. } TRIMD;
  4807. char wk13[72];
  4808. void *RBWAR;
  4809. void *RDFAR;
  4810. char wk14[4];
  4811. void *TBRAR;
  4812. void *TDFAR;
  4813. } st_edmac_t;
  4814. typedef struct st_elc {
  4815. union {
  4816. unsigned char BYTE;
  4817. struct {
  4818. #ifdef __RX_LITTLE_ENDIAN__
  4819. unsigned char : 7;
  4820. unsigned char ELCON : 1;
  4821. #else
  4822. unsigned char ELCON : 1;
  4823. unsigned char : 7;
  4824. #endif
  4825. } BIT;
  4826. } ELCR;
  4827. union {
  4828. unsigned char BYTE;
  4829. struct {
  4830. #ifdef __RX_LITTLE_ENDIAN__
  4831. unsigned char ELS : 8;
  4832. #else
  4833. unsigned char ELS : 8;
  4834. #endif
  4835. } BIT;
  4836. } ELSR0;
  4837. char wk0[2];
  4838. union {
  4839. unsigned char BYTE;
  4840. struct {
  4841. #ifdef __RX_LITTLE_ENDIAN__
  4842. unsigned char ELS : 8;
  4843. #else
  4844. unsigned char ELS : 8;
  4845. #endif
  4846. } BIT;
  4847. } ELSR3;
  4848. union {
  4849. unsigned char BYTE;
  4850. struct {
  4851. #ifdef __RX_LITTLE_ENDIAN__
  4852. unsigned char ELS : 8;
  4853. #else
  4854. unsigned char ELS : 8;
  4855. #endif
  4856. } BIT;
  4857. } ELSR4;
  4858. char wk1[2];
  4859. union {
  4860. unsigned char BYTE;
  4861. struct {
  4862. #ifdef __RX_LITTLE_ENDIAN__
  4863. unsigned char ELS : 8;
  4864. #else
  4865. unsigned char ELS : 8;
  4866. #endif
  4867. } BIT;
  4868. } ELSR7;
  4869. char wk2[2];
  4870. union {
  4871. unsigned char BYTE;
  4872. struct {
  4873. #ifdef __RX_LITTLE_ENDIAN__
  4874. unsigned char ELS : 8;
  4875. #else
  4876. unsigned char ELS : 8;
  4877. #endif
  4878. } BIT;
  4879. } ELSR10;
  4880. union {
  4881. unsigned char BYTE;
  4882. struct {
  4883. #ifdef __RX_LITTLE_ENDIAN__
  4884. unsigned char ELS : 8;
  4885. #else
  4886. unsigned char ELS : 8;
  4887. #endif
  4888. } BIT;
  4889. } ELSR11;
  4890. union {
  4891. unsigned char BYTE;
  4892. struct {
  4893. #ifdef __RX_LITTLE_ENDIAN__
  4894. unsigned char ELS : 8;
  4895. #else
  4896. unsigned char ELS : 8;
  4897. #endif
  4898. } BIT;
  4899. } ELSR12;
  4900. union {
  4901. unsigned char BYTE;
  4902. struct {
  4903. #ifdef __RX_LITTLE_ENDIAN__
  4904. unsigned char ELS : 8;
  4905. #else
  4906. unsigned char ELS : 8;
  4907. #endif
  4908. } BIT;
  4909. } ELSR13;
  4910. char wk3[1];
  4911. union {
  4912. unsigned char BYTE;
  4913. struct {
  4914. #ifdef __RX_LITTLE_ENDIAN__
  4915. unsigned char ELS : 8;
  4916. #else
  4917. unsigned char ELS : 8;
  4918. #endif
  4919. } BIT;
  4920. } ELSR15;
  4921. union {
  4922. unsigned char BYTE;
  4923. struct {
  4924. #ifdef __RX_LITTLE_ENDIAN__
  4925. unsigned char ELS : 8;
  4926. #else
  4927. unsigned char ELS : 8;
  4928. #endif
  4929. } BIT;
  4930. } ELSR16;
  4931. char wk4[1];
  4932. union {
  4933. unsigned char BYTE;
  4934. struct {
  4935. #ifdef __RX_LITTLE_ENDIAN__
  4936. unsigned char ELS : 8;
  4937. #else
  4938. unsigned char ELS : 8;
  4939. #endif
  4940. } BIT;
  4941. } ELSR18;
  4942. union {
  4943. unsigned char BYTE;
  4944. struct {
  4945. #ifdef __RX_LITTLE_ENDIAN__
  4946. unsigned char ELS : 8;
  4947. #else
  4948. unsigned char ELS : 8;
  4949. #endif
  4950. } BIT;
  4951. } ELSR19;
  4952. union {
  4953. unsigned char BYTE;
  4954. struct {
  4955. #ifdef __RX_LITTLE_ENDIAN__
  4956. unsigned char ELS : 8;
  4957. #else
  4958. unsigned char ELS : 8;
  4959. #endif
  4960. } BIT;
  4961. } ELSR20;
  4962. union {
  4963. unsigned char BYTE;
  4964. struct {
  4965. #ifdef __RX_LITTLE_ENDIAN__
  4966. unsigned char ELS : 8;
  4967. #else
  4968. unsigned char ELS : 8;
  4969. #endif
  4970. } BIT;
  4971. } ELSR21;
  4972. union {
  4973. unsigned char BYTE;
  4974. struct {
  4975. #ifdef __RX_LITTLE_ENDIAN__
  4976. unsigned char ELS : 8;
  4977. #else
  4978. unsigned char ELS : 8;
  4979. #endif
  4980. } BIT;
  4981. } ELSR22;
  4982. union {
  4983. unsigned char BYTE;
  4984. struct {
  4985. #ifdef __RX_LITTLE_ENDIAN__
  4986. unsigned char ELS : 8;
  4987. #else
  4988. unsigned char ELS : 8;
  4989. #endif
  4990. } BIT;
  4991. } ELSR23;
  4992. union {
  4993. unsigned char BYTE;
  4994. struct {
  4995. #ifdef __RX_LITTLE_ENDIAN__
  4996. unsigned char ELS : 8;
  4997. #else
  4998. unsigned char ELS : 8;
  4999. #endif
  5000. } BIT;
  5001. } ELSR24;
  5002. union {
  5003. unsigned char BYTE;
  5004. struct {
  5005. #ifdef __RX_LITTLE_ENDIAN__
  5006. unsigned char ELS : 8;
  5007. #else
  5008. unsigned char ELS : 8;
  5009. #endif
  5010. } BIT;
  5011. } ELSR25;
  5012. union {
  5013. unsigned char BYTE;
  5014. struct {
  5015. #ifdef __RX_LITTLE_ENDIAN__
  5016. unsigned char ELS : 8;
  5017. #else
  5018. unsigned char ELS : 8;
  5019. #endif
  5020. } BIT;
  5021. } ELSR26;
  5022. union {
  5023. unsigned char BYTE;
  5024. struct {
  5025. #ifdef __RX_LITTLE_ENDIAN__
  5026. unsigned char ELS : 8;
  5027. #else
  5028. unsigned char ELS : 8;
  5029. #endif
  5030. } BIT;
  5031. } ELSR27;
  5032. union {
  5033. unsigned char BYTE;
  5034. struct {
  5035. #ifdef __RX_LITTLE_ENDIAN__
  5036. unsigned char ELS : 8;
  5037. #else
  5038. unsigned char ELS : 8;
  5039. #endif
  5040. } BIT;
  5041. } ELSR28;
  5042. char wk5[1];
  5043. union {
  5044. unsigned char BYTE;
  5045. struct {
  5046. #ifdef __RX_LITTLE_ENDIAN__
  5047. unsigned char MTU0MD : 2;
  5048. unsigned char : 4;
  5049. unsigned char MTU3MD : 2;
  5050. #else
  5051. unsigned char MTU3MD : 2;
  5052. unsigned char : 4;
  5053. unsigned char MTU0MD : 2;
  5054. #endif
  5055. } BIT;
  5056. } ELOPA;
  5057. union {
  5058. unsigned char BYTE;
  5059. struct {
  5060. #ifdef __RX_LITTLE_ENDIAN__
  5061. unsigned char MTU4MD : 2;
  5062. unsigned char : 6;
  5063. #else
  5064. unsigned char : 6;
  5065. unsigned char MTU4MD : 2;
  5066. #endif
  5067. } BIT;
  5068. } ELOPB;
  5069. union {
  5070. unsigned char BYTE;
  5071. struct {
  5072. #ifdef __RX_LITTLE_ENDIAN__
  5073. unsigned char : 2;
  5074. unsigned char CMT1MD : 2;
  5075. unsigned char : 4;
  5076. #else
  5077. unsigned char : 4;
  5078. unsigned char CMT1MD : 2;
  5079. unsigned char : 2;
  5080. #endif
  5081. } BIT;
  5082. } ELOPC;
  5083. union {
  5084. unsigned char BYTE;
  5085. struct {
  5086. #ifdef __RX_LITTLE_ENDIAN__
  5087. unsigned char TMR0MD : 2;
  5088. unsigned char TMR1MD : 2;
  5089. unsigned char TMR2MD : 2;
  5090. unsigned char TMR3MD : 2;
  5091. #else
  5092. unsigned char TMR3MD : 2;
  5093. unsigned char TMR2MD : 2;
  5094. unsigned char TMR1MD : 2;
  5095. unsigned char TMR0MD : 2;
  5096. #endif
  5097. } BIT;
  5098. } ELOPD;
  5099. union {
  5100. unsigned char BYTE;
  5101. struct {
  5102. #ifdef __RX_LITTLE_ENDIAN__
  5103. unsigned char PGR0 : 1;
  5104. unsigned char PGR1 : 1;
  5105. unsigned char PGR2 : 1;
  5106. unsigned char PGR3 : 1;
  5107. unsigned char PGR4 : 1;
  5108. unsigned char PGR5 : 1;
  5109. unsigned char PGR6 : 1;
  5110. unsigned char PGR7 : 1;
  5111. #else
  5112. unsigned char PGR7 : 1;
  5113. unsigned char PGR6 : 1;
  5114. unsigned char PGR5 : 1;
  5115. unsigned char PGR4 : 1;
  5116. unsigned char PGR3 : 1;
  5117. unsigned char PGR2 : 1;
  5118. unsigned char PGR1 : 1;
  5119. unsigned char PGR0 : 1;
  5120. #endif
  5121. } BIT;
  5122. } PGR1;
  5123. union {
  5124. unsigned char BYTE;
  5125. struct {
  5126. #ifdef __RX_LITTLE_ENDIAN__
  5127. unsigned char PGR0 : 1;
  5128. unsigned char PGR1 : 1;
  5129. unsigned char PGR2 : 1;
  5130. unsigned char PGR3 : 1;
  5131. unsigned char PGR4 : 1;
  5132. unsigned char PGR5 : 1;
  5133. unsigned char PGR6 : 1;
  5134. unsigned char PGR7 : 1;
  5135. #else
  5136. unsigned char PGR7 : 1;
  5137. unsigned char PGR6 : 1;
  5138. unsigned char PGR5 : 1;
  5139. unsigned char PGR4 : 1;
  5140. unsigned char PGR3 : 1;
  5141. unsigned char PGR2 : 1;
  5142. unsigned char PGR1 : 1;
  5143. unsigned char PGR0 : 1;
  5144. #endif
  5145. } BIT;
  5146. } PGR2;
  5147. union {
  5148. unsigned char BYTE;
  5149. struct {
  5150. #ifdef __RX_LITTLE_ENDIAN__
  5151. unsigned char PGCI : 2;
  5152. unsigned char PGCOVE : 1;
  5153. unsigned char : 1;
  5154. unsigned char PGCO : 3;
  5155. unsigned char : 1;
  5156. #else
  5157. unsigned char : 1;
  5158. unsigned char PGCO : 3;
  5159. unsigned char : 1;
  5160. unsigned char PGCOVE : 1;
  5161. unsigned char PGCI : 2;
  5162. #endif
  5163. } BIT;
  5164. } PGC1;
  5165. union {
  5166. unsigned char BYTE;
  5167. struct {
  5168. #ifdef __RX_LITTLE_ENDIAN__
  5169. unsigned char PGCI : 2;
  5170. unsigned char PGCOVE : 1;
  5171. unsigned char : 1;
  5172. unsigned char PGCO : 3;
  5173. unsigned char : 1;
  5174. #else
  5175. unsigned char : 1;
  5176. unsigned char PGCO : 3;
  5177. unsigned char : 1;
  5178. unsigned char PGCOVE : 1;
  5179. unsigned char PGCI : 2;
  5180. #endif
  5181. } BIT;
  5182. } PGC2;
  5183. union {
  5184. unsigned char BYTE;
  5185. struct {
  5186. #ifdef __RX_LITTLE_ENDIAN__
  5187. unsigned char PDBF0 : 1;
  5188. unsigned char PDBF1 : 1;
  5189. unsigned char PDBF2 : 1;
  5190. unsigned char PDBF3 : 1;
  5191. unsigned char PDBF4 : 1;
  5192. unsigned char PDBF5 : 1;
  5193. unsigned char PDBF6 : 1;
  5194. unsigned char PDBF7 : 1;
  5195. #else
  5196. unsigned char PDBF7 : 1;
  5197. unsigned char PDBF6 : 1;
  5198. unsigned char PDBF5 : 1;
  5199. unsigned char PDBF4 : 1;
  5200. unsigned char PDBF3 : 1;
  5201. unsigned char PDBF2 : 1;
  5202. unsigned char PDBF1 : 1;
  5203. unsigned char PDBF0 : 1;
  5204. #endif
  5205. } BIT;
  5206. } PDBF1;
  5207. union {
  5208. unsigned char BYTE;
  5209. struct {
  5210. #ifdef __RX_LITTLE_ENDIAN__
  5211. unsigned char PDBF0 : 1;
  5212. unsigned char PDBF1 : 1;
  5213. unsigned char PDBF2 : 1;
  5214. unsigned char PDBF3 : 1;
  5215. unsigned char PDBF4 : 1;
  5216. unsigned char PDBF5 : 1;
  5217. unsigned char PDBF6 : 1;
  5218. unsigned char PDBF7 : 1;
  5219. #else
  5220. unsigned char PDBF7 : 1;
  5221. unsigned char PDBF6 : 1;
  5222. unsigned char PDBF5 : 1;
  5223. unsigned char PDBF4 : 1;
  5224. unsigned char PDBF3 : 1;
  5225. unsigned char PDBF2 : 1;
  5226. unsigned char PDBF1 : 1;
  5227. unsigned char PDBF0 : 1;
  5228. #endif
  5229. } BIT;
  5230. } PDBF2;
  5231. union {
  5232. unsigned char BYTE;
  5233. struct {
  5234. #ifdef __RX_LITTLE_ENDIAN__
  5235. unsigned char PSB : 3;
  5236. unsigned char PSP : 2;
  5237. unsigned char PSM : 2;
  5238. unsigned char : 1;
  5239. #else
  5240. unsigned char : 1;
  5241. unsigned char PSM : 2;
  5242. unsigned char PSP : 2;
  5243. unsigned char PSB : 3;
  5244. #endif
  5245. } BIT;
  5246. } PEL0;
  5247. union {
  5248. unsigned char BYTE;
  5249. struct {
  5250. #ifdef __RX_LITTLE_ENDIAN__
  5251. unsigned char PSB : 3;
  5252. unsigned char PSP : 2;
  5253. unsigned char PSM : 2;
  5254. unsigned char : 1;
  5255. #else
  5256. unsigned char : 1;
  5257. unsigned char PSM : 2;
  5258. unsigned char PSP : 2;
  5259. unsigned char PSB : 3;
  5260. #endif
  5261. } BIT;
  5262. } PEL1;
  5263. union {
  5264. unsigned char BYTE;
  5265. struct {
  5266. #ifdef __RX_LITTLE_ENDIAN__
  5267. unsigned char PSB : 3;
  5268. unsigned char PSP : 2;
  5269. unsigned char PSM : 2;
  5270. unsigned char : 1;
  5271. #else
  5272. unsigned char : 1;
  5273. unsigned char PSM : 2;
  5274. unsigned char PSP : 2;
  5275. unsigned char PSB : 3;
  5276. #endif
  5277. } BIT;
  5278. } PEL2;
  5279. union {
  5280. unsigned char BYTE;
  5281. struct {
  5282. #ifdef __RX_LITTLE_ENDIAN__
  5283. unsigned char PSB : 3;
  5284. unsigned char PSP : 2;
  5285. unsigned char PSM : 2;
  5286. unsigned char : 1;
  5287. #else
  5288. unsigned char : 1;
  5289. unsigned char PSM : 2;
  5290. unsigned char PSP : 2;
  5291. unsigned char PSB : 3;
  5292. #endif
  5293. } BIT;
  5294. } PEL3;
  5295. union {
  5296. unsigned char BYTE;
  5297. #ifdef IODEFINE_H_HISTORY
  5298. struct {
  5299. unsigned char WI:1;
  5300. unsigned char WE:1;
  5301. unsigned char :5;
  5302. unsigned char SEG:1;
  5303. } BIT;
  5304. #endif
  5305. } ELSEGR;
  5306. char wk6[3];
  5307. union {
  5308. unsigned char BYTE;
  5309. struct {
  5310. #ifdef __RX_LITTLE_ENDIAN__
  5311. unsigned char ELS : 8;
  5312. #else
  5313. unsigned char ELS : 8;
  5314. #endif
  5315. } BIT;
  5316. } ELSR33;
  5317. char wk7[1];
  5318. union {
  5319. unsigned char BYTE;
  5320. struct {
  5321. #ifdef __RX_LITTLE_ENDIAN__
  5322. unsigned char ELS : 8;
  5323. #else
  5324. unsigned char ELS : 8;
  5325. #endif
  5326. } BIT;
  5327. } ELSR35;
  5328. union {
  5329. unsigned char BYTE;
  5330. struct {
  5331. #ifdef __RX_LITTLE_ENDIAN__
  5332. unsigned char ELS : 8;
  5333. #else
  5334. unsigned char ELS : 8;
  5335. #endif
  5336. } BIT;
  5337. } ELSR36;
  5338. union {
  5339. unsigned char BYTE;
  5340. struct {
  5341. #ifdef __RX_LITTLE_ENDIAN__
  5342. unsigned char ELS : 8;
  5343. #else
  5344. unsigned char ELS : 8;
  5345. #endif
  5346. } BIT;
  5347. } ELSR37;
  5348. union {
  5349. unsigned char BYTE;
  5350. struct {
  5351. #ifdef __RX_LITTLE_ENDIAN__
  5352. unsigned char ELS : 8;
  5353. #else
  5354. unsigned char ELS : 8;
  5355. #endif
  5356. } BIT;
  5357. } ELSR38;
  5358. char wk8[6];
  5359. union {
  5360. unsigned char BYTE;
  5361. struct {
  5362. #ifdef __RX_LITTLE_ENDIAN__
  5363. unsigned char ELS : 8;
  5364. #else
  5365. unsigned char ELS : 8;
  5366. #endif
  5367. } BIT;
  5368. } ELSR45;
  5369. char wk9[1];
  5370. union {
  5371. unsigned char BYTE;
  5372. struct {
  5373. #ifdef __RX_LITTLE_ENDIAN__
  5374. unsigned char TPU0MD : 2;
  5375. unsigned char TPU1MD : 2;
  5376. unsigned char TPU2MD : 2;
  5377. unsigned char TPU3MD : 2;
  5378. #else
  5379. unsigned char TPU3MD : 2;
  5380. unsigned char TPU2MD : 2;
  5381. unsigned char TPU1MD : 2;
  5382. unsigned char TPU0MD : 2;
  5383. #endif
  5384. } BIT;
  5385. } ELOPF;
  5386. char wk10[1];
  5387. union {
  5388. unsigned char BYTE;
  5389. struct {
  5390. #ifdef __RX_LITTLE_ENDIAN__
  5391. unsigned char CMTW0MD : 2;
  5392. unsigned char : 6;
  5393. #else
  5394. unsigned char : 6;
  5395. unsigned char CMTW0MD : 2;
  5396. #endif
  5397. } BIT;
  5398. } ELOPH;
  5399. } st_elc_t;
  5400. typedef struct st_etherc {
  5401. union {
  5402. unsigned long LONG;
  5403. struct {
  5404. #ifdef __RX_LITTLE_ENDIAN__
  5405. unsigned long PRM : 1;
  5406. unsigned long DM : 1;
  5407. unsigned long RTM : 1;
  5408. unsigned long ILB : 1;
  5409. unsigned long : 1;
  5410. unsigned long TE : 1;
  5411. unsigned long RE : 1;
  5412. unsigned long : 2;
  5413. unsigned long MPDE : 1;
  5414. unsigned long : 2;
  5415. unsigned long PRCEF : 1;
  5416. unsigned long : 3;
  5417. unsigned long TXF : 1;
  5418. unsigned long RXF : 1;
  5419. unsigned long PFR : 1;
  5420. unsigned long ZPF : 1;
  5421. unsigned long TPC : 1;
  5422. unsigned long : 11;
  5423. #else
  5424. unsigned long : 11;
  5425. unsigned long TPC : 1;
  5426. unsigned long ZPF : 1;
  5427. unsigned long PFR : 1;
  5428. unsigned long RXF : 1;
  5429. unsigned long TXF : 1;
  5430. unsigned long : 3;
  5431. unsigned long PRCEF : 1;
  5432. unsigned long : 2;
  5433. unsigned long MPDE : 1;
  5434. unsigned long : 2;
  5435. unsigned long RE : 1;
  5436. unsigned long TE : 1;
  5437. unsigned long : 1;
  5438. unsigned long ILB : 1;
  5439. unsigned long RTM : 1;
  5440. unsigned long DM : 1;
  5441. unsigned long PRM : 1;
  5442. #endif
  5443. } BIT;
  5444. } ECMR;
  5445. char wk0[4];
  5446. union {
  5447. unsigned long LONG;
  5448. struct {
  5449. #ifdef __RX_LITTLE_ENDIAN__
  5450. unsigned long RFL : 12;
  5451. unsigned long : 20;
  5452. #else
  5453. unsigned long : 20;
  5454. unsigned long RFL : 12;
  5455. #endif
  5456. } BIT;
  5457. } RFLR;
  5458. char wk1[4];
  5459. union {
  5460. unsigned long LONG;
  5461. struct {
  5462. #ifdef __RX_LITTLE_ENDIAN__
  5463. unsigned long ICD : 1;
  5464. unsigned long MPD : 1;
  5465. unsigned long LCHNG : 1;
  5466. unsigned long : 1;
  5467. unsigned long PSRTO : 1;
  5468. unsigned long BFR : 1;
  5469. unsigned long : 26;
  5470. #else
  5471. unsigned long : 26;
  5472. unsigned long BFR : 1;
  5473. unsigned long PSRTO : 1;
  5474. unsigned long : 1;
  5475. unsigned long LCHNG : 1;
  5476. unsigned long MPD : 1;
  5477. unsigned long ICD : 1;
  5478. #endif
  5479. } BIT;
  5480. } ECSR;
  5481. char wk2[4];
  5482. union {
  5483. unsigned long LONG;
  5484. struct {
  5485. #ifdef __RX_LITTLE_ENDIAN__
  5486. unsigned long ICDIP : 1;
  5487. unsigned long MPDIP : 1;
  5488. unsigned long LCHNGIP : 1;
  5489. unsigned long : 1;
  5490. unsigned long PSRTOIP : 1;
  5491. unsigned long BFSIPR : 1;
  5492. unsigned long : 26;
  5493. #else
  5494. unsigned long : 26;
  5495. unsigned long BFSIPR : 1;
  5496. unsigned long PSRTOIP : 1;
  5497. unsigned long : 1;
  5498. unsigned long LCHNGIP : 1;
  5499. unsigned long MPDIP : 1;
  5500. unsigned long ICDIP : 1;
  5501. #endif
  5502. } BIT;
  5503. } ECSIPR;
  5504. char wk3[4];
  5505. union {
  5506. unsigned long LONG;
  5507. struct {
  5508. #ifdef __RX_LITTLE_ENDIAN__
  5509. unsigned long MDC : 1;
  5510. unsigned long MMD : 1;
  5511. unsigned long MDO : 1;
  5512. unsigned long MDI : 1;
  5513. unsigned long : 28;
  5514. #else
  5515. unsigned long : 28;
  5516. unsigned long MDI : 1;
  5517. unsigned long MDO : 1;
  5518. unsigned long MMD : 1;
  5519. unsigned long MDC : 1;
  5520. #endif
  5521. } BIT;
  5522. } PIR;
  5523. char wk4[4];
  5524. union {
  5525. unsigned long LONG;
  5526. struct {
  5527. #ifdef __RX_LITTLE_ENDIAN__
  5528. unsigned long LMON : 1;
  5529. unsigned long : 31;
  5530. #else
  5531. unsigned long : 31;
  5532. unsigned long LMON : 1;
  5533. #endif
  5534. } BIT;
  5535. } PSR;
  5536. char wk5[20];
  5537. union {
  5538. unsigned long LONG;
  5539. struct {
  5540. #ifdef __RX_LITTLE_ENDIAN__
  5541. unsigned long RMD : 20;
  5542. unsigned long : 12;
  5543. #else
  5544. unsigned long : 12;
  5545. unsigned long RMD : 20;
  5546. #endif
  5547. } BIT;
  5548. } RDMLR;
  5549. char wk6[12];
  5550. union {
  5551. unsigned long LONG;
  5552. struct {
  5553. #ifdef __RX_LITTLE_ENDIAN__
  5554. unsigned long IPG : 5;
  5555. unsigned long : 27;
  5556. #else
  5557. unsigned long : 27;
  5558. unsigned long IPG : 5;
  5559. #endif
  5560. } BIT;
  5561. } IPGR;
  5562. union {
  5563. unsigned long LONG;
  5564. struct {
  5565. #ifdef __RX_LITTLE_ENDIAN__
  5566. unsigned long AP : 16;
  5567. unsigned long : 16;
  5568. #else
  5569. unsigned long : 16;
  5570. unsigned long AP : 16;
  5571. #endif
  5572. } BIT;
  5573. } APR;
  5574. union {
  5575. unsigned long LONG;
  5576. struct {
  5577. #ifdef __RX_LITTLE_ENDIAN__
  5578. unsigned long MP : 16;
  5579. unsigned long : 16;
  5580. #else
  5581. unsigned long : 16;
  5582. unsigned long MP : 16;
  5583. #endif
  5584. } BIT;
  5585. } MPR;
  5586. char wk7[4];
  5587. union {
  5588. unsigned long LONG;
  5589. struct {
  5590. #ifdef __RX_LITTLE_ENDIAN__
  5591. unsigned long RPAUSE : 8;
  5592. unsigned long : 24;
  5593. #else
  5594. unsigned long : 24;
  5595. unsigned long RPAUSE : 8;
  5596. #endif
  5597. } BIT;
  5598. } RFCF;
  5599. union {
  5600. unsigned long LONG;
  5601. struct {
  5602. #ifdef __RX_LITTLE_ENDIAN__
  5603. unsigned long TPAUSE : 16;
  5604. unsigned long : 16;
  5605. #else
  5606. unsigned long : 16;
  5607. unsigned long TPAUSE : 16;
  5608. #endif
  5609. } BIT;
  5610. } TPAUSER;
  5611. union {
  5612. unsigned long LONG;
  5613. struct {
  5614. #ifdef __RX_LITTLE_ENDIAN__
  5615. unsigned long TXP : 8;
  5616. unsigned long : 24;
  5617. #else
  5618. unsigned long : 24;
  5619. unsigned long TXP : 8;
  5620. #endif
  5621. } BIT;
  5622. } TPAUSECR;
  5623. union {
  5624. unsigned long LONG;
  5625. struct {
  5626. #ifdef __RX_LITTLE_ENDIAN__
  5627. unsigned long BCF : 16;
  5628. unsigned long : 16;
  5629. #else
  5630. unsigned long : 16;
  5631. unsigned long BCF : 16;
  5632. #endif
  5633. } BIT;
  5634. } BCFRR;
  5635. char wk8[80];
  5636. unsigned long MAHR;
  5637. char wk9[4];
  5638. union {
  5639. unsigned long LONG;
  5640. struct {
  5641. #ifdef __RX_LITTLE_ENDIAN__
  5642. unsigned long MA : 16;
  5643. unsigned long : 16;
  5644. #else
  5645. unsigned long : 16;
  5646. unsigned long MA : 16;
  5647. #endif
  5648. } BIT;
  5649. } MALR;
  5650. char wk10[4];
  5651. unsigned long TROCR;
  5652. unsigned long CDCR;
  5653. unsigned long LCCR;
  5654. unsigned long CNDCR;
  5655. char wk11[4];
  5656. unsigned long CEFCR;
  5657. unsigned long FRECR;
  5658. unsigned long TSFRCR;
  5659. unsigned long TLFRCR;
  5660. unsigned long RFCR;
  5661. unsigned long MAFCR;
  5662. } st_etherc_t;
  5663. typedef struct st_exdmac {
  5664. union {
  5665. unsigned char BYTE;
  5666. struct {
  5667. #ifdef __RX_LITTLE_ENDIAN__
  5668. unsigned char DMST : 1;
  5669. unsigned char : 7;
  5670. #else
  5671. unsigned char : 7;
  5672. unsigned char DMST : 1;
  5673. #endif
  5674. } BIT;
  5675. } EDMAST;
  5676. char wk0[479];
  5677. unsigned long CLSBR0;
  5678. unsigned long CLSBR1;
  5679. unsigned long CLSBR2;
  5680. unsigned long CLSBR3;
  5681. unsigned long CLSBR4;
  5682. unsigned long CLSBR5;
  5683. unsigned long CLSBR6;
  5684. unsigned long CLSBR7;
  5685. } st_exdmac_t;
  5686. typedef struct st_exdmac0 {
  5687. void *EDMSAR;
  5688. void *EDMDAR;
  5689. unsigned long EDMCRA;
  5690. unsigned short EDMCRB;
  5691. char wk0[2];
  5692. union {
  5693. unsigned short WORD;
  5694. struct {
  5695. #ifdef __RX_LITTLE_ENDIAN__
  5696. unsigned short DCTG : 2;
  5697. unsigned short : 6;
  5698. unsigned short SZ : 2;
  5699. unsigned short : 2;
  5700. unsigned short DTS : 2;
  5701. unsigned short MD : 2;
  5702. #else
  5703. unsigned short MD : 2;
  5704. unsigned short DTS : 2;
  5705. unsigned short : 2;
  5706. unsigned short SZ : 2;
  5707. unsigned short : 6;
  5708. unsigned short DCTG : 2;
  5709. #endif
  5710. } BIT;
  5711. } EDMTMD;
  5712. union {
  5713. unsigned char BYTE;
  5714. struct {
  5715. #ifdef __RX_LITTLE_ENDIAN__
  5716. unsigned char DACKSEL : 1;
  5717. unsigned char DACKW : 1;
  5718. unsigned char DACKE : 1;
  5719. unsigned char DACKS : 1;
  5720. unsigned char : 4;
  5721. #else
  5722. unsigned char : 4;
  5723. unsigned char DACKS : 1;
  5724. unsigned char DACKE : 1;
  5725. unsigned char DACKW : 1;
  5726. unsigned char DACKSEL : 1;
  5727. #endif
  5728. } BIT;
  5729. } EDMOMD;
  5730. union {
  5731. unsigned char BYTE;
  5732. struct {
  5733. #ifdef __RX_LITTLE_ENDIAN__
  5734. unsigned char DARIE : 1;
  5735. unsigned char SARIE : 1;
  5736. unsigned char RPTIE : 1;
  5737. unsigned char ESIE : 1;
  5738. unsigned char DTIE : 1;
  5739. unsigned char : 3;
  5740. #else
  5741. unsigned char : 3;
  5742. unsigned char DTIE : 1;
  5743. unsigned char ESIE : 1;
  5744. unsigned char RPTIE : 1;
  5745. unsigned char SARIE : 1;
  5746. unsigned char DARIE : 1;
  5747. #endif
  5748. } BIT;
  5749. } EDMINT;
  5750. union {
  5751. unsigned long LONG;
  5752. struct {
  5753. #ifdef __RX_LITTLE_ENDIAN__
  5754. unsigned long DARA : 5;
  5755. unsigned long : 1;
  5756. unsigned long DM : 2;
  5757. unsigned long SARA : 5;
  5758. unsigned long : 1;
  5759. unsigned long SM : 2;
  5760. unsigned long DIR : 1;
  5761. unsigned long AMS : 1;
  5762. unsigned long : 14;
  5763. #else
  5764. unsigned long : 14;
  5765. unsigned long AMS : 1;
  5766. unsigned long DIR : 1;
  5767. unsigned long SM : 2;
  5768. unsigned long : 1;
  5769. unsigned long SARA : 5;
  5770. unsigned long DM : 2;
  5771. unsigned long : 1;
  5772. unsigned long DARA : 5;
  5773. #endif
  5774. } BIT;
  5775. } EDMAMD;
  5776. unsigned long EDMOFR;
  5777. union {
  5778. unsigned char BYTE;
  5779. struct {
  5780. #ifdef __RX_LITTLE_ENDIAN__
  5781. unsigned char DTE : 1;
  5782. unsigned char : 7;
  5783. #else
  5784. unsigned char : 7;
  5785. unsigned char DTE : 1;
  5786. #endif
  5787. } BIT;
  5788. } EDMCNT;
  5789. union {
  5790. unsigned char BYTE;
  5791. struct {
  5792. #ifdef __RX_LITTLE_ENDIAN__
  5793. unsigned char SWREQ : 1;
  5794. unsigned char : 3;
  5795. unsigned char CLRS : 1;
  5796. unsigned char : 3;
  5797. #else
  5798. unsigned char : 3;
  5799. unsigned char CLRS : 1;
  5800. unsigned char : 3;
  5801. unsigned char SWREQ : 1;
  5802. #endif
  5803. } BIT;
  5804. } EDMREQ;
  5805. union {
  5806. unsigned char BYTE;
  5807. struct {
  5808. #ifdef __RX_LITTLE_ENDIAN__
  5809. unsigned char ESIF : 1;
  5810. unsigned char : 3;
  5811. unsigned char DTIF : 1;
  5812. unsigned char : 2;
  5813. unsigned char ACT : 1;
  5814. #else
  5815. unsigned char ACT : 1;
  5816. unsigned char : 2;
  5817. unsigned char DTIF : 1;
  5818. unsigned char : 3;
  5819. unsigned char ESIF : 1;
  5820. #endif
  5821. } BIT;
  5822. } EDMSTS;
  5823. char wk1[1];
  5824. union {
  5825. unsigned char BYTE;
  5826. struct {
  5827. #ifdef __RX_LITTLE_ENDIAN__
  5828. unsigned char DREQS : 2;
  5829. unsigned char : 6;
  5830. #else
  5831. unsigned char : 6;
  5832. unsigned char DREQS : 2;
  5833. #endif
  5834. } BIT;
  5835. } EDMRMD;
  5836. union {
  5837. unsigned char BYTE;
  5838. struct {
  5839. #ifdef __RX_LITTLE_ENDIAN__
  5840. unsigned char EREQ : 1;
  5841. unsigned char : 7;
  5842. #else
  5843. unsigned char : 7;
  5844. unsigned char EREQ : 1;
  5845. #endif
  5846. } BIT;
  5847. } EDMERF;
  5848. union {
  5849. unsigned char BYTE;
  5850. struct {
  5851. #ifdef __RX_LITTLE_ENDIAN__
  5852. unsigned char PREQ : 1;
  5853. unsigned char : 7;
  5854. #else
  5855. unsigned char : 7;
  5856. unsigned char PREQ : 1;
  5857. #endif
  5858. } BIT;
  5859. } EDMPRF;
  5860. } st_exdmac0_t;
  5861. typedef struct st_exdmac1 {
  5862. void *EDMSAR;
  5863. void *EDMDAR;
  5864. unsigned long EDMCRA;
  5865. unsigned short EDMCRB;
  5866. char wk0[2];
  5867. union {
  5868. unsigned short WORD;
  5869. struct {
  5870. #ifdef __RX_LITTLE_ENDIAN__
  5871. unsigned short DCTG : 2;
  5872. unsigned short : 6;
  5873. unsigned short SZ : 2;
  5874. unsigned short : 2;
  5875. unsigned short DTS : 2;
  5876. unsigned short MD : 2;
  5877. #else
  5878. unsigned short MD : 2;
  5879. unsigned short DTS : 2;
  5880. unsigned short : 2;
  5881. unsigned short SZ : 2;
  5882. unsigned short : 6;
  5883. unsigned short DCTG : 2;
  5884. #endif
  5885. } BIT;
  5886. } EDMTMD;
  5887. union {
  5888. unsigned char BYTE;
  5889. struct {
  5890. #ifdef __RX_LITTLE_ENDIAN__
  5891. unsigned char DACKSEL : 1;
  5892. unsigned char DACKW : 1;
  5893. unsigned char DACKE : 1;
  5894. unsigned char DACKS : 1;
  5895. unsigned char : 4;
  5896. #else
  5897. unsigned char : 4;
  5898. unsigned char DACKS : 1;
  5899. unsigned char DACKE : 1;
  5900. unsigned char DACKW : 1;
  5901. unsigned char DACKSEL : 1;
  5902. #endif
  5903. } BIT;
  5904. } EDMOMD;
  5905. union {
  5906. unsigned char BYTE;
  5907. struct {
  5908. #ifdef __RX_LITTLE_ENDIAN__
  5909. unsigned char DARIE : 1;
  5910. unsigned char SARIE : 1;
  5911. unsigned char RPTIE : 1;
  5912. unsigned char ESIE : 1;
  5913. unsigned char DTIE : 1;
  5914. unsigned char : 3;
  5915. #else
  5916. unsigned char : 3;
  5917. unsigned char DTIE : 1;
  5918. unsigned char ESIE : 1;
  5919. unsigned char RPTIE : 1;
  5920. unsigned char SARIE : 1;
  5921. unsigned char DARIE : 1;
  5922. #endif
  5923. } BIT;
  5924. } EDMINT;
  5925. union {
  5926. unsigned long LONG;
  5927. struct {
  5928. #ifdef __RX_LITTLE_ENDIAN__
  5929. unsigned long DARA : 5;
  5930. unsigned long : 1;
  5931. unsigned long DM : 2;
  5932. unsigned long SARA : 5;
  5933. unsigned long : 1;
  5934. unsigned long SM : 2;
  5935. unsigned long DIR : 1;
  5936. unsigned long AMS : 1;
  5937. unsigned long : 14;
  5938. #else
  5939. unsigned long : 14;
  5940. unsigned long AMS : 1;
  5941. unsigned long DIR : 1;
  5942. unsigned long SM : 2;
  5943. unsigned long : 1;
  5944. unsigned long SARA : 5;
  5945. unsigned long DM : 2;
  5946. unsigned long : 1;
  5947. unsigned long DARA : 5;
  5948. #endif
  5949. } BIT;
  5950. } EDMAMD;
  5951. char wk1[4];
  5952. union {
  5953. unsigned char BYTE;
  5954. struct {
  5955. #ifdef __RX_LITTLE_ENDIAN__
  5956. unsigned char DTE : 1;
  5957. unsigned char : 7;
  5958. #else
  5959. unsigned char : 7;
  5960. unsigned char DTE : 1;
  5961. #endif
  5962. } BIT;
  5963. } EDMCNT;
  5964. union {
  5965. unsigned char BYTE;
  5966. struct {
  5967. #ifdef __RX_LITTLE_ENDIAN__
  5968. unsigned char SWREQ : 1;
  5969. unsigned char : 3;
  5970. unsigned char CLRS : 1;
  5971. unsigned char : 3;
  5972. #else
  5973. unsigned char : 3;
  5974. unsigned char CLRS : 1;
  5975. unsigned char : 3;
  5976. unsigned char SWREQ : 1;
  5977. #endif
  5978. } BIT;
  5979. } EDMREQ;
  5980. union {
  5981. unsigned char BYTE;
  5982. struct {
  5983. #ifdef __RX_LITTLE_ENDIAN__
  5984. unsigned char ESIF : 1;
  5985. unsigned char : 3;
  5986. unsigned char DTIF : 1;
  5987. unsigned char : 2;
  5988. unsigned char ACT : 1;
  5989. #else
  5990. unsigned char ACT : 1;
  5991. unsigned char : 2;
  5992. unsigned char DTIF : 1;
  5993. unsigned char : 3;
  5994. unsigned char ESIF : 1;
  5995. #endif
  5996. } BIT;
  5997. } EDMSTS;
  5998. char wk2[1];
  5999. union {
  6000. unsigned char BYTE;
  6001. struct {
  6002. #ifdef __RX_LITTLE_ENDIAN__
  6003. unsigned char DREQS : 2;
  6004. unsigned char : 6;
  6005. #else
  6006. unsigned char : 6;
  6007. unsigned char DREQS : 2;
  6008. #endif
  6009. } BIT;
  6010. } EDMRMD;
  6011. union {
  6012. unsigned char BYTE;
  6013. struct {
  6014. #ifdef __RX_LITTLE_ENDIAN__
  6015. unsigned char EREQ : 1;
  6016. unsigned char : 7;
  6017. #else
  6018. unsigned char : 7;
  6019. unsigned char EREQ : 1;
  6020. #endif
  6021. } BIT;
  6022. } EDMERF;
  6023. union {
  6024. unsigned char BYTE;
  6025. struct {
  6026. #ifdef __RX_LITTLE_ENDIAN__
  6027. unsigned char PREQ : 1;
  6028. unsigned char : 7;
  6029. #else
  6030. unsigned char : 7;
  6031. unsigned char PREQ : 1;
  6032. #endif
  6033. } BIT;
  6034. } EDMPRF;
  6035. } st_exdmac1_t;
  6036. typedef struct st_flash {
  6037. union {
  6038. unsigned short WORD;
  6039. struct {
  6040. #ifdef __RX_LITTLE_ENDIAN__
  6041. unsigned short ROMCEN : 1;
  6042. unsigned short : 15;
  6043. #else
  6044. unsigned short : 15;
  6045. unsigned short ROMCEN : 1;
  6046. #endif
  6047. } BIT;
  6048. } ROMCE;
  6049. char wk0[2];
  6050. union {
  6051. unsigned short WORD;
  6052. struct {
  6053. #ifdef __RX_LITTLE_ENDIAN__
  6054. unsigned short ROMCIV : 1;
  6055. unsigned short : 15;
  6056. #else
  6057. unsigned short : 15;
  6058. unsigned short ROMCIV : 1;
  6059. #endif
  6060. } BIT;
  6061. } ROMCIV;
  6062. char wk1[45712];
  6063. union {
  6064. unsigned char BYTE;
  6065. struct {
  6066. #ifdef __RX_LITTLE_ENDIAN__
  6067. unsigned char FLWE : 2;
  6068. unsigned char : 6;
  6069. #else
  6070. unsigned char : 6;
  6071. unsigned char FLWE : 2;
  6072. #endif
  6073. } BIT;
  6074. } FWEPROR;
  6075. char wk2[7798185];
  6076. unsigned char EEPFCLK;
  6077. char wk3[8143];
  6078. union {
  6079. unsigned char BYTE;
  6080. struct {
  6081. #ifdef __RX_LITTLE_ENDIAN__
  6082. unsigned char : 3;
  6083. unsigned char DFAE : 1;
  6084. unsigned char CMDLK : 1;
  6085. unsigned char : 2;
  6086. unsigned char CFAE : 1;
  6087. #else
  6088. unsigned char CFAE : 1;
  6089. unsigned char : 2;
  6090. unsigned char CMDLK : 1;
  6091. unsigned char DFAE : 1;
  6092. unsigned char : 3;
  6093. #endif
  6094. } BIT;
  6095. } FASTAT;
  6096. char wk4[3];
  6097. union {
  6098. unsigned char BYTE;
  6099. struct {
  6100. #ifdef __RX_LITTLE_ENDIAN__
  6101. unsigned char : 3;
  6102. unsigned char DFAEIE : 1;
  6103. unsigned char CMDLKIE : 1;
  6104. unsigned char : 2;
  6105. unsigned char CFAEIE : 1;
  6106. #else
  6107. unsigned char CFAEIE : 1;
  6108. unsigned char : 2;
  6109. unsigned char CMDLKIE : 1;
  6110. unsigned char DFAEIE : 1;
  6111. unsigned char : 3;
  6112. #endif
  6113. } BIT;
  6114. } FAEINT;
  6115. char wk5[3];
  6116. union {
  6117. unsigned char BYTE;
  6118. struct {
  6119. #ifdef __RX_LITTLE_ENDIAN__
  6120. unsigned char FRDYIE : 1;
  6121. unsigned char : 7;
  6122. #else
  6123. unsigned char : 7;
  6124. unsigned char FRDYIE : 1;
  6125. #endif
  6126. } BIT;
  6127. } FRDYIE;
  6128. char wk6[23];
  6129. union {
  6130. unsigned long LONG;
  6131. struct {
  6132. #ifdef __RX_LITTLE_ENDIAN__
  6133. unsigned long FSADDR : 32;
  6134. #else
  6135. unsigned long FSADDR : 32;
  6136. #endif
  6137. } BIT;
  6138. } FSADDR;
  6139. union {
  6140. unsigned long LONG;
  6141. struct {
  6142. #ifdef __RX_LITTLE_ENDIAN__
  6143. unsigned long FEADDR : 32;
  6144. #else
  6145. unsigned long FEADDR : 32;
  6146. #endif
  6147. } BIT;
  6148. } FEADDR;
  6149. char wk7[72];
  6150. union {
  6151. unsigned long LONG;
  6152. struct {
  6153. #ifdef __RX_LITTLE_ENDIAN__
  6154. unsigned long : 6;
  6155. unsigned long FLWEERR : 1;
  6156. unsigned long : 1;
  6157. unsigned long PRGSPD : 1;
  6158. unsigned long ERSSPD : 1;
  6159. unsigned long DBFULL : 1;
  6160. unsigned long SUSRDY : 1;
  6161. unsigned long PRGERR : 1;
  6162. unsigned long ERSERR : 1;
  6163. unsigned long ILGLERR : 1;
  6164. unsigned long FRDY : 1;
  6165. unsigned long : 4;
  6166. unsigned long OTERR : 1;
  6167. unsigned long SECERR : 1;
  6168. unsigned long FESETERR : 1;
  6169. unsigned long ILGCOMERR : 1;
  6170. unsigned long : 8;
  6171. #else
  6172. unsigned long : 8;
  6173. unsigned long ILGCOMERR : 1;
  6174. unsigned long FESETERR : 1;
  6175. unsigned long SECERR : 1;
  6176. unsigned long OTERR : 1;
  6177. unsigned long : 4;
  6178. unsigned long FRDY : 1;
  6179. unsigned long ILGLERR : 1;
  6180. unsigned long ERSERR : 1;
  6181. unsigned long PRGERR : 1;
  6182. unsigned long SUSRDY : 1;
  6183. unsigned long DBFULL : 1;
  6184. unsigned long ERSSPD : 1;
  6185. unsigned long PRGSPD : 1;
  6186. unsigned long : 1;
  6187. unsigned long FLWEERR : 1;
  6188. unsigned long : 6;
  6189. #endif
  6190. } BIT;
  6191. } FSTATR;
  6192. union {
  6193. unsigned short WORD;
  6194. struct {
  6195. #ifdef __RX_LITTLE_ENDIAN__
  6196. unsigned short FENTRYC : 1;
  6197. unsigned short : 6;
  6198. unsigned short FENTRYD : 1;
  6199. unsigned short KEY : 8;
  6200. #else
  6201. unsigned short KEY : 8;
  6202. unsigned short FENTRYD : 1;
  6203. unsigned short : 6;
  6204. unsigned short FENTRYC : 1;
  6205. #endif
  6206. } BIT;
  6207. } FENTRYR;
  6208. char wk8[6];
  6209. union {
  6210. unsigned short WORD;
  6211. struct {
  6212. #ifdef __RX_LITTLE_ENDIAN__
  6213. unsigned short SUINIT : 1;
  6214. unsigned short : 7;
  6215. unsigned short KEY : 8;
  6216. #else
  6217. unsigned short KEY : 8;
  6218. unsigned short : 7;
  6219. unsigned short SUINIT : 1;
  6220. #endif
  6221. } BIT;
  6222. } FSUINITR;
  6223. char wk9[18];
  6224. union {
  6225. unsigned short WORD;
  6226. struct {
  6227. #ifdef __RX_LITTLE_ENDIAN__
  6228. unsigned short PCMDR : 8;
  6229. unsigned short CMDR : 8;
  6230. #else
  6231. unsigned short CMDR : 8;
  6232. unsigned short PCMDR : 8;
  6233. #endif
  6234. } BIT;
  6235. } FCMDR;
  6236. char wk10[46];
  6237. union {
  6238. unsigned char BYTE;
  6239. struct {
  6240. #ifdef __RX_LITTLE_ENDIAN__
  6241. unsigned char BCDIR : 1;
  6242. unsigned char : 7;
  6243. #else
  6244. unsigned char : 7;
  6245. unsigned char BCDIR : 1;
  6246. #endif
  6247. } BIT;
  6248. } FBCCNT;
  6249. char wk11[3];
  6250. union {
  6251. unsigned char BYTE;
  6252. struct {
  6253. #ifdef __RX_LITTLE_ENDIAN__
  6254. unsigned char BCST : 1;
  6255. unsigned char : 7;
  6256. #else
  6257. unsigned char : 7;
  6258. unsigned char BCST : 1;
  6259. #endif
  6260. } BIT;
  6261. } FBCSTAT;
  6262. char wk12[3];
  6263. union {
  6264. unsigned long LONG;
  6265. struct {
  6266. #ifdef __RX_LITTLE_ENDIAN__
  6267. unsigned long PSADR : 19;
  6268. unsigned long : 13;
  6269. #else
  6270. unsigned long : 13;
  6271. unsigned long PSADR : 19;
  6272. #endif
  6273. } BIT;
  6274. } FPSADDR;
  6275. union {
  6276. unsigned long LONG;
  6277. struct {
  6278. #ifdef __RX_LITTLE_ENDIAN__
  6279. unsigned long FAWS : 12;
  6280. unsigned long : 3;
  6281. unsigned long FSPR : 1;
  6282. unsigned long FAWE : 12;
  6283. unsigned long : 3;
  6284. unsigned long BTFLG : 1;
  6285. #else
  6286. unsigned long BTFLG : 1;
  6287. unsigned long : 3;
  6288. unsigned long FAWE : 12;
  6289. unsigned long FSPR : 1;
  6290. unsigned long : 3;
  6291. unsigned long FAWS : 12;
  6292. #endif
  6293. } BIT;
  6294. } FAWMON;
  6295. union {
  6296. unsigned short WORD;
  6297. struct {
  6298. #ifdef __RX_LITTLE_ENDIAN__
  6299. unsigned short ESUSPMD : 1;
  6300. unsigned short : 15;
  6301. #else
  6302. unsigned short : 15;
  6303. unsigned short ESUSPMD : 1;
  6304. #endif
  6305. } BIT;
  6306. } FCPSR;
  6307. char wk13[2];
  6308. union {
  6309. unsigned short WORD;
  6310. struct {
  6311. #ifdef __RX_LITTLE_ENDIAN__
  6312. unsigned short PCKA : 8;
  6313. unsigned short KEY : 8;
  6314. #else
  6315. unsigned short KEY : 8;
  6316. unsigned short PCKA : 8;
  6317. #endif
  6318. } BIT;
  6319. } FPCKAR;
  6320. char wk14[2];
  6321. union {
  6322. unsigned short WORD;
  6323. struct {
  6324. #ifdef __RX_LITTLE_ENDIAN__
  6325. unsigned short SAS : 2;
  6326. unsigned short : 6;
  6327. unsigned short KEY : 8;
  6328. #else
  6329. unsigned short KEY : 8;
  6330. unsigned short : 6;
  6331. unsigned short SAS : 2;
  6332. #endif
  6333. } BIT;
  6334. } FSUACR;
  6335. } st_flash_t;
  6336. typedef struct st_glcdc {
  6337. union {
  6338. unsigned long LONG;
  6339. struct {
  6340. #ifdef __RX_LITTLE_ENDIAN__
  6341. unsigned long B : 8;
  6342. unsigned long G : 8;
  6343. unsigned long R : 8;
  6344. unsigned long A : 8;
  6345. #else
  6346. unsigned long A : 8;
  6347. unsigned long R : 8;
  6348. unsigned long G : 8;
  6349. unsigned long B : 8;
  6350. #endif
  6351. } BIT;
  6352. } GR1CLUT0[256];
  6353. union {
  6354. unsigned long LONG;
  6355. struct {
  6356. #ifdef __RX_LITTLE_ENDIAN__
  6357. unsigned long B : 8;
  6358. unsigned long G : 8;
  6359. unsigned long R : 8;
  6360. unsigned long A : 8;
  6361. #else
  6362. unsigned long A : 8;
  6363. unsigned long R : 8;
  6364. unsigned long G : 8;
  6365. unsigned long B : 8;
  6366. #endif
  6367. } BIT;
  6368. } GR1CLUT1[256];
  6369. union {
  6370. unsigned long LONG;
  6371. struct {
  6372. #ifdef __RX_LITTLE_ENDIAN__
  6373. unsigned long B : 8;
  6374. unsigned long G : 8;
  6375. unsigned long R : 8;
  6376. unsigned long A : 8;
  6377. #else
  6378. unsigned long A : 8;
  6379. unsigned long R : 8;
  6380. unsigned long G : 8;
  6381. unsigned long B : 8;
  6382. #endif
  6383. } BIT;
  6384. } GR2CLUT0[256];
  6385. union {
  6386. unsigned long LONG;
  6387. struct {
  6388. #ifdef __RX_LITTLE_ENDIAN__
  6389. unsigned long B : 8;
  6390. unsigned long G : 8;
  6391. unsigned long R : 8;
  6392. unsigned long A : 8;
  6393. #else
  6394. unsigned long A : 8;
  6395. unsigned long R : 8;
  6396. unsigned long G : 8;
  6397. unsigned long B : 8;
  6398. #endif
  6399. } BIT;
  6400. } GR2CLUT1[256];
  6401. union {
  6402. unsigned long LONG;
  6403. struct {
  6404. #ifdef __RX_LITTLE_ENDIAN__
  6405. unsigned long EN : 1;
  6406. unsigned long : 7;
  6407. unsigned long VEN : 1;
  6408. unsigned long : 7;
  6409. unsigned long SWRST : 1;
  6410. unsigned long : 15;
  6411. #else
  6412. unsigned long : 15;
  6413. unsigned long SWRST : 1;
  6414. unsigned long : 7;
  6415. unsigned long VEN : 1;
  6416. unsigned long : 7;
  6417. unsigned long EN : 1;
  6418. #endif
  6419. } BIT;
  6420. } BGEN;
  6421. union {
  6422. unsigned long LONG;
  6423. struct {
  6424. #ifdef __RX_LITTLE_ENDIAN__
  6425. unsigned long FH : 11;
  6426. unsigned long : 5;
  6427. unsigned long FV : 11;
  6428. unsigned long : 5;
  6429. #else
  6430. unsigned long : 5;
  6431. unsigned long FV : 11;
  6432. unsigned long : 5;
  6433. unsigned long FH : 11;
  6434. #endif
  6435. } BIT;
  6436. } BGPERI;
  6437. union {
  6438. unsigned long LONG;
  6439. struct {
  6440. #ifdef __RX_LITTLE_ENDIAN__
  6441. unsigned long HP : 4;
  6442. unsigned long : 12;
  6443. unsigned long VP : 4;
  6444. unsigned long : 12;
  6445. #else
  6446. unsigned long : 12;
  6447. unsigned long VP : 4;
  6448. unsigned long : 12;
  6449. unsigned long HP : 4;
  6450. #endif
  6451. } BIT;
  6452. } BGSYNC;
  6453. union {
  6454. unsigned long LONG;
  6455. struct {
  6456. #ifdef __RX_LITTLE_ENDIAN__
  6457. unsigned long VW : 11;
  6458. unsigned long : 5;
  6459. unsigned long VP : 11;
  6460. unsigned long : 5;
  6461. #else
  6462. unsigned long : 5;
  6463. unsigned long VP : 11;
  6464. unsigned long : 5;
  6465. unsigned long VW : 11;
  6466. #endif
  6467. } BIT;
  6468. } BGVSIZE;
  6469. union {
  6470. unsigned long LONG;
  6471. struct {
  6472. #ifdef __RX_LITTLE_ENDIAN__
  6473. unsigned long HW : 11;
  6474. unsigned long : 5;
  6475. unsigned long HP : 11;
  6476. unsigned long : 5;
  6477. #else
  6478. unsigned long : 5;
  6479. unsigned long HP : 11;
  6480. unsigned long : 5;
  6481. unsigned long HW : 11;
  6482. #endif
  6483. } BIT;
  6484. } BGHSIZE;
  6485. union {
  6486. unsigned long LONG;
  6487. struct {
  6488. #ifdef __RX_LITTLE_ENDIAN__
  6489. unsigned long B : 8;
  6490. unsigned long G : 8;
  6491. unsigned long R : 8;
  6492. unsigned long : 8;
  6493. #else
  6494. unsigned long : 8;
  6495. unsigned long R : 8;
  6496. unsigned long G : 8;
  6497. unsigned long B : 8;
  6498. #endif
  6499. } BIT;
  6500. } BGCOLOR;
  6501. union {
  6502. unsigned long LONG;
  6503. struct {
  6504. #ifdef __RX_LITTLE_ENDIAN__
  6505. unsigned long EN : 1;
  6506. unsigned long : 7;
  6507. unsigned long VEN : 1;
  6508. unsigned long : 7;
  6509. unsigned long SWRST : 1;
  6510. unsigned long : 15;
  6511. #else
  6512. unsigned long : 15;
  6513. unsigned long SWRST : 1;
  6514. unsigned long : 7;
  6515. unsigned long VEN : 1;
  6516. unsigned long : 7;
  6517. unsigned long EN : 1;
  6518. #endif
  6519. } BIT;
  6520. } BGMON;
  6521. char wk0[228];
  6522. union {
  6523. unsigned long LONG;
  6524. struct {
  6525. #ifdef __RX_LITTLE_ENDIAN__
  6526. unsigned long VEN : 1;
  6527. unsigned long : 31;
  6528. #else
  6529. unsigned long : 31;
  6530. unsigned long VEN : 1;
  6531. #endif
  6532. } BIT;
  6533. } GR1VEN;
  6534. union {
  6535. unsigned long LONG;
  6536. struct {
  6537. #ifdef __RX_LITTLE_ENDIAN__
  6538. unsigned long RENB : 1;
  6539. unsigned long : 31;
  6540. #else
  6541. unsigned long : 31;
  6542. unsigned long RENB : 1;
  6543. #endif
  6544. } BIT;
  6545. } GR1FLMRD;
  6546. char wk1[4];
  6547. unsigned long GR1FLM2;
  6548. union {
  6549. unsigned long LONG;
  6550. struct {
  6551. #ifdef __RX_LITTLE_ENDIAN__
  6552. unsigned long : 16;
  6553. unsigned long LNOFF : 16;
  6554. #else
  6555. unsigned long LNOFF : 16;
  6556. unsigned long : 16;
  6557. #endif
  6558. } BIT;
  6559. } GR1FLM3;
  6560. char wk2[4];
  6561. union {
  6562. unsigned long LONG;
  6563. struct {
  6564. #ifdef __RX_LITTLE_ENDIAN__
  6565. unsigned long DATANUM : 16;
  6566. unsigned long LNNUM : 11;
  6567. unsigned long : 5;
  6568. #else
  6569. unsigned long : 5;
  6570. unsigned long LNNUM : 11;
  6571. unsigned long DATANUM : 16;
  6572. #endif
  6573. } BIT;
  6574. } GR1FLM5;
  6575. union {
  6576. unsigned long LONG;
  6577. struct {
  6578. #ifdef __RX_LITTLE_ENDIAN__
  6579. unsigned long : 28;
  6580. unsigned long FORMAT : 3;
  6581. unsigned long : 1;
  6582. #else
  6583. unsigned long : 1;
  6584. unsigned long FORMAT : 3;
  6585. unsigned long : 28;
  6586. #endif
  6587. } BIT;
  6588. } GR1FLM6;
  6589. union {
  6590. unsigned long LONG;
  6591. struct {
  6592. #ifdef __RX_LITTLE_ENDIAN__
  6593. unsigned long DISPSEL : 2;
  6594. unsigned long : 2;
  6595. unsigned long GRCDISPON : 1;
  6596. unsigned long : 3;
  6597. unsigned long ARCDISPON : 1;
  6598. unsigned long : 3;
  6599. unsigned long ARCON : 1;
  6600. unsigned long : 19;
  6601. #else
  6602. unsigned long : 19;
  6603. unsigned long ARCON : 1;
  6604. unsigned long : 3;
  6605. unsigned long ARCDISPON : 1;
  6606. unsigned long : 3;
  6607. unsigned long GRCDISPON : 1;
  6608. unsigned long : 2;
  6609. unsigned long DISPSEL : 2;
  6610. #endif
  6611. } BIT;
  6612. } GR1AB1;
  6613. union {
  6614. unsigned long LONG;
  6615. struct {
  6616. #ifdef __RX_LITTLE_ENDIAN__
  6617. unsigned long GRCVW : 11;
  6618. unsigned long : 5;
  6619. unsigned long GRCVS : 11;
  6620. unsigned long : 5;
  6621. #else
  6622. unsigned long : 5;
  6623. unsigned long GRCVS : 11;
  6624. unsigned long : 5;
  6625. unsigned long GRCVW : 11;
  6626. #endif
  6627. } BIT;
  6628. } GR1AB2;
  6629. union {
  6630. unsigned long LONG;
  6631. struct {
  6632. #ifdef __RX_LITTLE_ENDIAN__
  6633. unsigned long GRCHW : 11;
  6634. unsigned long : 5;
  6635. unsigned long GRCHS : 11;
  6636. unsigned long : 5;
  6637. #else
  6638. unsigned long : 5;
  6639. unsigned long GRCHS : 11;
  6640. unsigned long : 5;
  6641. unsigned long GRCHW : 11;
  6642. #endif
  6643. } BIT;
  6644. } GR1AB3;
  6645. union {
  6646. unsigned long LONG;
  6647. struct {
  6648. #ifdef __RX_LITTLE_ENDIAN__
  6649. unsigned long ARCVW : 11;
  6650. unsigned long : 5;
  6651. unsigned long ARCVS : 11;
  6652. unsigned long : 5;
  6653. #else
  6654. unsigned long : 5;
  6655. unsigned long ARCVS : 11;
  6656. unsigned long : 5;
  6657. unsigned long ARCVW : 11;
  6658. #endif
  6659. } BIT;
  6660. } GR1AB4;
  6661. union {
  6662. unsigned long LONG;
  6663. struct {
  6664. #ifdef __RX_LITTLE_ENDIAN__
  6665. unsigned long ARCHW : 11;
  6666. unsigned long : 5;
  6667. unsigned long ARCHS : 11;
  6668. unsigned long : 5;
  6669. #else
  6670. unsigned long : 5;
  6671. unsigned long ARCHS : 11;
  6672. unsigned long : 5;
  6673. unsigned long ARCHW : 11;
  6674. #endif
  6675. } BIT;
  6676. } GR1AB5;
  6677. union {
  6678. unsigned long LONG;
  6679. struct {
  6680. #ifdef __RX_LITTLE_ENDIAN__
  6681. unsigned long ARCRATE : 8;
  6682. unsigned long : 8;
  6683. unsigned long ARCCOEF : 9;
  6684. unsigned long : 7;
  6685. #else
  6686. unsigned long : 7;
  6687. unsigned long ARCCOEF : 9;
  6688. unsigned long : 8;
  6689. unsigned long ARCRATE : 8;
  6690. #endif
  6691. } BIT;
  6692. } GR1AB6;
  6693. union {
  6694. unsigned long LONG;
  6695. struct {
  6696. #ifdef __RX_LITTLE_ENDIAN__
  6697. unsigned long CKON : 1;
  6698. unsigned long : 15;
  6699. unsigned long ARCDEF : 8;
  6700. unsigned long : 8;
  6701. #else
  6702. unsigned long : 8;
  6703. unsigned long ARCDEF : 8;
  6704. unsigned long : 15;
  6705. unsigned long CKON : 1;
  6706. #endif
  6707. } BIT;
  6708. } GR1AB7;
  6709. union {
  6710. unsigned long LONG;
  6711. struct {
  6712. #ifdef __RX_LITTLE_ENDIAN__
  6713. unsigned long CKKR : 8;
  6714. unsigned long CKKB : 8;
  6715. unsigned long CKKG : 8;
  6716. unsigned long : 8;
  6717. #else
  6718. unsigned long : 8;
  6719. unsigned long CKKG : 8;
  6720. unsigned long CKKB : 8;
  6721. unsigned long CKKR : 8;
  6722. #endif
  6723. } BIT;
  6724. } GR1AB8;
  6725. union {
  6726. unsigned long LONG;
  6727. struct {
  6728. #ifdef __RX_LITTLE_ENDIAN__
  6729. unsigned long CKR : 8;
  6730. unsigned long CKB : 8;
  6731. unsigned long CKG : 8;
  6732. unsigned long CKA : 8;
  6733. #else
  6734. unsigned long CKA : 8;
  6735. unsigned long CKG : 8;
  6736. unsigned long CKB : 8;
  6737. unsigned long CKR : 8;
  6738. #endif
  6739. } BIT;
  6740. } GR1AB9;
  6741. char wk3[8];
  6742. union {
  6743. unsigned long LONG;
  6744. struct {
  6745. #ifdef __RX_LITTLE_ENDIAN__
  6746. unsigned long R : 8;
  6747. unsigned long B : 8;
  6748. unsigned long G : 8;
  6749. unsigned long : 8;
  6750. #else
  6751. unsigned long : 8;
  6752. unsigned long G : 8;
  6753. unsigned long B : 8;
  6754. unsigned long R : 8;
  6755. #endif
  6756. } BIT;
  6757. } GR1BASE;
  6758. union {
  6759. unsigned long LONG;
  6760. struct {
  6761. #ifdef __RX_LITTLE_ENDIAN__
  6762. unsigned long LINE : 11;
  6763. unsigned long : 5;
  6764. unsigned long SEL : 1;
  6765. unsigned long : 15;
  6766. #else
  6767. unsigned long : 15;
  6768. unsigned long SEL : 1;
  6769. unsigned long : 5;
  6770. unsigned long LINE : 11;
  6771. #endif
  6772. } BIT;
  6773. } GR1CLUTINT;
  6774. union {
  6775. unsigned long LONG;
  6776. struct {
  6777. #ifdef __RX_LITTLE_ENDIAN__
  6778. unsigned long ARCST : 1;
  6779. unsigned long : 15;
  6780. unsigned long UFST : 1;
  6781. unsigned long : 15;
  6782. #else
  6783. unsigned long : 15;
  6784. unsigned long UFST : 1;
  6785. unsigned long : 15;
  6786. unsigned long ARCST : 1;
  6787. #endif
  6788. } BIT;
  6789. } GR1MON;
  6790. char wk4[168];
  6791. union {
  6792. unsigned long LONG;
  6793. struct {
  6794. #ifdef __RX_LITTLE_ENDIAN__
  6795. unsigned long VEN : 1;
  6796. unsigned long : 31;
  6797. #else
  6798. unsigned long : 31;
  6799. unsigned long VEN : 1;
  6800. #endif
  6801. } BIT;
  6802. } GR2VEN;
  6803. union {
  6804. unsigned long LONG;
  6805. struct {
  6806. #ifdef __RX_LITTLE_ENDIAN__
  6807. unsigned long RENB : 1;
  6808. unsigned long : 31;
  6809. #else
  6810. unsigned long : 31;
  6811. unsigned long RENB : 1;
  6812. #endif
  6813. } BIT;
  6814. } GR2FLMRD;
  6815. char wk5[4];
  6816. unsigned long GR2FLM2;
  6817. union {
  6818. unsigned long LONG;
  6819. struct {
  6820. #ifdef __RX_LITTLE_ENDIAN__
  6821. unsigned long : 16;
  6822. unsigned long LNOFF : 16;
  6823. #else
  6824. unsigned long LNOFF : 16;
  6825. unsigned long : 16;
  6826. #endif
  6827. } BIT;
  6828. } GR2FLM3;
  6829. char wk6[4];
  6830. union {
  6831. unsigned long LONG;
  6832. struct {
  6833. #ifdef __RX_LITTLE_ENDIAN__
  6834. unsigned long DATANUM : 16;
  6835. unsigned long LNNUM : 11;
  6836. unsigned long : 5;
  6837. #else
  6838. unsigned long : 5;
  6839. unsigned long LNNUM : 11;
  6840. unsigned long DATANUM : 16;
  6841. #endif
  6842. } BIT;
  6843. } GR2FLM5;
  6844. union {
  6845. unsigned long LONG;
  6846. struct {
  6847. #ifdef __RX_LITTLE_ENDIAN__
  6848. unsigned long : 28;
  6849. unsigned long FORMAT : 3;
  6850. unsigned long : 1;
  6851. #else
  6852. unsigned long : 1;
  6853. unsigned long FORMAT : 3;
  6854. unsigned long : 28;
  6855. #endif
  6856. } BIT;
  6857. } GR2FLM6;
  6858. union {
  6859. unsigned long LONG;
  6860. struct {
  6861. #ifdef __RX_LITTLE_ENDIAN__
  6862. unsigned long DISPSEL : 2;
  6863. unsigned long : 2;
  6864. unsigned long GRCDISPON : 1;
  6865. unsigned long : 3;
  6866. unsigned long ARCDISPON : 1;
  6867. unsigned long : 3;
  6868. unsigned long ARCON : 1;
  6869. unsigned long : 19;
  6870. #else
  6871. unsigned long : 19;
  6872. unsigned long ARCON : 1;
  6873. unsigned long : 3;
  6874. unsigned long ARCDISPON : 1;
  6875. unsigned long : 3;
  6876. unsigned long GRCDISPON : 1;
  6877. unsigned long : 2;
  6878. unsigned long DISPSEL : 2;
  6879. #endif
  6880. } BIT;
  6881. } GR2AB1;
  6882. union {
  6883. unsigned long LONG;
  6884. struct {
  6885. #ifdef __RX_LITTLE_ENDIAN__
  6886. unsigned long GRCVW : 11;
  6887. unsigned long : 5;
  6888. unsigned long GRCVS : 11;
  6889. unsigned long : 5;
  6890. #else
  6891. unsigned long : 5;
  6892. unsigned long GRCVS : 11;
  6893. unsigned long : 5;
  6894. unsigned long GRCVW : 11;
  6895. #endif
  6896. } BIT;
  6897. } GR2AB2;
  6898. union {
  6899. unsigned long LONG;
  6900. struct {
  6901. #ifdef __RX_LITTLE_ENDIAN__
  6902. unsigned long GRCHW : 11;
  6903. unsigned long : 5;
  6904. unsigned long GRCHS : 11;
  6905. unsigned long : 5;
  6906. #else
  6907. unsigned long : 5;
  6908. unsigned long GRCHS : 11;
  6909. unsigned long : 5;
  6910. unsigned long GRCHW : 11;
  6911. #endif
  6912. } BIT;
  6913. } GR2AB3;
  6914. union {
  6915. unsigned long LONG;
  6916. struct {
  6917. #ifdef __RX_LITTLE_ENDIAN__
  6918. unsigned long ARCVW : 11;
  6919. unsigned long : 5;
  6920. unsigned long ARCVS : 11;
  6921. unsigned long : 5;
  6922. #else
  6923. unsigned long : 5;
  6924. unsigned long ARCVS : 11;
  6925. unsigned long : 5;
  6926. unsigned long ARCVW : 11;
  6927. #endif
  6928. } BIT;
  6929. } GR2AB4;
  6930. union {
  6931. unsigned long LONG;
  6932. struct {
  6933. #ifdef __RX_LITTLE_ENDIAN__
  6934. unsigned long ARCHW : 11;
  6935. unsigned long : 5;
  6936. unsigned long ARCHS : 11;
  6937. unsigned long : 5;
  6938. #else
  6939. unsigned long : 5;
  6940. unsigned long ARCHS : 11;
  6941. unsigned long : 5;
  6942. unsigned long ARCHW : 11;
  6943. #endif
  6944. } BIT;
  6945. } GR2AB5;
  6946. union {
  6947. unsigned long LONG;
  6948. struct {
  6949. #ifdef __RX_LITTLE_ENDIAN__
  6950. unsigned long ARCRATE : 8;
  6951. unsigned long : 8;
  6952. unsigned long ARCCOEF : 9;
  6953. unsigned long : 7;
  6954. #else
  6955. unsigned long : 7;
  6956. unsigned long ARCCOEF : 9;
  6957. unsigned long : 8;
  6958. unsigned long ARCRATE : 8;
  6959. #endif
  6960. } BIT;
  6961. } GR2AB6;
  6962. union {
  6963. unsigned long LONG;
  6964. struct {
  6965. #ifdef __RX_LITTLE_ENDIAN__
  6966. unsigned long CKON : 1;
  6967. unsigned long : 15;
  6968. unsigned long ARCDEF : 8;
  6969. unsigned long : 8;
  6970. #else
  6971. unsigned long : 8;
  6972. unsigned long ARCDEF : 8;
  6973. unsigned long : 15;
  6974. unsigned long CKON : 1;
  6975. #endif
  6976. } BIT;
  6977. } GR2AB7;
  6978. union {
  6979. unsigned long LONG;
  6980. struct {
  6981. #ifdef __RX_LITTLE_ENDIAN__
  6982. unsigned long CKKR : 8;
  6983. unsigned long CKKB : 8;
  6984. unsigned long CKKG : 8;
  6985. unsigned long : 8;
  6986. #else
  6987. unsigned long : 8;
  6988. unsigned long CKKG : 8;
  6989. unsigned long CKKB : 8;
  6990. unsigned long CKKR : 8;
  6991. #endif
  6992. } BIT;
  6993. } GR2AB8;
  6994. union {
  6995. unsigned long LONG;
  6996. struct {
  6997. #ifdef __RX_LITTLE_ENDIAN__
  6998. unsigned long CKR : 8;
  6999. unsigned long CKB : 8;
  7000. unsigned long CKG : 8;
  7001. unsigned long CKA : 8;
  7002. #else
  7003. unsigned long CKA : 8;
  7004. unsigned long CKG : 8;
  7005. unsigned long CKB : 8;
  7006. unsigned long CKR : 8;
  7007. #endif
  7008. } BIT;
  7009. } GR2AB9;
  7010. char wk7[8];
  7011. union {
  7012. unsigned long LONG;
  7013. struct {
  7014. #ifdef __RX_LITTLE_ENDIAN__
  7015. unsigned long R : 8;
  7016. unsigned long B : 8;
  7017. unsigned long G : 8;
  7018. unsigned long : 8;
  7019. #else
  7020. unsigned long : 8;
  7021. unsigned long G : 8;
  7022. unsigned long B : 8;
  7023. unsigned long R : 8;
  7024. #endif
  7025. } BIT;
  7026. } GR2BASE;
  7027. union {
  7028. unsigned long LONG;
  7029. struct {
  7030. #ifdef __RX_LITTLE_ENDIAN__
  7031. unsigned long LINE : 11;
  7032. unsigned long : 5;
  7033. unsigned long SEL : 1;
  7034. unsigned long : 15;
  7035. #else
  7036. unsigned long : 15;
  7037. unsigned long SEL : 1;
  7038. unsigned long : 5;
  7039. unsigned long LINE : 11;
  7040. #endif
  7041. } BIT;
  7042. } GR2CLUTINT;
  7043. union {
  7044. unsigned long LONG;
  7045. struct {
  7046. #ifdef __RX_LITTLE_ENDIAN__
  7047. unsigned long ARCST : 1;
  7048. unsigned long : 15;
  7049. unsigned long UFST : 1;
  7050. unsigned long : 15;
  7051. #else
  7052. unsigned long : 15;
  7053. unsigned long UFST : 1;
  7054. unsigned long : 15;
  7055. unsigned long ARCST : 1;
  7056. #endif
  7057. } BIT;
  7058. } GR2MON;
  7059. char wk8[168];
  7060. union {
  7061. unsigned long LONG;
  7062. struct {
  7063. #ifdef __RX_LITTLE_ENDIAN__
  7064. unsigned long VEN : 1;
  7065. unsigned long : 31;
  7066. #else
  7067. unsigned long : 31;
  7068. unsigned long VEN : 1;
  7069. #endif
  7070. } BIT;
  7071. } GAMGVEN;
  7072. union {
  7073. unsigned long LONG;
  7074. struct {
  7075. #ifdef __RX_LITTLE_ENDIAN__
  7076. unsigned long GAMON : 1;
  7077. unsigned long : 31;
  7078. #else
  7079. unsigned long : 31;
  7080. unsigned long GAMON : 1;
  7081. #endif
  7082. } BIT;
  7083. } GAMSW;
  7084. union {
  7085. unsigned long LONG;
  7086. struct {
  7087. #ifdef __RX_LITTLE_ENDIAN__
  7088. unsigned long GAIN01 : 11;
  7089. unsigned long : 5;
  7090. unsigned long GAIN00 : 11;
  7091. unsigned long : 5;
  7092. #else
  7093. unsigned long : 5;
  7094. unsigned long GAIN00 : 11;
  7095. unsigned long : 5;
  7096. unsigned long GAIN01 : 11;
  7097. #endif
  7098. } BIT;
  7099. } GAMGLUT1;
  7100. union {
  7101. unsigned long LONG;
  7102. struct {
  7103. #ifdef __RX_LITTLE_ENDIAN__
  7104. unsigned long GAIN03 : 11;
  7105. unsigned long : 5;
  7106. unsigned long GAIN02 : 11;
  7107. unsigned long : 5;
  7108. #else
  7109. unsigned long : 5;
  7110. unsigned long GAIN02 : 11;
  7111. unsigned long : 5;
  7112. unsigned long GAIN03 : 11;
  7113. #endif
  7114. } BIT;
  7115. } GAMGLUT2;
  7116. union {
  7117. unsigned long LONG;
  7118. struct {
  7119. #ifdef __RX_LITTLE_ENDIAN__
  7120. unsigned long GAIN05 : 11;
  7121. unsigned long : 5;
  7122. unsigned long GAIN04 : 11;
  7123. unsigned long : 5;
  7124. #else
  7125. unsigned long : 5;
  7126. unsigned long GAIN04 : 11;
  7127. unsigned long : 5;
  7128. unsigned long GAIN05 : 11;
  7129. #endif
  7130. } BIT;
  7131. } GAMGLUT3;
  7132. union {
  7133. unsigned long LONG;
  7134. struct {
  7135. #ifdef __RX_LITTLE_ENDIAN__
  7136. unsigned long GAIN07 : 11;
  7137. unsigned long : 5;
  7138. unsigned long GAIN06 : 11;
  7139. unsigned long : 5;
  7140. #else
  7141. unsigned long : 5;
  7142. unsigned long GAIN06 : 11;
  7143. unsigned long : 5;
  7144. unsigned long GAIN07 : 11;
  7145. #endif
  7146. } BIT;
  7147. } GAMGLUT4;
  7148. union {
  7149. unsigned long LONG;
  7150. struct {
  7151. #ifdef __RX_LITTLE_ENDIAN__
  7152. unsigned long GAIN09 : 11;
  7153. unsigned long : 5;
  7154. unsigned long GAIN08 : 11;
  7155. unsigned long : 5;
  7156. #else
  7157. unsigned long : 5;
  7158. unsigned long GAIN08 : 11;
  7159. unsigned long : 5;
  7160. unsigned long GAIN09 : 11;
  7161. #endif
  7162. } BIT;
  7163. } GAMGLUT5;
  7164. union {
  7165. unsigned long LONG;
  7166. struct {
  7167. #ifdef __RX_LITTLE_ENDIAN__
  7168. unsigned long GAIN11 : 11;
  7169. unsigned long : 5;
  7170. unsigned long GAIN10 : 11;
  7171. unsigned long : 5;
  7172. #else
  7173. unsigned long : 5;
  7174. unsigned long GAIN10 : 11;
  7175. unsigned long : 5;
  7176. unsigned long GAIN11 : 11;
  7177. #endif
  7178. } BIT;
  7179. } GAMGLUT6;
  7180. union {
  7181. unsigned long LONG;
  7182. struct {
  7183. #ifdef __RX_LITTLE_ENDIAN__
  7184. unsigned long GAIN13 : 11;
  7185. unsigned long : 5;
  7186. unsigned long GAIN12 : 11;
  7187. unsigned long : 5;
  7188. #else
  7189. unsigned long : 5;
  7190. unsigned long GAIN12 : 11;
  7191. unsigned long : 5;
  7192. unsigned long GAIN13 : 11;
  7193. #endif
  7194. } BIT;
  7195. } GAMGLUT7;
  7196. union {
  7197. unsigned long LONG;
  7198. struct {
  7199. #ifdef __RX_LITTLE_ENDIAN__
  7200. unsigned long GAIN15 : 11;
  7201. unsigned long : 5;
  7202. unsigned long GAIN14 : 11;
  7203. unsigned long : 5;
  7204. #else
  7205. unsigned long : 5;
  7206. unsigned long GAIN14 : 11;
  7207. unsigned long : 5;
  7208. unsigned long GAIN15 : 11;
  7209. #endif
  7210. } BIT;
  7211. } GAMGLUT8;
  7212. union {
  7213. unsigned long LONG;
  7214. struct {
  7215. #ifdef __RX_LITTLE_ENDIAN__
  7216. unsigned long TH03 : 10;
  7217. unsigned long TH02 : 10;
  7218. unsigned long TH01 : 10;
  7219. unsigned long : 2;
  7220. #else
  7221. unsigned long : 2;
  7222. unsigned long TH01 : 10;
  7223. unsigned long TH02 : 10;
  7224. unsigned long TH03 : 10;
  7225. #endif
  7226. } BIT;
  7227. } GAMGAREA1;
  7228. union {
  7229. unsigned long LONG;
  7230. struct {
  7231. #ifdef __RX_LITTLE_ENDIAN__
  7232. unsigned long TH06 : 10;
  7233. unsigned long TH05 : 10;
  7234. unsigned long TH04 : 10;
  7235. unsigned long : 2;
  7236. #else
  7237. unsigned long : 2;
  7238. unsigned long TH04 : 10;
  7239. unsigned long TH05 : 10;
  7240. unsigned long TH06 : 10;
  7241. #endif
  7242. } BIT;
  7243. } GAMGAREA2;
  7244. union {
  7245. unsigned long LONG;
  7246. struct {
  7247. #ifdef __RX_LITTLE_ENDIAN__
  7248. unsigned long TH09 : 10;
  7249. unsigned long TH08 : 10;
  7250. unsigned long TH07 : 10;
  7251. unsigned long : 2;
  7252. #else
  7253. unsigned long : 2;
  7254. unsigned long TH07 : 10;
  7255. unsigned long TH08 : 10;
  7256. unsigned long TH09 : 10;
  7257. #endif
  7258. } BIT;
  7259. } GAMGAREA3;
  7260. union {
  7261. unsigned long LONG;
  7262. struct {
  7263. #ifdef __RX_LITTLE_ENDIAN__
  7264. unsigned long TH12 : 10;
  7265. unsigned long TH11 : 10;
  7266. unsigned long TH10 : 10;
  7267. unsigned long : 2;
  7268. #else
  7269. unsigned long : 2;
  7270. unsigned long TH10 : 10;
  7271. unsigned long TH11 : 10;
  7272. unsigned long TH12 : 10;
  7273. #endif
  7274. } BIT;
  7275. } GAMGAREA4;
  7276. union {
  7277. unsigned long LONG;
  7278. struct {
  7279. #ifdef __RX_LITTLE_ENDIAN__
  7280. unsigned long TH15 : 10;
  7281. unsigned long TH14 : 10;
  7282. unsigned long TH13 : 10;
  7283. unsigned long : 2;
  7284. #else
  7285. unsigned long : 2;
  7286. unsigned long TH13 : 10;
  7287. unsigned long TH14 : 10;
  7288. unsigned long TH15 : 10;
  7289. #endif
  7290. } BIT;
  7291. } GAMGAREA5;
  7292. char wk9[4];
  7293. union {
  7294. unsigned long LONG;
  7295. struct {
  7296. #ifdef __RX_LITTLE_ENDIAN__
  7297. unsigned long VEN : 1;
  7298. unsigned long : 31;
  7299. #else
  7300. unsigned long : 31;
  7301. unsigned long VEN : 1;
  7302. #endif
  7303. } BIT;
  7304. } GAMBVEN;
  7305. char wk10[4];
  7306. union {
  7307. unsigned long LONG;
  7308. struct {
  7309. #ifdef __RX_LITTLE_ENDIAN__
  7310. unsigned long GAIN01 : 11;
  7311. unsigned long : 5;
  7312. unsigned long GAIN00 : 11;
  7313. unsigned long : 5;
  7314. #else
  7315. unsigned long : 5;
  7316. unsigned long GAIN00 : 11;
  7317. unsigned long : 5;
  7318. unsigned long GAIN01 : 11;
  7319. #endif
  7320. } BIT;
  7321. } GAMBLUT1;
  7322. union {
  7323. unsigned long LONG;
  7324. struct {
  7325. #ifdef __RX_LITTLE_ENDIAN__
  7326. unsigned long GAIN03 : 11;
  7327. unsigned long : 5;
  7328. unsigned long GAIN02 : 11;
  7329. unsigned long : 5;
  7330. #else
  7331. unsigned long : 5;
  7332. unsigned long GAIN02 : 11;
  7333. unsigned long : 5;
  7334. unsigned long GAIN03 : 11;
  7335. #endif
  7336. } BIT;
  7337. } GAMBLUT2;
  7338. union {
  7339. unsigned long LONG;
  7340. struct {
  7341. #ifdef __RX_LITTLE_ENDIAN__
  7342. unsigned long GAIN05 : 11;
  7343. unsigned long : 5;
  7344. unsigned long GAIN04 : 11;
  7345. unsigned long : 5;
  7346. #else
  7347. unsigned long : 5;
  7348. unsigned long GAIN04 : 11;
  7349. unsigned long : 5;
  7350. unsigned long GAIN05 : 11;
  7351. #endif
  7352. } BIT;
  7353. } GAMBLUT3;
  7354. union {
  7355. unsigned long LONG;
  7356. struct {
  7357. #ifdef __RX_LITTLE_ENDIAN__
  7358. unsigned long GAIN07 : 11;
  7359. unsigned long : 5;
  7360. unsigned long GAIN06 : 11;
  7361. unsigned long : 5;
  7362. #else
  7363. unsigned long : 5;
  7364. unsigned long GAIN06 : 11;
  7365. unsigned long : 5;
  7366. unsigned long GAIN07 : 11;
  7367. #endif
  7368. } BIT;
  7369. } GAMBLUT4;
  7370. union {
  7371. unsigned long LONG;
  7372. struct {
  7373. #ifdef __RX_LITTLE_ENDIAN__
  7374. unsigned long GAIN09 : 11;
  7375. unsigned long : 5;
  7376. unsigned long GAIN08 : 11;
  7377. unsigned long : 5;
  7378. #else
  7379. unsigned long : 5;
  7380. unsigned long GAIN08 : 11;
  7381. unsigned long : 5;
  7382. unsigned long GAIN09 : 11;
  7383. #endif
  7384. } BIT;
  7385. } GAMBLUT5;
  7386. union {
  7387. unsigned long LONG;
  7388. struct {
  7389. #ifdef __RX_LITTLE_ENDIAN__
  7390. unsigned long GAIN11 : 11;
  7391. unsigned long : 5;
  7392. unsigned long GAIN10 : 11;
  7393. unsigned long : 5;
  7394. #else
  7395. unsigned long : 5;
  7396. unsigned long GAIN10 : 11;
  7397. unsigned long : 5;
  7398. unsigned long GAIN11 : 11;
  7399. #endif
  7400. } BIT;
  7401. } GAMBLUT6;
  7402. union {
  7403. unsigned long LONG;
  7404. struct {
  7405. #ifdef __RX_LITTLE_ENDIAN__
  7406. unsigned long GAIN13 : 11;
  7407. unsigned long : 5;
  7408. unsigned long GAIN12 : 11;
  7409. unsigned long : 5;
  7410. #else
  7411. unsigned long : 5;
  7412. unsigned long GAIN12 : 11;
  7413. unsigned long : 5;
  7414. unsigned long GAIN13 : 11;
  7415. #endif
  7416. } BIT;
  7417. } GAMBLUT7;
  7418. union {
  7419. unsigned long LONG;
  7420. struct {
  7421. #ifdef __RX_LITTLE_ENDIAN__
  7422. unsigned long GAIN15 : 11;
  7423. unsigned long : 5;
  7424. unsigned long GAIN14 : 11;
  7425. unsigned long : 5;
  7426. #else
  7427. unsigned long : 5;
  7428. unsigned long GAIN14 : 11;
  7429. unsigned long : 5;
  7430. unsigned long GAIN15 : 11;
  7431. #endif
  7432. } BIT;
  7433. } GAMBLUT8;
  7434. union {
  7435. unsigned long LONG;
  7436. struct {
  7437. #ifdef __RX_LITTLE_ENDIAN__
  7438. unsigned long TH03 : 10;
  7439. unsigned long TH02 : 10;
  7440. unsigned long TH01 : 10;
  7441. unsigned long : 2;
  7442. #else
  7443. unsigned long : 2;
  7444. unsigned long TH01 : 10;
  7445. unsigned long TH02 : 10;
  7446. unsigned long TH03 : 10;
  7447. #endif
  7448. } BIT;
  7449. } GAMBAREA1;
  7450. union {
  7451. unsigned long LONG;
  7452. struct {
  7453. #ifdef __RX_LITTLE_ENDIAN__
  7454. unsigned long TH06 : 10;
  7455. unsigned long TH05 : 10;
  7456. unsigned long TH04 : 10;
  7457. unsigned long : 2;
  7458. #else
  7459. unsigned long : 2;
  7460. unsigned long TH04 : 10;
  7461. unsigned long TH05 : 10;
  7462. unsigned long TH06 : 10;
  7463. #endif
  7464. } BIT;
  7465. } GAMBAREA2;
  7466. union {
  7467. unsigned long LONG;
  7468. struct {
  7469. #ifdef __RX_LITTLE_ENDIAN__
  7470. unsigned long TH09 : 10;
  7471. unsigned long TH08 : 10;
  7472. unsigned long TH07 : 10;
  7473. unsigned long : 2;
  7474. #else
  7475. unsigned long : 2;
  7476. unsigned long TH07 : 10;
  7477. unsigned long TH08 : 10;
  7478. unsigned long TH09 : 10;
  7479. #endif
  7480. } BIT;
  7481. } GAMBAREA3;
  7482. union {
  7483. unsigned long LONG;
  7484. struct {
  7485. #ifdef __RX_LITTLE_ENDIAN__
  7486. unsigned long TH12 : 10;
  7487. unsigned long TH11 : 10;
  7488. unsigned long TH10 : 10;
  7489. unsigned long : 2;
  7490. #else
  7491. unsigned long : 2;
  7492. unsigned long TH10 : 10;
  7493. unsigned long TH11 : 10;
  7494. unsigned long TH12 : 10;
  7495. #endif
  7496. } BIT;
  7497. } GAMBAREA4;
  7498. union {
  7499. unsigned long LONG;
  7500. struct {
  7501. #ifdef __RX_LITTLE_ENDIAN__
  7502. unsigned long TH15 : 10;
  7503. unsigned long TH14 : 10;
  7504. unsigned long TH13 : 10;
  7505. unsigned long : 2;
  7506. #else
  7507. unsigned long : 2;
  7508. unsigned long TH13 : 10;
  7509. unsigned long TH14 : 10;
  7510. unsigned long TH15 : 10;
  7511. #endif
  7512. } BIT;
  7513. } GAMBAREA5;
  7514. char wk11[4];
  7515. union {
  7516. unsigned long LONG;
  7517. struct {
  7518. #ifdef __RX_LITTLE_ENDIAN__
  7519. unsigned long VEN : 1;
  7520. unsigned long : 31;
  7521. #else
  7522. unsigned long : 31;
  7523. unsigned long VEN : 1;
  7524. #endif
  7525. } BIT;
  7526. } GAMRVEN;
  7527. char wk12[4];
  7528. union {
  7529. unsigned long LONG;
  7530. struct {
  7531. #ifdef __RX_LITTLE_ENDIAN__
  7532. unsigned long GAIN01 : 11;
  7533. unsigned long : 5;
  7534. unsigned long GAIN00 : 11;
  7535. unsigned long : 5;
  7536. #else
  7537. unsigned long : 5;
  7538. unsigned long GAIN00 : 11;
  7539. unsigned long : 5;
  7540. unsigned long GAIN01 : 11;
  7541. #endif
  7542. } BIT;
  7543. } GAMRLUT1;
  7544. union {
  7545. unsigned long LONG;
  7546. struct {
  7547. #ifdef __RX_LITTLE_ENDIAN__
  7548. unsigned long GAIN03 : 11;
  7549. unsigned long : 5;
  7550. unsigned long GAIN02 : 11;
  7551. unsigned long : 5;
  7552. #else
  7553. unsigned long : 5;
  7554. unsigned long GAIN02 : 11;
  7555. unsigned long : 5;
  7556. unsigned long GAIN03 : 11;
  7557. #endif
  7558. } BIT;
  7559. } GAMRLUT2;
  7560. union {
  7561. unsigned long LONG;
  7562. struct {
  7563. #ifdef __RX_LITTLE_ENDIAN__
  7564. unsigned long GAIN05 : 11;
  7565. unsigned long : 5;
  7566. unsigned long GAIN04 : 11;
  7567. unsigned long : 5;
  7568. #else
  7569. unsigned long : 5;
  7570. unsigned long GAIN04 : 11;
  7571. unsigned long : 5;
  7572. unsigned long GAIN05 : 11;
  7573. #endif
  7574. } BIT;
  7575. } GAMRLUT3;
  7576. union {
  7577. unsigned long LONG;
  7578. struct {
  7579. #ifdef __RX_LITTLE_ENDIAN__
  7580. unsigned long GAIN07 : 11;
  7581. unsigned long : 5;
  7582. unsigned long GAIN06 : 11;
  7583. unsigned long : 5;
  7584. #else
  7585. unsigned long : 5;
  7586. unsigned long GAIN06 : 11;
  7587. unsigned long : 5;
  7588. unsigned long GAIN07 : 11;
  7589. #endif
  7590. } BIT;
  7591. } GAMRLUT4;
  7592. union {
  7593. unsigned long LONG;
  7594. struct {
  7595. #ifdef __RX_LITTLE_ENDIAN__
  7596. unsigned long GAIN09 : 11;
  7597. unsigned long : 5;
  7598. unsigned long GAIN08 : 11;
  7599. unsigned long : 5;
  7600. #else
  7601. unsigned long : 5;
  7602. unsigned long GAIN08 : 11;
  7603. unsigned long : 5;
  7604. unsigned long GAIN09 : 11;
  7605. #endif
  7606. } BIT;
  7607. } GAMRLUT5;
  7608. union {
  7609. unsigned long LONG;
  7610. struct {
  7611. #ifdef __RX_LITTLE_ENDIAN__
  7612. unsigned long GAIN11 : 11;
  7613. unsigned long : 5;
  7614. unsigned long GAIN10 : 11;
  7615. unsigned long : 5;
  7616. #else
  7617. unsigned long : 5;
  7618. unsigned long GAIN10 : 11;
  7619. unsigned long : 5;
  7620. unsigned long GAIN11 : 11;
  7621. #endif
  7622. } BIT;
  7623. } GAMRLUT6;
  7624. union {
  7625. unsigned long LONG;
  7626. struct {
  7627. #ifdef __RX_LITTLE_ENDIAN__
  7628. unsigned long GAIN13 : 11;
  7629. unsigned long : 5;
  7630. unsigned long GAIN12 : 11;
  7631. unsigned long : 5;
  7632. #else
  7633. unsigned long : 5;
  7634. unsigned long GAIN12 : 11;
  7635. unsigned long : 5;
  7636. unsigned long GAIN13 : 11;
  7637. #endif
  7638. } BIT;
  7639. } GAMRLUT7;
  7640. union {
  7641. unsigned long LONG;
  7642. struct {
  7643. #ifdef __RX_LITTLE_ENDIAN__
  7644. unsigned long GAIN15 : 11;
  7645. unsigned long : 5;
  7646. unsigned long GAIN14 : 11;
  7647. unsigned long : 5;
  7648. #else
  7649. unsigned long : 5;
  7650. unsigned long GAIN14 : 11;
  7651. unsigned long : 5;
  7652. unsigned long GAIN15 : 11;
  7653. #endif
  7654. } BIT;
  7655. } GAMRLUT8;
  7656. union {
  7657. unsigned long LONG;
  7658. struct {
  7659. #ifdef __RX_LITTLE_ENDIAN__
  7660. unsigned long TH03 : 10;
  7661. unsigned long TH02 : 10;
  7662. unsigned long TH01 : 10;
  7663. unsigned long : 2;
  7664. #else
  7665. unsigned long : 2;
  7666. unsigned long TH01 : 10;
  7667. unsigned long TH02 : 10;
  7668. unsigned long TH03 : 10;
  7669. #endif
  7670. } BIT;
  7671. } GAMRAREA1;
  7672. union {
  7673. unsigned long LONG;
  7674. struct {
  7675. #ifdef __RX_LITTLE_ENDIAN__
  7676. unsigned long TH06 : 10;
  7677. unsigned long TH05 : 10;
  7678. unsigned long TH04 : 10;
  7679. unsigned long : 2;
  7680. #else
  7681. unsigned long : 2;
  7682. unsigned long TH04 : 10;
  7683. unsigned long TH05 : 10;
  7684. unsigned long TH06 : 10;
  7685. #endif
  7686. } BIT;
  7687. } GAMRAREA2;
  7688. union {
  7689. unsigned long LONG;
  7690. struct {
  7691. #ifdef __RX_LITTLE_ENDIAN__
  7692. unsigned long TH09 : 10;
  7693. unsigned long TH08 : 10;
  7694. unsigned long TH07 : 10;
  7695. unsigned long : 2;
  7696. #else
  7697. unsigned long : 2;
  7698. unsigned long TH07 : 10;
  7699. unsigned long TH08 : 10;
  7700. unsigned long TH09 : 10;
  7701. #endif
  7702. } BIT;
  7703. } GAMRAREA3;
  7704. union {
  7705. unsigned long LONG;
  7706. struct {
  7707. #ifdef __RX_LITTLE_ENDIAN__
  7708. unsigned long TH12 : 10;
  7709. unsigned long TH11 : 10;
  7710. unsigned long TH10 : 10;
  7711. unsigned long : 2;
  7712. #else
  7713. unsigned long : 2;
  7714. unsigned long TH10 : 10;
  7715. unsigned long TH11 : 10;
  7716. unsigned long TH12 : 10;
  7717. #endif
  7718. } BIT;
  7719. } GAMRAREA4;
  7720. union {
  7721. unsigned long LONG;
  7722. struct {
  7723. #ifdef __RX_LITTLE_ENDIAN__
  7724. unsigned long TH15 : 10;
  7725. unsigned long TH14 : 10;
  7726. unsigned long TH13 : 10;
  7727. unsigned long : 2;
  7728. #else
  7729. unsigned long : 2;
  7730. unsigned long TH13 : 10;
  7731. unsigned long TH14 : 10;
  7732. unsigned long TH15 : 10;
  7733. #endif
  7734. } BIT;
  7735. } GAMRAREA5;
  7736. char wk13[4];
  7737. union {
  7738. unsigned long LONG;
  7739. struct {
  7740. #ifdef __RX_LITTLE_ENDIAN__
  7741. unsigned long VEN : 1;
  7742. unsigned long : 31;
  7743. #else
  7744. unsigned long : 31;
  7745. unsigned long VEN : 1;
  7746. #endif
  7747. } BIT;
  7748. } OUTVEN;
  7749. union {
  7750. unsigned long LONG;
  7751. struct {
  7752. #ifdef __RX_LITTLE_ENDIAN__
  7753. unsigned long PHASE : 2;
  7754. unsigned long : 2;
  7755. unsigned long DIRSEL : 1;
  7756. unsigned long : 4;
  7757. unsigned long FRQSEL : 1;
  7758. unsigned long : 2;
  7759. unsigned long FORMAT : 2;
  7760. unsigned long : 10;
  7761. unsigned long SWAPON : 1;
  7762. unsigned long : 3;
  7763. unsigned long ENDIANON : 1;
  7764. unsigned long : 3;
  7765. #else
  7766. unsigned long : 3;
  7767. unsigned long ENDIANON : 1;
  7768. unsigned long : 3;
  7769. unsigned long SWAPON : 1;
  7770. unsigned long : 10;
  7771. unsigned long FORMAT : 2;
  7772. unsigned long : 2;
  7773. unsigned long FRQSEL : 1;
  7774. unsigned long : 4;
  7775. unsigned long DIRSEL : 1;
  7776. unsigned long : 2;
  7777. unsigned long PHASE : 2;
  7778. #endif
  7779. } BIT;
  7780. } OUTSET;
  7781. union {
  7782. unsigned long LONG;
  7783. struct {
  7784. #ifdef __RX_LITTLE_ENDIAN__
  7785. unsigned long BRTG : 10;
  7786. unsigned long : 22;
  7787. #else
  7788. unsigned long : 22;
  7789. unsigned long BRTG : 10;
  7790. #endif
  7791. } BIT;
  7792. } BRIGHT1;
  7793. union {
  7794. unsigned long LONG;
  7795. struct {
  7796. #ifdef __RX_LITTLE_ENDIAN__
  7797. unsigned long BRTR : 10;
  7798. unsigned long : 6;
  7799. unsigned long BRTB : 10;
  7800. unsigned long : 6;
  7801. #else
  7802. unsigned long : 6;
  7803. unsigned long BRTB : 10;
  7804. unsigned long : 6;
  7805. unsigned long BRTR : 10;
  7806. #endif
  7807. } BIT;
  7808. } BRIGHT2;
  7809. union {
  7810. unsigned long LONG;
  7811. struct {
  7812. #ifdef __RX_LITTLE_ENDIAN__
  7813. unsigned long CONTR : 8;
  7814. unsigned long CONTB : 8;
  7815. unsigned long CONTG : 8;
  7816. unsigned long : 8;
  7817. #else
  7818. unsigned long : 8;
  7819. unsigned long CONTG : 8;
  7820. unsigned long CONTB : 8;
  7821. unsigned long CONTR : 8;
  7822. #endif
  7823. } BIT;
  7824. } CONTRAST;
  7825. union {
  7826. unsigned long LONG;
  7827. struct {
  7828. #ifdef __RX_LITTLE_ENDIAN__
  7829. unsigned long PD : 2;
  7830. unsigned long : 2;
  7831. unsigned long PC : 2;
  7832. unsigned long : 2;
  7833. unsigned long PB : 2;
  7834. unsigned long : 2;
  7835. unsigned long PA : 2;
  7836. unsigned long : 2;
  7837. unsigned long FORM : 2;
  7838. unsigned long : 2;
  7839. unsigned long SEL : 2;
  7840. unsigned long : 10;
  7841. #else
  7842. unsigned long : 10;
  7843. unsigned long SEL : 2;
  7844. unsigned long : 2;
  7845. unsigned long FORM : 2;
  7846. unsigned long : 2;
  7847. unsigned long PA : 2;
  7848. unsigned long : 2;
  7849. unsigned long PB : 2;
  7850. unsigned long : 2;
  7851. unsigned long PC : 2;
  7852. unsigned long : 2;
  7853. unsigned long PD : 2;
  7854. #endif
  7855. } BIT;
  7856. } PANELDTHA;
  7857. char wk14[12];
  7858. union {
  7859. unsigned long LONG;
  7860. struct {
  7861. #ifdef __RX_LITTLE_ENDIAN__
  7862. unsigned long : 3;
  7863. unsigned long TCON3EDG : 1;
  7864. unsigned long TCON2EDG : 1;
  7865. unsigned long TCON1EDG : 1;
  7866. unsigned long TCON0EDG : 1;
  7867. unsigned long : 1;
  7868. unsigned long LCDEDG : 1;
  7869. unsigned long : 3;
  7870. unsigned long FRONTGAM : 1;
  7871. unsigned long : 19;
  7872. #else
  7873. unsigned long : 19;
  7874. unsigned long FRONTGAM : 1;
  7875. unsigned long : 3;
  7876. unsigned long LCDEDG : 1;
  7877. unsigned long : 1;
  7878. unsigned long TCON0EDG : 1;
  7879. unsigned long TCON1EDG : 1;
  7880. unsigned long TCON2EDG : 1;
  7881. unsigned long TCON3EDG : 1;
  7882. unsigned long : 3;
  7883. #endif
  7884. } BIT;
  7885. } CLKPHASE;
  7886. char wk15[28];
  7887. union {
  7888. unsigned long LONG;
  7889. struct {
  7890. #ifdef __RX_LITTLE_ENDIAN__
  7891. unsigned long OFFSET : 11;
  7892. unsigned long : 5;
  7893. unsigned long HALF : 11;
  7894. unsigned long : 5;
  7895. #else
  7896. unsigned long : 5;
  7897. unsigned long HALF : 11;
  7898. unsigned long : 5;
  7899. unsigned long OFFSET : 11;
  7900. #endif
  7901. } BIT;
  7902. } TCONTIM;
  7903. union {
  7904. unsigned long LONG;
  7905. struct {
  7906. #ifdef __RX_LITTLE_ENDIAN__
  7907. unsigned long VW : 11;
  7908. unsigned long : 5;
  7909. unsigned long VS : 11;
  7910. unsigned long : 5;
  7911. #else
  7912. unsigned long : 5;
  7913. unsigned long VS : 11;
  7914. unsigned long : 5;
  7915. unsigned long VW : 11;
  7916. #endif
  7917. } BIT;
  7918. } TCONSTVA1;
  7919. union {
  7920. unsigned long LONG;
  7921. struct {
  7922. #ifdef __RX_LITTLE_ENDIAN__
  7923. unsigned long SEL : 3;
  7924. unsigned long : 1;
  7925. unsigned long INV : 1;
  7926. unsigned long : 27;
  7927. #else
  7928. unsigned long : 27;
  7929. unsigned long INV : 1;
  7930. unsigned long : 1;
  7931. unsigned long SEL : 3;
  7932. #endif
  7933. } BIT;
  7934. } TCONSTVA2;
  7935. union {
  7936. unsigned long LONG;
  7937. struct {
  7938. #ifdef __RX_LITTLE_ENDIAN__
  7939. unsigned long VW : 11;
  7940. unsigned long : 5;
  7941. unsigned long VS : 11;
  7942. unsigned long : 5;
  7943. #else
  7944. unsigned long : 5;
  7945. unsigned long VS : 11;
  7946. unsigned long : 5;
  7947. unsigned long VW : 11;
  7948. #endif
  7949. } BIT;
  7950. } TCONSTVB1;
  7951. union {
  7952. unsigned long LONG;
  7953. struct {
  7954. #ifdef __RX_LITTLE_ENDIAN__
  7955. unsigned long SEL : 3;
  7956. unsigned long : 1;
  7957. unsigned long INV : 1;
  7958. unsigned long : 27;
  7959. #else
  7960. unsigned long : 27;
  7961. unsigned long INV : 1;
  7962. unsigned long : 1;
  7963. unsigned long SEL : 3;
  7964. #endif
  7965. } BIT;
  7966. } TCONSTVB2;
  7967. union {
  7968. unsigned long LONG;
  7969. struct {
  7970. #ifdef __RX_LITTLE_ENDIAN__
  7971. unsigned long HW : 11;
  7972. unsigned long : 5;
  7973. unsigned long HS : 11;
  7974. unsigned long : 5;
  7975. #else
  7976. unsigned long : 5;
  7977. unsigned long HS : 11;
  7978. unsigned long : 5;
  7979. unsigned long HW : 11;
  7980. #endif
  7981. } BIT;
  7982. } TCONSTHA1;
  7983. union {
  7984. unsigned long LONG;
  7985. struct {
  7986. #ifdef __RX_LITTLE_ENDIAN__
  7987. unsigned long SEL : 3;
  7988. unsigned long : 1;
  7989. unsigned long INV : 1;
  7990. unsigned long : 3;
  7991. unsigned long HSSEL : 1;
  7992. unsigned long : 23;
  7993. #else
  7994. unsigned long : 23;
  7995. unsigned long HSSEL : 1;
  7996. unsigned long : 3;
  7997. unsigned long INV : 1;
  7998. unsigned long : 1;
  7999. unsigned long SEL : 3;
  8000. #endif
  8001. } BIT;
  8002. } TCONSTHA2;
  8003. union {
  8004. unsigned long LONG;
  8005. struct {
  8006. #ifdef __RX_LITTLE_ENDIAN__
  8007. unsigned long HW : 11;
  8008. unsigned long : 5;
  8009. unsigned long HS : 11;
  8010. unsigned long : 5;
  8011. #else
  8012. unsigned long : 5;
  8013. unsigned long HS : 11;
  8014. unsigned long : 5;
  8015. unsigned long HW : 11;
  8016. #endif
  8017. } BIT;
  8018. } TCONSTHB1;
  8019. union {
  8020. unsigned long LONG;
  8021. struct {
  8022. #ifdef __RX_LITTLE_ENDIAN__
  8023. unsigned long SEL : 3;
  8024. unsigned long : 1;
  8025. unsigned long INV : 1;
  8026. unsigned long : 3;
  8027. unsigned long HSSEL : 1;
  8028. unsigned long : 23;
  8029. #else
  8030. unsigned long : 23;
  8031. unsigned long HSSEL : 1;
  8032. unsigned long : 3;
  8033. unsigned long INV : 1;
  8034. unsigned long : 1;
  8035. unsigned long SEL : 3;
  8036. #endif
  8037. } BIT;
  8038. } TCONSTHB2;
  8039. union {
  8040. unsigned long LONG;
  8041. struct {
  8042. #ifdef __RX_LITTLE_ENDIAN__
  8043. unsigned long INV : 1;
  8044. unsigned long : 31;
  8045. #else
  8046. unsigned long : 31;
  8047. unsigned long INV : 1;
  8048. #endif
  8049. } BIT;
  8050. } TCONDE;
  8051. char wk16[20];
  8052. union {
  8053. unsigned long LONG;
  8054. struct {
  8055. #ifdef __RX_LITTLE_ENDIAN__
  8056. unsigned long VPOSDTC : 1;
  8057. unsigned long GR1UFDTC : 1;
  8058. unsigned long GR2UFDTC : 1;
  8059. unsigned long : 29;
  8060. #else
  8061. unsigned long : 29;
  8062. unsigned long GR2UFDTC : 1;
  8063. unsigned long GR1UFDTC : 1;
  8064. unsigned long VPOSDTC : 1;
  8065. #endif
  8066. } BIT;
  8067. } DTCTEN;
  8068. union {
  8069. unsigned long LONG;
  8070. struct {
  8071. #ifdef __RX_LITTLE_ENDIAN__
  8072. unsigned long VPOSINTEN : 1;
  8073. unsigned long GR1UFINTEN : 1;
  8074. unsigned long GR2UFINTEN : 1;
  8075. unsigned long : 29;
  8076. #else
  8077. unsigned long : 29;
  8078. unsigned long GR2UFINTEN : 1;
  8079. unsigned long GR1UFINTEN : 1;
  8080. unsigned long VPOSINTEN : 1;
  8081. #endif
  8082. } BIT;
  8083. } INTEN;
  8084. union {
  8085. unsigned long LONG;
  8086. struct {
  8087. #ifdef __RX_LITTLE_ENDIAN__
  8088. unsigned long VPOSCLR : 1;
  8089. unsigned long GR1UFCLR : 1;
  8090. unsigned long GR2UFCLR : 1;
  8091. unsigned long : 29;
  8092. #else
  8093. unsigned long : 29;
  8094. unsigned long GR2UFCLR : 1;
  8095. unsigned long GR1UFCLR : 1;
  8096. unsigned long VPOSCLR : 1;
  8097. #endif
  8098. } BIT;
  8099. } STCLR;
  8100. union {
  8101. unsigned long LONG;
  8102. struct {
  8103. #ifdef __RX_LITTLE_ENDIAN__
  8104. unsigned long VPOS : 1;
  8105. unsigned long GR1UF : 1;
  8106. unsigned long GR2UF : 1;
  8107. unsigned long : 29;
  8108. #else
  8109. unsigned long : 29;
  8110. unsigned long GR2UF : 1;
  8111. unsigned long GR1UF : 1;
  8112. unsigned long VPOS : 1;
  8113. #endif
  8114. } BIT;
  8115. } STMON;
  8116. union {
  8117. unsigned long LONG;
  8118. struct {
  8119. #ifdef __RX_LITTLE_ENDIAN__
  8120. unsigned long DCDR : 6;
  8121. unsigned long CLKEN : 1;
  8122. unsigned long : 1;
  8123. unsigned long CLKSEL : 1;
  8124. unsigned long : 3;
  8125. unsigned long PIXSEL : 1;
  8126. unsigned long : 19;
  8127. #else
  8128. unsigned long : 19;
  8129. unsigned long PIXSEL : 1;
  8130. unsigned long : 3;
  8131. unsigned long CLKSEL : 1;
  8132. unsigned long : 1;
  8133. unsigned long CLKEN : 1;
  8134. unsigned long DCDR : 6;
  8135. #endif
  8136. } BIT;
  8137. } PANELCLK;
  8138. } st_glcdc_t;
  8139. typedef struct st_icu {
  8140. union {
  8141. unsigned char BYTE;
  8142. struct {
  8143. #ifdef __RX_LITTLE_ENDIAN__
  8144. unsigned char IR : 1;
  8145. unsigned char : 7;
  8146. #else
  8147. unsigned char : 7;
  8148. unsigned char IR : 1;
  8149. #endif
  8150. } BIT;
  8151. } IR[256];
  8152. union {
  8153. unsigned char BYTE;
  8154. struct {
  8155. #ifdef __RX_LITTLE_ENDIAN__
  8156. unsigned char DTCE : 1;
  8157. unsigned char : 7;
  8158. #else
  8159. unsigned char : 7;
  8160. unsigned char DTCE : 1;
  8161. #endif
  8162. } BIT;
  8163. } DTCER[256];
  8164. union {
  8165. unsigned char BYTE;
  8166. struct {
  8167. #ifdef __RX_LITTLE_ENDIAN__
  8168. unsigned char IEN0 : 1;
  8169. unsigned char IEN1 : 1;
  8170. unsigned char IEN2 : 1;
  8171. unsigned char IEN3 : 1;
  8172. unsigned char IEN4 : 1;
  8173. unsigned char IEN5 : 1;
  8174. unsigned char IEN6 : 1;
  8175. unsigned char IEN7 : 1;
  8176. #else
  8177. unsigned char IEN7 : 1;
  8178. unsigned char IEN6 : 1;
  8179. unsigned char IEN5 : 1;
  8180. unsigned char IEN4 : 1;
  8181. unsigned char IEN3 : 1;
  8182. unsigned char IEN2 : 1;
  8183. unsigned char IEN1 : 1;
  8184. unsigned char IEN0 : 1;
  8185. #endif
  8186. } BIT;
  8187. } IER[32];
  8188. char wk0[192];
  8189. union {
  8190. unsigned char BYTE;
  8191. struct {
  8192. #ifdef __RX_LITTLE_ENDIAN__
  8193. unsigned char SWINT : 1;
  8194. unsigned char : 7;
  8195. #else
  8196. unsigned char : 7;
  8197. unsigned char SWINT : 1;
  8198. #endif
  8199. } BIT;
  8200. } SWINTR;
  8201. union {
  8202. unsigned char BYTE;
  8203. struct {
  8204. #ifdef __RX_LITTLE_ENDIAN__
  8205. unsigned char SWINT2 : 1;
  8206. unsigned char : 7;
  8207. #else
  8208. unsigned char : 7;
  8209. unsigned char SWINT2 : 1;
  8210. #endif
  8211. } BIT;
  8212. } SWINT2R;
  8213. char wk1[14];
  8214. union {
  8215. unsigned short WORD;
  8216. struct {
  8217. #ifdef __RX_LITTLE_ENDIAN__
  8218. unsigned short FVCT : 8;
  8219. unsigned short : 7;
  8220. unsigned short FIEN : 1;
  8221. #else
  8222. unsigned short FIEN : 1;
  8223. unsigned short : 7;
  8224. unsigned short FVCT : 8;
  8225. #endif
  8226. } BIT;
  8227. } FIR;
  8228. char wk2[14];
  8229. union {
  8230. unsigned char BYTE;
  8231. struct {
  8232. #ifdef __RX_LITTLE_ENDIAN__
  8233. unsigned char IPR : 4;
  8234. unsigned char : 4;
  8235. #else
  8236. unsigned char : 4;
  8237. unsigned char IPR : 4;
  8238. #endif
  8239. } BIT;
  8240. } IPR[256];
  8241. unsigned char DMRSR0;
  8242. char wk3[3];
  8243. unsigned char DMRSR1;
  8244. char wk4[3];
  8245. unsigned char DMRSR2;
  8246. char wk5[3];
  8247. unsigned char DMRSR3;
  8248. char wk6[3];
  8249. unsigned char DMRSR4;
  8250. char wk7[3];
  8251. unsigned char DMRSR5;
  8252. char wk8[3];
  8253. unsigned char DMRSR6;
  8254. char wk9[3];
  8255. unsigned char DMRSR7;
  8256. char wk10[227];
  8257. union {
  8258. unsigned char BYTE;
  8259. struct {
  8260. #ifdef __RX_LITTLE_ENDIAN__
  8261. unsigned char : 2;
  8262. unsigned char IRQMD : 2;
  8263. unsigned char : 4;
  8264. #else
  8265. unsigned char : 4;
  8266. unsigned char IRQMD : 2;
  8267. unsigned char : 2;
  8268. #endif
  8269. } BIT;
  8270. } IRQCR[16];
  8271. char wk11[16];
  8272. union {
  8273. unsigned char BYTE;
  8274. struct {
  8275. #ifdef __RX_LITTLE_ENDIAN__
  8276. unsigned char FLTEN0 : 1;
  8277. unsigned char FLTEN1 : 1;
  8278. unsigned char FLTEN2 : 1;
  8279. unsigned char FLTEN3 : 1;
  8280. unsigned char FLTEN4 : 1;
  8281. unsigned char FLTEN5 : 1;
  8282. unsigned char FLTEN6 : 1;
  8283. unsigned char FLTEN7 : 1;
  8284. #else
  8285. unsigned char FLTEN7 : 1;
  8286. unsigned char FLTEN6 : 1;
  8287. unsigned char FLTEN5 : 1;
  8288. unsigned char FLTEN4 : 1;
  8289. unsigned char FLTEN3 : 1;
  8290. unsigned char FLTEN2 : 1;
  8291. unsigned char FLTEN1 : 1;
  8292. unsigned char FLTEN0 : 1;
  8293. #endif
  8294. } BIT;
  8295. } IRQFLTE0;
  8296. union {
  8297. unsigned char BYTE;
  8298. struct {
  8299. #ifdef __RX_LITTLE_ENDIAN__
  8300. unsigned char FLTEN8 : 1;
  8301. unsigned char FLTEN9 : 1;
  8302. unsigned char FLTEN10 : 1;
  8303. unsigned char FLTEN11 : 1;
  8304. unsigned char FLTEN12 : 1;
  8305. unsigned char FLTEN13 : 1;
  8306. unsigned char FLTEN14 : 1;
  8307. unsigned char FLTEN15 : 1;
  8308. #else
  8309. unsigned char FLTEN15 : 1;
  8310. unsigned char FLTEN14 : 1;
  8311. unsigned char FLTEN13 : 1;
  8312. unsigned char FLTEN12 : 1;
  8313. unsigned char FLTEN11 : 1;
  8314. unsigned char FLTEN10 : 1;
  8315. unsigned char FLTEN9 : 1;
  8316. unsigned char FLTEN8 : 1;
  8317. #endif
  8318. } BIT;
  8319. } IRQFLTE1;
  8320. char wk12[6];
  8321. union {
  8322. unsigned short WORD;
  8323. struct {
  8324. #ifdef __RX_LITTLE_ENDIAN__
  8325. unsigned short FCLKSEL0 : 2;
  8326. unsigned short FCLKSEL1 : 2;
  8327. unsigned short FCLKSEL2 : 2;
  8328. unsigned short FCLKSEL3 : 2;
  8329. unsigned short FCLKSEL4 : 2;
  8330. unsigned short FCLKSEL5 : 2;
  8331. unsigned short FCLKSEL6 : 2;
  8332. unsigned short FCLKSEL7 : 2;
  8333. #else
  8334. unsigned short FCLKSEL7 : 2;
  8335. unsigned short FCLKSEL6 : 2;
  8336. unsigned short FCLKSEL5 : 2;
  8337. unsigned short FCLKSEL4 : 2;
  8338. unsigned short FCLKSEL3 : 2;
  8339. unsigned short FCLKSEL2 : 2;
  8340. unsigned short FCLKSEL1 : 2;
  8341. unsigned short FCLKSEL0 : 2;
  8342. #endif
  8343. } BIT;
  8344. } IRQFLTC0;
  8345. union {
  8346. unsigned short WORD;
  8347. struct {
  8348. #ifdef __RX_LITTLE_ENDIAN__
  8349. unsigned short FCLKSEL8 : 2;
  8350. unsigned short FCLKSEL9 : 2;
  8351. unsigned short FCLKSEL10 : 2;
  8352. unsigned short FCLKSEL11 : 2;
  8353. unsigned short FCLKSEL12 : 2;
  8354. unsigned short FCLKSEL13 : 2;
  8355. unsigned short FCLKSEL14 : 2;
  8356. unsigned short FCLKSEL15 : 2;
  8357. #else
  8358. unsigned short FCLKSEL15 : 2;
  8359. unsigned short FCLKSEL14 : 2;
  8360. unsigned short FCLKSEL13 : 2;
  8361. unsigned short FCLKSEL12 : 2;
  8362. unsigned short FCLKSEL11 : 2;
  8363. unsigned short FCLKSEL10 : 2;
  8364. unsigned short FCLKSEL9 : 2;
  8365. unsigned short FCLKSEL8 : 2;
  8366. #endif
  8367. } BIT;
  8368. } IRQFLTC1;
  8369. char wk13[84];
  8370. union {
  8371. unsigned char BYTE;
  8372. struct {
  8373. #ifdef __RX_LITTLE_ENDIAN__
  8374. unsigned char NMIST : 1;
  8375. unsigned char OSTST : 1;
  8376. unsigned char WDTST : 1;
  8377. unsigned char IWDTST : 1;
  8378. unsigned char LVD1ST : 1;
  8379. unsigned char LVD2ST : 1;
  8380. unsigned char RAMST : 1;
  8381. unsigned char : 1;
  8382. #else
  8383. unsigned char : 1;
  8384. unsigned char RAMST : 1;
  8385. unsigned char LVD2ST : 1;
  8386. unsigned char LVD1ST : 1;
  8387. unsigned char IWDTST : 1;
  8388. unsigned char WDTST : 1;
  8389. unsigned char OSTST : 1;
  8390. unsigned char NMIST : 1;
  8391. #endif
  8392. } BIT;
  8393. } NMISR;
  8394. union {
  8395. unsigned char BYTE;
  8396. struct {
  8397. #ifdef __RX_LITTLE_ENDIAN__
  8398. unsigned char NMIEN : 1;
  8399. unsigned char OSTEN : 1;
  8400. unsigned char WDTEN : 1;
  8401. unsigned char IWDTEN : 1;
  8402. unsigned char LVD1EN : 1;
  8403. unsigned char LVD2EN : 1;
  8404. unsigned char RAMEN : 1;
  8405. unsigned char : 1;
  8406. #else
  8407. unsigned char : 1;
  8408. unsigned char RAMEN : 1;
  8409. unsigned char LVD2EN : 1;
  8410. unsigned char LVD1EN : 1;
  8411. unsigned char IWDTEN : 1;
  8412. unsigned char WDTEN : 1;
  8413. unsigned char OSTEN : 1;
  8414. unsigned char NMIEN : 1;
  8415. #endif
  8416. } BIT;
  8417. } NMIER;
  8418. union {
  8419. unsigned char BYTE;
  8420. struct {
  8421. #ifdef __RX_LITTLE_ENDIAN__
  8422. unsigned char NMICLR : 1;
  8423. unsigned char OSTCLR : 1;
  8424. unsigned char WDTCLR : 1;
  8425. unsigned char IWDTCLR : 1;
  8426. unsigned char LVD1CLR : 1;
  8427. unsigned char LVD2CLR : 1;
  8428. unsigned char : 2;
  8429. #else
  8430. unsigned char : 2;
  8431. unsigned char LVD2CLR : 1;
  8432. unsigned char LVD1CLR : 1;
  8433. unsigned char IWDTCLR : 1;
  8434. unsigned char WDTCLR : 1;
  8435. unsigned char OSTCLR : 1;
  8436. unsigned char NMICLR : 1;
  8437. #endif
  8438. } BIT;
  8439. } NMICLR;
  8440. union {
  8441. unsigned char BYTE;
  8442. struct {
  8443. #ifdef __RX_LITTLE_ENDIAN__
  8444. unsigned char : 3;
  8445. unsigned char NMIMD : 1;
  8446. unsigned char : 4;
  8447. #else
  8448. unsigned char : 4;
  8449. unsigned char NMIMD : 1;
  8450. unsigned char : 3;
  8451. #endif
  8452. } BIT;
  8453. } NMICR;
  8454. char wk14[12];
  8455. union {
  8456. unsigned char BYTE;
  8457. struct {
  8458. #ifdef __RX_LITTLE_ENDIAN__
  8459. unsigned char NFLTEN : 1;
  8460. unsigned char : 7;
  8461. #else
  8462. unsigned char : 7;
  8463. unsigned char NFLTEN : 1;
  8464. #endif
  8465. } BIT;
  8466. } NMIFLTE;
  8467. char wk15[3];
  8468. union {
  8469. unsigned char BYTE;
  8470. struct {
  8471. #ifdef __RX_LITTLE_ENDIAN__
  8472. unsigned char NFCLKSEL : 2;
  8473. unsigned char : 6;
  8474. #else
  8475. unsigned char : 6;
  8476. unsigned char NFCLKSEL : 2;
  8477. #endif
  8478. } BIT;
  8479. } NMIFLTC;
  8480. char wk16[107];
  8481. union {
  8482. unsigned long LONG;
  8483. struct {
  8484. #ifdef __RX_LITTLE_ENDIAN__
  8485. unsigned long IS0 : 1;
  8486. unsigned long IS1 : 1;
  8487. unsigned long IS2 : 1;
  8488. unsigned long IS3 : 1;
  8489. unsigned long IS4 : 1;
  8490. unsigned long IS5 : 1;
  8491. unsigned long IS6 : 1;
  8492. unsigned long IS7 : 1;
  8493. unsigned long IS8 : 1;
  8494. unsigned long IS9 : 1;
  8495. unsigned long IS10 : 1;
  8496. unsigned long IS11 : 1;
  8497. unsigned long IS12 : 1;
  8498. unsigned long IS13 : 1;
  8499. unsigned long IS14 : 1;
  8500. unsigned long IS15 : 1;
  8501. unsigned long IS16 : 1;
  8502. unsigned long IS17 : 1;
  8503. unsigned long IS18 : 1;
  8504. unsigned long IS19 : 1;
  8505. unsigned long IS20 : 1;
  8506. unsigned long IS21 : 1;
  8507. unsigned long IS22 : 1;
  8508. unsigned long IS23 : 1;
  8509. unsigned long IS24 : 1;
  8510. unsigned long IS25 : 1;
  8511. unsigned long IS26 : 1;
  8512. unsigned long IS27 : 1;
  8513. unsigned long IS28 : 1;
  8514. unsigned long IS29 : 1;
  8515. unsigned long IS30 : 1;
  8516. unsigned long IS31 : 1;
  8517. #else
  8518. unsigned long IS31 : 1;
  8519. unsigned long IS30 : 1;
  8520. unsigned long IS29 : 1;
  8521. unsigned long IS28 : 1;
  8522. unsigned long IS27 : 1;
  8523. unsigned long IS26 : 1;
  8524. unsigned long IS25 : 1;
  8525. unsigned long IS24 : 1;
  8526. unsigned long IS23 : 1;
  8527. unsigned long IS22 : 1;
  8528. unsigned long IS21 : 1;
  8529. unsigned long IS20 : 1;
  8530. unsigned long IS19 : 1;
  8531. unsigned long IS18 : 1;
  8532. unsigned long IS17 : 1;
  8533. unsigned long IS16 : 1;
  8534. unsigned long IS15 : 1;
  8535. unsigned long IS14 : 1;
  8536. unsigned long IS13 : 1;
  8537. unsigned long IS12 : 1;
  8538. unsigned long IS11 : 1;
  8539. unsigned long IS10 : 1;
  8540. unsigned long IS9 : 1;
  8541. unsigned long IS8 : 1;
  8542. unsigned long IS7 : 1;
  8543. unsigned long IS6 : 1;
  8544. unsigned long IS5 : 1;
  8545. unsigned long IS4 : 1;
  8546. unsigned long IS3 : 1;
  8547. unsigned long IS2 : 1;
  8548. unsigned long IS1 : 1;
  8549. unsigned long IS0 : 1;
  8550. #endif
  8551. } BIT;
  8552. } GRPBE0;
  8553. char wk17[44];
  8554. union {
  8555. unsigned long LONG;
  8556. struct {
  8557. #ifdef __RX_LITTLE_ENDIAN__
  8558. unsigned long IS0 : 1;
  8559. unsigned long IS1 : 1;
  8560. unsigned long IS2 : 1;
  8561. unsigned long IS3 : 1;
  8562. unsigned long IS4 : 1;
  8563. unsigned long IS5 : 1;
  8564. unsigned long IS6 : 1;
  8565. unsigned long IS7 : 1;
  8566. unsigned long IS8 : 1;
  8567. unsigned long IS9 : 1;
  8568. unsigned long IS10 : 1;
  8569. unsigned long IS11 : 1;
  8570. unsigned long IS12 : 1;
  8571. unsigned long IS13 : 1;
  8572. unsigned long IS14 : 1;
  8573. unsigned long IS15 : 1;
  8574. unsigned long IS16 : 1;
  8575. unsigned long IS17 : 1;
  8576. unsigned long IS18 : 1;
  8577. unsigned long IS19 : 1;
  8578. unsigned long IS20 : 1;
  8579. unsigned long IS21 : 1;
  8580. unsigned long IS22 : 1;
  8581. unsigned long IS23 : 1;
  8582. unsigned long IS24 : 1;
  8583. unsigned long IS25 : 1;
  8584. unsigned long IS26 : 1;
  8585. unsigned long IS27 : 1;
  8586. unsigned long IS28 : 1;
  8587. unsigned long IS29 : 1;
  8588. unsigned long IS30 : 1;
  8589. unsigned long IS31 : 1;
  8590. #else
  8591. unsigned long IS31 : 1;
  8592. unsigned long IS30 : 1;
  8593. unsigned long IS29 : 1;
  8594. unsigned long IS28 : 1;
  8595. unsigned long IS27 : 1;
  8596. unsigned long IS26 : 1;
  8597. unsigned long IS25 : 1;
  8598. unsigned long IS24 : 1;
  8599. unsigned long IS23 : 1;
  8600. unsigned long IS22 : 1;
  8601. unsigned long IS21 : 1;
  8602. unsigned long IS20 : 1;
  8603. unsigned long IS19 : 1;
  8604. unsigned long IS18 : 1;
  8605. unsigned long IS17 : 1;
  8606. unsigned long IS16 : 1;
  8607. unsigned long IS15 : 1;
  8608. unsigned long IS14 : 1;
  8609. unsigned long IS13 : 1;
  8610. unsigned long IS12 : 1;
  8611. unsigned long IS11 : 1;
  8612. unsigned long IS10 : 1;
  8613. unsigned long IS9 : 1;
  8614. unsigned long IS8 : 1;
  8615. unsigned long IS7 : 1;
  8616. unsigned long IS6 : 1;
  8617. unsigned long IS5 : 1;
  8618. unsigned long IS4 : 1;
  8619. unsigned long IS3 : 1;
  8620. unsigned long IS2 : 1;
  8621. unsigned long IS1 : 1;
  8622. unsigned long IS0 : 1;
  8623. #endif
  8624. } BIT;
  8625. } GRPBL0;
  8626. union {
  8627. unsigned long LONG;
  8628. struct {
  8629. #ifdef __RX_LITTLE_ENDIAN__
  8630. unsigned long IS0 : 1;
  8631. unsigned long IS1 : 1;
  8632. unsigned long IS2 : 1;
  8633. unsigned long IS3 : 1;
  8634. unsigned long IS4 : 1;
  8635. unsigned long IS5 : 1;
  8636. unsigned long IS6 : 1;
  8637. unsigned long IS7 : 1;
  8638. unsigned long IS8 : 1;
  8639. unsigned long IS9 : 1;
  8640. unsigned long IS10 : 1;
  8641. unsigned long IS11 : 1;
  8642. unsigned long IS12 : 1;
  8643. unsigned long IS13 : 1;
  8644. unsigned long IS14 : 1;
  8645. unsigned long IS15 : 1;
  8646. unsigned long IS16 : 1;
  8647. unsigned long IS17 : 1;
  8648. unsigned long IS18 : 1;
  8649. unsigned long IS19 : 1;
  8650. unsigned long IS20 : 1;
  8651. unsigned long IS21 : 1;
  8652. unsigned long IS22 : 1;
  8653. unsigned long IS23 : 1;
  8654. unsigned long IS24 : 1;
  8655. unsigned long IS25 : 1;
  8656. unsigned long IS26 : 1;
  8657. unsigned long IS27 : 1;
  8658. unsigned long IS28 : 1;
  8659. unsigned long IS29 : 1;
  8660. unsigned long IS30 : 1;
  8661. unsigned long IS31 : 1;
  8662. #else
  8663. unsigned long IS31 : 1;
  8664. unsigned long IS30 : 1;
  8665. unsigned long IS29 : 1;
  8666. unsigned long IS28 : 1;
  8667. unsigned long IS27 : 1;
  8668. unsigned long IS26 : 1;
  8669. unsigned long IS25 : 1;
  8670. unsigned long IS24 : 1;
  8671. unsigned long IS23 : 1;
  8672. unsigned long IS22 : 1;
  8673. unsigned long IS21 : 1;
  8674. unsigned long IS20 : 1;
  8675. unsigned long IS19 : 1;
  8676. unsigned long IS18 : 1;
  8677. unsigned long IS17 : 1;
  8678. unsigned long IS16 : 1;
  8679. unsigned long IS15 : 1;
  8680. unsigned long IS14 : 1;
  8681. unsigned long IS13 : 1;
  8682. unsigned long IS12 : 1;
  8683. unsigned long IS11 : 1;
  8684. unsigned long IS10 : 1;
  8685. unsigned long IS9 : 1;
  8686. unsigned long IS8 : 1;
  8687. unsigned long IS7 : 1;
  8688. unsigned long IS6 : 1;
  8689. unsigned long IS5 : 1;
  8690. unsigned long IS4 : 1;
  8691. unsigned long IS3 : 1;
  8692. unsigned long IS2 : 1;
  8693. unsigned long IS1 : 1;
  8694. unsigned long IS0 : 1;
  8695. #endif
  8696. } BIT;
  8697. } GRPBL1;
  8698. union {
  8699. unsigned long LONG;
  8700. struct {
  8701. #ifdef __RX_LITTLE_ENDIAN__
  8702. unsigned long IS0 : 1;
  8703. unsigned long IS1 : 1;
  8704. unsigned long IS2 : 1;
  8705. unsigned long IS3 : 1;
  8706. unsigned long IS4 : 1;
  8707. unsigned long IS5 : 1;
  8708. unsigned long IS6 : 1;
  8709. unsigned long IS7 : 1;
  8710. unsigned long IS8 : 1;
  8711. unsigned long IS9 : 1;
  8712. unsigned long IS10 : 1;
  8713. unsigned long IS11 : 1;
  8714. unsigned long IS12 : 1;
  8715. unsigned long IS13 : 1;
  8716. unsigned long IS14 : 1;
  8717. unsigned long IS15 : 1;
  8718. unsigned long IS16 : 1;
  8719. unsigned long IS17 : 1;
  8720. unsigned long IS18 : 1;
  8721. unsigned long IS19 : 1;
  8722. unsigned long IS20 : 1;
  8723. unsigned long IS21 : 1;
  8724. unsigned long IS22 : 1;
  8725. unsigned long IS23 : 1;
  8726. unsigned long IS24 : 1;
  8727. unsigned long IS25 : 1;
  8728. unsigned long IS26 : 1;
  8729. unsigned long IS27 : 1;
  8730. unsigned long IS28 : 1;
  8731. unsigned long IS29 : 1;
  8732. unsigned long IS30 : 1;
  8733. unsigned long IS31 : 1;
  8734. #else
  8735. unsigned long IS31 : 1;
  8736. unsigned long IS30 : 1;
  8737. unsigned long IS29 : 1;
  8738. unsigned long IS28 : 1;
  8739. unsigned long IS27 : 1;
  8740. unsigned long IS26 : 1;
  8741. unsigned long IS25 : 1;
  8742. unsigned long IS24 : 1;
  8743. unsigned long IS23 : 1;
  8744. unsigned long IS22 : 1;
  8745. unsigned long IS21 : 1;
  8746. unsigned long IS20 : 1;
  8747. unsigned long IS19 : 1;
  8748. unsigned long IS18 : 1;
  8749. unsigned long IS17 : 1;
  8750. unsigned long IS16 : 1;
  8751. unsigned long IS15 : 1;
  8752. unsigned long IS14 : 1;
  8753. unsigned long IS13 : 1;
  8754. unsigned long IS12 : 1;
  8755. unsigned long IS11 : 1;
  8756. unsigned long IS10 : 1;
  8757. unsigned long IS9 : 1;
  8758. unsigned long IS8 : 1;
  8759. unsigned long IS7 : 1;
  8760. unsigned long IS6 : 1;
  8761. unsigned long IS5 : 1;
  8762. unsigned long IS4 : 1;
  8763. unsigned long IS3 : 1;
  8764. unsigned long IS2 : 1;
  8765. unsigned long IS1 : 1;
  8766. unsigned long IS0 : 1;
  8767. #endif
  8768. } BIT;
  8769. } GRPBL2;
  8770. char wk18[4];
  8771. union {
  8772. unsigned long LONG;
  8773. struct {
  8774. #ifdef __RX_LITTLE_ENDIAN__
  8775. unsigned long EN0 : 1;
  8776. unsigned long EN1 : 1;
  8777. unsigned long EN2 : 1;
  8778. unsigned long EN3 : 1;
  8779. unsigned long EN4 : 1;
  8780. unsigned long EN5 : 1;
  8781. unsigned long EN6 : 1;
  8782. unsigned long EN7 : 1;
  8783. unsigned long EN8 : 1;
  8784. unsigned long EN9 : 1;
  8785. unsigned long EN10 : 1;
  8786. unsigned long EN11 : 1;
  8787. unsigned long EN12 : 1;
  8788. unsigned long EN13 : 1;
  8789. unsigned long EN14 : 1;
  8790. unsigned long EN15 : 1;
  8791. unsigned long EN16 : 1;
  8792. unsigned long EN17 : 1;
  8793. unsigned long EN18 : 1;
  8794. unsigned long EN19 : 1;
  8795. unsigned long EN20 : 1;
  8796. unsigned long EN21 : 1;
  8797. unsigned long EN22 : 1;
  8798. unsigned long EN23 : 1;
  8799. unsigned long EN24 : 1;
  8800. unsigned long EN25 : 1;
  8801. unsigned long EN26 : 1;
  8802. unsigned long EN27 : 1;
  8803. unsigned long EN28 : 1;
  8804. unsigned long EN29 : 1;
  8805. unsigned long EN30 : 1;
  8806. unsigned long EN31 : 1;
  8807. #else
  8808. unsigned long EN31 : 1;
  8809. unsigned long EN30 : 1;
  8810. unsigned long EN29 : 1;
  8811. unsigned long EN28 : 1;
  8812. unsigned long EN27 : 1;
  8813. unsigned long EN26 : 1;
  8814. unsigned long EN25 : 1;
  8815. unsigned long EN24 : 1;
  8816. unsigned long EN23 : 1;
  8817. unsigned long EN22 : 1;
  8818. unsigned long EN21 : 1;
  8819. unsigned long EN20 : 1;
  8820. unsigned long EN19 : 1;
  8821. unsigned long EN18 : 1;
  8822. unsigned long EN17 : 1;
  8823. unsigned long EN16 : 1;
  8824. unsigned long EN15 : 1;
  8825. unsigned long EN14 : 1;
  8826. unsigned long EN13 : 1;
  8827. unsigned long EN12 : 1;
  8828. unsigned long EN11 : 1;
  8829. unsigned long EN10 : 1;
  8830. unsigned long EN9 : 1;
  8831. unsigned long EN8 : 1;
  8832. unsigned long EN7 : 1;
  8833. unsigned long EN6 : 1;
  8834. unsigned long EN5 : 1;
  8835. unsigned long EN4 : 1;
  8836. unsigned long EN3 : 1;
  8837. unsigned long EN2 : 1;
  8838. unsigned long EN1 : 1;
  8839. unsigned long EN0 : 1;
  8840. #endif
  8841. } BIT;
  8842. } GENBE0;
  8843. char wk19[44];
  8844. union {
  8845. unsigned long LONG;
  8846. struct {
  8847. #ifdef __RX_LITTLE_ENDIAN__
  8848. unsigned long EN0 : 1;
  8849. unsigned long EN1 : 1;
  8850. unsigned long EN2 : 1;
  8851. unsigned long EN3 : 1;
  8852. unsigned long EN4 : 1;
  8853. unsigned long EN5 : 1;
  8854. unsigned long EN6 : 1;
  8855. unsigned long EN7 : 1;
  8856. unsigned long EN8 : 1;
  8857. unsigned long EN9 : 1;
  8858. unsigned long EN10 : 1;
  8859. unsigned long EN11 : 1;
  8860. unsigned long EN12 : 1;
  8861. unsigned long EN13 : 1;
  8862. unsigned long EN14 : 1;
  8863. unsigned long EN15 : 1;
  8864. unsigned long EN16 : 1;
  8865. unsigned long EN17 : 1;
  8866. unsigned long EN18 : 1;
  8867. unsigned long EN19 : 1;
  8868. unsigned long EN20 : 1;
  8869. unsigned long EN21 : 1;
  8870. unsigned long EN22 : 1;
  8871. unsigned long EN23 : 1;
  8872. unsigned long EN24 : 1;
  8873. unsigned long EN25 : 1;
  8874. unsigned long EN26 : 1;
  8875. unsigned long EN27 : 1;
  8876. unsigned long EN28 : 1;
  8877. unsigned long EN29 : 1;
  8878. unsigned long EN30 : 1;
  8879. unsigned long EN31 : 1;
  8880. #else
  8881. unsigned long EN31 : 1;
  8882. unsigned long EN30 : 1;
  8883. unsigned long EN29 : 1;
  8884. unsigned long EN28 : 1;
  8885. unsigned long EN27 : 1;
  8886. unsigned long EN26 : 1;
  8887. unsigned long EN25 : 1;
  8888. unsigned long EN24 : 1;
  8889. unsigned long EN23 : 1;
  8890. unsigned long EN22 : 1;
  8891. unsigned long EN21 : 1;
  8892. unsigned long EN20 : 1;
  8893. unsigned long EN19 : 1;
  8894. unsigned long EN18 : 1;
  8895. unsigned long EN17 : 1;
  8896. unsigned long EN16 : 1;
  8897. unsigned long EN15 : 1;
  8898. unsigned long EN14 : 1;
  8899. unsigned long EN13 : 1;
  8900. unsigned long EN12 : 1;
  8901. unsigned long EN11 : 1;
  8902. unsigned long EN10 : 1;
  8903. unsigned long EN9 : 1;
  8904. unsigned long EN8 : 1;
  8905. unsigned long EN7 : 1;
  8906. unsigned long EN6 : 1;
  8907. unsigned long EN5 : 1;
  8908. unsigned long EN4 : 1;
  8909. unsigned long EN3 : 1;
  8910. unsigned long EN2 : 1;
  8911. unsigned long EN1 : 1;
  8912. unsigned long EN0 : 1;
  8913. #endif
  8914. } BIT;
  8915. } GENBL0;
  8916. union {
  8917. unsigned long LONG;
  8918. struct {
  8919. #ifdef __RX_LITTLE_ENDIAN__
  8920. unsigned long EN0 : 1;
  8921. unsigned long EN1 : 1;
  8922. unsigned long EN2 : 1;
  8923. unsigned long EN3 : 1;
  8924. unsigned long EN4 : 1;
  8925. unsigned long EN5 : 1;
  8926. unsigned long EN6 : 1;
  8927. unsigned long EN7 : 1;
  8928. unsigned long EN8 : 1;
  8929. unsigned long EN9 : 1;
  8930. unsigned long EN10 : 1;
  8931. unsigned long EN11 : 1;
  8932. unsigned long EN12 : 1;
  8933. unsigned long EN13 : 1;
  8934. unsigned long EN14 : 1;
  8935. unsigned long EN15 : 1;
  8936. unsigned long EN16 : 1;
  8937. unsigned long EN17 : 1;
  8938. unsigned long EN18 : 1;
  8939. unsigned long EN19 : 1;
  8940. unsigned long EN20 : 1;
  8941. unsigned long EN21 : 1;
  8942. unsigned long EN22 : 1;
  8943. unsigned long EN23 : 1;
  8944. unsigned long EN24 : 1;
  8945. unsigned long EN25 : 1;
  8946. unsigned long EN26 : 1;
  8947. unsigned long EN27 : 1;
  8948. unsigned long EN28 : 1;
  8949. unsigned long EN29 : 1;
  8950. unsigned long EN30 : 1;
  8951. unsigned long EN31 : 1;
  8952. #else
  8953. unsigned long EN31 : 1;
  8954. unsigned long EN30 : 1;
  8955. unsigned long EN29 : 1;
  8956. unsigned long EN28 : 1;
  8957. unsigned long EN27 : 1;
  8958. unsigned long EN26 : 1;
  8959. unsigned long EN25 : 1;
  8960. unsigned long EN24 : 1;
  8961. unsigned long EN23 : 1;
  8962. unsigned long EN22 : 1;
  8963. unsigned long EN21 : 1;
  8964. unsigned long EN20 : 1;
  8965. unsigned long EN19 : 1;
  8966. unsigned long EN18 : 1;
  8967. unsigned long EN17 : 1;
  8968. unsigned long EN16 : 1;
  8969. unsigned long EN15 : 1;
  8970. unsigned long EN14 : 1;
  8971. unsigned long EN13 : 1;
  8972. unsigned long EN12 : 1;
  8973. unsigned long EN11 : 1;
  8974. unsigned long EN10 : 1;
  8975. unsigned long EN9 : 1;
  8976. unsigned long EN8 : 1;
  8977. unsigned long EN7 : 1;
  8978. unsigned long EN6 : 1;
  8979. unsigned long EN5 : 1;
  8980. unsigned long EN4 : 1;
  8981. unsigned long EN3 : 1;
  8982. unsigned long EN2 : 1;
  8983. unsigned long EN1 : 1;
  8984. unsigned long EN0 : 1;
  8985. #endif
  8986. } BIT;
  8987. } GENBL1;
  8988. union {
  8989. unsigned long LONG;
  8990. struct {
  8991. #ifdef __RX_LITTLE_ENDIAN__
  8992. unsigned long EN0 : 1;
  8993. unsigned long EN1 : 1;
  8994. unsigned long EN2 : 1;
  8995. unsigned long EN3 : 1;
  8996. unsigned long EN4 : 1;
  8997. unsigned long EN5 : 1;
  8998. unsigned long EN6 : 1;
  8999. unsigned long EN7 : 1;
  9000. unsigned long EN8 : 1;
  9001. unsigned long EN9 : 1;
  9002. unsigned long EN10 : 1;
  9003. unsigned long EN11 : 1;
  9004. unsigned long EN12 : 1;
  9005. unsigned long EN13 : 1;
  9006. unsigned long EN14 : 1;
  9007. unsigned long EN15 : 1;
  9008. unsigned long EN16 : 1;
  9009. unsigned long EN17 : 1;
  9010. unsigned long EN18 : 1;
  9011. unsigned long EN19 : 1;
  9012. unsigned long EN20 : 1;
  9013. unsigned long EN21 : 1;
  9014. unsigned long EN22 : 1;
  9015. unsigned long EN23 : 1;
  9016. unsigned long EN24 : 1;
  9017. unsigned long EN25 : 1;
  9018. unsigned long EN26 : 1;
  9019. unsigned long EN27 : 1;
  9020. unsigned long EN28 : 1;
  9021. unsigned long EN29 : 1;
  9022. unsigned long EN30 : 1;
  9023. unsigned long EN31 : 1;
  9024. #else
  9025. unsigned long EN31 : 1;
  9026. unsigned long EN30 : 1;
  9027. unsigned long EN29 : 1;
  9028. unsigned long EN28 : 1;
  9029. unsigned long EN27 : 1;
  9030. unsigned long EN26 : 1;
  9031. unsigned long EN25 : 1;
  9032. unsigned long EN24 : 1;
  9033. unsigned long EN23 : 1;
  9034. unsigned long EN22 : 1;
  9035. unsigned long EN21 : 1;
  9036. unsigned long EN20 : 1;
  9037. unsigned long EN19 : 1;
  9038. unsigned long EN18 : 1;
  9039. unsigned long EN17 : 1;
  9040. unsigned long EN16 : 1;
  9041. unsigned long EN15 : 1;
  9042. unsigned long EN14 : 1;
  9043. unsigned long EN13 : 1;
  9044. unsigned long EN12 : 1;
  9045. unsigned long EN11 : 1;
  9046. unsigned long EN10 : 1;
  9047. unsigned long EN9 : 1;
  9048. unsigned long EN8 : 1;
  9049. unsigned long EN7 : 1;
  9050. unsigned long EN6 : 1;
  9051. unsigned long EN5 : 1;
  9052. unsigned long EN4 : 1;
  9053. unsigned long EN3 : 1;
  9054. unsigned long EN2 : 1;
  9055. unsigned long EN1 : 1;
  9056. unsigned long EN0 : 1;
  9057. #endif
  9058. } BIT;
  9059. } GENBL2;
  9060. char wk20[4];
  9061. union {
  9062. unsigned long LONG;
  9063. struct {
  9064. #ifdef __RX_LITTLE_ENDIAN__
  9065. unsigned long CLR0 : 1;
  9066. unsigned long CLR1 : 1;
  9067. unsigned long CLR2 : 1;
  9068. unsigned long CLR3 : 1;
  9069. unsigned long CLR4 : 1;
  9070. unsigned long CLR5 : 1;
  9071. unsigned long CLR6 : 1;
  9072. unsigned long CLR7 : 1;
  9073. unsigned long CLR8 : 1;
  9074. unsigned long CLR9 : 1;
  9075. unsigned long CLR10 : 1;
  9076. unsigned long CLR11 : 1;
  9077. unsigned long CLR12 : 1;
  9078. unsigned long CLR13 : 1;
  9079. unsigned long CLR14 : 1;
  9080. unsigned long CLR15 : 1;
  9081. unsigned long CLR16 : 1;
  9082. unsigned long CLR17 : 1;
  9083. unsigned long CLR18 : 1;
  9084. unsigned long CLR19 : 1;
  9085. unsigned long CLR20 : 1;
  9086. unsigned long CLR21 : 1;
  9087. unsigned long CLR22 : 1;
  9088. unsigned long CLR23 : 1;
  9089. unsigned long CLR24 : 1;
  9090. unsigned long CLR25 : 1;
  9091. unsigned long CLR26 : 1;
  9092. unsigned long CLR27 : 1;
  9093. unsigned long CLR28 : 1;
  9094. unsigned long CLR29 : 1;
  9095. unsigned long CLR30 : 1;
  9096. unsigned long CLR31 : 1;
  9097. #else
  9098. unsigned long CLR31 : 1;
  9099. unsigned long CLR30 : 1;
  9100. unsigned long CLR29 : 1;
  9101. unsigned long CLR28 : 1;
  9102. unsigned long CLR27 : 1;
  9103. unsigned long CLR26 : 1;
  9104. unsigned long CLR25 : 1;
  9105. unsigned long CLR24 : 1;
  9106. unsigned long CLR23 : 1;
  9107. unsigned long CLR22 : 1;
  9108. unsigned long CLR21 : 1;
  9109. unsigned long CLR20 : 1;
  9110. unsigned long CLR19 : 1;
  9111. unsigned long CLR18 : 1;
  9112. unsigned long CLR17 : 1;
  9113. unsigned long CLR16 : 1;
  9114. unsigned long CLR15 : 1;
  9115. unsigned long CLR14 : 1;
  9116. unsigned long CLR13 : 1;
  9117. unsigned long CLR12 : 1;
  9118. unsigned long CLR11 : 1;
  9119. unsigned long CLR10 : 1;
  9120. unsigned long CLR9 : 1;
  9121. unsigned long CLR8 : 1;
  9122. unsigned long CLR7 : 1;
  9123. unsigned long CLR6 : 1;
  9124. unsigned long CLR5 : 1;
  9125. unsigned long CLR4 : 1;
  9126. unsigned long CLR3 : 1;
  9127. unsigned long CLR2 : 1;
  9128. unsigned long CLR1 : 1;
  9129. unsigned long CLR0 : 1;
  9130. #endif
  9131. } BIT;
  9132. } GCRBE0;
  9133. char wk21[124];
  9134. union {
  9135. unsigned char BYTE;
  9136. #ifdef IODEFINE_H_HISTORY
  9137. struct {
  9138. unsigned char PIR7:1;
  9139. unsigned char PIR6:1;
  9140. unsigned char PIR5:1;
  9141. unsigned char PIR4:1;
  9142. unsigned char PIR3:1;
  9143. unsigned char PIR2:1;
  9144. unsigned char PIR1:1;
  9145. unsigned char PIR0:1;
  9146. } BIT;
  9147. #endif
  9148. } PIBR0;
  9149. union {
  9150. unsigned char BYTE;
  9151. #ifdef IODEFINE_H_HISTORY
  9152. struct {
  9153. unsigned char PIR7:1;
  9154. unsigned char PIR6:1;
  9155. unsigned char PIR5:1;
  9156. unsigned char PIR4:1;
  9157. unsigned char PIR3:1;
  9158. unsigned char PIR2:1;
  9159. unsigned char PIR1:1;
  9160. unsigned char PIR0:1;
  9161. } BIT;
  9162. #endif
  9163. } PIBR1;
  9164. union {
  9165. unsigned char BYTE;
  9166. #ifdef IODEFINE_H_HISTORY
  9167. struct {
  9168. unsigned char PIR7:1;
  9169. unsigned char PIR6:1;
  9170. unsigned char PIR5:1;
  9171. unsigned char PIR4:1;
  9172. unsigned char PIR3:1;
  9173. unsigned char PIR2:1;
  9174. unsigned char PIR1:1;
  9175. unsigned char PIR0:1;
  9176. } BIT;
  9177. #endif
  9178. } PIBR2;
  9179. union {
  9180. unsigned char BYTE;
  9181. #ifdef IODEFINE_H_HISTORY
  9182. struct {
  9183. unsigned char PIR7:1;
  9184. unsigned char PIR6:1;
  9185. unsigned char PIR5:1;
  9186. unsigned char PIR4:1;
  9187. unsigned char PIR3:1;
  9188. unsigned char PIR2:1;
  9189. unsigned char PIR1:1;
  9190. unsigned char PIR0:1;
  9191. } BIT;
  9192. #endif
  9193. } PIBR3;
  9194. union {
  9195. unsigned char BYTE;
  9196. #ifdef IODEFINE_H_HISTORY
  9197. struct {
  9198. unsigned char PIR7:1;
  9199. unsigned char PIR6:1;
  9200. unsigned char PIR5:1;
  9201. unsigned char PIR4:1;
  9202. unsigned char PIR3:1;
  9203. unsigned char PIR2:1;
  9204. unsigned char PIR1:1;
  9205. unsigned char PIR0:1;
  9206. } BIT;
  9207. #endif
  9208. } PIBR4;
  9209. union {
  9210. unsigned char BYTE;
  9211. #ifdef IODEFINE_H_HISTORY
  9212. struct {
  9213. unsigned char PIR7:1;
  9214. unsigned char PIR6:1;
  9215. unsigned char PIR5:1;
  9216. unsigned char PIR4:1;
  9217. unsigned char PIR3:1;
  9218. unsigned char PIR2:1;
  9219. unsigned char PIR1:1;
  9220. unsigned char PIR0:1;
  9221. } BIT;
  9222. #endif
  9223. } PIBR5;
  9224. union {
  9225. unsigned char BYTE;
  9226. #ifdef IODEFINE_H_HISTORY
  9227. struct {
  9228. unsigned char PIR7:1;
  9229. unsigned char PIR6:1;
  9230. unsigned char PIR5:1;
  9231. unsigned char PIR4:1;
  9232. unsigned char PIR3:1;
  9233. unsigned char PIR2:1;
  9234. unsigned char PIR1:1;
  9235. unsigned char PIR0:1;
  9236. } BIT;
  9237. #endif
  9238. } PIBR6;
  9239. union {
  9240. unsigned char BYTE;
  9241. #ifdef IODEFINE_H_HISTORY
  9242. struct {
  9243. unsigned char PIR7:1;
  9244. unsigned char PIR6:1;
  9245. unsigned char PIR5:1;
  9246. unsigned char PIR4:1;
  9247. unsigned char PIR3:1;
  9248. unsigned char PIR2:1;
  9249. unsigned char PIR1:1;
  9250. unsigned char PIR0:1;
  9251. } BIT;
  9252. #endif
  9253. } PIBR7;
  9254. union {
  9255. unsigned char BYTE;
  9256. #ifdef IODEFINE_H_HISTORY
  9257. struct {
  9258. unsigned char PIR7:1;
  9259. unsigned char PIR6:1;
  9260. unsigned char PIR5:1;
  9261. unsigned char PIR4:1;
  9262. unsigned char PIR3:1;
  9263. unsigned char PIR2:1;
  9264. unsigned char PIR1:1;
  9265. unsigned char PIR0:1;
  9266. } BIT;
  9267. #endif
  9268. } PIBR8;
  9269. union {
  9270. unsigned char BYTE;
  9271. #ifdef IODEFINE_H_HISTORY
  9272. struct {
  9273. unsigned char PIR7:1;
  9274. unsigned char PIR6:1;
  9275. unsigned char PIR5:1;
  9276. unsigned char PIR4:1;
  9277. unsigned char PIR3:1;
  9278. unsigned char PIR2:1;
  9279. unsigned char PIR1:1;
  9280. unsigned char PIR0:1;
  9281. } BIT;
  9282. #endif
  9283. } PIBR9;
  9284. union {
  9285. unsigned char BYTE;
  9286. #ifdef IODEFINE_H_HISTORY
  9287. struct {
  9288. unsigned char PIR7:1;
  9289. unsigned char PIR6:1;
  9290. unsigned char PIR5:1;
  9291. unsigned char PIR4:1;
  9292. unsigned char PIR3:1;
  9293. unsigned char PIR2:1;
  9294. unsigned char PIR1:1;
  9295. unsigned char PIR0:1;
  9296. } BIT;
  9297. #endif
  9298. } PIBRA;
  9299. union {
  9300. unsigned char BYTE;
  9301. #ifdef IODEFINE_H_HISTORY
  9302. struct {
  9303. unsigned char PIR7:1;
  9304. unsigned char PIR6:1;
  9305. unsigned char PIR5:1;
  9306. unsigned char PIR4:1;
  9307. unsigned char PIR3:1;
  9308. unsigned char PIR2:1;
  9309. unsigned char PIR1:1;
  9310. unsigned char PIR0:1;
  9311. } BIT;
  9312. #endif
  9313. } PIBRB;
  9314. char wk22[116];
  9315. union {
  9316. unsigned char BYTE;
  9317. struct {
  9318. #ifdef __RX_LITTLE_ENDIAN__
  9319. unsigned char SLI : 8;
  9320. #else
  9321. unsigned char SLI : 8;
  9322. #endif
  9323. } BIT;
  9324. } SLIBXR128;
  9325. union {
  9326. unsigned char BYTE;
  9327. struct {
  9328. #ifdef __RX_LITTLE_ENDIAN__
  9329. unsigned char SLI : 8;
  9330. #else
  9331. unsigned char SLI : 8;
  9332. #endif
  9333. } BIT;
  9334. } SLIBXR129;
  9335. union {
  9336. unsigned char BYTE;
  9337. struct {
  9338. #ifdef __RX_LITTLE_ENDIAN__
  9339. unsigned char SLI : 8;
  9340. #else
  9341. unsigned char SLI : 8;
  9342. #endif
  9343. } BIT;
  9344. } SLIBXR130;
  9345. union {
  9346. unsigned char BYTE;
  9347. struct {
  9348. #ifdef __RX_LITTLE_ENDIAN__
  9349. unsigned char SLI : 8;
  9350. #else
  9351. unsigned char SLI : 8;
  9352. #endif
  9353. } BIT;
  9354. } SLIBXR131;
  9355. union {
  9356. unsigned char BYTE;
  9357. struct {
  9358. #ifdef __RX_LITTLE_ENDIAN__
  9359. unsigned char SLI : 8;
  9360. #else
  9361. unsigned char SLI : 8;
  9362. #endif
  9363. } BIT;
  9364. } SLIBXR132;
  9365. union {
  9366. unsigned char BYTE;
  9367. struct {
  9368. #ifdef __RX_LITTLE_ENDIAN__
  9369. unsigned char SLI : 8;
  9370. #else
  9371. unsigned char SLI : 8;
  9372. #endif
  9373. } BIT;
  9374. } SLIBXR133;
  9375. union {
  9376. unsigned char BYTE;
  9377. struct {
  9378. #ifdef __RX_LITTLE_ENDIAN__
  9379. unsigned char SLI : 8;
  9380. #else
  9381. unsigned char SLI : 8;
  9382. #endif
  9383. } BIT;
  9384. } SLIBXR134;
  9385. union {
  9386. unsigned char BYTE;
  9387. struct {
  9388. #ifdef __RX_LITTLE_ENDIAN__
  9389. unsigned char SLI : 8;
  9390. #else
  9391. unsigned char SLI : 8;
  9392. #endif
  9393. } BIT;
  9394. } SLIBXR135;
  9395. union {
  9396. unsigned char BYTE;
  9397. struct {
  9398. #ifdef __RX_LITTLE_ENDIAN__
  9399. unsigned char SLI : 8;
  9400. #else
  9401. unsigned char SLI : 8;
  9402. #endif
  9403. } BIT;
  9404. } SLIBXR136;
  9405. union {
  9406. unsigned char BYTE;
  9407. struct {
  9408. #ifdef __RX_LITTLE_ENDIAN__
  9409. unsigned char SLI : 8;
  9410. #else
  9411. unsigned char SLI : 8;
  9412. #endif
  9413. } BIT;
  9414. } SLIBXR137;
  9415. union {
  9416. unsigned char BYTE;
  9417. struct {
  9418. #ifdef __RX_LITTLE_ENDIAN__
  9419. unsigned char SLI : 8;
  9420. #else
  9421. unsigned char SLI : 8;
  9422. #endif
  9423. } BIT;
  9424. } SLIBXR138;
  9425. union {
  9426. unsigned char BYTE;
  9427. struct {
  9428. #ifdef __RX_LITTLE_ENDIAN__
  9429. unsigned char SLI : 8;
  9430. #else
  9431. unsigned char SLI : 8;
  9432. #endif
  9433. } BIT;
  9434. } SLIBXR139;
  9435. union {
  9436. unsigned char BYTE;
  9437. struct {
  9438. #ifdef __RX_LITTLE_ENDIAN__
  9439. unsigned char SLI : 8;
  9440. #else
  9441. unsigned char SLI : 8;
  9442. #endif
  9443. } BIT;
  9444. } SLIBXR140;
  9445. union {
  9446. unsigned char BYTE;
  9447. struct {
  9448. #ifdef __RX_LITTLE_ENDIAN__
  9449. unsigned char SLI : 8;
  9450. #else
  9451. unsigned char SLI : 8;
  9452. #endif
  9453. } BIT;
  9454. } SLIBXR141;
  9455. union {
  9456. unsigned char BYTE;
  9457. struct {
  9458. #ifdef __RX_LITTLE_ENDIAN__
  9459. unsigned char SLI : 8;
  9460. #else
  9461. unsigned char SLI : 8;
  9462. #endif
  9463. } BIT;
  9464. } SLIBXR142;
  9465. union {
  9466. unsigned char BYTE;
  9467. struct {
  9468. #ifdef __RX_LITTLE_ENDIAN__
  9469. unsigned char SLI : 8;
  9470. #else
  9471. unsigned char SLI : 8;
  9472. #endif
  9473. } BIT;
  9474. } SLIBXR143;
  9475. union {
  9476. unsigned char BYTE;
  9477. struct {
  9478. #ifdef __RX_LITTLE_ENDIAN__
  9479. unsigned char SLI : 8;
  9480. #else
  9481. unsigned char SLI : 8;
  9482. #endif
  9483. } BIT;
  9484. } SLIBR144;
  9485. union {
  9486. unsigned char BYTE;
  9487. struct {
  9488. #ifdef __RX_LITTLE_ENDIAN__
  9489. unsigned char SLI : 8;
  9490. #else
  9491. unsigned char SLI : 8;
  9492. #endif
  9493. } BIT;
  9494. } SLIBR145;
  9495. union {
  9496. unsigned char BYTE;
  9497. struct {
  9498. #ifdef __RX_LITTLE_ENDIAN__
  9499. unsigned char SLI : 8;
  9500. #else
  9501. unsigned char SLI : 8;
  9502. #endif
  9503. } BIT;
  9504. } SLIBR146;
  9505. union {
  9506. unsigned char BYTE;
  9507. struct {
  9508. #ifdef __RX_LITTLE_ENDIAN__
  9509. unsigned char SLI : 8;
  9510. #else
  9511. unsigned char SLI : 8;
  9512. #endif
  9513. } BIT;
  9514. } SLIBR147;
  9515. union {
  9516. unsigned char BYTE;
  9517. struct {
  9518. #ifdef __RX_LITTLE_ENDIAN__
  9519. unsigned char SLI : 8;
  9520. #else
  9521. unsigned char SLI : 8;
  9522. #endif
  9523. } BIT;
  9524. } SLIBR148;
  9525. union {
  9526. unsigned char BYTE;
  9527. struct {
  9528. #ifdef __RX_LITTLE_ENDIAN__
  9529. unsigned char SLI : 8;
  9530. #else
  9531. unsigned char SLI : 8;
  9532. #endif
  9533. } BIT;
  9534. } SLIBR149;
  9535. union {
  9536. unsigned char BYTE;
  9537. struct {
  9538. #ifdef __RX_LITTLE_ENDIAN__
  9539. unsigned char SLI : 8;
  9540. #else
  9541. unsigned char SLI : 8;
  9542. #endif
  9543. } BIT;
  9544. } SLIBR150;
  9545. union {
  9546. unsigned char BYTE;
  9547. struct {
  9548. #ifdef __RX_LITTLE_ENDIAN__
  9549. unsigned char SLI : 8;
  9550. #else
  9551. unsigned char SLI : 8;
  9552. #endif
  9553. } BIT;
  9554. } SLIBR151;
  9555. union {
  9556. unsigned char BYTE;
  9557. struct {
  9558. #ifdef __RX_LITTLE_ENDIAN__
  9559. unsigned char SLI : 8;
  9560. #else
  9561. unsigned char SLI : 8;
  9562. #endif
  9563. } BIT;
  9564. } SLIBR152;
  9565. union {
  9566. unsigned char BYTE;
  9567. struct {
  9568. #ifdef __RX_LITTLE_ENDIAN__
  9569. unsigned char SLI : 8;
  9570. #else
  9571. unsigned char SLI : 8;
  9572. #endif
  9573. } BIT;
  9574. } SLIBR153;
  9575. union {
  9576. unsigned char BYTE;
  9577. struct {
  9578. #ifdef __RX_LITTLE_ENDIAN__
  9579. unsigned char SLI : 8;
  9580. #else
  9581. unsigned char SLI : 8;
  9582. #endif
  9583. } BIT;
  9584. } SLIBR154;
  9585. union {
  9586. unsigned char BYTE;
  9587. struct {
  9588. #ifdef __RX_LITTLE_ENDIAN__
  9589. unsigned char SLI : 8;
  9590. #else
  9591. unsigned char SLI : 8;
  9592. #endif
  9593. } BIT;
  9594. } SLIBR155;
  9595. union {
  9596. unsigned char BYTE;
  9597. struct {
  9598. #ifdef __RX_LITTLE_ENDIAN__
  9599. unsigned char SLI : 8;
  9600. #else
  9601. unsigned char SLI : 8;
  9602. #endif
  9603. } BIT;
  9604. } SLIBR156;
  9605. union {
  9606. unsigned char BYTE;
  9607. struct {
  9608. #ifdef __RX_LITTLE_ENDIAN__
  9609. unsigned char SLI : 8;
  9610. #else
  9611. unsigned char SLI : 8;
  9612. #endif
  9613. } BIT;
  9614. } SLIBR157;
  9615. union {
  9616. unsigned char BYTE;
  9617. struct {
  9618. #ifdef __RX_LITTLE_ENDIAN__
  9619. unsigned char SLI : 8;
  9620. #else
  9621. unsigned char SLI : 8;
  9622. #endif
  9623. } BIT;
  9624. } SLIBR158;
  9625. union {
  9626. unsigned char BYTE;
  9627. struct {
  9628. #ifdef __RX_LITTLE_ENDIAN__
  9629. unsigned char SLI : 8;
  9630. #else
  9631. unsigned char SLI : 8;
  9632. #endif
  9633. } BIT;
  9634. } SLIBR159;
  9635. union {
  9636. unsigned char BYTE;
  9637. struct {
  9638. #ifdef __RX_LITTLE_ENDIAN__
  9639. unsigned char SLI : 8;
  9640. #else
  9641. unsigned char SLI : 8;
  9642. #endif
  9643. } BIT;
  9644. } SLIBR160;
  9645. union {
  9646. unsigned char BYTE;
  9647. struct {
  9648. #ifdef __RX_LITTLE_ENDIAN__
  9649. unsigned char SLI : 8;
  9650. #else
  9651. unsigned char SLI : 8;
  9652. #endif
  9653. } BIT;
  9654. } SLIBR161;
  9655. union {
  9656. unsigned char BYTE;
  9657. struct {
  9658. #ifdef __RX_LITTLE_ENDIAN__
  9659. unsigned char SLI : 8;
  9660. #else
  9661. unsigned char SLI : 8;
  9662. #endif
  9663. } BIT;
  9664. } SLIBR162;
  9665. union {
  9666. unsigned char BYTE;
  9667. struct {
  9668. #ifdef __RX_LITTLE_ENDIAN__
  9669. unsigned char SLI : 8;
  9670. #else
  9671. unsigned char SLI : 8;
  9672. #endif
  9673. } BIT;
  9674. } SLIBR163;
  9675. union {
  9676. unsigned char BYTE;
  9677. struct {
  9678. #ifdef __RX_LITTLE_ENDIAN__
  9679. unsigned char SLI : 8;
  9680. #else
  9681. unsigned char SLI : 8;
  9682. #endif
  9683. } BIT;
  9684. } SLIBR164;
  9685. union {
  9686. unsigned char BYTE;
  9687. struct {
  9688. #ifdef __RX_LITTLE_ENDIAN__
  9689. unsigned char SLI : 8;
  9690. #else
  9691. unsigned char SLI : 8;
  9692. #endif
  9693. } BIT;
  9694. } SLIBR165;
  9695. union {
  9696. unsigned char BYTE;
  9697. struct {
  9698. #ifdef __RX_LITTLE_ENDIAN__
  9699. unsigned char SLI : 8;
  9700. #else
  9701. unsigned char SLI : 8;
  9702. #endif
  9703. } BIT;
  9704. } SLIBR166;
  9705. union {
  9706. unsigned char BYTE;
  9707. struct {
  9708. #ifdef __RX_LITTLE_ENDIAN__
  9709. unsigned char SLI : 8;
  9710. #else
  9711. unsigned char SLI : 8;
  9712. #endif
  9713. } BIT;
  9714. } SLIBR167;
  9715. union {
  9716. unsigned char BYTE;
  9717. struct {
  9718. #ifdef __RX_LITTLE_ENDIAN__
  9719. unsigned char SLI : 8;
  9720. #else
  9721. unsigned char SLI : 8;
  9722. #endif
  9723. } BIT;
  9724. } SLIBR168;
  9725. union {
  9726. unsigned char BYTE;
  9727. struct {
  9728. #ifdef __RX_LITTLE_ENDIAN__
  9729. unsigned char SLI : 8;
  9730. #else
  9731. unsigned char SLI : 8;
  9732. #endif
  9733. } BIT;
  9734. } SLIBR169;
  9735. union {
  9736. unsigned char BYTE;
  9737. struct {
  9738. #ifdef __RX_LITTLE_ENDIAN__
  9739. unsigned char SLI : 8;
  9740. #else
  9741. unsigned char SLI : 8;
  9742. #endif
  9743. } BIT;
  9744. } SLIBR170;
  9745. union {
  9746. unsigned char BYTE;
  9747. struct {
  9748. #ifdef __RX_LITTLE_ENDIAN__
  9749. unsigned char SLI : 8;
  9750. #else
  9751. unsigned char SLI : 8;
  9752. #endif
  9753. } BIT;
  9754. } SLIBR171;
  9755. union {
  9756. unsigned char BYTE;
  9757. struct {
  9758. #ifdef __RX_LITTLE_ENDIAN__
  9759. unsigned char SLI : 8;
  9760. #else
  9761. unsigned char SLI : 8;
  9762. #endif
  9763. } BIT;
  9764. } SLIBR172;
  9765. union {
  9766. unsigned char BYTE;
  9767. struct {
  9768. #ifdef __RX_LITTLE_ENDIAN__
  9769. unsigned char SLI : 8;
  9770. #else
  9771. unsigned char SLI : 8;
  9772. #endif
  9773. } BIT;
  9774. } SLIBR173;
  9775. union {
  9776. unsigned char BYTE;
  9777. struct {
  9778. #ifdef __RX_LITTLE_ENDIAN__
  9779. unsigned char SLI : 8;
  9780. #else
  9781. unsigned char SLI : 8;
  9782. #endif
  9783. } BIT;
  9784. } SLIBR174;
  9785. union {
  9786. unsigned char BYTE;
  9787. struct {
  9788. #ifdef __RX_LITTLE_ENDIAN__
  9789. unsigned char SLI : 8;
  9790. #else
  9791. unsigned char SLI : 8;
  9792. #endif
  9793. } BIT;
  9794. } SLIBR175;
  9795. union {
  9796. unsigned char BYTE;
  9797. struct {
  9798. #ifdef __RX_LITTLE_ENDIAN__
  9799. unsigned char SLI : 8;
  9800. #else
  9801. unsigned char SLI : 8;
  9802. #endif
  9803. } BIT;
  9804. } SLIBR176;
  9805. union {
  9806. unsigned char BYTE;
  9807. struct {
  9808. #ifdef __RX_LITTLE_ENDIAN__
  9809. unsigned char SLI : 8;
  9810. #else
  9811. unsigned char SLI : 8;
  9812. #endif
  9813. } BIT;
  9814. } SLIBR177;
  9815. union {
  9816. unsigned char BYTE;
  9817. struct {
  9818. #ifdef __RX_LITTLE_ENDIAN__
  9819. unsigned char SLI : 8;
  9820. #else
  9821. unsigned char SLI : 8;
  9822. #endif
  9823. } BIT;
  9824. } SLIBR178;
  9825. union {
  9826. unsigned char BYTE;
  9827. struct {
  9828. #ifdef __RX_LITTLE_ENDIAN__
  9829. unsigned char SLI : 8;
  9830. #else
  9831. unsigned char SLI : 8;
  9832. #endif
  9833. } BIT;
  9834. } SLIBR179;
  9835. union {
  9836. unsigned char BYTE;
  9837. struct {
  9838. #ifdef __RX_LITTLE_ENDIAN__
  9839. unsigned char SLI : 8;
  9840. #else
  9841. unsigned char SLI : 8;
  9842. #endif
  9843. } BIT;
  9844. } SLIBR180;
  9845. union {
  9846. unsigned char BYTE;
  9847. struct {
  9848. #ifdef __RX_LITTLE_ENDIAN__
  9849. unsigned char SLI : 8;
  9850. #else
  9851. unsigned char SLI : 8;
  9852. #endif
  9853. } BIT;
  9854. } SLIBR181;
  9855. union {
  9856. unsigned char BYTE;
  9857. struct {
  9858. #ifdef __RX_LITTLE_ENDIAN__
  9859. unsigned char SLI : 8;
  9860. #else
  9861. unsigned char SLI : 8;
  9862. #endif
  9863. } BIT;
  9864. } SLIBR182;
  9865. union {
  9866. unsigned char BYTE;
  9867. struct {
  9868. #ifdef __RX_LITTLE_ENDIAN__
  9869. unsigned char SLI : 8;
  9870. #else
  9871. unsigned char SLI : 8;
  9872. #endif
  9873. } BIT;
  9874. } SLIBR183;
  9875. union {
  9876. unsigned char BYTE;
  9877. struct {
  9878. #ifdef __RX_LITTLE_ENDIAN__
  9879. unsigned char SLI : 8;
  9880. #else
  9881. unsigned char SLI : 8;
  9882. #endif
  9883. } BIT;
  9884. } SLIBR184;
  9885. union {
  9886. unsigned char BYTE;
  9887. struct {
  9888. #ifdef __RX_LITTLE_ENDIAN__
  9889. unsigned char SLI : 8;
  9890. #else
  9891. unsigned char SLI : 8;
  9892. #endif
  9893. } BIT;
  9894. } SLIBR185;
  9895. union {
  9896. unsigned char BYTE;
  9897. struct {
  9898. #ifdef __RX_LITTLE_ENDIAN__
  9899. unsigned char SLI : 8;
  9900. #else
  9901. unsigned char SLI : 8;
  9902. #endif
  9903. } BIT;
  9904. } SLIBR186;
  9905. union {
  9906. unsigned char BYTE;
  9907. struct {
  9908. #ifdef __RX_LITTLE_ENDIAN__
  9909. unsigned char SLI : 8;
  9910. #else
  9911. unsigned char SLI : 8;
  9912. #endif
  9913. } BIT;
  9914. } SLIBR187;
  9915. union {
  9916. unsigned char BYTE;
  9917. struct {
  9918. #ifdef __RX_LITTLE_ENDIAN__
  9919. unsigned char SLI : 8;
  9920. #else
  9921. unsigned char SLI : 8;
  9922. #endif
  9923. } BIT;
  9924. } SLIBR188;
  9925. union {
  9926. unsigned char BYTE;
  9927. struct {
  9928. #ifdef __RX_LITTLE_ENDIAN__
  9929. unsigned char SLI : 8;
  9930. #else
  9931. unsigned char SLI : 8;
  9932. #endif
  9933. } BIT;
  9934. } SLIBR189;
  9935. union {
  9936. unsigned char BYTE;
  9937. struct {
  9938. #ifdef __RX_LITTLE_ENDIAN__
  9939. unsigned char SLI : 8;
  9940. #else
  9941. unsigned char SLI : 8;
  9942. #endif
  9943. } BIT;
  9944. } SLIBR190;
  9945. union {
  9946. unsigned char BYTE;
  9947. struct {
  9948. #ifdef __RX_LITTLE_ENDIAN__
  9949. unsigned char SLI : 8;
  9950. #else
  9951. unsigned char SLI : 8;
  9952. #endif
  9953. } BIT;
  9954. } SLIBR191;
  9955. union {
  9956. unsigned char BYTE;
  9957. struct {
  9958. #ifdef __RX_LITTLE_ENDIAN__
  9959. unsigned char SLI : 8;
  9960. #else
  9961. unsigned char SLI : 8;
  9962. #endif
  9963. } BIT;
  9964. } SLIBR192;
  9965. union {
  9966. unsigned char BYTE;
  9967. struct {
  9968. #ifdef __RX_LITTLE_ENDIAN__
  9969. unsigned char SLI : 8;
  9970. #else
  9971. unsigned char SLI : 8;
  9972. #endif
  9973. } BIT;
  9974. } SLIBR193;
  9975. union {
  9976. unsigned char BYTE;
  9977. struct {
  9978. #ifdef __RX_LITTLE_ENDIAN__
  9979. unsigned char SLI : 8;
  9980. #else
  9981. unsigned char SLI : 8;
  9982. #endif
  9983. } BIT;
  9984. } SLIBR194;
  9985. union {
  9986. unsigned char BYTE;
  9987. struct {
  9988. #ifdef __RX_LITTLE_ENDIAN__
  9989. unsigned char SLI : 8;
  9990. #else
  9991. unsigned char SLI : 8;
  9992. #endif
  9993. } BIT;
  9994. } SLIBR195;
  9995. union {
  9996. unsigned char BYTE;
  9997. struct {
  9998. #ifdef __RX_LITTLE_ENDIAN__
  9999. unsigned char SLI : 8;
  10000. #else
  10001. unsigned char SLI : 8;
  10002. #endif
  10003. } BIT;
  10004. } SLIBR196;
  10005. union {
  10006. unsigned char BYTE;
  10007. struct {
  10008. #ifdef __RX_LITTLE_ENDIAN__
  10009. unsigned char SLI : 8;
  10010. #else
  10011. unsigned char SLI : 8;
  10012. #endif
  10013. } BIT;
  10014. } SLIBR197;
  10015. union {
  10016. unsigned char BYTE;
  10017. struct {
  10018. #ifdef __RX_LITTLE_ENDIAN__
  10019. unsigned char SLI : 8;
  10020. #else
  10021. unsigned char SLI : 8;
  10022. #endif
  10023. } BIT;
  10024. } SLIBR198;
  10025. union {
  10026. unsigned char BYTE;
  10027. struct {
  10028. #ifdef __RX_LITTLE_ENDIAN__
  10029. unsigned char SLI : 8;
  10030. #else
  10031. unsigned char SLI : 8;
  10032. #endif
  10033. } BIT;
  10034. } SLIBR199;
  10035. union {
  10036. unsigned char BYTE;
  10037. struct {
  10038. #ifdef __RX_LITTLE_ENDIAN__
  10039. unsigned char SLI : 8;
  10040. #else
  10041. unsigned char SLI : 8;
  10042. #endif
  10043. } BIT;
  10044. } SLIBR200;
  10045. union {
  10046. unsigned char BYTE;
  10047. struct {
  10048. #ifdef __RX_LITTLE_ENDIAN__
  10049. unsigned char SLI : 8;
  10050. #else
  10051. unsigned char SLI : 8;
  10052. #endif
  10053. } BIT;
  10054. } SLIBR201;
  10055. union {
  10056. unsigned char BYTE;
  10057. struct {
  10058. #ifdef __RX_LITTLE_ENDIAN__
  10059. unsigned char SLI : 8;
  10060. #else
  10061. unsigned char SLI : 8;
  10062. #endif
  10063. } BIT;
  10064. } SLIBR202;
  10065. union {
  10066. unsigned char BYTE;
  10067. struct {
  10068. #ifdef __RX_LITTLE_ENDIAN__
  10069. unsigned char SLI : 8;
  10070. #else
  10071. unsigned char SLI : 8;
  10072. #endif
  10073. } BIT;
  10074. } SLIBR203;
  10075. union {
  10076. unsigned char BYTE;
  10077. struct {
  10078. #ifdef __RX_LITTLE_ENDIAN__
  10079. unsigned char SLI : 8;
  10080. #else
  10081. unsigned char SLI : 8;
  10082. #endif
  10083. } BIT;
  10084. } SLIBR204;
  10085. union {
  10086. unsigned char BYTE;
  10087. struct {
  10088. #ifdef __RX_LITTLE_ENDIAN__
  10089. unsigned char SLI : 8;
  10090. #else
  10091. unsigned char SLI : 8;
  10092. #endif
  10093. } BIT;
  10094. } SLIBR205;
  10095. union {
  10096. unsigned char BYTE;
  10097. struct {
  10098. #ifdef __RX_LITTLE_ENDIAN__
  10099. unsigned char SLI : 8;
  10100. #else
  10101. unsigned char SLI : 8;
  10102. #endif
  10103. } BIT;
  10104. } SLIBR206;
  10105. union {
  10106. unsigned char BYTE;
  10107. struct {
  10108. #ifdef __RX_LITTLE_ENDIAN__
  10109. unsigned char SLI : 8;
  10110. #else
  10111. unsigned char SLI : 8;
  10112. #endif
  10113. } BIT;
  10114. } SLIBR207;
  10115. char wk23[96];
  10116. union {
  10117. unsigned long LONG;
  10118. struct {
  10119. #ifdef __RX_LITTLE_ENDIAN__
  10120. unsigned long IS0 : 1;
  10121. unsigned long IS1 : 1;
  10122. unsigned long IS2 : 1;
  10123. unsigned long IS3 : 1;
  10124. unsigned long IS4 : 1;
  10125. unsigned long IS5 : 1;
  10126. unsigned long IS6 : 1;
  10127. unsigned long IS7 : 1;
  10128. unsigned long IS8 : 1;
  10129. unsigned long IS9 : 1;
  10130. unsigned long IS10 : 1;
  10131. unsigned long IS11 : 1;
  10132. unsigned long IS12 : 1;
  10133. unsigned long IS13 : 1;
  10134. unsigned long IS14 : 1;
  10135. unsigned long IS15 : 1;
  10136. unsigned long IS16 : 1;
  10137. unsigned long IS17 : 1;
  10138. unsigned long IS18 : 1;
  10139. unsigned long IS19 : 1;
  10140. unsigned long IS20 : 1;
  10141. unsigned long IS21 : 1;
  10142. unsigned long IS22 : 1;
  10143. unsigned long IS23 : 1;
  10144. unsigned long IS24 : 1;
  10145. unsigned long IS25 : 1;
  10146. unsigned long IS26 : 1;
  10147. unsigned long IS27 : 1;
  10148. unsigned long IS28 : 1;
  10149. unsigned long IS29 : 1;
  10150. unsigned long IS30 : 1;
  10151. unsigned long IS31 : 1;
  10152. #else
  10153. unsigned long IS31 : 1;
  10154. unsigned long IS30 : 1;
  10155. unsigned long IS29 : 1;
  10156. unsigned long IS28 : 1;
  10157. unsigned long IS27 : 1;
  10158. unsigned long IS26 : 1;
  10159. unsigned long IS25 : 1;
  10160. unsigned long IS24 : 1;
  10161. unsigned long IS23 : 1;
  10162. unsigned long IS22 : 1;
  10163. unsigned long IS21 : 1;
  10164. unsigned long IS20 : 1;
  10165. unsigned long IS19 : 1;
  10166. unsigned long IS18 : 1;
  10167. unsigned long IS17 : 1;
  10168. unsigned long IS16 : 1;
  10169. unsigned long IS15 : 1;
  10170. unsigned long IS14 : 1;
  10171. unsigned long IS13 : 1;
  10172. unsigned long IS12 : 1;
  10173. unsigned long IS11 : 1;
  10174. unsigned long IS10 : 1;
  10175. unsigned long IS9 : 1;
  10176. unsigned long IS8 : 1;
  10177. unsigned long IS7 : 1;
  10178. unsigned long IS6 : 1;
  10179. unsigned long IS5 : 1;
  10180. unsigned long IS4 : 1;
  10181. unsigned long IS3 : 1;
  10182. unsigned long IS2 : 1;
  10183. unsigned long IS1 : 1;
  10184. unsigned long IS0 : 1;
  10185. #endif
  10186. } BIT;
  10187. } GRPAL0;
  10188. union {
  10189. unsigned long LONG;
  10190. struct {
  10191. #ifdef __RX_LITTLE_ENDIAN__
  10192. unsigned long IS0 : 1;
  10193. unsigned long IS1 : 1;
  10194. unsigned long IS2 : 1;
  10195. unsigned long IS3 : 1;
  10196. unsigned long IS4 : 1;
  10197. unsigned long IS5 : 1;
  10198. unsigned long IS6 : 1;
  10199. unsigned long IS7 : 1;
  10200. unsigned long IS8 : 1;
  10201. unsigned long IS9 : 1;
  10202. unsigned long IS10 : 1;
  10203. unsigned long IS11 : 1;
  10204. unsigned long IS12 : 1;
  10205. unsigned long IS13 : 1;
  10206. unsigned long IS14 : 1;
  10207. unsigned long IS15 : 1;
  10208. unsigned long IS16 : 1;
  10209. unsigned long IS17 : 1;
  10210. unsigned long IS18 : 1;
  10211. unsigned long IS19 : 1;
  10212. unsigned long IS20 : 1;
  10213. unsigned long IS21 : 1;
  10214. unsigned long IS22 : 1;
  10215. unsigned long IS23 : 1;
  10216. unsigned long IS24 : 1;
  10217. unsigned long IS25 : 1;
  10218. unsigned long IS26 : 1;
  10219. unsigned long IS27 : 1;
  10220. unsigned long IS28 : 1;
  10221. unsigned long IS29 : 1;
  10222. unsigned long IS30 : 1;
  10223. unsigned long IS31 : 1;
  10224. #else
  10225. unsigned long IS31 : 1;
  10226. unsigned long IS30 : 1;
  10227. unsigned long IS29 : 1;
  10228. unsigned long IS28 : 1;
  10229. unsigned long IS27 : 1;
  10230. unsigned long IS26 : 1;
  10231. unsigned long IS25 : 1;
  10232. unsigned long IS24 : 1;
  10233. unsigned long IS23 : 1;
  10234. unsigned long IS22 : 1;
  10235. unsigned long IS21 : 1;
  10236. unsigned long IS20 : 1;
  10237. unsigned long IS19 : 1;
  10238. unsigned long IS18 : 1;
  10239. unsigned long IS17 : 1;
  10240. unsigned long IS16 : 1;
  10241. unsigned long IS15 : 1;
  10242. unsigned long IS14 : 1;
  10243. unsigned long IS13 : 1;
  10244. unsigned long IS12 : 1;
  10245. unsigned long IS11 : 1;
  10246. unsigned long IS10 : 1;
  10247. unsigned long IS9 : 1;
  10248. unsigned long IS8 : 1;
  10249. unsigned long IS7 : 1;
  10250. unsigned long IS6 : 1;
  10251. unsigned long IS5 : 1;
  10252. unsigned long IS4 : 1;
  10253. unsigned long IS3 : 1;
  10254. unsigned long IS2 : 1;
  10255. unsigned long IS1 : 1;
  10256. unsigned long IS0 : 1;
  10257. #endif
  10258. } BIT;
  10259. } GRPAL1;
  10260. char wk24[56];
  10261. union {
  10262. unsigned long LONG;
  10263. struct {
  10264. #ifdef __RX_LITTLE_ENDIAN__
  10265. unsigned long EN0 : 1;
  10266. unsigned long EN1 : 1;
  10267. unsigned long EN2 : 1;
  10268. unsigned long EN3 : 1;
  10269. unsigned long EN4 : 1;
  10270. unsigned long EN5 : 1;
  10271. unsigned long EN6 : 1;
  10272. unsigned long EN7 : 1;
  10273. unsigned long EN8 : 1;
  10274. unsigned long EN9 : 1;
  10275. unsigned long EN10 : 1;
  10276. unsigned long EN11 : 1;
  10277. unsigned long EN12 : 1;
  10278. unsigned long EN13 : 1;
  10279. unsigned long EN14 : 1;
  10280. unsigned long EN15 : 1;
  10281. unsigned long EN16 : 1;
  10282. unsigned long EN17 : 1;
  10283. unsigned long EN18 : 1;
  10284. unsigned long EN19 : 1;
  10285. unsigned long EN20 : 1;
  10286. unsigned long EN21 : 1;
  10287. unsigned long EN22 : 1;
  10288. unsigned long EN23 : 1;
  10289. unsigned long EN24 : 1;
  10290. unsigned long EN25 : 1;
  10291. unsigned long EN26 : 1;
  10292. unsigned long EN27 : 1;
  10293. unsigned long EN28 : 1;
  10294. unsigned long EN29 : 1;
  10295. unsigned long EN30 : 1;
  10296. unsigned long EN31 : 1;
  10297. #else
  10298. unsigned long EN31 : 1;
  10299. unsigned long EN30 : 1;
  10300. unsigned long EN29 : 1;
  10301. unsigned long EN28 : 1;
  10302. unsigned long EN27 : 1;
  10303. unsigned long EN26 : 1;
  10304. unsigned long EN25 : 1;
  10305. unsigned long EN24 : 1;
  10306. unsigned long EN23 : 1;
  10307. unsigned long EN22 : 1;
  10308. unsigned long EN21 : 1;
  10309. unsigned long EN20 : 1;
  10310. unsigned long EN19 : 1;
  10311. unsigned long EN18 : 1;
  10312. unsigned long EN17 : 1;
  10313. unsigned long EN16 : 1;
  10314. unsigned long EN15 : 1;
  10315. unsigned long EN14 : 1;
  10316. unsigned long EN13 : 1;
  10317. unsigned long EN12 : 1;
  10318. unsigned long EN11 : 1;
  10319. unsigned long EN10 : 1;
  10320. unsigned long EN9 : 1;
  10321. unsigned long EN8 : 1;
  10322. unsigned long EN7 : 1;
  10323. unsigned long EN6 : 1;
  10324. unsigned long EN5 : 1;
  10325. unsigned long EN4 : 1;
  10326. unsigned long EN3 : 1;
  10327. unsigned long EN2 : 1;
  10328. unsigned long EN1 : 1;
  10329. unsigned long EN0 : 1;
  10330. #endif
  10331. } BIT;
  10332. } GENAL0;
  10333. union {
  10334. unsigned long LONG;
  10335. struct {
  10336. #ifdef __RX_LITTLE_ENDIAN__
  10337. unsigned long EN0 : 1;
  10338. unsigned long EN1 : 1;
  10339. unsigned long EN2 : 1;
  10340. unsigned long EN3 : 1;
  10341. unsigned long EN4 : 1;
  10342. unsigned long EN5 : 1;
  10343. unsigned long EN6 : 1;
  10344. unsigned long EN7 : 1;
  10345. unsigned long EN8 : 1;
  10346. unsigned long EN9 : 1;
  10347. unsigned long EN10 : 1;
  10348. unsigned long EN11 : 1;
  10349. unsigned long EN12 : 1;
  10350. unsigned long EN13 : 1;
  10351. unsigned long EN14 : 1;
  10352. unsigned long EN15 : 1;
  10353. unsigned long EN16 : 1;
  10354. unsigned long EN17 : 1;
  10355. unsigned long EN18 : 1;
  10356. unsigned long EN19 : 1;
  10357. unsigned long EN20 : 1;
  10358. unsigned long EN21 : 1;
  10359. unsigned long EN22 : 1;
  10360. unsigned long EN23 : 1;
  10361. unsigned long EN24 : 1;
  10362. unsigned long EN25 : 1;
  10363. unsigned long EN26 : 1;
  10364. unsigned long EN27 : 1;
  10365. unsigned long EN28 : 1;
  10366. unsigned long EN29 : 1;
  10367. unsigned long EN30 : 1;
  10368. unsigned long EN31 : 1;
  10369. #else
  10370. unsigned long EN31 : 1;
  10371. unsigned long EN30 : 1;
  10372. unsigned long EN29 : 1;
  10373. unsigned long EN28 : 1;
  10374. unsigned long EN27 : 1;
  10375. unsigned long EN26 : 1;
  10376. unsigned long EN25 : 1;
  10377. unsigned long EN24 : 1;
  10378. unsigned long EN23 : 1;
  10379. unsigned long EN22 : 1;
  10380. unsigned long EN21 : 1;
  10381. unsigned long EN20 : 1;
  10382. unsigned long EN19 : 1;
  10383. unsigned long EN18 : 1;
  10384. unsigned long EN17 : 1;
  10385. unsigned long EN16 : 1;
  10386. unsigned long EN15 : 1;
  10387. unsigned long EN14 : 1;
  10388. unsigned long EN13 : 1;
  10389. unsigned long EN12 : 1;
  10390. unsigned long EN11 : 1;
  10391. unsigned long EN10 : 1;
  10392. unsigned long EN9 : 1;
  10393. unsigned long EN8 : 1;
  10394. unsigned long EN7 : 1;
  10395. unsigned long EN6 : 1;
  10396. unsigned long EN5 : 1;
  10397. unsigned long EN4 : 1;
  10398. unsigned long EN3 : 1;
  10399. unsigned long EN2 : 1;
  10400. unsigned long EN1 : 1;
  10401. unsigned long EN0 : 1;
  10402. #endif
  10403. } BIT;
  10404. } GENAL1;
  10405. char wk25[136];
  10406. union {
  10407. unsigned char BYTE;
  10408. #ifdef IODEFINE_H_HISTORY
  10409. struct {
  10410. unsigned char PIR7:1;
  10411. unsigned char PIR6:1;
  10412. unsigned char PIR5:1;
  10413. unsigned char PIR4:1;
  10414. unsigned char PIR3:1;
  10415. unsigned char PIR2:1;
  10416. unsigned char PIR1:1;
  10417. unsigned char PIR0:1;
  10418. } BIT;
  10419. #endif
  10420. } PIAR0;
  10421. union {
  10422. unsigned char BYTE;
  10423. #ifdef IODEFINE_H_HISTORY
  10424. struct {
  10425. unsigned char PIR7:1;
  10426. unsigned char PIR6:1;
  10427. unsigned char PIR5:1;
  10428. unsigned char PIR4:1;
  10429. unsigned char PIR3:1;
  10430. unsigned char PIR2:1;
  10431. unsigned char PIR1:1;
  10432. unsigned char PIR0:1;
  10433. } BIT;
  10434. #endif
  10435. } PIAR1;
  10436. union {
  10437. unsigned char BYTE;
  10438. #ifdef IODEFINE_H_HISTORY
  10439. struct {
  10440. unsigned char PIR7:1;
  10441. unsigned char PIR6:1;
  10442. unsigned char PIR5:1;
  10443. unsigned char PIR4:1;
  10444. unsigned char PIR3:1;
  10445. unsigned char PIR2:1;
  10446. unsigned char PIR1:1;
  10447. unsigned char PIR0:1;
  10448. } BIT;
  10449. #endif
  10450. } PIAR2;
  10451. union {
  10452. unsigned char BYTE;
  10453. #ifdef IODEFINE_H_HISTORY
  10454. struct {
  10455. unsigned char PIR7:1;
  10456. unsigned char PIR6:1;
  10457. unsigned char PIR5:1;
  10458. unsigned char PIR4:1;
  10459. unsigned char PIR3:1;
  10460. unsigned char PIR2:1;
  10461. unsigned char PIR1:1;
  10462. unsigned char PIR0:1;
  10463. } BIT;
  10464. #endif
  10465. } PIAR3;
  10466. union {
  10467. unsigned char BYTE;
  10468. #ifdef IODEFINE_H_HISTORY
  10469. struct {
  10470. unsigned char PIR7:1;
  10471. unsigned char PIR6:1;
  10472. unsigned char PIR5:1;
  10473. unsigned char PIR4:1;
  10474. unsigned char PIR3:1;
  10475. unsigned char PIR2:1;
  10476. unsigned char PIR1:1;
  10477. unsigned char PIR0:1;
  10478. } BIT;
  10479. #endif
  10480. } PIAR4;
  10481. union {
  10482. unsigned char BYTE;
  10483. #ifdef IODEFINE_H_HISTORY
  10484. struct {
  10485. unsigned char PIR7:1;
  10486. unsigned char PIR6:1;
  10487. unsigned char PIR5:1;
  10488. unsigned char PIR4:1;
  10489. unsigned char PIR3:1;
  10490. unsigned char PIR2:1;
  10491. unsigned char PIR1:1;
  10492. unsigned char PIR0:1;
  10493. } BIT;
  10494. #endif
  10495. } PIAR5;
  10496. char wk26[5];
  10497. union {
  10498. unsigned char BYTE;
  10499. #ifdef IODEFINE_H_HISTORY
  10500. struct {
  10501. unsigned char PIR7:1;
  10502. unsigned char PIR6:1;
  10503. unsigned char PIR5:1;
  10504. unsigned char PIR4:1;
  10505. unsigned char PIR3:1;
  10506. unsigned char PIR2:1;
  10507. unsigned char PIR1:1;
  10508. unsigned char PIR0:1;
  10509. } BIT;
  10510. #endif
  10511. } PIARB;
  10512. char wk27[196];
  10513. union {
  10514. unsigned char BYTE;
  10515. } SLIAR208;
  10516. union {
  10517. unsigned char BYTE;
  10518. } SLIAR209;
  10519. union {
  10520. unsigned char BYTE;
  10521. } SLIAR210;
  10522. union {
  10523. unsigned char BYTE;
  10524. } SLIAR211;
  10525. union {
  10526. unsigned char BYTE;
  10527. } SLIAR212;
  10528. union {
  10529. unsigned char BYTE;
  10530. } SLIAR213;
  10531. union {
  10532. unsigned char BYTE;
  10533. } SLIAR214;
  10534. union {
  10535. unsigned char BYTE;
  10536. } SLIAR215;
  10537. union {
  10538. unsigned char BYTE;
  10539. } SLIAR216;
  10540. union {
  10541. unsigned char BYTE;
  10542. } SLIAR217;
  10543. union {
  10544. unsigned char BYTE;
  10545. } SLIAR218;
  10546. union {
  10547. unsigned char BYTE;
  10548. } SLIAR219;
  10549. union {
  10550. unsigned char BYTE;
  10551. } SLIAR220;
  10552. union {
  10553. unsigned char BYTE;
  10554. } SLIAR221;
  10555. union {
  10556. unsigned char BYTE;
  10557. } SLIAR222;
  10558. union {
  10559. unsigned char BYTE;
  10560. } SLIAR223;
  10561. union {
  10562. unsigned char BYTE;
  10563. } SLIAR224;
  10564. union {
  10565. unsigned char BYTE;
  10566. } SLIAR225;
  10567. union {
  10568. unsigned char BYTE;
  10569. } SLIAR226;
  10570. union {
  10571. unsigned char BYTE;
  10572. } SLIAR227;
  10573. union {
  10574. unsigned char BYTE;
  10575. } SLIAR228;
  10576. union {
  10577. unsigned char BYTE;
  10578. } SLIAR229;
  10579. union {
  10580. unsigned char BYTE;
  10581. } SLIAR230;
  10582. union {
  10583. unsigned char BYTE;
  10584. } SLIAR231;
  10585. union {
  10586. unsigned char BYTE;
  10587. } SLIAR232;
  10588. union {
  10589. unsigned char BYTE;
  10590. } SLIAR233;
  10591. union {
  10592. unsigned char BYTE;
  10593. } SLIAR234;
  10594. union {
  10595. unsigned char BYTE;
  10596. } SLIAR235;
  10597. union {
  10598. unsigned char BYTE;
  10599. } SLIAR236;
  10600. union {
  10601. unsigned char BYTE;
  10602. } SLIAR237;
  10603. union {
  10604. unsigned char BYTE;
  10605. } SLIAR238;
  10606. union {
  10607. unsigned char BYTE;
  10608. } SLIAR239;
  10609. union {
  10610. unsigned char BYTE;
  10611. } SLIAR240;
  10612. union {
  10613. unsigned char BYTE;
  10614. } SLIAR241;
  10615. union {
  10616. unsigned char BYTE;
  10617. } SLIAR242;
  10618. union {
  10619. unsigned char BYTE;
  10620. } SLIAR243;
  10621. union {
  10622. unsigned char BYTE;
  10623. } SLIAR244;
  10624. union {
  10625. unsigned char BYTE;
  10626. } SLIAR245;
  10627. union {
  10628. unsigned char BYTE;
  10629. } SLIAR246;
  10630. union {
  10631. unsigned char BYTE;
  10632. } SLIAR247;
  10633. union {
  10634. unsigned char BYTE;
  10635. } SLIAR248;
  10636. union {
  10637. unsigned char BYTE;
  10638. } SLIAR249;
  10639. union {
  10640. unsigned char BYTE;
  10641. } SLIAR250;
  10642. union {
  10643. unsigned char BYTE;
  10644. } SLIAR251;
  10645. union {
  10646. unsigned char BYTE;
  10647. } SLIAR252;
  10648. union {
  10649. unsigned char BYTE;
  10650. } SLIAR253;
  10651. union {
  10652. unsigned char BYTE;
  10653. } SLIAR254;
  10654. union {
  10655. unsigned char BYTE;
  10656. } SLIAR255;
  10657. union {
  10658. unsigned char BYTE;
  10659. struct {
  10660. #ifdef __RX_LITTLE_ENDIAN__
  10661. unsigned char WPRC : 1;
  10662. unsigned char : 7;
  10663. #else
  10664. unsigned char : 7;
  10665. unsigned char WPRC : 1;
  10666. #endif
  10667. } BIT;
  10668. } SLIPRCR;
  10669. union {
  10670. unsigned char BYTE;
  10671. struct {
  10672. #ifdef __RX_LITTLE_ENDIAN__
  10673. unsigned char SELEXD0 : 1;
  10674. unsigned char SELEXD1 : 1;
  10675. unsigned char : 6;
  10676. #else
  10677. unsigned char : 6;
  10678. unsigned char SELEXD1 : 1;
  10679. unsigned char SELEXD0 : 1;
  10680. #endif
  10681. } BIT;
  10682. } SELEXDR;
  10683. } st_icu_t;
  10684. typedef struct st_iwdt {
  10685. unsigned char IWDTRR;
  10686. char wk0[1];
  10687. union {
  10688. unsigned short WORD;
  10689. struct {
  10690. #ifdef __RX_LITTLE_ENDIAN__
  10691. unsigned short TOPS : 2;
  10692. unsigned short : 2;
  10693. unsigned short CKS : 4;
  10694. unsigned short RPES : 2;
  10695. unsigned short : 2;
  10696. unsigned short RPSS : 2;
  10697. unsigned short : 2;
  10698. #else
  10699. unsigned short : 2;
  10700. unsigned short RPSS : 2;
  10701. unsigned short : 2;
  10702. unsigned short RPES : 2;
  10703. unsigned short CKS : 4;
  10704. unsigned short : 2;
  10705. unsigned short TOPS : 2;
  10706. #endif
  10707. } BIT;
  10708. } IWDTCR;
  10709. union {
  10710. unsigned short WORD;
  10711. struct {
  10712. #ifdef __RX_LITTLE_ENDIAN__
  10713. unsigned short CNTVAL : 14;
  10714. unsigned short UNDFF : 1;
  10715. unsigned short REFEF : 1;
  10716. #else
  10717. unsigned short REFEF : 1;
  10718. unsigned short UNDFF : 1;
  10719. unsigned short CNTVAL : 14;
  10720. #endif
  10721. } BIT;
  10722. } IWDTSR;
  10723. union {
  10724. unsigned char BYTE;
  10725. struct {
  10726. #ifdef __RX_LITTLE_ENDIAN__
  10727. unsigned char : 7;
  10728. unsigned char RSTIRQS : 1;
  10729. #else
  10730. unsigned char RSTIRQS : 1;
  10731. unsigned char : 7;
  10732. #endif
  10733. } BIT;
  10734. } IWDTRCR;
  10735. char wk1[1];
  10736. union {
  10737. unsigned char BYTE;
  10738. struct {
  10739. #ifdef __RX_LITTLE_ENDIAN__
  10740. unsigned char : 7;
  10741. unsigned char SLCSTP : 1;
  10742. #else
  10743. unsigned char SLCSTP : 1;
  10744. unsigned char : 7;
  10745. #endif
  10746. } BIT;
  10747. } IWDTCSTPR;
  10748. } st_iwdt_t;
  10749. typedef struct st_mmcif {
  10750. union {
  10751. unsigned long LONG;
  10752. #ifdef IODEFINE_H_HISTORY
  10753. struct {
  10754. #ifdef __RX_LITTLE_ENDIAN__
  10755. unsigned long DATW : 2;
  10756. unsigned long : 1;
  10757. unsigned long SBIT : 1;
  10758. unsigned long : 2;
  10759. unsigned long OPDM : 1;
  10760. unsigned long TBIT : 1;
  10761. unsigned long CRCSTE : 1;
  10762. unsigned long BOOTACK : 1;
  10763. unsigned long CRC16C : 1;
  10764. unsigned long : 1;
  10765. unsigned long RCRC7C : 2;
  10766. unsigned long RIDXC : 2;
  10767. unsigned long CMD12EN : 1;
  10768. unsigned long CMLTE : 1;
  10769. unsigned long DWEN : 1;
  10770. unsigned long WDAT : 1;
  10771. unsigned long : 1;
  10772. unsigned long RBSY : 1;
  10773. unsigned long RTYP : 2;
  10774. unsigned long CMD : 6;
  10775. unsigned long BOOT : 1;
  10776. unsigned long : 1;
  10777. #else
  10778. unsigned long : 1;
  10779. unsigned long BOOT : 1;
  10780. unsigned long CMD : 6;
  10781. unsigned long RTYP : 2;
  10782. unsigned long RBSY : 1;
  10783. unsigned long : 1;
  10784. unsigned long WDAT : 1;
  10785. unsigned long DWEN : 1;
  10786. unsigned long CMLTE : 1;
  10787. unsigned long CMD12EN : 1;
  10788. unsigned long RIDXC : 2;
  10789. unsigned long RCRC7C : 2;
  10790. unsigned long : 1;
  10791. unsigned long CRC16C : 1;
  10792. unsigned long BOOTACK : 1;
  10793. unsigned long CRCSTE : 1;
  10794. unsigned long TBIT : 1;
  10795. unsigned long OPDM : 1;
  10796. unsigned long : 2;
  10797. unsigned long SBIT : 1;
  10798. unsigned long : 1;
  10799. unsigned long DATW : 2;
  10800. #endif
  10801. } BIT;
  10802. #endif
  10803. } CECMDSET;
  10804. char wk0[4];
  10805. union {
  10806. unsigned long LONG;
  10807. } CEARG;
  10808. union {
  10809. unsigned long LONG;
  10810. struct {
  10811. #ifdef __RX_LITTLE_ENDIAN__
  10812. unsigned long C12ARG : 32;
  10813. #else
  10814. unsigned long C12ARG : 32;
  10815. #endif
  10816. } BIT;
  10817. } CEARGCMD12;
  10818. union {
  10819. unsigned long LONG;
  10820. struct {
  10821. #ifdef __RX_LITTLE_ENDIAN__
  10822. unsigned long BREAK : 1;
  10823. unsigned long : 31;
  10824. #else
  10825. unsigned long : 31;
  10826. unsigned long BREAK : 1;
  10827. #endif
  10828. } BIT;
  10829. } CECMDCTRL;
  10830. union {
  10831. unsigned long LONG;
  10832. struct {
  10833. #ifdef __RX_LITTLE_ENDIAN__
  10834. unsigned long BLKSIZ : 16;
  10835. unsigned long BLKCNT : 16;
  10836. #else
  10837. unsigned long BLKCNT : 16;
  10838. unsigned long BLKSIZ : 16;
  10839. #endif
  10840. } BIT;
  10841. } CEBLOCKSET;
  10842. union {
  10843. unsigned long LONG;
  10844. struct {
  10845. #ifdef __RX_LITTLE_ENDIAN__
  10846. unsigned long : 4;
  10847. unsigned long SRWDTO : 4;
  10848. unsigned long SRBSYTO : 4;
  10849. unsigned long SRSPTO : 2;
  10850. unsigned long : 2;
  10851. unsigned long CLKDIV : 4;
  10852. unsigned long : 4;
  10853. unsigned long CLKEN : 1;
  10854. unsigned long : 6;
  10855. unsigned long MMCBUSBSY : 1;
  10856. #else
  10857. unsigned long MMCBUSBSY : 1;
  10858. unsigned long : 6;
  10859. unsigned long CLKEN : 1;
  10860. unsigned long : 4;
  10861. unsigned long CLKDIV : 4;
  10862. unsigned long : 2;
  10863. unsigned long SRSPTO : 2;
  10864. unsigned long SRBSYTO : 4;
  10865. unsigned long SRWDTO : 4;
  10866. unsigned long : 4;
  10867. #endif
  10868. } BIT;
  10869. } CECLKCTRL;
  10870. union {
  10871. unsigned long LONG;
  10872. struct {
  10873. #ifdef __RX_LITTLE_ENDIAN__
  10874. unsigned long : 16;
  10875. unsigned long ATYP : 1;
  10876. unsigned long : 7;
  10877. unsigned long DMAREN : 1;
  10878. unsigned long DMAWEN : 1;
  10879. unsigned long DMATYP : 1;
  10880. unsigned long : 5;
  10881. #else
  10882. unsigned long : 5;
  10883. unsigned long DMATYP : 1;
  10884. unsigned long DMAWEN : 1;
  10885. unsigned long DMAREN : 1;
  10886. unsigned long : 7;
  10887. unsigned long ATYP : 1;
  10888. unsigned long : 16;
  10889. #endif
  10890. } BIT;
  10891. } CEBUFACC;
  10892. unsigned long CERESP3;
  10893. unsigned long CERESP2;
  10894. unsigned long CERESP1;
  10895. unsigned long CERESP0;
  10896. union {
  10897. unsigned long LONG;
  10898. struct {
  10899. #ifdef __RX_LITTLE_ENDIAN__
  10900. unsigned long RSP12 : 32;
  10901. #else
  10902. unsigned long RSP12 : 32;
  10903. #endif
  10904. } BIT;
  10905. } CERESPCMD12;
  10906. union {
  10907. unsigned long LONG;
  10908. #ifdef IODEFINE_H_HISTORY
  10909. struct {
  10910. unsigned long DATA:32;
  10911. } BIT;
  10912. #endif
  10913. } CEDATA;
  10914. char wk1[4];
  10915. union {
  10916. unsigned long LONG;
  10917. struct {
  10918. #ifdef __RX_LITTLE_ENDIAN__
  10919. unsigned long : 16;
  10920. unsigned long SBTDATTO : 4;
  10921. unsigned long SFSTBTDATTO : 4;
  10922. unsigned long SBTACKTO : 4;
  10923. unsigned long SBTCLKDIV : 4;
  10924. #else
  10925. unsigned long SBTCLKDIV : 4;
  10926. unsigned long SBTACKTO : 4;
  10927. unsigned long SFSTBTDATTO : 4;
  10928. unsigned long SBTDATTO : 4;
  10929. unsigned long : 16;
  10930. #endif
  10931. } BIT;
  10932. } CEBOOT;
  10933. union {
  10934. unsigned long LONG;
  10935. #ifdef IODEFINE_H_HISTORY
  10936. struct {
  10937. unsigned long :5;
  10938. unsigned long CMD12DRE:1;
  10939. unsigned long CMD12RBE:1;
  10940. unsigned long CMD12CRE:1;
  10941. unsigned long DTRANE:1;
  10942. unsigned long BUFRE:1;
  10943. unsigned long BUFWEN:1;
  10944. unsigned long BUFREN:1;
  10945. unsigned long :2;
  10946. unsigned long RBSYE:1;
  10947. unsigned long CRSPE:1;
  10948. unsigned long CMDVIO:1;
  10949. unsigned long BUFVIO:1;
  10950. unsigned long :2;
  10951. unsigned long WDATERR:1;
  10952. unsigned long RDATERR:1;
  10953. unsigned long RIDXERR:1;
  10954. unsigned long RSPERR:1;
  10955. unsigned long :3;
  10956. unsigned long CRCSTO:1;
  10957. unsigned long WDATTO:1;
  10958. unsigned long RDATTO:1;
  10959. unsigned long RBSYTO:1;
  10960. unsigned long RSPTO:1;
  10961. } BIT;
  10962. #endif
  10963. } CEINT;
  10964. union {
  10965. unsigned long LONG;
  10966. struct {
  10967. #ifdef __RX_LITTLE_ENDIAN__
  10968. unsigned long MRSPTO : 1;
  10969. unsigned long MRBSYTO : 1;
  10970. unsigned long MRDATTO : 1;
  10971. unsigned long MWDATTO : 1;
  10972. unsigned long MCRCSTO : 1;
  10973. unsigned long : 3;
  10974. unsigned long MRSPERR : 1;
  10975. unsigned long MRIDXERR : 1;
  10976. unsigned long MRDATERR : 1;
  10977. unsigned long MWDATERR : 1;
  10978. unsigned long : 2;
  10979. unsigned long MBUFVIO : 1;
  10980. unsigned long MCMDVIO : 1;
  10981. unsigned long MCRSPE : 1;
  10982. unsigned long MRBSYE : 1;
  10983. unsigned long : 2;
  10984. unsigned long MBUFREN : 1;
  10985. unsigned long MBUFWEN : 1;
  10986. unsigned long MBUFRE : 1;
  10987. unsigned long MDTRANE : 1;
  10988. unsigned long MCMD12CRE : 1;
  10989. unsigned long MCMD12RBE : 1;
  10990. unsigned long MCMD12DRE : 1;
  10991. unsigned long : 5;
  10992. #else
  10993. unsigned long : 5;
  10994. unsigned long MCMD12DRE : 1;
  10995. unsigned long MCMD12RBE : 1;
  10996. unsigned long MCMD12CRE : 1;
  10997. unsigned long MDTRANE : 1;
  10998. unsigned long MBUFRE : 1;
  10999. unsigned long MBUFWEN : 1;
  11000. unsigned long MBUFREN : 1;
  11001. unsigned long : 2;
  11002. unsigned long MRBSYE : 1;
  11003. unsigned long MCRSPE : 1;
  11004. unsigned long MCMDVIO : 1;
  11005. unsigned long MBUFVIO : 1;
  11006. unsigned long : 2;
  11007. unsigned long MWDATERR : 1;
  11008. unsigned long MRDATERR : 1;
  11009. unsigned long MRIDXERR : 1;
  11010. unsigned long MRSPERR : 1;
  11011. unsigned long : 3;
  11012. unsigned long MCRCSTO : 1;
  11013. unsigned long MWDATTO : 1;
  11014. unsigned long MRDATTO : 1;
  11015. unsigned long MRBSYTO : 1;
  11016. unsigned long MRSPTO : 1;
  11017. #endif
  11018. } BIT;
  11019. } CEINTEN;
  11020. union {
  11021. unsigned long LONG;
  11022. struct {
  11023. #ifdef __RX_LITTLE_ENDIAN__
  11024. unsigned long RCVBLK : 16;
  11025. unsigned long DATSIG : 8;
  11026. unsigned long RSPIDX : 6;
  11027. unsigned long CMDSIG : 1;
  11028. unsigned long CMDSEQ : 1;
  11029. #else
  11030. unsigned long CMDSEQ : 1;
  11031. unsigned long CMDSIG : 1;
  11032. unsigned long RSPIDX : 6;
  11033. unsigned long DATSIG : 8;
  11034. unsigned long RCVBLK : 16;
  11035. #endif
  11036. } BIT;
  11037. } CEHOSTSTS1;
  11038. union {
  11039. unsigned long LONG;
  11040. struct {
  11041. #ifdef __RX_LITTLE_ENDIAN__
  11042. unsigned long : 5;
  11043. unsigned long BTDATTO : 1;
  11044. unsigned long FSTBTDATTO : 1;
  11045. unsigned long BTACKTO : 1;
  11046. unsigned long STRSPTO : 1;
  11047. unsigned long AC12RSPTO : 1;
  11048. unsigned long RSPBSYTO : 1;
  11049. unsigned long AC12BSYTO : 1;
  11050. unsigned long CRCSTTO : 1;
  11051. unsigned long DATBSYTO : 1;
  11052. unsigned long STRDATTO : 1;
  11053. unsigned long : 1;
  11054. unsigned long CRCST : 3;
  11055. unsigned long : 1;
  11056. unsigned long BTACKEBE : 1;
  11057. unsigned long BTACKPATE : 1;
  11058. unsigned long RSPIDXE : 1;
  11059. unsigned long AC12IDXE : 1;
  11060. unsigned long RSPEBE : 1;
  11061. unsigned long AC12REBE : 1;
  11062. unsigned long RDATEBE : 1;
  11063. unsigned long CRCSTEBE : 1;
  11064. unsigned long RSPCRC7E : 1;
  11065. unsigned long AC12CRCE : 1;
  11066. unsigned long CRC16E : 1;
  11067. unsigned long CRCSTE : 1;
  11068. #else
  11069. unsigned long CRCSTE : 1;
  11070. unsigned long CRC16E : 1;
  11071. unsigned long AC12CRCE : 1;
  11072. unsigned long RSPCRC7E : 1;
  11073. unsigned long CRCSTEBE : 1;
  11074. unsigned long RDATEBE : 1;
  11075. unsigned long AC12REBE : 1;
  11076. unsigned long RSPEBE : 1;
  11077. unsigned long AC12IDXE : 1;
  11078. unsigned long RSPIDXE : 1;
  11079. unsigned long BTACKPATE : 1;
  11080. unsigned long BTACKEBE : 1;
  11081. unsigned long : 1;
  11082. unsigned long CRCST : 3;
  11083. unsigned long : 1;
  11084. unsigned long STRDATTO : 1;
  11085. unsigned long DATBSYTO : 1;
  11086. unsigned long CRCSTTO : 1;
  11087. unsigned long AC12BSYTO : 1;
  11088. unsigned long RSPBSYTO : 1;
  11089. unsigned long AC12RSPTO : 1;
  11090. unsigned long STRSPTO : 1;
  11091. unsigned long BTACKTO : 1;
  11092. unsigned long FSTBTDATTO : 1;
  11093. unsigned long BTDATTO : 1;
  11094. unsigned long : 5;
  11095. #endif
  11096. } BIT;
  11097. } CEHOSTSTS2;
  11098. char wk2[32];
  11099. union {
  11100. unsigned long LONG;
  11101. #ifdef IODEFINE_H_HISTORY
  11102. struct {
  11103. #ifdef __RX_LITTLE_ENDIAN__
  11104. unsigned long : 4;
  11105. unsigned long MCDFALL : 1;
  11106. unsigned long MCDRISE : 1;
  11107. unsigned long : 6;
  11108. unsigned long CDFALL : 1;
  11109. unsigned long CDRISE : 1;
  11110. unsigned long CDSIG : 1;
  11111. unsigned long : 17;
  11112. #else
  11113. unsigned long : 17;
  11114. unsigned long CDSIG : 1;
  11115. unsigned long CDRISE : 1;
  11116. unsigned long CDFALL : 1;
  11117. unsigned long : 6;
  11118. unsigned long MCDRISE : 1;
  11119. unsigned long MCDFALL : 1;
  11120. unsigned long : 4;
  11121. #endif
  11122. } BIT;
  11123. #endif
  11124. } CEDETECT;
  11125. union {
  11126. unsigned long LONG;
  11127. struct {
  11128. #ifdef __RX_LITTLE_ENDIAN__
  11129. unsigned long : 19;
  11130. unsigned long CLKMAIN : 1;
  11131. unsigned long : 1;
  11132. unsigned long RESNOUT : 1;
  11133. unsigned long : 10;
  11134. #else
  11135. unsigned long : 10;
  11136. unsigned long RESNOUT : 1;
  11137. unsigned long : 1;
  11138. unsigned long CLKMAIN : 1;
  11139. unsigned long : 19;
  11140. #endif
  11141. } BIT;
  11142. } CEADDMODE;
  11143. char wk3[4];
  11144. union {
  11145. unsigned long LONG;
  11146. struct {
  11147. #ifdef __RX_LITTLE_ENDIAN__
  11148. unsigned long VERSION : 16;
  11149. unsigned long : 15;
  11150. unsigned long SWRST : 1;
  11151. #else
  11152. unsigned long SWRST : 1;
  11153. unsigned long : 15;
  11154. unsigned long VERSION : 16;
  11155. #endif
  11156. } BIT;
  11157. } CEVERSION;
  11158. } st_mmcif_t;
  11159. typedef struct st_mpc {
  11160. union {
  11161. unsigned char BYTE;
  11162. struct {
  11163. #ifdef __RX_LITTLE_ENDIAN__
  11164. unsigned char CS0E : 1;
  11165. unsigned char CS1E : 1;
  11166. unsigned char CS2E : 1;
  11167. unsigned char CS3E : 1;
  11168. unsigned char CS4E : 1;
  11169. unsigned char CS5E : 1;
  11170. unsigned char CS6E : 1;
  11171. unsigned char CS7E : 1;
  11172. #else
  11173. unsigned char CS7E : 1;
  11174. unsigned char CS6E : 1;
  11175. unsigned char CS5E : 1;
  11176. unsigned char CS4E : 1;
  11177. unsigned char CS3E : 1;
  11178. unsigned char CS2E : 1;
  11179. unsigned char CS1E : 1;
  11180. unsigned char CS0E : 1;
  11181. #endif
  11182. } BIT;
  11183. } PFCSE;
  11184. char wk0[1];
  11185. union {
  11186. unsigned char BYTE;
  11187. struct {
  11188. #ifdef __RX_LITTLE_ENDIAN__
  11189. unsigned char CS0S : 1;
  11190. unsigned char : 1;
  11191. unsigned char CS1S : 2;
  11192. unsigned char CS2S : 2;
  11193. unsigned char CS3S : 2;
  11194. #else
  11195. unsigned char CS3S : 2;
  11196. unsigned char CS2S : 2;
  11197. unsigned char CS1S : 2;
  11198. unsigned char : 1;
  11199. unsigned char CS0S : 1;
  11200. #endif
  11201. } BIT;
  11202. } PFCSS0;
  11203. union {
  11204. unsigned char BYTE;
  11205. struct {
  11206. #ifdef __RX_LITTLE_ENDIAN__
  11207. unsigned char CS4S : 2;
  11208. unsigned char CS5S : 2;
  11209. unsigned char CS6S : 2;
  11210. unsigned char CS7S : 2;
  11211. #else
  11212. unsigned char CS7S : 2;
  11213. unsigned char CS6S : 2;
  11214. unsigned char CS5S : 2;
  11215. unsigned char CS4S : 2;
  11216. #endif
  11217. } BIT;
  11218. } PFCSS1;
  11219. union {
  11220. unsigned char BYTE;
  11221. struct {
  11222. #ifdef __RX_LITTLE_ENDIAN__
  11223. unsigned char A8E : 1;
  11224. unsigned char A9E : 1;
  11225. unsigned char A10E : 1;
  11226. unsigned char A11E : 1;
  11227. unsigned char A12E : 1;
  11228. unsigned char A13E : 1;
  11229. unsigned char A14E : 1;
  11230. unsigned char A15E : 1;
  11231. #else
  11232. unsigned char A15E : 1;
  11233. unsigned char A14E : 1;
  11234. unsigned char A13E : 1;
  11235. unsigned char A12E : 1;
  11236. unsigned char A11E : 1;
  11237. unsigned char A10E : 1;
  11238. unsigned char A9E : 1;
  11239. unsigned char A8E : 1;
  11240. #endif
  11241. } BIT;
  11242. } PFAOE0;
  11243. union {
  11244. unsigned char BYTE;
  11245. struct {
  11246. #ifdef __RX_LITTLE_ENDIAN__
  11247. unsigned char A16E : 1;
  11248. unsigned char A17E : 1;
  11249. unsigned char A18E : 1;
  11250. unsigned char A19E : 1;
  11251. unsigned char A20E : 1;
  11252. unsigned char A21E : 1;
  11253. unsigned char A22E : 1;
  11254. unsigned char A23E : 1;
  11255. #else
  11256. unsigned char A23E : 1;
  11257. unsigned char A22E : 1;
  11258. unsigned char A21E : 1;
  11259. unsigned char A20E : 1;
  11260. unsigned char A19E : 1;
  11261. unsigned char A18E : 1;
  11262. unsigned char A17E : 1;
  11263. unsigned char A16E : 1;
  11264. #endif
  11265. } BIT;
  11266. } PFAOE1;
  11267. union {
  11268. unsigned char BYTE;
  11269. struct {
  11270. #ifdef __RX_LITTLE_ENDIAN__
  11271. unsigned char ADRLE : 1;
  11272. unsigned char ADRHMS : 1;
  11273. unsigned char ADRHMS2 : 1;
  11274. unsigned char BCLKO : 1;
  11275. unsigned char DHE : 1;
  11276. unsigned char DH32E : 1;
  11277. unsigned char WR1BC1E : 1;
  11278. unsigned char WR32BC32E : 1;
  11279. #else
  11280. unsigned char WR32BC32E : 1;
  11281. unsigned char WR1BC1E : 1;
  11282. unsigned char DH32E : 1;
  11283. unsigned char DHE : 1;
  11284. unsigned char BCLKO : 1;
  11285. unsigned char ADRHMS2 : 1;
  11286. unsigned char ADRHMS : 1;
  11287. unsigned char ADRLE : 1;
  11288. #endif
  11289. } BIT;
  11290. } PFBCR0;
  11291. union {
  11292. unsigned char BYTE;
  11293. struct {
  11294. #ifdef __RX_LITTLE_ENDIAN__
  11295. unsigned char WAITS : 2;
  11296. unsigned char ALEOE : 1;
  11297. unsigned char ALES : 1;
  11298. unsigned char MDSDE : 1;
  11299. unsigned char : 1;
  11300. unsigned char DQM1E : 1;
  11301. unsigned char SDCLKE : 1;
  11302. #else
  11303. unsigned char SDCLKE : 1;
  11304. unsigned char DQM1E : 1;
  11305. unsigned char : 1;
  11306. unsigned char MDSDE : 1;
  11307. unsigned char ALES : 1;
  11308. unsigned char ALEOE : 1;
  11309. unsigned char WAITS : 2;
  11310. #endif
  11311. } BIT;
  11312. } PFBCR1;
  11313. union {
  11314. unsigned char BYTE;
  11315. struct {
  11316. #ifdef __RX_LITTLE_ENDIAN__
  11317. unsigned char D0S : 2;
  11318. unsigned char D1S : 2;
  11319. unsigned char D2S : 2;
  11320. unsigned char D3S : 2;
  11321. #else
  11322. unsigned char D3S : 2;
  11323. unsigned char D2S : 2;
  11324. unsigned char D1S : 2;
  11325. unsigned char D0S : 2;
  11326. #endif
  11327. } BIT;
  11328. } PFBCR2;
  11329. union {
  11330. unsigned char BYTE;
  11331. struct {
  11332. #ifdef __RX_LITTLE_ENDIAN__
  11333. unsigned char DLHS : 1;
  11334. unsigned char : 7;
  11335. #else
  11336. unsigned char : 7;
  11337. unsigned char DLHS : 1;
  11338. #endif
  11339. } BIT;
  11340. } PFBCR3;
  11341. char wk1[4];
  11342. union {
  11343. unsigned char BYTE;
  11344. struct {
  11345. #ifdef __RX_LITTLE_ENDIAN__
  11346. unsigned char : 4;
  11347. unsigned char PHYMODE0 : 1;
  11348. unsigned char : 3;
  11349. #else
  11350. unsigned char : 3;
  11351. unsigned char PHYMODE0 : 1;
  11352. unsigned char : 4;
  11353. #endif
  11354. } BIT;
  11355. } PFENET;
  11356. char wk2[16];
  11357. union {
  11358. unsigned char BYTE;
  11359. struct {
  11360. #ifdef __RX_LITTLE_ENDIAN__
  11361. unsigned char : 6;
  11362. unsigned char PFSWE : 1;
  11363. unsigned char B0WI : 1;
  11364. #else
  11365. unsigned char B0WI : 1;
  11366. unsigned char PFSWE : 1;
  11367. unsigned char : 6;
  11368. #endif
  11369. } BIT;
  11370. } PWPR;
  11371. char wk3[32];
  11372. union {
  11373. unsigned char BYTE;
  11374. struct {
  11375. #ifdef __RX_LITTLE_ENDIAN__
  11376. unsigned char PSEL : 6;
  11377. unsigned char ISEL : 1;
  11378. unsigned char ASEL : 1;
  11379. #else
  11380. unsigned char ASEL : 1;
  11381. unsigned char ISEL : 1;
  11382. unsigned char PSEL : 6;
  11383. #endif
  11384. } BIT;
  11385. } P00PFS;
  11386. union {
  11387. unsigned char BYTE;
  11388. struct {
  11389. #ifdef __RX_LITTLE_ENDIAN__
  11390. unsigned char PSEL : 6;
  11391. unsigned char ISEL : 1;
  11392. unsigned char ASEL : 1;
  11393. #else
  11394. unsigned char ASEL : 1;
  11395. unsigned char ISEL : 1;
  11396. unsigned char PSEL : 6;
  11397. #endif
  11398. } BIT;
  11399. } P01PFS;
  11400. union {
  11401. unsigned char BYTE;
  11402. struct {
  11403. #ifdef __RX_LITTLE_ENDIAN__
  11404. unsigned char PSEL : 6;
  11405. unsigned char ISEL : 1;
  11406. unsigned char ASEL : 1;
  11407. #else
  11408. unsigned char ASEL : 1;
  11409. unsigned char ISEL : 1;
  11410. unsigned char PSEL : 6;
  11411. #endif
  11412. } BIT;
  11413. } P02PFS;
  11414. union {
  11415. unsigned char BYTE;
  11416. struct {
  11417. #ifdef __RX_LITTLE_ENDIAN__
  11418. unsigned char : 6;
  11419. unsigned char ISEL : 1;
  11420. unsigned char ASEL : 1;
  11421. #else
  11422. unsigned char ASEL : 1;
  11423. unsigned char ISEL : 1;
  11424. unsigned char : 6;
  11425. #endif
  11426. } BIT;
  11427. } P03PFS;
  11428. char wk4[1];
  11429. union {
  11430. unsigned char BYTE;
  11431. struct {
  11432. #ifdef __RX_LITTLE_ENDIAN__
  11433. unsigned char : 6;
  11434. unsigned char ISEL : 1;
  11435. unsigned char ASEL : 1;
  11436. #else
  11437. unsigned char ASEL : 1;
  11438. unsigned char ISEL : 1;
  11439. unsigned char : 6;
  11440. #endif
  11441. } BIT;
  11442. } P05PFS;
  11443. char wk5[1];
  11444. union {
  11445. unsigned char BYTE;
  11446. struct {
  11447. #ifdef __RX_LITTLE_ENDIAN__
  11448. unsigned char PSEL : 6;
  11449. unsigned char ISEL : 1;
  11450. unsigned char : 1;
  11451. #else
  11452. unsigned char : 1;
  11453. unsigned char ISEL : 1;
  11454. unsigned char PSEL : 6;
  11455. #endif
  11456. } BIT;
  11457. } P07PFS;
  11458. union {
  11459. unsigned char BYTE;
  11460. struct {
  11461. #ifdef __RX_LITTLE_ENDIAN__
  11462. unsigned char PSEL : 6;
  11463. unsigned char ISEL : 1;
  11464. unsigned char : 1;
  11465. #else
  11466. unsigned char : 1;
  11467. unsigned char ISEL : 1;
  11468. unsigned char PSEL : 6;
  11469. #endif
  11470. } BIT;
  11471. } P10PFS;
  11472. union {
  11473. unsigned char BYTE;
  11474. struct {
  11475. #ifdef __RX_LITTLE_ENDIAN__
  11476. unsigned char PSEL : 6;
  11477. unsigned char ISEL : 1;
  11478. unsigned char : 1;
  11479. #else
  11480. unsigned char : 1;
  11481. unsigned char ISEL : 1;
  11482. unsigned char PSEL : 6;
  11483. #endif
  11484. } BIT;
  11485. } P11PFS;
  11486. union {
  11487. unsigned char BYTE;
  11488. struct {
  11489. #ifdef __RX_LITTLE_ENDIAN__
  11490. unsigned char PSEL : 6;
  11491. unsigned char ISEL : 1;
  11492. unsigned char : 1;
  11493. #else
  11494. unsigned char : 1;
  11495. unsigned char ISEL : 1;
  11496. unsigned char PSEL : 6;
  11497. #endif
  11498. } BIT;
  11499. } P12PFS;
  11500. union {
  11501. unsigned char BYTE;
  11502. struct {
  11503. #ifdef __RX_LITTLE_ENDIAN__
  11504. unsigned char PSEL : 6;
  11505. unsigned char ISEL : 1;
  11506. unsigned char : 1;
  11507. #else
  11508. unsigned char : 1;
  11509. unsigned char ISEL : 1;
  11510. unsigned char PSEL : 6;
  11511. #endif
  11512. } BIT;
  11513. } P13PFS;
  11514. union {
  11515. unsigned char BYTE;
  11516. struct {
  11517. #ifdef __RX_LITTLE_ENDIAN__
  11518. unsigned char PSEL : 6;
  11519. unsigned char ISEL : 1;
  11520. unsigned char : 1;
  11521. #else
  11522. unsigned char : 1;
  11523. unsigned char ISEL : 1;
  11524. unsigned char PSEL : 6;
  11525. #endif
  11526. } BIT;
  11527. } P14PFS;
  11528. union {
  11529. unsigned char BYTE;
  11530. struct {
  11531. #ifdef __RX_LITTLE_ENDIAN__
  11532. unsigned char PSEL : 6;
  11533. unsigned char ISEL : 1;
  11534. unsigned char : 1;
  11535. #else
  11536. unsigned char : 1;
  11537. unsigned char ISEL : 1;
  11538. unsigned char PSEL : 6;
  11539. #endif
  11540. } BIT;
  11541. } P15PFS;
  11542. union {
  11543. unsigned char BYTE;
  11544. struct {
  11545. #ifdef __RX_LITTLE_ENDIAN__
  11546. unsigned char PSEL : 6;
  11547. unsigned char ISEL : 1;
  11548. unsigned char : 1;
  11549. #else
  11550. unsigned char : 1;
  11551. unsigned char ISEL : 1;
  11552. unsigned char PSEL : 6;
  11553. #endif
  11554. } BIT;
  11555. } P16PFS;
  11556. union {
  11557. unsigned char BYTE;
  11558. struct {
  11559. #ifdef __RX_LITTLE_ENDIAN__
  11560. unsigned char PSEL : 6;
  11561. unsigned char ISEL : 1;
  11562. unsigned char : 1;
  11563. #else
  11564. unsigned char : 1;
  11565. unsigned char ISEL : 1;
  11566. unsigned char PSEL : 6;
  11567. #endif
  11568. } BIT;
  11569. } P17PFS;
  11570. union {
  11571. unsigned char BYTE;
  11572. struct {
  11573. #ifdef __RX_LITTLE_ENDIAN__
  11574. unsigned char PSEL : 6;
  11575. unsigned char ISEL : 1;
  11576. unsigned char : 1;
  11577. #else
  11578. unsigned char : 1;
  11579. unsigned char ISEL : 1;
  11580. unsigned char PSEL : 6;
  11581. #endif
  11582. } BIT;
  11583. } P20PFS;
  11584. union {
  11585. unsigned char BYTE;
  11586. struct {
  11587. #ifdef __RX_LITTLE_ENDIAN__
  11588. unsigned char PSEL : 6;
  11589. unsigned char ISEL : 1;
  11590. unsigned char : 1;
  11591. #else
  11592. unsigned char : 1;
  11593. unsigned char ISEL : 1;
  11594. unsigned char PSEL : 6;
  11595. #endif
  11596. } BIT;
  11597. } P21PFS;
  11598. union {
  11599. unsigned char BYTE;
  11600. struct {
  11601. #ifdef __RX_LITTLE_ENDIAN__
  11602. unsigned char PSEL : 6;
  11603. unsigned char : 2;
  11604. #else
  11605. unsigned char : 2;
  11606. unsigned char PSEL : 6;
  11607. #endif
  11608. } BIT;
  11609. } P22PFS;
  11610. union {
  11611. unsigned char BYTE;
  11612. struct {
  11613. #ifdef __RX_LITTLE_ENDIAN__
  11614. unsigned char PSEL : 6;
  11615. unsigned char : 2;
  11616. #else
  11617. unsigned char : 2;
  11618. unsigned char PSEL : 6;
  11619. #endif
  11620. } BIT;
  11621. } P23PFS;
  11622. union {
  11623. unsigned char BYTE;
  11624. struct {
  11625. #ifdef __RX_LITTLE_ENDIAN__
  11626. unsigned char PSEL : 6;
  11627. unsigned char : 2;
  11628. #else
  11629. unsigned char : 2;
  11630. unsigned char PSEL : 6;
  11631. #endif
  11632. } BIT;
  11633. } P24PFS;
  11634. union {
  11635. unsigned char BYTE;
  11636. struct {
  11637. #ifdef __RX_LITTLE_ENDIAN__
  11638. unsigned char PSEL : 6;
  11639. unsigned char : 2;
  11640. #else
  11641. unsigned char : 2;
  11642. unsigned char PSEL : 6;
  11643. #endif
  11644. } BIT;
  11645. } P25PFS;
  11646. union {
  11647. unsigned char BYTE;
  11648. struct {
  11649. #ifdef __RX_LITTLE_ENDIAN__
  11650. unsigned char PSEL : 6;
  11651. unsigned char : 2;
  11652. #else
  11653. unsigned char : 2;
  11654. unsigned char PSEL : 6;
  11655. #endif
  11656. } BIT;
  11657. } P26PFS;
  11658. union {
  11659. unsigned char BYTE;
  11660. struct {
  11661. #ifdef __RX_LITTLE_ENDIAN__
  11662. unsigned char PSEL : 6;
  11663. unsigned char : 2;
  11664. #else
  11665. unsigned char : 2;
  11666. unsigned char PSEL : 6;
  11667. #endif
  11668. } BIT;
  11669. } P27PFS;
  11670. union {
  11671. unsigned char BYTE;
  11672. struct {
  11673. #ifdef __RX_LITTLE_ENDIAN__
  11674. unsigned char PSEL : 6;
  11675. unsigned char ISEL : 1;
  11676. unsigned char : 1;
  11677. #else
  11678. unsigned char : 1;
  11679. unsigned char ISEL : 1;
  11680. unsigned char PSEL : 6;
  11681. #endif
  11682. } BIT;
  11683. } P30PFS;
  11684. union {
  11685. unsigned char BYTE;
  11686. struct {
  11687. #ifdef __RX_LITTLE_ENDIAN__
  11688. unsigned char PSEL : 6;
  11689. unsigned char ISEL : 1;
  11690. unsigned char : 1;
  11691. #else
  11692. unsigned char : 1;
  11693. unsigned char ISEL : 1;
  11694. unsigned char PSEL : 6;
  11695. #endif
  11696. } BIT;
  11697. } P31PFS;
  11698. union {
  11699. unsigned char BYTE;
  11700. struct {
  11701. #ifdef __RX_LITTLE_ENDIAN__
  11702. unsigned char PSEL : 6;
  11703. unsigned char ISEL : 1;
  11704. unsigned char : 1;
  11705. #else
  11706. unsigned char : 1;
  11707. unsigned char ISEL : 1;
  11708. unsigned char PSEL : 6;
  11709. #endif
  11710. } BIT;
  11711. } P32PFS;
  11712. union {
  11713. unsigned char BYTE;
  11714. struct {
  11715. #ifdef __RX_LITTLE_ENDIAN__
  11716. unsigned char PSEL : 6;
  11717. unsigned char ISEL : 1;
  11718. unsigned char : 1;
  11719. #else
  11720. unsigned char : 1;
  11721. unsigned char ISEL : 1;
  11722. unsigned char PSEL : 6;
  11723. #endif
  11724. } BIT;
  11725. } P33PFS;
  11726. union {
  11727. unsigned char BYTE;
  11728. struct {
  11729. #ifdef __RX_LITTLE_ENDIAN__
  11730. unsigned char PSEL : 6;
  11731. unsigned char ISEL : 1;
  11732. unsigned char : 1;
  11733. #else
  11734. unsigned char : 1;
  11735. unsigned char ISEL : 1;
  11736. unsigned char PSEL : 6;
  11737. #endif
  11738. } BIT;
  11739. } P34PFS;
  11740. char wk6[3];
  11741. union {
  11742. unsigned char BYTE;
  11743. struct {
  11744. #ifdef __RX_LITTLE_ENDIAN__
  11745. unsigned char : 6;
  11746. unsigned char ISEL : 1;
  11747. unsigned char ASEL : 1;
  11748. #else
  11749. unsigned char ASEL : 1;
  11750. unsigned char ISEL : 1;
  11751. unsigned char : 6;
  11752. #endif
  11753. } BIT;
  11754. } P40PFS;
  11755. union {
  11756. unsigned char BYTE;
  11757. struct {
  11758. #ifdef __RX_LITTLE_ENDIAN__
  11759. unsigned char : 6;
  11760. unsigned char ISEL : 1;
  11761. unsigned char ASEL : 1;
  11762. #else
  11763. unsigned char ASEL : 1;
  11764. unsigned char ISEL : 1;
  11765. unsigned char : 6;
  11766. #endif
  11767. } BIT;
  11768. } P41PFS;
  11769. union {
  11770. unsigned char BYTE;
  11771. struct {
  11772. #ifdef __RX_LITTLE_ENDIAN__
  11773. unsigned char : 6;
  11774. unsigned char ISEL : 1;
  11775. unsigned char ASEL : 1;
  11776. #else
  11777. unsigned char ASEL : 1;
  11778. unsigned char ISEL : 1;
  11779. unsigned char : 6;
  11780. #endif
  11781. } BIT;
  11782. } P42PFS;
  11783. union {
  11784. unsigned char BYTE;
  11785. struct {
  11786. #ifdef __RX_LITTLE_ENDIAN__
  11787. unsigned char : 6;
  11788. unsigned char ISEL : 1;
  11789. unsigned char ASEL : 1;
  11790. #else
  11791. unsigned char ASEL : 1;
  11792. unsigned char ISEL : 1;
  11793. unsigned char : 6;
  11794. #endif
  11795. } BIT;
  11796. } P43PFS;
  11797. union {
  11798. unsigned char BYTE;
  11799. struct {
  11800. #ifdef __RX_LITTLE_ENDIAN__
  11801. unsigned char : 6;
  11802. unsigned char ISEL : 1;
  11803. unsigned char ASEL : 1;
  11804. #else
  11805. unsigned char ASEL : 1;
  11806. unsigned char ISEL : 1;
  11807. unsigned char : 6;
  11808. #endif
  11809. } BIT;
  11810. } P44PFS;
  11811. union {
  11812. unsigned char BYTE;
  11813. struct {
  11814. #ifdef __RX_LITTLE_ENDIAN__
  11815. unsigned char : 6;
  11816. unsigned char ISEL : 1;
  11817. unsigned char ASEL : 1;
  11818. #else
  11819. unsigned char ASEL : 1;
  11820. unsigned char ISEL : 1;
  11821. unsigned char : 6;
  11822. #endif
  11823. } BIT;
  11824. } P45PFS;
  11825. union {
  11826. unsigned char BYTE;
  11827. struct {
  11828. #ifdef __RX_LITTLE_ENDIAN__
  11829. unsigned char : 6;
  11830. unsigned char ISEL : 1;
  11831. unsigned char ASEL : 1;
  11832. #else
  11833. unsigned char ASEL : 1;
  11834. unsigned char ISEL : 1;
  11835. unsigned char : 6;
  11836. #endif
  11837. } BIT;
  11838. } P46PFS;
  11839. union {
  11840. unsigned char BYTE;
  11841. struct {
  11842. #ifdef __RX_LITTLE_ENDIAN__
  11843. unsigned char : 6;
  11844. unsigned char ISEL : 1;
  11845. unsigned char ASEL : 1;
  11846. #else
  11847. unsigned char ASEL : 1;
  11848. unsigned char ISEL : 1;
  11849. unsigned char : 6;
  11850. #endif
  11851. } BIT;
  11852. } P47PFS;
  11853. union {
  11854. unsigned char BYTE;
  11855. struct {
  11856. #ifdef __RX_LITTLE_ENDIAN__
  11857. unsigned char PSEL : 6;
  11858. unsigned char : 2;
  11859. #else
  11860. unsigned char : 2;
  11861. unsigned char PSEL : 6;
  11862. #endif
  11863. } BIT;
  11864. } P50PFS;
  11865. union {
  11866. unsigned char BYTE;
  11867. struct {
  11868. #ifdef __RX_LITTLE_ENDIAN__
  11869. unsigned char PSEL : 6;
  11870. unsigned char : 2;
  11871. #else
  11872. unsigned char : 2;
  11873. unsigned char PSEL : 6;
  11874. #endif
  11875. } BIT;
  11876. } P51PFS;
  11877. union {
  11878. unsigned char BYTE;
  11879. struct {
  11880. #ifdef __RX_LITTLE_ENDIAN__
  11881. unsigned char PSEL : 6;
  11882. unsigned char : 2;
  11883. #else
  11884. unsigned char : 2;
  11885. unsigned char PSEL : 6;
  11886. #endif
  11887. } BIT;
  11888. } P52PFS;
  11889. char wk7[1];
  11890. union {
  11891. unsigned char BYTE;
  11892. struct {
  11893. #ifdef __RX_LITTLE_ENDIAN__
  11894. unsigned char PSEL : 6;
  11895. unsigned char : 2;
  11896. #else
  11897. unsigned char : 2;
  11898. unsigned char PSEL : 6;
  11899. #endif
  11900. } BIT;
  11901. } P54PFS;
  11902. union {
  11903. unsigned char BYTE;
  11904. struct {
  11905. #ifdef __RX_LITTLE_ENDIAN__
  11906. unsigned char PSEL : 6;
  11907. unsigned char ISEL : 1;
  11908. unsigned char : 1;
  11909. #else
  11910. unsigned char : 1;
  11911. unsigned char ISEL : 1;
  11912. unsigned char PSEL : 6;
  11913. #endif
  11914. } BIT;
  11915. } P55PFS;
  11916. union {
  11917. unsigned char BYTE;
  11918. struct {
  11919. #ifdef __RX_LITTLE_ENDIAN__
  11920. unsigned char PSEL : 6;
  11921. unsigned char : 2;
  11922. #else
  11923. unsigned char : 2;
  11924. unsigned char PSEL : 6;
  11925. #endif
  11926. } BIT;
  11927. } P56PFS;
  11928. union {
  11929. unsigned char BYTE;
  11930. struct {
  11931. #ifdef __RX_LITTLE_ENDIAN__
  11932. unsigned char PSEL : 6;
  11933. unsigned char : 2;
  11934. #else
  11935. unsigned char : 2;
  11936. unsigned char PSEL : 6;
  11937. #endif
  11938. } BIT;
  11939. } P57PFS;
  11940. char wk8[6];
  11941. union {
  11942. unsigned char BYTE;
  11943. struct {
  11944. #ifdef __RX_LITTLE_ENDIAN__
  11945. unsigned char PSEL : 6;
  11946. unsigned char : 2;
  11947. #else
  11948. unsigned char : 2;
  11949. unsigned char PSEL : 6;
  11950. #endif
  11951. } BIT;
  11952. } P66PFS;
  11953. union {
  11954. unsigned char BYTE;
  11955. struct {
  11956. #ifdef __RX_LITTLE_ENDIAN__
  11957. unsigned char PSEL : 6;
  11958. unsigned char ISEL : 1;
  11959. unsigned char : 1;
  11960. #else
  11961. unsigned char : 1;
  11962. unsigned char ISEL : 1;
  11963. unsigned char PSEL : 6;
  11964. #endif
  11965. } BIT;
  11966. } P67PFS;
  11967. char wk9[1];
  11968. union {
  11969. unsigned char BYTE;
  11970. struct {
  11971. #ifdef __RX_LITTLE_ENDIAN__
  11972. unsigned char PSEL : 6;
  11973. unsigned char : 2;
  11974. #else
  11975. unsigned char : 2;
  11976. unsigned char PSEL : 6;
  11977. #endif
  11978. } BIT;
  11979. } P71PFS;
  11980. union {
  11981. unsigned char BYTE;
  11982. struct {
  11983. #ifdef __RX_LITTLE_ENDIAN__
  11984. unsigned char PSEL : 6;
  11985. unsigned char : 2;
  11986. #else
  11987. unsigned char : 2;
  11988. unsigned char PSEL : 6;
  11989. #endif
  11990. } BIT;
  11991. } P72PFS;
  11992. union {
  11993. unsigned char BYTE;
  11994. struct {
  11995. #ifdef __RX_LITTLE_ENDIAN__
  11996. unsigned char PSEL : 6;
  11997. unsigned char : 2;
  11998. #else
  11999. unsigned char : 2;
  12000. unsigned char PSEL : 6;
  12001. #endif
  12002. } BIT;
  12003. } P73PFS;
  12004. union {
  12005. unsigned char BYTE;
  12006. struct {
  12007. #ifdef __RX_LITTLE_ENDIAN__
  12008. unsigned char PSEL : 6;
  12009. unsigned char : 2;
  12010. #else
  12011. unsigned char : 2;
  12012. unsigned char PSEL : 6;
  12013. #endif
  12014. } BIT;
  12015. } P74PFS;
  12016. union {
  12017. unsigned char BYTE;
  12018. struct {
  12019. #ifdef __RX_LITTLE_ENDIAN__
  12020. unsigned char PSEL : 6;
  12021. unsigned char : 2;
  12022. #else
  12023. unsigned char : 2;
  12024. unsigned char PSEL : 6;
  12025. #endif
  12026. } BIT;
  12027. } P75PFS;
  12028. union {
  12029. unsigned char BYTE;
  12030. struct {
  12031. #ifdef __RX_LITTLE_ENDIAN__
  12032. unsigned char PSEL : 6;
  12033. unsigned char : 2;
  12034. #else
  12035. unsigned char : 2;
  12036. unsigned char PSEL : 6;
  12037. #endif
  12038. } BIT;
  12039. } P76PFS;
  12040. union {
  12041. unsigned char BYTE;
  12042. struct {
  12043. #ifdef __RX_LITTLE_ENDIAN__
  12044. unsigned char PSEL : 6;
  12045. unsigned char : 2;
  12046. #else
  12047. unsigned char : 2;
  12048. unsigned char PSEL : 6;
  12049. #endif
  12050. } BIT;
  12051. } P77PFS;
  12052. union {
  12053. unsigned char BYTE;
  12054. struct {
  12055. #ifdef __RX_LITTLE_ENDIAN__
  12056. unsigned char PSEL : 6;
  12057. unsigned char : 2;
  12058. #else
  12059. unsigned char : 2;
  12060. unsigned char PSEL : 6;
  12061. #endif
  12062. } BIT;
  12063. } P80PFS;
  12064. union {
  12065. unsigned char BYTE;
  12066. struct {
  12067. #ifdef __RX_LITTLE_ENDIAN__
  12068. unsigned char PSEL : 6;
  12069. unsigned char : 2;
  12070. #else
  12071. unsigned char : 2;
  12072. unsigned char PSEL : 6;
  12073. #endif
  12074. } BIT;
  12075. } P81PFS;
  12076. union {
  12077. unsigned char BYTE;
  12078. struct {
  12079. #ifdef __RX_LITTLE_ENDIAN__
  12080. unsigned char PSEL : 6;
  12081. unsigned char : 2;
  12082. #else
  12083. unsigned char : 2;
  12084. unsigned char PSEL : 6;
  12085. #endif
  12086. } BIT;
  12087. } P82PFS;
  12088. union {
  12089. unsigned char BYTE;
  12090. struct {
  12091. #ifdef __RX_LITTLE_ENDIAN__
  12092. unsigned char PSEL : 6;
  12093. unsigned char : 2;
  12094. #else
  12095. unsigned char : 2;
  12096. unsigned char PSEL : 6;
  12097. #endif
  12098. } BIT;
  12099. } P83PFS;
  12100. union {
  12101. unsigned char BYTE;
  12102. struct {
  12103. #ifdef __RX_LITTLE_ENDIAN__
  12104. unsigned char PSEL : 6;
  12105. unsigned char : 2;
  12106. #else
  12107. unsigned char : 2;
  12108. unsigned char PSEL : 6;
  12109. #endif
  12110. } BIT;
  12111. } P84PFS;
  12112. union {
  12113. unsigned char BYTE;
  12114. struct {
  12115. #ifdef __RX_LITTLE_ENDIAN__
  12116. unsigned char PSEL : 6;
  12117. unsigned char : 2;
  12118. #else
  12119. unsigned char : 2;
  12120. unsigned char PSEL : 6;
  12121. #endif
  12122. } BIT;
  12123. } P85PFS;
  12124. union {
  12125. unsigned char BYTE;
  12126. struct {
  12127. #ifdef __RX_LITTLE_ENDIAN__
  12128. unsigned char PSEL : 6;
  12129. unsigned char : 2;
  12130. #else
  12131. unsigned char : 2;
  12132. unsigned char PSEL : 6;
  12133. #endif
  12134. } BIT;
  12135. } P86PFS;
  12136. union {
  12137. unsigned char BYTE;
  12138. struct {
  12139. #ifdef __RX_LITTLE_ENDIAN__
  12140. unsigned char PSEL : 6;
  12141. unsigned char : 2;
  12142. #else
  12143. unsigned char : 2;
  12144. unsigned char PSEL : 6;
  12145. #endif
  12146. } BIT;
  12147. } P87PFS;
  12148. union {
  12149. unsigned char BYTE;
  12150. struct {
  12151. #ifdef __RX_LITTLE_ENDIAN__
  12152. unsigned char PSEL : 6;
  12153. unsigned char : 1;
  12154. unsigned char ASEL : 1;
  12155. #else
  12156. unsigned char ASEL : 1;
  12157. unsigned char : 1;
  12158. unsigned char PSEL : 6;
  12159. #endif
  12160. } BIT;
  12161. } P90PFS;
  12162. union {
  12163. unsigned char BYTE;
  12164. struct {
  12165. #ifdef __RX_LITTLE_ENDIAN__
  12166. unsigned char PSEL : 6;
  12167. unsigned char : 1;
  12168. unsigned char ASEL : 1;
  12169. #else
  12170. unsigned char ASEL : 1;
  12171. unsigned char : 1;
  12172. unsigned char PSEL : 6;
  12173. #endif
  12174. } BIT;
  12175. } P91PFS;
  12176. union {
  12177. unsigned char BYTE;
  12178. struct {
  12179. #ifdef __RX_LITTLE_ENDIAN__
  12180. unsigned char PSEL : 6;
  12181. unsigned char : 1;
  12182. unsigned char ASEL : 1;
  12183. #else
  12184. unsigned char ASEL : 1;
  12185. unsigned char : 1;
  12186. unsigned char PSEL : 6;
  12187. #endif
  12188. } BIT;
  12189. } P92PFS;
  12190. union {
  12191. unsigned char BYTE;
  12192. struct {
  12193. #ifdef __RX_LITTLE_ENDIAN__
  12194. unsigned char PSEL : 6;
  12195. unsigned char : 1;
  12196. unsigned char ASEL : 1;
  12197. #else
  12198. unsigned char ASEL : 1;
  12199. unsigned char : 1;
  12200. unsigned char PSEL : 6;
  12201. #endif
  12202. } BIT;
  12203. } P93PFS;
  12204. char wk10[4];
  12205. union {
  12206. unsigned char BYTE;
  12207. struct {
  12208. #ifdef __RX_LITTLE_ENDIAN__
  12209. unsigned char PSEL : 6;
  12210. unsigned char : 2;
  12211. #else
  12212. unsigned char : 2;
  12213. unsigned char PSEL : 6;
  12214. #endif
  12215. } BIT;
  12216. } PA0PFS;
  12217. union {
  12218. unsigned char BYTE;
  12219. struct {
  12220. #ifdef __RX_LITTLE_ENDIAN__
  12221. unsigned char PSEL : 6;
  12222. unsigned char ISEL : 1;
  12223. unsigned char : 1;
  12224. #else
  12225. unsigned char : 1;
  12226. unsigned char ISEL : 1;
  12227. unsigned char PSEL : 6;
  12228. #endif
  12229. } BIT;
  12230. } PA1PFS;
  12231. union {
  12232. unsigned char BYTE;
  12233. struct {
  12234. #ifdef __RX_LITTLE_ENDIAN__
  12235. unsigned char PSEL : 6;
  12236. unsigned char : 2;
  12237. #else
  12238. unsigned char : 2;
  12239. unsigned char PSEL : 6;
  12240. #endif
  12241. } BIT;
  12242. } PA2PFS;
  12243. union {
  12244. unsigned char BYTE;
  12245. struct {
  12246. #ifdef __RX_LITTLE_ENDIAN__
  12247. unsigned char PSEL : 6;
  12248. unsigned char ISEL : 1;
  12249. unsigned char : 1;
  12250. #else
  12251. unsigned char : 1;
  12252. unsigned char ISEL : 1;
  12253. unsigned char PSEL : 6;
  12254. #endif
  12255. } BIT;
  12256. } PA3PFS;
  12257. union {
  12258. unsigned char BYTE;
  12259. struct {
  12260. #ifdef __RX_LITTLE_ENDIAN__
  12261. unsigned char PSEL : 6;
  12262. unsigned char ISEL : 1;
  12263. unsigned char : 1;
  12264. #else
  12265. unsigned char : 1;
  12266. unsigned char ISEL : 1;
  12267. unsigned char PSEL : 6;
  12268. #endif
  12269. } BIT;
  12270. } PA4PFS;
  12271. union {
  12272. unsigned char BYTE;
  12273. struct {
  12274. #ifdef __RX_LITTLE_ENDIAN__
  12275. unsigned char PSEL : 6;
  12276. unsigned char : 2;
  12277. #else
  12278. unsigned char : 2;
  12279. unsigned char PSEL : 6;
  12280. #endif
  12281. } BIT;
  12282. } PA5PFS;
  12283. union {
  12284. unsigned char BYTE;
  12285. struct {
  12286. #ifdef __RX_LITTLE_ENDIAN__
  12287. unsigned char PSEL : 6;
  12288. unsigned char : 2;
  12289. #else
  12290. unsigned char : 2;
  12291. unsigned char PSEL : 6;
  12292. #endif
  12293. } BIT;
  12294. } PA6PFS;
  12295. union {
  12296. unsigned char BYTE;
  12297. struct {
  12298. #ifdef __RX_LITTLE_ENDIAN__
  12299. unsigned char PSEL : 6;
  12300. unsigned char : 2;
  12301. #else
  12302. unsigned char : 2;
  12303. unsigned char PSEL : 6;
  12304. #endif
  12305. } BIT;
  12306. } PA7PFS;
  12307. union {
  12308. unsigned char BYTE;
  12309. struct {
  12310. #ifdef __RX_LITTLE_ENDIAN__
  12311. unsigned char PSEL : 6;
  12312. unsigned char ISEL : 1;
  12313. unsigned char : 1;
  12314. #else
  12315. unsigned char : 1;
  12316. unsigned char ISEL : 1;
  12317. unsigned char PSEL : 6;
  12318. #endif
  12319. } BIT;
  12320. } PB0PFS;
  12321. union {
  12322. unsigned char BYTE;
  12323. struct {
  12324. #ifdef __RX_LITTLE_ENDIAN__
  12325. unsigned char PSEL : 6;
  12326. unsigned char ISEL : 1;
  12327. unsigned char : 1;
  12328. #else
  12329. unsigned char : 1;
  12330. unsigned char ISEL : 1;
  12331. unsigned char PSEL : 6;
  12332. #endif
  12333. } BIT;
  12334. } PB1PFS;
  12335. union {
  12336. unsigned char BYTE;
  12337. struct {
  12338. #ifdef __RX_LITTLE_ENDIAN__
  12339. unsigned char PSEL : 6;
  12340. unsigned char : 2;
  12341. #else
  12342. unsigned char : 2;
  12343. unsigned char PSEL : 6;
  12344. #endif
  12345. } BIT;
  12346. } PB2PFS;
  12347. union {
  12348. unsigned char BYTE;
  12349. struct {
  12350. #ifdef __RX_LITTLE_ENDIAN__
  12351. unsigned char PSEL : 6;
  12352. unsigned char : 2;
  12353. #else
  12354. unsigned char : 2;
  12355. unsigned char PSEL : 6;
  12356. #endif
  12357. } BIT;
  12358. } PB3PFS;
  12359. union {
  12360. unsigned char BYTE;
  12361. struct {
  12362. #ifdef __RX_LITTLE_ENDIAN__
  12363. unsigned char PSEL : 6;
  12364. unsigned char : 2;
  12365. #else
  12366. unsigned char : 2;
  12367. unsigned char PSEL : 6;
  12368. #endif
  12369. } BIT;
  12370. } PB4PFS;
  12371. union {
  12372. unsigned char BYTE;
  12373. struct {
  12374. #ifdef __RX_LITTLE_ENDIAN__
  12375. unsigned char PSEL : 6;
  12376. unsigned char : 2;
  12377. #else
  12378. unsigned char : 2;
  12379. unsigned char PSEL : 6;
  12380. #endif
  12381. } BIT;
  12382. } PB5PFS;
  12383. union {
  12384. unsigned char BYTE;
  12385. struct {
  12386. #ifdef __RX_LITTLE_ENDIAN__
  12387. unsigned char PSEL : 6;
  12388. unsigned char : 2;
  12389. #else
  12390. unsigned char : 2;
  12391. unsigned char PSEL : 6;
  12392. #endif
  12393. } BIT;
  12394. } PB6PFS;
  12395. union {
  12396. unsigned char BYTE;
  12397. struct {
  12398. #ifdef __RX_LITTLE_ENDIAN__
  12399. unsigned char PSEL : 6;
  12400. unsigned char : 2;
  12401. #else
  12402. unsigned char : 2;
  12403. unsigned char PSEL : 6;
  12404. #endif
  12405. } BIT;
  12406. } PB7PFS;
  12407. union {
  12408. unsigned char BYTE;
  12409. struct {
  12410. #ifdef __RX_LITTLE_ENDIAN__
  12411. unsigned char PSEL : 6;
  12412. unsigned char ISEL : 1;
  12413. unsigned char : 1;
  12414. #else
  12415. unsigned char : 1;
  12416. unsigned char ISEL : 1;
  12417. unsigned char PSEL : 6;
  12418. #endif
  12419. } BIT;
  12420. } PC0PFS;
  12421. union {
  12422. unsigned char BYTE;
  12423. struct {
  12424. #ifdef __RX_LITTLE_ENDIAN__
  12425. unsigned char PSEL : 6;
  12426. unsigned char ISEL : 1;
  12427. unsigned char : 1;
  12428. #else
  12429. unsigned char : 1;
  12430. unsigned char ISEL : 1;
  12431. unsigned char PSEL : 6;
  12432. #endif
  12433. } BIT;
  12434. } PC1PFS;
  12435. union {
  12436. unsigned char BYTE;
  12437. struct {
  12438. #ifdef __RX_LITTLE_ENDIAN__
  12439. unsigned char PSEL : 6;
  12440. unsigned char : 2;
  12441. #else
  12442. unsigned char : 2;
  12443. unsigned char PSEL : 6;
  12444. #endif
  12445. } BIT;
  12446. } PC2PFS;
  12447. union {
  12448. unsigned char BYTE;
  12449. struct {
  12450. #ifdef __RX_LITTLE_ENDIAN__
  12451. unsigned char PSEL : 6;
  12452. unsigned char : 2;
  12453. #else
  12454. unsigned char : 2;
  12455. unsigned char PSEL : 6;
  12456. #endif
  12457. } BIT;
  12458. } PC3PFS;
  12459. union {
  12460. unsigned char BYTE;
  12461. struct {
  12462. #ifdef __RX_LITTLE_ENDIAN__
  12463. unsigned char PSEL : 6;
  12464. unsigned char : 2;
  12465. #else
  12466. unsigned char : 2;
  12467. unsigned char PSEL : 6;
  12468. #endif
  12469. } BIT;
  12470. } PC4PFS;
  12471. union {
  12472. unsigned char BYTE;
  12473. struct {
  12474. #ifdef __RX_LITTLE_ENDIAN__
  12475. unsigned char PSEL : 6;
  12476. unsigned char : 2;
  12477. #else
  12478. unsigned char : 2;
  12479. unsigned char PSEL : 6;
  12480. #endif
  12481. } BIT;
  12482. } PC5PFS;
  12483. union {
  12484. unsigned char BYTE;
  12485. struct {
  12486. #ifdef __RX_LITTLE_ENDIAN__
  12487. unsigned char PSEL : 6;
  12488. unsigned char ISEL : 1;
  12489. unsigned char : 1;
  12490. #else
  12491. unsigned char : 1;
  12492. unsigned char ISEL : 1;
  12493. unsigned char PSEL : 6;
  12494. #endif
  12495. } BIT;
  12496. } PC6PFS;
  12497. union {
  12498. unsigned char BYTE;
  12499. struct {
  12500. #ifdef __RX_LITTLE_ENDIAN__
  12501. unsigned char PSEL : 6;
  12502. unsigned char ISEL : 1;
  12503. unsigned char : 1;
  12504. #else
  12505. unsigned char : 1;
  12506. unsigned char ISEL : 1;
  12507. unsigned char PSEL : 6;
  12508. #endif
  12509. } BIT;
  12510. } PC7PFS;
  12511. union {
  12512. unsigned char BYTE;
  12513. struct {
  12514. #ifdef __RX_LITTLE_ENDIAN__
  12515. unsigned char PSEL : 6;
  12516. unsigned char ISEL : 1;
  12517. unsigned char ASEL : 1;
  12518. #else
  12519. unsigned char ASEL : 1;
  12520. unsigned char ISEL : 1;
  12521. unsigned char PSEL : 6;
  12522. #endif
  12523. } BIT;
  12524. } PD0PFS;
  12525. union {
  12526. unsigned char BYTE;
  12527. struct {
  12528. #ifdef __RX_LITTLE_ENDIAN__
  12529. unsigned char PSEL : 6;
  12530. unsigned char ISEL : 1;
  12531. unsigned char ASEL : 1;
  12532. #else
  12533. unsigned char ASEL : 1;
  12534. unsigned char ISEL : 1;
  12535. unsigned char PSEL : 6;
  12536. #endif
  12537. } BIT;
  12538. } PD1PFS;
  12539. union {
  12540. unsigned char BYTE;
  12541. struct {
  12542. #ifdef __RX_LITTLE_ENDIAN__
  12543. unsigned char PSEL : 6;
  12544. unsigned char ISEL : 1;
  12545. unsigned char ASEL : 1;
  12546. #else
  12547. unsigned char ASEL : 1;
  12548. unsigned char ISEL : 1;
  12549. unsigned char PSEL : 6;
  12550. #endif
  12551. } BIT;
  12552. } PD2PFS;
  12553. union {
  12554. unsigned char BYTE;
  12555. struct {
  12556. #ifdef __RX_LITTLE_ENDIAN__
  12557. unsigned char PSEL : 6;
  12558. unsigned char ISEL : 1;
  12559. unsigned char ASEL : 1;
  12560. #else
  12561. unsigned char ASEL : 1;
  12562. unsigned char ISEL : 1;
  12563. unsigned char PSEL : 6;
  12564. #endif
  12565. } BIT;
  12566. } PD3PFS;
  12567. union {
  12568. unsigned char BYTE;
  12569. struct {
  12570. #ifdef __RX_LITTLE_ENDIAN__
  12571. unsigned char PSEL : 6;
  12572. unsigned char ISEL : 1;
  12573. unsigned char ASEL : 1;
  12574. #else
  12575. unsigned char ASEL : 1;
  12576. unsigned char ISEL : 1;
  12577. unsigned char PSEL : 6;
  12578. #endif
  12579. } BIT;
  12580. } PD4PFS;
  12581. union {
  12582. unsigned char BYTE;
  12583. struct {
  12584. #ifdef __RX_LITTLE_ENDIAN__
  12585. unsigned char PSEL : 6;
  12586. unsigned char ISEL : 1;
  12587. unsigned char ASEL : 1;
  12588. #else
  12589. unsigned char ASEL : 1;
  12590. unsigned char ISEL : 1;
  12591. unsigned char PSEL : 6;
  12592. #endif
  12593. } BIT;
  12594. } PD5PFS;
  12595. union {
  12596. unsigned char BYTE;
  12597. struct {
  12598. #ifdef __RX_LITTLE_ENDIAN__
  12599. unsigned char PSEL : 6;
  12600. unsigned char ISEL : 1;
  12601. unsigned char ASEL : 1;
  12602. #else
  12603. unsigned char ASEL : 1;
  12604. unsigned char ISEL : 1;
  12605. unsigned char PSEL : 6;
  12606. #endif
  12607. } BIT;
  12608. } PD6PFS;
  12609. union {
  12610. unsigned char BYTE;
  12611. struct {
  12612. #ifdef __RX_LITTLE_ENDIAN__
  12613. unsigned char PSEL : 6;
  12614. unsigned char ISEL : 1;
  12615. unsigned char ASEL : 1;
  12616. #else
  12617. unsigned char ASEL : 1;
  12618. unsigned char ISEL : 1;
  12619. unsigned char PSEL : 6;
  12620. #endif
  12621. } BIT;
  12622. } PD7PFS;
  12623. union {
  12624. unsigned char BYTE;
  12625. struct {
  12626. #ifdef __RX_LITTLE_ENDIAN__
  12627. unsigned char PSEL : 6;
  12628. unsigned char : 1;
  12629. unsigned char ASEL : 1;
  12630. #else
  12631. unsigned char ASEL : 1;
  12632. unsigned char : 1;
  12633. unsigned char PSEL : 6;
  12634. #endif
  12635. } BIT;
  12636. } PE0PFS;
  12637. union {
  12638. unsigned char BYTE;
  12639. struct {
  12640. #ifdef __RX_LITTLE_ENDIAN__
  12641. unsigned char PSEL : 6;
  12642. unsigned char : 1;
  12643. unsigned char ASEL : 1;
  12644. #else
  12645. unsigned char ASEL : 1;
  12646. unsigned char : 1;
  12647. unsigned char PSEL : 6;
  12648. #endif
  12649. } BIT;
  12650. } PE1PFS;
  12651. union {
  12652. unsigned char BYTE;
  12653. struct {
  12654. #ifdef __RX_LITTLE_ENDIAN__
  12655. unsigned char PSEL : 6;
  12656. unsigned char ISEL : 1;
  12657. unsigned char ASEL : 1;
  12658. #else
  12659. unsigned char ASEL : 1;
  12660. unsigned char ISEL : 1;
  12661. unsigned char PSEL : 6;
  12662. #endif
  12663. } BIT;
  12664. } PE2PFS;
  12665. union {
  12666. unsigned char BYTE;
  12667. struct {
  12668. #ifdef __RX_LITTLE_ENDIAN__
  12669. unsigned char PSEL : 6;
  12670. unsigned char : 1;
  12671. unsigned char ASEL : 1;
  12672. #else
  12673. unsigned char ASEL : 1;
  12674. unsigned char : 1;
  12675. unsigned char PSEL : 6;
  12676. #endif
  12677. } BIT;
  12678. } PE3PFS;
  12679. union {
  12680. unsigned char BYTE;
  12681. struct {
  12682. #ifdef __RX_LITTLE_ENDIAN__
  12683. unsigned char PSEL : 6;
  12684. unsigned char : 1;
  12685. unsigned char ASEL : 1;
  12686. #else
  12687. unsigned char ASEL : 1;
  12688. unsigned char : 1;
  12689. unsigned char PSEL : 6;
  12690. #endif
  12691. } BIT;
  12692. } PE4PFS;
  12693. union {
  12694. unsigned char BYTE;
  12695. struct {
  12696. #ifdef __RX_LITTLE_ENDIAN__
  12697. unsigned char PSEL : 6;
  12698. unsigned char ISEL : 1;
  12699. unsigned char ASEL : 1;
  12700. #else
  12701. unsigned char ASEL : 1;
  12702. unsigned char ISEL : 1;
  12703. unsigned char PSEL : 6;
  12704. #endif
  12705. } BIT;
  12706. } PE5PFS;
  12707. union {
  12708. unsigned char BYTE;
  12709. struct {
  12710. #ifdef __RX_LITTLE_ENDIAN__
  12711. unsigned char PSEL : 6;
  12712. unsigned char ISEL : 1;
  12713. unsigned char ASEL : 1;
  12714. #else
  12715. unsigned char ASEL : 1;
  12716. unsigned char ISEL : 1;
  12717. unsigned char PSEL : 6;
  12718. #endif
  12719. } BIT;
  12720. } PE6PFS;
  12721. union {
  12722. unsigned char BYTE;
  12723. struct {
  12724. #ifdef __RX_LITTLE_ENDIAN__
  12725. unsigned char PSEL : 6;
  12726. unsigned char ISEL : 1;
  12727. unsigned char ASEL : 1;
  12728. #else
  12729. unsigned char ASEL : 1;
  12730. unsigned char ISEL : 1;
  12731. unsigned char PSEL : 6;
  12732. #endif
  12733. } BIT;
  12734. } PE7PFS;
  12735. union {
  12736. unsigned char BYTE;
  12737. struct {
  12738. #ifdef __RX_LITTLE_ENDIAN__
  12739. unsigned char PSEL : 6;
  12740. unsigned char : 2;
  12741. #else
  12742. unsigned char : 2;
  12743. unsigned char PSEL : 6;
  12744. #endif
  12745. } BIT;
  12746. } PF0PFS;
  12747. union {
  12748. unsigned char BYTE;
  12749. struct {
  12750. #ifdef __RX_LITTLE_ENDIAN__
  12751. unsigned char PSEL : 6;
  12752. unsigned char : 2;
  12753. #else
  12754. unsigned char : 2;
  12755. unsigned char PSEL : 6;
  12756. #endif
  12757. } BIT;
  12758. } PF1PFS;
  12759. union {
  12760. unsigned char BYTE;
  12761. struct {
  12762. #ifdef __RX_LITTLE_ENDIAN__
  12763. unsigned char PSEL : 6;
  12764. unsigned char : 2;
  12765. #else
  12766. unsigned char : 2;
  12767. unsigned char PSEL : 6;
  12768. #endif
  12769. } BIT;
  12770. } PF2PFS;
  12771. char wk11[2];
  12772. union {
  12773. unsigned char BYTE;
  12774. struct {
  12775. #ifdef __RX_LITTLE_ENDIAN__
  12776. unsigned char : 6;
  12777. unsigned char ISEL : 1;
  12778. unsigned char : 1;
  12779. #else
  12780. unsigned char : 1;
  12781. unsigned char ISEL : 1;
  12782. unsigned char : 6;
  12783. #endif
  12784. } BIT;
  12785. } PF5PFS;
  12786. char wk12[18];
  12787. union {
  12788. unsigned char BYTE;
  12789. struct {
  12790. #ifdef __RX_LITTLE_ENDIAN__
  12791. unsigned char PSEL : 6;
  12792. unsigned char : 2;
  12793. #else
  12794. unsigned char : 2;
  12795. unsigned char PSEL : 6;
  12796. #endif
  12797. } BIT;
  12798. } PJ0PFS;
  12799. union {
  12800. unsigned char BYTE;
  12801. struct {
  12802. #ifdef __RX_LITTLE_ENDIAN__
  12803. unsigned char PSEL : 6;
  12804. unsigned char : 2;
  12805. #else
  12806. unsigned char : 2;
  12807. unsigned char PSEL : 6;
  12808. #endif
  12809. } BIT;
  12810. } PJ1PFS;
  12811. union {
  12812. unsigned char BYTE;
  12813. struct {
  12814. #ifdef __RX_LITTLE_ENDIAN__
  12815. unsigned char PSEL : 6;
  12816. unsigned char : 2;
  12817. #else
  12818. unsigned char : 2;
  12819. unsigned char PSEL : 6;
  12820. #endif
  12821. } BIT;
  12822. } PJ2PFS;
  12823. union {
  12824. unsigned char BYTE;
  12825. struct {
  12826. #ifdef __RX_LITTLE_ENDIAN__
  12827. unsigned char PSEL : 6;
  12828. unsigned char : 2;
  12829. #else
  12830. unsigned char : 2;
  12831. unsigned char PSEL : 6;
  12832. #endif
  12833. } BIT;
  12834. } PJ3PFS;
  12835. char wk13[1];
  12836. union {
  12837. unsigned char BYTE;
  12838. struct {
  12839. #ifdef __RX_LITTLE_ENDIAN__
  12840. unsigned char PSEL : 6;
  12841. unsigned char : 2;
  12842. #else
  12843. unsigned char : 2;
  12844. unsigned char PSEL : 6;
  12845. #endif
  12846. } BIT;
  12847. } PJ5PFS;
  12848. } st_mpc_t;
  12849. typedef struct st_mpu {
  12850. union {
  12851. unsigned long LONG;
  12852. struct {
  12853. #ifdef __RX_LITTLE_ENDIAN__
  12854. unsigned long : 4;
  12855. unsigned long RSPN : 28;
  12856. #else
  12857. unsigned long RSPN : 28;
  12858. unsigned long : 4;
  12859. #endif
  12860. } BIT;
  12861. } RSPAGE0;
  12862. union {
  12863. unsigned long LONG;
  12864. struct {
  12865. #ifdef __RX_LITTLE_ENDIAN__
  12866. unsigned long V : 1;
  12867. unsigned long UAC : 3;
  12868. unsigned long REPN : 28;
  12869. #else
  12870. unsigned long REPN : 28;
  12871. unsigned long UAC : 3;
  12872. unsigned long V : 1;
  12873. #endif
  12874. } BIT;
  12875. } REPAGE0;
  12876. union {
  12877. unsigned long LONG;
  12878. struct {
  12879. #ifdef __RX_LITTLE_ENDIAN__
  12880. unsigned long : 4;
  12881. unsigned long RSPN : 28;
  12882. #else
  12883. unsigned long RSPN : 28;
  12884. unsigned long : 4;
  12885. #endif
  12886. } BIT;
  12887. } RSPAGE1;
  12888. union {
  12889. unsigned long LONG;
  12890. struct {
  12891. #ifdef __RX_LITTLE_ENDIAN__
  12892. unsigned long V : 1;
  12893. unsigned long UAC : 3;
  12894. unsigned long REPN : 28;
  12895. #else
  12896. unsigned long REPN : 28;
  12897. unsigned long UAC : 3;
  12898. unsigned long V : 1;
  12899. #endif
  12900. } BIT;
  12901. } REPAGE1;
  12902. union {
  12903. unsigned long LONG;
  12904. struct {
  12905. #ifdef __RX_LITTLE_ENDIAN__
  12906. unsigned long : 4;
  12907. unsigned long RSPN : 28;
  12908. #else
  12909. unsigned long RSPN : 28;
  12910. unsigned long : 4;
  12911. #endif
  12912. } BIT;
  12913. } RSPAGE2;
  12914. union {
  12915. unsigned long LONG;
  12916. struct {
  12917. #ifdef __RX_LITTLE_ENDIAN__
  12918. unsigned long V : 1;
  12919. unsigned long UAC : 3;
  12920. unsigned long REPN : 28;
  12921. #else
  12922. unsigned long REPN : 28;
  12923. unsigned long UAC : 3;
  12924. unsigned long V : 1;
  12925. #endif
  12926. } BIT;
  12927. } REPAGE2;
  12928. union {
  12929. unsigned long LONG;
  12930. struct {
  12931. #ifdef __RX_LITTLE_ENDIAN__
  12932. unsigned long : 4;
  12933. unsigned long RSPN : 28;
  12934. #else
  12935. unsigned long RSPN : 28;
  12936. unsigned long : 4;
  12937. #endif
  12938. } BIT;
  12939. } RSPAGE3;
  12940. union {
  12941. unsigned long LONG;
  12942. struct {
  12943. #ifdef __RX_LITTLE_ENDIAN__
  12944. unsigned long V : 1;
  12945. unsigned long UAC : 3;
  12946. unsigned long REPN : 28;
  12947. #else
  12948. unsigned long REPN : 28;
  12949. unsigned long UAC : 3;
  12950. unsigned long V : 1;
  12951. #endif
  12952. } BIT;
  12953. } REPAGE3;
  12954. union {
  12955. unsigned long LONG;
  12956. struct {
  12957. #ifdef __RX_LITTLE_ENDIAN__
  12958. unsigned long : 4;
  12959. unsigned long RSPN : 28;
  12960. #else
  12961. unsigned long RSPN : 28;
  12962. unsigned long : 4;
  12963. #endif
  12964. } BIT;
  12965. } RSPAGE4;
  12966. union {
  12967. unsigned long LONG;
  12968. struct {
  12969. #ifdef __RX_LITTLE_ENDIAN__
  12970. unsigned long V : 1;
  12971. unsigned long UAC : 3;
  12972. unsigned long REPN : 28;
  12973. #else
  12974. unsigned long REPN : 28;
  12975. unsigned long UAC : 3;
  12976. unsigned long V : 1;
  12977. #endif
  12978. } BIT;
  12979. } REPAGE4;
  12980. union {
  12981. unsigned long LONG;
  12982. struct {
  12983. #ifdef __RX_LITTLE_ENDIAN__
  12984. unsigned long : 4;
  12985. unsigned long RSPN : 28;
  12986. #else
  12987. unsigned long RSPN : 28;
  12988. unsigned long : 4;
  12989. #endif
  12990. } BIT;
  12991. } RSPAGE5;
  12992. union {
  12993. unsigned long LONG;
  12994. struct {
  12995. #ifdef __RX_LITTLE_ENDIAN__
  12996. unsigned long V : 1;
  12997. unsigned long UAC : 3;
  12998. unsigned long REPN : 28;
  12999. #else
  13000. unsigned long REPN : 28;
  13001. unsigned long UAC : 3;
  13002. unsigned long V : 1;
  13003. #endif
  13004. } BIT;
  13005. } REPAGE5;
  13006. union {
  13007. unsigned long LONG;
  13008. struct {
  13009. #ifdef __RX_LITTLE_ENDIAN__
  13010. unsigned long : 4;
  13011. unsigned long RSPN : 28;
  13012. #else
  13013. unsigned long RSPN : 28;
  13014. unsigned long : 4;
  13015. #endif
  13016. } BIT;
  13017. } RSPAGE6;
  13018. union {
  13019. unsigned long LONG;
  13020. struct {
  13021. #ifdef __RX_LITTLE_ENDIAN__
  13022. unsigned long V : 1;
  13023. unsigned long UAC : 3;
  13024. unsigned long REPN : 28;
  13025. #else
  13026. unsigned long REPN : 28;
  13027. unsigned long UAC : 3;
  13028. unsigned long V : 1;
  13029. #endif
  13030. } BIT;
  13031. } REPAGE6;
  13032. union {
  13033. unsigned long LONG;
  13034. struct {
  13035. #ifdef __RX_LITTLE_ENDIAN__
  13036. unsigned long : 4;
  13037. unsigned long RSPN : 28;
  13038. #else
  13039. unsigned long RSPN : 28;
  13040. unsigned long : 4;
  13041. #endif
  13042. } BIT;
  13043. } RSPAGE7;
  13044. union {
  13045. unsigned long LONG;
  13046. struct {
  13047. #ifdef __RX_LITTLE_ENDIAN__
  13048. unsigned long V : 1;
  13049. unsigned long UAC : 3;
  13050. unsigned long REPN : 28;
  13051. #else
  13052. unsigned long REPN : 28;
  13053. unsigned long UAC : 3;
  13054. unsigned long V : 1;
  13055. #endif
  13056. } BIT;
  13057. } REPAGE7;
  13058. char wk0[192];
  13059. union {
  13060. unsigned long LONG;
  13061. struct {
  13062. #ifdef __RX_LITTLE_ENDIAN__
  13063. unsigned long MPEN : 1;
  13064. unsigned long : 31;
  13065. #else
  13066. unsigned long : 31;
  13067. unsigned long MPEN : 1;
  13068. #endif
  13069. } BIT;
  13070. } MPEN;
  13071. union {
  13072. unsigned long LONG;
  13073. struct {
  13074. #ifdef __RX_LITTLE_ENDIAN__
  13075. unsigned long : 1;
  13076. unsigned long UBAC : 3;
  13077. unsigned long : 28;
  13078. #else
  13079. unsigned long : 28;
  13080. unsigned long UBAC : 3;
  13081. unsigned long : 1;
  13082. #endif
  13083. } BIT;
  13084. } MPBAC;
  13085. union {
  13086. unsigned long LONG;
  13087. struct {
  13088. #ifdef __RX_LITTLE_ENDIAN__
  13089. unsigned long CLR : 1;
  13090. unsigned long : 31;
  13091. #else
  13092. unsigned long : 31;
  13093. unsigned long CLR : 1;
  13094. #endif
  13095. } BIT;
  13096. } MPECLR;
  13097. union {
  13098. unsigned long LONG;
  13099. struct {
  13100. #ifdef __RX_LITTLE_ENDIAN__
  13101. unsigned long IMPER : 1;
  13102. unsigned long DMPER : 1;
  13103. unsigned long DRW : 1;
  13104. unsigned long : 29;
  13105. #else
  13106. unsigned long : 29;
  13107. unsigned long DRW : 1;
  13108. unsigned long DMPER : 1;
  13109. unsigned long IMPER : 1;
  13110. #endif
  13111. } BIT;
  13112. } MPESTS;
  13113. char wk1[4];
  13114. union {
  13115. unsigned long LONG;
  13116. struct {
  13117. #ifdef __RX_LITTLE_ENDIAN__
  13118. unsigned long DEA : 32;
  13119. #else
  13120. unsigned long DEA : 32;
  13121. #endif
  13122. } BIT;
  13123. } MPDEA;
  13124. char wk2[8];
  13125. union {
  13126. unsigned long LONG;
  13127. struct {
  13128. #ifdef __RX_LITTLE_ENDIAN__
  13129. unsigned long SA : 32;
  13130. #else
  13131. unsigned long SA : 32;
  13132. #endif
  13133. } BIT;
  13134. } MPSA;
  13135. union {
  13136. unsigned short WORD;
  13137. struct {
  13138. #ifdef __RX_LITTLE_ENDIAN__
  13139. unsigned short S : 1;
  13140. unsigned short : 15;
  13141. #else
  13142. unsigned short : 15;
  13143. unsigned short S : 1;
  13144. #endif
  13145. } BIT;
  13146. } MPOPS;
  13147. union {
  13148. unsigned short WORD;
  13149. struct {
  13150. #ifdef __RX_LITTLE_ENDIAN__
  13151. unsigned short INV : 1;
  13152. unsigned short : 15;
  13153. #else
  13154. unsigned short : 15;
  13155. unsigned short INV : 1;
  13156. #endif
  13157. } BIT;
  13158. } MPOPI;
  13159. union {
  13160. unsigned long LONG;
  13161. struct {
  13162. #ifdef __RX_LITTLE_ENDIAN__
  13163. unsigned long : 1;
  13164. unsigned long UHACI : 3;
  13165. unsigned long : 12;
  13166. unsigned long HITI : 8;
  13167. unsigned long : 8;
  13168. #else
  13169. unsigned long : 8;
  13170. unsigned long HITI : 8;
  13171. unsigned long : 12;
  13172. unsigned long UHACI : 3;
  13173. unsigned long : 1;
  13174. #endif
  13175. } BIT;
  13176. } MHITI;
  13177. union {
  13178. unsigned long LONG;
  13179. struct {
  13180. #ifdef __RX_LITTLE_ENDIAN__
  13181. unsigned long : 1;
  13182. unsigned long UHACD : 3;
  13183. unsigned long : 12;
  13184. unsigned long HITD : 8;
  13185. unsigned long : 8;
  13186. #else
  13187. unsigned long : 8;
  13188. unsigned long HITD : 8;
  13189. unsigned long : 12;
  13190. unsigned long UHACD : 3;
  13191. unsigned long : 1;
  13192. #endif
  13193. } BIT;
  13194. } MHITD;
  13195. } st_mpu_t;
  13196. typedef struct st_mtu {
  13197. union {
  13198. unsigned char BYTE;
  13199. struct {
  13200. #ifdef __RX_LITTLE_ENDIAN__
  13201. unsigned char OE3B : 1;
  13202. unsigned char OE4A : 1;
  13203. unsigned char OE4B : 1;
  13204. unsigned char OE3D : 1;
  13205. unsigned char OE4C : 1;
  13206. unsigned char OE4D : 1;
  13207. unsigned char : 2;
  13208. #else
  13209. unsigned char : 2;
  13210. unsigned char OE4D : 1;
  13211. unsigned char OE4C : 1;
  13212. unsigned char OE3D : 1;
  13213. unsigned char OE4B : 1;
  13214. unsigned char OE4A : 1;
  13215. unsigned char OE3B : 1;
  13216. #endif
  13217. } BIT;
  13218. } TOERA;
  13219. char wk0[2];
  13220. union {
  13221. unsigned char BYTE;
  13222. struct {
  13223. #ifdef __RX_LITTLE_ENDIAN__
  13224. unsigned char UF : 1;
  13225. unsigned char VF : 1;
  13226. unsigned char WF : 1;
  13227. unsigned char FB : 1;
  13228. unsigned char P : 1;
  13229. unsigned char N : 1;
  13230. unsigned char BDC : 1;
  13231. unsigned char : 1;
  13232. #else
  13233. unsigned char : 1;
  13234. unsigned char BDC : 1;
  13235. unsigned char N : 1;
  13236. unsigned char P : 1;
  13237. unsigned char FB : 1;
  13238. unsigned char WF : 1;
  13239. unsigned char VF : 1;
  13240. unsigned char UF : 1;
  13241. #endif
  13242. } BIT;
  13243. } TGCRA;
  13244. union {
  13245. unsigned char BYTE;
  13246. struct {
  13247. #ifdef __RX_LITTLE_ENDIAN__
  13248. unsigned char OLSP : 1;
  13249. unsigned char OLSN : 1;
  13250. unsigned char TOCS : 1;
  13251. unsigned char TOCL : 1;
  13252. unsigned char : 2;
  13253. unsigned char PSYE : 1;
  13254. unsigned char : 1;
  13255. #else
  13256. unsigned char : 1;
  13257. unsigned char PSYE : 1;
  13258. unsigned char : 2;
  13259. unsigned char TOCL : 1;
  13260. unsigned char TOCS : 1;
  13261. unsigned char OLSN : 1;
  13262. unsigned char OLSP : 1;
  13263. #endif
  13264. } BIT;
  13265. } TOCR1A;
  13266. union {
  13267. unsigned char BYTE;
  13268. struct {
  13269. #ifdef __RX_LITTLE_ENDIAN__
  13270. unsigned char OLS1P : 1;
  13271. unsigned char OLS1N : 1;
  13272. unsigned char OLS2P : 1;
  13273. unsigned char OLS2N : 1;
  13274. unsigned char OLS3P : 1;
  13275. unsigned char OLS3N : 1;
  13276. unsigned char BF : 2;
  13277. #else
  13278. unsigned char BF : 2;
  13279. unsigned char OLS3N : 1;
  13280. unsigned char OLS3P : 1;
  13281. unsigned char OLS2N : 1;
  13282. unsigned char OLS2P : 1;
  13283. unsigned char OLS1N : 1;
  13284. unsigned char OLS1P : 1;
  13285. #endif
  13286. } BIT;
  13287. } TOCR2A;
  13288. char wk1[4];
  13289. unsigned short TCDRA;
  13290. unsigned short TDDRA;
  13291. char wk2[8];
  13292. unsigned short TCNTSA;
  13293. unsigned short TCBRA;
  13294. char wk3[12];
  13295. union {
  13296. unsigned char BYTE;
  13297. struct {
  13298. #ifdef __RX_LITTLE_ENDIAN__
  13299. unsigned char T4VCOR : 3;
  13300. unsigned char T4VEN : 1;
  13301. unsigned char T3ACOR : 3;
  13302. unsigned char T3AEN : 1;
  13303. #else
  13304. unsigned char T3AEN : 1;
  13305. unsigned char T3ACOR : 3;
  13306. unsigned char T4VEN : 1;
  13307. unsigned char T4VCOR : 3;
  13308. #endif
  13309. } BIT;
  13310. } TITCR1A;
  13311. union {
  13312. unsigned char BYTE;
  13313. struct {
  13314. #ifdef __RX_LITTLE_ENDIAN__
  13315. unsigned char T4VCNT : 3;
  13316. unsigned char : 1;
  13317. unsigned char T3ACNT : 3;
  13318. unsigned char : 1;
  13319. #else
  13320. unsigned char : 1;
  13321. unsigned char T3ACNT : 3;
  13322. unsigned char : 1;
  13323. unsigned char T4VCNT : 3;
  13324. #endif
  13325. } BIT;
  13326. } TITCNT1A;
  13327. union {
  13328. unsigned char BYTE;
  13329. struct {
  13330. #ifdef __RX_LITTLE_ENDIAN__
  13331. unsigned char BTE : 2;
  13332. unsigned char : 6;
  13333. #else
  13334. unsigned char : 6;
  13335. unsigned char BTE : 2;
  13336. #endif
  13337. } BIT;
  13338. } TBTERA;
  13339. char wk4[1];
  13340. union {
  13341. unsigned char BYTE;
  13342. struct {
  13343. #ifdef __RX_LITTLE_ENDIAN__
  13344. unsigned char TDER : 1;
  13345. unsigned char : 7;
  13346. #else
  13347. unsigned char : 7;
  13348. unsigned char TDER : 1;
  13349. #endif
  13350. } BIT;
  13351. } TDERA;
  13352. char wk5[1];
  13353. union {
  13354. unsigned char BYTE;
  13355. struct {
  13356. #ifdef __RX_LITTLE_ENDIAN__
  13357. unsigned char OLS1P : 1;
  13358. unsigned char OLS1N : 1;
  13359. unsigned char OLS2P : 1;
  13360. unsigned char OLS2N : 1;
  13361. unsigned char OLS3P : 1;
  13362. unsigned char OLS3N : 1;
  13363. unsigned char : 2;
  13364. #else
  13365. unsigned char : 2;
  13366. unsigned char OLS3N : 1;
  13367. unsigned char OLS3P : 1;
  13368. unsigned char OLS2N : 1;
  13369. unsigned char OLS2P : 1;
  13370. unsigned char OLS1N : 1;
  13371. unsigned char OLS1P : 1;
  13372. #endif
  13373. } BIT;
  13374. } TOLBRA;
  13375. char wk6[3];
  13376. union {
  13377. unsigned char BYTE;
  13378. struct {
  13379. #ifdef __RX_LITTLE_ENDIAN__
  13380. unsigned char TITM : 1;
  13381. unsigned char : 7;
  13382. #else
  13383. unsigned char : 7;
  13384. unsigned char TITM : 1;
  13385. #endif
  13386. } BIT;
  13387. } TITMRA;
  13388. union {
  13389. unsigned char BYTE;
  13390. struct {
  13391. #ifdef __RX_LITTLE_ENDIAN__
  13392. unsigned char TRG4COR : 3;
  13393. unsigned char : 5;
  13394. #else
  13395. unsigned char : 5;
  13396. unsigned char TRG4COR : 3;
  13397. #endif
  13398. } BIT;
  13399. } TITCR2A;
  13400. union {
  13401. unsigned char BYTE;
  13402. struct {
  13403. #ifdef __RX_LITTLE_ENDIAN__
  13404. unsigned char TRG4CNT : 3;
  13405. unsigned char : 5;
  13406. #else
  13407. unsigned char : 5;
  13408. unsigned char TRG4CNT : 3;
  13409. #endif
  13410. } BIT;
  13411. } TITCNT2A;
  13412. char wk7[35];
  13413. union {
  13414. unsigned char BYTE;
  13415. struct {
  13416. #ifdef __RX_LITTLE_ENDIAN__
  13417. unsigned char WRE : 1;
  13418. unsigned char SCC : 1;
  13419. unsigned char : 5;
  13420. unsigned char CCE : 1;
  13421. #else
  13422. unsigned char CCE : 1;
  13423. unsigned char : 5;
  13424. unsigned char SCC : 1;
  13425. unsigned char WRE : 1;
  13426. #endif
  13427. } BIT;
  13428. } TWCRA;
  13429. char wk8[15];
  13430. union {
  13431. unsigned char BYTE;
  13432. struct {
  13433. #ifdef __RX_LITTLE_ENDIAN__
  13434. unsigned char DRS : 1;
  13435. unsigned char : 7;
  13436. #else
  13437. unsigned char : 7;
  13438. unsigned char DRS : 1;
  13439. #endif
  13440. } BIT;
  13441. } TMDR2A;
  13442. char wk9[15];
  13443. union {
  13444. unsigned char BYTE;
  13445. struct {
  13446. #ifdef __RX_LITTLE_ENDIAN__
  13447. unsigned char CST0 : 1;
  13448. unsigned char CST1 : 1;
  13449. unsigned char CST2 : 1;
  13450. unsigned char CST8 : 1;
  13451. unsigned char : 2;
  13452. unsigned char CST3 : 1;
  13453. unsigned char CST4 : 1;
  13454. #else
  13455. unsigned char CST4 : 1;
  13456. unsigned char CST3 : 1;
  13457. unsigned char : 2;
  13458. unsigned char CST8 : 1;
  13459. unsigned char CST2 : 1;
  13460. unsigned char CST1 : 1;
  13461. unsigned char CST0 : 1;
  13462. #endif
  13463. } BIT;
  13464. } TSTRA;
  13465. union {
  13466. unsigned char BYTE;
  13467. struct {
  13468. #ifdef __RX_LITTLE_ENDIAN__
  13469. unsigned char SYNC0 : 1;
  13470. unsigned char SYNC1 : 1;
  13471. unsigned char SYNC2 : 1;
  13472. unsigned char : 3;
  13473. unsigned char SYNC3 : 1;
  13474. unsigned char SYNC4 : 1;
  13475. #else
  13476. unsigned char SYNC4 : 1;
  13477. unsigned char SYNC3 : 1;
  13478. unsigned char : 3;
  13479. unsigned char SYNC2 : 1;
  13480. unsigned char SYNC1 : 1;
  13481. unsigned char SYNC0 : 1;
  13482. #endif
  13483. } BIT;
  13484. } TSYRA;
  13485. union {
  13486. unsigned char BYTE;
  13487. struct {
  13488. #ifdef __RX_LITTLE_ENDIAN__
  13489. unsigned char SCH7 : 1;
  13490. unsigned char SCH6 : 1;
  13491. unsigned char : 1;
  13492. unsigned char SCH4 : 1;
  13493. unsigned char SCH3 : 1;
  13494. unsigned char SCH2 : 1;
  13495. unsigned char SCH1 : 1;
  13496. unsigned char SCH0 : 1;
  13497. #else
  13498. unsigned char SCH0 : 1;
  13499. unsigned char SCH1 : 1;
  13500. unsigned char SCH2 : 1;
  13501. unsigned char SCH3 : 1;
  13502. unsigned char SCH4 : 1;
  13503. unsigned char : 1;
  13504. unsigned char SCH6 : 1;
  13505. unsigned char SCH7 : 1;
  13506. #endif
  13507. } BIT;
  13508. } TCSYSTR;
  13509. char wk10[1];
  13510. union {
  13511. unsigned char BYTE;
  13512. struct {
  13513. #ifdef __RX_LITTLE_ENDIAN__
  13514. unsigned char RWE : 1;
  13515. unsigned char : 7;
  13516. #else
  13517. unsigned char : 7;
  13518. unsigned char RWE : 1;
  13519. #endif
  13520. } BIT;
  13521. } TRWERA;
  13522. char wk11[1925];
  13523. union {
  13524. unsigned char BYTE;
  13525. struct {
  13526. #ifdef __RX_LITTLE_ENDIAN__
  13527. unsigned char OE6B : 1;
  13528. unsigned char OE7A : 1;
  13529. unsigned char OE7B : 1;
  13530. unsigned char OE6D : 1;
  13531. unsigned char OE7C : 1;
  13532. unsigned char OE7D : 1;
  13533. unsigned char : 2;
  13534. #else
  13535. unsigned char : 2;
  13536. unsigned char OE7D : 1;
  13537. unsigned char OE7C : 1;
  13538. unsigned char OE6D : 1;
  13539. unsigned char OE7B : 1;
  13540. unsigned char OE7A : 1;
  13541. unsigned char OE6B : 1;
  13542. #endif
  13543. } BIT;
  13544. } TOERB;
  13545. char wk12[3];
  13546. union {
  13547. unsigned char BYTE;
  13548. struct {
  13549. #ifdef __RX_LITTLE_ENDIAN__
  13550. unsigned char OLSP : 1;
  13551. unsigned char OLSN : 1;
  13552. unsigned char TOCS : 1;
  13553. unsigned char TOCL : 1;
  13554. unsigned char : 2;
  13555. unsigned char PSYE : 1;
  13556. unsigned char : 1;
  13557. #else
  13558. unsigned char : 1;
  13559. unsigned char PSYE : 1;
  13560. unsigned char : 2;
  13561. unsigned char TOCL : 1;
  13562. unsigned char TOCS : 1;
  13563. unsigned char OLSN : 1;
  13564. unsigned char OLSP : 1;
  13565. #endif
  13566. } BIT;
  13567. } TOCR1B;
  13568. union {
  13569. unsigned char BYTE;
  13570. struct {
  13571. #ifdef __RX_LITTLE_ENDIAN__
  13572. unsigned char OLS1P : 1;
  13573. unsigned char OLS1N : 1;
  13574. unsigned char OLS2P : 1;
  13575. unsigned char OLS2N : 1;
  13576. unsigned char OLS3P : 1;
  13577. unsigned char OLS3N : 1;
  13578. unsigned char BF : 2;
  13579. #else
  13580. unsigned char BF : 2;
  13581. unsigned char OLS3N : 1;
  13582. unsigned char OLS3P : 1;
  13583. unsigned char OLS2N : 1;
  13584. unsigned char OLS2P : 1;
  13585. unsigned char OLS1N : 1;
  13586. unsigned char OLS1P : 1;
  13587. #endif
  13588. } BIT;
  13589. } TOCR2B;
  13590. char wk13[4];
  13591. unsigned short TCDRB;
  13592. unsigned short TDDRB;
  13593. char wk14[8];
  13594. unsigned short TCNTSB;
  13595. unsigned short TCBRB;
  13596. char wk15[12];
  13597. union {
  13598. unsigned char BYTE;
  13599. struct {
  13600. #ifdef __RX_LITTLE_ENDIAN__
  13601. unsigned char T7VCOR : 3;
  13602. unsigned char T7VEN : 1;
  13603. unsigned char T6ACOR : 3;
  13604. unsigned char T6AEN : 1;
  13605. #else
  13606. unsigned char T6AEN : 1;
  13607. unsigned char T6ACOR : 3;
  13608. unsigned char T7VEN : 1;
  13609. unsigned char T7VCOR : 3;
  13610. #endif
  13611. } BIT;
  13612. } TITCR1B;
  13613. union {
  13614. unsigned char BYTE;
  13615. struct {
  13616. #ifdef __RX_LITTLE_ENDIAN__
  13617. unsigned char T7VCNT : 3;
  13618. unsigned char : 1;
  13619. unsigned char T6ACNT : 3;
  13620. unsigned char : 1;
  13621. #else
  13622. unsigned char : 1;
  13623. unsigned char T6ACNT : 3;
  13624. unsigned char : 1;
  13625. unsigned char T7VCNT : 3;
  13626. #endif
  13627. } BIT;
  13628. } TITCNT1B;
  13629. union {
  13630. unsigned char BYTE;
  13631. struct {
  13632. #ifdef __RX_LITTLE_ENDIAN__
  13633. unsigned char BTE : 2;
  13634. unsigned char : 6;
  13635. #else
  13636. unsigned char : 6;
  13637. unsigned char BTE : 2;
  13638. #endif
  13639. } BIT;
  13640. } TBTERB;
  13641. char wk16[1];
  13642. union {
  13643. unsigned char BYTE;
  13644. struct {
  13645. #ifdef __RX_LITTLE_ENDIAN__
  13646. unsigned char TDER : 1;
  13647. unsigned char : 7;
  13648. #else
  13649. unsigned char : 7;
  13650. unsigned char TDER : 1;
  13651. #endif
  13652. } BIT;
  13653. } TDERB;
  13654. char wk17[1];
  13655. union {
  13656. unsigned char BYTE;
  13657. struct {
  13658. #ifdef __RX_LITTLE_ENDIAN__
  13659. unsigned char OLS1P : 1;
  13660. unsigned char OLS1N : 1;
  13661. unsigned char OLS2P : 1;
  13662. unsigned char OLS2N : 1;
  13663. unsigned char OLS3P : 1;
  13664. unsigned char OLS3N : 1;
  13665. unsigned char : 2;
  13666. #else
  13667. unsigned char : 2;
  13668. unsigned char OLS3N : 1;
  13669. unsigned char OLS3P : 1;
  13670. unsigned char OLS2N : 1;
  13671. unsigned char OLS2P : 1;
  13672. unsigned char OLS1N : 1;
  13673. unsigned char OLS1P : 1;
  13674. #endif
  13675. } BIT;
  13676. } TOLBRB;
  13677. char wk18[3];
  13678. union {
  13679. unsigned char BYTE;
  13680. struct {
  13681. #ifdef __RX_LITTLE_ENDIAN__
  13682. unsigned char TITM : 1;
  13683. unsigned char : 7;
  13684. #else
  13685. unsigned char : 7;
  13686. unsigned char TITM : 1;
  13687. #endif
  13688. } BIT;
  13689. } TITMRB;
  13690. union {
  13691. unsigned char BYTE;
  13692. struct {
  13693. #ifdef __RX_LITTLE_ENDIAN__
  13694. unsigned char TRG7COR : 3;
  13695. unsigned char : 5;
  13696. #else
  13697. unsigned char : 5;
  13698. unsigned char TRG7COR : 3;
  13699. #endif
  13700. } BIT;
  13701. } TITCR2B;
  13702. union {
  13703. unsigned char BYTE;
  13704. struct {
  13705. #ifdef __RX_LITTLE_ENDIAN__
  13706. unsigned char TRG7CNT : 3;
  13707. unsigned char : 5;
  13708. #else
  13709. unsigned char : 5;
  13710. unsigned char TRG7CNT : 3;
  13711. #endif
  13712. } BIT;
  13713. } TITCNT2B;
  13714. char wk19[35];
  13715. union {
  13716. unsigned char BYTE;
  13717. struct {
  13718. #ifdef __RX_LITTLE_ENDIAN__
  13719. unsigned char WRE : 1;
  13720. unsigned char SCC : 1;
  13721. unsigned char : 5;
  13722. unsigned char CCE : 1;
  13723. #else
  13724. unsigned char CCE : 1;
  13725. unsigned char : 5;
  13726. unsigned char SCC : 1;
  13727. unsigned char WRE : 1;
  13728. #endif
  13729. } BIT;
  13730. } TWCRB;
  13731. char wk20[15];
  13732. union {
  13733. unsigned char BYTE;
  13734. struct {
  13735. #ifdef __RX_LITTLE_ENDIAN__
  13736. unsigned char DRS : 1;
  13737. unsigned char : 7;
  13738. #else
  13739. unsigned char : 7;
  13740. unsigned char DRS : 1;
  13741. #endif
  13742. } BIT;
  13743. } TMDR2B;
  13744. char wk21[15];
  13745. union {
  13746. unsigned char BYTE;
  13747. struct {
  13748. #ifdef __RX_LITTLE_ENDIAN__
  13749. unsigned char : 6;
  13750. unsigned char CST6 : 1;
  13751. unsigned char CST7 : 1;
  13752. #else
  13753. unsigned char CST7 : 1;
  13754. unsigned char CST6 : 1;
  13755. unsigned char : 6;
  13756. #endif
  13757. } BIT;
  13758. } TSTRB;
  13759. union {
  13760. unsigned char BYTE;
  13761. struct {
  13762. #ifdef __RX_LITTLE_ENDIAN__
  13763. unsigned char : 6;
  13764. unsigned char SYNC6 : 1;
  13765. unsigned char SYNC7 : 1;
  13766. #else
  13767. unsigned char SYNC7 : 1;
  13768. unsigned char SYNC6 : 1;
  13769. unsigned char : 6;
  13770. #endif
  13771. } BIT;
  13772. } TSYRB;
  13773. char wk22[2];
  13774. union {
  13775. unsigned char BYTE;
  13776. struct {
  13777. #ifdef __RX_LITTLE_ENDIAN__
  13778. unsigned char RWE : 1;
  13779. unsigned char : 7;
  13780. #else
  13781. unsigned char : 7;
  13782. unsigned char RWE : 1;
  13783. #endif
  13784. } BIT;
  13785. } TRWERB;
  13786. } st_mtu_t;
  13787. typedef struct st_mtu0 {
  13788. union {
  13789. unsigned char BYTE;
  13790. struct {
  13791. #ifdef __RX_LITTLE_ENDIAN__
  13792. unsigned char NFAEN : 1;
  13793. unsigned char NFBEN : 1;
  13794. unsigned char NFCEN : 1;
  13795. unsigned char NFDEN : 1;
  13796. unsigned char NFCS : 2;
  13797. unsigned char : 2;
  13798. #else
  13799. unsigned char : 2;
  13800. unsigned char NFCS : 2;
  13801. unsigned char NFDEN : 1;
  13802. unsigned char NFCEN : 1;
  13803. unsigned char NFBEN : 1;
  13804. unsigned char NFAEN : 1;
  13805. #endif
  13806. } BIT;
  13807. } NFCR0;
  13808. char wk0[8];
  13809. union {
  13810. unsigned char BYTE;
  13811. struct {
  13812. #ifdef __RX_LITTLE_ENDIAN__
  13813. unsigned char NFAEN : 1;
  13814. unsigned char NFBEN : 1;
  13815. unsigned char NFCEN : 1;
  13816. unsigned char NFDEN : 1;
  13817. unsigned char NFCS : 2;
  13818. unsigned char : 2;
  13819. #else
  13820. unsigned char : 2;
  13821. unsigned char NFCS : 2;
  13822. unsigned char NFDEN : 1;
  13823. unsigned char NFCEN : 1;
  13824. unsigned char NFBEN : 1;
  13825. unsigned char NFAEN : 1;
  13826. #endif
  13827. } BIT;
  13828. } NFCRC;
  13829. char wk1[102];
  13830. union {
  13831. unsigned char BYTE;
  13832. struct {
  13833. #ifdef __RX_LITTLE_ENDIAN__
  13834. unsigned char TPSC : 3;
  13835. unsigned char CKEG : 2;
  13836. unsigned char CCLR : 3;
  13837. #else
  13838. unsigned char CCLR : 3;
  13839. unsigned char CKEG : 2;
  13840. unsigned char TPSC : 3;
  13841. #endif
  13842. } BIT;
  13843. } TCR;
  13844. union {
  13845. unsigned char BYTE;
  13846. struct {
  13847. #ifdef __RX_LITTLE_ENDIAN__
  13848. unsigned char MD : 4;
  13849. unsigned char BFA : 1;
  13850. unsigned char BFB : 1;
  13851. unsigned char BFE : 1;
  13852. unsigned char : 1;
  13853. #else
  13854. unsigned char : 1;
  13855. unsigned char BFE : 1;
  13856. unsigned char BFB : 1;
  13857. unsigned char BFA : 1;
  13858. unsigned char MD : 4;
  13859. #endif
  13860. } BIT;
  13861. } TMDR1;
  13862. union {
  13863. unsigned char BYTE;
  13864. struct {
  13865. #ifdef __RX_LITTLE_ENDIAN__
  13866. unsigned char IOA : 4;
  13867. unsigned char IOB : 4;
  13868. #else
  13869. unsigned char IOB : 4;
  13870. unsigned char IOA : 4;
  13871. #endif
  13872. } BIT;
  13873. } TIORH;
  13874. union {
  13875. unsigned char BYTE;
  13876. struct {
  13877. #ifdef __RX_LITTLE_ENDIAN__
  13878. unsigned char IOC : 4;
  13879. unsigned char IOD : 4;
  13880. #else
  13881. unsigned char IOD : 4;
  13882. unsigned char IOC : 4;
  13883. #endif
  13884. } BIT;
  13885. } TIORL;
  13886. union {
  13887. unsigned char BYTE;
  13888. struct {
  13889. #ifdef __RX_LITTLE_ENDIAN__
  13890. unsigned char TGIEA : 1;
  13891. unsigned char TGIEB : 1;
  13892. unsigned char TGIEC : 1;
  13893. unsigned char TGIED : 1;
  13894. unsigned char TCIEV : 1;
  13895. unsigned char : 2;
  13896. unsigned char TTGE : 1;
  13897. #else
  13898. unsigned char TTGE : 1;
  13899. unsigned char : 2;
  13900. unsigned char TCIEV : 1;
  13901. unsigned char TGIED : 1;
  13902. unsigned char TGIEC : 1;
  13903. unsigned char TGIEB : 1;
  13904. unsigned char TGIEA : 1;
  13905. #endif
  13906. } BIT;
  13907. } TIER;
  13908. char wk2[1];
  13909. unsigned short TCNT;
  13910. unsigned short TGRA;
  13911. unsigned short TGRB;
  13912. unsigned short TGRC;
  13913. unsigned short TGRD;
  13914. char wk3[16];
  13915. unsigned short TGRE;
  13916. unsigned short TGRF;
  13917. union {
  13918. unsigned char BYTE;
  13919. struct {
  13920. #ifdef __RX_LITTLE_ENDIAN__
  13921. unsigned char TGIEE : 1;
  13922. unsigned char TGIEF : 1;
  13923. unsigned char : 5;
  13924. unsigned char TTGE2 : 1;
  13925. #else
  13926. unsigned char TTGE2 : 1;
  13927. unsigned char : 5;
  13928. unsigned char TGIEF : 1;
  13929. unsigned char TGIEE : 1;
  13930. #endif
  13931. } BIT;
  13932. } TIER2;
  13933. char wk4[1];
  13934. union {
  13935. unsigned char BYTE;
  13936. struct {
  13937. #ifdef __RX_LITTLE_ENDIAN__
  13938. unsigned char TTSA : 1;
  13939. unsigned char TTSB : 1;
  13940. unsigned char TTSE : 1;
  13941. unsigned char : 5;
  13942. #else
  13943. unsigned char : 5;
  13944. unsigned char TTSE : 1;
  13945. unsigned char TTSB : 1;
  13946. unsigned char TTSA : 1;
  13947. #endif
  13948. } BIT;
  13949. } TBTM;
  13950. char wk5[1];
  13951. union {
  13952. unsigned char BYTE;
  13953. struct {
  13954. #ifdef __RX_LITTLE_ENDIAN__
  13955. unsigned char TPSC2 : 3;
  13956. unsigned char : 5;
  13957. #else
  13958. unsigned char : 5;
  13959. unsigned char TPSC2 : 3;
  13960. #endif
  13961. } BIT;
  13962. } TCR2;
  13963. } st_mtu0_t;
  13964. typedef struct st_mtu1 {
  13965. char wk0[1];
  13966. union {
  13967. unsigned char BYTE;
  13968. struct {
  13969. #ifdef __RX_LITTLE_ENDIAN__
  13970. unsigned char NFAEN : 1;
  13971. unsigned char NFBEN : 1;
  13972. unsigned char NFCEN : 1;
  13973. unsigned char NFDEN : 1;
  13974. unsigned char NFCS : 2;
  13975. unsigned char : 2;
  13976. #else
  13977. unsigned char : 2;
  13978. unsigned char NFCS : 2;
  13979. unsigned char NFDEN : 1;
  13980. unsigned char NFCEN : 1;
  13981. unsigned char NFBEN : 1;
  13982. unsigned char NFAEN : 1;
  13983. #endif
  13984. } BIT;
  13985. } NFCR1;
  13986. char wk1[238];
  13987. union {
  13988. unsigned char BYTE;
  13989. struct {
  13990. #ifdef __RX_LITTLE_ENDIAN__
  13991. unsigned char TPSC : 3;
  13992. unsigned char CKEG : 2;
  13993. unsigned char CCLR : 2;
  13994. unsigned char : 1;
  13995. #else
  13996. unsigned char : 1;
  13997. unsigned char CCLR : 2;
  13998. unsigned char CKEG : 2;
  13999. unsigned char TPSC : 3;
  14000. #endif
  14001. } BIT;
  14002. } TCR;
  14003. union {
  14004. unsigned char BYTE;
  14005. struct {
  14006. #ifdef __RX_LITTLE_ENDIAN__
  14007. unsigned char MD : 4;
  14008. unsigned char : 4;
  14009. #else
  14010. unsigned char : 4;
  14011. unsigned char MD : 4;
  14012. #endif
  14013. } BIT;
  14014. } TMDR1;
  14015. union {
  14016. unsigned char BYTE;
  14017. struct {
  14018. #ifdef __RX_LITTLE_ENDIAN__
  14019. unsigned char IOA : 4;
  14020. unsigned char IOB : 4;
  14021. #else
  14022. unsigned char IOB : 4;
  14023. unsigned char IOA : 4;
  14024. #endif
  14025. } BIT;
  14026. } TIOR;
  14027. char wk2[1];
  14028. union {
  14029. unsigned char BYTE;
  14030. struct {
  14031. #ifdef __RX_LITTLE_ENDIAN__
  14032. unsigned char TGIEA : 1;
  14033. unsigned char TGIEB : 1;
  14034. unsigned char : 2;
  14035. unsigned char TCIEV : 1;
  14036. unsigned char TCIEU : 1;
  14037. unsigned char : 1;
  14038. unsigned char TTGE : 1;
  14039. #else
  14040. unsigned char TTGE : 1;
  14041. unsigned char : 1;
  14042. unsigned char TCIEU : 1;
  14043. unsigned char TCIEV : 1;
  14044. unsigned char : 2;
  14045. unsigned char TGIEB : 1;
  14046. unsigned char TGIEA : 1;
  14047. #endif
  14048. } BIT;
  14049. } TIER;
  14050. union {
  14051. unsigned char BYTE;
  14052. struct {
  14053. #ifdef __RX_LITTLE_ENDIAN__
  14054. unsigned char : 7;
  14055. unsigned char TCFD : 1;
  14056. #else
  14057. unsigned char TCFD : 1;
  14058. unsigned char : 7;
  14059. #endif
  14060. } BIT;
  14061. } TSR;
  14062. unsigned short TCNT;
  14063. unsigned short TGRA;
  14064. unsigned short TGRB;
  14065. char wk3[4];
  14066. union {
  14067. unsigned char BYTE;
  14068. struct {
  14069. #ifdef __RX_LITTLE_ENDIAN__
  14070. unsigned char I1AE : 1;
  14071. unsigned char I1BE : 1;
  14072. unsigned char I2AE : 1;
  14073. unsigned char I2BE : 1;
  14074. unsigned char : 4;
  14075. #else
  14076. unsigned char : 4;
  14077. unsigned char I2BE : 1;
  14078. unsigned char I2AE : 1;
  14079. unsigned char I1BE : 1;
  14080. unsigned char I1AE : 1;
  14081. #endif
  14082. } BIT;
  14083. } TICCR;
  14084. union {
  14085. unsigned char BYTE;
  14086. struct {
  14087. #ifdef __RX_LITTLE_ENDIAN__
  14088. unsigned char LWA : 1;
  14089. unsigned char PHCKSEL : 1;
  14090. unsigned char : 6;
  14091. #else
  14092. unsigned char : 6;
  14093. unsigned char PHCKSEL : 1;
  14094. unsigned char LWA : 1;
  14095. #endif
  14096. } BIT;
  14097. } TMDR3;
  14098. char wk4[2];
  14099. union {
  14100. unsigned char BYTE;
  14101. struct {
  14102. #ifdef __RX_LITTLE_ENDIAN__
  14103. unsigned char TPSC2 : 3;
  14104. unsigned char PCB : 2;
  14105. unsigned char : 3;
  14106. #else
  14107. unsigned char : 3;
  14108. unsigned char PCB : 2;
  14109. unsigned char TPSC2 : 3;
  14110. #endif
  14111. } BIT;
  14112. } TCR2;
  14113. char wk5[11];
  14114. unsigned long TCNTLW;
  14115. unsigned long TGRALW;
  14116. unsigned long TGRBLW;
  14117. } st_mtu1_t;
  14118. typedef struct st_mtu2 {
  14119. union {
  14120. unsigned char BYTE;
  14121. struct {
  14122. #ifdef __RX_LITTLE_ENDIAN__
  14123. unsigned char NFAEN : 1;
  14124. unsigned char NFBEN : 1;
  14125. unsigned char NFCEN : 1;
  14126. unsigned char NFDEN : 1;
  14127. unsigned char NFCS : 2;
  14128. unsigned char : 2;
  14129. #else
  14130. unsigned char : 2;
  14131. unsigned char NFCS : 2;
  14132. unsigned char NFDEN : 1;
  14133. unsigned char NFCEN : 1;
  14134. unsigned char NFBEN : 1;
  14135. unsigned char NFAEN : 1;
  14136. #endif
  14137. } BIT;
  14138. } NFCR2;
  14139. char wk0[365];
  14140. union {
  14141. unsigned char BYTE;
  14142. struct {
  14143. #ifdef __RX_LITTLE_ENDIAN__
  14144. unsigned char TPSC : 3;
  14145. unsigned char CKEG : 2;
  14146. unsigned char CCLR : 2;
  14147. unsigned char : 1;
  14148. #else
  14149. unsigned char : 1;
  14150. unsigned char CCLR : 2;
  14151. unsigned char CKEG : 2;
  14152. unsigned char TPSC : 3;
  14153. #endif
  14154. } BIT;
  14155. } TCR;
  14156. union {
  14157. unsigned char BYTE;
  14158. struct {
  14159. #ifdef __RX_LITTLE_ENDIAN__
  14160. unsigned char MD : 4;
  14161. unsigned char : 4;
  14162. #else
  14163. unsigned char : 4;
  14164. unsigned char MD : 4;
  14165. #endif
  14166. } BIT;
  14167. } TMDR1;
  14168. union {
  14169. unsigned char BYTE;
  14170. struct {
  14171. #ifdef __RX_LITTLE_ENDIAN__
  14172. unsigned char IOA : 4;
  14173. unsigned char IOB : 4;
  14174. #else
  14175. unsigned char IOB : 4;
  14176. unsigned char IOA : 4;
  14177. #endif
  14178. } BIT;
  14179. } TIOR;
  14180. char wk1[1];
  14181. union {
  14182. unsigned char BYTE;
  14183. struct {
  14184. #ifdef __RX_LITTLE_ENDIAN__
  14185. unsigned char TGIEA : 1;
  14186. unsigned char TGIEB : 1;
  14187. unsigned char : 2;
  14188. unsigned char TCIEV : 1;
  14189. unsigned char TCIEU : 1;
  14190. unsigned char : 1;
  14191. unsigned char TTGE : 1;
  14192. #else
  14193. unsigned char TTGE : 1;
  14194. unsigned char : 1;
  14195. unsigned char TCIEU : 1;
  14196. unsigned char TCIEV : 1;
  14197. unsigned char : 2;
  14198. unsigned char TGIEB : 1;
  14199. unsigned char TGIEA : 1;
  14200. #endif
  14201. } BIT;
  14202. } TIER;
  14203. union {
  14204. unsigned char BYTE;
  14205. struct {
  14206. #ifdef __RX_LITTLE_ENDIAN__
  14207. unsigned char : 7;
  14208. unsigned char TCFD : 1;
  14209. #else
  14210. unsigned char TCFD : 1;
  14211. unsigned char : 7;
  14212. #endif
  14213. } BIT;
  14214. } TSR;
  14215. unsigned short TCNT;
  14216. unsigned short TGRA;
  14217. unsigned short TGRB;
  14218. union {
  14219. unsigned char BYTE;
  14220. struct {
  14221. #ifdef __RX_LITTLE_ENDIAN__
  14222. unsigned char TPSC2 : 3;
  14223. unsigned char PCB : 2;
  14224. unsigned char : 3;
  14225. #else
  14226. unsigned char : 3;
  14227. unsigned char PCB : 2;
  14228. unsigned char TPSC2 : 3;
  14229. #endif
  14230. } BIT;
  14231. } TCR2;
  14232. } st_mtu2_t;
  14233. typedef struct st_mtu3 {
  14234. union {
  14235. unsigned char BYTE;
  14236. struct {
  14237. #ifdef __RX_LITTLE_ENDIAN__
  14238. unsigned char TPSC : 3;
  14239. unsigned char CKEG : 2;
  14240. unsigned char CCLR : 3;
  14241. #else
  14242. unsigned char CCLR : 3;
  14243. unsigned char CKEG : 2;
  14244. unsigned char TPSC : 3;
  14245. #endif
  14246. } BIT;
  14247. } TCR;
  14248. char wk0[1];
  14249. union {
  14250. unsigned char BYTE;
  14251. struct {
  14252. #ifdef __RX_LITTLE_ENDIAN__
  14253. unsigned char MD : 4;
  14254. unsigned char BFA : 1;
  14255. unsigned char BFB : 1;
  14256. unsigned char : 2;
  14257. #else
  14258. unsigned char : 2;
  14259. unsigned char BFB : 1;
  14260. unsigned char BFA : 1;
  14261. unsigned char MD : 4;
  14262. #endif
  14263. } BIT;
  14264. } TMDR1;
  14265. char wk1[1];
  14266. union {
  14267. unsigned char BYTE;
  14268. struct {
  14269. #ifdef __RX_LITTLE_ENDIAN__
  14270. unsigned char IOA : 4;
  14271. unsigned char IOB : 4;
  14272. #else
  14273. unsigned char IOB : 4;
  14274. unsigned char IOA : 4;
  14275. #endif
  14276. } BIT;
  14277. } TIORH;
  14278. union {
  14279. unsigned char BYTE;
  14280. struct {
  14281. #ifdef __RX_LITTLE_ENDIAN__
  14282. unsigned char IOC : 4;
  14283. unsigned char IOD : 4;
  14284. #else
  14285. unsigned char IOD : 4;
  14286. unsigned char IOC : 4;
  14287. #endif
  14288. } BIT;
  14289. } TIORL;
  14290. char wk2[2];
  14291. union {
  14292. unsigned char BYTE;
  14293. struct {
  14294. #ifdef __RX_LITTLE_ENDIAN__
  14295. unsigned char TGIEA : 1;
  14296. unsigned char TGIEB : 1;
  14297. unsigned char TGIEC : 1;
  14298. unsigned char TGIED : 1;
  14299. unsigned char TCIEV : 1;
  14300. unsigned char : 2;
  14301. unsigned char TTGE : 1;
  14302. #else
  14303. unsigned char TTGE : 1;
  14304. unsigned char : 2;
  14305. unsigned char TCIEV : 1;
  14306. unsigned char TGIED : 1;
  14307. unsigned char TGIEC : 1;
  14308. unsigned char TGIEB : 1;
  14309. unsigned char TGIEA : 1;
  14310. #endif
  14311. } BIT;
  14312. } TIER;
  14313. char wk3[7];
  14314. unsigned short TCNT;
  14315. char wk4[6];
  14316. unsigned short TGRA;
  14317. unsigned short TGRB;
  14318. char wk5[8];
  14319. unsigned short TGRC;
  14320. unsigned short TGRD;
  14321. char wk6[4];
  14322. union {
  14323. unsigned char BYTE;
  14324. struct {
  14325. #ifdef __RX_LITTLE_ENDIAN__
  14326. unsigned char : 7;
  14327. unsigned char TCFD : 1;
  14328. #else
  14329. unsigned char TCFD : 1;
  14330. unsigned char : 7;
  14331. #endif
  14332. } BIT;
  14333. } TSR;
  14334. char wk7[11];
  14335. union {
  14336. unsigned char BYTE;
  14337. struct {
  14338. #ifdef __RX_LITTLE_ENDIAN__
  14339. unsigned char TTSA : 1;
  14340. unsigned char TTSB : 1;
  14341. unsigned char : 6;
  14342. #else
  14343. unsigned char : 6;
  14344. unsigned char TTSB : 1;
  14345. unsigned char TTSA : 1;
  14346. #endif
  14347. } BIT;
  14348. } TBTM;
  14349. char wk8[19];
  14350. union {
  14351. unsigned char BYTE;
  14352. struct {
  14353. #ifdef __RX_LITTLE_ENDIAN__
  14354. unsigned char TPSC2 : 3;
  14355. unsigned char : 5;
  14356. #else
  14357. unsigned char : 5;
  14358. unsigned char TPSC2 : 3;
  14359. #endif
  14360. } BIT;
  14361. } TCR2;
  14362. char wk9[37];
  14363. unsigned short TGRE;
  14364. char wk10[31];
  14365. union {
  14366. unsigned char BYTE;
  14367. struct {
  14368. #ifdef __RX_LITTLE_ENDIAN__
  14369. unsigned char NFAEN : 1;
  14370. unsigned char NFBEN : 1;
  14371. unsigned char NFCEN : 1;
  14372. unsigned char NFDEN : 1;
  14373. unsigned char NFCS : 2;
  14374. unsigned char : 2;
  14375. #else
  14376. unsigned char : 2;
  14377. unsigned char NFCS : 2;
  14378. unsigned char NFDEN : 1;
  14379. unsigned char NFCEN : 1;
  14380. unsigned char NFBEN : 1;
  14381. unsigned char NFAEN : 1;
  14382. #endif
  14383. } BIT;
  14384. } NFCR3;
  14385. } st_mtu3_t;
  14386. typedef struct st_mtu4 {
  14387. char wk0[1];
  14388. union {
  14389. unsigned char BYTE;
  14390. struct {
  14391. #ifdef __RX_LITTLE_ENDIAN__
  14392. unsigned char TPSC : 3;
  14393. unsigned char CKEG : 2;
  14394. unsigned char CCLR : 3;
  14395. #else
  14396. unsigned char CCLR : 3;
  14397. unsigned char CKEG : 2;
  14398. unsigned char TPSC : 3;
  14399. #endif
  14400. } BIT;
  14401. } TCR;
  14402. char wk1[1];
  14403. union {
  14404. unsigned char BYTE;
  14405. struct {
  14406. #ifdef __RX_LITTLE_ENDIAN__
  14407. unsigned char MD : 4;
  14408. unsigned char BFA : 1;
  14409. unsigned char BFB : 1;
  14410. unsigned char : 2;
  14411. #else
  14412. unsigned char : 2;
  14413. unsigned char BFB : 1;
  14414. unsigned char BFA : 1;
  14415. unsigned char MD : 4;
  14416. #endif
  14417. } BIT;
  14418. } TMDR1;
  14419. char wk2[2];
  14420. union {
  14421. unsigned char BYTE;
  14422. struct {
  14423. #ifdef __RX_LITTLE_ENDIAN__
  14424. unsigned char IOA : 4;
  14425. unsigned char IOB : 4;
  14426. #else
  14427. unsigned char IOB : 4;
  14428. unsigned char IOA : 4;
  14429. #endif
  14430. } BIT;
  14431. } TIORH;
  14432. union {
  14433. unsigned char BYTE;
  14434. struct {
  14435. #ifdef __RX_LITTLE_ENDIAN__
  14436. unsigned char IOC : 4;
  14437. unsigned char IOD : 4;
  14438. #else
  14439. unsigned char IOD : 4;
  14440. unsigned char IOC : 4;
  14441. #endif
  14442. } BIT;
  14443. } TIORL;
  14444. char wk3[1];
  14445. union {
  14446. unsigned char BYTE;
  14447. struct {
  14448. #ifdef __RX_LITTLE_ENDIAN__
  14449. unsigned char TGIEA : 1;
  14450. unsigned char TGIEB : 1;
  14451. unsigned char TGIEC : 1;
  14452. unsigned char TGIED : 1;
  14453. unsigned char TCIEV : 1;
  14454. unsigned char : 1;
  14455. unsigned char TTGE2 : 1;
  14456. unsigned char TTGE : 1;
  14457. #else
  14458. unsigned char TTGE : 1;
  14459. unsigned char TTGE2 : 1;
  14460. unsigned char : 1;
  14461. unsigned char TCIEV : 1;
  14462. unsigned char TGIED : 1;
  14463. unsigned char TGIEC : 1;
  14464. unsigned char TGIEB : 1;
  14465. unsigned char TGIEA : 1;
  14466. #endif
  14467. } BIT;
  14468. } TIER;
  14469. char wk4[8];
  14470. unsigned short TCNT;
  14471. char wk5[8];
  14472. unsigned short TGRA;
  14473. unsigned short TGRB;
  14474. char wk6[8];
  14475. unsigned short TGRC;
  14476. unsigned short TGRD;
  14477. char wk7[1];
  14478. union {
  14479. unsigned char BYTE;
  14480. struct {
  14481. #ifdef __RX_LITTLE_ENDIAN__
  14482. unsigned char : 7;
  14483. unsigned char TCFD : 1;
  14484. #else
  14485. unsigned char TCFD : 1;
  14486. unsigned char : 7;
  14487. #endif
  14488. } BIT;
  14489. } TSR;
  14490. char wk8[11];
  14491. union {
  14492. unsigned char BYTE;
  14493. struct {
  14494. #ifdef __RX_LITTLE_ENDIAN__
  14495. unsigned char TTSA : 1;
  14496. unsigned char TTSB : 1;
  14497. unsigned char : 6;
  14498. #else
  14499. unsigned char : 6;
  14500. unsigned char TTSB : 1;
  14501. unsigned char TTSA : 1;
  14502. #endif
  14503. } BIT;
  14504. } TBTM;
  14505. char wk9[6];
  14506. union {
  14507. unsigned short WORD;
  14508. struct {
  14509. #ifdef __RX_LITTLE_ENDIAN__
  14510. unsigned short ITB4VE : 1;
  14511. unsigned short ITB3AE : 1;
  14512. unsigned short ITA4VE : 1;
  14513. unsigned short ITA3AE : 1;
  14514. unsigned short DT4BE : 1;
  14515. unsigned short UT4BE : 1;
  14516. unsigned short DT4AE : 1;
  14517. unsigned short UT4AE : 1;
  14518. unsigned short : 6;
  14519. unsigned short BF : 2;
  14520. #else
  14521. unsigned short BF : 2;
  14522. unsigned short : 6;
  14523. unsigned short UT4AE : 1;
  14524. unsigned short DT4AE : 1;
  14525. unsigned short UT4BE : 1;
  14526. unsigned short DT4BE : 1;
  14527. unsigned short ITA3AE : 1;
  14528. unsigned short ITA4VE : 1;
  14529. unsigned short ITB3AE : 1;
  14530. unsigned short ITB4VE : 1;
  14531. #endif
  14532. } BIT;
  14533. } TADCR;
  14534. char wk10[2];
  14535. unsigned short TADCORA;
  14536. unsigned short TADCORB;
  14537. unsigned short TADCOBRA;
  14538. unsigned short TADCOBRB;
  14539. char wk11[1];
  14540. union {
  14541. unsigned char BYTE;
  14542. struct {
  14543. #ifdef __RX_LITTLE_ENDIAN__
  14544. unsigned char TPSC2 : 3;
  14545. unsigned char : 5;
  14546. #else
  14547. unsigned char : 5;
  14548. unsigned char TPSC2 : 3;
  14549. #endif
  14550. } BIT;
  14551. } TCR2;
  14552. char wk12[38];
  14553. unsigned short TGRE;
  14554. unsigned short TGRF;
  14555. char wk13[28];
  14556. union {
  14557. unsigned char BYTE;
  14558. struct {
  14559. #ifdef __RX_LITTLE_ENDIAN__
  14560. unsigned char NFAEN : 1;
  14561. unsigned char NFBEN : 1;
  14562. unsigned char NFCEN : 1;
  14563. unsigned char NFDEN : 1;
  14564. unsigned char NFCS : 2;
  14565. unsigned char : 2;
  14566. #else
  14567. unsigned char : 2;
  14568. unsigned char NFCS : 2;
  14569. unsigned char NFDEN : 1;
  14570. unsigned char NFCEN : 1;
  14571. unsigned char NFBEN : 1;
  14572. unsigned char NFAEN : 1;
  14573. #endif
  14574. } BIT;
  14575. } NFCR4;
  14576. } st_mtu4_t;
  14577. typedef struct st_mtu5 {
  14578. char wk0[1];
  14579. union {
  14580. unsigned char BYTE;
  14581. struct {
  14582. #ifdef __RX_LITTLE_ENDIAN__
  14583. unsigned char NFUEN : 1;
  14584. unsigned char NFVEN : 1;
  14585. unsigned char NFWEN : 1;
  14586. unsigned char : 1;
  14587. unsigned char NFCS : 2;
  14588. unsigned char : 2;
  14589. #else
  14590. unsigned char : 2;
  14591. unsigned char NFCS : 2;
  14592. unsigned char : 1;
  14593. unsigned char NFWEN : 1;
  14594. unsigned char NFVEN : 1;
  14595. unsigned char NFUEN : 1;
  14596. #endif
  14597. } BIT;
  14598. } NFCR5;
  14599. char wk1[490];
  14600. unsigned short TCNTU;
  14601. unsigned short TGRU;
  14602. union {
  14603. unsigned char BYTE;
  14604. struct {
  14605. #ifdef __RX_LITTLE_ENDIAN__
  14606. unsigned char TPSC : 2;
  14607. unsigned char : 6;
  14608. #else
  14609. unsigned char : 6;
  14610. unsigned char TPSC : 2;
  14611. #endif
  14612. } BIT;
  14613. } TCRU;
  14614. union {
  14615. unsigned char BYTE;
  14616. struct {
  14617. #ifdef __RX_LITTLE_ENDIAN__
  14618. unsigned char TPSC2 : 3;
  14619. unsigned char CKEG : 2;
  14620. unsigned char : 3;
  14621. #else
  14622. unsigned char : 3;
  14623. unsigned char CKEG : 2;
  14624. unsigned char TPSC2 : 3;
  14625. #endif
  14626. } BIT;
  14627. } TCR2U;
  14628. union {
  14629. unsigned char BYTE;
  14630. struct {
  14631. #ifdef __RX_LITTLE_ENDIAN__
  14632. unsigned char IOC : 5;
  14633. unsigned char : 3;
  14634. #else
  14635. unsigned char : 3;
  14636. unsigned char IOC : 5;
  14637. #endif
  14638. } BIT;
  14639. } TIORU;
  14640. char wk2[9];
  14641. unsigned short TCNTV;
  14642. unsigned short TGRV;
  14643. union {
  14644. unsigned char BYTE;
  14645. struct {
  14646. #ifdef __RX_LITTLE_ENDIAN__
  14647. unsigned char TPSC : 2;
  14648. unsigned char : 6;
  14649. #else
  14650. unsigned char : 6;
  14651. unsigned char TPSC : 2;
  14652. #endif
  14653. } BIT;
  14654. } TCRV;
  14655. union {
  14656. unsigned char BYTE;
  14657. struct {
  14658. #ifdef __RX_LITTLE_ENDIAN__
  14659. unsigned char TPSC2 : 3;
  14660. unsigned char CKEG : 2;
  14661. unsigned char : 3;
  14662. #else
  14663. unsigned char : 3;
  14664. unsigned char CKEG : 2;
  14665. unsigned char TPSC2 : 3;
  14666. #endif
  14667. } BIT;
  14668. } TCR2V;
  14669. union {
  14670. unsigned char BYTE;
  14671. struct {
  14672. #ifdef __RX_LITTLE_ENDIAN__
  14673. unsigned char IOC : 5;
  14674. unsigned char : 3;
  14675. #else
  14676. unsigned char : 3;
  14677. unsigned char IOC : 5;
  14678. #endif
  14679. } BIT;
  14680. } TIORV;
  14681. char wk3[9];
  14682. unsigned short TCNTW;
  14683. unsigned short TGRW;
  14684. union {
  14685. unsigned char BYTE;
  14686. struct {
  14687. #ifdef __RX_LITTLE_ENDIAN__
  14688. unsigned char TPSC : 2;
  14689. unsigned char : 6;
  14690. #else
  14691. unsigned char : 6;
  14692. unsigned char TPSC : 2;
  14693. #endif
  14694. } BIT;
  14695. } TCRW;
  14696. union {
  14697. unsigned char BYTE;
  14698. struct {
  14699. #ifdef __RX_LITTLE_ENDIAN__
  14700. unsigned char TPSC2 : 3;
  14701. unsigned char CKEG : 2;
  14702. unsigned char : 3;
  14703. #else
  14704. unsigned char : 3;
  14705. unsigned char CKEG : 2;
  14706. unsigned char TPSC2 : 3;
  14707. #endif
  14708. } BIT;
  14709. } TCR2W;
  14710. union {
  14711. unsigned char BYTE;
  14712. struct {
  14713. #ifdef __RX_LITTLE_ENDIAN__
  14714. unsigned char IOC : 5;
  14715. unsigned char : 3;
  14716. #else
  14717. unsigned char : 3;
  14718. unsigned char IOC : 5;
  14719. #endif
  14720. } BIT;
  14721. } TIORW;
  14722. char wk4[11];
  14723. union {
  14724. unsigned char BYTE;
  14725. struct {
  14726. #ifdef __RX_LITTLE_ENDIAN__
  14727. unsigned char TGIE5W : 1;
  14728. unsigned char TGIE5V : 1;
  14729. unsigned char TGIE5U : 1;
  14730. unsigned char : 5;
  14731. #else
  14732. unsigned char : 5;
  14733. unsigned char TGIE5U : 1;
  14734. unsigned char TGIE5V : 1;
  14735. unsigned char TGIE5W : 1;
  14736. #endif
  14737. } BIT;
  14738. } TIER;
  14739. char wk5[1];
  14740. union {
  14741. unsigned char BYTE;
  14742. struct {
  14743. #ifdef __RX_LITTLE_ENDIAN__
  14744. unsigned char CSTW5 : 1;
  14745. unsigned char CSTV5 : 1;
  14746. unsigned char CSTU5 : 1;
  14747. unsigned char : 5;
  14748. #else
  14749. unsigned char : 5;
  14750. unsigned char CSTU5 : 1;
  14751. unsigned char CSTV5 : 1;
  14752. unsigned char CSTW5 : 1;
  14753. #endif
  14754. } BIT;
  14755. } TSTR;
  14756. char wk6[1];
  14757. union {
  14758. unsigned char BYTE;
  14759. struct {
  14760. #ifdef __RX_LITTLE_ENDIAN__
  14761. unsigned char CMPCLR5W : 1;
  14762. unsigned char CMPCLR5V : 1;
  14763. unsigned char CMPCLR5U : 1;
  14764. unsigned char : 5;
  14765. #else
  14766. unsigned char : 5;
  14767. unsigned char CMPCLR5U : 1;
  14768. unsigned char CMPCLR5V : 1;
  14769. unsigned char CMPCLR5W : 1;
  14770. #endif
  14771. } BIT;
  14772. } TCNTCMPCLR;
  14773. } st_mtu5_t;
  14774. typedef struct st_mtu6 {
  14775. union {
  14776. unsigned char BYTE;
  14777. struct {
  14778. #ifdef __RX_LITTLE_ENDIAN__
  14779. unsigned char TPSC : 3;
  14780. unsigned char CKEG : 2;
  14781. unsigned char CCLR : 3;
  14782. #else
  14783. unsigned char CCLR : 3;
  14784. unsigned char CKEG : 2;
  14785. unsigned char TPSC : 3;
  14786. #endif
  14787. } BIT;
  14788. } TCR;
  14789. char wk0[1];
  14790. union {
  14791. unsigned char BYTE;
  14792. struct {
  14793. #ifdef __RX_LITTLE_ENDIAN__
  14794. unsigned char MD : 4;
  14795. unsigned char BFA : 1;
  14796. unsigned char BFB : 1;
  14797. unsigned char : 2;
  14798. #else
  14799. unsigned char : 2;
  14800. unsigned char BFB : 1;
  14801. unsigned char BFA : 1;
  14802. unsigned char MD : 4;
  14803. #endif
  14804. } BIT;
  14805. } TMDR1;
  14806. char wk1[1];
  14807. union {
  14808. unsigned char BYTE;
  14809. struct {
  14810. #ifdef __RX_LITTLE_ENDIAN__
  14811. unsigned char IOA : 4;
  14812. unsigned char IOB : 4;
  14813. #else
  14814. unsigned char IOB : 4;
  14815. unsigned char IOA : 4;
  14816. #endif
  14817. } BIT;
  14818. } TIORH;
  14819. union {
  14820. unsigned char BYTE;
  14821. struct {
  14822. #ifdef __RX_LITTLE_ENDIAN__
  14823. unsigned char IOC : 4;
  14824. unsigned char IOD : 4;
  14825. #else
  14826. unsigned char IOD : 4;
  14827. unsigned char IOC : 4;
  14828. #endif
  14829. } BIT;
  14830. } TIORL;
  14831. char wk2[2];
  14832. union {
  14833. unsigned char BYTE;
  14834. struct {
  14835. #ifdef __RX_LITTLE_ENDIAN__
  14836. unsigned char TGIEA : 1;
  14837. unsigned char TGIEB : 1;
  14838. unsigned char TGIEC : 1;
  14839. unsigned char TGIED : 1;
  14840. unsigned char TCIEV : 1;
  14841. unsigned char : 2;
  14842. unsigned char TTGE : 1;
  14843. #else
  14844. unsigned char TTGE : 1;
  14845. unsigned char : 2;
  14846. unsigned char TCIEV : 1;
  14847. unsigned char TGIED : 1;
  14848. unsigned char TGIEC : 1;
  14849. unsigned char TGIEB : 1;
  14850. unsigned char TGIEA : 1;
  14851. #endif
  14852. } BIT;
  14853. } TIER;
  14854. char wk3[7];
  14855. unsigned short TCNT;
  14856. char wk4[6];
  14857. unsigned short TGRA;
  14858. unsigned short TGRB;
  14859. char wk5[8];
  14860. unsigned short TGRC;
  14861. unsigned short TGRD;
  14862. char wk6[4];
  14863. union {
  14864. unsigned char BYTE;
  14865. struct {
  14866. #ifdef __RX_LITTLE_ENDIAN__
  14867. unsigned char : 7;
  14868. unsigned char TCFD : 1;
  14869. #else
  14870. unsigned char TCFD : 1;
  14871. unsigned char : 7;
  14872. #endif
  14873. } BIT;
  14874. } TSR;
  14875. char wk7[11];
  14876. union {
  14877. unsigned char BYTE;
  14878. struct {
  14879. #ifdef __RX_LITTLE_ENDIAN__
  14880. unsigned char TTSA : 1;
  14881. unsigned char TTSB : 1;
  14882. unsigned char : 6;
  14883. #else
  14884. unsigned char : 6;
  14885. unsigned char TTSB : 1;
  14886. unsigned char TTSA : 1;
  14887. #endif
  14888. } BIT;
  14889. } TBTM;
  14890. char wk8[19];
  14891. union {
  14892. unsigned char BYTE;
  14893. struct {
  14894. #ifdef __RX_LITTLE_ENDIAN__
  14895. unsigned char TPSC2 : 3;
  14896. unsigned char : 5;
  14897. #else
  14898. unsigned char : 5;
  14899. unsigned char TPSC2 : 3;
  14900. #endif
  14901. } BIT;
  14902. } TCR2;
  14903. char wk9[3];
  14904. union {
  14905. unsigned char BYTE;
  14906. struct {
  14907. #ifdef __RX_LITTLE_ENDIAN__
  14908. unsigned char CE2B : 1;
  14909. unsigned char CE2A : 1;
  14910. unsigned char CE1B : 1;
  14911. unsigned char CE1A : 1;
  14912. unsigned char CE0D : 1;
  14913. unsigned char CE0C : 1;
  14914. unsigned char CE0B : 1;
  14915. unsigned char CE0A : 1;
  14916. #else
  14917. unsigned char CE0A : 1;
  14918. unsigned char CE0B : 1;
  14919. unsigned char CE0C : 1;
  14920. unsigned char CE0D : 1;
  14921. unsigned char CE1A : 1;
  14922. unsigned char CE1B : 1;
  14923. unsigned char CE2A : 1;
  14924. unsigned char CE2B : 1;
  14925. #endif
  14926. } BIT;
  14927. } TSYCR;
  14928. char wk10[33];
  14929. unsigned short TGRE;
  14930. char wk11[31];
  14931. union {
  14932. unsigned char BYTE;
  14933. struct {
  14934. #ifdef __RX_LITTLE_ENDIAN__
  14935. unsigned char NFAEN : 1;
  14936. unsigned char NFBEN : 1;
  14937. unsigned char NFCEN : 1;
  14938. unsigned char NFDEN : 1;
  14939. unsigned char NFCS : 2;
  14940. unsigned char : 2;
  14941. #else
  14942. unsigned char : 2;
  14943. unsigned char NFCS : 2;
  14944. unsigned char NFDEN : 1;
  14945. unsigned char NFCEN : 1;
  14946. unsigned char NFBEN : 1;
  14947. unsigned char NFAEN : 1;
  14948. #endif
  14949. } BIT;
  14950. } NFCR6;
  14951. } st_mtu6_t;
  14952. typedef struct st_mtu7 {
  14953. char wk0[1];
  14954. union {
  14955. unsigned char BYTE;
  14956. struct {
  14957. #ifdef __RX_LITTLE_ENDIAN__
  14958. unsigned char TPSC : 3;
  14959. unsigned char CKEG : 2;
  14960. unsigned char CCLR : 3;
  14961. #else
  14962. unsigned char CCLR : 3;
  14963. unsigned char CKEG : 2;
  14964. unsigned char TPSC : 3;
  14965. #endif
  14966. } BIT;
  14967. } TCR;
  14968. char wk1[1];
  14969. union {
  14970. unsigned char BYTE;
  14971. struct {
  14972. #ifdef __RX_LITTLE_ENDIAN__
  14973. unsigned char MD : 4;
  14974. unsigned char BFA : 1;
  14975. unsigned char BFB : 1;
  14976. unsigned char : 2;
  14977. #else
  14978. unsigned char : 2;
  14979. unsigned char BFB : 1;
  14980. unsigned char BFA : 1;
  14981. unsigned char MD : 4;
  14982. #endif
  14983. } BIT;
  14984. } TMDR1;
  14985. char wk2[2];
  14986. union {
  14987. unsigned char BYTE;
  14988. struct {
  14989. #ifdef __RX_LITTLE_ENDIAN__
  14990. unsigned char IOA : 4;
  14991. unsigned char IOB : 4;
  14992. #else
  14993. unsigned char IOB : 4;
  14994. unsigned char IOA : 4;
  14995. #endif
  14996. } BIT;
  14997. } TIORH;
  14998. union {
  14999. unsigned char BYTE;
  15000. struct {
  15001. #ifdef __RX_LITTLE_ENDIAN__
  15002. unsigned char IOC : 4;
  15003. unsigned char IOD : 4;
  15004. #else
  15005. unsigned char IOD : 4;
  15006. unsigned char IOC : 4;
  15007. #endif
  15008. } BIT;
  15009. } TIORL;
  15010. char wk3[1];
  15011. union {
  15012. unsigned char BYTE;
  15013. struct {
  15014. #ifdef __RX_LITTLE_ENDIAN__
  15015. unsigned char TGIEA : 1;
  15016. unsigned char TGIEB : 1;
  15017. unsigned char TGIEC : 1;
  15018. unsigned char TGIED : 1;
  15019. unsigned char TCIEV : 1;
  15020. unsigned char : 1;
  15021. unsigned char TTGE2 : 1;
  15022. unsigned char TTGE : 1;
  15023. #else
  15024. unsigned char TTGE : 1;
  15025. unsigned char TTGE2 : 1;
  15026. unsigned char : 1;
  15027. unsigned char TCIEV : 1;
  15028. unsigned char TGIED : 1;
  15029. unsigned char TGIEC : 1;
  15030. unsigned char TGIEB : 1;
  15031. unsigned char TGIEA : 1;
  15032. #endif
  15033. } BIT;
  15034. } TIER;
  15035. char wk4[8];
  15036. unsigned short TCNT;
  15037. char wk5[8];
  15038. unsigned short TGRA;
  15039. unsigned short TGRB;
  15040. char wk6[8];
  15041. unsigned short TGRC;
  15042. unsigned short TGRD;
  15043. char wk7[1];
  15044. union {
  15045. unsigned char BYTE;
  15046. struct {
  15047. #ifdef __RX_LITTLE_ENDIAN__
  15048. unsigned char : 7;
  15049. unsigned char TCFD : 1;
  15050. #else
  15051. unsigned char TCFD : 1;
  15052. unsigned char : 7;
  15053. #endif
  15054. } BIT;
  15055. } TSR;
  15056. char wk8[11];
  15057. union {
  15058. unsigned char BYTE;
  15059. struct {
  15060. #ifdef __RX_LITTLE_ENDIAN__
  15061. unsigned char TTSA : 1;
  15062. unsigned char TTSB : 1;
  15063. unsigned char : 6;
  15064. #else
  15065. unsigned char : 6;
  15066. unsigned char TTSB : 1;
  15067. unsigned char TTSA : 1;
  15068. #endif
  15069. } BIT;
  15070. } TBTM;
  15071. char wk9[6];
  15072. union {
  15073. unsigned short WORD;
  15074. struct {
  15075. #ifdef __RX_LITTLE_ENDIAN__
  15076. unsigned short ITB7VE : 1;
  15077. unsigned short ITB6AE : 1;
  15078. unsigned short ITA7VE : 1;
  15079. unsigned short ITA6AE : 1;
  15080. unsigned short DT7BE : 1;
  15081. unsigned short UT7BE : 1;
  15082. unsigned short DT7AE : 1;
  15083. unsigned short UT7AE : 1;
  15084. unsigned short : 6;
  15085. unsigned short BF : 2;
  15086. #else
  15087. unsigned short BF : 2;
  15088. unsigned short : 6;
  15089. unsigned short UT7AE : 1;
  15090. unsigned short DT7AE : 1;
  15091. unsigned short UT7BE : 1;
  15092. unsigned short DT7BE : 1;
  15093. unsigned short ITA6AE : 1;
  15094. unsigned short ITA7VE : 1;
  15095. unsigned short ITB6AE : 1;
  15096. unsigned short ITB7VE : 1;
  15097. #endif
  15098. } BIT;
  15099. } TADCR;
  15100. char wk10[2];
  15101. unsigned short TADCORA;
  15102. unsigned short TADCORB;
  15103. unsigned short TADCOBRA;
  15104. unsigned short TADCOBRB;
  15105. char wk11[1];
  15106. union {
  15107. unsigned char BYTE;
  15108. struct {
  15109. #ifdef __RX_LITTLE_ENDIAN__
  15110. unsigned char TPSC2 : 3;
  15111. unsigned char : 5;
  15112. #else
  15113. unsigned char : 5;
  15114. unsigned char TPSC2 : 3;
  15115. #endif
  15116. } BIT;
  15117. } TCR2;
  15118. char wk12[38];
  15119. unsigned short TGRE;
  15120. unsigned short TGRF;
  15121. char wk13[28];
  15122. union {
  15123. unsigned char BYTE;
  15124. struct {
  15125. #ifdef __RX_LITTLE_ENDIAN__
  15126. unsigned char NFAEN : 1;
  15127. unsigned char NFBEN : 1;
  15128. unsigned char NFCEN : 1;
  15129. unsigned char NFDEN : 1;
  15130. unsigned char NFCS : 2;
  15131. unsigned char : 2;
  15132. #else
  15133. unsigned char : 2;
  15134. unsigned char NFCS : 2;
  15135. unsigned char NFDEN : 1;
  15136. unsigned char NFCEN : 1;
  15137. unsigned char NFBEN : 1;
  15138. unsigned char NFAEN : 1;
  15139. #endif
  15140. } BIT;
  15141. } NFCR7;
  15142. } st_mtu7_t;
  15143. typedef struct st_mtu8 {
  15144. union {
  15145. unsigned char BYTE;
  15146. struct {
  15147. #ifdef __RX_LITTLE_ENDIAN__
  15148. unsigned char NFAEN : 1;
  15149. unsigned char NFBEN : 1;
  15150. unsigned char NFCEN : 1;
  15151. unsigned char NFDEN : 1;
  15152. unsigned char NFCS : 2;
  15153. unsigned char : 2;
  15154. #else
  15155. unsigned char : 2;
  15156. unsigned char NFCS : 2;
  15157. unsigned char NFDEN : 1;
  15158. unsigned char NFCEN : 1;
  15159. unsigned char NFBEN : 1;
  15160. unsigned char NFAEN : 1;
  15161. #endif
  15162. } BIT;
  15163. } NFCR8;
  15164. char wk0[871];
  15165. union {
  15166. unsigned char BYTE;
  15167. struct {
  15168. #ifdef __RX_LITTLE_ENDIAN__
  15169. unsigned char TPSC : 3;
  15170. unsigned char CKEG : 2;
  15171. unsigned char CCLR : 3;
  15172. #else
  15173. unsigned char CCLR : 3;
  15174. unsigned char CKEG : 2;
  15175. unsigned char TPSC : 3;
  15176. #endif
  15177. } BIT;
  15178. } TCR;
  15179. union {
  15180. unsigned char BYTE;
  15181. struct {
  15182. #ifdef __RX_LITTLE_ENDIAN__
  15183. unsigned char MD : 4;
  15184. unsigned char BFA : 1;
  15185. unsigned char BFB : 1;
  15186. unsigned char : 2;
  15187. #else
  15188. unsigned char : 2;
  15189. unsigned char BFB : 1;
  15190. unsigned char BFA : 1;
  15191. unsigned char MD : 4;
  15192. #endif
  15193. } BIT;
  15194. } TMDR1;
  15195. union {
  15196. unsigned char BYTE;
  15197. struct {
  15198. #ifdef __RX_LITTLE_ENDIAN__
  15199. unsigned char IOA : 4;
  15200. unsigned char IOB : 4;
  15201. #else
  15202. unsigned char IOB : 4;
  15203. unsigned char IOA : 4;
  15204. #endif
  15205. } BIT;
  15206. } TIORH;
  15207. union {
  15208. unsigned char BYTE;
  15209. struct {
  15210. #ifdef __RX_LITTLE_ENDIAN__
  15211. unsigned char IOC : 4;
  15212. unsigned char IOD : 4;
  15213. #else
  15214. unsigned char IOD : 4;
  15215. unsigned char IOC : 4;
  15216. #endif
  15217. } BIT;
  15218. } TIORL;
  15219. union {
  15220. unsigned char BYTE;
  15221. struct {
  15222. #ifdef __RX_LITTLE_ENDIAN__
  15223. unsigned char TGIEA : 1;
  15224. unsigned char TGIEB : 1;
  15225. unsigned char TGIEC : 1;
  15226. unsigned char TGIED : 1;
  15227. unsigned char TCIEV : 1;
  15228. unsigned char : 3;
  15229. #else
  15230. unsigned char : 3;
  15231. unsigned char TCIEV : 1;
  15232. unsigned char TGIED : 1;
  15233. unsigned char TGIEC : 1;
  15234. unsigned char TGIEB : 1;
  15235. unsigned char TGIEA : 1;
  15236. #endif
  15237. } BIT;
  15238. } TIER;
  15239. char wk1[1];
  15240. union {
  15241. unsigned char BYTE;
  15242. struct {
  15243. #ifdef __RX_LITTLE_ENDIAN__
  15244. unsigned char TPSC2 : 3;
  15245. unsigned char : 5;
  15246. #else
  15247. unsigned char : 5;
  15248. unsigned char TPSC2 : 3;
  15249. #endif
  15250. } BIT;
  15251. } TCR2;
  15252. char wk2[1];
  15253. unsigned long TCNT;
  15254. unsigned long TGRA;
  15255. unsigned long TGRB;
  15256. unsigned long TGRC;
  15257. unsigned long TGRD;
  15258. } st_mtu8_t;
  15259. typedef struct st_pdc {
  15260. union {
  15261. unsigned long LONG;
  15262. struct {
  15263. #ifdef __RX_LITTLE_ENDIAN__
  15264. unsigned long PCKE : 1;
  15265. unsigned long VPS : 1;
  15266. unsigned long HPS : 1;
  15267. unsigned long PRST : 1;
  15268. unsigned long DFIE : 1;
  15269. unsigned long FEIE : 1;
  15270. unsigned long OVIE : 1;
  15271. unsigned long UDRIE : 1;
  15272. unsigned long VERIE : 1;
  15273. unsigned long HERIE : 1;
  15274. unsigned long PCKOE : 1;
  15275. unsigned long PCKDIV : 3;
  15276. unsigned long EDS : 1;
  15277. unsigned long : 17;
  15278. #else
  15279. unsigned long : 17;
  15280. unsigned long EDS : 1;
  15281. unsigned long PCKDIV : 3;
  15282. unsigned long PCKOE : 1;
  15283. unsigned long HERIE : 1;
  15284. unsigned long VERIE : 1;
  15285. unsigned long UDRIE : 1;
  15286. unsigned long OVIE : 1;
  15287. unsigned long FEIE : 1;
  15288. unsigned long DFIE : 1;
  15289. unsigned long PRST : 1;
  15290. unsigned long HPS : 1;
  15291. unsigned long VPS : 1;
  15292. unsigned long PCKE : 1;
  15293. #endif
  15294. } BIT;
  15295. } PCCR0;
  15296. union {
  15297. unsigned long LONG;
  15298. struct {
  15299. #ifdef __RX_LITTLE_ENDIAN__
  15300. unsigned long PCE : 1;
  15301. unsigned long : 31;
  15302. #else
  15303. unsigned long : 31;
  15304. unsigned long PCE : 1;
  15305. #endif
  15306. } BIT;
  15307. } PCCR1;
  15308. union {
  15309. unsigned long LONG;
  15310. struct {
  15311. #ifdef __RX_LITTLE_ENDIAN__
  15312. unsigned long FBSY : 1;
  15313. unsigned long FEMPF : 1;
  15314. unsigned long FEF : 1;
  15315. unsigned long OVRF : 1;
  15316. unsigned long UDRF : 1;
  15317. unsigned long VERF : 1;
  15318. unsigned long HERF : 1;
  15319. unsigned long : 25;
  15320. #else
  15321. unsigned long : 25;
  15322. unsigned long HERF : 1;
  15323. unsigned long VERF : 1;
  15324. unsigned long UDRF : 1;
  15325. unsigned long OVRF : 1;
  15326. unsigned long FEF : 1;
  15327. unsigned long FEMPF : 1;
  15328. unsigned long FBSY : 1;
  15329. #endif
  15330. } BIT;
  15331. } PCSR;
  15332. union {
  15333. unsigned long LONG;
  15334. struct {
  15335. #ifdef __RX_LITTLE_ENDIAN__
  15336. unsigned long VSYNC : 1;
  15337. unsigned long HSYNC : 1;
  15338. unsigned long : 30;
  15339. #else
  15340. unsigned long : 30;
  15341. unsigned long HSYNC : 1;
  15342. unsigned long VSYNC : 1;
  15343. #endif
  15344. } BIT;
  15345. } PCMONR;
  15346. union {
  15347. unsigned long LONG;
  15348. } PCDR;
  15349. union {
  15350. unsigned long LONG;
  15351. struct {
  15352. #ifdef __RX_LITTLE_ENDIAN__
  15353. unsigned long VST : 12;
  15354. unsigned long : 4;
  15355. unsigned long VSZ : 12;
  15356. unsigned long : 4;
  15357. #else
  15358. unsigned long : 4;
  15359. unsigned long VSZ : 12;
  15360. unsigned long : 4;
  15361. unsigned long VST : 12;
  15362. #endif
  15363. } BIT;
  15364. } VCR;
  15365. union {
  15366. unsigned long LONG;
  15367. struct {
  15368. #ifdef __RX_LITTLE_ENDIAN__
  15369. unsigned long HST : 12;
  15370. unsigned long : 4;
  15371. unsigned long HSZ : 12;
  15372. unsigned long : 4;
  15373. #else
  15374. unsigned long : 4;
  15375. unsigned long HSZ : 12;
  15376. unsigned long : 4;
  15377. unsigned long HST : 12;
  15378. #endif
  15379. } BIT;
  15380. } HCR;
  15381. } st_pdc_t;
  15382. typedef struct st_poe {
  15383. union {
  15384. unsigned short WORD;
  15385. struct {
  15386. #ifdef __RX_LITTLE_ENDIAN__
  15387. unsigned short POE0M : 2;
  15388. unsigned short : 6;
  15389. unsigned short PIE1 : 1;
  15390. unsigned short : 3;
  15391. unsigned short POE0F : 1;
  15392. unsigned short : 3;
  15393. #else
  15394. unsigned short : 3;
  15395. unsigned short POE0F : 1;
  15396. unsigned short : 3;
  15397. unsigned short PIE1 : 1;
  15398. unsigned short : 6;
  15399. unsigned short POE0M : 2;
  15400. #endif
  15401. } BIT;
  15402. } ICSR1;
  15403. union {
  15404. unsigned short WORD;
  15405. struct {
  15406. #ifdef __RX_LITTLE_ENDIAN__
  15407. unsigned short : 8;
  15408. unsigned short OIE1 : 1;
  15409. unsigned short OCE1 : 1;
  15410. unsigned short : 5;
  15411. unsigned short OSF1 : 1;
  15412. #else
  15413. unsigned short OSF1 : 1;
  15414. unsigned short : 5;
  15415. unsigned short OCE1 : 1;
  15416. unsigned short OIE1 : 1;
  15417. unsigned short : 8;
  15418. #endif
  15419. } BIT;
  15420. } OCSR1;
  15421. union {
  15422. unsigned short WORD;
  15423. struct {
  15424. #ifdef __RX_LITTLE_ENDIAN__
  15425. unsigned short POE4M : 2;
  15426. unsigned short : 6;
  15427. unsigned short PIE2 : 1;
  15428. unsigned short : 3;
  15429. unsigned short POE4F : 1;
  15430. unsigned short : 3;
  15431. #else
  15432. unsigned short : 3;
  15433. unsigned short POE4F : 1;
  15434. unsigned short : 3;
  15435. unsigned short PIE2 : 1;
  15436. unsigned short : 6;
  15437. unsigned short POE4M : 2;
  15438. #endif
  15439. } BIT;
  15440. } ICSR2;
  15441. union {
  15442. unsigned short WORD;
  15443. struct {
  15444. #ifdef __RX_LITTLE_ENDIAN__
  15445. unsigned short : 8;
  15446. unsigned short OIE2 : 1;
  15447. unsigned short OCE2 : 1;
  15448. unsigned short : 5;
  15449. unsigned short OSF2 : 1;
  15450. #else
  15451. unsigned short OSF2 : 1;
  15452. unsigned short : 5;
  15453. unsigned short OCE2 : 1;
  15454. unsigned short OIE2 : 1;
  15455. unsigned short : 8;
  15456. #endif
  15457. } BIT;
  15458. } OCSR2;
  15459. union {
  15460. unsigned short WORD;
  15461. struct {
  15462. #ifdef __RX_LITTLE_ENDIAN__
  15463. unsigned short POE8M : 2;
  15464. unsigned short : 6;
  15465. unsigned short PIE3 : 1;
  15466. unsigned short POE8E : 1;
  15467. unsigned short : 2;
  15468. unsigned short POE8F : 1;
  15469. unsigned short : 3;
  15470. #else
  15471. unsigned short : 3;
  15472. unsigned short POE8F : 1;
  15473. unsigned short : 2;
  15474. unsigned short POE8E : 1;
  15475. unsigned short PIE3 : 1;
  15476. unsigned short : 6;
  15477. unsigned short POE8M : 2;
  15478. #endif
  15479. } BIT;
  15480. } ICSR3;
  15481. union {
  15482. unsigned char BYTE;
  15483. struct {
  15484. #ifdef __RX_LITTLE_ENDIAN__
  15485. unsigned char MTUCH34HIZ : 1;
  15486. unsigned char MTUCH67HIZ : 1;
  15487. unsigned char MTUCH0HIZ : 1;
  15488. unsigned char : 5;
  15489. #else
  15490. unsigned char : 5;
  15491. unsigned char MTUCH0HIZ : 1;
  15492. unsigned char MTUCH67HIZ : 1;
  15493. unsigned char MTUCH34HIZ : 1;
  15494. #endif
  15495. } BIT;
  15496. } SPOER;
  15497. union {
  15498. unsigned char BYTE;
  15499. struct {
  15500. #ifdef __RX_LITTLE_ENDIAN__
  15501. unsigned char MTU0AZE : 1;
  15502. unsigned char MTU0BZE : 1;
  15503. unsigned char MTU0CZE : 1;
  15504. unsigned char MTU0DZE : 1;
  15505. unsigned char : 4;
  15506. #else
  15507. unsigned char : 4;
  15508. unsigned char MTU0DZE : 1;
  15509. unsigned char MTU0CZE : 1;
  15510. unsigned char MTU0BZE : 1;
  15511. unsigned char MTU0AZE : 1;
  15512. #endif
  15513. } BIT;
  15514. } POECR1;
  15515. union {
  15516. unsigned short WORD;
  15517. struct {
  15518. #ifdef __RX_LITTLE_ENDIAN__
  15519. unsigned short MTU7BDZE : 1;
  15520. unsigned short MTU7ACZE : 1;
  15521. unsigned short MTU6BDZE : 1;
  15522. unsigned short : 5;
  15523. unsigned short MTU4BDZE : 1;
  15524. unsigned short MTU4ACZE : 1;
  15525. unsigned short MTU3BDZE : 1;
  15526. unsigned short : 5;
  15527. #else
  15528. unsigned short : 5;
  15529. unsigned short MTU3BDZE : 1;
  15530. unsigned short MTU4ACZE : 1;
  15531. unsigned short MTU4BDZE : 1;
  15532. unsigned short : 5;
  15533. unsigned short MTU6BDZE : 1;
  15534. unsigned short MTU7ACZE : 1;
  15535. unsigned short MTU7BDZE : 1;
  15536. #endif
  15537. } BIT;
  15538. } POECR2;
  15539. char wk0[2];
  15540. union {
  15541. unsigned short WORD;
  15542. struct {
  15543. #ifdef __RX_LITTLE_ENDIAN__
  15544. unsigned short : 2;
  15545. unsigned short IC2ADDMT34ZE : 1;
  15546. unsigned short IC3ADDMT34ZE : 1;
  15547. unsigned short IC4ADDMT34ZE : 1;
  15548. unsigned short IC5ADDMT34ZE : 1;
  15549. unsigned short : 3;
  15550. unsigned short IC1ADDMT67ZE : 1;
  15551. unsigned short : 1;
  15552. unsigned short IC3ADDMT67ZE : 1;
  15553. unsigned short IC4ADDMT67ZE : 1;
  15554. unsigned short IC5ADDMT67ZE : 1;
  15555. unsigned short : 2;
  15556. #else
  15557. unsigned short : 2;
  15558. unsigned short IC5ADDMT67ZE : 1;
  15559. unsigned short IC4ADDMT67ZE : 1;
  15560. unsigned short IC3ADDMT67ZE : 1;
  15561. unsigned short : 1;
  15562. unsigned short IC1ADDMT67ZE : 1;
  15563. unsigned short : 3;
  15564. unsigned short IC5ADDMT34ZE : 1;
  15565. unsigned short IC4ADDMT34ZE : 1;
  15566. unsigned short IC3ADDMT34ZE : 1;
  15567. unsigned short IC2ADDMT34ZE : 1;
  15568. unsigned short : 2;
  15569. #endif
  15570. } BIT;
  15571. } POECR4;
  15572. union {
  15573. unsigned short WORD;
  15574. struct {
  15575. #ifdef __RX_LITTLE_ENDIAN__
  15576. unsigned short : 1;
  15577. unsigned short IC1ADDMT0ZE : 1;
  15578. unsigned short IC2ADDMT0ZE : 1;
  15579. unsigned short : 1;
  15580. unsigned short IC4ADDMT0ZE : 1;
  15581. unsigned short IC5ADDMT0ZE : 1;
  15582. unsigned short : 10;
  15583. #else
  15584. unsigned short : 10;
  15585. unsigned short IC5ADDMT0ZE : 1;
  15586. unsigned short IC4ADDMT0ZE : 1;
  15587. unsigned short : 1;
  15588. unsigned short IC2ADDMT0ZE : 1;
  15589. unsigned short IC1ADDMT0ZE : 1;
  15590. unsigned short : 1;
  15591. #endif
  15592. } BIT;
  15593. } POECR5;
  15594. char wk1[2];
  15595. union {
  15596. unsigned short WORD;
  15597. struct {
  15598. #ifdef __RX_LITTLE_ENDIAN__
  15599. unsigned short POE10M : 2;
  15600. unsigned short : 6;
  15601. unsigned short PIE4 : 1;
  15602. unsigned short POE10E : 1;
  15603. unsigned short : 2;
  15604. unsigned short POE10F : 1;
  15605. unsigned short : 3;
  15606. #else
  15607. unsigned short : 3;
  15608. unsigned short POE10F : 1;
  15609. unsigned short : 2;
  15610. unsigned short POE10E : 1;
  15611. unsigned short PIE4 : 1;
  15612. unsigned short : 6;
  15613. unsigned short POE10M : 2;
  15614. #endif
  15615. } BIT;
  15616. } ICSR4;
  15617. union {
  15618. unsigned short WORD;
  15619. struct {
  15620. #ifdef __RX_LITTLE_ENDIAN__
  15621. unsigned short POE11M : 2;
  15622. unsigned short : 6;
  15623. unsigned short PIE5 : 1;
  15624. unsigned short POE11E : 1;
  15625. unsigned short : 2;
  15626. unsigned short POE11F : 1;
  15627. unsigned short : 3;
  15628. #else
  15629. unsigned short : 3;
  15630. unsigned short POE11F : 1;
  15631. unsigned short : 2;
  15632. unsigned short POE11E : 1;
  15633. unsigned short PIE5 : 1;
  15634. unsigned short : 6;
  15635. unsigned short POE11M : 2;
  15636. #endif
  15637. } BIT;
  15638. } ICSR5;
  15639. union {
  15640. unsigned short WORD;
  15641. struct {
  15642. #ifdef __RX_LITTLE_ENDIAN__
  15643. unsigned short OLSG0A : 1;
  15644. unsigned short OLSG0B : 1;
  15645. unsigned short OLSG1A : 1;
  15646. unsigned short OLSG1B : 1;
  15647. unsigned short OLSG2A : 1;
  15648. unsigned short OLSG2B : 1;
  15649. unsigned short : 1;
  15650. unsigned short OLSEN : 1;
  15651. unsigned short : 8;
  15652. #else
  15653. unsigned short : 8;
  15654. unsigned short OLSEN : 1;
  15655. unsigned short : 1;
  15656. unsigned short OLSG2B : 1;
  15657. unsigned short OLSG2A : 1;
  15658. unsigned short OLSG1B : 1;
  15659. unsigned short OLSG1A : 1;
  15660. unsigned short OLSG0B : 1;
  15661. unsigned short OLSG0A : 1;
  15662. #endif
  15663. } BIT;
  15664. } ALR1;
  15665. union {
  15666. unsigned short WORD;
  15667. struct {
  15668. #ifdef __RX_LITTLE_ENDIAN__
  15669. unsigned short : 9;
  15670. unsigned short OSTSTE : 1;
  15671. unsigned short : 2;
  15672. unsigned short OSTSTF : 1;
  15673. unsigned short : 3;
  15674. #else
  15675. unsigned short : 3;
  15676. unsigned short OSTSTF : 1;
  15677. unsigned short : 2;
  15678. unsigned short OSTSTE : 1;
  15679. unsigned short : 9;
  15680. #endif
  15681. } BIT;
  15682. } ICSR6;
  15683. char wk2[6];
  15684. union {
  15685. unsigned char BYTE;
  15686. struct {
  15687. #ifdef __RX_LITTLE_ENDIAN__
  15688. unsigned char M0ASEL : 4;
  15689. unsigned char M0BSEL : 4;
  15690. #else
  15691. unsigned char M0BSEL : 4;
  15692. unsigned char M0ASEL : 4;
  15693. #endif
  15694. } BIT;
  15695. } M0SELR1;
  15696. union {
  15697. unsigned char BYTE;
  15698. struct {
  15699. #ifdef __RX_LITTLE_ENDIAN__
  15700. unsigned char M0CSEL : 4;
  15701. unsigned char M0DSEL : 4;
  15702. #else
  15703. unsigned char M0DSEL : 4;
  15704. unsigned char M0CSEL : 4;
  15705. #endif
  15706. } BIT;
  15707. } M0SELR2;
  15708. union {
  15709. unsigned char BYTE;
  15710. struct {
  15711. #ifdef __RX_LITTLE_ENDIAN__
  15712. unsigned char M3BSEL : 4;
  15713. unsigned char M3DSEL : 4;
  15714. #else
  15715. unsigned char M3DSEL : 4;
  15716. unsigned char M3BSEL : 4;
  15717. #endif
  15718. } BIT;
  15719. } M3SELR;
  15720. union {
  15721. unsigned char BYTE;
  15722. struct {
  15723. #ifdef __RX_LITTLE_ENDIAN__
  15724. unsigned char M4ASEL : 4;
  15725. unsigned char M4CSEL : 4;
  15726. #else
  15727. unsigned char M4CSEL : 4;
  15728. unsigned char M4ASEL : 4;
  15729. #endif
  15730. } BIT;
  15731. } M4SELR1;
  15732. union {
  15733. unsigned char BYTE;
  15734. struct {
  15735. #ifdef __RX_LITTLE_ENDIAN__
  15736. unsigned char M4BSEL : 4;
  15737. unsigned char M4DSEL : 4;
  15738. #else
  15739. unsigned char M4DSEL : 4;
  15740. unsigned char M4BSEL : 4;
  15741. #endif
  15742. } BIT;
  15743. } M4SELR2;
  15744. char wk3[1];
  15745. union {
  15746. unsigned char BYTE;
  15747. struct {
  15748. #ifdef __RX_LITTLE_ENDIAN__
  15749. unsigned char M6BSEL : 4;
  15750. unsigned char M6DSEL : 4;
  15751. #else
  15752. unsigned char M6DSEL : 4;
  15753. unsigned char M6BSEL : 4;
  15754. #endif
  15755. } BIT;
  15756. } M6SELR;
  15757. } st_poe_t;
  15758. typedef struct st_port0 {
  15759. union {
  15760. unsigned char BYTE;
  15761. struct {
  15762. #ifdef __RX_LITTLE_ENDIAN__
  15763. unsigned char B0 : 1;
  15764. unsigned char B1 : 1;
  15765. unsigned char B2 : 1;
  15766. unsigned char B3 : 1;
  15767. unsigned char : 1;
  15768. unsigned char B5 : 1;
  15769. unsigned char : 1;
  15770. unsigned char B7 : 1;
  15771. #else
  15772. unsigned char B7 : 1;
  15773. unsigned char : 1;
  15774. unsigned char B5 : 1;
  15775. unsigned char : 1;
  15776. unsigned char B3 : 1;
  15777. unsigned char B2 : 1;
  15778. unsigned char B1 : 1;
  15779. unsigned char B0 : 1;
  15780. #endif
  15781. } BIT;
  15782. } PDR;
  15783. char wk0[31];
  15784. union {
  15785. unsigned char BYTE;
  15786. struct {
  15787. #ifdef __RX_LITTLE_ENDIAN__
  15788. unsigned char B0 : 1;
  15789. unsigned char B1 : 1;
  15790. unsigned char B2 : 1;
  15791. unsigned char B3 : 1;
  15792. unsigned char : 1;
  15793. unsigned char B5 : 1;
  15794. unsigned char : 1;
  15795. unsigned char B7 : 1;
  15796. #else
  15797. unsigned char B7 : 1;
  15798. unsigned char : 1;
  15799. unsigned char B5 : 1;
  15800. unsigned char : 1;
  15801. unsigned char B3 : 1;
  15802. unsigned char B2 : 1;
  15803. unsigned char B1 : 1;
  15804. unsigned char B0 : 1;
  15805. #endif
  15806. } BIT;
  15807. } PODR;
  15808. char wk1[31];
  15809. union {
  15810. unsigned char BYTE;
  15811. struct {
  15812. #ifdef __RX_LITTLE_ENDIAN__
  15813. unsigned char B0 : 1;
  15814. unsigned char B1 : 1;
  15815. unsigned char B2 : 1;
  15816. unsigned char B3 : 1;
  15817. unsigned char : 1;
  15818. unsigned char B5 : 1;
  15819. unsigned char : 1;
  15820. unsigned char B7 : 1;
  15821. #else
  15822. unsigned char B7 : 1;
  15823. unsigned char : 1;
  15824. unsigned char B5 : 1;
  15825. unsigned char : 1;
  15826. unsigned char B3 : 1;
  15827. unsigned char B2 : 1;
  15828. unsigned char B1 : 1;
  15829. unsigned char B0 : 1;
  15830. #endif
  15831. } BIT;
  15832. } PIDR;
  15833. char wk2[31];
  15834. union {
  15835. unsigned char BYTE;
  15836. struct {
  15837. #ifdef __RX_LITTLE_ENDIAN__
  15838. unsigned char B0 : 1;
  15839. unsigned char B1 : 1;
  15840. unsigned char B2 : 1;
  15841. unsigned char B3 : 1;
  15842. unsigned char : 1;
  15843. unsigned char B5 : 1;
  15844. unsigned char : 1;
  15845. unsigned char B7 : 1;
  15846. #else
  15847. unsigned char B7 : 1;
  15848. unsigned char : 1;
  15849. unsigned char B5 : 1;
  15850. unsigned char : 1;
  15851. unsigned char B3 : 1;
  15852. unsigned char B2 : 1;
  15853. unsigned char B1 : 1;
  15854. unsigned char B0 : 1;
  15855. #endif
  15856. } BIT;
  15857. } PMR;
  15858. char wk3[31];
  15859. union {
  15860. unsigned char BYTE;
  15861. struct {
  15862. #ifdef __RX_LITTLE_ENDIAN__
  15863. unsigned char B0 : 1;
  15864. unsigned char : 1;
  15865. unsigned char B2 : 1;
  15866. unsigned char : 1;
  15867. unsigned char B4 : 1;
  15868. unsigned char : 1;
  15869. unsigned char B6 : 1;
  15870. unsigned char : 1;
  15871. #else
  15872. unsigned char : 1;
  15873. unsigned char B6 : 1;
  15874. unsigned char : 1;
  15875. unsigned char B4 : 1;
  15876. unsigned char : 1;
  15877. unsigned char B2 : 1;
  15878. unsigned char : 1;
  15879. unsigned char B0 : 1;
  15880. #endif
  15881. } BIT;
  15882. } ODR0;
  15883. union {
  15884. unsigned char BYTE;
  15885. struct {
  15886. #ifdef __RX_LITTLE_ENDIAN__
  15887. unsigned char : 2;
  15888. unsigned char B2 : 1;
  15889. unsigned char : 3;
  15890. unsigned char B6 : 1;
  15891. unsigned char : 1;
  15892. #else
  15893. unsigned char : 1;
  15894. unsigned char B6 : 1;
  15895. unsigned char : 3;
  15896. unsigned char B2 : 1;
  15897. unsigned char : 2;
  15898. #endif
  15899. } BIT;
  15900. } ODR1;
  15901. char wk4[62];
  15902. union {
  15903. unsigned char BYTE;
  15904. struct {
  15905. #ifdef __RX_LITTLE_ENDIAN__
  15906. unsigned char B0 : 1;
  15907. unsigned char B1 : 1;
  15908. unsigned char B2 : 1;
  15909. unsigned char B3 : 1;
  15910. unsigned char : 1;
  15911. unsigned char B5 : 1;
  15912. unsigned char : 1;
  15913. unsigned char B7 : 1;
  15914. #else
  15915. unsigned char B7 : 1;
  15916. unsigned char : 1;
  15917. unsigned char B5 : 1;
  15918. unsigned char : 1;
  15919. unsigned char B3 : 1;
  15920. unsigned char B2 : 1;
  15921. unsigned char B1 : 1;
  15922. unsigned char B0 : 1;
  15923. #endif
  15924. } BIT;
  15925. } PCR;
  15926. char wk5[31];
  15927. union {
  15928. unsigned char BYTE;
  15929. struct {
  15930. #ifdef __RX_LITTLE_ENDIAN__
  15931. unsigned char B0 : 1;
  15932. unsigned char B1 : 1;
  15933. unsigned char B2 : 1;
  15934. unsigned char : 5;
  15935. #else
  15936. unsigned char : 5;
  15937. unsigned char B2 : 1;
  15938. unsigned char B1 : 1;
  15939. unsigned char B0 : 1;
  15940. #endif
  15941. } BIT;
  15942. } DSCR;
  15943. char wk6[71];
  15944. union {
  15945. unsigned char BYTE;
  15946. struct {
  15947. #ifdef __RX_LITTLE_ENDIAN__
  15948. unsigned char B0 : 1;
  15949. unsigned char B1 : 1;
  15950. unsigned char B2 : 1;
  15951. unsigned char : 5;
  15952. #else
  15953. unsigned char : 5;
  15954. unsigned char B2 : 1;
  15955. unsigned char B1 : 1;
  15956. unsigned char B0 : 1;
  15957. #endif
  15958. } BIT;
  15959. } DSCR2;
  15960. } st_port0_t;
  15961. typedef struct st_port1 {
  15962. union {
  15963. unsigned char BYTE;
  15964. struct {
  15965. #ifdef __RX_LITTLE_ENDIAN__
  15966. unsigned char B0 : 1;
  15967. unsigned char B1 : 1;
  15968. unsigned char B2 : 1;
  15969. unsigned char B3 : 1;
  15970. unsigned char B4 : 1;
  15971. unsigned char B5 : 1;
  15972. unsigned char B6 : 1;
  15973. unsigned char B7 : 1;
  15974. #else
  15975. unsigned char B7 : 1;
  15976. unsigned char B6 : 1;
  15977. unsigned char B5 : 1;
  15978. unsigned char B4 : 1;
  15979. unsigned char B3 : 1;
  15980. unsigned char B2 : 1;
  15981. unsigned char B1 : 1;
  15982. unsigned char B0 : 1;
  15983. #endif
  15984. } BIT;
  15985. } PDR;
  15986. char wk0[31];
  15987. union {
  15988. unsigned char BYTE;
  15989. struct {
  15990. #ifdef __RX_LITTLE_ENDIAN__
  15991. unsigned char B0 : 1;
  15992. unsigned char B1 : 1;
  15993. unsigned char B2 : 1;
  15994. unsigned char B3 : 1;
  15995. unsigned char B4 : 1;
  15996. unsigned char B5 : 1;
  15997. unsigned char B6 : 1;
  15998. unsigned char B7 : 1;
  15999. #else
  16000. unsigned char B7 : 1;
  16001. unsigned char B6 : 1;
  16002. unsigned char B5 : 1;
  16003. unsigned char B4 : 1;
  16004. unsigned char B3 : 1;
  16005. unsigned char B2 : 1;
  16006. unsigned char B1 : 1;
  16007. unsigned char B0 : 1;
  16008. #endif
  16009. } BIT;
  16010. } PODR;
  16011. char wk1[31];
  16012. union {
  16013. unsigned char BYTE;
  16014. struct {
  16015. #ifdef __RX_LITTLE_ENDIAN__
  16016. unsigned char B0 : 1;
  16017. unsigned char B1 : 1;
  16018. unsigned char B2 : 1;
  16019. unsigned char B3 : 1;
  16020. unsigned char B4 : 1;
  16021. unsigned char B5 : 1;
  16022. unsigned char B6 : 1;
  16023. unsigned char B7 : 1;
  16024. #else
  16025. unsigned char B7 : 1;
  16026. unsigned char B6 : 1;
  16027. unsigned char B5 : 1;
  16028. unsigned char B4 : 1;
  16029. unsigned char B3 : 1;
  16030. unsigned char B2 : 1;
  16031. unsigned char B1 : 1;
  16032. unsigned char B0 : 1;
  16033. #endif
  16034. } BIT;
  16035. } PIDR;
  16036. char wk2[31];
  16037. union {
  16038. unsigned char BYTE;
  16039. struct {
  16040. #ifdef __RX_LITTLE_ENDIAN__
  16041. unsigned char B0 : 1;
  16042. unsigned char B1 : 1;
  16043. unsigned char B2 : 1;
  16044. unsigned char B3 : 1;
  16045. unsigned char B4 : 1;
  16046. unsigned char B5 : 1;
  16047. unsigned char B6 : 1;
  16048. unsigned char B7 : 1;
  16049. #else
  16050. unsigned char B7 : 1;
  16051. unsigned char B6 : 1;
  16052. unsigned char B5 : 1;
  16053. unsigned char B4 : 1;
  16054. unsigned char B3 : 1;
  16055. unsigned char B2 : 1;
  16056. unsigned char B1 : 1;
  16057. unsigned char B0 : 1;
  16058. #endif
  16059. } BIT;
  16060. } PMR;
  16061. char wk3[32];
  16062. union {
  16063. unsigned char BYTE;
  16064. struct {
  16065. #ifdef __RX_LITTLE_ENDIAN__
  16066. unsigned char B0 : 1;
  16067. unsigned char : 1;
  16068. unsigned char B2 : 1;
  16069. unsigned char : 1;
  16070. unsigned char B4 : 1;
  16071. unsigned char : 1;
  16072. unsigned char B6 : 1;
  16073. unsigned char : 1;
  16074. #else
  16075. unsigned char : 1;
  16076. unsigned char B6 : 1;
  16077. unsigned char : 1;
  16078. unsigned char B4 : 1;
  16079. unsigned char : 1;
  16080. unsigned char B2 : 1;
  16081. unsigned char : 1;
  16082. unsigned char B0 : 1;
  16083. #endif
  16084. } BIT;
  16085. } ODR0;
  16086. union {
  16087. unsigned char BYTE;
  16088. struct {
  16089. #ifdef __RX_LITTLE_ENDIAN__
  16090. unsigned char B0 : 1;
  16091. unsigned char : 1;
  16092. unsigned char B2 : 1;
  16093. unsigned char : 1;
  16094. unsigned char B4 : 1;
  16095. unsigned char : 1;
  16096. unsigned char B6 : 1;
  16097. unsigned char : 1;
  16098. #else
  16099. unsigned char : 1;
  16100. unsigned char B6 : 1;
  16101. unsigned char : 1;
  16102. unsigned char B4 : 1;
  16103. unsigned char : 1;
  16104. unsigned char B2 : 1;
  16105. unsigned char : 1;
  16106. unsigned char B0 : 1;
  16107. #endif
  16108. } BIT;
  16109. } ODR1;
  16110. char wk4[61];
  16111. union {
  16112. unsigned char BYTE;
  16113. struct {
  16114. #ifdef __RX_LITTLE_ENDIAN__
  16115. unsigned char B0 : 1;
  16116. unsigned char B1 : 1;
  16117. unsigned char B2 : 1;
  16118. unsigned char B3 : 1;
  16119. unsigned char B4 : 1;
  16120. unsigned char B5 : 1;
  16121. unsigned char B6 : 1;
  16122. unsigned char B7 : 1;
  16123. #else
  16124. unsigned char B7 : 1;
  16125. unsigned char B6 : 1;
  16126. unsigned char B5 : 1;
  16127. unsigned char B4 : 1;
  16128. unsigned char B3 : 1;
  16129. unsigned char B2 : 1;
  16130. unsigned char B1 : 1;
  16131. unsigned char B0 : 1;
  16132. #endif
  16133. } BIT;
  16134. } PCR;
  16135. char wk5[31];
  16136. union {
  16137. unsigned char BYTE;
  16138. struct {
  16139. #ifdef __RX_LITTLE_ENDIAN__
  16140. unsigned char : 1;
  16141. unsigned char B1 : 1;
  16142. unsigned char B2 : 1;
  16143. unsigned char B3 : 1;
  16144. unsigned char B4 : 1;
  16145. unsigned char : 3;
  16146. #else
  16147. unsigned char : 3;
  16148. unsigned char B4 : 1;
  16149. unsigned char B3 : 1;
  16150. unsigned char B2 : 1;
  16151. unsigned char B1 : 1;
  16152. unsigned char : 1;
  16153. #endif
  16154. } BIT;
  16155. } DSCR;
  16156. char wk6[71];
  16157. union {
  16158. unsigned char BYTE;
  16159. struct {
  16160. #ifdef __RX_LITTLE_ENDIAN__
  16161. unsigned char : 1;
  16162. unsigned char B1 : 1;
  16163. unsigned char B2 : 1;
  16164. unsigned char B3 : 1;
  16165. unsigned char B4 : 1;
  16166. unsigned char : 2;
  16167. unsigned char B7 : 1;
  16168. #else
  16169. unsigned char B7 : 1;
  16170. unsigned char : 2;
  16171. unsigned char B4 : 1;
  16172. unsigned char B3 : 1;
  16173. unsigned char B2 : 1;
  16174. unsigned char B1 : 1;
  16175. unsigned char : 1;
  16176. #endif
  16177. } BIT;
  16178. } DSCR2;
  16179. } st_port1_t;
  16180. typedef struct st_port2 {
  16181. union {
  16182. unsigned char BYTE;
  16183. struct {
  16184. #ifdef __RX_LITTLE_ENDIAN__
  16185. unsigned char B0 : 1;
  16186. unsigned char B1 : 1;
  16187. unsigned char B2 : 1;
  16188. unsigned char B3 : 1;
  16189. unsigned char B4 : 1;
  16190. unsigned char B5 : 1;
  16191. unsigned char B6 : 1;
  16192. unsigned char B7 : 1;
  16193. #else
  16194. unsigned char B7 : 1;
  16195. unsigned char B6 : 1;
  16196. unsigned char B5 : 1;
  16197. unsigned char B4 : 1;
  16198. unsigned char B3 : 1;
  16199. unsigned char B2 : 1;
  16200. unsigned char B1 : 1;
  16201. unsigned char B0 : 1;
  16202. #endif
  16203. } BIT;
  16204. } PDR;
  16205. char wk0[31];
  16206. union {
  16207. unsigned char BYTE;
  16208. struct {
  16209. #ifdef __RX_LITTLE_ENDIAN__
  16210. unsigned char B0 : 1;
  16211. unsigned char B1 : 1;
  16212. unsigned char B2 : 1;
  16213. unsigned char B3 : 1;
  16214. unsigned char B4 : 1;
  16215. unsigned char B5 : 1;
  16216. unsigned char B6 : 1;
  16217. unsigned char B7 : 1;
  16218. #else
  16219. unsigned char B7 : 1;
  16220. unsigned char B6 : 1;
  16221. unsigned char B5 : 1;
  16222. unsigned char B4 : 1;
  16223. unsigned char B3 : 1;
  16224. unsigned char B2 : 1;
  16225. unsigned char B1 : 1;
  16226. unsigned char B0 : 1;
  16227. #endif
  16228. } BIT;
  16229. } PODR;
  16230. char wk1[31];
  16231. union {
  16232. unsigned char BYTE;
  16233. struct {
  16234. #ifdef __RX_LITTLE_ENDIAN__
  16235. unsigned char B0 : 1;
  16236. unsigned char B1 : 1;
  16237. unsigned char B2 : 1;
  16238. unsigned char B3 : 1;
  16239. unsigned char B4 : 1;
  16240. unsigned char B5 : 1;
  16241. unsigned char B6 : 1;
  16242. unsigned char B7 : 1;
  16243. #else
  16244. unsigned char B7 : 1;
  16245. unsigned char B6 : 1;
  16246. unsigned char B5 : 1;
  16247. unsigned char B4 : 1;
  16248. unsigned char B3 : 1;
  16249. unsigned char B2 : 1;
  16250. unsigned char B1 : 1;
  16251. unsigned char B0 : 1;
  16252. #endif
  16253. } BIT;
  16254. } PIDR;
  16255. char wk2[31];
  16256. union {
  16257. unsigned char BYTE;
  16258. struct {
  16259. #ifdef __RX_LITTLE_ENDIAN__
  16260. unsigned char B0 : 1;
  16261. unsigned char B1 : 1;
  16262. unsigned char B2 : 1;
  16263. unsigned char B3 : 1;
  16264. unsigned char B4 : 1;
  16265. unsigned char B5 : 1;
  16266. unsigned char B6 : 1;
  16267. unsigned char B7 : 1;
  16268. #else
  16269. unsigned char B7 : 1;
  16270. unsigned char B6 : 1;
  16271. unsigned char B5 : 1;
  16272. unsigned char B4 : 1;
  16273. unsigned char B3 : 1;
  16274. unsigned char B2 : 1;
  16275. unsigned char B1 : 1;
  16276. unsigned char B0 : 1;
  16277. #endif
  16278. } BIT;
  16279. } PMR;
  16280. char wk3[33];
  16281. union {
  16282. unsigned char BYTE;
  16283. struct {
  16284. #ifdef __RX_LITTLE_ENDIAN__
  16285. unsigned char B0 : 1;
  16286. unsigned char : 1;
  16287. unsigned char B2 : 1;
  16288. unsigned char : 1;
  16289. unsigned char B4 : 1;
  16290. unsigned char : 1;
  16291. unsigned char B6 : 1;
  16292. unsigned char : 1;
  16293. #else
  16294. unsigned char : 1;
  16295. unsigned char B6 : 1;
  16296. unsigned char : 1;
  16297. unsigned char B4 : 1;
  16298. unsigned char : 1;
  16299. unsigned char B2 : 1;
  16300. unsigned char : 1;
  16301. unsigned char B0 : 1;
  16302. #endif
  16303. } BIT;
  16304. } ODR0;
  16305. union {
  16306. unsigned char BYTE;
  16307. struct {
  16308. #ifdef __RX_LITTLE_ENDIAN__
  16309. unsigned char B0 : 1;
  16310. unsigned char : 1;
  16311. unsigned char B2 : 1;
  16312. unsigned char : 1;
  16313. unsigned char B4 : 1;
  16314. unsigned char : 1;
  16315. unsigned char B6 : 1;
  16316. unsigned char : 1;
  16317. #else
  16318. unsigned char : 1;
  16319. unsigned char B6 : 1;
  16320. unsigned char : 1;
  16321. unsigned char B4 : 1;
  16322. unsigned char : 1;
  16323. unsigned char B2 : 1;
  16324. unsigned char : 1;
  16325. unsigned char B0 : 1;
  16326. #endif
  16327. } BIT;
  16328. } ODR1;
  16329. char wk4[60];
  16330. union {
  16331. unsigned char BYTE;
  16332. struct {
  16333. #ifdef __RX_LITTLE_ENDIAN__
  16334. unsigned char B0 : 1;
  16335. unsigned char B1 : 1;
  16336. unsigned char B2 : 1;
  16337. unsigned char B3 : 1;
  16338. unsigned char B4 : 1;
  16339. unsigned char B5 : 1;
  16340. unsigned char B6 : 1;
  16341. unsigned char B7 : 1;
  16342. #else
  16343. unsigned char B7 : 1;
  16344. unsigned char B6 : 1;
  16345. unsigned char B5 : 1;
  16346. unsigned char B4 : 1;
  16347. unsigned char B3 : 1;
  16348. unsigned char B2 : 1;
  16349. unsigned char B1 : 1;
  16350. unsigned char B0 : 1;
  16351. #endif
  16352. } BIT;
  16353. } PCR;
  16354. char wk5[31];
  16355. union {
  16356. unsigned char BYTE;
  16357. struct {
  16358. #ifdef __RX_LITTLE_ENDIAN__
  16359. unsigned char : 7;
  16360. unsigned char B7 : 1;
  16361. #else
  16362. unsigned char B7 : 1;
  16363. unsigned char : 7;
  16364. #endif
  16365. } BIT;
  16366. } DSCR;
  16367. char wk6[71];
  16368. union {
  16369. unsigned char BYTE;
  16370. struct {
  16371. #ifdef __RX_LITTLE_ENDIAN__
  16372. unsigned char B0 : 1;
  16373. unsigned char B1 : 1;
  16374. unsigned char B2 : 1;
  16375. unsigned char B3 : 1;
  16376. unsigned char : 3;
  16377. unsigned char B7 : 1;
  16378. #else
  16379. unsigned char B7 : 1;
  16380. unsigned char : 3;
  16381. unsigned char B3 : 1;
  16382. unsigned char B2 : 1;
  16383. unsigned char B1 : 1;
  16384. unsigned char B0 : 1;
  16385. #endif
  16386. } BIT;
  16387. } DSCR2;
  16388. } st_port2_t;
  16389. typedef struct st_port3 {
  16390. union {
  16391. unsigned char BYTE;
  16392. struct {
  16393. #ifdef __RX_LITTLE_ENDIAN__
  16394. unsigned char B0 : 1;
  16395. unsigned char B1 : 1;
  16396. unsigned char B2 : 1;
  16397. unsigned char B3 : 1;
  16398. unsigned char B4 : 1;
  16399. unsigned char : 1;
  16400. unsigned char B6 : 1;
  16401. unsigned char B7 : 1;
  16402. #else
  16403. unsigned char B7 : 1;
  16404. unsigned char B6 : 1;
  16405. unsigned char : 1;
  16406. unsigned char B4 : 1;
  16407. unsigned char B3 : 1;
  16408. unsigned char B2 : 1;
  16409. unsigned char B1 : 1;
  16410. unsigned char B0 : 1;
  16411. #endif
  16412. } BIT;
  16413. } PDR;
  16414. char wk0[31];
  16415. union {
  16416. unsigned char BYTE;
  16417. struct {
  16418. #ifdef __RX_LITTLE_ENDIAN__
  16419. unsigned char B0 : 1;
  16420. unsigned char B1 : 1;
  16421. unsigned char B2 : 1;
  16422. unsigned char B3 : 1;
  16423. unsigned char B4 : 1;
  16424. unsigned char : 1;
  16425. unsigned char B6 : 1;
  16426. unsigned char B7 : 1;
  16427. #else
  16428. unsigned char B7 : 1;
  16429. unsigned char B6 : 1;
  16430. unsigned char : 1;
  16431. unsigned char B4 : 1;
  16432. unsigned char B3 : 1;
  16433. unsigned char B2 : 1;
  16434. unsigned char B1 : 1;
  16435. unsigned char B0 : 1;
  16436. #endif
  16437. } BIT;
  16438. } PODR;
  16439. char wk1[31];
  16440. union {
  16441. unsigned char BYTE;
  16442. struct {
  16443. #ifdef __RX_LITTLE_ENDIAN__
  16444. unsigned char B0 : 1;
  16445. unsigned char B1 : 1;
  16446. unsigned char B2 : 1;
  16447. unsigned char B3 : 1;
  16448. unsigned char B4 : 1;
  16449. unsigned char B5 : 1;
  16450. unsigned char B6 : 1;
  16451. unsigned char B7 : 1;
  16452. #else
  16453. unsigned char B7 : 1;
  16454. unsigned char B6 : 1;
  16455. unsigned char B5 : 1;
  16456. unsigned char B4 : 1;
  16457. unsigned char B3 : 1;
  16458. unsigned char B2 : 1;
  16459. unsigned char B1 : 1;
  16460. unsigned char B0 : 1;
  16461. #endif
  16462. } BIT;
  16463. } PIDR;
  16464. char wk2[31];
  16465. union {
  16466. unsigned char BYTE;
  16467. struct {
  16468. #ifdef __RX_LITTLE_ENDIAN__
  16469. unsigned char B0 : 1;
  16470. unsigned char B1 : 1;
  16471. unsigned char B2 : 1;
  16472. unsigned char B3 : 1;
  16473. unsigned char B4 : 1;
  16474. unsigned char : 1;
  16475. unsigned char B6 : 1;
  16476. unsigned char B7 : 1;
  16477. #else
  16478. unsigned char B7 : 1;
  16479. unsigned char B6 : 1;
  16480. unsigned char : 1;
  16481. unsigned char B4 : 1;
  16482. unsigned char B3 : 1;
  16483. unsigned char B2 : 1;
  16484. unsigned char B1 : 1;
  16485. unsigned char B0 : 1;
  16486. #endif
  16487. } BIT;
  16488. } PMR;
  16489. char wk3[34];
  16490. union {
  16491. unsigned char BYTE;
  16492. struct {
  16493. #ifdef __RX_LITTLE_ENDIAN__
  16494. unsigned char B0 : 1;
  16495. unsigned char : 1;
  16496. unsigned char B2 : 1;
  16497. unsigned char : 1;
  16498. unsigned char B4 : 1;
  16499. unsigned char : 1;
  16500. unsigned char B6 : 1;
  16501. unsigned char : 1;
  16502. #else
  16503. unsigned char : 1;
  16504. unsigned char B6 : 1;
  16505. unsigned char : 1;
  16506. unsigned char B4 : 1;
  16507. unsigned char : 1;
  16508. unsigned char B2 : 1;
  16509. unsigned char : 1;
  16510. unsigned char B0 : 1;
  16511. #endif
  16512. } BIT;
  16513. } ODR0;
  16514. union {
  16515. unsigned char BYTE;
  16516. struct {
  16517. #ifdef __RX_LITTLE_ENDIAN__
  16518. unsigned char B0 : 1;
  16519. unsigned char : 3;
  16520. unsigned char B4 : 1;
  16521. unsigned char : 1;
  16522. unsigned char B6 : 1;
  16523. unsigned char : 1;
  16524. #else
  16525. unsigned char : 1;
  16526. unsigned char B6 : 1;
  16527. unsigned char : 1;
  16528. unsigned char B4 : 1;
  16529. unsigned char : 3;
  16530. unsigned char B0 : 1;
  16531. #endif
  16532. } BIT;
  16533. } ODR1;
  16534. char wk4[59];
  16535. union {
  16536. unsigned char BYTE;
  16537. struct {
  16538. #ifdef __RX_LITTLE_ENDIAN__
  16539. unsigned char B0 : 1;
  16540. unsigned char B1 : 1;
  16541. unsigned char B2 : 1;
  16542. unsigned char B3 : 1;
  16543. unsigned char B4 : 1;
  16544. unsigned char : 1;
  16545. unsigned char B6 : 1;
  16546. unsigned char B7 : 1;
  16547. #else
  16548. unsigned char B7 : 1;
  16549. unsigned char B6 : 1;
  16550. unsigned char : 1;
  16551. unsigned char B4 : 1;
  16552. unsigned char B3 : 1;
  16553. unsigned char B2 : 1;
  16554. unsigned char B1 : 1;
  16555. unsigned char B0 : 1;
  16556. #endif
  16557. } BIT;
  16558. } PCR;
  16559. char wk5[103];
  16560. union {
  16561. unsigned char BYTE;
  16562. struct {
  16563. #ifdef __RX_LITTLE_ENDIAN__
  16564. unsigned char B0 : 1;
  16565. unsigned char B1 : 1;
  16566. unsigned char : 6;
  16567. #else
  16568. unsigned char : 6;
  16569. unsigned char B1 : 1;
  16570. unsigned char B0 : 1;
  16571. #endif
  16572. } BIT;
  16573. } DSCR2;
  16574. } st_port3_t;
  16575. typedef struct st_port4 {
  16576. union {
  16577. unsigned char BYTE;
  16578. struct {
  16579. #ifdef __RX_LITTLE_ENDIAN__
  16580. unsigned char B0 : 1;
  16581. unsigned char B1 : 1;
  16582. unsigned char B2 : 1;
  16583. unsigned char B3 : 1;
  16584. unsigned char B4 : 1;
  16585. unsigned char B5 : 1;
  16586. unsigned char B6 : 1;
  16587. unsigned char B7 : 1;
  16588. #else
  16589. unsigned char B7 : 1;
  16590. unsigned char B6 : 1;
  16591. unsigned char B5 : 1;
  16592. unsigned char B4 : 1;
  16593. unsigned char B3 : 1;
  16594. unsigned char B2 : 1;
  16595. unsigned char B1 : 1;
  16596. unsigned char B0 : 1;
  16597. #endif
  16598. } BIT;
  16599. } PDR;
  16600. char wk0[31];
  16601. union {
  16602. unsigned char BYTE;
  16603. struct {
  16604. #ifdef __RX_LITTLE_ENDIAN__
  16605. unsigned char B0 : 1;
  16606. unsigned char B1 : 1;
  16607. unsigned char B2 : 1;
  16608. unsigned char B3 : 1;
  16609. unsigned char B4 : 1;
  16610. unsigned char B5 : 1;
  16611. unsigned char B6 : 1;
  16612. unsigned char B7 : 1;
  16613. #else
  16614. unsigned char B7 : 1;
  16615. unsigned char B6 : 1;
  16616. unsigned char B5 : 1;
  16617. unsigned char B4 : 1;
  16618. unsigned char B3 : 1;
  16619. unsigned char B2 : 1;
  16620. unsigned char B1 : 1;
  16621. unsigned char B0 : 1;
  16622. #endif
  16623. } BIT;
  16624. } PODR;
  16625. char wk1[31];
  16626. union {
  16627. unsigned char BYTE;
  16628. struct {
  16629. #ifdef __RX_LITTLE_ENDIAN__
  16630. unsigned char B0 : 1;
  16631. unsigned char B1 : 1;
  16632. unsigned char B2 : 1;
  16633. unsigned char B3 : 1;
  16634. unsigned char B4 : 1;
  16635. unsigned char B5 : 1;
  16636. unsigned char B6 : 1;
  16637. unsigned char B7 : 1;
  16638. #else
  16639. unsigned char B7 : 1;
  16640. unsigned char B6 : 1;
  16641. unsigned char B5 : 1;
  16642. unsigned char B4 : 1;
  16643. unsigned char B3 : 1;
  16644. unsigned char B2 : 1;
  16645. unsigned char B1 : 1;
  16646. unsigned char B0 : 1;
  16647. #endif
  16648. } BIT;
  16649. } PIDR;
  16650. char wk2[31];
  16651. union {
  16652. unsigned char BYTE;
  16653. struct {
  16654. #ifdef __RX_LITTLE_ENDIAN__
  16655. unsigned char B0 : 1;
  16656. unsigned char B1 : 1;
  16657. unsigned char B2 : 1;
  16658. unsigned char B3 : 1;
  16659. unsigned char B4 : 1;
  16660. unsigned char B5 : 1;
  16661. unsigned char B6 : 1;
  16662. unsigned char B7 : 1;
  16663. #else
  16664. unsigned char B7 : 1;
  16665. unsigned char B6 : 1;
  16666. unsigned char B5 : 1;
  16667. unsigned char B4 : 1;
  16668. unsigned char B3 : 1;
  16669. unsigned char B2 : 1;
  16670. unsigned char B1 : 1;
  16671. unsigned char B0 : 1;
  16672. #endif
  16673. } BIT;
  16674. } PMR;
  16675. char wk3[35];
  16676. union {
  16677. unsigned char BYTE;
  16678. struct {
  16679. #ifdef __RX_LITTLE_ENDIAN__
  16680. unsigned char B0 : 1;
  16681. unsigned char : 1;
  16682. unsigned char B2 : 1;
  16683. unsigned char : 1;
  16684. unsigned char B4 : 1;
  16685. unsigned char : 1;
  16686. unsigned char B6 : 1;
  16687. unsigned char : 1;
  16688. #else
  16689. unsigned char : 1;
  16690. unsigned char B6 : 1;
  16691. unsigned char : 1;
  16692. unsigned char B4 : 1;
  16693. unsigned char : 1;
  16694. unsigned char B2 : 1;
  16695. unsigned char : 1;
  16696. unsigned char B0 : 1;
  16697. #endif
  16698. } BIT;
  16699. } ODR0;
  16700. union {
  16701. unsigned char BYTE;
  16702. struct {
  16703. #ifdef __RX_LITTLE_ENDIAN__
  16704. unsigned char B0 : 1;
  16705. unsigned char : 1;
  16706. unsigned char B2 : 1;
  16707. unsigned char : 1;
  16708. unsigned char B4 : 1;
  16709. unsigned char : 1;
  16710. unsigned char B6 : 1;
  16711. unsigned char : 1;
  16712. #else
  16713. unsigned char : 1;
  16714. unsigned char B6 : 1;
  16715. unsigned char : 1;
  16716. unsigned char B4 : 1;
  16717. unsigned char : 1;
  16718. unsigned char B2 : 1;
  16719. unsigned char : 1;
  16720. unsigned char B0 : 1;
  16721. #endif
  16722. } BIT;
  16723. } ODR1;
  16724. char wk4[58];
  16725. union {
  16726. unsigned char BYTE;
  16727. struct {
  16728. #ifdef __RX_LITTLE_ENDIAN__
  16729. unsigned char B0 : 1;
  16730. unsigned char B1 : 1;
  16731. unsigned char B2 : 1;
  16732. unsigned char B3 : 1;
  16733. unsigned char B4 : 1;
  16734. unsigned char B5 : 1;
  16735. unsigned char B6 : 1;
  16736. unsigned char B7 : 1;
  16737. #else
  16738. unsigned char B7 : 1;
  16739. unsigned char B6 : 1;
  16740. unsigned char B5 : 1;
  16741. unsigned char B4 : 1;
  16742. unsigned char B3 : 1;
  16743. unsigned char B2 : 1;
  16744. unsigned char B1 : 1;
  16745. unsigned char B0 : 1;
  16746. #endif
  16747. } BIT;
  16748. } PCR;
  16749. } st_port4_t;
  16750. typedef struct st_port5 {
  16751. union {
  16752. unsigned char BYTE;
  16753. struct {
  16754. #ifdef __RX_LITTLE_ENDIAN__
  16755. unsigned char B0 : 1;
  16756. unsigned char B1 : 1;
  16757. unsigned char B2 : 1;
  16758. unsigned char B3 : 1;
  16759. unsigned char B4 : 1;
  16760. unsigned char B5 : 1;
  16761. unsigned char B6 : 1;
  16762. unsigned char B7 : 1;
  16763. #else
  16764. unsigned char B7 : 1;
  16765. unsigned char B6 : 1;
  16766. unsigned char B5 : 1;
  16767. unsigned char B4 : 1;
  16768. unsigned char B3 : 1;
  16769. unsigned char B2 : 1;
  16770. unsigned char B1 : 1;
  16771. unsigned char B0 : 1;
  16772. #endif
  16773. } BIT;
  16774. } PDR;
  16775. char wk0[31];
  16776. union {
  16777. unsigned char BYTE;
  16778. struct {
  16779. #ifdef __RX_LITTLE_ENDIAN__
  16780. unsigned char B0 : 1;
  16781. unsigned char B1 : 1;
  16782. unsigned char B2 : 1;
  16783. unsigned char B3 : 1;
  16784. unsigned char B4 : 1;
  16785. unsigned char B5 : 1;
  16786. unsigned char B6 : 1;
  16787. unsigned char B7 : 1;
  16788. #else
  16789. unsigned char B7 : 1;
  16790. unsigned char B6 : 1;
  16791. unsigned char B5 : 1;
  16792. unsigned char B4 : 1;
  16793. unsigned char B3 : 1;
  16794. unsigned char B2 : 1;
  16795. unsigned char B1 : 1;
  16796. unsigned char B0 : 1;
  16797. #endif
  16798. } BIT;
  16799. } PODR;
  16800. char wk1[31];
  16801. union {
  16802. unsigned char BYTE;
  16803. struct {
  16804. #ifdef __RX_LITTLE_ENDIAN__
  16805. unsigned char B0 : 1;
  16806. unsigned char B1 : 1;
  16807. unsigned char B2 : 1;
  16808. unsigned char B3 : 1;
  16809. unsigned char B4 : 1;
  16810. unsigned char B5 : 1;
  16811. unsigned char B6 : 1;
  16812. unsigned char B7 : 1;
  16813. #else
  16814. unsigned char B7 : 1;
  16815. unsigned char B6 : 1;
  16816. unsigned char B5 : 1;
  16817. unsigned char B4 : 1;
  16818. unsigned char B3 : 1;
  16819. unsigned char B2 : 1;
  16820. unsigned char B1 : 1;
  16821. unsigned char B0 : 1;
  16822. #endif
  16823. } BIT;
  16824. } PIDR;
  16825. char wk2[31];
  16826. union {
  16827. unsigned char BYTE;
  16828. struct {
  16829. #ifdef __RX_LITTLE_ENDIAN__
  16830. unsigned char B0 : 1;
  16831. unsigned char B1 : 1;
  16832. unsigned char B2 : 1;
  16833. unsigned char B3 : 1;
  16834. unsigned char B4 : 1;
  16835. unsigned char B5 : 1;
  16836. unsigned char B6 : 1;
  16837. unsigned char B7 : 1;
  16838. #else
  16839. unsigned char B7 : 1;
  16840. unsigned char B6 : 1;
  16841. unsigned char B5 : 1;
  16842. unsigned char B4 : 1;
  16843. unsigned char B3 : 1;
  16844. unsigned char B2 : 1;
  16845. unsigned char B1 : 1;
  16846. unsigned char B0 : 1;
  16847. #endif
  16848. } BIT;
  16849. } PMR;
  16850. char wk3[36];
  16851. union {
  16852. unsigned char BYTE;
  16853. struct {
  16854. #ifdef __RX_LITTLE_ENDIAN__
  16855. unsigned char B0 : 1;
  16856. unsigned char : 1;
  16857. unsigned char B2 : 1;
  16858. unsigned char : 1;
  16859. unsigned char B4 : 1;
  16860. unsigned char : 1;
  16861. unsigned char B6 : 1;
  16862. unsigned char : 1;
  16863. #else
  16864. unsigned char : 1;
  16865. unsigned char B6 : 1;
  16866. unsigned char : 1;
  16867. unsigned char B4 : 1;
  16868. unsigned char : 1;
  16869. unsigned char B2 : 1;
  16870. unsigned char : 1;
  16871. unsigned char B0 : 1;
  16872. #endif
  16873. } BIT;
  16874. } ODR0;
  16875. union {
  16876. unsigned char BYTE;
  16877. struct {
  16878. #ifdef __RX_LITTLE_ENDIAN__
  16879. unsigned char B0 : 1;
  16880. unsigned char : 1;
  16881. unsigned char B2 : 1;
  16882. unsigned char : 1;
  16883. unsigned char B4 : 1;
  16884. unsigned char : 1;
  16885. unsigned char B6 : 1;
  16886. unsigned char : 1;
  16887. #else
  16888. unsigned char : 1;
  16889. unsigned char B6 : 1;
  16890. unsigned char : 1;
  16891. unsigned char B4 : 1;
  16892. unsigned char : 1;
  16893. unsigned char B2 : 1;
  16894. unsigned char : 1;
  16895. unsigned char B0 : 1;
  16896. #endif
  16897. } BIT;
  16898. } ODR1;
  16899. char wk4[57];
  16900. union {
  16901. unsigned char BYTE;
  16902. struct {
  16903. #ifdef __RX_LITTLE_ENDIAN__
  16904. unsigned char B0 : 1;
  16905. unsigned char B1 : 1;
  16906. unsigned char B2 : 1;
  16907. unsigned char B3 : 1;
  16908. unsigned char B4 : 1;
  16909. unsigned char B5 : 1;
  16910. unsigned char B6 : 1;
  16911. unsigned char B7 : 1;
  16912. #else
  16913. unsigned char B7 : 1;
  16914. unsigned char B6 : 1;
  16915. unsigned char B5 : 1;
  16916. unsigned char B4 : 1;
  16917. unsigned char B3 : 1;
  16918. unsigned char B2 : 1;
  16919. unsigned char B1 : 1;
  16920. unsigned char B0 : 1;
  16921. #endif
  16922. } BIT;
  16923. } PCR;
  16924. char wk5[31];
  16925. union {
  16926. unsigned char BYTE;
  16927. struct {
  16928. #ifdef __RX_LITTLE_ENDIAN__
  16929. unsigned char B0 : 1;
  16930. unsigned char B1 : 1;
  16931. unsigned char B2 : 1;
  16932. unsigned char : 1;
  16933. unsigned char B4 : 1;
  16934. unsigned char B5 : 1;
  16935. unsigned char B6 : 1;
  16936. unsigned char B7 : 1;
  16937. #else
  16938. unsigned char B7 : 1;
  16939. unsigned char B6 : 1;
  16940. unsigned char B5 : 1;
  16941. unsigned char B4 : 1;
  16942. unsigned char : 1;
  16943. unsigned char B2 : 1;
  16944. unsigned char B1 : 1;
  16945. unsigned char B0 : 1;
  16946. #endif
  16947. } BIT;
  16948. } DSCR;
  16949. char wk6[71];
  16950. union {
  16951. unsigned char BYTE;
  16952. struct {
  16953. #ifdef __RX_LITTLE_ENDIAN__
  16954. unsigned char B0 : 1;
  16955. unsigned char B1 : 1;
  16956. unsigned char B2 : 1;
  16957. unsigned char B3 : 1;
  16958. unsigned char B4 : 1;
  16959. unsigned char B5 : 1;
  16960. unsigned char B6 : 1;
  16961. unsigned char B7 : 1;
  16962. #else
  16963. unsigned char B7 : 1;
  16964. unsigned char B6 : 1;
  16965. unsigned char B5 : 1;
  16966. unsigned char B4 : 1;
  16967. unsigned char B3 : 1;
  16968. unsigned char B2 : 1;
  16969. unsigned char B1 : 1;
  16970. unsigned char B0 : 1;
  16971. #endif
  16972. } BIT;
  16973. } DSCR2;
  16974. } st_port5_t;
  16975. typedef struct st_port6 {
  16976. union {
  16977. unsigned char BYTE;
  16978. struct {
  16979. #ifdef __RX_LITTLE_ENDIAN__
  16980. unsigned char B0 : 1;
  16981. unsigned char B1 : 1;
  16982. unsigned char B2 : 1;
  16983. unsigned char B3 : 1;
  16984. unsigned char B4 : 1;
  16985. unsigned char B5 : 1;
  16986. unsigned char B6 : 1;
  16987. unsigned char B7 : 1;
  16988. #else
  16989. unsigned char B7 : 1;
  16990. unsigned char B6 : 1;
  16991. unsigned char B5 : 1;
  16992. unsigned char B4 : 1;
  16993. unsigned char B3 : 1;
  16994. unsigned char B2 : 1;
  16995. unsigned char B1 : 1;
  16996. unsigned char B0 : 1;
  16997. #endif
  16998. } BIT;
  16999. } PDR;
  17000. char wk0[31];
  17001. union {
  17002. unsigned char BYTE;
  17003. struct {
  17004. #ifdef __RX_LITTLE_ENDIAN__
  17005. unsigned char B0 : 1;
  17006. unsigned char B1 : 1;
  17007. unsigned char B2 : 1;
  17008. unsigned char B3 : 1;
  17009. unsigned char B4 : 1;
  17010. unsigned char B5 : 1;
  17011. unsigned char B6 : 1;
  17012. unsigned char B7 : 1;
  17013. #else
  17014. unsigned char B7 : 1;
  17015. unsigned char B6 : 1;
  17016. unsigned char B5 : 1;
  17017. unsigned char B4 : 1;
  17018. unsigned char B3 : 1;
  17019. unsigned char B2 : 1;
  17020. unsigned char B1 : 1;
  17021. unsigned char B0 : 1;
  17022. #endif
  17023. } BIT;
  17024. } PODR;
  17025. char wk1[31];
  17026. union {
  17027. unsigned char BYTE;
  17028. struct {
  17029. #ifdef __RX_LITTLE_ENDIAN__
  17030. unsigned char B0 : 1;
  17031. unsigned char B1 : 1;
  17032. unsigned char B2 : 1;
  17033. unsigned char B3 : 1;
  17034. unsigned char B4 : 1;
  17035. unsigned char B5 : 1;
  17036. unsigned char B6 : 1;
  17037. unsigned char B7 : 1;
  17038. #else
  17039. unsigned char B7 : 1;
  17040. unsigned char B6 : 1;
  17041. unsigned char B5 : 1;
  17042. unsigned char B4 : 1;
  17043. unsigned char B3 : 1;
  17044. unsigned char B2 : 1;
  17045. unsigned char B1 : 1;
  17046. unsigned char B0 : 1;
  17047. #endif
  17048. } BIT;
  17049. } PIDR;
  17050. char wk2[31];
  17051. union {
  17052. unsigned char BYTE;
  17053. struct {
  17054. #ifdef __RX_LITTLE_ENDIAN__
  17055. unsigned char B0 : 1;
  17056. unsigned char B1 : 1;
  17057. unsigned char B2 : 1;
  17058. unsigned char B3 : 1;
  17059. unsigned char B4 : 1;
  17060. unsigned char B5 : 1;
  17061. unsigned char B6 : 1;
  17062. unsigned char B7 : 1;
  17063. #else
  17064. unsigned char B7 : 1;
  17065. unsigned char B6 : 1;
  17066. unsigned char B5 : 1;
  17067. unsigned char B4 : 1;
  17068. unsigned char B3 : 1;
  17069. unsigned char B2 : 1;
  17070. unsigned char B1 : 1;
  17071. unsigned char B0 : 1;
  17072. #endif
  17073. } BIT;
  17074. } PMR;
  17075. char wk3[37];
  17076. union {
  17077. unsigned char BYTE;
  17078. struct {
  17079. #ifdef __RX_LITTLE_ENDIAN__
  17080. unsigned char B0 : 1;
  17081. unsigned char : 1;
  17082. unsigned char B2 : 1;
  17083. unsigned char : 1;
  17084. unsigned char B4 : 1;
  17085. unsigned char : 1;
  17086. unsigned char B6 : 1;
  17087. unsigned char : 1;
  17088. #else
  17089. unsigned char : 1;
  17090. unsigned char B6 : 1;
  17091. unsigned char : 1;
  17092. unsigned char B4 : 1;
  17093. unsigned char : 1;
  17094. unsigned char B2 : 1;
  17095. unsigned char : 1;
  17096. unsigned char B0 : 1;
  17097. #endif
  17098. } BIT;
  17099. } ODR0;
  17100. union {
  17101. unsigned char BYTE;
  17102. struct {
  17103. #ifdef __RX_LITTLE_ENDIAN__
  17104. unsigned char B0 : 1;
  17105. unsigned char : 1;
  17106. unsigned char B2 : 1;
  17107. unsigned char : 1;
  17108. unsigned char B4 : 1;
  17109. unsigned char : 1;
  17110. unsigned char B6 : 1;
  17111. unsigned char : 1;
  17112. #else
  17113. unsigned char : 1;
  17114. unsigned char B6 : 1;
  17115. unsigned char : 1;
  17116. unsigned char B4 : 1;
  17117. unsigned char : 1;
  17118. unsigned char B2 : 1;
  17119. unsigned char : 1;
  17120. unsigned char B0 : 1;
  17121. #endif
  17122. } BIT;
  17123. } ODR1;
  17124. char wk4[56];
  17125. union {
  17126. unsigned char BYTE;
  17127. struct {
  17128. #ifdef __RX_LITTLE_ENDIAN__
  17129. unsigned char B0 : 1;
  17130. unsigned char B1 : 1;
  17131. unsigned char B2 : 1;
  17132. unsigned char B3 : 1;
  17133. unsigned char B4 : 1;
  17134. unsigned char B5 : 1;
  17135. unsigned char B6 : 1;
  17136. unsigned char B7 : 1;
  17137. #else
  17138. unsigned char B7 : 1;
  17139. unsigned char B6 : 1;
  17140. unsigned char B5 : 1;
  17141. unsigned char B4 : 1;
  17142. unsigned char B3 : 1;
  17143. unsigned char B2 : 1;
  17144. unsigned char B1 : 1;
  17145. unsigned char B0 : 1;
  17146. #endif
  17147. } BIT;
  17148. } PCR;
  17149. } st_port6_t;
  17150. typedef struct st_port7 {
  17151. union {
  17152. unsigned char BYTE;
  17153. struct {
  17154. #ifdef __RX_LITTLE_ENDIAN__
  17155. unsigned char B0 : 1;
  17156. unsigned char B1 : 1;
  17157. unsigned char B2 : 1;
  17158. unsigned char B3 : 1;
  17159. unsigned char B4 : 1;
  17160. unsigned char B5 : 1;
  17161. unsigned char B6 : 1;
  17162. unsigned char B7 : 1;
  17163. #else
  17164. unsigned char B7 : 1;
  17165. unsigned char B6 : 1;
  17166. unsigned char B5 : 1;
  17167. unsigned char B4 : 1;
  17168. unsigned char B3 : 1;
  17169. unsigned char B2 : 1;
  17170. unsigned char B1 : 1;
  17171. unsigned char B0 : 1;
  17172. #endif
  17173. } BIT;
  17174. } PDR;
  17175. char wk0[31];
  17176. union {
  17177. unsigned char BYTE;
  17178. struct {
  17179. #ifdef __RX_LITTLE_ENDIAN__
  17180. unsigned char B0 : 1;
  17181. unsigned char B1 : 1;
  17182. unsigned char B2 : 1;
  17183. unsigned char B3 : 1;
  17184. unsigned char B4 : 1;
  17185. unsigned char B5 : 1;
  17186. unsigned char B6 : 1;
  17187. unsigned char B7 : 1;
  17188. #else
  17189. unsigned char B7 : 1;
  17190. unsigned char B6 : 1;
  17191. unsigned char B5 : 1;
  17192. unsigned char B4 : 1;
  17193. unsigned char B3 : 1;
  17194. unsigned char B2 : 1;
  17195. unsigned char B1 : 1;
  17196. unsigned char B0 : 1;
  17197. #endif
  17198. } BIT;
  17199. } PODR;
  17200. char wk1[31];
  17201. union {
  17202. unsigned char BYTE;
  17203. struct {
  17204. #ifdef __RX_LITTLE_ENDIAN__
  17205. unsigned char B0 : 1;
  17206. unsigned char B1 : 1;
  17207. unsigned char B2 : 1;
  17208. unsigned char B3 : 1;
  17209. unsigned char B4 : 1;
  17210. unsigned char B5 : 1;
  17211. unsigned char B6 : 1;
  17212. unsigned char B7 : 1;
  17213. #else
  17214. unsigned char B7 : 1;
  17215. unsigned char B6 : 1;
  17216. unsigned char B5 : 1;
  17217. unsigned char B4 : 1;
  17218. unsigned char B3 : 1;
  17219. unsigned char B2 : 1;
  17220. unsigned char B1 : 1;
  17221. unsigned char B0 : 1;
  17222. #endif
  17223. } BIT;
  17224. } PIDR;
  17225. char wk2[31];
  17226. union {
  17227. unsigned char BYTE;
  17228. struct {
  17229. #ifdef __RX_LITTLE_ENDIAN__
  17230. unsigned char B0 : 1;
  17231. unsigned char B1 : 1;
  17232. unsigned char B2 : 1;
  17233. unsigned char B3 : 1;
  17234. unsigned char B4 : 1;
  17235. unsigned char B5 : 1;
  17236. unsigned char B6 : 1;
  17237. unsigned char B7 : 1;
  17238. #else
  17239. unsigned char B7 : 1;
  17240. unsigned char B6 : 1;
  17241. unsigned char B5 : 1;
  17242. unsigned char B4 : 1;
  17243. unsigned char B3 : 1;
  17244. unsigned char B2 : 1;
  17245. unsigned char B1 : 1;
  17246. unsigned char B0 : 1;
  17247. #endif
  17248. } BIT;
  17249. } PMR;
  17250. char wk3[38];
  17251. union {
  17252. unsigned char BYTE;
  17253. struct {
  17254. #ifdef __RX_LITTLE_ENDIAN__
  17255. unsigned char B0 : 1;
  17256. unsigned char : 1;
  17257. unsigned char B2 : 1;
  17258. unsigned char : 1;
  17259. unsigned char B4 : 1;
  17260. unsigned char : 1;
  17261. unsigned char B6 : 1;
  17262. unsigned char : 1;
  17263. #else
  17264. unsigned char : 1;
  17265. unsigned char B6 : 1;
  17266. unsigned char : 1;
  17267. unsigned char B4 : 1;
  17268. unsigned char : 1;
  17269. unsigned char B2 : 1;
  17270. unsigned char : 1;
  17271. unsigned char B0 : 1;
  17272. #endif
  17273. } BIT;
  17274. } ODR0;
  17275. union {
  17276. unsigned char BYTE;
  17277. struct {
  17278. #ifdef __RX_LITTLE_ENDIAN__
  17279. unsigned char B0 : 1;
  17280. unsigned char : 1;
  17281. unsigned char B2 : 1;
  17282. unsigned char : 1;
  17283. unsigned char B4 : 1;
  17284. unsigned char : 1;
  17285. unsigned char B6 : 1;
  17286. unsigned char : 1;
  17287. #else
  17288. unsigned char : 1;
  17289. unsigned char B6 : 1;
  17290. unsigned char : 1;
  17291. unsigned char B4 : 1;
  17292. unsigned char : 1;
  17293. unsigned char B2 : 1;
  17294. unsigned char : 1;
  17295. unsigned char B0 : 1;
  17296. #endif
  17297. } BIT;
  17298. } ODR1;
  17299. char wk4[55];
  17300. union {
  17301. unsigned char BYTE;
  17302. struct {
  17303. #ifdef __RX_LITTLE_ENDIAN__
  17304. unsigned char B0 : 1;
  17305. unsigned char B1 : 1;
  17306. unsigned char B2 : 1;
  17307. unsigned char B3 : 1;
  17308. unsigned char B4 : 1;
  17309. unsigned char B5 : 1;
  17310. unsigned char B6 : 1;
  17311. unsigned char B7 : 1;
  17312. #else
  17313. unsigned char B7 : 1;
  17314. unsigned char B6 : 1;
  17315. unsigned char B5 : 1;
  17316. unsigned char B4 : 1;
  17317. unsigned char B3 : 1;
  17318. unsigned char B2 : 1;
  17319. unsigned char B1 : 1;
  17320. unsigned char B0 : 1;
  17321. #endif
  17322. } BIT;
  17323. } PCR;
  17324. char wk5[31];
  17325. union {
  17326. unsigned char BYTE;
  17327. struct {
  17328. #ifdef __RX_LITTLE_ENDIAN__
  17329. unsigned char : 2;
  17330. unsigned char B2 : 1;
  17331. unsigned char : 1;
  17332. unsigned char B4 : 1;
  17333. unsigned char B5 : 1;
  17334. unsigned char B6 : 1;
  17335. unsigned char B7 : 1;
  17336. #else
  17337. unsigned char B7 : 1;
  17338. unsigned char B6 : 1;
  17339. unsigned char B5 : 1;
  17340. unsigned char B4 : 1;
  17341. unsigned char : 1;
  17342. unsigned char B2 : 1;
  17343. unsigned char : 2;
  17344. #endif
  17345. } BIT;
  17346. } DSCR;
  17347. char wk6[71];
  17348. union {
  17349. unsigned char BYTE;
  17350. struct {
  17351. #ifdef __RX_LITTLE_ENDIAN__
  17352. unsigned char B0 : 1;
  17353. unsigned char : 1;
  17354. unsigned char B2 : 1;
  17355. unsigned char B3 : 1;
  17356. unsigned char B4 : 1;
  17357. unsigned char B5 : 1;
  17358. unsigned char B6 : 1;
  17359. unsigned char B7 : 1;
  17360. #else
  17361. unsigned char B7 : 1;
  17362. unsigned char B6 : 1;
  17363. unsigned char B5 : 1;
  17364. unsigned char B4 : 1;
  17365. unsigned char B3 : 1;
  17366. unsigned char B2 : 1;
  17367. unsigned char : 1;
  17368. unsigned char B0 : 1;
  17369. #endif
  17370. } BIT;
  17371. } DSCR2;
  17372. } st_port7_t;
  17373. typedef struct st_port8 {
  17374. union {
  17375. unsigned char BYTE;
  17376. struct {
  17377. #ifdef __RX_LITTLE_ENDIAN__
  17378. unsigned char B0 : 1;
  17379. unsigned char B1 : 1;
  17380. unsigned char B2 : 1;
  17381. unsigned char B3 : 1;
  17382. unsigned char B4 : 1;
  17383. unsigned char B5 : 1;
  17384. unsigned char B6 : 1;
  17385. unsigned char B7 : 1;
  17386. #else
  17387. unsigned char B7 : 1;
  17388. unsigned char B6 : 1;
  17389. unsigned char B5 : 1;
  17390. unsigned char B4 : 1;
  17391. unsigned char B3 : 1;
  17392. unsigned char B2 : 1;
  17393. unsigned char B1 : 1;
  17394. unsigned char B0 : 1;
  17395. #endif
  17396. } BIT;
  17397. } PDR;
  17398. char wk0[31];
  17399. union {
  17400. unsigned char BYTE;
  17401. struct {
  17402. #ifdef __RX_LITTLE_ENDIAN__
  17403. unsigned char B0 : 1;
  17404. unsigned char B1 : 1;
  17405. unsigned char B2 : 1;
  17406. unsigned char B3 : 1;
  17407. unsigned char B4 : 1;
  17408. unsigned char B5 : 1;
  17409. unsigned char B6 : 1;
  17410. unsigned char B7 : 1;
  17411. #else
  17412. unsigned char B7 : 1;
  17413. unsigned char B6 : 1;
  17414. unsigned char B5 : 1;
  17415. unsigned char B4 : 1;
  17416. unsigned char B3 : 1;
  17417. unsigned char B2 : 1;
  17418. unsigned char B1 : 1;
  17419. unsigned char B0 : 1;
  17420. #endif
  17421. } BIT;
  17422. } PODR;
  17423. char wk1[31];
  17424. union {
  17425. unsigned char BYTE;
  17426. struct {
  17427. #ifdef __RX_LITTLE_ENDIAN__
  17428. unsigned char B0 : 1;
  17429. unsigned char B1 : 1;
  17430. unsigned char B2 : 1;
  17431. unsigned char B3 : 1;
  17432. unsigned char B4 : 1;
  17433. unsigned char B5 : 1;
  17434. unsigned char B6 : 1;
  17435. unsigned char B7 : 1;
  17436. #else
  17437. unsigned char B7 : 1;
  17438. unsigned char B6 : 1;
  17439. unsigned char B5 : 1;
  17440. unsigned char B4 : 1;
  17441. unsigned char B3 : 1;
  17442. unsigned char B2 : 1;
  17443. unsigned char B1 : 1;
  17444. unsigned char B0 : 1;
  17445. #endif
  17446. } BIT;
  17447. } PIDR;
  17448. char wk2[31];
  17449. union {
  17450. unsigned char BYTE;
  17451. struct {
  17452. #ifdef __RX_LITTLE_ENDIAN__
  17453. unsigned char B0 : 1;
  17454. unsigned char B1 : 1;
  17455. unsigned char B2 : 1;
  17456. unsigned char B3 : 1;
  17457. unsigned char B4 : 1;
  17458. unsigned char B5 : 1;
  17459. unsigned char B6 : 1;
  17460. unsigned char B7 : 1;
  17461. #else
  17462. unsigned char B7 : 1;
  17463. unsigned char B6 : 1;
  17464. unsigned char B5 : 1;
  17465. unsigned char B4 : 1;
  17466. unsigned char B3 : 1;
  17467. unsigned char B2 : 1;
  17468. unsigned char B1 : 1;
  17469. unsigned char B0 : 1;
  17470. #endif
  17471. } BIT;
  17472. } PMR;
  17473. char wk3[39];
  17474. union {
  17475. unsigned char BYTE;
  17476. struct {
  17477. #ifdef __RX_LITTLE_ENDIAN__
  17478. unsigned char B0 : 1;
  17479. unsigned char : 1;
  17480. unsigned char B2 : 1;
  17481. unsigned char : 1;
  17482. unsigned char B4 : 1;
  17483. unsigned char : 1;
  17484. unsigned char B6 : 1;
  17485. unsigned char : 1;
  17486. #else
  17487. unsigned char : 1;
  17488. unsigned char B6 : 1;
  17489. unsigned char : 1;
  17490. unsigned char B4 : 1;
  17491. unsigned char : 1;
  17492. unsigned char B2 : 1;
  17493. unsigned char : 1;
  17494. unsigned char B0 : 1;
  17495. #endif
  17496. } BIT;
  17497. } ODR0;
  17498. union {
  17499. unsigned char BYTE;
  17500. struct {
  17501. #ifdef __RX_LITTLE_ENDIAN__
  17502. unsigned char B0 : 1;
  17503. unsigned char : 1;
  17504. unsigned char B2 : 1;
  17505. unsigned char : 1;
  17506. unsigned char B4 : 1;
  17507. unsigned char : 1;
  17508. unsigned char B6 : 1;
  17509. unsigned char : 1;
  17510. #else
  17511. unsigned char : 1;
  17512. unsigned char B6 : 1;
  17513. unsigned char : 1;
  17514. unsigned char B4 : 1;
  17515. unsigned char : 1;
  17516. unsigned char B2 : 1;
  17517. unsigned char : 1;
  17518. unsigned char B0 : 1;
  17519. #endif
  17520. } BIT;
  17521. } ODR1;
  17522. char wk4[54];
  17523. union {
  17524. unsigned char BYTE;
  17525. struct {
  17526. #ifdef __RX_LITTLE_ENDIAN__
  17527. unsigned char B0 : 1;
  17528. unsigned char B1 : 1;
  17529. unsigned char B2 : 1;
  17530. unsigned char B3 : 1;
  17531. unsigned char B4 : 1;
  17532. unsigned char B5 : 1;
  17533. unsigned char B6 : 1;
  17534. unsigned char B7 : 1;
  17535. #else
  17536. unsigned char B7 : 1;
  17537. unsigned char B6 : 1;
  17538. unsigned char B5 : 1;
  17539. unsigned char B4 : 1;
  17540. unsigned char B3 : 1;
  17541. unsigned char B2 : 1;
  17542. unsigned char B1 : 1;
  17543. unsigned char B0 : 1;
  17544. #endif
  17545. } BIT;
  17546. } PCR;
  17547. char wk5[31];
  17548. union {
  17549. unsigned char BYTE;
  17550. struct {
  17551. #ifdef __RX_LITTLE_ENDIAN__
  17552. unsigned char B0 : 1;
  17553. unsigned char B1 : 1;
  17554. unsigned char B2 : 1;
  17555. unsigned char B3 : 1;
  17556. unsigned char B4 : 1;
  17557. unsigned char B5 : 1;
  17558. unsigned char : 2;
  17559. #else
  17560. unsigned char : 2;
  17561. unsigned char B5 : 1;
  17562. unsigned char B4 : 1;
  17563. unsigned char B3 : 1;
  17564. unsigned char B2 : 1;
  17565. unsigned char B1 : 1;
  17566. unsigned char B0 : 1;
  17567. #endif
  17568. } BIT;
  17569. } DSCR;
  17570. char wk6[71];
  17571. union {
  17572. unsigned char BYTE;
  17573. struct {
  17574. #ifdef __RX_LITTLE_ENDIAN__
  17575. unsigned char B0 : 1;
  17576. unsigned char B1 : 1;
  17577. unsigned char B2 : 1;
  17578. unsigned char B3 : 1;
  17579. unsigned char B4 : 1;
  17580. unsigned char B5 : 1;
  17581. unsigned char : 1;
  17582. unsigned char B7 : 1;
  17583. #else
  17584. unsigned char B7 : 1;
  17585. unsigned char : 1;
  17586. unsigned char B5 : 1;
  17587. unsigned char B4 : 1;
  17588. unsigned char B3 : 1;
  17589. unsigned char B2 : 1;
  17590. unsigned char B1 : 1;
  17591. unsigned char B0 : 1;
  17592. #endif
  17593. } BIT;
  17594. } DSCR2;
  17595. } st_port8_t;
  17596. typedef struct st_port9 {
  17597. union {
  17598. unsigned char BYTE;
  17599. struct {
  17600. #ifdef __RX_LITTLE_ENDIAN__
  17601. unsigned char B0 : 1;
  17602. unsigned char B1 : 1;
  17603. unsigned char B2 : 1;
  17604. unsigned char B3 : 1;
  17605. unsigned char B4 : 1;
  17606. unsigned char B5 : 1;
  17607. unsigned char B6 : 1;
  17608. unsigned char B7 : 1;
  17609. #else
  17610. unsigned char B7 : 1;
  17611. unsigned char B6 : 1;
  17612. unsigned char B5 : 1;
  17613. unsigned char B4 : 1;
  17614. unsigned char B3 : 1;
  17615. unsigned char B2 : 1;
  17616. unsigned char B1 : 1;
  17617. unsigned char B0 : 1;
  17618. #endif
  17619. } BIT;
  17620. } PDR;
  17621. char wk0[31];
  17622. union {
  17623. unsigned char BYTE;
  17624. struct {
  17625. #ifdef __RX_LITTLE_ENDIAN__
  17626. unsigned char B0 : 1;
  17627. unsigned char B1 : 1;
  17628. unsigned char B2 : 1;
  17629. unsigned char B3 : 1;
  17630. unsigned char B4 : 1;
  17631. unsigned char B5 : 1;
  17632. unsigned char B6 : 1;
  17633. unsigned char B7 : 1;
  17634. #else
  17635. unsigned char B7 : 1;
  17636. unsigned char B6 : 1;
  17637. unsigned char B5 : 1;
  17638. unsigned char B4 : 1;
  17639. unsigned char B3 : 1;
  17640. unsigned char B2 : 1;
  17641. unsigned char B1 : 1;
  17642. unsigned char B0 : 1;
  17643. #endif
  17644. } BIT;
  17645. } PODR;
  17646. char wk1[31];
  17647. union {
  17648. unsigned char BYTE;
  17649. struct {
  17650. #ifdef __RX_LITTLE_ENDIAN__
  17651. unsigned char B0 : 1;
  17652. unsigned char B1 : 1;
  17653. unsigned char B2 : 1;
  17654. unsigned char B3 : 1;
  17655. unsigned char B4 : 1;
  17656. unsigned char B5 : 1;
  17657. unsigned char B6 : 1;
  17658. unsigned char B7 : 1;
  17659. #else
  17660. unsigned char B7 : 1;
  17661. unsigned char B6 : 1;
  17662. unsigned char B5 : 1;
  17663. unsigned char B4 : 1;
  17664. unsigned char B3 : 1;
  17665. unsigned char B2 : 1;
  17666. unsigned char B1 : 1;
  17667. unsigned char B0 : 1;
  17668. #endif
  17669. } BIT;
  17670. } PIDR;
  17671. char wk2[31];
  17672. union {
  17673. unsigned char BYTE;
  17674. struct {
  17675. #ifdef __RX_LITTLE_ENDIAN__
  17676. unsigned char B0 : 1;
  17677. unsigned char B1 : 1;
  17678. unsigned char B2 : 1;
  17679. unsigned char B3 : 1;
  17680. unsigned char B4 : 1;
  17681. unsigned char B5 : 1;
  17682. unsigned char B6 : 1;
  17683. unsigned char B7 : 1;
  17684. #else
  17685. unsigned char B7 : 1;
  17686. unsigned char B6 : 1;
  17687. unsigned char B5 : 1;
  17688. unsigned char B4 : 1;
  17689. unsigned char B3 : 1;
  17690. unsigned char B2 : 1;
  17691. unsigned char B1 : 1;
  17692. unsigned char B0 : 1;
  17693. #endif
  17694. } BIT;
  17695. } PMR;
  17696. char wk3[40];
  17697. union {
  17698. unsigned char BYTE;
  17699. struct {
  17700. #ifdef __RX_LITTLE_ENDIAN__
  17701. unsigned char B0 : 1;
  17702. unsigned char : 1;
  17703. unsigned char B2 : 1;
  17704. unsigned char : 1;
  17705. unsigned char B4 : 1;
  17706. unsigned char : 1;
  17707. unsigned char B6 : 1;
  17708. unsigned char : 1;
  17709. #else
  17710. unsigned char : 1;
  17711. unsigned char B6 : 1;
  17712. unsigned char : 1;
  17713. unsigned char B4 : 1;
  17714. unsigned char : 1;
  17715. unsigned char B2 : 1;
  17716. unsigned char : 1;
  17717. unsigned char B0 : 1;
  17718. #endif
  17719. } BIT;
  17720. } ODR0;
  17721. union {
  17722. unsigned char BYTE;
  17723. struct {
  17724. #ifdef __RX_LITTLE_ENDIAN__
  17725. unsigned char B0 : 1;
  17726. unsigned char : 1;
  17727. unsigned char B2 : 1;
  17728. unsigned char : 1;
  17729. unsigned char B4 : 1;
  17730. unsigned char : 1;
  17731. unsigned char B6 : 1;
  17732. unsigned char : 1;
  17733. #else
  17734. unsigned char : 1;
  17735. unsigned char B6 : 1;
  17736. unsigned char : 1;
  17737. unsigned char B4 : 1;
  17738. unsigned char : 1;
  17739. unsigned char B2 : 1;
  17740. unsigned char : 1;
  17741. unsigned char B0 : 1;
  17742. #endif
  17743. } BIT;
  17744. } ODR1;
  17745. char wk4[53];
  17746. union {
  17747. unsigned char BYTE;
  17748. struct {
  17749. #ifdef __RX_LITTLE_ENDIAN__
  17750. unsigned char B0 : 1;
  17751. unsigned char B1 : 1;
  17752. unsigned char B2 : 1;
  17753. unsigned char B3 : 1;
  17754. unsigned char B4 : 1;
  17755. unsigned char B5 : 1;
  17756. unsigned char B6 : 1;
  17757. unsigned char B7 : 1;
  17758. #else
  17759. unsigned char B7 : 1;
  17760. unsigned char B6 : 1;
  17761. unsigned char B5 : 1;
  17762. unsigned char B4 : 1;
  17763. unsigned char B3 : 1;
  17764. unsigned char B2 : 1;
  17765. unsigned char B1 : 1;
  17766. unsigned char B0 : 1;
  17767. #endif
  17768. } BIT;
  17769. } PCR;
  17770. char wk5[31];
  17771. union {
  17772. unsigned char BYTE;
  17773. struct {
  17774. #ifdef __RX_LITTLE_ENDIAN__
  17775. unsigned char B0 : 1;
  17776. unsigned char B1 : 1;
  17777. unsigned char B2 : 1;
  17778. unsigned char B3 : 1;
  17779. unsigned char B4 : 1;
  17780. unsigned char B5 : 1;
  17781. unsigned char B6 : 1;
  17782. unsigned char B7 : 1;
  17783. #else
  17784. unsigned char B7 : 1;
  17785. unsigned char B6 : 1;
  17786. unsigned char B5 : 1;
  17787. unsigned char B4 : 1;
  17788. unsigned char B3 : 1;
  17789. unsigned char B2 : 1;
  17790. unsigned char B1 : 1;
  17791. unsigned char B0 : 1;
  17792. #endif
  17793. } BIT;
  17794. } DSCR;
  17795. char wk6[71];
  17796. union {
  17797. unsigned char BYTE;
  17798. struct {
  17799. #ifdef __RX_LITTLE_ENDIAN__
  17800. unsigned char B0 : 1;
  17801. unsigned char B1 : 1;
  17802. unsigned char B2 : 1;
  17803. unsigned char B3 : 1;
  17804. unsigned char B4 : 1;
  17805. unsigned char B5 : 1;
  17806. unsigned char B6 : 1;
  17807. unsigned char B7 : 1;
  17808. #else
  17809. unsigned char B7 : 1;
  17810. unsigned char B6 : 1;
  17811. unsigned char B5 : 1;
  17812. unsigned char B4 : 1;
  17813. unsigned char B3 : 1;
  17814. unsigned char B2 : 1;
  17815. unsigned char B1 : 1;
  17816. unsigned char B0 : 1;
  17817. #endif
  17818. } BIT;
  17819. } DSCR2;
  17820. } st_port9_t;
  17821. typedef struct st_porta {
  17822. union {
  17823. unsigned char BYTE;
  17824. struct {
  17825. #ifdef __RX_LITTLE_ENDIAN__
  17826. unsigned char B0 : 1;
  17827. unsigned char B1 : 1;
  17828. unsigned char B2 : 1;
  17829. unsigned char B3 : 1;
  17830. unsigned char B4 : 1;
  17831. unsigned char B5 : 1;
  17832. unsigned char B6 : 1;
  17833. unsigned char B7 : 1;
  17834. #else
  17835. unsigned char B7 : 1;
  17836. unsigned char B6 : 1;
  17837. unsigned char B5 : 1;
  17838. unsigned char B4 : 1;
  17839. unsigned char B3 : 1;
  17840. unsigned char B2 : 1;
  17841. unsigned char B1 : 1;
  17842. unsigned char B0 : 1;
  17843. #endif
  17844. } BIT;
  17845. } PDR;
  17846. char wk0[31];
  17847. union {
  17848. unsigned char BYTE;
  17849. struct {
  17850. #ifdef __RX_LITTLE_ENDIAN__
  17851. unsigned char B0 : 1;
  17852. unsigned char B1 : 1;
  17853. unsigned char B2 : 1;
  17854. unsigned char B3 : 1;
  17855. unsigned char B4 : 1;
  17856. unsigned char B5 : 1;
  17857. unsigned char B6 : 1;
  17858. unsigned char B7 : 1;
  17859. #else
  17860. unsigned char B7 : 1;
  17861. unsigned char B6 : 1;
  17862. unsigned char B5 : 1;
  17863. unsigned char B4 : 1;
  17864. unsigned char B3 : 1;
  17865. unsigned char B2 : 1;
  17866. unsigned char B1 : 1;
  17867. unsigned char B0 : 1;
  17868. #endif
  17869. } BIT;
  17870. } PODR;
  17871. char wk1[31];
  17872. union {
  17873. unsigned char BYTE;
  17874. struct {
  17875. #ifdef __RX_LITTLE_ENDIAN__
  17876. unsigned char B0 : 1;
  17877. unsigned char B1 : 1;
  17878. unsigned char B2 : 1;
  17879. unsigned char B3 : 1;
  17880. unsigned char B4 : 1;
  17881. unsigned char B5 : 1;
  17882. unsigned char B6 : 1;
  17883. unsigned char B7 : 1;
  17884. #else
  17885. unsigned char B7 : 1;
  17886. unsigned char B6 : 1;
  17887. unsigned char B5 : 1;
  17888. unsigned char B4 : 1;
  17889. unsigned char B3 : 1;
  17890. unsigned char B2 : 1;
  17891. unsigned char B1 : 1;
  17892. unsigned char B0 : 1;
  17893. #endif
  17894. } BIT;
  17895. } PIDR;
  17896. char wk2[31];
  17897. union {
  17898. unsigned char BYTE;
  17899. struct {
  17900. #ifdef __RX_LITTLE_ENDIAN__
  17901. unsigned char B0 : 1;
  17902. unsigned char B1 : 1;
  17903. unsigned char B2 : 1;
  17904. unsigned char B3 : 1;
  17905. unsigned char B4 : 1;
  17906. unsigned char B5 : 1;
  17907. unsigned char B6 : 1;
  17908. unsigned char B7 : 1;
  17909. #else
  17910. unsigned char B7 : 1;
  17911. unsigned char B6 : 1;
  17912. unsigned char B5 : 1;
  17913. unsigned char B4 : 1;
  17914. unsigned char B3 : 1;
  17915. unsigned char B2 : 1;
  17916. unsigned char B1 : 1;
  17917. unsigned char B0 : 1;
  17918. #endif
  17919. } BIT;
  17920. } PMR;
  17921. char wk3[41];
  17922. union {
  17923. unsigned char BYTE;
  17924. struct {
  17925. #ifdef __RX_LITTLE_ENDIAN__
  17926. unsigned char B0 : 1;
  17927. unsigned char : 1;
  17928. unsigned char B2 : 1;
  17929. unsigned char : 1;
  17930. unsigned char B4 : 1;
  17931. unsigned char : 1;
  17932. unsigned char B6 : 1;
  17933. unsigned char : 1;
  17934. #else
  17935. unsigned char : 1;
  17936. unsigned char B6 : 1;
  17937. unsigned char : 1;
  17938. unsigned char B4 : 1;
  17939. unsigned char : 1;
  17940. unsigned char B2 : 1;
  17941. unsigned char : 1;
  17942. unsigned char B0 : 1;
  17943. #endif
  17944. } BIT;
  17945. } ODR0;
  17946. union {
  17947. unsigned char BYTE;
  17948. struct {
  17949. #ifdef __RX_LITTLE_ENDIAN__
  17950. unsigned char B0 : 1;
  17951. unsigned char : 1;
  17952. unsigned char B2 : 1;
  17953. unsigned char : 1;
  17954. unsigned char B4 : 1;
  17955. unsigned char : 1;
  17956. unsigned char B6 : 1;
  17957. unsigned char : 1;
  17958. #else
  17959. unsigned char : 1;
  17960. unsigned char B6 : 1;
  17961. unsigned char : 1;
  17962. unsigned char B4 : 1;
  17963. unsigned char : 1;
  17964. unsigned char B2 : 1;
  17965. unsigned char : 1;
  17966. unsigned char B0 : 1;
  17967. #endif
  17968. } BIT;
  17969. } ODR1;
  17970. char wk4[52];
  17971. union {
  17972. unsigned char BYTE;
  17973. struct {
  17974. #ifdef __RX_LITTLE_ENDIAN__
  17975. unsigned char B0 : 1;
  17976. unsigned char B1 : 1;
  17977. unsigned char B2 : 1;
  17978. unsigned char B3 : 1;
  17979. unsigned char B4 : 1;
  17980. unsigned char B5 : 1;
  17981. unsigned char B6 : 1;
  17982. unsigned char B7 : 1;
  17983. #else
  17984. unsigned char B7 : 1;
  17985. unsigned char B6 : 1;
  17986. unsigned char B5 : 1;
  17987. unsigned char B4 : 1;
  17988. unsigned char B3 : 1;
  17989. unsigned char B2 : 1;
  17990. unsigned char B1 : 1;
  17991. unsigned char B0 : 1;
  17992. #endif
  17993. } BIT;
  17994. } PCR;
  17995. char wk5[31];
  17996. union {
  17997. unsigned char BYTE;
  17998. struct {
  17999. #ifdef __RX_LITTLE_ENDIAN__
  18000. unsigned char B0 : 1;
  18001. unsigned char B1 : 1;
  18002. unsigned char B2 : 1;
  18003. unsigned char B3 : 1;
  18004. unsigned char B4 : 1;
  18005. unsigned char B5 : 1;
  18006. unsigned char B6 : 1;
  18007. unsigned char B7 : 1;
  18008. #else
  18009. unsigned char B7 : 1;
  18010. unsigned char B6 : 1;
  18011. unsigned char B5 : 1;
  18012. unsigned char B4 : 1;
  18013. unsigned char B3 : 1;
  18014. unsigned char B2 : 1;
  18015. unsigned char B1 : 1;
  18016. unsigned char B0 : 1;
  18017. #endif
  18018. } BIT;
  18019. } DSCR;
  18020. char wk6[71];
  18021. union {
  18022. unsigned char BYTE;
  18023. struct {
  18024. #ifdef __RX_LITTLE_ENDIAN__
  18025. unsigned char B0 : 1;
  18026. unsigned char B1 : 1;
  18027. unsigned char B2 : 1;
  18028. unsigned char B3 : 1;
  18029. unsigned char B4 : 1;
  18030. unsigned char B5 : 1;
  18031. unsigned char B6 : 1;
  18032. unsigned char B7 : 1;
  18033. #else
  18034. unsigned char B7 : 1;
  18035. unsigned char B6 : 1;
  18036. unsigned char B5 : 1;
  18037. unsigned char B4 : 1;
  18038. unsigned char B3 : 1;
  18039. unsigned char B2 : 1;
  18040. unsigned char B1 : 1;
  18041. unsigned char B0 : 1;
  18042. #endif
  18043. } BIT;
  18044. } DSCR2;
  18045. } st_porta_t;
  18046. typedef struct st_portb {
  18047. union {
  18048. unsigned char BYTE;
  18049. struct {
  18050. #ifdef __RX_LITTLE_ENDIAN__
  18051. unsigned char B0 : 1;
  18052. unsigned char B1 : 1;
  18053. unsigned char B2 : 1;
  18054. unsigned char B3 : 1;
  18055. unsigned char B4 : 1;
  18056. unsigned char B5 : 1;
  18057. unsigned char B6 : 1;
  18058. unsigned char B7 : 1;
  18059. #else
  18060. unsigned char B7 : 1;
  18061. unsigned char B6 : 1;
  18062. unsigned char B5 : 1;
  18063. unsigned char B4 : 1;
  18064. unsigned char B3 : 1;
  18065. unsigned char B2 : 1;
  18066. unsigned char B1 : 1;
  18067. unsigned char B0 : 1;
  18068. #endif
  18069. } BIT;
  18070. } PDR;
  18071. char wk0[31];
  18072. union {
  18073. unsigned char BYTE;
  18074. struct {
  18075. #ifdef __RX_LITTLE_ENDIAN__
  18076. unsigned char B0 : 1;
  18077. unsigned char B1 : 1;
  18078. unsigned char B2 : 1;
  18079. unsigned char B3 : 1;
  18080. unsigned char B4 : 1;
  18081. unsigned char B5 : 1;
  18082. unsigned char B6 : 1;
  18083. unsigned char B7 : 1;
  18084. #else
  18085. unsigned char B7 : 1;
  18086. unsigned char B6 : 1;
  18087. unsigned char B5 : 1;
  18088. unsigned char B4 : 1;
  18089. unsigned char B3 : 1;
  18090. unsigned char B2 : 1;
  18091. unsigned char B1 : 1;
  18092. unsigned char B0 : 1;
  18093. #endif
  18094. } BIT;
  18095. } PODR;
  18096. char wk1[31];
  18097. union {
  18098. unsigned char BYTE;
  18099. struct {
  18100. #ifdef __RX_LITTLE_ENDIAN__
  18101. unsigned char B0 : 1;
  18102. unsigned char B1 : 1;
  18103. unsigned char B2 : 1;
  18104. unsigned char B3 : 1;
  18105. unsigned char B4 : 1;
  18106. unsigned char B5 : 1;
  18107. unsigned char B6 : 1;
  18108. unsigned char B7 : 1;
  18109. #else
  18110. unsigned char B7 : 1;
  18111. unsigned char B6 : 1;
  18112. unsigned char B5 : 1;
  18113. unsigned char B4 : 1;
  18114. unsigned char B3 : 1;
  18115. unsigned char B2 : 1;
  18116. unsigned char B1 : 1;
  18117. unsigned char B0 : 1;
  18118. #endif
  18119. } BIT;
  18120. } PIDR;
  18121. char wk2[31];
  18122. union {
  18123. unsigned char BYTE;
  18124. struct {
  18125. #ifdef __RX_LITTLE_ENDIAN__
  18126. unsigned char B0 : 1;
  18127. unsigned char B1 : 1;
  18128. unsigned char B2 : 1;
  18129. unsigned char B3 : 1;
  18130. unsigned char B4 : 1;
  18131. unsigned char B5 : 1;
  18132. unsigned char B6 : 1;
  18133. unsigned char B7 : 1;
  18134. #else
  18135. unsigned char B7 : 1;
  18136. unsigned char B6 : 1;
  18137. unsigned char B5 : 1;
  18138. unsigned char B4 : 1;
  18139. unsigned char B3 : 1;
  18140. unsigned char B2 : 1;
  18141. unsigned char B1 : 1;
  18142. unsigned char B0 : 1;
  18143. #endif
  18144. } BIT;
  18145. } PMR;
  18146. char wk3[42];
  18147. union {
  18148. unsigned char BYTE;
  18149. struct {
  18150. #ifdef __RX_LITTLE_ENDIAN__
  18151. unsigned char B0 : 1;
  18152. unsigned char : 1;
  18153. unsigned char B2 : 1;
  18154. unsigned char : 1;
  18155. unsigned char B4 : 1;
  18156. unsigned char : 1;
  18157. unsigned char B6 : 1;
  18158. unsigned char : 1;
  18159. #else
  18160. unsigned char : 1;
  18161. unsigned char B6 : 1;
  18162. unsigned char : 1;
  18163. unsigned char B4 : 1;
  18164. unsigned char : 1;
  18165. unsigned char B2 : 1;
  18166. unsigned char : 1;
  18167. unsigned char B0 : 1;
  18168. #endif
  18169. } BIT;
  18170. } ODR0;
  18171. union {
  18172. unsigned char BYTE;
  18173. struct {
  18174. #ifdef __RX_LITTLE_ENDIAN__
  18175. unsigned char B0 : 1;
  18176. unsigned char : 1;
  18177. unsigned char B2 : 1;
  18178. unsigned char : 1;
  18179. unsigned char B4 : 1;
  18180. unsigned char : 1;
  18181. unsigned char B6 : 1;
  18182. unsigned char : 1;
  18183. #else
  18184. unsigned char : 1;
  18185. unsigned char B6 : 1;
  18186. unsigned char : 1;
  18187. unsigned char B4 : 1;
  18188. unsigned char : 1;
  18189. unsigned char B2 : 1;
  18190. unsigned char : 1;
  18191. unsigned char B0 : 1;
  18192. #endif
  18193. } BIT;
  18194. } ODR1;
  18195. char wk4[51];
  18196. union {
  18197. unsigned char BYTE;
  18198. struct {
  18199. #ifdef __RX_LITTLE_ENDIAN__
  18200. unsigned char B0 : 1;
  18201. unsigned char B1 : 1;
  18202. unsigned char B2 : 1;
  18203. unsigned char B3 : 1;
  18204. unsigned char B4 : 1;
  18205. unsigned char B5 : 1;
  18206. unsigned char B6 : 1;
  18207. unsigned char B7 : 1;
  18208. #else
  18209. unsigned char B7 : 1;
  18210. unsigned char B6 : 1;
  18211. unsigned char B5 : 1;
  18212. unsigned char B4 : 1;
  18213. unsigned char B3 : 1;
  18214. unsigned char B2 : 1;
  18215. unsigned char B1 : 1;
  18216. unsigned char B0 : 1;
  18217. #endif
  18218. } BIT;
  18219. } PCR;
  18220. char wk5[31];
  18221. union {
  18222. unsigned char BYTE;
  18223. struct {
  18224. #ifdef __RX_LITTLE_ENDIAN__
  18225. unsigned char B0 : 1;
  18226. unsigned char B1 : 1;
  18227. unsigned char B2 : 1;
  18228. unsigned char B3 : 1;
  18229. unsigned char B4 : 1;
  18230. unsigned char B5 : 1;
  18231. unsigned char B6 : 1;
  18232. unsigned char B7 : 1;
  18233. #else
  18234. unsigned char B7 : 1;
  18235. unsigned char B6 : 1;
  18236. unsigned char B5 : 1;
  18237. unsigned char B4 : 1;
  18238. unsigned char B3 : 1;
  18239. unsigned char B2 : 1;
  18240. unsigned char B1 : 1;
  18241. unsigned char B0 : 1;
  18242. #endif
  18243. } BIT;
  18244. } DSCR;
  18245. char wk6[71];
  18246. union {
  18247. unsigned char BYTE;
  18248. struct {
  18249. #ifdef __RX_LITTLE_ENDIAN__
  18250. unsigned char B0 : 1;
  18251. unsigned char B1 : 1;
  18252. unsigned char B2 : 1;
  18253. unsigned char B3 : 1;
  18254. unsigned char B4 : 1;
  18255. unsigned char B5 : 1;
  18256. unsigned char B6 : 1;
  18257. unsigned char B7 : 1;
  18258. #else
  18259. unsigned char B7 : 1;
  18260. unsigned char B6 : 1;
  18261. unsigned char B5 : 1;
  18262. unsigned char B4 : 1;
  18263. unsigned char B3 : 1;
  18264. unsigned char B2 : 1;
  18265. unsigned char B1 : 1;
  18266. unsigned char B0 : 1;
  18267. #endif
  18268. } BIT;
  18269. } DSCR2;
  18270. } st_portb_t;
  18271. typedef struct st_portc {
  18272. union {
  18273. unsigned char BYTE;
  18274. struct {
  18275. #ifdef __RX_LITTLE_ENDIAN__
  18276. unsigned char B0 : 1;
  18277. unsigned char B1 : 1;
  18278. unsigned char B2 : 1;
  18279. unsigned char B3 : 1;
  18280. unsigned char B4 : 1;
  18281. unsigned char B5 : 1;
  18282. unsigned char B6 : 1;
  18283. unsigned char B7 : 1;
  18284. #else
  18285. unsigned char B7 : 1;
  18286. unsigned char B6 : 1;
  18287. unsigned char B5 : 1;
  18288. unsigned char B4 : 1;
  18289. unsigned char B3 : 1;
  18290. unsigned char B2 : 1;
  18291. unsigned char B1 : 1;
  18292. unsigned char B0 : 1;
  18293. #endif
  18294. } BIT;
  18295. } PDR;
  18296. char wk0[31];
  18297. union {
  18298. unsigned char BYTE;
  18299. struct {
  18300. #ifdef __RX_LITTLE_ENDIAN__
  18301. unsigned char B0 : 1;
  18302. unsigned char B1 : 1;
  18303. unsigned char B2 : 1;
  18304. unsigned char B3 : 1;
  18305. unsigned char B4 : 1;
  18306. unsigned char B5 : 1;
  18307. unsigned char B6 : 1;
  18308. unsigned char B7 : 1;
  18309. #else
  18310. unsigned char B7 : 1;
  18311. unsigned char B6 : 1;
  18312. unsigned char B5 : 1;
  18313. unsigned char B4 : 1;
  18314. unsigned char B3 : 1;
  18315. unsigned char B2 : 1;
  18316. unsigned char B1 : 1;
  18317. unsigned char B0 : 1;
  18318. #endif
  18319. } BIT;
  18320. } PODR;
  18321. char wk1[31];
  18322. union {
  18323. unsigned char BYTE;
  18324. struct {
  18325. #ifdef __RX_LITTLE_ENDIAN__
  18326. unsigned char B0 : 1;
  18327. unsigned char B1 : 1;
  18328. unsigned char B2 : 1;
  18329. unsigned char B3 : 1;
  18330. unsigned char B4 : 1;
  18331. unsigned char B5 : 1;
  18332. unsigned char B6 : 1;
  18333. unsigned char B7 : 1;
  18334. #else
  18335. unsigned char B7 : 1;
  18336. unsigned char B6 : 1;
  18337. unsigned char B5 : 1;
  18338. unsigned char B4 : 1;
  18339. unsigned char B3 : 1;
  18340. unsigned char B2 : 1;
  18341. unsigned char B1 : 1;
  18342. unsigned char B0 : 1;
  18343. #endif
  18344. } BIT;
  18345. } PIDR;
  18346. char wk2[31];
  18347. union {
  18348. unsigned char BYTE;
  18349. struct {
  18350. #ifdef __RX_LITTLE_ENDIAN__
  18351. unsigned char B0 : 1;
  18352. unsigned char B1 : 1;
  18353. unsigned char B2 : 1;
  18354. unsigned char B3 : 1;
  18355. unsigned char B4 : 1;
  18356. unsigned char B5 : 1;
  18357. unsigned char B6 : 1;
  18358. unsigned char B7 : 1;
  18359. #else
  18360. unsigned char B7 : 1;
  18361. unsigned char B6 : 1;
  18362. unsigned char B5 : 1;
  18363. unsigned char B4 : 1;
  18364. unsigned char B3 : 1;
  18365. unsigned char B2 : 1;
  18366. unsigned char B1 : 1;
  18367. unsigned char B0 : 1;
  18368. #endif
  18369. } BIT;
  18370. } PMR;
  18371. char wk3[43];
  18372. union {
  18373. unsigned char BYTE;
  18374. struct {
  18375. #ifdef __RX_LITTLE_ENDIAN__
  18376. unsigned char B0 : 1;
  18377. unsigned char : 1;
  18378. unsigned char B2 : 1;
  18379. unsigned char : 1;
  18380. unsigned char B4 : 1;
  18381. unsigned char : 1;
  18382. unsigned char B6 : 1;
  18383. unsigned char : 1;
  18384. #else
  18385. unsigned char : 1;
  18386. unsigned char B6 : 1;
  18387. unsigned char : 1;
  18388. unsigned char B4 : 1;
  18389. unsigned char : 1;
  18390. unsigned char B2 : 1;
  18391. unsigned char : 1;
  18392. unsigned char B0 : 1;
  18393. #endif
  18394. } BIT;
  18395. } ODR0;
  18396. union {
  18397. unsigned char BYTE;
  18398. struct {
  18399. #ifdef __RX_LITTLE_ENDIAN__
  18400. unsigned char B0 : 1;
  18401. unsigned char : 1;
  18402. unsigned char B2 : 1;
  18403. unsigned char : 1;
  18404. unsigned char B4 : 1;
  18405. unsigned char : 1;
  18406. unsigned char B6 : 1;
  18407. unsigned char : 1;
  18408. #else
  18409. unsigned char : 1;
  18410. unsigned char B6 : 1;
  18411. unsigned char : 1;
  18412. unsigned char B4 : 1;
  18413. unsigned char : 1;
  18414. unsigned char B2 : 1;
  18415. unsigned char : 1;
  18416. unsigned char B0 : 1;
  18417. #endif
  18418. } BIT;
  18419. } ODR1;
  18420. char wk4[50];
  18421. union {
  18422. unsigned char BYTE;
  18423. struct {
  18424. #ifdef __RX_LITTLE_ENDIAN__
  18425. unsigned char B0 : 1;
  18426. unsigned char B1 : 1;
  18427. unsigned char B2 : 1;
  18428. unsigned char B3 : 1;
  18429. unsigned char B4 : 1;
  18430. unsigned char B5 : 1;
  18431. unsigned char B6 : 1;
  18432. unsigned char B7 : 1;
  18433. #else
  18434. unsigned char B7 : 1;
  18435. unsigned char B6 : 1;
  18436. unsigned char B5 : 1;
  18437. unsigned char B4 : 1;
  18438. unsigned char B3 : 1;
  18439. unsigned char B2 : 1;
  18440. unsigned char B1 : 1;
  18441. unsigned char B0 : 1;
  18442. #endif
  18443. } BIT;
  18444. } PCR;
  18445. char wk5[31];
  18446. union {
  18447. unsigned char BYTE;
  18448. struct {
  18449. #ifdef __RX_LITTLE_ENDIAN__
  18450. unsigned char B0 : 1;
  18451. unsigned char B1 : 1;
  18452. unsigned char B2 : 1;
  18453. unsigned char B3 : 1;
  18454. unsigned char B4 : 1;
  18455. unsigned char B5 : 1;
  18456. unsigned char B6 : 1;
  18457. unsigned char B7 : 1;
  18458. #else
  18459. unsigned char B7 : 1;
  18460. unsigned char B6 : 1;
  18461. unsigned char B5 : 1;
  18462. unsigned char B4 : 1;
  18463. unsigned char B3 : 1;
  18464. unsigned char B2 : 1;
  18465. unsigned char B1 : 1;
  18466. unsigned char B0 : 1;
  18467. #endif
  18468. } BIT;
  18469. } DSCR;
  18470. char wk6[71];
  18471. union {
  18472. unsigned char BYTE;
  18473. struct {
  18474. #ifdef __RX_LITTLE_ENDIAN__
  18475. unsigned char B0 : 1;
  18476. unsigned char B1 : 1;
  18477. unsigned char B2 : 1;
  18478. unsigned char B3 : 1;
  18479. unsigned char B4 : 1;
  18480. unsigned char B5 : 1;
  18481. unsigned char B6 : 1;
  18482. unsigned char B7 : 1;
  18483. #else
  18484. unsigned char B7 : 1;
  18485. unsigned char B6 : 1;
  18486. unsigned char B5 : 1;
  18487. unsigned char B4 : 1;
  18488. unsigned char B3 : 1;
  18489. unsigned char B2 : 1;
  18490. unsigned char B1 : 1;
  18491. unsigned char B0 : 1;
  18492. #endif
  18493. } BIT;
  18494. } DSCR2;
  18495. } st_portc_t;
  18496. typedef struct st_portd {
  18497. union {
  18498. unsigned char BYTE;
  18499. struct {
  18500. #ifdef __RX_LITTLE_ENDIAN__
  18501. unsigned char B0 : 1;
  18502. unsigned char B1 : 1;
  18503. unsigned char B2 : 1;
  18504. unsigned char B3 : 1;
  18505. unsigned char B4 : 1;
  18506. unsigned char B5 : 1;
  18507. unsigned char B6 : 1;
  18508. unsigned char B7 : 1;
  18509. #else
  18510. unsigned char B7 : 1;
  18511. unsigned char B6 : 1;
  18512. unsigned char B5 : 1;
  18513. unsigned char B4 : 1;
  18514. unsigned char B3 : 1;
  18515. unsigned char B2 : 1;
  18516. unsigned char B1 : 1;
  18517. unsigned char B0 : 1;
  18518. #endif
  18519. } BIT;
  18520. } PDR;
  18521. char wk0[31];
  18522. union {
  18523. unsigned char BYTE;
  18524. struct {
  18525. #ifdef __RX_LITTLE_ENDIAN__
  18526. unsigned char B0 : 1;
  18527. unsigned char B1 : 1;
  18528. unsigned char B2 : 1;
  18529. unsigned char B3 : 1;
  18530. unsigned char B4 : 1;
  18531. unsigned char B5 : 1;
  18532. unsigned char B6 : 1;
  18533. unsigned char B7 : 1;
  18534. #else
  18535. unsigned char B7 : 1;
  18536. unsigned char B6 : 1;
  18537. unsigned char B5 : 1;
  18538. unsigned char B4 : 1;
  18539. unsigned char B3 : 1;
  18540. unsigned char B2 : 1;
  18541. unsigned char B1 : 1;
  18542. unsigned char B0 : 1;
  18543. #endif
  18544. } BIT;
  18545. } PODR;
  18546. char wk1[31];
  18547. union {
  18548. unsigned char BYTE;
  18549. struct {
  18550. #ifdef __RX_LITTLE_ENDIAN__
  18551. unsigned char B0 : 1;
  18552. unsigned char B1 : 1;
  18553. unsigned char B2 : 1;
  18554. unsigned char B3 : 1;
  18555. unsigned char B4 : 1;
  18556. unsigned char B5 : 1;
  18557. unsigned char B6 : 1;
  18558. unsigned char B7 : 1;
  18559. #else
  18560. unsigned char B7 : 1;
  18561. unsigned char B6 : 1;
  18562. unsigned char B5 : 1;
  18563. unsigned char B4 : 1;
  18564. unsigned char B3 : 1;
  18565. unsigned char B2 : 1;
  18566. unsigned char B1 : 1;
  18567. unsigned char B0 : 1;
  18568. #endif
  18569. } BIT;
  18570. } PIDR;
  18571. char wk2[31];
  18572. union {
  18573. unsigned char BYTE;
  18574. struct {
  18575. #ifdef __RX_LITTLE_ENDIAN__
  18576. unsigned char B0 : 1;
  18577. unsigned char B1 : 1;
  18578. unsigned char B2 : 1;
  18579. unsigned char B3 : 1;
  18580. unsigned char B4 : 1;
  18581. unsigned char B5 : 1;
  18582. unsigned char B6 : 1;
  18583. unsigned char B7 : 1;
  18584. #else
  18585. unsigned char B7 : 1;
  18586. unsigned char B6 : 1;
  18587. unsigned char B5 : 1;
  18588. unsigned char B4 : 1;
  18589. unsigned char B3 : 1;
  18590. unsigned char B2 : 1;
  18591. unsigned char B1 : 1;
  18592. unsigned char B0 : 1;
  18593. #endif
  18594. } BIT;
  18595. } PMR;
  18596. char wk3[44];
  18597. union {
  18598. unsigned char BYTE;
  18599. struct {
  18600. #ifdef __RX_LITTLE_ENDIAN__
  18601. unsigned char B0 : 1;
  18602. unsigned char : 1;
  18603. unsigned char B2 : 1;
  18604. unsigned char : 1;
  18605. unsigned char B4 : 1;
  18606. unsigned char : 1;
  18607. unsigned char B6 : 1;
  18608. unsigned char : 1;
  18609. #else
  18610. unsigned char : 1;
  18611. unsigned char B6 : 1;
  18612. unsigned char : 1;
  18613. unsigned char B4 : 1;
  18614. unsigned char : 1;
  18615. unsigned char B2 : 1;
  18616. unsigned char : 1;
  18617. unsigned char B0 : 1;
  18618. #endif
  18619. } BIT;
  18620. } ODR0;
  18621. union {
  18622. unsigned char BYTE;
  18623. struct {
  18624. #ifdef __RX_LITTLE_ENDIAN__
  18625. unsigned char B0 : 1;
  18626. unsigned char : 1;
  18627. unsigned char B2 : 1;
  18628. unsigned char : 1;
  18629. unsigned char B4 : 1;
  18630. unsigned char : 1;
  18631. unsigned char B6 : 1;
  18632. unsigned char : 1;
  18633. #else
  18634. unsigned char : 1;
  18635. unsigned char B6 : 1;
  18636. unsigned char : 1;
  18637. unsigned char B4 : 1;
  18638. unsigned char : 1;
  18639. unsigned char B2 : 1;
  18640. unsigned char : 1;
  18641. unsigned char B0 : 1;
  18642. #endif
  18643. } BIT;
  18644. } ODR1;
  18645. char wk4[49];
  18646. union {
  18647. unsigned char BYTE;
  18648. struct {
  18649. #ifdef __RX_LITTLE_ENDIAN__
  18650. unsigned char B0 : 1;
  18651. unsigned char B1 : 1;
  18652. unsigned char B2 : 1;
  18653. unsigned char B3 : 1;
  18654. unsigned char B4 : 1;
  18655. unsigned char B5 : 1;
  18656. unsigned char B6 : 1;
  18657. unsigned char B7 : 1;
  18658. #else
  18659. unsigned char B7 : 1;
  18660. unsigned char B6 : 1;
  18661. unsigned char B5 : 1;
  18662. unsigned char B4 : 1;
  18663. unsigned char B3 : 1;
  18664. unsigned char B2 : 1;
  18665. unsigned char B1 : 1;
  18666. unsigned char B0 : 1;
  18667. #endif
  18668. } BIT;
  18669. } PCR;
  18670. char wk5[31];
  18671. union {
  18672. unsigned char BYTE;
  18673. struct {
  18674. #ifdef __RX_LITTLE_ENDIAN__
  18675. unsigned char B0 : 1;
  18676. unsigned char B1 : 1;
  18677. unsigned char B2 : 1;
  18678. unsigned char B3 : 1;
  18679. unsigned char B4 : 1;
  18680. unsigned char B5 : 1;
  18681. unsigned char B6 : 1;
  18682. unsigned char B7 : 1;
  18683. #else
  18684. unsigned char B7 : 1;
  18685. unsigned char B6 : 1;
  18686. unsigned char B5 : 1;
  18687. unsigned char B4 : 1;
  18688. unsigned char B3 : 1;
  18689. unsigned char B2 : 1;
  18690. unsigned char B1 : 1;
  18691. unsigned char B0 : 1;
  18692. #endif
  18693. } BIT;
  18694. } DSCR;
  18695. char wk6[71];
  18696. union {
  18697. unsigned char BYTE;
  18698. struct {
  18699. #ifdef __RX_LITTLE_ENDIAN__
  18700. unsigned char B0 : 1;
  18701. unsigned char B1 : 1;
  18702. unsigned char B2 : 1;
  18703. unsigned char B3 : 1;
  18704. unsigned char B4 : 1;
  18705. unsigned char B5 : 1;
  18706. unsigned char B6 : 1;
  18707. unsigned char B7 : 1;
  18708. #else
  18709. unsigned char B7 : 1;
  18710. unsigned char B6 : 1;
  18711. unsigned char B5 : 1;
  18712. unsigned char B4 : 1;
  18713. unsigned char B3 : 1;
  18714. unsigned char B2 : 1;
  18715. unsigned char B1 : 1;
  18716. unsigned char B0 : 1;
  18717. #endif
  18718. } BIT;
  18719. } DSCR2;
  18720. } st_portd_t;
  18721. typedef struct st_porte {
  18722. union {
  18723. unsigned char BYTE;
  18724. struct {
  18725. #ifdef __RX_LITTLE_ENDIAN__
  18726. unsigned char B0 : 1;
  18727. unsigned char B1 : 1;
  18728. unsigned char B2 : 1;
  18729. unsigned char B3 : 1;
  18730. unsigned char B4 : 1;
  18731. unsigned char B5 : 1;
  18732. unsigned char B6 : 1;
  18733. unsigned char B7 : 1;
  18734. #else
  18735. unsigned char B7 : 1;
  18736. unsigned char B6 : 1;
  18737. unsigned char B5 : 1;
  18738. unsigned char B4 : 1;
  18739. unsigned char B3 : 1;
  18740. unsigned char B2 : 1;
  18741. unsigned char B1 : 1;
  18742. unsigned char B0 : 1;
  18743. #endif
  18744. } BIT;
  18745. } PDR;
  18746. char wk0[31];
  18747. union {
  18748. unsigned char BYTE;
  18749. struct {
  18750. #ifdef __RX_LITTLE_ENDIAN__
  18751. unsigned char B0 : 1;
  18752. unsigned char B1 : 1;
  18753. unsigned char B2 : 1;
  18754. unsigned char B3 : 1;
  18755. unsigned char B4 : 1;
  18756. unsigned char B5 : 1;
  18757. unsigned char B6 : 1;
  18758. unsigned char B7 : 1;
  18759. #else
  18760. unsigned char B7 : 1;
  18761. unsigned char B6 : 1;
  18762. unsigned char B5 : 1;
  18763. unsigned char B4 : 1;
  18764. unsigned char B3 : 1;
  18765. unsigned char B2 : 1;
  18766. unsigned char B1 : 1;
  18767. unsigned char B0 : 1;
  18768. #endif
  18769. } BIT;
  18770. } PODR;
  18771. char wk1[31];
  18772. union {
  18773. unsigned char BYTE;
  18774. struct {
  18775. #ifdef __RX_LITTLE_ENDIAN__
  18776. unsigned char B0 : 1;
  18777. unsigned char B1 : 1;
  18778. unsigned char B2 : 1;
  18779. unsigned char B3 : 1;
  18780. unsigned char B4 : 1;
  18781. unsigned char B5 : 1;
  18782. unsigned char B6 : 1;
  18783. unsigned char B7 : 1;
  18784. #else
  18785. unsigned char B7 : 1;
  18786. unsigned char B6 : 1;
  18787. unsigned char B5 : 1;
  18788. unsigned char B4 : 1;
  18789. unsigned char B3 : 1;
  18790. unsigned char B2 : 1;
  18791. unsigned char B1 : 1;
  18792. unsigned char B0 : 1;
  18793. #endif
  18794. } BIT;
  18795. } PIDR;
  18796. char wk2[31];
  18797. union {
  18798. unsigned char BYTE;
  18799. struct {
  18800. #ifdef __RX_LITTLE_ENDIAN__
  18801. unsigned char B0 : 1;
  18802. unsigned char B1 : 1;
  18803. unsigned char B2 : 1;
  18804. unsigned char B3 : 1;
  18805. unsigned char B4 : 1;
  18806. unsigned char B5 : 1;
  18807. unsigned char B6 : 1;
  18808. unsigned char B7 : 1;
  18809. #else
  18810. unsigned char B7 : 1;
  18811. unsigned char B6 : 1;
  18812. unsigned char B5 : 1;
  18813. unsigned char B4 : 1;
  18814. unsigned char B3 : 1;
  18815. unsigned char B2 : 1;
  18816. unsigned char B1 : 1;
  18817. unsigned char B0 : 1;
  18818. #endif
  18819. } BIT;
  18820. } PMR;
  18821. char wk3[45];
  18822. union {
  18823. unsigned char BYTE;
  18824. struct {
  18825. #ifdef __RX_LITTLE_ENDIAN__
  18826. unsigned char B0 : 1;
  18827. unsigned char : 1;
  18828. unsigned char B2 : 1;
  18829. unsigned char B3 : 1;
  18830. unsigned char B4 : 1;
  18831. unsigned char : 1;
  18832. unsigned char B6 : 1;
  18833. unsigned char : 1;
  18834. #else
  18835. unsigned char : 1;
  18836. unsigned char B6 : 1;
  18837. unsigned char : 1;
  18838. unsigned char B4 : 1;
  18839. unsigned char B3 : 1;
  18840. unsigned char B2 : 1;
  18841. unsigned char : 1;
  18842. unsigned char B0 : 1;
  18843. #endif
  18844. } BIT;
  18845. } ODR0;
  18846. union {
  18847. unsigned char BYTE;
  18848. struct {
  18849. #ifdef __RX_LITTLE_ENDIAN__
  18850. unsigned char B0 : 1;
  18851. unsigned char : 1;
  18852. unsigned char B2 : 1;
  18853. unsigned char : 1;
  18854. unsigned char B4 : 1;
  18855. unsigned char : 1;
  18856. unsigned char B6 : 1;
  18857. unsigned char : 1;
  18858. #else
  18859. unsigned char : 1;
  18860. unsigned char B6 : 1;
  18861. unsigned char : 1;
  18862. unsigned char B4 : 1;
  18863. unsigned char : 1;
  18864. unsigned char B2 : 1;
  18865. unsigned char : 1;
  18866. unsigned char B0 : 1;
  18867. #endif
  18868. } BIT;
  18869. } ODR1;
  18870. char wk4[48];
  18871. union {
  18872. unsigned char BYTE;
  18873. struct {
  18874. #ifdef __RX_LITTLE_ENDIAN__
  18875. unsigned char B0 : 1;
  18876. unsigned char B1 : 1;
  18877. unsigned char B2 : 1;
  18878. unsigned char B3 : 1;
  18879. unsigned char B4 : 1;
  18880. unsigned char B5 : 1;
  18881. unsigned char B6 : 1;
  18882. unsigned char B7 : 1;
  18883. #else
  18884. unsigned char B7 : 1;
  18885. unsigned char B6 : 1;
  18886. unsigned char B5 : 1;
  18887. unsigned char B4 : 1;
  18888. unsigned char B3 : 1;
  18889. unsigned char B2 : 1;
  18890. unsigned char B1 : 1;
  18891. unsigned char B0 : 1;
  18892. #endif
  18893. } BIT;
  18894. } PCR;
  18895. char wk5[31];
  18896. union {
  18897. unsigned char BYTE;
  18898. struct {
  18899. #ifdef __RX_LITTLE_ENDIAN__
  18900. unsigned char B0 : 1;
  18901. unsigned char B1 : 1;
  18902. unsigned char B2 : 1;
  18903. unsigned char B3 : 1;
  18904. unsigned char B4 : 1;
  18905. unsigned char B5 : 1;
  18906. unsigned char B6 : 1;
  18907. unsigned char B7 : 1;
  18908. #else
  18909. unsigned char B7 : 1;
  18910. unsigned char B6 : 1;
  18911. unsigned char B5 : 1;
  18912. unsigned char B4 : 1;
  18913. unsigned char B3 : 1;
  18914. unsigned char B2 : 1;
  18915. unsigned char B1 : 1;
  18916. unsigned char B0 : 1;
  18917. #endif
  18918. } BIT;
  18919. } DSCR;
  18920. char wk6[71];
  18921. union {
  18922. unsigned char BYTE;
  18923. struct {
  18924. #ifdef __RX_LITTLE_ENDIAN__
  18925. unsigned char B0 : 1;
  18926. unsigned char B1 : 1;
  18927. unsigned char B2 : 1;
  18928. unsigned char B3 : 1;
  18929. unsigned char B4 : 1;
  18930. unsigned char B5 : 1;
  18931. unsigned char B6 : 1;
  18932. unsigned char B7 : 1;
  18933. #else
  18934. unsigned char B7 : 1;
  18935. unsigned char B6 : 1;
  18936. unsigned char B5 : 1;
  18937. unsigned char B4 : 1;
  18938. unsigned char B3 : 1;
  18939. unsigned char B2 : 1;
  18940. unsigned char B1 : 1;
  18941. unsigned char B0 : 1;
  18942. #endif
  18943. } BIT;
  18944. } DSCR2;
  18945. } st_porte_t;
  18946. typedef struct st_portf {
  18947. union {
  18948. unsigned char BYTE;
  18949. struct {
  18950. #ifdef __RX_LITTLE_ENDIAN__
  18951. unsigned char B0 : 1;
  18952. unsigned char B1 : 1;
  18953. unsigned char B2 : 1;
  18954. unsigned char B3 : 1;
  18955. unsigned char B4 : 1;
  18956. unsigned char B5 : 1;
  18957. unsigned char : 2;
  18958. #else
  18959. unsigned char : 2;
  18960. unsigned char B5 : 1;
  18961. unsigned char B4 : 1;
  18962. unsigned char B3 : 1;
  18963. unsigned char B2 : 1;
  18964. unsigned char B1 : 1;
  18965. unsigned char B0 : 1;
  18966. #endif
  18967. } BIT;
  18968. } PDR;
  18969. char wk0[31];
  18970. union {
  18971. unsigned char BYTE;
  18972. struct {
  18973. #ifdef __RX_LITTLE_ENDIAN__
  18974. unsigned char B0 : 1;
  18975. unsigned char B1 : 1;
  18976. unsigned char B2 : 1;
  18977. unsigned char B3 : 1;
  18978. unsigned char B4 : 1;
  18979. unsigned char B5 : 1;
  18980. unsigned char : 2;
  18981. #else
  18982. unsigned char : 2;
  18983. unsigned char B5 : 1;
  18984. unsigned char B4 : 1;
  18985. unsigned char B3 : 1;
  18986. unsigned char B2 : 1;
  18987. unsigned char B1 : 1;
  18988. unsigned char B0 : 1;
  18989. #endif
  18990. } BIT;
  18991. } PODR;
  18992. char wk1[31];
  18993. union {
  18994. unsigned char BYTE;
  18995. struct {
  18996. #ifdef __RX_LITTLE_ENDIAN__
  18997. unsigned char B0 : 1;
  18998. unsigned char B1 : 1;
  18999. unsigned char B2 : 1;
  19000. unsigned char B3 : 1;
  19001. unsigned char B4 : 1;
  19002. unsigned char B5 : 1;
  19003. unsigned char : 2;
  19004. #else
  19005. unsigned char : 2;
  19006. unsigned char B5 : 1;
  19007. unsigned char B4 : 1;
  19008. unsigned char B3 : 1;
  19009. unsigned char B2 : 1;
  19010. unsigned char B1 : 1;
  19011. unsigned char B0 : 1;
  19012. #endif
  19013. } BIT;
  19014. } PIDR;
  19015. char wk2[31];
  19016. union {
  19017. unsigned char BYTE;
  19018. struct {
  19019. #ifdef __RX_LITTLE_ENDIAN__
  19020. unsigned char B0 : 1;
  19021. unsigned char B1 : 1;
  19022. unsigned char B2 : 1;
  19023. unsigned char B3 : 1;
  19024. unsigned char B4 : 1;
  19025. unsigned char B5 : 1;
  19026. unsigned char : 2;
  19027. #else
  19028. unsigned char : 2;
  19029. unsigned char B5 : 1;
  19030. unsigned char B4 : 1;
  19031. unsigned char B3 : 1;
  19032. unsigned char B2 : 1;
  19033. unsigned char B1 : 1;
  19034. unsigned char B0 : 1;
  19035. #endif
  19036. } BIT;
  19037. } PMR;
  19038. char wk3[46];
  19039. union {
  19040. unsigned char BYTE;
  19041. struct {
  19042. #ifdef __RX_LITTLE_ENDIAN__
  19043. unsigned char B0 : 1;
  19044. unsigned char : 1;
  19045. unsigned char B2 : 1;
  19046. unsigned char : 1;
  19047. unsigned char B4 : 1;
  19048. unsigned char : 1;
  19049. unsigned char B6 : 1;
  19050. unsigned char : 1;
  19051. #else
  19052. unsigned char : 1;
  19053. unsigned char B6 : 1;
  19054. unsigned char : 1;
  19055. unsigned char B4 : 1;
  19056. unsigned char : 1;
  19057. unsigned char B2 : 1;
  19058. unsigned char : 1;
  19059. unsigned char B0 : 1;
  19060. #endif
  19061. } BIT;
  19062. } ODR0;
  19063. union {
  19064. unsigned char BYTE;
  19065. struct {
  19066. #ifdef __RX_LITTLE_ENDIAN__
  19067. unsigned char B0 : 1;
  19068. unsigned char : 1;
  19069. unsigned char B2 : 1;
  19070. unsigned char : 5;
  19071. #else
  19072. unsigned char : 5;
  19073. unsigned char B2 : 1;
  19074. unsigned char : 1;
  19075. unsigned char B0 : 1;
  19076. #endif
  19077. } BIT;
  19078. } ODR1;
  19079. char wk4[47];
  19080. union {
  19081. unsigned char BYTE;
  19082. struct {
  19083. #ifdef __RX_LITTLE_ENDIAN__
  19084. unsigned char B0 : 1;
  19085. unsigned char B1 : 1;
  19086. unsigned char B2 : 1;
  19087. unsigned char B3 : 1;
  19088. unsigned char B4 : 1;
  19089. unsigned char B5 : 1;
  19090. unsigned char : 2;
  19091. #else
  19092. unsigned char : 2;
  19093. unsigned char B5 : 1;
  19094. unsigned char B4 : 1;
  19095. unsigned char B3 : 1;
  19096. unsigned char B2 : 1;
  19097. unsigned char B1 : 1;
  19098. unsigned char B0 : 1;
  19099. #endif
  19100. } BIT;
  19101. } PCR;
  19102. } st_portf_t;
  19103. typedef struct st_portg {
  19104. union {
  19105. unsigned char BYTE;
  19106. struct {
  19107. #ifdef __RX_LITTLE_ENDIAN__
  19108. unsigned char B0 : 1;
  19109. unsigned char B1 : 1;
  19110. unsigned char B2 : 1;
  19111. unsigned char B3 : 1;
  19112. unsigned char B4 : 1;
  19113. unsigned char B5 : 1;
  19114. unsigned char B6 : 1;
  19115. unsigned char B7 : 1;
  19116. #else
  19117. unsigned char B7 : 1;
  19118. unsigned char B6 : 1;
  19119. unsigned char B5 : 1;
  19120. unsigned char B4 : 1;
  19121. unsigned char B3 : 1;
  19122. unsigned char B2 : 1;
  19123. unsigned char B1 : 1;
  19124. unsigned char B0 : 1;
  19125. #endif
  19126. } BIT;
  19127. } PDR;
  19128. char wk0[31];
  19129. union {
  19130. unsigned char BYTE;
  19131. struct {
  19132. #ifdef __RX_LITTLE_ENDIAN__
  19133. unsigned char B0 : 1;
  19134. unsigned char B1 : 1;
  19135. unsigned char B2 : 1;
  19136. unsigned char B3 : 1;
  19137. unsigned char B4 : 1;
  19138. unsigned char B5 : 1;
  19139. unsigned char B6 : 1;
  19140. unsigned char B7 : 1;
  19141. #else
  19142. unsigned char B7 : 1;
  19143. unsigned char B6 : 1;
  19144. unsigned char B5 : 1;
  19145. unsigned char B4 : 1;
  19146. unsigned char B3 : 1;
  19147. unsigned char B2 : 1;
  19148. unsigned char B1 : 1;
  19149. unsigned char B0 : 1;
  19150. #endif
  19151. } BIT;
  19152. } PODR;
  19153. char wk1[31];
  19154. union {
  19155. unsigned char BYTE;
  19156. struct {
  19157. #ifdef __RX_LITTLE_ENDIAN__
  19158. unsigned char B0 : 1;
  19159. unsigned char B1 : 1;
  19160. unsigned char B2 : 1;
  19161. unsigned char B3 : 1;
  19162. unsigned char B4 : 1;
  19163. unsigned char B5 : 1;
  19164. unsigned char B6 : 1;
  19165. unsigned char B7 : 1;
  19166. #else
  19167. unsigned char B7 : 1;
  19168. unsigned char B6 : 1;
  19169. unsigned char B5 : 1;
  19170. unsigned char B4 : 1;
  19171. unsigned char B3 : 1;
  19172. unsigned char B2 : 1;
  19173. unsigned char B1 : 1;
  19174. unsigned char B0 : 1;
  19175. #endif
  19176. } BIT;
  19177. } PIDR;
  19178. char wk2[31];
  19179. union {
  19180. unsigned char BYTE;
  19181. struct {
  19182. #ifdef __RX_LITTLE_ENDIAN__
  19183. unsigned char B0 : 1;
  19184. unsigned char B1 : 1;
  19185. unsigned char B2 : 1;
  19186. unsigned char B3 : 1;
  19187. unsigned char B4 : 1;
  19188. unsigned char B5 : 1;
  19189. unsigned char B6 : 1;
  19190. unsigned char B7 : 1;
  19191. #else
  19192. unsigned char B7 : 1;
  19193. unsigned char B6 : 1;
  19194. unsigned char B5 : 1;
  19195. unsigned char B4 : 1;
  19196. unsigned char B3 : 1;
  19197. unsigned char B2 : 1;
  19198. unsigned char B1 : 1;
  19199. unsigned char B0 : 1;
  19200. #endif
  19201. } BIT;
  19202. } PMR;
  19203. char wk3[47];
  19204. union {
  19205. unsigned char BYTE;
  19206. struct {
  19207. #ifdef __RX_LITTLE_ENDIAN__
  19208. unsigned char B0 : 1;
  19209. unsigned char : 1;
  19210. unsigned char B2 : 1;
  19211. unsigned char : 1;
  19212. unsigned char B4 : 1;
  19213. unsigned char : 1;
  19214. unsigned char B6 : 1;
  19215. unsigned char : 1;
  19216. #else
  19217. unsigned char : 1;
  19218. unsigned char B6 : 1;
  19219. unsigned char : 1;
  19220. unsigned char B4 : 1;
  19221. unsigned char : 1;
  19222. unsigned char B2 : 1;
  19223. unsigned char : 1;
  19224. unsigned char B0 : 1;
  19225. #endif
  19226. } BIT;
  19227. } ODR0;
  19228. union {
  19229. unsigned char BYTE;
  19230. struct {
  19231. #ifdef __RX_LITTLE_ENDIAN__
  19232. unsigned char B0 : 1;
  19233. unsigned char : 1;
  19234. unsigned char B2 : 1;
  19235. unsigned char : 1;
  19236. unsigned char B4 : 1;
  19237. unsigned char : 1;
  19238. unsigned char B6 : 1;
  19239. unsigned char : 1;
  19240. #else
  19241. unsigned char : 1;
  19242. unsigned char B6 : 1;
  19243. unsigned char : 1;
  19244. unsigned char B4 : 1;
  19245. unsigned char : 1;
  19246. unsigned char B2 : 1;
  19247. unsigned char : 1;
  19248. unsigned char B0 : 1;
  19249. #endif
  19250. } BIT;
  19251. } ODR1;
  19252. char wk4[46];
  19253. union {
  19254. unsigned char BYTE;
  19255. struct {
  19256. #ifdef __RX_LITTLE_ENDIAN__
  19257. unsigned char B0 : 1;
  19258. unsigned char B1 : 1;
  19259. unsigned char B2 : 1;
  19260. unsigned char B3 : 1;
  19261. unsigned char B4 : 1;
  19262. unsigned char B5 : 1;
  19263. unsigned char B6 : 1;
  19264. unsigned char B7 : 1;
  19265. #else
  19266. unsigned char B7 : 1;
  19267. unsigned char B6 : 1;
  19268. unsigned char B5 : 1;
  19269. unsigned char B4 : 1;
  19270. unsigned char B3 : 1;
  19271. unsigned char B2 : 1;
  19272. unsigned char B1 : 1;
  19273. unsigned char B0 : 1;
  19274. #endif
  19275. } BIT;
  19276. } PCR;
  19277. char wk5[31];
  19278. union {
  19279. unsigned char BYTE;
  19280. struct {
  19281. #ifdef __RX_LITTLE_ENDIAN__
  19282. unsigned char B0 : 1;
  19283. unsigned char B1 : 1;
  19284. unsigned char : 6;
  19285. #else
  19286. unsigned char : 6;
  19287. unsigned char B1 : 1;
  19288. unsigned char B0 : 1;
  19289. #endif
  19290. } BIT;
  19291. } DSCR;
  19292. char wk6[71];
  19293. union {
  19294. unsigned char BYTE;
  19295. struct {
  19296. #ifdef __RX_LITTLE_ENDIAN__
  19297. unsigned char B0 : 1;
  19298. unsigned char B1 : 1;
  19299. unsigned char B2 : 1;
  19300. unsigned char B3 : 1;
  19301. unsigned char B4 : 1;
  19302. unsigned char B5 : 1;
  19303. unsigned char B6 : 1;
  19304. unsigned char B7 : 1;
  19305. #else
  19306. unsigned char B7 : 1;
  19307. unsigned char B6 : 1;
  19308. unsigned char B5 : 1;
  19309. unsigned char B4 : 1;
  19310. unsigned char B3 : 1;
  19311. unsigned char B2 : 1;
  19312. unsigned char B1 : 1;
  19313. unsigned char B0 : 1;
  19314. #endif
  19315. } BIT;
  19316. } DSCR2;
  19317. } st_portg_t;
  19318. typedef struct st_portj {
  19319. union {
  19320. unsigned char BYTE;
  19321. struct {
  19322. #ifdef __RX_LITTLE_ENDIAN__
  19323. unsigned char B0 : 1;
  19324. unsigned char B1 : 1;
  19325. unsigned char B2 : 1;
  19326. unsigned char B3 : 1;
  19327. unsigned char : 1;
  19328. unsigned char B5 : 1;
  19329. unsigned char : 2;
  19330. #else
  19331. unsigned char : 2;
  19332. unsigned char B5 : 1;
  19333. unsigned char : 1;
  19334. unsigned char B3 : 1;
  19335. unsigned char B2 : 1;
  19336. unsigned char B1 : 1;
  19337. unsigned char B0 : 1;
  19338. #endif
  19339. } BIT;
  19340. } PDR;
  19341. char wk0[31];
  19342. union {
  19343. unsigned char BYTE;
  19344. struct {
  19345. #ifdef __RX_LITTLE_ENDIAN__
  19346. unsigned char B0 : 1;
  19347. unsigned char B1 : 1;
  19348. unsigned char B2 : 1;
  19349. unsigned char B3 : 1;
  19350. unsigned char : 1;
  19351. unsigned char B5 : 1;
  19352. unsigned char : 2;
  19353. #else
  19354. unsigned char : 2;
  19355. unsigned char B5 : 1;
  19356. unsigned char : 1;
  19357. unsigned char B3 : 1;
  19358. unsigned char B2 : 1;
  19359. unsigned char B1 : 1;
  19360. unsigned char B0 : 1;
  19361. #endif
  19362. } BIT;
  19363. } PODR;
  19364. char wk1[31];
  19365. union {
  19366. unsigned char BYTE;
  19367. struct {
  19368. #ifdef __RX_LITTLE_ENDIAN__
  19369. unsigned char B0 : 1;
  19370. unsigned char B1 : 1;
  19371. unsigned char B2 : 1;
  19372. unsigned char B3 : 1;
  19373. unsigned char : 1;
  19374. unsigned char B5 : 1;
  19375. unsigned char : 2;
  19376. #else
  19377. unsigned char : 2;
  19378. unsigned char B5 : 1;
  19379. unsigned char : 1;
  19380. unsigned char B3 : 1;
  19381. unsigned char B2 : 1;
  19382. unsigned char B1 : 1;
  19383. unsigned char B0 : 1;
  19384. #endif
  19385. } BIT;
  19386. } PIDR;
  19387. char wk2[31];
  19388. union {
  19389. unsigned char BYTE;
  19390. struct {
  19391. #ifdef __RX_LITTLE_ENDIAN__
  19392. unsigned char B0 : 1;
  19393. unsigned char B1 : 1;
  19394. unsigned char B2 : 1;
  19395. unsigned char B3 : 1;
  19396. unsigned char : 1;
  19397. unsigned char B5 : 1;
  19398. unsigned char : 2;
  19399. #else
  19400. unsigned char : 2;
  19401. unsigned char B5 : 1;
  19402. unsigned char : 1;
  19403. unsigned char B3 : 1;
  19404. unsigned char B2 : 1;
  19405. unsigned char B1 : 1;
  19406. unsigned char B0 : 1;
  19407. #endif
  19408. } BIT;
  19409. } PMR;
  19410. char wk3[49];
  19411. union {
  19412. unsigned char BYTE;
  19413. struct {
  19414. #ifdef __RX_LITTLE_ENDIAN__
  19415. unsigned char B0 : 1;
  19416. unsigned char : 1;
  19417. unsigned char B2 : 1;
  19418. unsigned char : 1;
  19419. unsigned char B4 : 1;
  19420. unsigned char : 1;
  19421. unsigned char B6 : 1;
  19422. unsigned char : 1;
  19423. #else
  19424. unsigned char : 1;
  19425. unsigned char B6 : 1;
  19426. unsigned char : 1;
  19427. unsigned char B4 : 1;
  19428. unsigned char : 1;
  19429. unsigned char B2 : 1;
  19430. unsigned char : 1;
  19431. unsigned char B0 : 1;
  19432. #endif
  19433. } BIT;
  19434. } ODR0;
  19435. union {
  19436. unsigned char BYTE;
  19437. struct {
  19438. #ifdef __RX_LITTLE_ENDIAN__
  19439. unsigned char : 2;
  19440. unsigned char B2 : 1;
  19441. unsigned char : 5;
  19442. #else
  19443. unsigned char : 5;
  19444. unsigned char B2 : 1;
  19445. unsigned char : 2;
  19446. #endif
  19447. } BIT;
  19448. } ODR1;
  19449. char wk4[44];
  19450. union {
  19451. unsigned char BYTE;
  19452. struct {
  19453. #ifdef __RX_LITTLE_ENDIAN__
  19454. unsigned char B0 : 1;
  19455. unsigned char B1 : 1;
  19456. unsigned char B2 : 1;
  19457. unsigned char B3 : 1;
  19458. unsigned char : 1;
  19459. unsigned char B5 : 1;
  19460. unsigned char : 2;
  19461. #else
  19462. unsigned char : 2;
  19463. unsigned char B5 : 1;
  19464. unsigned char : 1;
  19465. unsigned char B3 : 1;
  19466. unsigned char B2 : 1;
  19467. unsigned char B1 : 1;
  19468. unsigned char B0 : 1;
  19469. #endif
  19470. } BIT;
  19471. } PCR;
  19472. char wk5[31];
  19473. union {
  19474. unsigned char BYTE;
  19475. struct {
  19476. #ifdef __RX_LITTLE_ENDIAN__
  19477. unsigned char B0 : 1;
  19478. unsigned char B1 : 1;
  19479. unsigned char B2 : 1;
  19480. unsigned char : 5;
  19481. #else
  19482. unsigned char : 5;
  19483. unsigned char B2 : 1;
  19484. unsigned char B1 : 1;
  19485. unsigned char B0 : 1;
  19486. #endif
  19487. } BIT;
  19488. } DSCR;
  19489. char wk6[71];
  19490. union {
  19491. unsigned char BYTE;
  19492. struct {
  19493. #ifdef __RX_LITTLE_ENDIAN__
  19494. unsigned char B0 : 1;
  19495. unsigned char B1 : 1;
  19496. unsigned char B2 : 1;
  19497. unsigned char : 5;
  19498. #else
  19499. unsigned char : 5;
  19500. unsigned char B2 : 1;
  19501. unsigned char B1 : 1;
  19502. unsigned char B0 : 1;
  19503. #endif
  19504. } BIT;
  19505. } DSCR2;
  19506. } st_portj_t;
  19507. typedef struct st_ppg0 {
  19508. union {
  19509. unsigned char BYTE;
  19510. struct {
  19511. #ifdef __RX_LITTLE_ENDIAN__
  19512. unsigned char G0CMS : 2;
  19513. unsigned char G1CMS : 2;
  19514. unsigned char G2CMS : 2;
  19515. unsigned char G3CMS : 2;
  19516. #else
  19517. unsigned char G3CMS : 2;
  19518. unsigned char G2CMS : 2;
  19519. unsigned char G1CMS : 2;
  19520. unsigned char G0CMS : 2;
  19521. #endif
  19522. } BIT;
  19523. } PCR;
  19524. union {
  19525. unsigned char BYTE;
  19526. struct {
  19527. #ifdef __RX_LITTLE_ENDIAN__
  19528. unsigned char G0NOV : 1;
  19529. unsigned char G1NOV : 1;
  19530. unsigned char G2NOV : 1;
  19531. unsigned char G3NOV : 1;
  19532. unsigned char G0INV : 1;
  19533. unsigned char G1INV : 1;
  19534. unsigned char G2INV : 1;
  19535. unsigned char G3INV : 1;
  19536. #else
  19537. unsigned char G3INV : 1;
  19538. unsigned char G2INV : 1;
  19539. unsigned char G1INV : 1;
  19540. unsigned char G0INV : 1;
  19541. unsigned char G3NOV : 1;
  19542. unsigned char G2NOV : 1;
  19543. unsigned char G1NOV : 1;
  19544. unsigned char G0NOV : 1;
  19545. #endif
  19546. } BIT;
  19547. } PMR;
  19548. union {
  19549. unsigned char BYTE;
  19550. struct {
  19551. #ifdef __RX_LITTLE_ENDIAN__
  19552. unsigned char NDER8 : 1;
  19553. unsigned char NDER9 : 1;
  19554. unsigned char NDER10 : 1;
  19555. unsigned char NDER11 : 1;
  19556. unsigned char NDER12 : 1;
  19557. unsigned char NDER13 : 1;
  19558. unsigned char NDER14 : 1;
  19559. unsigned char NDER15 : 1;
  19560. #else
  19561. unsigned char NDER15 : 1;
  19562. unsigned char NDER14 : 1;
  19563. unsigned char NDER13 : 1;
  19564. unsigned char NDER12 : 1;
  19565. unsigned char NDER11 : 1;
  19566. unsigned char NDER10 : 1;
  19567. unsigned char NDER9 : 1;
  19568. unsigned char NDER8 : 1;
  19569. #endif
  19570. } BIT;
  19571. } NDERH;
  19572. union {
  19573. unsigned char BYTE;
  19574. struct {
  19575. #ifdef __RX_LITTLE_ENDIAN__
  19576. unsigned char NDER0 : 1;
  19577. unsigned char NDER1 : 1;
  19578. unsigned char NDER2 : 1;
  19579. unsigned char NDER3 : 1;
  19580. unsigned char NDER4 : 1;
  19581. unsigned char NDER5 : 1;
  19582. unsigned char NDER6 : 1;
  19583. unsigned char NDER7 : 1;
  19584. #else
  19585. unsigned char NDER7 : 1;
  19586. unsigned char NDER6 : 1;
  19587. unsigned char NDER5 : 1;
  19588. unsigned char NDER4 : 1;
  19589. unsigned char NDER3 : 1;
  19590. unsigned char NDER2 : 1;
  19591. unsigned char NDER1 : 1;
  19592. unsigned char NDER0 : 1;
  19593. #endif
  19594. } BIT;
  19595. } NDERL;
  19596. union {
  19597. unsigned char BYTE;
  19598. struct {
  19599. #ifdef __RX_LITTLE_ENDIAN__
  19600. unsigned char POD8 : 1;
  19601. unsigned char POD9 : 1;
  19602. unsigned char POD10 : 1;
  19603. unsigned char POD11 : 1;
  19604. unsigned char POD12 : 1;
  19605. unsigned char POD13 : 1;
  19606. unsigned char POD14 : 1;
  19607. unsigned char POD15 : 1;
  19608. #else
  19609. unsigned char POD15 : 1;
  19610. unsigned char POD14 : 1;
  19611. unsigned char POD13 : 1;
  19612. unsigned char POD12 : 1;
  19613. unsigned char POD11 : 1;
  19614. unsigned char POD10 : 1;
  19615. unsigned char POD9 : 1;
  19616. unsigned char POD8 : 1;
  19617. #endif
  19618. } BIT;
  19619. } PODRH;
  19620. union {
  19621. unsigned char BYTE;
  19622. struct {
  19623. #ifdef __RX_LITTLE_ENDIAN__
  19624. unsigned char POD0 : 1;
  19625. unsigned char POD1 : 1;
  19626. unsigned char POD2 : 1;
  19627. unsigned char POD3 : 1;
  19628. unsigned char POD4 : 1;
  19629. unsigned char POD5 : 1;
  19630. unsigned char POD6 : 1;
  19631. unsigned char POD7 : 1;
  19632. #else
  19633. unsigned char POD7 : 1;
  19634. unsigned char POD6 : 1;
  19635. unsigned char POD5 : 1;
  19636. unsigned char POD4 : 1;
  19637. unsigned char POD3 : 1;
  19638. unsigned char POD2 : 1;
  19639. unsigned char POD1 : 1;
  19640. unsigned char POD0 : 1;
  19641. #endif
  19642. } BIT;
  19643. } PODRL;
  19644. union {
  19645. unsigned char BYTE;
  19646. struct {
  19647. #ifdef __RX_LITTLE_ENDIAN__
  19648. unsigned char NDR8 : 1;
  19649. unsigned char NDR9 : 1;
  19650. unsigned char NDR10 : 1;
  19651. unsigned char NDR11 : 1;
  19652. unsigned char NDR12 : 1;
  19653. unsigned char NDR13 : 1;
  19654. unsigned char NDR14 : 1;
  19655. unsigned char NDR15 : 1;
  19656. #else
  19657. unsigned char NDR15 : 1;
  19658. unsigned char NDR14 : 1;
  19659. unsigned char NDR13 : 1;
  19660. unsigned char NDR12 : 1;
  19661. unsigned char NDR11 : 1;
  19662. unsigned char NDR10 : 1;
  19663. unsigned char NDR9 : 1;
  19664. unsigned char NDR8 : 1;
  19665. #endif
  19666. } BIT;
  19667. } NDRH;
  19668. union {
  19669. unsigned char BYTE;
  19670. struct {
  19671. #ifdef __RX_LITTLE_ENDIAN__
  19672. unsigned char NDR0 : 1;
  19673. unsigned char NDR1 : 1;
  19674. unsigned char NDR2 : 1;
  19675. unsigned char NDR3 : 1;
  19676. unsigned char NDR4 : 1;
  19677. unsigned char NDR5 : 1;
  19678. unsigned char NDR6 : 1;
  19679. unsigned char NDR7 : 1;
  19680. #else
  19681. unsigned char NDR7 : 1;
  19682. unsigned char NDR6 : 1;
  19683. unsigned char NDR5 : 1;
  19684. unsigned char NDR4 : 1;
  19685. unsigned char NDR3 : 1;
  19686. unsigned char NDR2 : 1;
  19687. unsigned char NDR1 : 1;
  19688. unsigned char NDR0 : 1;
  19689. #endif
  19690. } BIT;
  19691. } NDRL;
  19692. union {
  19693. unsigned char BYTE;
  19694. struct {
  19695. #ifdef __RX_LITTLE_ENDIAN__
  19696. unsigned char NDR8 : 1;
  19697. unsigned char NDR9 : 1;
  19698. unsigned char NDR10 : 1;
  19699. unsigned char NDR11 : 1;
  19700. unsigned char : 4;
  19701. #else
  19702. unsigned char : 4;
  19703. unsigned char NDR11 : 1;
  19704. unsigned char NDR10 : 1;
  19705. unsigned char NDR9 : 1;
  19706. unsigned char NDR8 : 1;
  19707. #endif
  19708. } BIT;
  19709. } NDRH2;
  19710. union {
  19711. unsigned char BYTE;
  19712. struct {
  19713. #ifdef __RX_LITTLE_ENDIAN__
  19714. unsigned char NDR0 : 1;
  19715. unsigned char NDR1 : 1;
  19716. unsigned char NDR2 : 1;
  19717. unsigned char NDR3 : 1;
  19718. unsigned char : 4;
  19719. #else
  19720. unsigned char : 4;
  19721. unsigned char NDR3 : 1;
  19722. unsigned char NDR2 : 1;
  19723. unsigned char NDR1 : 1;
  19724. unsigned char NDR0 : 1;
  19725. #endif
  19726. } BIT;
  19727. } NDRL2;
  19728. } st_ppg0_t;
  19729. typedef struct st_ppg1 {
  19730. union {
  19731. unsigned char BYTE;
  19732. struct {
  19733. #ifdef __RX_LITTLE_ENDIAN__
  19734. unsigned char PTRSL : 1;
  19735. unsigned char : 7;
  19736. #else
  19737. unsigned char : 7;
  19738. unsigned char PTRSL : 1;
  19739. #endif
  19740. } BIT;
  19741. } PTRSLR;
  19742. char wk0[5];
  19743. union {
  19744. unsigned char BYTE;
  19745. struct {
  19746. #ifdef __RX_LITTLE_ENDIAN__
  19747. unsigned char G0CMS : 2;
  19748. unsigned char G1CMS : 2;
  19749. unsigned char G2CMS : 2;
  19750. unsigned char G3CMS : 2;
  19751. #else
  19752. unsigned char G3CMS : 2;
  19753. unsigned char G2CMS : 2;
  19754. unsigned char G1CMS : 2;
  19755. unsigned char G0CMS : 2;
  19756. #endif
  19757. } BIT;
  19758. } PCR;
  19759. union {
  19760. unsigned char BYTE;
  19761. struct {
  19762. #ifdef __RX_LITTLE_ENDIAN__
  19763. unsigned char G0NOV : 1;
  19764. unsigned char G1NOV : 1;
  19765. unsigned char G2NOV : 1;
  19766. unsigned char G3NOV : 1;
  19767. unsigned char G0INV : 1;
  19768. unsigned char G1INV : 1;
  19769. unsigned char G2INV : 1;
  19770. unsigned char G3INV : 1;
  19771. #else
  19772. unsigned char G3INV : 1;
  19773. unsigned char G2INV : 1;
  19774. unsigned char G1INV : 1;
  19775. unsigned char G0INV : 1;
  19776. unsigned char G3NOV : 1;
  19777. unsigned char G2NOV : 1;
  19778. unsigned char G1NOV : 1;
  19779. unsigned char G0NOV : 1;
  19780. #endif
  19781. } BIT;
  19782. } PMR;
  19783. union {
  19784. unsigned char BYTE;
  19785. struct {
  19786. #ifdef __RX_LITTLE_ENDIAN__
  19787. unsigned char NDER24 : 1;
  19788. unsigned char NDER25 : 1;
  19789. unsigned char NDER26 : 1;
  19790. unsigned char NDER27 : 1;
  19791. unsigned char NDER28 : 1;
  19792. unsigned char NDER29 : 1;
  19793. unsigned char NDER30 : 1;
  19794. unsigned char NDER31 : 1;
  19795. #else
  19796. unsigned char NDER31 : 1;
  19797. unsigned char NDER30 : 1;
  19798. unsigned char NDER29 : 1;
  19799. unsigned char NDER28 : 1;
  19800. unsigned char NDER27 : 1;
  19801. unsigned char NDER26 : 1;
  19802. unsigned char NDER25 : 1;
  19803. unsigned char NDER24 : 1;
  19804. #endif
  19805. } BIT;
  19806. } NDERH;
  19807. union {
  19808. unsigned char BYTE;
  19809. struct {
  19810. #ifdef __RX_LITTLE_ENDIAN__
  19811. unsigned char NDER16 : 1;
  19812. unsigned char NDER17 : 1;
  19813. unsigned char NDER18 : 1;
  19814. unsigned char NDER19 : 1;
  19815. unsigned char NDER20 : 1;
  19816. unsigned char NDER21 : 1;
  19817. unsigned char NDER22 : 1;
  19818. unsigned char NDER23 : 1;
  19819. #else
  19820. unsigned char NDER23 : 1;
  19821. unsigned char NDER22 : 1;
  19822. unsigned char NDER21 : 1;
  19823. unsigned char NDER20 : 1;
  19824. unsigned char NDER19 : 1;
  19825. unsigned char NDER18 : 1;
  19826. unsigned char NDER17 : 1;
  19827. unsigned char NDER16 : 1;
  19828. #endif
  19829. } BIT;
  19830. } NDERL;
  19831. union {
  19832. unsigned char BYTE;
  19833. struct {
  19834. #ifdef __RX_LITTLE_ENDIAN__
  19835. unsigned char POD24 : 1;
  19836. unsigned char POD25 : 1;
  19837. unsigned char POD26 : 1;
  19838. unsigned char POD27 : 1;
  19839. unsigned char POD28 : 1;
  19840. unsigned char POD29 : 1;
  19841. unsigned char POD30 : 1;
  19842. unsigned char POD31 : 1;
  19843. #else
  19844. unsigned char POD31 : 1;
  19845. unsigned char POD30 : 1;
  19846. unsigned char POD29 : 1;
  19847. unsigned char POD28 : 1;
  19848. unsigned char POD27 : 1;
  19849. unsigned char POD26 : 1;
  19850. unsigned char POD25 : 1;
  19851. unsigned char POD24 : 1;
  19852. #endif
  19853. } BIT;
  19854. } PODRH;
  19855. union {
  19856. unsigned char BYTE;
  19857. struct {
  19858. #ifdef __RX_LITTLE_ENDIAN__
  19859. unsigned char POD16 : 1;
  19860. unsigned char POD17 : 1;
  19861. unsigned char POD18 : 1;
  19862. unsigned char POD19 : 1;
  19863. unsigned char POD20 : 1;
  19864. unsigned char POD21 : 1;
  19865. unsigned char POD22 : 1;
  19866. unsigned char POD23 : 1;
  19867. #else
  19868. unsigned char POD23 : 1;
  19869. unsigned char POD22 : 1;
  19870. unsigned char POD21 : 1;
  19871. unsigned char POD20 : 1;
  19872. unsigned char POD19 : 1;
  19873. unsigned char POD18 : 1;
  19874. unsigned char POD17 : 1;
  19875. unsigned char POD16 : 1;
  19876. #endif
  19877. } BIT;
  19878. } PODRL;
  19879. union {
  19880. unsigned char BYTE;
  19881. struct {
  19882. #ifdef __RX_LITTLE_ENDIAN__
  19883. unsigned char NDR24 : 1;
  19884. unsigned char NDR25 : 1;
  19885. unsigned char NDR26 : 1;
  19886. unsigned char NDR27 : 1;
  19887. unsigned char NDR28 : 1;
  19888. unsigned char NDR29 : 1;
  19889. unsigned char NDR30 : 1;
  19890. unsigned char NDR31 : 1;
  19891. #else
  19892. unsigned char NDR31 : 1;
  19893. unsigned char NDR30 : 1;
  19894. unsigned char NDR29 : 1;
  19895. unsigned char NDR28 : 1;
  19896. unsigned char NDR27 : 1;
  19897. unsigned char NDR26 : 1;
  19898. unsigned char NDR25 : 1;
  19899. unsigned char NDR24 : 1;
  19900. #endif
  19901. } BIT;
  19902. } NDRH;
  19903. union {
  19904. unsigned char BYTE;
  19905. struct {
  19906. #ifdef __RX_LITTLE_ENDIAN__
  19907. unsigned char NDR16 : 1;
  19908. unsigned char NDR17 : 1;
  19909. unsigned char NDR18 : 1;
  19910. unsigned char NDR19 : 1;
  19911. unsigned char NDR20 : 1;
  19912. unsigned char NDR21 : 1;
  19913. unsigned char NDR22 : 1;
  19914. unsigned char NDR23 : 1;
  19915. #else
  19916. unsigned char NDR23 : 1;
  19917. unsigned char NDR22 : 1;
  19918. unsigned char NDR21 : 1;
  19919. unsigned char NDR20 : 1;
  19920. unsigned char NDR19 : 1;
  19921. unsigned char NDR18 : 1;
  19922. unsigned char NDR17 : 1;
  19923. unsigned char NDR16 : 1;
  19924. #endif
  19925. } BIT;
  19926. } NDRL;
  19927. union {
  19928. unsigned char BYTE;
  19929. struct {
  19930. #ifdef __RX_LITTLE_ENDIAN__
  19931. unsigned char NDR24 : 1;
  19932. unsigned char NDR25 : 1;
  19933. unsigned char NDR26 : 1;
  19934. unsigned char NDR27 : 1;
  19935. unsigned char : 4;
  19936. #else
  19937. unsigned char : 4;
  19938. unsigned char NDR27 : 1;
  19939. unsigned char NDR26 : 1;
  19940. unsigned char NDR25 : 1;
  19941. unsigned char NDR24 : 1;
  19942. #endif
  19943. } BIT;
  19944. } NDRH2;
  19945. union {
  19946. unsigned char BYTE;
  19947. struct {
  19948. #ifdef __RX_LITTLE_ENDIAN__
  19949. unsigned char NDR16 : 1;
  19950. unsigned char NDR17 : 1;
  19951. unsigned char NDR18 : 1;
  19952. unsigned char NDR19 : 1;
  19953. unsigned char : 4;
  19954. #else
  19955. unsigned char : 4;
  19956. unsigned char NDR19 : 1;
  19957. unsigned char NDR18 : 1;
  19958. unsigned char NDR17 : 1;
  19959. unsigned char NDR16 : 1;
  19960. #endif
  19961. } BIT;
  19962. } NDRL2;
  19963. } st_ppg1_t;
  19964. typedef struct st_qspi {
  19965. union {
  19966. unsigned char BYTE;
  19967. struct {
  19968. #ifdef __RX_LITTLE_ENDIAN__
  19969. unsigned char : 1;
  19970. unsigned char SPSSLIE : 1;
  19971. unsigned char : 1;
  19972. unsigned char MSTR : 1;
  19973. unsigned char : 1;
  19974. unsigned char SPTIE : 1;
  19975. unsigned char SPE : 1;
  19976. unsigned char SPRIE : 1;
  19977. #else
  19978. unsigned char SPRIE : 1;
  19979. unsigned char SPE : 1;
  19980. unsigned char SPTIE : 1;
  19981. unsigned char : 1;
  19982. unsigned char MSTR : 1;
  19983. unsigned char : 1;
  19984. unsigned char SPSSLIE : 1;
  19985. unsigned char : 1;
  19986. #endif
  19987. } BIT;
  19988. } SPCR;
  19989. union {
  19990. unsigned char BYTE;
  19991. struct {
  19992. #ifdef __RX_LITTLE_ENDIAN__
  19993. unsigned char SSLP : 1;
  19994. unsigned char : 7;
  19995. #else
  19996. unsigned char : 7;
  19997. unsigned char SSLP : 1;
  19998. #endif
  19999. } BIT;
  20000. } SSLP;
  20001. union {
  20002. unsigned char BYTE;
  20003. struct {
  20004. #ifdef __RX_LITTLE_ENDIAN__
  20005. unsigned char SPLP : 1;
  20006. unsigned char IO2FV : 1;
  20007. unsigned char IO3FV : 1;
  20008. unsigned char : 1;
  20009. unsigned char MOIFV : 1;
  20010. unsigned char MOIFE : 1;
  20011. unsigned char : 2;
  20012. #else
  20013. unsigned char : 2;
  20014. unsigned char MOIFE : 1;
  20015. unsigned char MOIFV : 1;
  20016. unsigned char : 1;
  20017. unsigned char IO3FV : 1;
  20018. unsigned char IO2FV : 1;
  20019. unsigned char SPLP : 1;
  20020. #endif
  20021. } BIT;
  20022. } SPPCR;
  20023. union {
  20024. unsigned char BYTE;
  20025. struct {
  20026. #ifdef __RX_LITTLE_ENDIAN__
  20027. unsigned char : 4;
  20028. unsigned char SPSSLF : 1;
  20029. unsigned char SPTEF : 1;
  20030. unsigned char TREND : 1;
  20031. unsigned char SPRFF : 1;
  20032. #else
  20033. unsigned char SPRFF : 1;
  20034. unsigned char TREND : 1;
  20035. unsigned char SPTEF : 1;
  20036. unsigned char SPSSLF : 1;
  20037. unsigned char : 4;
  20038. #endif
  20039. } BIT;
  20040. } SPSR;
  20041. union {
  20042. unsigned long LONG;
  20043. struct {
  20044. unsigned short H;
  20045. } WORD;
  20046. struct {
  20047. unsigned char HH;
  20048. } BYTE;
  20049. } SPDR;
  20050. union {
  20051. unsigned char BYTE;
  20052. struct {
  20053. #ifdef __RX_LITTLE_ENDIAN__
  20054. unsigned char SPSC : 2;
  20055. unsigned char : 6;
  20056. #else
  20057. unsigned char : 6;
  20058. unsigned char SPSC : 2;
  20059. #endif
  20060. } BIT;
  20061. } SPSCR;
  20062. union {
  20063. unsigned char BYTE;
  20064. struct {
  20065. #ifdef __RX_LITTLE_ENDIAN__
  20066. unsigned char SPSS : 2;
  20067. unsigned char : 6;
  20068. #else
  20069. unsigned char : 6;
  20070. unsigned char SPSS : 2;
  20071. #endif
  20072. } BIT;
  20073. } SPSSR;
  20074. union {
  20075. unsigned char BYTE;
  20076. struct {
  20077. #ifdef __RX_LITTLE_ENDIAN__
  20078. unsigned char SPBR0 : 1;
  20079. unsigned char SPBR1 : 1;
  20080. unsigned char SPBR2 : 1;
  20081. unsigned char SPBR3 : 1;
  20082. unsigned char SPBR4 : 1;
  20083. unsigned char SPBR5 : 1;
  20084. unsigned char SPBR6 : 1;
  20085. unsigned char SPBR7 : 1;
  20086. #else
  20087. unsigned char SPBR7 : 1;
  20088. unsigned char SPBR6 : 1;
  20089. unsigned char SPBR5 : 1;
  20090. unsigned char SPBR4 : 1;
  20091. unsigned char SPBR3 : 1;
  20092. unsigned char SPBR2 : 1;
  20093. unsigned char SPBR1 : 1;
  20094. unsigned char SPBR0 : 1;
  20095. #endif
  20096. } BIT;
  20097. } SPBR;
  20098. union {
  20099. unsigned char BYTE;
  20100. struct {
  20101. #ifdef __RX_LITTLE_ENDIAN__
  20102. unsigned char : 7;
  20103. unsigned char TXDMY : 1;
  20104. #else
  20105. unsigned char TXDMY : 1;
  20106. unsigned char : 7;
  20107. #endif
  20108. } BIT;
  20109. } SPDCR;
  20110. union {
  20111. unsigned char BYTE;
  20112. struct {
  20113. #ifdef __RX_LITTLE_ENDIAN__
  20114. unsigned char SCKDL : 3;
  20115. unsigned char : 5;
  20116. #else
  20117. unsigned char : 5;
  20118. unsigned char SCKDL : 3;
  20119. #endif
  20120. } BIT;
  20121. } SPCKD;
  20122. union {
  20123. unsigned char BYTE;
  20124. struct {
  20125. #ifdef __RX_LITTLE_ENDIAN__
  20126. unsigned char SLNDL : 3;
  20127. unsigned char : 5;
  20128. #else
  20129. unsigned char : 5;
  20130. unsigned char SLNDL : 3;
  20131. #endif
  20132. } BIT;
  20133. } SSLND;
  20134. union {
  20135. unsigned char BYTE;
  20136. struct {
  20137. #ifdef __RX_LITTLE_ENDIAN__
  20138. unsigned char SPNDL : 3;
  20139. unsigned char : 5;
  20140. #else
  20141. unsigned char : 5;
  20142. unsigned char SPNDL : 3;
  20143. #endif
  20144. } BIT;
  20145. } SPND;
  20146. char wk0[1];
  20147. union {
  20148. unsigned short WORD;
  20149. struct {
  20150. #ifdef __RX_LITTLE_ENDIAN__
  20151. unsigned short CPHA : 1;
  20152. unsigned short CPOL : 1;
  20153. unsigned short BRDV : 2;
  20154. unsigned short SPRW : 1;
  20155. unsigned short SPIMOD : 2;
  20156. unsigned short SSLKP : 1;
  20157. unsigned short SPB : 4;
  20158. unsigned short LSBF : 1;
  20159. unsigned short SPNDEN : 1;
  20160. unsigned short SLNDEN : 1;
  20161. unsigned short SCKDEN : 1;
  20162. #else
  20163. unsigned short SCKDEN : 1;
  20164. unsigned short SLNDEN : 1;
  20165. unsigned short SPNDEN : 1;
  20166. unsigned short LSBF : 1;
  20167. unsigned short SPB : 4;
  20168. unsigned short SSLKP : 1;
  20169. unsigned short SPIMOD : 2;
  20170. unsigned short SPRW : 1;
  20171. unsigned short BRDV : 2;
  20172. unsigned short CPOL : 1;
  20173. unsigned short CPHA : 1;
  20174. #endif
  20175. } BIT;
  20176. } SPCMD0;
  20177. union {
  20178. unsigned short WORD;
  20179. struct {
  20180. #ifdef __RX_LITTLE_ENDIAN__
  20181. unsigned short CPHA : 1;
  20182. unsigned short CPOL : 1;
  20183. unsigned short BRDV : 2;
  20184. unsigned short SPRW : 1;
  20185. unsigned short SPIMOD : 2;
  20186. unsigned short SSLKP : 1;
  20187. unsigned short SPB : 4;
  20188. unsigned short LSBF : 1;
  20189. unsigned short SPNDEN : 1;
  20190. unsigned short SLNDEN : 1;
  20191. unsigned short SCKDEN : 1;
  20192. #else
  20193. unsigned short SCKDEN : 1;
  20194. unsigned short SLNDEN : 1;
  20195. unsigned short SPNDEN : 1;
  20196. unsigned short LSBF : 1;
  20197. unsigned short SPB : 4;
  20198. unsigned short SSLKP : 1;
  20199. unsigned short SPIMOD : 2;
  20200. unsigned short SPRW : 1;
  20201. unsigned short BRDV : 2;
  20202. unsigned short CPOL : 1;
  20203. unsigned short CPHA : 1;
  20204. #endif
  20205. } BIT;
  20206. } SPCMD1;
  20207. union {
  20208. unsigned short WORD;
  20209. struct {
  20210. #ifdef __RX_LITTLE_ENDIAN__
  20211. unsigned short CPHA : 1;
  20212. unsigned short CPOL : 1;
  20213. unsigned short BRDV : 2;
  20214. unsigned short SPRW : 1;
  20215. unsigned short SPIMOD : 2;
  20216. unsigned short SSLKP : 1;
  20217. unsigned short SPB : 4;
  20218. unsigned short LSBF : 1;
  20219. unsigned short SPNDEN : 1;
  20220. unsigned short SLNDEN : 1;
  20221. unsigned short SCKDEN : 1;
  20222. #else
  20223. unsigned short SCKDEN : 1;
  20224. unsigned short SLNDEN : 1;
  20225. unsigned short SPNDEN : 1;
  20226. unsigned short LSBF : 1;
  20227. unsigned short SPB : 4;
  20228. unsigned short SSLKP : 1;
  20229. unsigned short SPIMOD : 2;
  20230. unsigned short SPRW : 1;
  20231. unsigned short BRDV : 2;
  20232. unsigned short CPOL : 1;
  20233. unsigned short CPHA : 1;
  20234. #endif
  20235. } BIT;
  20236. } SPCMD2;
  20237. union {
  20238. unsigned short WORD;
  20239. struct {
  20240. #ifdef __RX_LITTLE_ENDIAN__
  20241. unsigned short CPHA : 1;
  20242. unsigned short CPOL : 1;
  20243. unsigned short BRDV : 2;
  20244. unsigned short SPRW : 1;
  20245. unsigned short SPIMOD : 2;
  20246. unsigned short SSLKP : 1;
  20247. unsigned short SPB : 4;
  20248. unsigned short LSBF : 1;
  20249. unsigned short SPNDEN : 1;
  20250. unsigned short SLNDEN : 1;
  20251. unsigned short SCKDEN : 1;
  20252. #else
  20253. unsigned short SCKDEN : 1;
  20254. unsigned short SLNDEN : 1;
  20255. unsigned short SPNDEN : 1;
  20256. unsigned short LSBF : 1;
  20257. unsigned short SPB : 4;
  20258. unsigned short SSLKP : 1;
  20259. unsigned short SPIMOD : 2;
  20260. unsigned short SPRW : 1;
  20261. unsigned short BRDV : 2;
  20262. unsigned short CPOL : 1;
  20263. unsigned short CPHA : 1;
  20264. #endif
  20265. } BIT;
  20266. } SPCMD3;
  20267. union {
  20268. unsigned char BYTE;
  20269. struct {
  20270. #ifdef __RX_LITTLE_ENDIAN__
  20271. unsigned char RXTRG : 3;
  20272. unsigned char TXTRGEX : 1;
  20273. unsigned char TXTRG : 2;
  20274. unsigned char RXRST : 1;
  20275. unsigned char TXRST : 1;
  20276. #else
  20277. unsigned char TXRST : 1;
  20278. unsigned char RXRST : 1;
  20279. unsigned char TXTRG : 2;
  20280. unsigned char TXTRGEX : 1;
  20281. unsigned char RXTRG : 3;
  20282. #endif
  20283. } BIT;
  20284. } SPBFCR;
  20285. char wk1[1];
  20286. union {
  20287. unsigned short WORD;
  20288. struct {
  20289. #ifdef __RX_LITTLE_ENDIAN__
  20290. unsigned short RXBC : 6;
  20291. unsigned short : 2;
  20292. unsigned short TXBC : 6;
  20293. unsigned short : 2;
  20294. #else
  20295. unsigned short : 2;
  20296. unsigned short TXBC : 6;
  20297. unsigned short : 2;
  20298. unsigned short RXBC : 6;
  20299. #endif
  20300. } BIT;
  20301. } SPBDCR;
  20302. unsigned long SPBMUL0;
  20303. unsigned long SPBMUL1;
  20304. unsigned long SPBMUL2;
  20305. unsigned long SPBMUL3;
  20306. } st_qspi_t;
  20307. typedef struct st_ram {
  20308. union {
  20309. unsigned char BYTE;
  20310. struct {
  20311. #ifdef __RX_LITTLE_ENDIAN__
  20312. unsigned char RAMMODE : 2;
  20313. unsigned char : 6;
  20314. #else
  20315. unsigned char : 6;
  20316. unsigned char RAMMODE : 2;
  20317. #endif
  20318. } BIT;
  20319. } RAMMODE;
  20320. union {
  20321. unsigned char BYTE;
  20322. struct {
  20323. #ifdef __RX_LITTLE_ENDIAN__
  20324. unsigned char RAMERR : 1;
  20325. unsigned char : 7;
  20326. #else
  20327. unsigned char : 7;
  20328. unsigned char RAMERR : 1;
  20329. #endif
  20330. } BIT;
  20331. } RAMSTS;
  20332. char wk0[2];
  20333. union {
  20334. unsigned char BYTE;
  20335. struct {
  20336. #ifdef __RX_LITTLE_ENDIAN__
  20337. unsigned char RAMPRCR : 1;
  20338. unsigned char KW : 7;
  20339. #else
  20340. unsigned char KW : 7;
  20341. unsigned char RAMPRCR : 1;
  20342. #endif
  20343. } BIT;
  20344. } RAMPRCR;
  20345. char wk1[3];
  20346. union {
  20347. unsigned long LONG;
  20348. struct {
  20349. #ifdef __RX_LITTLE_ENDIAN__
  20350. unsigned long : 3;
  20351. unsigned long READ : 16;
  20352. unsigned long : 13;
  20353. #else
  20354. unsigned long : 13;
  20355. unsigned long READ : 16;
  20356. unsigned long : 3;
  20357. #endif
  20358. } BIT;
  20359. } RAMECAD;
  20360. char wk2[52];
  20361. union {
  20362. unsigned char BYTE;
  20363. struct {
  20364. #ifdef __RX_LITTLE_ENDIAN__
  20365. unsigned char EXRAMMODE : 2;
  20366. unsigned char : 6;
  20367. #else
  20368. unsigned char : 6;
  20369. unsigned char EXRAMMODE : 2;
  20370. #endif
  20371. } BIT;
  20372. } EXRAMMODE;
  20373. union {
  20374. unsigned char BYTE;
  20375. struct {
  20376. #ifdef __RX_LITTLE_ENDIAN__
  20377. unsigned char EXRAMERR : 1;
  20378. unsigned char : 7;
  20379. #else
  20380. unsigned char : 7;
  20381. unsigned char EXRAMERR : 1;
  20382. #endif
  20383. } BIT;
  20384. } EXRAMSTS;
  20385. char wk3[2];
  20386. union {
  20387. unsigned char BYTE;
  20388. struct {
  20389. #ifdef __RX_LITTLE_ENDIAN__
  20390. unsigned char EXRAMPRCR : 1;
  20391. unsigned char KW : 7;
  20392. #else
  20393. unsigned char KW : 7;
  20394. unsigned char EXRAMPRCR : 1;
  20395. #endif
  20396. } BIT;
  20397. } EXRAMPRCR;
  20398. char wk4[3];
  20399. union {
  20400. unsigned long LONG;
  20401. struct {
  20402. #ifdef __RX_LITTLE_ENDIAN__
  20403. unsigned long : 3;
  20404. unsigned long READ : 16;
  20405. unsigned long : 13;
  20406. #else
  20407. unsigned long : 13;
  20408. unsigned long READ : 16;
  20409. unsigned long : 3;
  20410. #endif
  20411. } BIT;
  20412. } EXRAMECAD;
  20413. } st_ram_t;
  20414. typedef struct st_riic {
  20415. union {
  20416. unsigned char BYTE;
  20417. struct {
  20418. #ifdef __RX_LITTLE_ENDIAN__
  20419. unsigned char SDAI : 1;
  20420. unsigned char SCLI : 1;
  20421. unsigned char SDAO : 1;
  20422. unsigned char SCLO : 1;
  20423. unsigned char SOWP : 1;
  20424. unsigned char CLO : 1;
  20425. unsigned char IICRST : 1;
  20426. unsigned char ICE : 1;
  20427. #else
  20428. unsigned char ICE : 1;
  20429. unsigned char IICRST : 1;
  20430. unsigned char CLO : 1;
  20431. unsigned char SOWP : 1;
  20432. unsigned char SCLO : 1;
  20433. unsigned char SDAO : 1;
  20434. unsigned char SCLI : 1;
  20435. unsigned char SDAI : 1;
  20436. #endif
  20437. } BIT;
  20438. } ICCR1;
  20439. union {
  20440. unsigned char BYTE;
  20441. struct {
  20442. #ifdef __RX_LITTLE_ENDIAN__
  20443. unsigned char : 1;
  20444. unsigned char ST : 1;
  20445. unsigned char RS : 1;
  20446. unsigned char SP : 1;
  20447. unsigned char : 1;
  20448. unsigned char TRS : 1;
  20449. unsigned char MST : 1;
  20450. unsigned char BBSY : 1;
  20451. #else
  20452. unsigned char BBSY : 1;
  20453. unsigned char MST : 1;
  20454. unsigned char TRS : 1;
  20455. unsigned char : 1;
  20456. unsigned char SP : 1;
  20457. unsigned char RS : 1;
  20458. unsigned char ST : 1;
  20459. unsigned char : 1;
  20460. #endif
  20461. } BIT;
  20462. } ICCR2;
  20463. union {
  20464. unsigned char BYTE;
  20465. struct {
  20466. #ifdef __RX_LITTLE_ENDIAN__
  20467. unsigned char BC : 3;
  20468. unsigned char BCWP : 1;
  20469. unsigned char CKS : 3;
  20470. unsigned char MTWP : 1;
  20471. #else
  20472. unsigned char MTWP : 1;
  20473. unsigned char CKS : 3;
  20474. unsigned char BCWP : 1;
  20475. unsigned char BC : 3;
  20476. #endif
  20477. } BIT;
  20478. } ICMR1;
  20479. union {
  20480. unsigned char BYTE;
  20481. struct {
  20482. #ifdef __RX_LITTLE_ENDIAN__
  20483. unsigned char TMOS : 1;
  20484. unsigned char TMOL : 1;
  20485. unsigned char TMOH : 1;
  20486. unsigned char : 1;
  20487. unsigned char SDDL : 3;
  20488. unsigned char DLCS : 1;
  20489. #else
  20490. unsigned char DLCS : 1;
  20491. unsigned char SDDL : 3;
  20492. unsigned char : 1;
  20493. unsigned char TMOH : 1;
  20494. unsigned char TMOL : 1;
  20495. unsigned char TMOS : 1;
  20496. #endif
  20497. } BIT;
  20498. } ICMR2;
  20499. union {
  20500. unsigned char BYTE;
  20501. struct {
  20502. #ifdef __RX_LITTLE_ENDIAN__
  20503. unsigned char NF : 2;
  20504. unsigned char ACKBR : 1;
  20505. unsigned char ACKBT : 1;
  20506. unsigned char ACKWP : 1;
  20507. unsigned char RDRFS : 1;
  20508. unsigned char WAIT : 1;
  20509. unsigned char SMBS : 1;
  20510. #else
  20511. unsigned char SMBS : 1;
  20512. unsigned char WAIT : 1;
  20513. unsigned char RDRFS : 1;
  20514. unsigned char ACKWP : 1;
  20515. unsigned char ACKBT : 1;
  20516. unsigned char ACKBR : 1;
  20517. unsigned char NF : 2;
  20518. #endif
  20519. } BIT;
  20520. } ICMR3;
  20521. union {
  20522. unsigned char BYTE;
  20523. struct {
  20524. #ifdef __RX_LITTLE_ENDIAN__
  20525. unsigned char TMOE : 1;
  20526. unsigned char MALE : 1;
  20527. unsigned char NALE : 1;
  20528. unsigned char SALE : 1;
  20529. unsigned char NACKE : 1;
  20530. unsigned char NFE : 1;
  20531. unsigned char SCLE : 1;
  20532. unsigned char FMPE : 1;
  20533. #else
  20534. unsigned char FMPE : 1;
  20535. unsigned char SCLE : 1;
  20536. unsigned char NFE : 1;
  20537. unsigned char NACKE : 1;
  20538. unsigned char SALE : 1;
  20539. unsigned char NALE : 1;
  20540. unsigned char MALE : 1;
  20541. unsigned char TMOE : 1;
  20542. #endif
  20543. } BIT;
  20544. } ICFER;
  20545. union {
  20546. unsigned char BYTE;
  20547. struct {
  20548. #ifdef __RX_LITTLE_ENDIAN__
  20549. unsigned char SAR0E : 1;
  20550. unsigned char SAR1E : 1;
  20551. unsigned char SAR2E : 1;
  20552. unsigned char GCAE : 1;
  20553. unsigned char : 1;
  20554. unsigned char DIDE : 1;
  20555. unsigned char : 1;
  20556. unsigned char HOAE : 1;
  20557. #else
  20558. unsigned char HOAE : 1;
  20559. unsigned char : 1;
  20560. unsigned char DIDE : 1;
  20561. unsigned char : 1;
  20562. unsigned char GCAE : 1;
  20563. unsigned char SAR2E : 1;
  20564. unsigned char SAR1E : 1;
  20565. unsigned char SAR0E : 1;
  20566. #endif
  20567. } BIT;
  20568. } ICSER;
  20569. union {
  20570. unsigned char BYTE;
  20571. struct {
  20572. #ifdef __RX_LITTLE_ENDIAN__
  20573. unsigned char TMOIE : 1;
  20574. unsigned char ALIE : 1;
  20575. unsigned char STIE : 1;
  20576. unsigned char SPIE : 1;
  20577. unsigned char NAKIE : 1;
  20578. unsigned char RIE : 1;
  20579. unsigned char TEIE : 1;
  20580. unsigned char TIE : 1;
  20581. #else
  20582. unsigned char TIE : 1;
  20583. unsigned char TEIE : 1;
  20584. unsigned char RIE : 1;
  20585. unsigned char NAKIE : 1;
  20586. unsigned char SPIE : 1;
  20587. unsigned char STIE : 1;
  20588. unsigned char ALIE : 1;
  20589. unsigned char TMOIE : 1;
  20590. #endif
  20591. } BIT;
  20592. } ICIER;
  20593. union {
  20594. unsigned char BYTE;
  20595. struct {
  20596. #ifdef __RX_LITTLE_ENDIAN__
  20597. unsigned char AAS0 : 1;
  20598. unsigned char AAS1 : 1;
  20599. unsigned char AAS2 : 1;
  20600. unsigned char GCA : 1;
  20601. unsigned char : 1;
  20602. unsigned char DID : 1;
  20603. unsigned char : 1;
  20604. unsigned char HOA : 1;
  20605. #else
  20606. unsigned char HOA : 1;
  20607. unsigned char : 1;
  20608. unsigned char DID : 1;
  20609. unsigned char : 1;
  20610. unsigned char GCA : 1;
  20611. unsigned char AAS2 : 1;
  20612. unsigned char AAS1 : 1;
  20613. unsigned char AAS0 : 1;
  20614. #endif
  20615. } BIT;
  20616. } ICSR1;
  20617. union {
  20618. unsigned char BYTE;
  20619. struct {
  20620. #ifdef __RX_LITTLE_ENDIAN__
  20621. unsigned char TMOF : 1;
  20622. unsigned char AL : 1;
  20623. unsigned char START : 1;
  20624. unsigned char STOP : 1;
  20625. unsigned char NACKF : 1;
  20626. unsigned char RDRF : 1;
  20627. unsigned char TEND : 1;
  20628. unsigned char TDRE : 1;
  20629. #else
  20630. unsigned char TDRE : 1;
  20631. unsigned char TEND : 1;
  20632. unsigned char RDRF : 1;
  20633. unsigned char NACKF : 1;
  20634. unsigned char STOP : 1;
  20635. unsigned char START : 1;
  20636. unsigned char AL : 1;
  20637. unsigned char TMOF : 1;
  20638. #endif
  20639. } BIT;
  20640. } ICSR2;
  20641. union {
  20642. unsigned char BYTE;
  20643. struct {
  20644. #ifdef __RX_LITTLE_ENDIAN__
  20645. unsigned char SVA0 : 1;
  20646. unsigned char SVA : 7;
  20647. #else
  20648. unsigned char SVA : 7;
  20649. unsigned char SVA0 : 1;
  20650. #endif
  20651. } BIT;
  20652. } SARL0;
  20653. union {
  20654. unsigned char BYTE;
  20655. struct {
  20656. #ifdef __RX_LITTLE_ENDIAN__
  20657. unsigned char FS : 1;
  20658. unsigned char SVA : 2;
  20659. unsigned char : 5;
  20660. #else
  20661. unsigned char : 5;
  20662. unsigned char SVA : 2;
  20663. unsigned char FS : 1;
  20664. #endif
  20665. } BIT;
  20666. } SARU0;
  20667. union {
  20668. unsigned char BYTE;
  20669. struct {
  20670. #ifdef __RX_LITTLE_ENDIAN__
  20671. unsigned char SVA0 : 1;
  20672. unsigned char SVA : 7;
  20673. #else
  20674. unsigned char SVA : 7;
  20675. unsigned char SVA0 : 1;
  20676. #endif
  20677. } BIT;
  20678. } SARL1;
  20679. union {
  20680. unsigned char BYTE;
  20681. struct {
  20682. #ifdef __RX_LITTLE_ENDIAN__
  20683. unsigned char FS : 1;
  20684. unsigned char SVA : 2;
  20685. unsigned char : 5;
  20686. #else
  20687. unsigned char : 5;
  20688. unsigned char SVA : 2;
  20689. unsigned char FS : 1;
  20690. #endif
  20691. } BIT;
  20692. } SARU1;
  20693. union {
  20694. unsigned char BYTE;
  20695. struct {
  20696. #ifdef __RX_LITTLE_ENDIAN__
  20697. unsigned char SVA0 : 1;
  20698. unsigned char SVA : 7;
  20699. #else
  20700. unsigned char SVA : 7;
  20701. unsigned char SVA0 : 1;
  20702. #endif
  20703. } BIT;
  20704. } SARL2;
  20705. union {
  20706. unsigned char BYTE;
  20707. struct {
  20708. #ifdef __RX_LITTLE_ENDIAN__
  20709. unsigned char FS : 1;
  20710. unsigned char SVA : 2;
  20711. unsigned char : 5;
  20712. #else
  20713. unsigned char : 5;
  20714. unsigned char SVA : 2;
  20715. unsigned char FS : 1;
  20716. #endif
  20717. } BIT;
  20718. } SARU2;
  20719. union {
  20720. unsigned char BYTE;
  20721. struct {
  20722. #ifdef __RX_LITTLE_ENDIAN__
  20723. unsigned char BRL : 5;
  20724. unsigned char : 3;
  20725. #else
  20726. unsigned char : 3;
  20727. unsigned char BRL : 5;
  20728. #endif
  20729. } BIT;
  20730. } ICBRL;
  20731. union {
  20732. unsigned char BYTE;
  20733. struct {
  20734. #ifdef __RX_LITTLE_ENDIAN__
  20735. unsigned char BRH : 5;
  20736. unsigned char : 3;
  20737. #else
  20738. unsigned char : 3;
  20739. unsigned char BRH : 5;
  20740. #endif
  20741. } BIT;
  20742. } ICBRH;
  20743. unsigned char ICDRT;
  20744. unsigned char ICDRR;
  20745. } st_riic_t;
  20746. typedef struct st_rspi {
  20747. union {
  20748. unsigned char BYTE;
  20749. struct {
  20750. #ifdef __RX_LITTLE_ENDIAN__
  20751. unsigned char SPMS : 1;
  20752. unsigned char TXMD : 1;
  20753. unsigned char MODFEN : 1;
  20754. unsigned char MSTR : 1;
  20755. unsigned char SPEIE : 1;
  20756. unsigned char SPTIE : 1;
  20757. unsigned char SPE : 1;
  20758. unsigned char SPRIE : 1;
  20759. #else
  20760. unsigned char SPRIE : 1;
  20761. unsigned char SPE : 1;
  20762. unsigned char SPTIE : 1;
  20763. unsigned char SPEIE : 1;
  20764. unsigned char MSTR : 1;
  20765. unsigned char MODFEN : 1;
  20766. unsigned char TXMD : 1;
  20767. unsigned char SPMS : 1;
  20768. #endif
  20769. } BIT;
  20770. } SPCR;
  20771. union {
  20772. unsigned char BYTE;
  20773. struct {
  20774. #ifdef __RX_LITTLE_ENDIAN__
  20775. unsigned char SSL0P : 1;
  20776. unsigned char SSL1P : 1;
  20777. unsigned char SSL2P : 1;
  20778. unsigned char SSL3P : 1;
  20779. unsigned char : 4;
  20780. #else
  20781. unsigned char : 4;
  20782. unsigned char SSL3P : 1;
  20783. unsigned char SSL2P : 1;
  20784. unsigned char SSL1P : 1;
  20785. unsigned char SSL0P : 1;
  20786. #endif
  20787. } BIT;
  20788. } SSLP;
  20789. union {
  20790. unsigned char BYTE;
  20791. struct {
  20792. #ifdef __RX_LITTLE_ENDIAN__
  20793. unsigned char SPLP : 1;
  20794. unsigned char SPLP2 : 1;
  20795. unsigned char : 2;
  20796. unsigned char MOIFV : 1;
  20797. unsigned char MOIFE : 1;
  20798. unsigned char : 2;
  20799. #else
  20800. unsigned char : 2;
  20801. unsigned char MOIFE : 1;
  20802. unsigned char MOIFV : 1;
  20803. unsigned char : 2;
  20804. unsigned char SPLP2 : 1;
  20805. unsigned char SPLP : 1;
  20806. #endif
  20807. } BIT;
  20808. } SPPCR;
  20809. union {
  20810. unsigned char BYTE;
  20811. struct {
  20812. #ifdef __RX_LITTLE_ENDIAN__
  20813. unsigned char OVRF : 1;
  20814. unsigned char IDLNF : 1;
  20815. unsigned char MODF : 1;
  20816. unsigned char PERF : 1;
  20817. unsigned char UDRF : 1;
  20818. unsigned char SPTEF : 1;
  20819. unsigned char : 1;
  20820. unsigned char SPRF : 1;
  20821. #else
  20822. unsigned char SPRF : 1;
  20823. unsigned char : 1;
  20824. unsigned char SPTEF : 1;
  20825. unsigned char UDRF : 1;
  20826. unsigned char PERF : 1;
  20827. unsigned char MODF : 1;
  20828. unsigned char IDLNF : 1;
  20829. unsigned char OVRF : 1;
  20830. #endif
  20831. } BIT;
  20832. } SPSR;
  20833. union {
  20834. unsigned long LONG;
  20835. struct {
  20836. unsigned short H;
  20837. } WORD;
  20838. struct {
  20839. unsigned char HH;
  20840. } BYTE;
  20841. } SPDR;
  20842. union {
  20843. unsigned char BYTE;
  20844. struct {
  20845. #ifdef __RX_LITTLE_ENDIAN__
  20846. unsigned char SPSLN : 3;
  20847. unsigned char : 5;
  20848. #else
  20849. unsigned char : 5;
  20850. unsigned char SPSLN : 3;
  20851. #endif
  20852. } BIT;
  20853. } SPSCR;
  20854. union {
  20855. unsigned char BYTE;
  20856. struct {
  20857. #ifdef __RX_LITTLE_ENDIAN__
  20858. unsigned char SPCP : 3;
  20859. unsigned char : 1;
  20860. unsigned char SPECM : 3;
  20861. unsigned char : 1;
  20862. #else
  20863. unsigned char : 1;
  20864. unsigned char SPECM : 3;
  20865. unsigned char : 1;
  20866. unsigned char SPCP : 3;
  20867. #endif
  20868. } BIT;
  20869. } SPSSR;
  20870. unsigned char SPBR;
  20871. union {
  20872. unsigned char BYTE;
  20873. struct {
  20874. #ifdef __RX_LITTLE_ENDIAN__
  20875. unsigned char SPFC : 2;
  20876. unsigned char : 2;
  20877. unsigned char SPRDTD : 1;
  20878. unsigned char SPLW : 1;
  20879. unsigned char SPBYT : 1;
  20880. unsigned char : 1;
  20881. #else
  20882. unsigned char : 1;
  20883. unsigned char SPBYT : 1;
  20884. unsigned char SPLW : 1;
  20885. unsigned char SPRDTD : 1;
  20886. unsigned char : 2;
  20887. unsigned char SPFC : 2;
  20888. #endif
  20889. } BIT;
  20890. } SPDCR;
  20891. union {
  20892. unsigned char BYTE;
  20893. struct {
  20894. #ifdef __RX_LITTLE_ENDIAN__
  20895. unsigned char SCKDL : 3;
  20896. unsigned char : 5;
  20897. #else
  20898. unsigned char : 5;
  20899. unsigned char SCKDL : 3;
  20900. #endif
  20901. } BIT;
  20902. } SPCKD;
  20903. union {
  20904. unsigned char BYTE;
  20905. struct {
  20906. #ifdef __RX_LITTLE_ENDIAN__
  20907. unsigned char SLNDL : 3;
  20908. unsigned char : 5;
  20909. #else
  20910. unsigned char : 5;
  20911. unsigned char SLNDL : 3;
  20912. #endif
  20913. } BIT;
  20914. } SSLND;
  20915. union {
  20916. unsigned char BYTE;
  20917. struct {
  20918. #ifdef __RX_LITTLE_ENDIAN__
  20919. unsigned char SPNDL : 3;
  20920. unsigned char : 5;
  20921. #else
  20922. unsigned char : 5;
  20923. unsigned char SPNDL : 3;
  20924. #endif
  20925. } BIT;
  20926. } SPND;
  20927. union {
  20928. unsigned char BYTE;
  20929. struct {
  20930. #ifdef __RX_LITTLE_ENDIAN__
  20931. unsigned char SPPE : 1;
  20932. unsigned char SPOE : 1;
  20933. unsigned char SPIIE : 1;
  20934. unsigned char PTE : 1;
  20935. unsigned char SCKASE : 1;
  20936. unsigned char : 3;
  20937. #else
  20938. unsigned char : 3;
  20939. unsigned char SCKASE : 1;
  20940. unsigned char PTE : 1;
  20941. unsigned char SPIIE : 1;
  20942. unsigned char SPOE : 1;
  20943. unsigned char SPPE : 1;
  20944. #endif
  20945. } BIT;
  20946. } SPCR2;
  20947. union {
  20948. unsigned short WORD;
  20949. struct {
  20950. #ifdef __RX_LITTLE_ENDIAN__
  20951. unsigned short CPHA : 1;
  20952. unsigned short CPOL : 1;
  20953. unsigned short BRDV : 2;
  20954. unsigned short SSLA : 3;
  20955. unsigned short SSLKP : 1;
  20956. unsigned short SPB : 4;
  20957. unsigned short LSBF : 1;
  20958. unsigned short SPNDEN : 1;
  20959. unsigned short SLNDEN : 1;
  20960. unsigned short SCKDEN : 1;
  20961. #else
  20962. unsigned short SCKDEN : 1;
  20963. unsigned short SLNDEN : 1;
  20964. unsigned short SPNDEN : 1;
  20965. unsigned short LSBF : 1;
  20966. unsigned short SPB : 4;
  20967. unsigned short SSLKP : 1;
  20968. unsigned short SSLA : 3;
  20969. unsigned short BRDV : 2;
  20970. unsigned short CPOL : 1;
  20971. unsigned short CPHA : 1;
  20972. #endif
  20973. } BIT;
  20974. } SPCMD0;
  20975. union {
  20976. unsigned short WORD;
  20977. struct {
  20978. #ifdef __RX_LITTLE_ENDIAN__
  20979. unsigned short CPHA : 1;
  20980. unsigned short CPOL : 1;
  20981. unsigned short BRDV : 2;
  20982. unsigned short SSLA : 3;
  20983. unsigned short SSLKP : 1;
  20984. unsigned short SPB : 4;
  20985. unsigned short LSBF : 1;
  20986. unsigned short SPNDEN : 1;
  20987. unsigned short SLNDEN : 1;
  20988. unsigned short SCKDEN : 1;
  20989. #else
  20990. unsigned short SCKDEN : 1;
  20991. unsigned short SLNDEN : 1;
  20992. unsigned short SPNDEN : 1;
  20993. unsigned short LSBF : 1;
  20994. unsigned short SPB : 4;
  20995. unsigned short SSLKP : 1;
  20996. unsigned short SSLA : 3;
  20997. unsigned short BRDV : 2;
  20998. unsigned short CPOL : 1;
  20999. unsigned short CPHA : 1;
  21000. #endif
  21001. } BIT;
  21002. } SPCMD1;
  21003. union {
  21004. unsigned short WORD;
  21005. struct {
  21006. #ifdef __RX_LITTLE_ENDIAN__
  21007. unsigned short CPHA : 1;
  21008. unsigned short CPOL : 1;
  21009. unsigned short BRDV : 2;
  21010. unsigned short SSLA : 3;
  21011. unsigned short SSLKP : 1;
  21012. unsigned short SPB : 4;
  21013. unsigned short LSBF : 1;
  21014. unsigned short SPNDEN : 1;
  21015. unsigned short SLNDEN : 1;
  21016. unsigned short SCKDEN : 1;
  21017. #else
  21018. unsigned short SCKDEN : 1;
  21019. unsigned short SLNDEN : 1;
  21020. unsigned short SPNDEN : 1;
  21021. unsigned short LSBF : 1;
  21022. unsigned short SPB : 4;
  21023. unsigned short SSLKP : 1;
  21024. unsigned short SSLA : 3;
  21025. unsigned short BRDV : 2;
  21026. unsigned short CPOL : 1;
  21027. unsigned short CPHA : 1;
  21028. #endif
  21029. } BIT;
  21030. } SPCMD2;
  21031. union {
  21032. unsigned short WORD;
  21033. struct {
  21034. #ifdef __RX_LITTLE_ENDIAN__
  21035. unsigned short CPHA : 1;
  21036. unsigned short CPOL : 1;
  21037. unsigned short BRDV : 2;
  21038. unsigned short SSLA : 3;
  21039. unsigned short SSLKP : 1;
  21040. unsigned short SPB : 4;
  21041. unsigned short LSBF : 1;
  21042. unsigned short SPNDEN : 1;
  21043. unsigned short SLNDEN : 1;
  21044. unsigned short SCKDEN : 1;
  21045. #else
  21046. unsigned short SCKDEN : 1;
  21047. unsigned short SLNDEN : 1;
  21048. unsigned short SPNDEN : 1;
  21049. unsigned short LSBF : 1;
  21050. unsigned short SPB : 4;
  21051. unsigned short SSLKP : 1;
  21052. unsigned short SSLA : 3;
  21053. unsigned short BRDV : 2;
  21054. unsigned short CPOL : 1;
  21055. unsigned short CPHA : 1;
  21056. #endif
  21057. } BIT;
  21058. } SPCMD3;
  21059. union {
  21060. unsigned short WORD;
  21061. struct {
  21062. #ifdef __RX_LITTLE_ENDIAN__
  21063. unsigned short CPHA : 1;
  21064. unsigned short CPOL : 1;
  21065. unsigned short BRDV : 2;
  21066. unsigned short SSLA : 3;
  21067. unsigned short SSLKP : 1;
  21068. unsigned short SPB : 4;
  21069. unsigned short LSBF : 1;
  21070. unsigned short SPNDEN : 1;
  21071. unsigned short SLNDEN : 1;
  21072. unsigned short SCKDEN : 1;
  21073. #else
  21074. unsigned short SCKDEN : 1;
  21075. unsigned short SLNDEN : 1;
  21076. unsigned short SPNDEN : 1;
  21077. unsigned short LSBF : 1;
  21078. unsigned short SPB : 4;
  21079. unsigned short SSLKP : 1;
  21080. unsigned short SSLA : 3;
  21081. unsigned short BRDV : 2;
  21082. unsigned short CPOL : 1;
  21083. unsigned short CPHA : 1;
  21084. #endif
  21085. } BIT;
  21086. } SPCMD4;
  21087. union {
  21088. unsigned short WORD;
  21089. struct {
  21090. #ifdef __RX_LITTLE_ENDIAN__
  21091. unsigned short CPHA : 1;
  21092. unsigned short CPOL : 1;
  21093. unsigned short BRDV : 2;
  21094. unsigned short SSLA : 3;
  21095. unsigned short SSLKP : 1;
  21096. unsigned short SPB : 4;
  21097. unsigned short LSBF : 1;
  21098. unsigned short SPNDEN : 1;
  21099. unsigned short SLNDEN : 1;
  21100. unsigned short SCKDEN : 1;
  21101. #else
  21102. unsigned short SCKDEN : 1;
  21103. unsigned short SLNDEN : 1;
  21104. unsigned short SPNDEN : 1;
  21105. unsigned short LSBF : 1;
  21106. unsigned short SPB : 4;
  21107. unsigned short SSLKP : 1;
  21108. unsigned short SSLA : 3;
  21109. unsigned short BRDV : 2;
  21110. unsigned short CPOL : 1;
  21111. unsigned short CPHA : 1;
  21112. #endif
  21113. } BIT;
  21114. } SPCMD5;
  21115. union {
  21116. unsigned short WORD;
  21117. struct {
  21118. #ifdef __RX_LITTLE_ENDIAN__
  21119. unsigned short CPHA : 1;
  21120. unsigned short CPOL : 1;
  21121. unsigned short BRDV : 2;
  21122. unsigned short SSLA : 3;
  21123. unsigned short SSLKP : 1;
  21124. unsigned short SPB : 4;
  21125. unsigned short LSBF : 1;
  21126. unsigned short SPNDEN : 1;
  21127. unsigned short SLNDEN : 1;
  21128. unsigned short SCKDEN : 1;
  21129. #else
  21130. unsigned short SCKDEN : 1;
  21131. unsigned short SLNDEN : 1;
  21132. unsigned short SPNDEN : 1;
  21133. unsigned short LSBF : 1;
  21134. unsigned short SPB : 4;
  21135. unsigned short SSLKP : 1;
  21136. unsigned short SSLA : 3;
  21137. unsigned short BRDV : 2;
  21138. unsigned short CPOL : 1;
  21139. unsigned short CPHA : 1;
  21140. #endif
  21141. } BIT;
  21142. } SPCMD6;
  21143. union {
  21144. unsigned short WORD;
  21145. struct {
  21146. #ifdef __RX_LITTLE_ENDIAN__
  21147. unsigned short CPHA : 1;
  21148. unsigned short CPOL : 1;
  21149. unsigned short BRDV : 2;
  21150. unsigned short SSLA : 3;
  21151. unsigned short SSLKP : 1;
  21152. unsigned short SPB : 4;
  21153. unsigned short LSBF : 1;
  21154. unsigned short SPNDEN : 1;
  21155. unsigned short SLNDEN : 1;
  21156. unsigned short SCKDEN : 1;
  21157. #else
  21158. unsigned short SCKDEN : 1;
  21159. unsigned short SLNDEN : 1;
  21160. unsigned short SPNDEN : 1;
  21161. unsigned short LSBF : 1;
  21162. unsigned short SPB : 4;
  21163. unsigned short SSLKP : 1;
  21164. unsigned short SSLA : 3;
  21165. unsigned short BRDV : 2;
  21166. unsigned short CPOL : 1;
  21167. unsigned short CPHA : 1;
  21168. #endif
  21169. } BIT;
  21170. } SPCMD7;
  21171. union {
  21172. unsigned char BYTE;
  21173. struct {
  21174. #ifdef __RX_LITTLE_ENDIAN__
  21175. unsigned char BYSW : 1;
  21176. unsigned char : 7;
  21177. #else
  21178. unsigned char : 7;
  21179. unsigned char BYSW : 1;
  21180. #endif
  21181. } BIT;
  21182. } SPDCR2;
  21183. } st_rspi_t;
  21184. typedef struct st_rtc {
  21185. union {
  21186. unsigned char BYTE;
  21187. struct {
  21188. #ifdef __RX_LITTLE_ENDIAN__
  21189. unsigned char F64HZ : 1;
  21190. unsigned char F32HZ : 1;
  21191. unsigned char F16HZ : 1;
  21192. unsigned char F8HZ : 1;
  21193. unsigned char F4HZ : 1;
  21194. unsigned char F2HZ : 1;
  21195. unsigned char F1HZ : 1;
  21196. unsigned char : 1;
  21197. #else
  21198. unsigned char : 1;
  21199. unsigned char F1HZ : 1;
  21200. unsigned char F2HZ : 1;
  21201. unsigned char F4HZ : 1;
  21202. unsigned char F8HZ : 1;
  21203. unsigned char F16HZ : 1;
  21204. unsigned char F32HZ : 1;
  21205. unsigned char F64HZ : 1;
  21206. #endif
  21207. } BIT;
  21208. } R64CNT;
  21209. char wk0[1];
  21210. union {
  21211. union {
  21212. unsigned char BYTE;
  21213. struct {
  21214. #ifdef __RX_LITTLE_ENDIAN__
  21215. unsigned char SEC1 : 4;
  21216. unsigned char SEC10 : 3;
  21217. unsigned char : 1;
  21218. #else
  21219. unsigned char : 1;
  21220. unsigned char SEC10 : 3;
  21221. unsigned char SEC1 : 4;
  21222. #endif
  21223. } BIT;
  21224. } RSECCNT;
  21225. union {
  21226. unsigned char BYTE;
  21227. struct {
  21228. #ifdef __RX_LITTLE_ENDIAN__
  21229. unsigned char BCNT : 8;
  21230. #else
  21231. unsigned char BCNT : 8;
  21232. #endif
  21233. } BIT;
  21234. } BCNT0;
  21235. };
  21236. char wk1[1];
  21237. union {
  21238. union {
  21239. unsigned char BYTE;
  21240. struct {
  21241. #ifdef __RX_LITTLE_ENDIAN__
  21242. unsigned char MIN1 : 4;
  21243. unsigned char MIN10 : 3;
  21244. unsigned char : 1;
  21245. #else
  21246. unsigned char : 1;
  21247. unsigned char MIN10 : 3;
  21248. unsigned char MIN1 : 4;
  21249. #endif
  21250. } BIT;
  21251. } RMINCNT;
  21252. union {
  21253. unsigned char BYTE;
  21254. struct {
  21255. #ifdef __RX_LITTLE_ENDIAN__
  21256. unsigned char BCNT : 8;
  21257. #else
  21258. unsigned char BCNT : 8;
  21259. #endif
  21260. } BIT;
  21261. } BCNT1;
  21262. };
  21263. char wk2[1];
  21264. union {
  21265. union {
  21266. unsigned char BYTE;
  21267. struct {
  21268. #ifdef __RX_LITTLE_ENDIAN__
  21269. unsigned char HR1 : 4;
  21270. unsigned char HR10 : 2;
  21271. unsigned char PM : 1;
  21272. unsigned char : 1;
  21273. #else
  21274. unsigned char : 1;
  21275. unsigned char PM : 1;
  21276. unsigned char HR10 : 2;
  21277. unsigned char HR1 : 4;
  21278. #endif
  21279. } BIT;
  21280. } RHRCNT;
  21281. union {
  21282. unsigned char BYTE;
  21283. struct {
  21284. #ifdef __RX_LITTLE_ENDIAN__
  21285. unsigned char BCNT : 8;
  21286. #else
  21287. unsigned char BCNT : 8;
  21288. #endif
  21289. } BIT;
  21290. } BCNT2;
  21291. };
  21292. char wk3[1];
  21293. union {
  21294. union {
  21295. unsigned char BYTE;
  21296. struct {
  21297. #ifdef __RX_LITTLE_ENDIAN__
  21298. unsigned char DAYW : 3;
  21299. unsigned char : 5;
  21300. #else
  21301. unsigned char : 5;
  21302. unsigned char DAYW : 3;
  21303. #endif
  21304. } BIT;
  21305. } RWKCNT;
  21306. union {
  21307. unsigned char BYTE;
  21308. struct {
  21309. #ifdef __RX_LITTLE_ENDIAN__
  21310. unsigned char BCNT : 8;
  21311. #else
  21312. unsigned char BCNT : 8;
  21313. #endif
  21314. } BIT;
  21315. } BCNT3;
  21316. };
  21317. char wk4[1];
  21318. union {
  21319. unsigned char BYTE;
  21320. struct {
  21321. #ifdef __RX_LITTLE_ENDIAN__
  21322. unsigned char DATE1 : 4;
  21323. unsigned char DATE10 : 2;
  21324. unsigned char : 2;
  21325. #else
  21326. unsigned char : 2;
  21327. unsigned char DATE10 : 2;
  21328. unsigned char DATE1 : 4;
  21329. #endif
  21330. } BIT;
  21331. } RDAYCNT;
  21332. char wk5[1];
  21333. union {
  21334. unsigned char BYTE;
  21335. struct {
  21336. #ifdef __RX_LITTLE_ENDIAN__
  21337. unsigned char MON1 : 4;
  21338. unsigned char MON10 : 1;
  21339. unsigned char : 3;
  21340. #else
  21341. unsigned char : 3;
  21342. unsigned char MON10 : 1;
  21343. unsigned char MON1 : 4;
  21344. #endif
  21345. } BIT;
  21346. } RMONCNT;
  21347. char wk6[1];
  21348. union {
  21349. unsigned short WORD;
  21350. struct {
  21351. #ifdef __RX_LITTLE_ENDIAN__
  21352. unsigned short YR1 : 4;
  21353. unsigned short YR10 : 4;
  21354. unsigned short : 8;
  21355. #else
  21356. unsigned short : 8;
  21357. unsigned short YR10 : 4;
  21358. unsigned short YR1 : 4;
  21359. #endif
  21360. } BIT;
  21361. } RYRCNT;
  21362. union {
  21363. union {
  21364. unsigned char BYTE;
  21365. struct {
  21366. #ifdef __RX_LITTLE_ENDIAN__
  21367. unsigned char SEC1 : 4;
  21368. unsigned char SEC10 : 3;
  21369. unsigned char ENB : 1;
  21370. #else
  21371. unsigned char ENB : 1;
  21372. unsigned char SEC10 : 3;
  21373. unsigned char SEC1 : 4;
  21374. #endif
  21375. } BIT;
  21376. } RSECAR;
  21377. union {
  21378. unsigned char BYTE;
  21379. struct {
  21380. #ifdef __RX_LITTLE_ENDIAN__
  21381. unsigned char BCNTAR : 8;
  21382. #else
  21383. unsigned char BCNTAR : 8;
  21384. #endif
  21385. } BIT;
  21386. } BCNT0AR;
  21387. };
  21388. char wk7[1];
  21389. union {
  21390. union {
  21391. unsigned char BYTE;
  21392. struct {
  21393. #ifdef __RX_LITTLE_ENDIAN__
  21394. unsigned char MIN1 : 4;
  21395. unsigned char MIN10 : 3;
  21396. unsigned char ENB : 1;
  21397. #else
  21398. unsigned char ENB : 1;
  21399. unsigned char MIN10 : 3;
  21400. unsigned char MIN1 : 4;
  21401. #endif
  21402. } BIT;
  21403. } RMINAR;
  21404. union {
  21405. unsigned char BYTE;
  21406. struct {
  21407. #ifdef __RX_LITTLE_ENDIAN__
  21408. unsigned char BCNTAR : 8;
  21409. #else
  21410. unsigned char BCNTAR : 8;
  21411. #endif
  21412. } BIT;
  21413. } BCNT1AR;
  21414. };
  21415. char wk8[1];
  21416. union {
  21417. union {
  21418. unsigned char BYTE;
  21419. struct {
  21420. #ifdef __RX_LITTLE_ENDIAN__
  21421. unsigned char HR1 : 4;
  21422. unsigned char HR10 : 2;
  21423. unsigned char PM : 1;
  21424. unsigned char ENB : 1;
  21425. #else
  21426. unsigned char ENB : 1;
  21427. unsigned char PM : 1;
  21428. unsigned char HR10 : 2;
  21429. unsigned char HR1 : 4;
  21430. #endif
  21431. } BIT;
  21432. } RHRAR;
  21433. union {
  21434. unsigned char BYTE;
  21435. struct {
  21436. #ifdef __RX_LITTLE_ENDIAN__
  21437. unsigned char BCNTAR : 8;
  21438. #else
  21439. unsigned char BCNTAR : 8;
  21440. #endif
  21441. } BIT;
  21442. } BCNT2AR;
  21443. };
  21444. char wk9[1];
  21445. union {
  21446. union {
  21447. unsigned char BYTE;
  21448. struct {
  21449. #ifdef __RX_LITTLE_ENDIAN__
  21450. unsigned char DAYW : 3;
  21451. unsigned char : 4;
  21452. unsigned char ENB : 1;
  21453. #else
  21454. unsigned char ENB : 1;
  21455. unsigned char : 4;
  21456. unsigned char DAYW : 3;
  21457. #endif
  21458. } BIT;
  21459. } RWKAR;
  21460. union {
  21461. unsigned char BYTE;
  21462. struct {
  21463. #ifdef __RX_LITTLE_ENDIAN__
  21464. unsigned char BCNTAR : 8;
  21465. #else
  21466. unsigned char BCNTAR : 8;
  21467. #endif
  21468. } BIT;
  21469. } BCNT3AR;
  21470. };
  21471. char wk10[1];
  21472. union {
  21473. union {
  21474. unsigned char BYTE;
  21475. struct {
  21476. #ifdef __RX_LITTLE_ENDIAN__
  21477. unsigned char DATE1 : 4;
  21478. unsigned char DATE10 : 2;
  21479. unsigned char : 1;
  21480. unsigned char ENB : 1;
  21481. #else
  21482. unsigned char ENB : 1;
  21483. unsigned char : 1;
  21484. unsigned char DATE10 : 2;
  21485. unsigned char DATE1 : 4;
  21486. #endif
  21487. } BIT;
  21488. } RDAYAR;
  21489. union {
  21490. unsigned char BYTE;
  21491. struct {
  21492. #ifdef __RX_LITTLE_ENDIAN__
  21493. unsigned char ENB : 8;
  21494. #else
  21495. unsigned char ENB : 8;
  21496. #endif
  21497. } BIT;
  21498. } BCNT0AER;
  21499. };
  21500. char wk11[1];
  21501. union {
  21502. union {
  21503. unsigned char BYTE;
  21504. struct {
  21505. #ifdef __RX_LITTLE_ENDIAN__
  21506. unsigned char MON1 : 4;
  21507. unsigned char MON10 : 1;
  21508. unsigned char : 2;
  21509. unsigned char ENB : 1;
  21510. #else
  21511. unsigned char ENB : 1;
  21512. unsigned char : 2;
  21513. unsigned char MON10 : 1;
  21514. unsigned char MON1 : 4;
  21515. #endif
  21516. } BIT;
  21517. } RMONAR;
  21518. union {
  21519. unsigned char BYTE;
  21520. struct {
  21521. #ifdef __RX_LITTLE_ENDIAN__
  21522. unsigned char ENB : 8;
  21523. #else
  21524. unsigned char ENB : 8;
  21525. #endif
  21526. } BIT;
  21527. } BCNT1AER;
  21528. };
  21529. char wk12[1];
  21530. union {
  21531. union {
  21532. unsigned short WORD;
  21533. struct {
  21534. #ifdef __RX_LITTLE_ENDIAN__
  21535. unsigned short YR1 : 4;
  21536. unsigned short YR10 : 4;
  21537. unsigned short : 8;
  21538. #else
  21539. unsigned short : 8;
  21540. unsigned short YR10 : 4;
  21541. unsigned short YR1 : 4;
  21542. #endif
  21543. } BIT;
  21544. } RYRAR;
  21545. union {
  21546. unsigned short WORD;
  21547. struct {
  21548. #ifdef __RX_LITTLE_ENDIAN__
  21549. unsigned short ENB : 8;
  21550. unsigned short : 8;
  21551. #else
  21552. unsigned short : 8;
  21553. unsigned short ENB : 8;
  21554. #endif
  21555. } BIT;
  21556. } BCNT2AER;
  21557. };
  21558. union {
  21559. union {
  21560. unsigned char BYTE;
  21561. struct {
  21562. #ifdef __RX_LITTLE_ENDIAN__
  21563. unsigned char : 7;
  21564. unsigned char ENB : 1;
  21565. #else
  21566. unsigned char ENB : 1;
  21567. unsigned char : 7;
  21568. #endif
  21569. } BIT;
  21570. } RYRAREN;
  21571. union {
  21572. unsigned char BYTE;
  21573. struct {
  21574. #ifdef __RX_LITTLE_ENDIAN__
  21575. unsigned char ENB : 8;
  21576. #else
  21577. unsigned char ENB : 8;
  21578. #endif
  21579. } BIT;
  21580. } BCNT3AER;
  21581. };
  21582. char wk13[3];
  21583. union {
  21584. unsigned char BYTE;
  21585. struct {
  21586. #ifdef __RX_LITTLE_ENDIAN__
  21587. unsigned char AIE : 1;
  21588. unsigned char CIE : 1;
  21589. unsigned char PIE : 1;
  21590. unsigned char RTCOS : 1;
  21591. unsigned char PES : 4;
  21592. #else
  21593. unsigned char PES : 4;
  21594. unsigned char RTCOS : 1;
  21595. unsigned char PIE : 1;
  21596. unsigned char CIE : 1;
  21597. unsigned char AIE : 1;
  21598. #endif
  21599. } BIT;
  21600. } RCR1;
  21601. char wk14[1];
  21602. union {
  21603. unsigned char BYTE;
  21604. struct {
  21605. #ifdef __RX_LITTLE_ENDIAN__
  21606. unsigned char START : 1;
  21607. unsigned char RESET : 1;
  21608. unsigned char ADJ30 : 1;
  21609. unsigned char RTCOE : 1;
  21610. unsigned char AADJE : 1;
  21611. unsigned char AADJP : 1;
  21612. unsigned char HR24 : 1;
  21613. unsigned char CNTMD : 1;
  21614. #else
  21615. unsigned char CNTMD : 1;
  21616. unsigned char HR24 : 1;
  21617. unsigned char AADJP : 1;
  21618. unsigned char AADJE : 1;
  21619. unsigned char RTCOE : 1;
  21620. unsigned char ADJ30 : 1;
  21621. unsigned char RESET : 1;
  21622. unsigned char START : 1;
  21623. #endif
  21624. } BIT;
  21625. } RCR2;
  21626. char wk15[1];
  21627. union {
  21628. unsigned char BYTE;
  21629. struct {
  21630. #ifdef __RX_LITTLE_ENDIAN__
  21631. unsigned char RTCEN : 1;
  21632. unsigned char RTCDV : 3;
  21633. unsigned char : 4;
  21634. #else
  21635. unsigned char : 4;
  21636. unsigned char RTCDV : 3;
  21637. unsigned char RTCEN : 1;
  21638. #endif
  21639. } BIT;
  21640. } RCR3;
  21641. char wk16[1];
  21642. union {
  21643. unsigned char BYTE;
  21644. struct {
  21645. #ifdef __RX_LITTLE_ENDIAN__
  21646. unsigned char RCKSEL : 1;
  21647. unsigned char : 7;
  21648. #else
  21649. unsigned char : 7;
  21650. unsigned char RCKSEL : 1;
  21651. #endif
  21652. } BIT;
  21653. } RCR4;
  21654. char wk17[1];
  21655. union {
  21656. unsigned short WORD;
  21657. struct {
  21658. #ifdef __RX_LITTLE_ENDIAN__
  21659. unsigned short RFC : 1;
  21660. unsigned short : 15;
  21661. #else
  21662. unsigned short : 15;
  21663. unsigned short RFC : 1;
  21664. #endif
  21665. } BIT;
  21666. } RFRH;
  21667. union {
  21668. unsigned short WORD;
  21669. struct {
  21670. #ifdef __RX_LITTLE_ENDIAN__
  21671. unsigned short RFC : 16;
  21672. #else
  21673. unsigned short RFC : 16;
  21674. #endif
  21675. } BIT;
  21676. } RFRL;
  21677. union {
  21678. unsigned char BYTE;
  21679. struct {
  21680. #ifdef __RX_LITTLE_ENDIAN__
  21681. unsigned char ADJ : 6;
  21682. unsigned char PMADJ : 2;
  21683. #else
  21684. unsigned char PMADJ : 2;
  21685. unsigned char ADJ : 6;
  21686. #endif
  21687. } BIT;
  21688. } RADJ;
  21689. char wk18[17];
  21690. union {
  21691. unsigned char BYTE;
  21692. struct {
  21693. #ifdef __RX_LITTLE_ENDIAN__
  21694. unsigned char TCCT : 2;
  21695. unsigned char TCST : 1;
  21696. unsigned char : 1;
  21697. unsigned char TCNF : 2;
  21698. unsigned char : 1;
  21699. unsigned char TCEN : 1;
  21700. #else
  21701. unsigned char TCEN : 1;
  21702. unsigned char : 1;
  21703. unsigned char TCNF : 2;
  21704. unsigned char : 1;
  21705. unsigned char TCST : 1;
  21706. unsigned char TCCT : 2;
  21707. #endif
  21708. } BIT;
  21709. } RTCCR0;
  21710. char wk19[1];
  21711. union {
  21712. unsigned char BYTE;
  21713. struct {
  21714. #ifdef __RX_LITTLE_ENDIAN__
  21715. unsigned char TCCT : 2;
  21716. unsigned char TCST : 1;
  21717. unsigned char : 1;
  21718. unsigned char TCNF : 2;
  21719. unsigned char : 1;
  21720. unsigned char TCEN : 1;
  21721. #else
  21722. unsigned char TCEN : 1;
  21723. unsigned char : 1;
  21724. unsigned char TCNF : 2;
  21725. unsigned char : 1;
  21726. unsigned char TCST : 1;
  21727. unsigned char TCCT : 2;
  21728. #endif
  21729. } BIT;
  21730. } RTCCR1;
  21731. char wk20[1];
  21732. union {
  21733. unsigned char BYTE;
  21734. struct {
  21735. #ifdef __RX_LITTLE_ENDIAN__
  21736. unsigned char TCCT : 2;
  21737. unsigned char TCST : 1;
  21738. unsigned char : 1;
  21739. unsigned char TCNF : 2;
  21740. unsigned char : 1;
  21741. unsigned char TCEN : 1;
  21742. #else
  21743. unsigned char TCEN : 1;
  21744. unsigned char : 1;
  21745. unsigned char TCNF : 2;
  21746. unsigned char : 1;
  21747. unsigned char TCST : 1;
  21748. unsigned char TCCT : 2;
  21749. #endif
  21750. } BIT;
  21751. } RTCCR2;
  21752. char wk21[13];
  21753. union {
  21754. union {
  21755. unsigned char BYTE;
  21756. struct {
  21757. #ifdef __RX_LITTLE_ENDIAN__
  21758. unsigned char SEC1 : 4;
  21759. unsigned char SEC10 : 3;
  21760. unsigned char : 1;
  21761. #else
  21762. unsigned char : 1;
  21763. unsigned char SEC10 : 3;
  21764. unsigned char SEC1 : 4;
  21765. #endif
  21766. } BIT;
  21767. } RSECCP0;
  21768. union {
  21769. unsigned char BYTE;
  21770. struct {
  21771. #ifdef __RX_LITTLE_ENDIAN__
  21772. unsigned char BCNTCP0 : 8;
  21773. #else
  21774. unsigned char BCNTCP0 : 8;
  21775. #endif
  21776. } BIT;
  21777. } BCNT0CP0;
  21778. };
  21779. char wk22[1];
  21780. union {
  21781. union {
  21782. unsigned char BYTE;
  21783. struct {
  21784. #ifdef __RX_LITTLE_ENDIAN__
  21785. unsigned char MIN1 : 4;
  21786. unsigned char MIN10 : 3;
  21787. unsigned char : 1;
  21788. #else
  21789. unsigned char : 1;
  21790. unsigned char MIN10 : 3;
  21791. unsigned char MIN1 : 4;
  21792. #endif
  21793. } BIT;
  21794. } RMINCP0;
  21795. union {
  21796. unsigned char BYTE;
  21797. struct {
  21798. #ifdef __RX_LITTLE_ENDIAN__
  21799. unsigned char BCNTCP0 : 8;
  21800. #else
  21801. unsigned char BCNTCP0 : 8;
  21802. #endif
  21803. } BIT;
  21804. } BCNT1CP0;
  21805. };
  21806. char wk23[1];
  21807. union {
  21808. union {
  21809. unsigned char BYTE;
  21810. struct {
  21811. #ifdef __RX_LITTLE_ENDIAN__
  21812. unsigned char HR1 : 4;
  21813. unsigned char HR10 : 2;
  21814. unsigned char PM : 1;
  21815. unsigned char : 1;
  21816. #else
  21817. unsigned char : 1;
  21818. unsigned char PM : 1;
  21819. unsigned char HR10 : 2;
  21820. unsigned char HR1 : 4;
  21821. #endif
  21822. } BIT;
  21823. } RHRCP0;
  21824. union {
  21825. unsigned char BYTE;
  21826. struct {
  21827. #ifdef __RX_LITTLE_ENDIAN__
  21828. unsigned char BCNTCP0 : 8;
  21829. #else
  21830. unsigned char BCNTCP0 : 8;
  21831. #endif
  21832. } BIT;
  21833. } BCNT2CP0;
  21834. };
  21835. char wk24[3];
  21836. union {
  21837. union {
  21838. unsigned char BYTE;
  21839. struct {
  21840. #ifdef __RX_LITTLE_ENDIAN__
  21841. unsigned char DATE1 : 4;
  21842. unsigned char DATE10 : 2;
  21843. unsigned char : 2;
  21844. #else
  21845. unsigned char : 2;
  21846. unsigned char DATE10 : 2;
  21847. unsigned char DATE1 : 4;
  21848. #endif
  21849. } BIT;
  21850. } RDAYCP0;
  21851. union {
  21852. unsigned char BYTE;
  21853. struct {
  21854. #ifdef __RX_LITTLE_ENDIAN__
  21855. unsigned char BCNTCP0 : 8;
  21856. #else
  21857. unsigned char BCNTCP0 : 8;
  21858. #endif
  21859. } BIT;
  21860. } BCNT3CP0;
  21861. };
  21862. char wk25[1];
  21863. union {
  21864. unsigned char BYTE;
  21865. struct {
  21866. #ifdef __RX_LITTLE_ENDIAN__
  21867. unsigned char MON1 : 4;
  21868. unsigned char MON10 : 1;
  21869. unsigned char : 3;
  21870. #else
  21871. unsigned char : 3;
  21872. unsigned char MON10 : 1;
  21873. unsigned char MON1 : 4;
  21874. #endif
  21875. } BIT;
  21876. } RMONCP0;
  21877. char wk26[5];
  21878. union {
  21879. union {
  21880. unsigned char BYTE;
  21881. struct {
  21882. #ifdef __RX_LITTLE_ENDIAN__
  21883. unsigned char SEC1 : 4;
  21884. unsigned char SEC10 : 3;
  21885. unsigned char : 1;
  21886. #else
  21887. unsigned char : 1;
  21888. unsigned char SEC10 : 3;
  21889. unsigned char SEC1 : 4;
  21890. #endif
  21891. } BIT;
  21892. } RSECCP1;
  21893. union {
  21894. unsigned char BYTE;
  21895. struct {
  21896. #ifdef __RX_LITTLE_ENDIAN__
  21897. unsigned char BCNTCP1 : 8;
  21898. #else
  21899. unsigned char BCNTCP1 : 8;
  21900. #endif
  21901. } BIT;
  21902. } BCNT0CP1;
  21903. };
  21904. char wk27[1];
  21905. union {
  21906. union {
  21907. unsigned char BYTE;
  21908. struct {
  21909. #ifdef __RX_LITTLE_ENDIAN__
  21910. unsigned char MIN1 : 4;
  21911. unsigned char MIN10 : 3;
  21912. unsigned char : 1;
  21913. #else
  21914. unsigned char : 1;
  21915. unsigned char MIN10 : 3;
  21916. unsigned char MIN1 : 4;
  21917. #endif
  21918. } BIT;
  21919. } RMINCP1;
  21920. union {
  21921. unsigned char BYTE;
  21922. struct {
  21923. #ifdef __RX_LITTLE_ENDIAN__
  21924. unsigned char BCNTCP1 : 8;
  21925. #else
  21926. unsigned char BCNTCP1 : 8;
  21927. #endif
  21928. } BIT;
  21929. } BCNT1CP1;
  21930. };
  21931. char wk28[1];
  21932. union {
  21933. union {
  21934. unsigned char BYTE;
  21935. struct {
  21936. #ifdef __RX_LITTLE_ENDIAN__
  21937. unsigned char HR1 : 4;
  21938. unsigned char HR10 : 2;
  21939. unsigned char PM : 1;
  21940. unsigned char : 1;
  21941. #else
  21942. unsigned char : 1;
  21943. unsigned char PM : 1;
  21944. unsigned char HR10 : 2;
  21945. unsigned char HR1 : 4;
  21946. #endif
  21947. } BIT;
  21948. } RHRCP1;
  21949. union {
  21950. unsigned char BYTE;
  21951. struct {
  21952. #ifdef __RX_LITTLE_ENDIAN__
  21953. unsigned char BCNTCP1 : 8;
  21954. #else
  21955. unsigned char BCNTCP1 : 8;
  21956. #endif
  21957. } BIT;
  21958. } BCNT2CP1;
  21959. };
  21960. char wk29[3];
  21961. union {
  21962. union {
  21963. unsigned char BYTE;
  21964. struct {
  21965. #ifdef __RX_LITTLE_ENDIAN__
  21966. unsigned char DATE1 : 4;
  21967. unsigned char DATE10 : 2;
  21968. unsigned char : 2;
  21969. #else
  21970. unsigned char : 2;
  21971. unsigned char DATE10 : 2;
  21972. unsigned char DATE1 : 4;
  21973. #endif
  21974. } BIT;
  21975. } RDAYCP1;
  21976. union {
  21977. unsigned char BYTE;
  21978. struct {
  21979. #ifdef __RX_LITTLE_ENDIAN__
  21980. unsigned char BCNTCP1 : 8;
  21981. #else
  21982. unsigned char BCNTCP1 : 8;
  21983. #endif
  21984. } BIT;
  21985. } BCNT3CP1;
  21986. };
  21987. char wk30[1];
  21988. union {
  21989. unsigned char BYTE;
  21990. struct {
  21991. #ifdef __RX_LITTLE_ENDIAN__
  21992. unsigned char MON1 : 4;
  21993. unsigned char MON10 : 1;
  21994. unsigned char : 3;
  21995. #else
  21996. unsigned char : 3;
  21997. unsigned char MON10 : 1;
  21998. unsigned char MON1 : 4;
  21999. #endif
  22000. } BIT;
  22001. } RMONCP1;
  22002. char wk31[5];
  22003. union {
  22004. union {
  22005. unsigned char BYTE;
  22006. struct {
  22007. #ifdef __RX_LITTLE_ENDIAN__
  22008. unsigned char SEC1 : 4;
  22009. unsigned char SEC10 : 3;
  22010. unsigned char : 1;
  22011. #else
  22012. unsigned char : 1;
  22013. unsigned char SEC10 : 3;
  22014. unsigned char SEC1 : 4;
  22015. #endif
  22016. } BIT;
  22017. } RSECCP2;
  22018. union {
  22019. unsigned char BYTE;
  22020. struct {
  22021. #ifdef __RX_LITTLE_ENDIAN__
  22022. unsigned char BCNTCP2 : 8;
  22023. #else
  22024. unsigned char BCNTCP2 : 8;
  22025. #endif
  22026. } BIT;
  22027. } BCNT0CP2;
  22028. };
  22029. char wk32[1];
  22030. union {
  22031. union {
  22032. unsigned char BYTE;
  22033. struct {
  22034. #ifdef __RX_LITTLE_ENDIAN__
  22035. unsigned char MIN1 : 4;
  22036. unsigned char MIN10 : 3;
  22037. unsigned char : 1;
  22038. #else
  22039. unsigned char : 1;
  22040. unsigned char MIN10 : 3;
  22041. unsigned char MIN1 : 4;
  22042. #endif
  22043. } BIT;
  22044. } RMINCP2;
  22045. union {
  22046. unsigned char BYTE;
  22047. struct {
  22048. #ifdef __RX_LITTLE_ENDIAN__
  22049. unsigned char BCNTCP2 : 8;
  22050. #else
  22051. unsigned char BCNTCP2 : 8;
  22052. #endif
  22053. } BIT;
  22054. } BCNT1CP2;
  22055. };
  22056. char wk33[1];
  22057. union {
  22058. union {
  22059. unsigned char BYTE;
  22060. struct {
  22061. #ifdef __RX_LITTLE_ENDIAN__
  22062. unsigned char HR1 : 4;
  22063. unsigned char HR10 : 2;
  22064. unsigned char PM : 1;
  22065. unsigned char : 1;
  22066. #else
  22067. unsigned char : 1;
  22068. unsigned char PM : 1;
  22069. unsigned char HR10 : 2;
  22070. unsigned char HR1 : 4;
  22071. #endif
  22072. } BIT;
  22073. } RHRCP2;
  22074. union {
  22075. unsigned char BYTE;
  22076. struct {
  22077. #ifdef __RX_LITTLE_ENDIAN__
  22078. unsigned char BCNTCP2 : 8;
  22079. #else
  22080. unsigned char BCNTCP2 : 8;
  22081. #endif
  22082. } BIT;
  22083. } BCNT2CP2;
  22084. };
  22085. char wk34[3];
  22086. union {
  22087. union {
  22088. unsigned char BYTE;
  22089. struct {
  22090. #ifdef __RX_LITTLE_ENDIAN__
  22091. unsigned char DATE1 : 4;
  22092. unsigned char DATE10 : 2;
  22093. unsigned char : 2;
  22094. #else
  22095. unsigned char : 2;
  22096. unsigned char DATE10 : 2;
  22097. unsigned char DATE1 : 4;
  22098. #endif
  22099. } BIT;
  22100. } RDAYCP2;
  22101. union {
  22102. unsigned char BYTE;
  22103. struct {
  22104. #ifdef __RX_LITTLE_ENDIAN__
  22105. unsigned char BCNTCP2 : 8;
  22106. #else
  22107. unsigned char BCNTCP2 : 8;
  22108. #endif
  22109. } BIT;
  22110. } BCNT3CP2;
  22111. };
  22112. char wk35[1];
  22113. union {
  22114. unsigned char BYTE;
  22115. struct {
  22116. #ifdef __RX_LITTLE_ENDIAN__
  22117. unsigned char MON1 : 4;
  22118. unsigned char MON10 : 1;
  22119. unsigned char : 3;
  22120. #else
  22121. unsigned char : 3;
  22122. unsigned char MON10 : 1;
  22123. unsigned char MON1 : 4;
  22124. #endif
  22125. } BIT;
  22126. } RMONCP2;
  22127. } st_rtc_t;
  22128. typedef struct st_s12ad {
  22129. union {
  22130. unsigned short WORD;
  22131. struct {
  22132. #ifdef __RX_LITTLE_ENDIAN__
  22133. unsigned short DBLANS : 5;
  22134. unsigned short : 1;
  22135. unsigned short GBADIE : 1;
  22136. unsigned short DBLE : 1;
  22137. unsigned short EXTRG : 1;
  22138. unsigned short TRGE : 1;
  22139. unsigned short : 2;
  22140. unsigned short ADIE : 1;
  22141. unsigned short ADCS : 2;
  22142. unsigned short ADST : 1;
  22143. #else
  22144. unsigned short ADST : 1;
  22145. unsigned short ADCS : 2;
  22146. unsigned short ADIE : 1;
  22147. unsigned short : 2;
  22148. unsigned short TRGE : 1;
  22149. unsigned short EXTRG : 1;
  22150. unsigned short DBLE : 1;
  22151. unsigned short GBADIE : 1;
  22152. unsigned short : 1;
  22153. unsigned short DBLANS : 5;
  22154. #endif
  22155. } BIT;
  22156. } ADCSR;
  22157. char wk0[2];
  22158. union {
  22159. unsigned short WORD;
  22160. struct {
  22161. #ifdef __RX_LITTLE_ENDIAN__
  22162. unsigned short ANSA000 : 1;
  22163. unsigned short ANSA001 : 1;
  22164. unsigned short ANSA002 : 1;
  22165. unsigned short ANSA003 : 1;
  22166. unsigned short ANSA004 : 1;
  22167. unsigned short ANSA005 : 1;
  22168. unsigned short ANSA006 : 1;
  22169. unsigned short ANSA007 : 1;
  22170. unsigned short : 8;
  22171. #else
  22172. unsigned short : 8;
  22173. unsigned short ANSA007 : 1;
  22174. unsigned short ANSA006 : 1;
  22175. unsigned short ANSA005 : 1;
  22176. unsigned short ANSA004 : 1;
  22177. unsigned short ANSA003 : 1;
  22178. unsigned short ANSA002 : 1;
  22179. unsigned short ANSA001 : 1;
  22180. unsigned short ANSA000 : 1;
  22181. #endif
  22182. } BIT;
  22183. } ADANSA0;
  22184. char wk1[2];
  22185. union {
  22186. unsigned short WORD;
  22187. struct {
  22188. #ifdef __RX_LITTLE_ENDIAN__
  22189. unsigned short ADS000 : 1;
  22190. unsigned short ADS001 : 1;
  22191. unsigned short ADS002 : 1;
  22192. unsigned short ADS003 : 1;
  22193. unsigned short ADS004 : 1;
  22194. unsigned short ADS005 : 1;
  22195. unsigned short ADS006 : 1;
  22196. unsigned short ADS007 : 1;
  22197. unsigned short : 8;
  22198. #else
  22199. unsigned short : 8;
  22200. unsigned short ADS007 : 1;
  22201. unsigned short ADS006 : 1;
  22202. unsigned short ADS005 : 1;
  22203. unsigned short ADS004 : 1;
  22204. unsigned short ADS003 : 1;
  22205. unsigned short ADS002 : 1;
  22206. unsigned short ADS001 : 1;
  22207. unsigned short ADS000 : 1;
  22208. #endif
  22209. } BIT;
  22210. } ADADS0;
  22211. char wk2[2];
  22212. union {
  22213. unsigned char BYTE;
  22214. struct {
  22215. #ifdef __RX_LITTLE_ENDIAN__
  22216. unsigned char ADC : 3;
  22217. unsigned char : 4;
  22218. unsigned char AVEE : 1;
  22219. #else
  22220. unsigned char AVEE : 1;
  22221. unsigned char : 4;
  22222. unsigned char ADC : 3;
  22223. #endif
  22224. } BIT;
  22225. } ADADC;
  22226. char wk3[1];
  22227. union {
  22228. unsigned short WORD;
  22229. struct {
  22230. #ifdef __RX_LITTLE_ENDIAN__
  22231. unsigned short : 1;
  22232. unsigned short ADPRC : 2;
  22233. unsigned short : 2;
  22234. unsigned short ACE : 1;
  22235. unsigned short : 2;
  22236. unsigned short DIAGVAL : 2;
  22237. unsigned short DIAGLD : 1;
  22238. unsigned short DIAGM : 1;
  22239. unsigned short : 3;
  22240. unsigned short ADRFMT : 1;
  22241. #else
  22242. unsigned short ADRFMT : 1;
  22243. unsigned short : 3;
  22244. unsigned short DIAGM : 1;
  22245. unsigned short DIAGLD : 1;
  22246. unsigned short DIAGVAL : 2;
  22247. unsigned short : 2;
  22248. unsigned short ACE : 1;
  22249. unsigned short : 2;
  22250. unsigned short ADPRC : 2;
  22251. unsigned short : 1;
  22252. #endif
  22253. } BIT;
  22254. } ADCER;
  22255. union {
  22256. unsigned short WORD;
  22257. struct {
  22258. #ifdef __RX_LITTLE_ENDIAN__
  22259. unsigned short TRSB : 6;
  22260. unsigned short : 2;
  22261. unsigned short TRSA : 6;
  22262. unsigned short : 2;
  22263. #else
  22264. unsigned short : 2;
  22265. unsigned short TRSA : 6;
  22266. unsigned short : 2;
  22267. unsigned short TRSB : 6;
  22268. #endif
  22269. } BIT;
  22270. } ADSTRGR;
  22271. char wk4[2];
  22272. union {
  22273. unsigned short WORD;
  22274. struct {
  22275. #ifdef __RX_LITTLE_ENDIAN__
  22276. unsigned short ANSB000 : 1;
  22277. unsigned short ANSB001 : 1;
  22278. unsigned short ANSB002 : 1;
  22279. unsigned short ANSB003 : 1;
  22280. unsigned short ANSB004 : 1;
  22281. unsigned short ANSB005 : 1;
  22282. unsigned short ANSB006 : 1;
  22283. unsigned short ANSB007 : 1;
  22284. unsigned short : 8;
  22285. #else
  22286. unsigned short : 8;
  22287. unsigned short ANSB007 : 1;
  22288. unsigned short ANSB006 : 1;
  22289. unsigned short ANSB005 : 1;
  22290. unsigned short ANSB004 : 1;
  22291. unsigned short ANSB003 : 1;
  22292. unsigned short ANSB002 : 1;
  22293. unsigned short ANSB001 : 1;
  22294. unsigned short ANSB000 : 1;
  22295. #endif
  22296. } BIT;
  22297. } ADANSB0;
  22298. char wk5[2];
  22299. union {
  22300. unsigned short WORD;
  22301. } ADDBLDR;
  22302. char wk6[4];
  22303. union {
  22304. unsigned short WORD;
  22305. union {
  22306. struct {
  22307. #ifdef __RX_LITTLE_ENDIAN__
  22308. unsigned short AD : 12;
  22309. unsigned short : 2;
  22310. unsigned short DIAGST : 2;
  22311. #else
  22312. unsigned short DIAGST : 2;
  22313. unsigned short : 2;
  22314. unsigned short AD : 12;
  22315. #endif
  22316. } RIGHT;
  22317. struct {
  22318. #ifdef __RX_LITTLE_ENDIAN__
  22319. unsigned short DIAGST : 2;
  22320. unsigned short : 2;
  22321. unsigned short AD : 12;
  22322. #else
  22323. unsigned short AD : 12;
  22324. unsigned short : 2;
  22325. unsigned short DIAGST : 2;
  22326. #endif
  22327. } LEFT;
  22328. } BIT;
  22329. } ADRD;
  22330. unsigned short ADDR0;
  22331. unsigned short ADDR1;
  22332. unsigned short ADDR2;
  22333. unsigned short ADDR3;
  22334. unsigned short ADDR4;
  22335. unsigned short ADDR5;
  22336. unsigned short ADDR6;
  22337. unsigned short ADDR7;
  22338. char wk7[51];
  22339. union {
  22340. unsigned char BYTE;
  22341. struct {
  22342. #ifdef __RX_LITTLE_ENDIAN__
  22343. unsigned char PRO : 2;
  22344. unsigned char : 6;
  22345. #else
  22346. unsigned char : 6;
  22347. unsigned char PRO : 2;
  22348. #endif
  22349. } BIT;
  22350. } ADSAMPR;
  22351. char wk8[2];
  22352. union {
  22353. unsigned short WORD;
  22354. struct {
  22355. #ifdef __RX_LITTLE_ENDIAN__
  22356. unsigned short SSTSH : 8;
  22357. unsigned short SHANS : 3;
  22358. unsigned short : 5;
  22359. #else
  22360. unsigned short : 5;
  22361. unsigned short SHANS : 3;
  22362. unsigned short SSTSH : 8;
  22363. #endif
  22364. } BIT;
  22365. } ADSHCR;
  22366. char wk9[6];
  22367. union {
  22368. unsigned short WORD;
  22369. struct {
  22370. #ifdef __RX_LITTLE_ENDIAN__
  22371. unsigned short : 5;
  22372. unsigned short SAM : 1;
  22373. unsigned short : 10;
  22374. #else
  22375. unsigned short : 10;
  22376. unsigned short SAM : 1;
  22377. unsigned short : 5;
  22378. #endif
  22379. } BIT;
  22380. } ADSAM;
  22381. char wk10[10];
  22382. union {
  22383. unsigned char BYTE;
  22384. struct {
  22385. #ifdef __RX_LITTLE_ENDIAN__
  22386. unsigned char ADNDIS : 5;
  22387. unsigned char : 3;
  22388. #else
  22389. unsigned char : 3;
  22390. unsigned char ADNDIS : 5;
  22391. #endif
  22392. } BIT;
  22393. } ADDISCR;
  22394. char wk11[1];
  22395. union {
  22396. unsigned char BYTE;
  22397. struct {
  22398. #ifdef __RX_LITTLE_ENDIAN__
  22399. unsigned char SHMD : 1;
  22400. unsigned char : 7;
  22401. #else
  22402. unsigned char : 7;
  22403. unsigned char SHMD : 1;
  22404. #endif
  22405. } BIT;
  22406. } ADSHMSR;
  22407. char wk12[3];
  22408. union {
  22409. unsigned short WORD;
  22410. struct {
  22411. #ifdef __RX_LITTLE_ENDIAN__
  22412. unsigned short PGS : 1;
  22413. unsigned short GBRSCN : 1;
  22414. unsigned short : 12;
  22415. unsigned short LGRRS : 1;
  22416. unsigned short GBRP : 1;
  22417. #else
  22418. unsigned short GBRP : 1;
  22419. unsigned short LGRRS : 1;
  22420. unsigned short : 12;
  22421. unsigned short GBRSCN : 1;
  22422. unsigned short PGS : 1;
  22423. #endif
  22424. } BIT;
  22425. } ADGSPCR;
  22426. char wk13[2];
  22427. unsigned short ADDBLDRA;
  22428. unsigned short ADDBLDRB;
  22429. char wk14[4];
  22430. union {
  22431. unsigned char BYTE;
  22432. struct {
  22433. #ifdef __RX_LITTLE_ENDIAN__
  22434. unsigned char MONCOMB : 1;
  22435. unsigned char : 3;
  22436. unsigned char MONCMPA : 1;
  22437. unsigned char MONCMPB : 1;
  22438. unsigned char : 2;
  22439. #else
  22440. unsigned char : 2;
  22441. unsigned char MONCMPB : 1;
  22442. unsigned char MONCMPA : 1;
  22443. unsigned char : 3;
  22444. unsigned char MONCOMB : 1;
  22445. #endif
  22446. } BIT;
  22447. } ADWINMON;
  22448. char wk15[3];
  22449. union {
  22450. unsigned short WORD;
  22451. struct {
  22452. #ifdef __RX_LITTLE_ENDIAN__
  22453. unsigned short CMPAB : 2;
  22454. unsigned short : 7;
  22455. unsigned short CMPBE : 1;
  22456. unsigned short : 1;
  22457. unsigned short CMPAE : 1;
  22458. unsigned short : 1;
  22459. unsigned short CMPBIE : 1;
  22460. unsigned short WCMPE : 1;
  22461. unsigned short CMPAIE : 1;
  22462. #else
  22463. unsigned short CMPAIE : 1;
  22464. unsigned short WCMPE : 1;
  22465. unsigned short CMPBIE : 1;
  22466. unsigned short : 1;
  22467. unsigned short CMPAE : 1;
  22468. unsigned short : 1;
  22469. unsigned short CMPBE : 1;
  22470. unsigned short : 7;
  22471. unsigned short CMPAB : 2;
  22472. #endif
  22473. } BIT;
  22474. } ADCMPCR;
  22475. char wk16[2];
  22476. union {
  22477. unsigned short WORD;
  22478. struct {
  22479. #ifdef __RX_LITTLE_ENDIAN__
  22480. unsigned short CMPCHA000 : 1;
  22481. unsigned short CMPCHA001 : 1;
  22482. unsigned short CMPCHA002 : 1;
  22483. unsigned short CMPCHA003 : 1;
  22484. unsigned short CMPCHA004 : 1;
  22485. unsigned short CMPCHA005 : 1;
  22486. unsigned short CMPCHA006 : 1;
  22487. unsigned short CMPCHA007 : 1;
  22488. unsigned short : 8;
  22489. #else
  22490. unsigned short : 8;
  22491. unsigned short CMPCHA007 : 1;
  22492. unsigned short CMPCHA006 : 1;
  22493. unsigned short CMPCHA005 : 1;
  22494. unsigned short CMPCHA004 : 1;
  22495. unsigned short CMPCHA003 : 1;
  22496. unsigned short CMPCHA002 : 1;
  22497. unsigned short CMPCHA001 : 1;
  22498. unsigned short CMPCHA000 : 1;
  22499. #endif
  22500. } BIT;
  22501. } ADCMPANSR0;
  22502. char wk17[2];
  22503. union {
  22504. unsigned short WORD;
  22505. struct {
  22506. #ifdef __RX_LITTLE_ENDIAN__
  22507. unsigned short CMPLCHA000 : 1;
  22508. unsigned short CMPLCHA001 : 1;
  22509. unsigned short CMPLCHA002 : 1;
  22510. unsigned short CMPLCHA003 : 1;
  22511. unsigned short CMPLCHA004 : 1;
  22512. unsigned short CMPLCHA005 : 1;
  22513. unsigned short CMPLCHA006 : 1;
  22514. unsigned short CMPLCHA007 : 1;
  22515. unsigned short : 8;
  22516. #else
  22517. unsigned short : 8;
  22518. unsigned short CMPLCHA007 : 1;
  22519. unsigned short CMPLCHA006 : 1;
  22520. unsigned short CMPLCHA005 : 1;
  22521. unsigned short CMPLCHA004 : 1;
  22522. unsigned short CMPLCHA003 : 1;
  22523. unsigned short CMPLCHA002 : 1;
  22524. unsigned short CMPLCHA001 : 1;
  22525. unsigned short CMPLCHA000 : 1;
  22526. #endif
  22527. } BIT;
  22528. } ADCMPLR0;
  22529. char wk18[2];
  22530. unsigned short ADCMPDR0;
  22531. unsigned short ADCMPDR1;
  22532. union {
  22533. unsigned short WORD;
  22534. struct {
  22535. #ifdef __RX_LITTLE_ENDIAN__
  22536. unsigned short CMPSTCHA000 : 1;
  22537. unsigned short CMPSTCHA001 : 1;
  22538. unsigned short CMPSTCHA002 : 1;
  22539. unsigned short CMPSTCHA003 : 1;
  22540. unsigned short CMPSTCHA004 : 1;
  22541. unsigned short CMPSTCHA005 : 1;
  22542. unsigned short CMPSTCHA006 : 1;
  22543. unsigned short CMPSTCHA007 : 1;
  22544. unsigned short : 8;
  22545. #else
  22546. unsigned short : 8;
  22547. unsigned short CMPSTCHA007 : 1;
  22548. unsigned short CMPSTCHA006 : 1;
  22549. unsigned short CMPSTCHA005 : 1;
  22550. unsigned short CMPSTCHA004 : 1;
  22551. unsigned short CMPSTCHA003 : 1;
  22552. unsigned short CMPSTCHA002 : 1;
  22553. unsigned short CMPSTCHA001 : 1;
  22554. unsigned short CMPSTCHA000 : 1;
  22555. #endif
  22556. } BIT;
  22557. } ADCMPSR0;
  22558. char wk19[4];
  22559. union {
  22560. unsigned char BYTE;
  22561. struct {
  22562. #ifdef __RX_LITTLE_ENDIAN__
  22563. unsigned char CMPCHB : 6;
  22564. unsigned char : 1;
  22565. unsigned char CMPLB : 1;
  22566. #else
  22567. unsigned char CMPLB : 1;
  22568. unsigned char : 1;
  22569. unsigned char CMPCHB : 6;
  22570. #endif
  22571. } BIT;
  22572. } ADCMPBNSR;
  22573. char wk20[1];
  22574. unsigned short ADWINLLB;
  22575. unsigned short ADWINULB;
  22576. union {
  22577. unsigned char BYTE;
  22578. struct {
  22579. #ifdef __RX_LITTLE_ENDIAN__
  22580. unsigned char CMPSTB : 1;
  22581. unsigned char : 7;
  22582. #else
  22583. unsigned char : 7;
  22584. unsigned char CMPSTB : 1;
  22585. #endif
  22586. } BIT;
  22587. } ADCMPBSR;
  22588. char wk21[39];
  22589. union {
  22590. unsigned short WORD;
  22591. struct {
  22592. #ifdef __RX_LITTLE_ENDIAN__
  22593. unsigned short ANSC000 : 1;
  22594. unsigned short ANSC001 : 1;
  22595. unsigned short ANSC002 : 1;
  22596. unsigned short ANSC003 : 1;
  22597. unsigned short ANSC004 : 1;
  22598. unsigned short ANSC005 : 1;
  22599. unsigned short ANSC006 : 1;
  22600. unsigned short ANSC007 : 1;
  22601. unsigned short : 8;
  22602. #else
  22603. unsigned short : 8;
  22604. unsigned short ANSC007 : 1;
  22605. unsigned short ANSC006 : 1;
  22606. unsigned short ANSC005 : 1;
  22607. unsigned short ANSC004 : 1;
  22608. unsigned short ANSC003 : 1;
  22609. unsigned short ANSC002 : 1;
  22610. unsigned short ANSC001 : 1;
  22611. unsigned short ANSC000 : 1;
  22612. #endif
  22613. } BIT;
  22614. } ADANSC0;
  22615. char wk22[3];
  22616. union {
  22617. unsigned char BYTE;
  22618. struct {
  22619. #ifdef __RX_LITTLE_ENDIAN__
  22620. unsigned char TRSC : 6;
  22621. unsigned char GCADIE : 1;
  22622. unsigned char GRCE : 1;
  22623. #else
  22624. unsigned char GRCE : 1;
  22625. unsigned char GCADIE : 1;
  22626. unsigned char TRSC : 6;
  22627. #endif
  22628. } BIT;
  22629. } ADGCTRGR;
  22630. char wk23[6];
  22631. unsigned char ADSSTR0;
  22632. unsigned char ADSSTR1;
  22633. unsigned char ADSSTR2;
  22634. unsigned char ADSSTR3;
  22635. unsigned char ADSSTR4;
  22636. unsigned char ADSSTR5;
  22637. unsigned char ADSSTR6;
  22638. unsigned char ADSSTR7;
  22639. } st_s12ad_t;
  22640. typedef struct st_s12ad1 {
  22641. union {
  22642. unsigned short WORD;
  22643. struct {
  22644. #ifdef __RX_LITTLE_ENDIAN__
  22645. unsigned short DBLANS : 5;
  22646. unsigned short : 1;
  22647. unsigned short GBADIE : 1;
  22648. unsigned short DBLE : 1;
  22649. unsigned short EXTRG : 1;
  22650. unsigned short TRGE : 1;
  22651. unsigned short : 2;
  22652. unsigned short ADIE : 1;
  22653. unsigned short ADCS : 2;
  22654. unsigned short ADST : 1;
  22655. #else
  22656. unsigned short ADST : 1;
  22657. unsigned short ADCS : 2;
  22658. unsigned short ADIE : 1;
  22659. unsigned short : 2;
  22660. unsigned short TRGE : 1;
  22661. unsigned short EXTRG : 1;
  22662. unsigned short DBLE : 1;
  22663. unsigned short GBADIE : 1;
  22664. unsigned short : 1;
  22665. unsigned short DBLANS : 5;
  22666. #endif
  22667. } BIT;
  22668. } ADCSR;
  22669. char wk0[2];
  22670. union {
  22671. unsigned short WORD;
  22672. struct {
  22673. #ifdef __RX_LITTLE_ENDIAN__
  22674. unsigned short ANSA000 : 1;
  22675. unsigned short ANSA001 : 1;
  22676. unsigned short ANSA002 : 1;
  22677. unsigned short ANSA003 : 1;
  22678. unsigned short ANSA004 : 1;
  22679. unsigned short ANSA005 : 1;
  22680. unsigned short ANSA006 : 1;
  22681. unsigned short ANSA007 : 1;
  22682. unsigned short ANSA008 : 1;
  22683. unsigned short ANSA009 : 1;
  22684. unsigned short ANSA010 : 1;
  22685. unsigned short ANSA011 : 1;
  22686. unsigned short ANSA012 : 1;
  22687. unsigned short ANSA013 : 1;
  22688. unsigned short ANSA014 : 1;
  22689. unsigned short ANSA015 : 1;
  22690. #else
  22691. unsigned short ANSA015 : 1;
  22692. unsigned short ANSA014 : 1;
  22693. unsigned short ANSA013 : 1;
  22694. unsigned short ANSA012 : 1;
  22695. unsigned short ANSA011 : 1;
  22696. unsigned short ANSA010 : 1;
  22697. unsigned short ANSA009 : 1;
  22698. unsigned short ANSA008 : 1;
  22699. unsigned short ANSA007 : 1;
  22700. unsigned short ANSA006 : 1;
  22701. unsigned short ANSA005 : 1;
  22702. unsigned short ANSA004 : 1;
  22703. unsigned short ANSA003 : 1;
  22704. unsigned short ANSA002 : 1;
  22705. unsigned short ANSA001 : 1;
  22706. unsigned short ANSA000 : 1;
  22707. #endif
  22708. } BIT;
  22709. } ADANSA0;
  22710. union {
  22711. unsigned short WORD;
  22712. struct {
  22713. #ifdef __RX_LITTLE_ENDIAN__
  22714. unsigned short ANSA100 : 1;
  22715. unsigned short ANSA101 : 1;
  22716. unsigned short ANSA102 : 1;
  22717. unsigned short ANSA103 : 1;
  22718. unsigned short ANSA104 : 1;
  22719. unsigned short : 11;
  22720. #else
  22721. unsigned short : 11;
  22722. unsigned short ANSA104 : 1;
  22723. unsigned short ANSA103 : 1;
  22724. unsigned short ANSA102 : 1;
  22725. unsigned short ANSA101 : 1;
  22726. unsigned short ANSA100 : 1;
  22727. #endif
  22728. } BIT;
  22729. } ADANSA1;
  22730. union {
  22731. unsigned short WORD;
  22732. struct {
  22733. #ifdef __RX_LITTLE_ENDIAN__
  22734. unsigned short ADS000 : 1;
  22735. unsigned short ADS001 : 1;
  22736. unsigned short ADS002 : 1;
  22737. unsigned short ADS003 : 1;
  22738. unsigned short ADS004 : 1;
  22739. unsigned short ADS005 : 1;
  22740. unsigned short ADS006 : 1;
  22741. unsigned short ADS007 : 1;
  22742. unsigned short ADS008 : 1;
  22743. unsigned short ADS009 : 1;
  22744. unsigned short ADS010 : 1;
  22745. unsigned short ADS011 : 1;
  22746. unsigned short ADS012 : 1;
  22747. unsigned short ADS013 : 1;
  22748. unsigned short ADS014 : 1;
  22749. unsigned short ADS015 : 1;
  22750. #else
  22751. unsigned short ADS015 : 1;
  22752. unsigned short ADS014 : 1;
  22753. unsigned short ADS013 : 1;
  22754. unsigned short ADS012 : 1;
  22755. unsigned short ADS011 : 1;
  22756. unsigned short ADS010 : 1;
  22757. unsigned short ADS009 : 1;
  22758. unsigned short ADS008 : 1;
  22759. unsigned short ADS007 : 1;
  22760. unsigned short ADS006 : 1;
  22761. unsigned short ADS005 : 1;
  22762. unsigned short ADS004 : 1;
  22763. unsigned short ADS003 : 1;
  22764. unsigned short ADS002 : 1;
  22765. unsigned short ADS001 : 1;
  22766. unsigned short ADS000 : 1;
  22767. #endif
  22768. } BIT;
  22769. } ADADS0;
  22770. union {
  22771. unsigned short WORD;
  22772. struct {
  22773. #ifdef __RX_LITTLE_ENDIAN__
  22774. unsigned short ADS100 : 1;
  22775. unsigned short ADS101 : 1;
  22776. unsigned short ADS102 : 1;
  22777. unsigned short ADS103 : 1;
  22778. unsigned short ADS104 : 1;
  22779. unsigned short : 11;
  22780. #else
  22781. unsigned short : 11;
  22782. unsigned short ADS104 : 1;
  22783. unsigned short ADS103 : 1;
  22784. unsigned short ADS102 : 1;
  22785. unsigned short ADS101 : 1;
  22786. unsigned short ADS100 : 1;
  22787. #endif
  22788. } BIT;
  22789. } ADADS1;
  22790. union {
  22791. unsigned char BYTE;
  22792. struct {
  22793. #ifdef __RX_LITTLE_ENDIAN__
  22794. unsigned char ADC : 3;
  22795. unsigned char : 4;
  22796. unsigned char AVEE : 1;
  22797. #else
  22798. unsigned char AVEE : 1;
  22799. unsigned char : 4;
  22800. unsigned char ADC : 3;
  22801. #endif
  22802. } BIT;
  22803. } ADADC;
  22804. char wk1[1];
  22805. union {
  22806. unsigned short WORD;
  22807. struct {
  22808. #ifdef __RX_LITTLE_ENDIAN__
  22809. unsigned short : 1;
  22810. unsigned short ADPRC : 2;
  22811. unsigned short : 2;
  22812. unsigned short ACE : 1;
  22813. unsigned short : 2;
  22814. unsigned short DIAGVAL : 2;
  22815. unsigned short DIAGLD : 1;
  22816. unsigned short DIAGM : 1;
  22817. unsigned short : 3;
  22818. unsigned short ADRFMT : 1;
  22819. #else
  22820. unsigned short ADRFMT : 1;
  22821. unsigned short : 3;
  22822. unsigned short DIAGM : 1;
  22823. unsigned short DIAGLD : 1;
  22824. unsigned short DIAGVAL : 2;
  22825. unsigned short : 2;
  22826. unsigned short ACE : 1;
  22827. unsigned short : 2;
  22828. unsigned short ADPRC : 2;
  22829. unsigned short : 1;
  22830. #endif
  22831. } BIT;
  22832. } ADCER;
  22833. union {
  22834. unsigned short WORD;
  22835. struct {
  22836. #ifdef __RX_LITTLE_ENDIAN__
  22837. unsigned short TRSB : 6;
  22838. unsigned short : 2;
  22839. unsigned short TRSA : 6;
  22840. unsigned short : 2;
  22841. #else
  22842. unsigned short : 2;
  22843. unsigned short TRSA : 6;
  22844. unsigned short : 2;
  22845. unsigned short TRSB : 6;
  22846. #endif
  22847. } BIT;
  22848. } ADSTRGR;
  22849. union {
  22850. unsigned short WORD;
  22851. struct {
  22852. #ifdef __RX_LITTLE_ENDIAN__
  22853. unsigned short TSSAD : 1;
  22854. unsigned short OCSAD : 1;
  22855. unsigned short : 6;
  22856. unsigned short TSSA : 1;
  22857. unsigned short OCSA : 1;
  22858. unsigned short TSSB : 1;
  22859. unsigned short OCSB : 1;
  22860. unsigned short : 1;
  22861. unsigned short EXSEL : 2;
  22862. unsigned short EXOEN : 1;
  22863. #else
  22864. unsigned short EXOEN : 1;
  22865. unsigned short EXSEL : 2;
  22866. unsigned short : 1;
  22867. unsigned short OCSB : 1;
  22868. unsigned short TSSB : 1;
  22869. unsigned short OCSA : 1;
  22870. unsigned short TSSA : 1;
  22871. unsigned short : 6;
  22872. unsigned short OCSAD : 1;
  22873. unsigned short TSSAD : 1;
  22874. #endif
  22875. } BIT;
  22876. } ADEXICR;
  22877. union {
  22878. unsigned short WORD;
  22879. struct {
  22880. #ifdef __RX_LITTLE_ENDIAN__
  22881. unsigned short ANSB000 : 1;
  22882. unsigned short ANSB001 : 1;
  22883. unsigned short ANSB002 : 1;
  22884. unsigned short ANSB003 : 1;
  22885. unsigned short ANSB004 : 1;
  22886. unsigned short ANSB005 : 1;
  22887. unsigned short ANSB006 : 1;
  22888. unsigned short ANSB007 : 1;
  22889. unsigned short ANSB008 : 1;
  22890. unsigned short ANSB009 : 1;
  22891. unsigned short ANSB010 : 1;
  22892. unsigned short ANSB011 : 1;
  22893. unsigned short ANSB012 : 1;
  22894. unsigned short ANSB013 : 1;
  22895. unsigned short ANSB014 : 1;
  22896. unsigned short ANSB015 : 1;
  22897. #else
  22898. unsigned short ANSB015 : 1;
  22899. unsigned short ANSB014 : 1;
  22900. unsigned short ANSB013 : 1;
  22901. unsigned short ANSB012 : 1;
  22902. unsigned short ANSB011 : 1;
  22903. unsigned short ANSB010 : 1;
  22904. unsigned short ANSB009 : 1;
  22905. unsigned short ANSB008 : 1;
  22906. unsigned short ANSB007 : 1;
  22907. unsigned short ANSB006 : 1;
  22908. unsigned short ANSB005 : 1;
  22909. unsigned short ANSB004 : 1;
  22910. unsigned short ANSB003 : 1;
  22911. unsigned short ANSB002 : 1;
  22912. unsigned short ANSB001 : 1;
  22913. unsigned short ANSB000 : 1;
  22914. #endif
  22915. } BIT;
  22916. } ADANSB0;
  22917. union {
  22918. unsigned short WORD;
  22919. struct {
  22920. #ifdef __RX_LITTLE_ENDIAN__
  22921. unsigned short ANSB100 : 1;
  22922. unsigned short ANSB101 : 1;
  22923. unsigned short ANSB102 : 1;
  22924. unsigned short ANSB103 : 1;
  22925. unsigned short ANSB104 : 1;
  22926. unsigned short : 11;
  22927. #else
  22928. unsigned short : 11;
  22929. unsigned short ANSB104 : 1;
  22930. unsigned short ANSB103 : 1;
  22931. unsigned short ANSB102 : 1;
  22932. unsigned short ANSB101 : 1;
  22933. unsigned short ANSB100 : 1;
  22934. #endif
  22935. } BIT;
  22936. } ADANSB1;
  22937. unsigned short ADDBLDR;
  22938. unsigned short ADTSDR;
  22939. unsigned short ADOCDR;
  22940. union {
  22941. unsigned short WORD;
  22942. union {
  22943. struct {
  22944. #ifdef __RX_LITTLE_ENDIAN__
  22945. unsigned short AD : 12;
  22946. unsigned short : 2;
  22947. unsigned short DIAGST : 2;
  22948. #else
  22949. unsigned short DIAGST : 2;
  22950. unsigned short : 2;
  22951. unsigned short AD : 12;
  22952. #endif
  22953. } RIGHT;
  22954. struct {
  22955. #ifdef __RX_LITTLE_ENDIAN__
  22956. unsigned short DIAGST : 2;
  22957. unsigned short : 2;
  22958. unsigned short AD : 12;
  22959. #else
  22960. unsigned short AD : 12;
  22961. unsigned short : 2;
  22962. unsigned short DIAGST : 2;
  22963. #endif
  22964. } LEFT;
  22965. } BIT;
  22966. } ADRD;
  22967. unsigned short ADDR0;
  22968. unsigned short ADDR1;
  22969. unsigned short ADDR2;
  22970. unsigned short ADDR3;
  22971. unsigned short ADDR4;
  22972. unsigned short ADDR5;
  22973. unsigned short ADDR6;
  22974. unsigned short ADDR7;
  22975. unsigned short ADDR8;
  22976. unsigned short ADDR9;
  22977. unsigned short ADDR10;
  22978. unsigned short ADDR11;
  22979. unsigned short ADDR12;
  22980. unsigned short ADDR13;
  22981. unsigned short ADDR14;
  22982. unsigned short ADDR15;
  22983. unsigned short ADDR16;
  22984. unsigned short ADDR17;
  22985. unsigned short ADDR18;
  22986. unsigned short ADDR19;
  22987. unsigned short ADDR20;
  22988. char wk2[25];
  22989. union {
  22990. unsigned char BYTE;
  22991. struct {
  22992. #ifdef __RX_LITTLE_ENDIAN__
  22993. unsigned char PRO : 2;
  22994. unsigned char : 6;
  22995. #else
  22996. unsigned char : 6;
  22997. unsigned char PRO : 2;
  22998. #endif
  22999. } BIT;
  23000. } ADSAMPR;
  23001. char wk3[10];
  23002. union {
  23003. unsigned short WORD;
  23004. struct {
  23005. #ifdef __RX_LITTLE_ENDIAN__
  23006. unsigned short : 5;
  23007. unsigned short SAM : 1;
  23008. unsigned short : 10;
  23009. #else
  23010. unsigned short : 10;
  23011. unsigned short SAM : 1;
  23012. unsigned short : 5;
  23013. #endif
  23014. } BIT;
  23015. } ADSAM;
  23016. char wk4[10];
  23017. union {
  23018. unsigned char BYTE;
  23019. struct {
  23020. #ifdef __RX_LITTLE_ENDIAN__
  23021. unsigned char ADNDIS : 5;
  23022. unsigned char : 3;
  23023. #else
  23024. unsigned char : 3;
  23025. unsigned char ADNDIS : 5;
  23026. #endif
  23027. } BIT;
  23028. } ADDISCR;
  23029. char wk5[5];
  23030. union {
  23031. unsigned short WORD;
  23032. struct {
  23033. #ifdef __RX_LITTLE_ENDIAN__
  23034. unsigned short PGS : 1;
  23035. unsigned short GBRSCN : 1;
  23036. unsigned short : 12;
  23037. unsigned short LGRRS : 1;
  23038. unsigned short GBRP : 1;
  23039. #else
  23040. unsigned short GBRP : 1;
  23041. unsigned short LGRRS : 1;
  23042. unsigned short : 12;
  23043. unsigned short GBRSCN : 1;
  23044. unsigned short PGS : 1;
  23045. #endif
  23046. } BIT;
  23047. } ADGSPCR;
  23048. char wk6[2];
  23049. unsigned short ADDBLDRA;
  23050. unsigned short ADDBLDRB;
  23051. char wk7[4];
  23052. union {
  23053. unsigned char BYTE;
  23054. struct {
  23055. #ifdef __RX_LITTLE_ENDIAN__
  23056. unsigned char MONCOMB : 1;
  23057. unsigned char : 3;
  23058. unsigned char MONCMPA : 1;
  23059. unsigned char MONCMPB : 1;
  23060. unsigned char : 2;
  23061. #else
  23062. unsigned char : 2;
  23063. unsigned char MONCMPB : 1;
  23064. unsigned char MONCMPA : 1;
  23065. unsigned char : 3;
  23066. unsigned char MONCOMB : 1;
  23067. #endif
  23068. } BIT;
  23069. } ADWINMON;
  23070. char wk8[3];
  23071. union {
  23072. unsigned short WORD;
  23073. struct {
  23074. #ifdef __RX_LITTLE_ENDIAN__
  23075. unsigned short CMPAB : 2;
  23076. unsigned short : 7;
  23077. unsigned short CMPBE : 1;
  23078. unsigned short : 1;
  23079. unsigned short CMPAE : 1;
  23080. unsigned short : 1;
  23081. unsigned short CMPBIE : 1;
  23082. unsigned short WCMPE : 1;
  23083. unsigned short CMPAIE : 1;
  23084. #else
  23085. unsigned short CMPAIE : 1;
  23086. unsigned short WCMPE : 1;
  23087. unsigned short CMPBIE : 1;
  23088. unsigned short : 1;
  23089. unsigned short CMPAE : 1;
  23090. unsigned short : 1;
  23091. unsigned short CMPBE : 1;
  23092. unsigned short : 7;
  23093. unsigned short CMPAB : 2;
  23094. #endif
  23095. } BIT;
  23096. } ADCMPCR;
  23097. union {
  23098. unsigned char BYTE;
  23099. struct {
  23100. #ifdef __RX_LITTLE_ENDIAN__
  23101. unsigned char CMPSTS : 1;
  23102. unsigned char CMPSOC : 1;
  23103. unsigned char : 6;
  23104. #else
  23105. unsigned char : 6;
  23106. unsigned char CMPSOC : 1;
  23107. unsigned char CMPSTS : 1;
  23108. #endif
  23109. } BIT;
  23110. } ADCMPANSER;
  23111. union {
  23112. unsigned char BYTE;
  23113. struct {
  23114. #ifdef __RX_LITTLE_ENDIAN__
  23115. unsigned char CMPLTS : 1;
  23116. unsigned char CMPLOC : 1;
  23117. unsigned char : 6;
  23118. #else
  23119. unsigned char : 6;
  23120. unsigned char CMPLOC : 1;
  23121. unsigned char CMPLTS : 1;
  23122. #endif
  23123. } BIT;
  23124. } ADCMPLER;
  23125. union {
  23126. unsigned short WORD;
  23127. struct {
  23128. #ifdef __RX_LITTLE_ENDIAN__
  23129. unsigned short CMPCHA000 : 1;
  23130. unsigned short CMPCHA001 : 1;
  23131. unsigned short CMPCHA002 : 1;
  23132. unsigned short CMPCHA003 : 1;
  23133. unsigned short CMPCHA004 : 1;
  23134. unsigned short CMPCHA005 : 1;
  23135. unsigned short CMPCHA006 : 1;
  23136. unsigned short CMPCHA007 : 1;
  23137. unsigned short CMPCHA008 : 1;
  23138. unsigned short CMPCHA009 : 1;
  23139. unsigned short CMPCHA010 : 1;
  23140. unsigned short CMPCHA011 : 1;
  23141. unsigned short CMPCHA012 : 1;
  23142. unsigned short CMPCHA013 : 1;
  23143. unsigned short CMPCHA014 : 1;
  23144. unsigned short CMPCHA015 : 1;
  23145. #else
  23146. unsigned short CMPCHA015 : 1;
  23147. unsigned short CMPCHA014 : 1;
  23148. unsigned short CMPCHA013 : 1;
  23149. unsigned short CMPCHA012 : 1;
  23150. unsigned short CMPCHA011 : 1;
  23151. unsigned short CMPCHA010 : 1;
  23152. unsigned short CMPCHA009 : 1;
  23153. unsigned short CMPCHA008 : 1;
  23154. unsigned short CMPCHA007 : 1;
  23155. unsigned short CMPCHA006 : 1;
  23156. unsigned short CMPCHA005 : 1;
  23157. unsigned short CMPCHA004 : 1;
  23158. unsigned short CMPCHA003 : 1;
  23159. unsigned short CMPCHA002 : 1;
  23160. unsigned short CMPCHA001 : 1;
  23161. unsigned short CMPCHA000 : 1;
  23162. #endif
  23163. } BIT;
  23164. } ADCMPANSR0;
  23165. union {
  23166. unsigned short WORD;
  23167. struct {
  23168. #ifdef __RX_LITTLE_ENDIAN__
  23169. unsigned short CMPCHA100 : 1;
  23170. unsigned short CMPCHA101 : 1;
  23171. unsigned short CMPCHA102 : 1;
  23172. unsigned short CMPCHA103 : 1;
  23173. unsigned short CMPCHA104 : 1;
  23174. unsigned short : 11;
  23175. #else
  23176. unsigned short : 11;
  23177. unsigned short CMPCHA104 : 1;
  23178. unsigned short CMPCHA103 : 1;
  23179. unsigned short CMPCHA102 : 1;
  23180. unsigned short CMPCHA101 : 1;
  23181. unsigned short CMPCHA100 : 1;
  23182. #endif
  23183. } BIT;
  23184. } ADCMPANSR1;
  23185. union {
  23186. unsigned short WORD;
  23187. struct {
  23188. #ifdef __RX_LITTLE_ENDIAN__
  23189. unsigned short CMPLCHA000 : 1;
  23190. unsigned short CMPLCHA001 : 1;
  23191. unsigned short CMPLCHA002 : 1;
  23192. unsigned short CMPLCHA003 : 1;
  23193. unsigned short CMPLCHA004 : 1;
  23194. unsigned short CMPLCHA005 : 1;
  23195. unsigned short CMPLCHA006 : 1;
  23196. unsigned short CMPLCHA007 : 1;
  23197. unsigned short CMPLCHA008 : 1;
  23198. unsigned short CMPLCHA009 : 1;
  23199. unsigned short CMPLCHA010 : 1;
  23200. unsigned short CMPLCHA011 : 1;
  23201. unsigned short CMPLCHA012 : 1;
  23202. unsigned short CMPLCHA013 : 1;
  23203. unsigned short CMPLCHA014 : 1;
  23204. unsigned short CMPLCHA015 : 1;
  23205. #else
  23206. unsigned short CMPLCHA015 : 1;
  23207. unsigned short CMPLCHA014 : 1;
  23208. unsigned short CMPLCHA013 : 1;
  23209. unsigned short CMPLCHA012 : 1;
  23210. unsigned short CMPLCHA011 : 1;
  23211. unsigned short CMPLCHA010 : 1;
  23212. unsigned short CMPLCHA009 : 1;
  23213. unsigned short CMPLCHA008 : 1;
  23214. unsigned short CMPLCHA007 : 1;
  23215. unsigned short CMPLCHA006 : 1;
  23216. unsigned short CMPLCHA005 : 1;
  23217. unsigned short CMPLCHA004 : 1;
  23218. unsigned short CMPLCHA003 : 1;
  23219. unsigned short CMPLCHA002 : 1;
  23220. unsigned short CMPLCHA001 : 1;
  23221. unsigned short CMPLCHA000 : 1;
  23222. #endif
  23223. } BIT;
  23224. } ADCMPLR0;
  23225. union {
  23226. unsigned short WORD;
  23227. struct {
  23228. #ifdef __RX_LITTLE_ENDIAN__
  23229. unsigned short CMPLCHA100 : 1;
  23230. unsigned short CMPLCHA101 : 1;
  23231. unsigned short CMPLCHA102 : 1;
  23232. unsigned short CMPLCHA103 : 1;
  23233. unsigned short CMPLCHA104 : 1;
  23234. unsigned short : 11;
  23235. #else
  23236. unsigned short : 11;
  23237. unsigned short CMPLCHA104 : 1;
  23238. unsigned short CMPLCHA103 : 1;
  23239. unsigned short CMPLCHA102 : 1;
  23240. unsigned short CMPLCHA101 : 1;
  23241. unsigned short CMPLCHA100 : 1;
  23242. #endif
  23243. } BIT;
  23244. } ADCMPLR1;
  23245. unsigned short ADCMPDR0;
  23246. unsigned short ADCMPDR1;
  23247. union {
  23248. unsigned short WORD;
  23249. struct {
  23250. #ifdef __RX_LITTLE_ENDIAN__
  23251. unsigned short CMPSTCHA000 : 1;
  23252. unsigned short CMPSTCHA001 : 1;
  23253. unsigned short CMPSTCHA002 : 1;
  23254. unsigned short CMPSTCHA003 : 1;
  23255. unsigned short CMPSTCHA004 : 1;
  23256. unsigned short CMPSTCHA005 : 1;
  23257. unsigned short CMPSTCHA006 : 1;
  23258. unsigned short CMPSTCHA007 : 1;
  23259. unsigned short CMPSTCHA008 : 1;
  23260. unsigned short CMPSTCHA009 : 1;
  23261. unsigned short CMPSTCHA010 : 1;
  23262. unsigned short CMPSTCHA011 : 1;
  23263. unsigned short CMPSTCHA012 : 1;
  23264. unsigned short CMPSTCHA013 : 1;
  23265. unsigned short CMPSTCHA014 : 1;
  23266. unsigned short CMPSTCHA015 : 1;
  23267. #else
  23268. unsigned short CMPSTCHA015 : 1;
  23269. unsigned short CMPSTCHA014 : 1;
  23270. unsigned short CMPSTCHA013 : 1;
  23271. unsigned short CMPSTCHA012 : 1;
  23272. unsigned short CMPSTCHA011 : 1;
  23273. unsigned short CMPSTCHA010 : 1;
  23274. unsigned short CMPSTCHA009 : 1;
  23275. unsigned short CMPSTCHA008 : 1;
  23276. unsigned short CMPSTCHA007 : 1;
  23277. unsigned short CMPSTCHA006 : 1;
  23278. unsigned short CMPSTCHA005 : 1;
  23279. unsigned short CMPSTCHA004 : 1;
  23280. unsigned short CMPSTCHA003 : 1;
  23281. unsigned short CMPSTCHA002 : 1;
  23282. unsigned short CMPSTCHA001 : 1;
  23283. unsigned short CMPSTCHA000 : 1;
  23284. #endif
  23285. } BIT;
  23286. } ADCMPSR0;
  23287. union {
  23288. unsigned short WORD;
  23289. struct {
  23290. #ifdef __RX_LITTLE_ENDIAN__
  23291. unsigned short CMPSTCHA100 : 1;
  23292. unsigned short CMPSTCHA101 : 1;
  23293. unsigned short CMPSTCHA102 : 1;
  23294. unsigned short CMPSTCHA103 : 1;
  23295. unsigned short CMPSTCHA104 : 1;
  23296. unsigned short : 11;
  23297. #else
  23298. unsigned short : 11;
  23299. unsigned short CMPSTCHA104 : 1;
  23300. unsigned short CMPSTCHA103 : 1;
  23301. unsigned short CMPSTCHA102 : 1;
  23302. unsigned short CMPSTCHA101 : 1;
  23303. unsigned short CMPSTCHA100 : 1;
  23304. #endif
  23305. } BIT;
  23306. } ADCMPSR1;
  23307. union {
  23308. unsigned char BYTE;
  23309. struct {
  23310. #ifdef __RX_LITTLE_ENDIAN__
  23311. unsigned char CMPFTS : 1;
  23312. unsigned char CMPFOC : 1;
  23313. unsigned char : 6;
  23314. #else
  23315. unsigned char : 6;
  23316. unsigned char CMPFOC : 1;
  23317. unsigned char CMPFTS : 1;
  23318. #endif
  23319. } BIT;
  23320. } ADCMPSER;
  23321. char wk9[1];
  23322. union {
  23323. unsigned char BYTE;
  23324. struct {
  23325. #ifdef __RX_LITTLE_ENDIAN__
  23326. unsigned char CMPCHB : 6;
  23327. unsigned char : 1;
  23328. unsigned char CMPLB : 1;
  23329. #else
  23330. unsigned char CMPLB : 1;
  23331. unsigned char : 1;
  23332. unsigned char CMPCHB : 6;
  23333. #endif
  23334. } BIT;
  23335. } ADCMPBNSR;
  23336. char wk10[1];
  23337. unsigned short ADWINLLB;
  23338. unsigned short ADWINULB;
  23339. union {
  23340. unsigned char BYTE;
  23341. struct {
  23342. #ifdef __RX_LITTLE_ENDIAN__
  23343. unsigned char CMPSTB : 1;
  23344. unsigned char : 7;
  23345. #else
  23346. unsigned char : 7;
  23347. unsigned char CMPSTB : 1;
  23348. #endif
  23349. } BIT;
  23350. } ADCMPBSR;
  23351. char wk11[39];
  23352. union {
  23353. unsigned short WORD;
  23354. struct {
  23355. #ifdef __RX_LITTLE_ENDIAN__
  23356. unsigned short ANSC000 : 1;
  23357. unsigned short ANSC001 : 1;
  23358. unsigned short ANSC002 : 1;
  23359. unsigned short ANSC003 : 1;
  23360. unsigned short ANSC004 : 1;
  23361. unsigned short ANSC005 : 1;
  23362. unsigned short ANSC006 : 1;
  23363. unsigned short ANSC007 : 1;
  23364. unsigned short ANSC008 : 1;
  23365. unsigned short ANSC009 : 1;
  23366. unsigned short ANSC010 : 1;
  23367. unsigned short ANSC011 : 1;
  23368. unsigned short ANSC012 : 1;
  23369. unsigned short ANSC013 : 1;
  23370. unsigned short ANSC014 : 1;
  23371. unsigned short ANSC015 : 1;
  23372. #else
  23373. unsigned short ANSC015 : 1;
  23374. unsigned short ANSC014 : 1;
  23375. unsigned short ANSC013 : 1;
  23376. unsigned short ANSC012 : 1;
  23377. unsigned short ANSC011 : 1;
  23378. unsigned short ANSC010 : 1;
  23379. unsigned short ANSC009 : 1;
  23380. unsigned short ANSC008 : 1;
  23381. unsigned short ANSC007 : 1;
  23382. unsigned short ANSC006 : 1;
  23383. unsigned short ANSC005 : 1;
  23384. unsigned short ANSC004 : 1;
  23385. unsigned short ANSC003 : 1;
  23386. unsigned short ANSC002 : 1;
  23387. unsigned short ANSC001 : 1;
  23388. unsigned short ANSC000 : 1;
  23389. #endif
  23390. } BIT;
  23391. } ADANSC0;
  23392. union {
  23393. unsigned short WORD;
  23394. struct {
  23395. #ifdef __RX_LITTLE_ENDIAN__
  23396. unsigned short ANSC100 : 1;
  23397. unsigned short ANSC101 : 1;
  23398. unsigned short ANSC102 : 1;
  23399. unsigned short ANSC103 : 1;
  23400. unsigned short ANSC104 : 1;
  23401. unsigned short : 11;
  23402. #else
  23403. unsigned short : 11;
  23404. unsigned short ANSC104 : 1;
  23405. unsigned short ANSC103 : 1;
  23406. unsigned short ANSC102 : 1;
  23407. unsigned short ANSC101 : 1;
  23408. unsigned short ANSC100 : 1;
  23409. #endif
  23410. } BIT;
  23411. } ADANSC1;
  23412. union {
  23413. unsigned char BYTE;
  23414. struct {
  23415. #ifdef __RX_LITTLE_ENDIAN__
  23416. unsigned char TSSC : 1;
  23417. unsigned char OCSC : 1;
  23418. unsigned char : 6;
  23419. #else
  23420. unsigned char : 6;
  23421. unsigned char OCSC : 1;
  23422. unsigned char TSSC : 1;
  23423. #endif
  23424. } BIT;
  23425. } ADGCEXCR;
  23426. union {
  23427. unsigned char BYTE;
  23428. struct {
  23429. #ifdef __RX_LITTLE_ENDIAN__
  23430. unsigned char TRSC : 6;
  23431. unsigned char GCADIE : 1;
  23432. unsigned char GRCE : 1;
  23433. #else
  23434. unsigned char GRCE : 1;
  23435. unsigned char GCADIE : 1;
  23436. unsigned char TRSC : 6;
  23437. #endif
  23438. } BIT;
  23439. } ADGCTRGR;
  23440. char wk12[3];
  23441. unsigned char ADSSTRL;
  23442. unsigned char ADSSTRT;
  23443. unsigned char ADSSTRO;
  23444. unsigned char ADSSTR0;
  23445. unsigned char ADSSTR1;
  23446. unsigned char ADSSTR2;
  23447. unsigned char ADSSTR3;
  23448. unsigned char ADSSTR4;
  23449. unsigned char ADSSTR5;
  23450. unsigned char ADSSTR6;
  23451. unsigned char ADSSTR7;
  23452. unsigned char ADSSTR8;
  23453. unsigned char ADSSTR9;
  23454. unsigned char ADSSTR10;
  23455. unsigned char ADSSTR11;
  23456. unsigned char ADSSTR12;
  23457. unsigned char ADSSTR13;
  23458. unsigned char ADSSTR14;
  23459. unsigned char ADSSTR15;
  23460. } st_s12ad1_t;
  23461. typedef struct st_sci0 {
  23462. union {
  23463. unsigned char BYTE;
  23464. struct {
  23465. #ifdef __RX_LITTLE_ENDIAN__
  23466. unsigned char CKS : 2;
  23467. unsigned char MP : 1;
  23468. unsigned char STOP : 1;
  23469. unsigned char PM : 1;
  23470. unsigned char PE : 1;
  23471. unsigned char CHR : 1;
  23472. unsigned char CM : 1;
  23473. #else
  23474. unsigned char CM : 1;
  23475. unsigned char CHR : 1;
  23476. unsigned char PE : 1;
  23477. unsigned char PM : 1;
  23478. unsigned char STOP : 1;
  23479. unsigned char MP : 1;
  23480. unsigned char CKS : 2;
  23481. #endif
  23482. } BIT;
  23483. } SMR;
  23484. unsigned char BRR;
  23485. union {
  23486. unsigned char BYTE;
  23487. struct {
  23488. #ifdef __RX_LITTLE_ENDIAN__
  23489. unsigned char CKE : 2;
  23490. unsigned char TEIE : 1;
  23491. unsigned char MPIE : 1;
  23492. unsigned char RE : 1;
  23493. unsigned char TE : 1;
  23494. unsigned char RIE : 1;
  23495. unsigned char TIE : 1;
  23496. #else
  23497. unsigned char TIE : 1;
  23498. unsigned char RIE : 1;
  23499. unsigned char TE : 1;
  23500. unsigned char RE : 1;
  23501. unsigned char MPIE : 1;
  23502. unsigned char TEIE : 1;
  23503. unsigned char CKE : 2;
  23504. #endif
  23505. } BIT;
  23506. } SCR;
  23507. unsigned char TDR;
  23508. union {
  23509. unsigned char BYTE;
  23510. struct {
  23511. #ifdef __RX_LITTLE_ENDIAN__
  23512. unsigned char MPBT : 1;
  23513. unsigned char MPB : 1;
  23514. unsigned char TEND : 1;
  23515. unsigned char PER : 1;
  23516. unsigned char FER : 1;
  23517. unsigned char ORER : 1;
  23518. unsigned char RDRF : 1;
  23519. unsigned char TDRE : 1;
  23520. #else
  23521. unsigned char TDRE : 1;
  23522. unsigned char RDRF : 1;
  23523. unsigned char ORER : 1;
  23524. unsigned char FER : 1;
  23525. unsigned char PER : 1;
  23526. unsigned char TEND : 1;
  23527. unsigned char MPB : 1;
  23528. unsigned char MPBT : 1;
  23529. #endif
  23530. } BIT;
  23531. } SSR;
  23532. unsigned char RDR;
  23533. union {
  23534. unsigned char BYTE;
  23535. struct {
  23536. #ifdef __RX_LITTLE_ENDIAN__
  23537. unsigned char SMIF : 1;
  23538. unsigned char : 1;
  23539. unsigned char SINV : 1;
  23540. unsigned char SDIR : 1;
  23541. unsigned char CHR1 : 1;
  23542. unsigned char : 2;
  23543. unsigned char BCP2 : 1;
  23544. #else
  23545. unsigned char BCP2 : 1;
  23546. unsigned char : 2;
  23547. unsigned char CHR1 : 1;
  23548. unsigned char SDIR : 1;
  23549. unsigned char SINV : 1;
  23550. unsigned char : 1;
  23551. unsigned char SMIF : 1;
  23552. #endif
  23553. } BIT;
  23554. } SCMR;
  23555. union {
  23556. unsigned char BYTE;
  23557. struct {
  23558. #ifdef __RX_LITTLE_ENDIAN__
  23559. unsigned char ACS0 : 1;
  23560. unsigned char : 1;
  23561. unsigned char BRME : 1;
  23562. unsigned char : 1;
  23563. unsigned char ABCS : 1;
  23564. unsigned char NFEN : 1;
  23565. unsigned char BGDM : 1;
  23566. unsigned char RXDESEL : 1;
  23567. #else
  23568. unsigned char RXDESEL : 1;
  23569. unsigned char BGDM : 1;
  23570. unsigned char NFEN : 1;
  23571. unsigned char ABCS : 1;
  23572. unsigned char : 1;
  23573. unsigned char BRME : 1;
  23574. unsigned char : 1;
  23575. unsigned char ACS0 : 1;
  23576. #endif
  23577. } BIT;
  23578. } SEMR;
  23579. union {
  23580. unsigned char BYTE;
  23581. struct {
  23582. #ifdef __RX_LITTLE_ENDIAN__
  23583. unsigned char NFCS : 3;
  23584. unsigned char : 5;
  23585. #else
  23586. unsigned char : 5;
  23587. unsigned char NFCS : 3;
  23588. #endif
  23589. } BIT;
  23590. } SNFR;
  23591. union {
  23592. unsigned char BYTE;
  23593. struct {
  23594. #ifdef __RX_LITTLE_ENDIAN__
  23595. unsigned char IICM : 1;
  23596. unsigned char : 2;
  23597. unsigned char IICDL : 5;
  23598. #else
  23599. unsigned char IICDL : 5;
  23600. unsigned char : 2;
  23601. unsigned char IICM : 1;
  23602. #endif
  23603. } BIT;
  23604. } SIMR1;
  23605. union {
  23606. unsigned char BYTE;
  23607. struct {
  23608. #ifdef __RX_LITTLE_ENDIAN__
  23609. unsigned char IICINTM : 1;
  23610. unsigned char IICCSC : 1;
  23611. unsigned char : 3;
  23612. unsigned char IICACKT : 1;
  23613. unsigned char : 2;
  23614. #else
  23615. unsigned char : 2;
  23616. unsigned char IICACKT : 1;
  23617. unsigned char : 3;
  23618. unsigned char IICCSC : 1;
  23619. unsigned char IICINTM : 1;
  23620. #endif
  23621. } BIT;
  23622. } SIMR2;
  23623. union {
  23624. unsigned char BYTE;
  23625. struct {
  23626. #ifdef __RX_LITTLE_ENDIAN__
  23627. unsigned char IICSTAREQ : 1;
  23628. unsigned char IICRSTAREQ : 1;
  23629. unsigned char IICSTPREQ : 1;
  23630. unsigned char IICSTIF : 1;
  23631. unsigned char IICSDAS : 2;
  23632. unsigned char IICSCLS : 2;
  23633. #else
  23634. unsigned char IICSCLS : 2;
  23635. unsigned char IICSDAS : 2;
  23636. unsigned char IICSTIF : 1;
  23637. unsigned char IICSTPREQ : 1;
  23638. unsigned char IICRSTAREQ : 1;
  23639. unsigned char IICSTAREQ : 1;
  23640. #endif
  23641. } BIT;
  23642. } SIMR3;
  23643. union {
  23644. unsigned char BYTE;
  23645. struct {
  23646. #ifdef __RX_LITTLE_ENDIAN__
  23647. unsigned char IICACKR : 1;
  23648. unsigned char : 7;
  23649. #else
  23650. unsigned char : 7;
  23651. unsigned char IICACKR : 1;
  23652. #endif
  23653. } BIT;
  23654. } SISR;
  23655. union {
  23656. unsigned char BYTE;
  23657. struct {
  23658. #ifdef __RX_LITTLE_ENDIAN__
  23659. unsigned char SSE : 1;
  23660. unsigned char CTSE : 1;
  23661. unsigned char MSS : 1;
  23662. unsigned char : 1;
  23663. unsigned char MFF : 1;
  23664. unsigned char : 1;
  23665. unsigned char CKPOL : 1;
  23666. unsigned char CKPH : 1;
  23667. #else
  23668. unsigned char CKPH : 1;
  23669. unsigned char CKPOL : 1;
  23670. unsigned char : 1;
  23671. unsigned char MFF : 1;
  23672. unsigned char : 1;
  23673. unsigned char MSS : 1;
  23674. unsigned char CTSE : 1;
  23675. unsigned char SSE : 1;
  23676. #endif
  23677. } BIT;
  23678. } SPMR;
  23679. union {
  23680. unsigned short WORD;
  23681. struct {
  23682. unsigned char TDRH;
  23683. unsigned char TDRL;
  23684. } BYTE;
  23685. } TDRHL;
  23686. union {
  23687. unsigned short WORD;
  23688. struct {
  23689. unsigned char RDRH;
  23690. unsigned char RDRL;
  23691. } BYTE;
  23692. } RDRHL;
  23693. unsigned char MDDR;
  23694. } st_sci0_t;
  23695. typedef struct st_sci10 {
  23696. union {
  23697. unsigned char BYTE;
  23698. struct {
  23699. #ifdef __RX_LITTLE_ENDIAN__
  23700. unsigned char CKS : 2;
  23701. unsigned char MP : 1;
  23702. unsigned char STOP : 1;
  23703. unsigned char PM : 1;
  23704. unsigned char PE : 1;
  23705. unsigned char CHR : 1;
  23706. unsigned char CM : 1;
  23707. #else
  23708. unsigned char CM : 1;
  23709. unsigned char CHR : 1;
  23710. unsigned char PE : 1;
  23711. unsigned char PM : 1;
  23712. unsigned char STOP : 1;
  23713. unsigned char MP : 1;
  23714. unsigned char CKS : 2;
  23715. #endif
  23716. } BIT;
  23717. } SMR;
  23718. unsigned char BRR;
  23719. union {
  23720. unsigned char BYTE;
  23721. struct {
  23722. #ifdef __RX_LITTLE_ENDIAN__
  23723. unsigned char CKE : 2;
  23724. unsigned char TEIE : 1;
  23725. unsigned char MPIE : 1;
  23726. unsigned char RE : 1;
  23727. unsigned char TE : 1;
  23728. unsigned char RIE : 1;
  23729. unsigned char TIE : 1;
  23730. #else
  23731. unsigned char TIE : 1;
  23732. unsigned char RIE : 1;
  23733. unsigned char TE : 1;
  23734. unsigned char RE : 1;
  23735. unsigned char MPIE : 1;
  23736. unsigned char TEIE : 1;
  23737. unsigned char CKE : 2;
  23738. #endif
  23739. } BIT;
  23740. } SCR;
  23741. unsigned char TDR;
  23742. union {
  23743. union {
  23744. unsigned char BYTE;
  23745. struct {
  23746. #ifdef __RX_LITTLE_ENDIAN__
  23747. unsigned char MPBT : 1;
  23748. unsigned char MPB : 1;
  23749. unsigned char TEND : 1;
  23750. unsigned char PER : 1;
  23751. unsigned char FER : 1;
  23752. unsigned char ORER : 1;
  23753. unsigned char RDRF : 1;
  23754. unsigned char TDRE : 1;
  23755. #else
  23756. unsigned char TDRE : 1;
  23757. unsigned char RDRF : 1;
  23758. unsigned char ORER : 1;
  23759. unsigned char FER : 1;
  23760. unsigned char PER : 1;
  23761. unsigned char TEND : 1;
  23762. unsigned char MPB : 1;
  23763. unsigned char MPBT : 1;
  23764. #endif
  23765. } BIT;
  23766. } SSR;
  23767. union {
  23768. unsigned char BYTE;
  23769. struct {
  23770. #ifdef __RX_LITTLE_ENDIAN__
  23771. unsigned char DR : 1;
  23772. unsigned char : 1;
  23773. unsigned char TEND : 1;
  23774. unsigned char PER : 1;
  23775. unsigned char FER : 1;
  23776. unsigned char ORER : 1;
  23777. unsigned char RDF : 1;
  23778. unsigned char TDFE : 1;
  23779. #else
  23780. unsigned char TDFE : 1;
  23781. unsigned char RDF : 1;
  23782. unsigned char ORER : 1;
  23783. unsigned char FER : 1;
  23784. unsigned char PER : 1;
  23785. unsigned char TEND : 1;
  23786. unsigned char : 1;
  23787. unsigned char DR : 1;
  23788. #endif
  23789. } BIT;
  23790. } SSRFIFO;
  23791. };
  23792. unsigned char RDR;
  23793. union {
  23794. unsigned char BYTE;
  23795. struct {
  23796. #ifdef __RX_LITTLE_ENDIAN__
  23797. unsigned char SMIF : 1;
  23798. unsigned char : 1;
  23799. unsigned char SINV : 1;
  23800. unsigned char SDIR : 1;
  23801. unsigned char CHR1 : 1;
  23802. unsigned char : 2;
  23803. unsigned char BCP2 : 1;
  23804. #else
  23805. unsigned char BCP2 : 1;
  23806. unsigned char : 2;
  23807. unsigned char CHR1 : 1;
  23808. unsigned char SDIR : 1;
  23809. unsigned char SINV : 1;
  23810. unsigned char : 1;
  23811. unsigned char SMIF : 1;
  23812. #endif
  23813. } BIT;
  23814. } SCMR;
  23815. union {
  23816. unsigned char BYTE;
  23817. struct {
  23818. #ifdef __RX_LITTLE_ENDIAN__
  23819. unsigned char ACS0 : 1;
  23820. unsigned char : 1;
  23821. unsigned char BRME : 1;
  23822. unsigned char : 1;
  23823. unsigned char ABCS : 1;
  23824. unsigned char NFEN : 1;
  23825. unsigned char BGDM : 1;
  23826. unsigned char RXDESEL : 1;
  23827. #else
  23828. unsigned char RXDESEL : 1;
  23829. unsigned char BGDM : 1;
  23830. unsigned char NFEN : 1;
  23831. unsigned char ABCS : 1;
  23832. unsigned char : 1;
  23833. unsigned char BRME : 1;
  23834. unsigned char : 1;
  23835. unsigned char ACS0 : 1;
  23836. #endif
  23837. } BIT;
  23838. } SEMR;
  23839. union {
  23840. unsigned char BYTE;
  23841. struct {
  23842. #ifdef __RX_LITTLE_ENDIAN__
  23843. unsigned char NFCS : 3;
  23844. unsigned char : 5;
  23845. #else
  23846. unsigned char : 5;
  23847. unsigned char NFCS : 3;
  23848. #endif
  23849. } BIT;
  23850. } SNFR;
  23851. union {
  23852. unsigned char BYTE;
  23853. struct {
  23854. #ifdef __RX_LITTLE_ENDIAN__
  23855. unsigned char IICM : 1;
  23856. unsigned char : 2;
  23857. unsigned char IICDL : 5;
  23858. #else
  23859. unsigned char IICDL : 5;
  23860. unsigned char : 2;
  23861. unsigned char IICM : 1;
  23862. #endif
  23863. } BIT;
  23864. } SIMR1;
  23865. union {
  23866. unsigned char BYTE;
  23867. struct {
  23868. #ifdef __RX_LITTLE_ENDIAN__
  23869. unsigned char IICINTM : 1;
  23870. unsigned char IICCSC : 1;
  23871. unsigned char : 3;
  23872. unsigned char IICACKT : 1;
  23873. unsigned char : 2;
  23874. #else
  23875. unsigned char : 2;
  23876. unsigned char IICACKT : 1;
  23877. unsigned char : 3;
  23878. unsigned char IICCSC : 1;
  23879. unsigned char IICINTM : 1;
  23880. #endif
  23881. } BIT;
  23882. } SIMR2;
  23883. union {
  23884. unsigned char BYTE;
  23885. struct {
  23886. #ifdef __RX_LITTLE_ENDIAN__
  23887. unsigned char IICSTAREQ : 1;
  23888. unsigned char IICRSTAREQ : 1;
  23889. unsigned char IICSTPREQ : 1;
  23890. unsigned char IICSTIF : 1;
  23891. unsigned char IICSDAS : 2;
  23892. unsigned char IICSCLS : 2;
  23893. #else
  23894. unsigned char IICSCLS : 2;
  23895. unsigned char IICSDAS : 2;
  23896. unsigned char IICSTIF : 1;
  23897. unsigned char IICSTPREQ : 1;
  23898. unsigned char IICRSTAREQ : 1;
  23899. unsigned char IICSTAREQ : 1;
  23900. #endif
  23901. } BIT;
  23902. } SIMR3;
  23903. union {
  23904. unsigned char BYTE;
  23905. struct {
  23906. #ifdef __RX_LITTLE_ENDIAN__
  23907. unsigned char IICACKR : 1;
  23908. unsigned char : 7;
  23909. #else
  23910. unsigned char : 7;
  23911. unsigned char IICACKR : 1;
  23912. #endif
  23913. } BIT;
  23914. } SISR;
  23915. union {
  23916. unsigned char BYTE;
  23917. struct {
  23918. #ifdef __RX_LITTLE_ENDIAN__
  23919. unsigned char SSE : 1;
  23920. unsigned char CTSE : 1;
  23921. unsigned char MSS : 1;
  23922. unsigned char : 1;
  23923. unsigned char MFF : 1;
  23924. unsigned char : 1;
  23925. unsigned char CKPOL : 1;
  23926. unsigned char CKPH : 1;
  23927. #else
  23928. unsigned char CKPH : 1;
  23929. unsigned char CKPOL : 1;
  23930. unsigned char : 1;
  23931. unsigned char MFF : 1;
  23932. unsigned char : 1;
  23933. unsigned char MSS : 1;
  23934. unsigned char CTSE : 1;
  23935. unsigned char SSE : 1;
  23936. #endif
  23937. } BIT;
  23938. } SPMR;
  23939. union {
  23940. union {
  23941. unsigned short WORD;
  23942. struct {
  23943. unsigned char TDRH;
  23944. unsigned char TDRL;
  23945. } BYTE;
  23946. } TDRHL;
  23947. union {
  23948. unsigned short WORD;
  23949. struct {
  23950. unsigned char H;
  23951. unsigned char L;
  23952. } BYTE;
  23953. struct {
  23954. #ifdef __RX_LITTLE_ENDIAN__
  23955. unsigned short TDAT : 9;
  23956. unsigned short MPBT : 1;
  23957. unsigned short : 6;
  23958. #else
  23959. unsigned short : 6;
  23960. unsigned short MPBT : 1;
  23961. unsigned short TDAT : 9;
  23962. #endif
  23963. } BIT;
  23964. } FTDR;
  23965. };
  23966. union {
  23967. union {
  23968. unsigned short WORD;
  23969. struct {
  23970. unsigned char RDRH;
  23971. unsigned char RDRL;
  23972. } BYTE;
  23973. } RDRHL;
  23974. union {
  23975. unsigned short WORD;
  23976. struct {
  23977. unsigned char H;
  23978. unsigned char L;
  23979. } BYTE;
  23980. struct {
  23981. #ifdef __RX_LITTLE_ENDIAN__
  23982. unsigned short RDAT : 9;
  23983. unsigned short MPB : 1;
  23984. unsigned short DR : 1;
  23985. unsigned short PER : 1;
  23986. unsigned short FER : 1;
  23987. unsigned short ORER : 1;
  23988. unsigned short RDF : 1;
  23989. unsigned short : 1;
  23990. #else
  23991. unsigned short : 1;
  23992. unsigned short RDF : 1;
  23993. unsigned short ORER : 1;
  23994. unsigned short FER : 1;
  23995. unsigned short PER : 1;
  23996. unsigned short DR : 1;
  23997. unsigned short MPB : 1;
  23998. unsigned short RDAT : 9;
  23999. #endif
  24000. } BIT;
  24001. } FRDR;
  24002. };
  24003. unsigned char MDDR;
  24004. union {
  24005. unsigned char BYTE;
  24006. struct {
  24007. #ifdef __RX_LITTLE_ENDIAN__
  24008. unsigned char DCMF : 1;
  24009. unsigned char : 2;
  24010. unsigned char DPER : 1;
  24011. unsigned char DFER : 1;
  24012. unsigned char : 1;
  24013. unsigned char IDSEL : 1;
  24014. unsigned char DCME : 1;
  24015. #else
  24016. unsigned char DCME : 1;
  24017. unsigned char IDSEL : 1;
  24018. unsigned char : 1;
  24019. unsigned char DFER : 1;
  24020. unsigned char DPER : 1;
  24021. unsigned char : 2;
  24022. unsigned char DCMF : 1;
  24023. #endif
  24024. } BIT;
  24025. } DCCR;
  24026. union {
  24027. unsigned short WORD;
  24028. struct {
  24029. unsigned char H;
  24030. unsigned char L;
  24031. } BYTE;
  24032. struct {
  24033. #ifdef __RX_LITTLE_ENDIAN__
  24034. unsigned short FM : 1;
  24035. unsigned short RFRST : 1;
  24036. unsigned short TFRST : 1;
  24037. unsigned short DRES : 1;
  24038. unsigned short TTRG : 4;
  24039. unsigned short RTRG : 4;
  24040. unsigned short RSTRG : 4;
  24041. #else
  24042. unsigned short RSTRG : 4;
  24043. unsigned short RTRG : 4;
  24044. unsigned short TTRG : 4;
  24045. unsigned short DRES : 1;
  24046. unsigned short TFRST : 1;
  24047. unsigned short RFRST : 1;
  24048. unsigned short FM : 1;
  24049. #endif
  24050. } BIT;
  24051. } FCR;
  24052. union {
  24053. unsigned short WORD;
  24054. struct {
  24055. unsigned char H;
  24056. unsigned char L;
  24057. } BYTE;
  24058. struct {
  24059. #ifdef __RX_LITTLE_ENDIAN__
  24060. unsigned short R : 5;
  24061. unsigned short : 3;
  24062. unsigned short T : 5;
  24063. unsigned short : 3;
  24064. #else
  24065. unsigned short : 3;
  24066. unsigned short T : 5;
  24067. unsigned short : 3;
  24068. unsigned short R : 5;
  24069. #endif
  24070. } BIT;
  24071. } FDR;
  24072. union {
  24073. unsigned short WORD;
  24074. struct {
  24075. unsigned char H;
  24076. unsigned char L;
  24077. } BYTE;
  24078. struct {
  24079. #ifdef __RX_LITTLE_ENDIAN__
  24080. unsigned short ORER : 1;
  24081. unsigned short : 1;
  24082. unsigned short FNUM : 5;
  24083. unsigned short : 1;
  24084. unsigned short PNUM : 5;
  24085. unsigned short : 3;
  24086. #else
  24087. unsigned short : 3;
  24088. unsigned short PNUM : 5;
  24089. unsigned short : 1;
  24090. unsigned short FNUM : 5;
  24091. unsigned short : 1;
  24092. unsigned short ORER : 1;
  24093. #endif
  24094. } BIT;
  24095. } LSR;
  24096. union {
  24097. unsigned short WORD;
  24098. struct {
  24099. unsigned char H;
  24100. unsigned char L;
  24101. } BYTE;
  24102. struct {
  24103. #ifdef __RX_LITTLE_ENDIAN__
  24104. unsigned short CMPD : 9;
  24105. unsigned short : 7;
  24106. #else
  24107. unsigned short : 7;
  24108. unsigned short CMPD : 9;
  24109. #endif
  24110. } BIT;
  24111. } CDR;
  24112. union {
  24113. unsigned char BYTE;
  24114. struct {
  24115. #ifdef __RX_LITTLE_ENDIAN__
  24116. unsigned char RXDMON : 1;
  24117. unsigned char SPB2DT : 1;
  24118. unsigned char SPB2IO : 1;
  24119. unsigned char : 5;
  24120. #else
  24121. unsigned char : 5;
  24122. unsigned char SPB2IO : 1;
  24123. unsigned char SPB2DT : 1;
  24124. unsigned char RXDMON : 1;
  24125. #endif
  24126. } BIT;
  24127. } SPTR;
  24128. } st_sci10_t;
  24129. typedef struct st_sci12 {
  24130. union {
  24131. unsigned char BYTE;
  24132. struct {
  24133. #ifdef __RX_LITTLE_ENDIAN__
  24134. unsigned char CKS : 2;
  24135. unsigned char MP : 1;
  24136. unsigned char STOP : 1;
  24137. unsigned char PM : 1;
  24138. unsigned char PE : 1;
  24139. unsigned char CHR : 1;
  24140. unsigned char CM : 1;
  24141. #else
  24142. unsigned char CM : 1;
  24143. unsigned char CHR : 1;
  24144. unsigned char PE : 1;
  24145. unsigned char PM : 1;
  24146. unsigned char STOP : 1;
  24147. unsigned char MP : 1;
  24148. unsigned char CKS : 2;
  24149. #endif
  24150. } BIT;
  24151. } SMR;
  24152. unsigned char BRR;
  24153. union {
  24154. unsigned char BYTE;
  24155. struct {
  24156. #ifdef __RX_LITTLE_ENDIAN__
  24157. unsigned char CKE : 2;
  24158. unsigned char TEIE : 1;
  24159. unsigned char MPIE : 1;
  24160. unsigned char RE : 1;
  24161. unsigned char TE : 1;
  24162. unsigned char RIE : 1;
  24163. unsigned char TIE : 1;
  24164. #else
  24165. unsigned char TIE : 1;
  24166. unsigned char RIE : 1;
  24167. unsigned char TE : 1;
  24168. unsigned char RE : 1;
  24169. unsigned char MPIE : 1;
  24170. unsigned char TEIE : 1;
  24171. unsigned char CKE : 2;
  24172. #endif
  24173. } BIT;
  24174. } SCR;
  24175. unsigned char TDR;
  24176. union {
  24177. unsigned char BYTE;
  24178. struct {
  24179. #ifdef __RX_LITTLE_ENDIAN__
  24180. unsigned char MPBT : 1;
  24181. unsigned char MPB : 1;
  24182. unsigned char TEND : 1;
  24183. unsigned char PER : 1;
  24184. unsigned char FER : 1;
  24185. unsigned char ORER : 1;
  24186. unsigned char RDRF : 1;
  24187. unsigned char TDRE : 1;
  24188. #else
  24189. unsigned char TDRE : 1;
  24190. unsigned char RDRF : 1;
  24191. unsigned char ORER : 1;
  24192. unsigned char FER : 1;
  24193. unsigned char PER : 1;
  24194. unsigned char TEND : 1;
  24195. unsigned char MPB : 1;
  24196. unsigned char MPBT : 1;
  24197. #endif
  24198. } BIT;
  24199. } SSR;
  24200. unsigned char RDR;
  24201. union {
  24202. unsigned char BYTE;
  24203. struct {
  24204. #ifdef __RX_LITTLE_ENDIAN__
  24205. unsigned char SMIF : 1;
  24206. unsigned char : 1;
  24207. unsigned char SINV : 1;
  24208. unsigned char SDIR : 1;
  24209. unsigned char CHR1 : 1;
  24210. unsigned char : 2;
  24211. unsigned char BCP2 : 1;
  24212. #else
  24213. unsigned char BCP2 : 1;
  24214. unsigned char : 2;
  24215. unsigned char CHR1 : 1;
  24216. unsigned char SDIR : 1;
  24217. unsigned char SINV : 1;
  24218. unsigned char : 1;
  24219. unsigned char SMIF : 1;
  24220. #endif
  24221. } BIT;
  24222. } SCMR;
  24223. union {
  24224. unsigned char BYTE;
  24225. struct {
  24226. #ifdef __RX_LITTLE_ENDIAN__
  24227. unsigned char ACS0 : 1;
  24228. unsigned char : 1;
  24229. unsigned char BRME : 1;
  24230. unsigned char : 1;
  24231. unsigned char ABCS : 1;
  24232. unsigned char NFEN : 1;
  24233. unsigned char BGDM : 1;
  24234. unsigned char RXDESEL : 1;
  24235. #else
  24236. unsigned char RXDESEL : 1;
  24237. unsigned char BGDM : 1;
  24238. unsigned char NFEN : 1;
  24239. unsigned char ABCS : 1;
  24240. unsigned char : 1;
  24241. unsigned char BRME : 1;
  24242. unsigned char : 1;
  24243. unsigned char ACS0 : 1;
  24244. #endif
  24245. } BIT;
  24246. } SEMR;
  24247. union {
  24248. unsigned char BYTE;
  24249. struct {
  24250. #ifdef __RX_LITTLE_ENDIAN__
  24251. unsigned char NFCS : 3;
  24252. unsigned char : 5;
  24253. #else
  24254. unsigned char : 5;
  24255. unsigned char NFCS : 3;
  24256. #endif
  24257. } BIT;
  24258. } SNFR;
  24259. union {
  24260. unsigned char BYTE;
  24261. struct {
  24262. #ifdef __RX_LITTLE_ENDIAN__
  24263. unsigned char IICM : 1;
  24264. unsigned char : 2;
  24265. unsigned char IICDL : 5;
  24266. #else
  24267. unsigned char IICDL : 5;
  24268. unsigned char : 2;
  24269. unsigned char IICM : 1;
  24270. #endif
  24271. } BIT;
  24272. } SIMR1;
  24273. union {
  24274. unsigned char BYTE;
  24275. struct {
  24276. #ifdef __RX_LITTLE_ENDIAN__
  24277. unsigned char IICINTM : 1;
  24278. unsigned char IICCSC : 1;
  24279. unsigned char : 3;
  24280. unsigned char IICACKT : 1;
  24281. unsigned char : 2;
  24282. #else
  24283. unsigned char : 2;
  24284. unsigned char IICACKT : 1;
  24285. unsigned char : 3;
  24286. unsigned char IICCSC : 1;
  24287. unsigned char IICINTM : 1;
  24288. #endif
  24289. } BIT;
  24290. } SIMR2;
  24291. union {
  24292. unsigned char BYTE;
  24293. struct {
  24294. #ifdef __RX_LITTLE_ENDIAN__
  24295. unsigned char IICSTAREQ : 1;
  24296. unsigned char IICRSTAREQ : 1;
  24297. unsigned char IICSTPREQ : 1;
  24298. unsigned char IICSTIF : 1;
  24299. unsigned char IICSDAS : 2;
  24300. unsigned char IICSCLS : 2;
  24301. #else
  24302. unsigned char IICSCLS : 2;
  24303. unsigned char IICSDAS : 2;
  24304. unsigned char IICSTIF : 1;
  24305. unsigned char IICSTPREQ : 1;
  24306. unsigned char IICRSTAREQ : 1;
  24307. unsigned char IICSTAREQ : 1;
  24308. #endif
  24309. } BIT;
  24310. } SIMR3;
  24311. union {
  24312. unsigned char BYTE;
  24313. struct {
  24314. #ifdef __RX_LITTLE_ENDIAN__
  24315. unsigned char IICACKR : 1;
  24316. unsigned char : 7;
  24317. #else
  24318. unsigned char : 7;
  24319. unsigned char IICACKR : 1;
  24320. #endif
  24321. } BIT;
  24322. } SISR;
  24323. union {
  24324. unsigned char BYTE;
  24325. struct {
  24326. #ifdef __RX_LITTLE_ENDIAN__
  24327. unsigned char SSE : 1;
  24328. unsigned char CTSE : 1;
  24329. unsigned char MSS : 1;
  24330. unsigned char : 1;
  24331. unsigned char MFF : 1;
  24332. unsigned char : 1;
  24333. unsigned char CKPOL : 1;
  24334. unsigned char CKPH : 1;
  24335. #else
  24336. unsigned char CKPH : 1;
  24337. unsigned char CKPOL : 1;
  24338. unsigned char : 1;
  24339. unsigned char MFF : 1;
  24340. unsigned char : 1;
  24341. unsigned char MSS : 1;
  24342. unsigned char CTSE : 1;
  24343. unsigned char SSE : 1;
  24344. #endif
  24345. } BIT;
  24346. } SPMR;
  24347. union {
  24348. unsigned short WORD;
  24349. struct {
  24350. unsigned char TDRH;
  24351. unsigned char TDRL;
  24352. } BYTE;
  24353. } TDRHL;
  24354. union {
  24355. unsigned short WORD;
  24356. struct {
  24357. unsigned char RDRH;
  24358. unsigned char RDRL;
  24359. } BYTE;
  24360. } RDRHL;
  24361. unsigned char MDDR;
  24362. char wk0[13];
  24363. union {
  24364. unsigned char BYTE;
  24365. struct {
  24366. #ifdef __RX_LITTLE_ENDIAN__
  24367. unsigned char ESME : 1;
  24368. unsigned char : 7;
  24369. #else
  24370. unsigned char : 7;
  24371. unsigned char ESME : 1;
  24372. #endif
  24373. } BIT;
  24374. } ESMER;
  24375. union {
  24376. unsigned char BYTE;
  24377. struct {
  24378. #ifdef __RX_LITTLE_ENDIAN__
  24379. unsigned char : 1;
  24380. unsigned char SFSF : 1;
  24381. unsigned char RXDSF : 1;
  24382. unsigned char BRME : 1;
  24383. unsigned char : 4;
  24384. #else
  24385. unsigned char : 4;
  24386. unsigned char BRME : 1;
  24387. unsigned char RXDSF : 1;
  24388. unsigned char SFSF : 1;
  24389. unsigned char : 1;
  24390. #endif
  24391. } BIT;
  24392. } CR0;
  24393. union {
  24394. unsigned char BYTE;
  24395. struct {
  24396. #ifdef __RX_LITTLE_ENDIAN__
  24397. unsigned char BFE : 1;
  24398. unsigned char CF0RE : 1;
  24399. unsigned char CF1DS : 2;
  24400. unsigned char PIBE : 1;
  24401. unsigned char PIBS : 3;
  24402. #else
  24403. unsigned char PIBS : 3;
  24404. unsigned char PIBE : 1;
  24405. unsigned char CF1DS : 2;
  24406. unsigned char CF0RE : 1;
  24407. unsigned char BFE : 1;
  24408. #endif
  24409. } BIT;
  24410. } CR1;
  24411. union {
  24412. unsigned char BYTE;
  24413. struct {
  24414. #ifdef __RX_LITTLE_ENDIAN__
  24415. unsigned char DFCS : 3;
  24416. unsigned char : 1;
  24417. unsigned char BCCS : 2;
  24418. unsigned char RTS : 2;
  24419. #else
  24420. unsigned char RTS : 2;
  24421. unsigned char BCCS : 2;
  24422. unsigned char : 1;
  24423. unsigned char DFCS : 3;
  24424. #endif
  24425. } BIT;
  24426. } CR2;
  24427. union {
  24428. unsigned char BYTE;
  24429. struct {
  24430. #ifdef __RX_LITTLE_ENDIAN__
  24431. unsigned char SDST : 1;
  24432. unsigned char : 7;
  24433. #else
  24434. unsigned char : 7;
  24435. unsigned char SDST : 1;
  24436. #endif
  24437. } BIT;
  24438. } CR3;
  24439. union {
  24440. unsigned char BYTE;
  24441. struct {
  24442. #ifdef __RX_LITTLE_ENDIAN__
  24443. unsigned char TXDXPS : 1;
  24444. unsigned char RXDXPS : 1;
  24445. unsigned char : 2;
  24446. unsigned char SHARPS : 1;
  24447. unsigned char : 3;
  24448. #else
  24449. unsigned char : 3;
  24450. unsigned char SHARPS : 1;
  24451. unsigned char : 2;
  24452. unsigned char RXDXPS : 1;
  24453. unsigned char TXDXPS : 1;
  24454. #endif
  24455. } BIT;
  24456. } PCR;
  24457. union {
  24458. unsigned char BYTE;
  24459. struct {
  24460. #ifdef __RX_LITTLE_ENDIAN__
  24461. unsigned char BFDIE : 1;
  24462. unsigned char CF0MIE : 1;
  24463. unsigned char CF1MIE : 1;
  24464. unsigned char PIBDIE : 1;
  24465. unsigned char BCDIE : 1;
  24466. unsigned char AEDIE : 1;
  24467. unsigned char : 2;
  24468. #else
  24469. unsigned char : 2;
  24470. unsigned char AEDIE : 1;
  24471. unsigned char BCDIE : 1;
  24472. unsigned char PIBDIE : 1;
  24473. unsigned char CF1MIE : 1;
  24474. unsigned char CF0MIE : 1;
  24475. unsigned char BFDIE : 1;
  24476. #endif
  24477. } BIT;
  24478. } ICR;
  24479. union {
  24480. unsigned char BYTE;
  24481. struct {
  24482. #ifdef __RX_LITTLE_ENDIAN__
  24483. unsigned char BFDF : 1;
  24484. unsigned char CF0MF : 1;
  24485. unsigned char CF1MF : 1;
  24486. unsigned char PIBDF : 1;
  24487. unsigned char BCDF : 1;
  24488. unsigned char AEDF : 1;
  24489. unsigned char : 2;
  24490. #else
  24491. unsigned char : 2;
  24492. unsigned char AEDF : 1;
  24493. unsigned char BCDF : 1;
  24494. unsigned char PIBDF : 1;
  24495. unsigned char CF1MF : 1;
  24496. unsigned char CF0MF : 1;
  24497. unsigned char BFDF : 1;
  24498. #endif
  24499. } BIT;
  24500. } STR;
  24501. union {
  24502. unsigned char BYTE;
  24503. struct {
  24504. #ifdef __RX_LITTLE_ENDIAN__
  24505. unsigned char BFDCL : 1;
  24506. unsigned char CF0MCL : 1;
  24507. unsigned char CF1MCL : 1;
  24508. unsigned char PIBDCL : 1;
  24509. unsigned char BCDCL : 1;
  24510. unsigned char AEDCL : 1;
  24511. unsigned char : 2;
  24512. #else
  24513. unsigned char : 2;
  24514. unsigned char AEDCL : 1;
  24515. unsigned char BCDCL : 1;
  24516. unsigned char PIBDCL : 1;
  24517. unsigned char CF1MCL : 1;
  24518. unsigned char CF0MCL : 1;
  24519. unsigned char BFDCL : 1;
  24520. #endif
  24521. } BIT;
  24522. } STCR;
  24523. unsigned char CF0DR;
  24524. union {
  24525. unsigned char BYTE;
  24526. struct {
  24527. #ifdef __RX_LITTLE_ENDIAN__
  24528. unsigned char CF0CE0 : 1;
  24529. unsigned char CF0CE1 : 1;
  24530. unsigned char CF0CE2 : 1;
  24531. unsigned char CF0CE3 : 1;
  24532. unsigned char CF0CE4 : 1;
  24533. unsigned char CF0CE5 : 1;
  24534. unsigned char CF0CE6 : 1;
  24535. unsigned char CF0CE7 : 1;
  24536. #else
  24537. unsigned char CF0CE7 : 1;
  24538. unsigned char CF0CE6 : 1;
  24539. unsigned char CF0CE5 : 1;
  24540. unsigned char CF0CE4 : 1;
  24541. unsigned char CF0CE3 : 1;
  24542. unsigned char CF0CE2 : 1;
  24543. unsigned char CF0CE1 : 1;
  24544. unsigned char CF0CE0 : 1;
  24545. #endif
  24546. } BIT;
  24547. } CF0CR;
  24548. unsigned char CF0RR;
  24549. unsigned char PCF1DR;
  24550. unsigned char SCF1DR;
  24551. union {
  24552. unsigned char BYTE;
  24553. struct {
  24554. #ifdef __RX_LITTLE_ENDIAN__
  24555. unsigned char CF1CE0 : 1;
  24556. unsigned char CF1CE1 : 1;
  24557. unsigned char CF1CE2 : 1;
  24558. unsigned char CF1CE3 : 1;
  24559. unsigned char CF1CE4 : 1;
  24560. unsigned char CF1CE5 : 1;
  24561. unsigned char CF1CE6 : 1;
  24562. unsigned char CF1CE7 : 1;
  24563. #else
  24564. unsigned char CF1CE7 : 1;
  24565. unsigned char CF1CE6 : 1;
  24566. unsigned char CF1CE5 : 1;
  24567. unsigned char CF1CE4 : 1;
  24568. unsigned char CF1CE3 : 1;
  24569. unsigned char CF1CE2 : 1;
  24570. unsigned char CF1CE1 : 1;
  24571. unsigned char CF1CE0 : 1;
  24572. #endif
  24573. } BIT;
  24574. } CF1CR;
  24575. unsigned char CF1RR;
  24576. union {
  24577. unsigned char BYTE;
  24578. struct {
  24579. #ifdef __RX_LITTLE_ENDIAN__
  24580. unsigned char TCST : 1;
  24581. unsigned char : 7;
  24582. #else
  24583. unsigned char : 7;
  24584. unsigned char TCST : 1;
  24585. #endif
  24586. } BIT;
  24587. } TCR;
  24588. union {
  24589. unsigned char BYTE;
  24590. struct {
  24591. #ifdef __RX_LITTLE_ENDIAN__
  24592. unsigned char TOMS : 2;
  24593. unsigned char : 1;
  24594. unsigned char TWRC : 1;
  24595. unsigned char TCSS : 3;
  24596. unsigned char : 1;
  24597. #else
  24598. unsigned char : 1;
  24599. unsigned char TCSS : 3;
  24600. unsigned char TWRC : 1;
  24601. unsigned char : 1;
  24602. unsigned char TOMS : 2;
  24603. #endif
  24604. } BIT;
  24605. } TMR;
  24606. unsigned char TPRE;
  24607. unsigned char TCNT;
  24608. } st_sci12_t;
  24609. typedef struct st_sdhi {
  24610. union {
  24611. unsigned long LONG;
  24612. #ifdef IODEFINE_H_HISTORY
  24613. struct {
  24614. unsigned long :16;
  24615. unsigned long CMD12AT:2;
  24616. unsigned long TRSTP:1;
  24617. unsigned long CMDRW:1;
  24618. unsigned long CMDTP:1;
  24619. unsigned long RSPTP:3;
  24620. unsigned long ACMD:2;
  24621. unsigned long CMDIDX:6;
  24622. } BIT;
  24623. #endif
  24624. } SDCMD;
  24625. char wk0[4];
  24626. unsigned long SDARG;
  24627. char wk1[4];
  24628. union {
  24629. unsigned long LONG;
  24630. struct {
  24631. #ifdef __RX_LITTLE_ENDIAN__
  24632. unsigned long STP : 1;
  24633. unsigned long : 7;
  24634. unsigned long SDBLKCNTEN : 1;
  24635. unsigned long : 23;
  24636. #else
  24637. unsigned long : 23;
  24638. unsigned long SDBLKCNTEN : 1;
  24639. unsigned long : 7;
  24640. unsigned long STP : 1;
  24641. #endif
  24642. } BIT;
  24643. } SDSTOP;
  24644. unsigned long SDBLKCNT;
  24645. unsigned long SDRSP10;
  24646. char wk2[4];
  24647. unsigned long SDRSP32;
  24648. char wk3[4];
  24649. unsigned long SDRSP54;
  24650. char wk4[4];
  24651. unsigned long SDRSP76;
  24652. char wk5[4];
  24653. union {
  24654. unsigned long LONG;
  24655. #ifdef IODEFINE_H_HISTORY
  24656. struct {
  24657. unsigned long :21;
  24658. unsigned long SDD3MON:1;
  24659. unsigned long SDD3IN:1;
  24660. unsigned long SDD3RM:1;
  24661. unsigned long SDWPMON:1;
  24662. unsigned long :1;
  24663. unsigned long SDCDMON:1;
  24664. unsigned long SDCDIN:1;
  24665. unsigned long SDCDRM:1;
  24666. unsigned long ACEND:1;
  24667. unsigned long :1;
  24668. unsigned long RSPEND:1;
  24669. } BIT;
  24670. #endif
  24671. } SDSTS1;
  24672. union {
  24673. unsigned long LONG;
  24674. #ifdef IODEFINE_H_HISTORY
  24675. struct {
  24676. unsigned long :16;
  24677. unsigned long ILA:1;
  24678. unsigned long CBSY:1;
  24679. unsigned long SDCLKCREN:1;
  24680. unsigned long :3;
  24681. unsigned long BWE:1;
  24682. unsigned long BRE:1;
  24683. unsigned long SDD0MON:1;
  24684. unsigned long RSPTO:1;
  24685. unsigned long ILR:1;
  24686. unsigned long ILW:1;
  24687. unsigned long DTO:1;
  24688. unsigned long ENDE:1;
  24689. unsigned long CRCE:1;
  24690. unsigned long CMDE:1;
  24691. } BIT;
  24692. #endif
  24693. } SDSTS2;
  24694. union {
  24695. unsigned long LONG;
  24696. struct {
  24697. #ifdef __RX_LITTLE_ENDIAN__
  24698. unsigned long RSPENDM : 1;
  24699. unsigned long : 1;
  24700. unsigned long ACENDM : 1;
  24701. unsigned long SDCDRMM : 1;
  24702. unsigned long SDCDINM : 1;
  24703. unsigned long : 3;
  24704. unsigned long SDD3RMM : 1;
  24705. unsigned long SDD3INM : 1;
  24706. unsigned long : 22;
  24707. #else
  24708. unsigned long : 22;
  24709. unsigned long SDD3INM : 1;
  24710. unsigned long SDD3RMM : 1;
  24711. unsigned long : 3;
  24712. unsigned long SDCDINM : 1;
  24713. unsigned long SDCDRMM : 1;
  24714. unsigned long ACENDM : 1;
  24715. unsigned long : 1;
  24716. unsigned long RSPENDM : 1;
  24717. #endif
  24718. } BIT;
  24719. } SDIMSK1;
  24720. union {
  24721. unsigned long LONG;
  24722. struct {
  24723. #ifdef __RX_LITTLE_ENDIAN__
  24724. unsigned long CMDEM : 1;
  24725. unsigned long CRCEM : 1;
  24726. unsigned long ENDEM : 1;
  24727. unsigned long DTTOM : 1;
  24728. unsigned long ILWM : 1;
  24729. unsigned long ILRM : 1;
  24730. unsigned long RSPTOM : 1;
  24731. unsigned long : 1;
  24732. unsigned long BREM : 1;
  24733. unsigned long BWEM : 1;
  24734. unsigned long : 5;
  24735. unsigned long ILAM : 1;
  24736. unsigned long : 16;
  24737. #else
  24738. unsigned long : 16;
  24739. unsigned long ILAM : 1;
  24740. unsigned long : 5;
  24741. unsigned long BWEM : 1;
  24742. unsigned long BREM : 1;
  24743. unsigned long : 1;
  24744. unsigned long RSPTOM : 1;
  24745. unsigned long ILRM : 1;
  24746. unsigned long ILWM : 1;
  24747. unsigned long DTTOM : 1;
  24748. unsigned long ENDEM : 1;
  24749. unsigned long CRCEM : 1;
  24750. unsigned long CMDEM : 1;
  24751. #endif
  24752. } BIT;
  24753. } SDIMSK2;
  24754. union {
  24755. unsigned long LONG;
  24756. struct {
  24757. #ifdef __RX_LITTLE_ENDIAN__
  24758. unsigned long CLKSEL : 8;
  24759. unsigned long CLKEN : 1;
  24760. unsigned long CLKCTRLEN : 1;
  24761. unsigned long : 22;
  24762. #else
  24763. unsigned long : 22;
  24764. unsigned long CLKCTRLEN : 1;
  24765. unsigned long CLKEN : 1;
  24766. unsigned long CLKSEL : 8;
  24767. #endif
  24768. } BIT;
  24769. } SDCLKCR;
  24770. union {
  24771. unsigned long LONG;
  24772. struct {
  24773. #ifdef __RX_LITTLE_ENDIAN__
  24774. unsigned long LEN : 10;
  24775. unsigned long : 22;
  24776. #else
  24777. unsigned long : 22;
  24778. unsigned long LEN : 10;
  24779. #endif
  24780. } BIT;
  24781. } SDSIZE;
  24782. union {
  24783. unsigned long LONG;
  24784. struct {
  24785. #ifdef __RX_LITTLE_ENDIAN__
  24786. unsigned long CTOP : 4;
  24787. unsigned long TOP : 4;
  24788. unsigned long : 7;
  24789. unsigned long WIDTH : 1;
  24790. unsigned long : 16;
  24791. #else
  24792. unsigned long : 16;
  24793. unsigned long WIDTH : 1;
  24794. unsigned long : 7;
  24795. unsigned long TOP : 4;
  24796. unsigned long CTOP : 4;
  24797. #endif
  24798. } BIT;
  24799. } SDOPT;
  24800. char wk6[4];
  24801. union {
  24802. unsigned long LONG;
  24803. struct {
  24804. #ifdef __RX_LITTLE_ENDIAN__
  24805. unsigned long CMDE0 : 1;
  24806. unsigned long CMDE1 : 1;
  24807. unsigned long RSPLENE0 : 1;
  24808. unsigned long RSPLENE1 : 1;
  24809. unsigned long RDLENE : 1;
  24810. unsigned long CRCLENE : 1;
  24811. unsigned long : 2;
  24812. unsigned long RSPCRCE0 : 1;
  24813. unsigned long RSPCRCE1 : 1;
  24814. unsigned long RDCRCE : 1;
  24815. unsigned long CRCTKE : 1;
  24816. unsigned long CRCTK : 3;
  24817. unsigned long : 17;
  24818. #else
  24819. unsigned long : 17;
  24820. unsigned long CRCTK : 3;
  24821. unsigned long CRCTKE : 1;
  24822. unsigned long RDCRCE : 1;
  24823. unsigned long RSPCRCE1 : 1;
  24824. unsigned long RSPCRCE0 : 1;
  24825. unsigned long : 2;
  24826. unsigned long CRCLENE : 1;
  24827. unsigned long RDLENE : 1;
  24828. unsigned long RSPLENE1 : 1;
  24829. unsigned long RSPLENE0 : 1;
  24830. unsigned long CMDE1 : 1;
  24831. unsigned long CMDE0 : 1;
  24832. #endif
  24833. } BIT;
  24834. } SDERSTS1;
  24835. union {
  24836. unsigned long LONG;
  24837. struct {
  24838. #ifdef __RX_LITTLE_ENDIAN__
  24839. unsigned long RSPTO0 : 1;
  24840. unsigned long RSPTO1 : 1;
  24841. unsigned long BSYTO0 : 1;
  24842. unsigned long BSYTO1 : 1;
  24843. unsigned long RDTO : 1;
  24844. unsigned long CRCTO : 1;
  24845. unsigned long CRCBSYTO : 1;
  24846. unsigned long : 25;
  24847. #else
  24848. unsigned long : 25;
  24849. unsigned long CRCBSYTO : 1;
  24850. unsigned long CRCTO : 1;
  24851. unsigned long RDTO : 1;
  24852. unsigned long BSYTO1 : 1;
  24853. unsigned long BSYTO0 : 1;
  24854. unsigned long RSPTO1 : 1;
  24855. unsigned long RSPTO0 : 1;
  24856. #endif
  24857. } BIT;
  24858. } SDERSTS2;
  24859. unsigned long SDBUFR;
  24860. char wk7[4];
  24861. union {
  24862. unsigned long LONG;
  24863. struct {
  24864. #ifdef __RX_LITTLE_ENDIAN__
  24865. unsigned long INTEN : 1;
  24866. unsigned long : 1;
  24867. unsigned long RWREQ : 1;
  24868. unsigned long : 5;
  24869. unsigned long IOABT : 1;
  24870. unsigned long C52PUB : 1;
  24871. unsigned long : 22;
  24872. #else
  24873. unsigned long : 22;
  24874. unsigned long C52PUB : 1;
  24875. unsigned long IOABT : 1;
  24876. unsigned long : 5;
  24877. unsigned long RWREQ : 1;
  24878. unsigned long : 1;
  24879. unsigned long INTEN : 1;
  24880. #endif
  24881. } BIT;
  24882. } SDIOMD;
  24883. union {
  24884. unsigned long LONG;
  24885. #ifdef IODEFINE_H_HISTORY
  24886. struct {
  24887. unsigned long :16;
  24888. unsigned long EXWT:1;
  24889. unsigned long EXPUB52:1;
  24890. unsigned long :13;
  24891. unsigned long IOIRQ:1;
  24892. } BIT;
  24893. #endif
  24894. } SDIOSTS;
  24895. union {
  24896. unsigned long LONG;
  24897. struct {
  24898. #ifdef __RX_LITTLE_ENDIAN__
  24899. unsigned long IOIRQM : 1;
  24900. unsigned long : 13;
  24901. unsigned long EXPUB52M : 1;
  24902. unsigned long EXWTM : 1;
  24903. unsigned long : 16;
  24904. #else
  24905. unsigned long : 16;
  24906. unsigned long EXWTM : 1;
  24907. unsigned long EXPUB52M : 1;
  24908. unsigned long : 13;
  24909. unsigned long IOIRQM : 1;
  24910. #endif
  24911. } BIT;
  24912. } SDIOIMSK;
  24913. char wk8[316];
  24914. union {
  24915. unsigned long LONG;
  24916. struct {
  24917. #ifdef __RX_LITTLE_ENDIAN__
  24918. unsigned long : 1;
  24919. unsigned long DMAEN : 1;
  24920. unsigned long : 30;
  24921. #else
  24922. unsigned long : 30;
  24923. unsigned long DMAEN : 1;
  24924. unsigned long : 1;
  24925. #endif
  24926. } BIT;
  24927. } SDDMAEN;
  24928. char wk9[12];
  24929. union {
  24930. unsigned long LONG;
  24931. struct {
  24932. #ifdef __RX_LITTLE_ENDIAN__
  24933. unsigned long SDRST : 1;
  24934. unsigned long : 31;
  24935. #else
  24936. unsigned long : 31;
  24937. unsigned long SDRST : 1;
  24938. #endif
  24939. } BIT;
  24940. } SDRST;
  24941. union {
  24942. unsigned long LONG;
  24943. struct {
  24944. #ifdef __RX_LITTLE_ENDIAN__
  24945. unsigned long IP1 : 8;
  24946. unsigned long IP2 : 4;
  24947. unsigned long : 2;
  24948. unsigned long CLKRAT : 1;
  24949. unsigned long CPRM : 1;
  24950. unsigned long : 16;
  24951. #else
  24952. unsigned long : 16;
  24953. unsigned long CPRM : 1;
  24954. unsigned long CLKRAT : 1;
  24955. unsigned long : 2;
  24956. unsigned long IP2 : 4;
  24957. unsigned long IP1 : 8;
  24958. #endif
  24959. } BIT;
  24960. } SDVER;
  24961. char wk10[24];
  24962. union {
  24963. unsigned long LONG;
  24964. struct {
  24965. #ifdef __RX_LITTLE_ENDIAN__
  24966. unsigned long : 6;
  24967. unsigned long BWSWP : 1;
  24968. unsigned long BRSWP : 1;
  24969. unsigned long : 24;
  24970. #else
  24971. unsigned long : 24;
  24972. unsigned long BRSWP : 1;
  24973. unsigned long BWSWP : 1;
  24974. unsigned long : 6;
  24975. #endif
  24976. } BIT;
  24977. } SDSWAP;
  24978. } st_sdhi_t;
  24979. typedef struct st_sdsi {
  24980. union {
  24981. unsigned long LONG;
  24982. struct {
  24983. #ifdef __RX_LITTLE_ENDIAN__
  24984. unsigned long : 11;
  24985. unsigned long FN1ACC : 1;
  24986. unsigned long : 20;
  24987. #else
  24988. unsigned long : 20;
  24989. unsigned long FN1ACC : 1;
  24990. unsigned long : 11;
  24991. #endif
  24992. } BIT;
  24993. } FN1ACCR;
  24994. union {
  24995. unsigned char BYTE;
  24996. struct {
  24997. #ifdef __RX_LITTLE_ENDIAN__
  24998. unsigned char CMD52WIREN : 1;
  24999. unsigned char CMD53WIREN : 1;
  25000. unsigned char CMD53RIREN : 1;
  25001. unsigned char : 5;
  25002. #else
  25003. unsigned char : 5;
  25004. unsigned char CMD53RIREN : 1;
  25005. unsigned char CMD53WIREN : 1;
  25006. unsigned char CMD52WIREN : 1;
  25007. #endif
  25008. } BIT;
  25009. } INTENCR1;
  25010. union {
  25011. unsigned char BYTE;
  25012. struct {
  25013. #ifdef __RX_LITTLE_ENDIAN__
  25014. unsigned char CMD52W : 1;
  25015. unsigned char CMD53W : 1;
  25016. unsigned char CMD53R : 1;
  25017. unsigned char : 5;
  25018. #else
  25019. unsigned char : 5;
  25020. unsigned char CMD53R : 1;
  25021. unsigned char CMD53W : 1;
  25022. unsigned char CMD52W : 1;
  25023. #endif
  25024. } BIT;
  25025. } INTSR1;
  25026. union {
  25027. unsigned char BYTE;
  25028. struct {
  25029. #ifdef __RX_LITTLE_ENDIAN__
  25030. unsigned char SDCMDINDEX : 1;
  25031. unsigned char SDWNRFLG : 1;
  25032. unsigned char SDRAWFLG : 1;
  25033. unsigned char SDBMODE : 1;
  25034. unsigned char SDOPCODE : 1;
  25035. unsigned char : 3;
  25036. #else
  25037. unsigned char : 3;
  25038. unsigned char SDOPCODE : 1;
  25039. unsigned char SDBMODE : 1;
  25040. unsigned char SDRAWFLG : 1;
  25041. unsigned char SDWNRFLG : 1;
  25042. unsigned char SDCMDINDEX : 1;
  25043. #endif
  25044. } BIT;
  25045. } SDCMDCR;
  25046. union {
  25047. unsigned char BYTE;
  25048. struct {
  25049. #ifdef __RX_LITTLE_ENDIAN__
  25050. unsigned char SDCMDACCADD : 8;
  25051. #else
  25052. unsigned char SDCMDACCADD : 8;
  25053. #endif
  25054. } BIT;
  25055. } SDCADD0R;
  25056. union {
  25057. unsigned char BYTE;
  25058. struct {
  25059. #ifdef __RX_LITTLE_ENDIAN__
  25060. unsigned char SDCMDACCADD : 8;
  25061. #else
  25062. unsigned char SDCMDACCADD : 8;
  25063. #endif
  25064. } BIT;
  25065. } SDCADD1R;
  25066. union {
  25067. unsigned char BYTE;
  25068. struct {
  25069. #ifdef __RX_LITTLE_ENDIAN__
  25070. unsigned char SDCMDACCADD : 1;
  25071. unsigned char : 7;
  25072. #else
  25073. unsigned char : 7;
  25074. unsigned char SDCMDACCADD : 1;
  25075. #endif
  25076. } BIT;
  25077. } SDCADD2R;
  25078. union {
  25079. unsigned char BYTE;
  25080. struct {
  25081. #ifdef __RX_LITTLE_ENDIAN__
  25082. unsigned char IOE1IOR1 : 1;
  25083. unsigned char EPS : 1;
  25084. unsigned char EMPC : 1;
  25085. unsigned char : 5;
  25086. #else
  25087. unsigned char : 5;
  25088. unsigned char EMPC : 1;
  25089. unsigned char EPS : 1;
  25090. unsigned char IOE1IOR1 : 1;
  25091. #endif
  25092. } BIT;
  25093. } SDSICR1;
  25094. union {
  25095. unsigned char BYTE;
  25096. struct {
  25097. #ifdef __RX_LITTLE_ENDIAN__
  25098. unsigned char DMAEN : 1;
  25099. unsigned char DMALOCKEN : 1;
  25100. unsigned char : 6;
  25101. #else
  25102. unsigned char : 6;
  25103. unsigned char DMALOCKEN : 1;
  25104. unsigned char DMAEN : 1;
  25105. #endif
  25106. } BIT;
  25107. } DMACR1;
  25108. union {
  25109. unsigned short WORD;
  25110. struct {
  25111. #ifdef __RX_LITTLE_ENDIAN__
  25112. unsigned short CMD53BLK : 9;
  25113. unsigned short : 7;
  25114. #else
  25115. unsigned short : 7;
  25116. unsigned short CMD53BLK : 9;
  25117. #endif
  25118. } BIT;
  25119. } BLKCNT;
  25120. union {
  25121. unsigned short WORD;
  25122. struct {
  25123. #ifdef __RX_LITTLE_ENDIAN__
  25124. unsigned short CMD53BYT : 12;
  25125. unsigned short : 4;
  25126. #else
  25127. unsigned short : 4;
  25128. unsigned short CMD53BYT : 12;
  25129. #endif
  25130. } BIT;
  25131. } BYTCNT;
  25132. union {
  25133. unsigned long LONG;
  25134. struct {
  25135. #ifdef __RX_LITTLE_ENDIAN__
  25136. unsigned long DMAADD : 32;
  25137. #else
  25138. unsigned long DMAADD : 32;
  25139. #endif
  25140. } BIT;
  25141. } DMATRADDR;
  25142. char wk0[236];
  25143. union {
  25144. unsigned long LONG;
  25145. struct {
  25146. #ifdef __RX_LITTLE_ENDIAN__
  25147. unsigned long RSWAP : 1;
  25148. unsigned long : 1;
  25149. unsigned long WSWAP : 1;
  25150. unsigned long : 1;
  25151. unsigned long REG5EN : 1;
  25152. unsigned long : 27;
  25153. #else
  25154. unsigned long : 27;
  25155. unsigned long REG5EN : 1;
  25156. unsigned long : 1;
  25157. unsigned long WSWAP : 1;
  25158. unsigned long : 1;
  25159. unsigned long RSWAP : 1;
  25160. #endif
  25161. } BIT;
  25162. } SDSICR2;
  25163. union {
  25164. unsigned long LONG;
  25165. struct {
  25166. #ifdef __RX_LITTLE_ENDIAN__
  25167. unsigned long SRST : 1;
  25168. unsigned long : 1;
  25169. unsigned long IOR0 : 1;
  25170. unsigned long CEN : 1;
  25171. unsigned long : 14;
  25172. unsigned long SPS : 1;
  25173. unsigned long SMPC : 1;
  25174. unsigned long : 12;
  25175. #else
  25176. unsigned long : 12;
  25177. unsigned long SMPC : 1;
  25178. unsigned long SPS : 1;
  25179. unsigned long : 14;
  25180. unsigned long CEN : 1;
  25181. unsigned long IOR0 : 1;
  25182. unsigned long : 1;
  25183. unsigned long SRST : 1;
  25184. #endif
  25185. } BIT;
  25186. } SDSICR3;
  25187. union {
  25188. unsigned long LONG;
  25189. struct {
  25190. #ifdef __RX_LITTLE_ENDIAN__
  25191. unsigned long CDFEN : 1;
  25192. unsigned long CDREN : 1;
  25193. unsigned long DTEEN : 1;
  25194. unsigned long : 29;
  25195. #else
  25196. unsigned long : 29;
  25197. unsigned long DTEEN : 1;
  25198. unsigned long CDREN : 1;
  25199. unsigned long CDFEN : 1;
  25200. #endif
  25201. } BIT;
  25202. } INTENCR2;
  25203. union {
  25204. unsigned long LONG;
  25205. struct {
  25206. #ifdef __RX_LITTLE_ENDIAN__
  25207. unsigned long CDF : 1;
  25208. unsigned long CDR : 1;
  25209. unsigned long DTE : 1;
  25210. unsigned long : 29;
  25211. #else
  25212. unsigned long : 29;
  25213. unsigned long DTE : 1;
  25214. unsigned long CDR : 1;
  25215. unsigned long CDF : 1;
  25216. #endif
  25217. } BIT;
  25218. } INTSR2;
  25219. union {
  25220. unsigned long LONG;
  25221. struct {
  25222. #ifdef __RX_LITTLE_ENDIAN__
  25223. unsigned long DMARSWAP : 2;
  25224. unsigned long DMAWSWAP : 2;
  25225. unsigned long : 4;
  25226. unsigned long DMASDSEL : 1;
  25227. unsigned long : 23;
  25228. #else
  25229. unsigned long : 23;
  25230. unsigned long DMASDSEL : 1;
  25231. unsigned long : 4;
  25232. unsigned long DMAWSWAP : 2;
  25233. unsigned long DMARSWAP : 2;
  25234. #endif
  25235. } BIT;
  25236. } DMACR2;
  25237. char wk1[236];
  25238. unsigned long CISDATAR[27];
  25239. char wk2[4];
  25240. union {
  25241. unsigned long LONG;
  25242. struct {
  25243. #ifdef __RX_LITTLE_ENDIAN__
  25244. unsigned long FBR1L : 4;
  25245. unsigned long : 4;
  25246. unsigned long FBR1U : 8;
  25247. unsigned long : 16;
  25248. #else
  25249. unsigned long : 16;
  25250. unsigned long FBR1U : 8;
  25251. unsigned long : 4;
  25252. unsigned long FBR1L : 4;
  25253. #endif
  25254. } BIT;
  25255. } FBR1;
  25256. union {
  25257. unsigned long LONG;
  25258. struct {
  25259. #ifdef __RX_LITTLE_ENDIAN__
  25260. unsigned long FBR2 : 8;
  25261. unsigned long : 24;
  25262. #else
  25263. unsigned long : 24;
  25264. unsigned long FBR2 : 8;
  25265. #endif
  25266. } BIT;
  25267. } FBR2;
  25268. union {
  25269. unsigned long LONG;
  25270. struct {
  25271. #ifdef __RX_LITTLE_ENDIAN__
  25272. unsigned long FBR3 : 16;
  25273. unsigned long : 16;
  25274. #else
  25275. unsigned long : 16;
  25276. unsigned long FBR3 : 16;
  25277. #endif
  25278. } BIT;
  25279. } FBR3;
  25280. union {
  25281. unsigned long LONG;
  25282. struct {
  25283. #ifdef __RX_LITTLE_ENDIAN__
  25284. unsigned long FBR4 : 16;
  25285. unsigned long : 16;
  25286. #else
  25287. unsigned long : 16;
  25288. unsigned long FBR4 : 16;
  25289. #endif
  25290. } BIT;
  25291. } FBR4;
  25292. union {
  25293. unsigned long LONG;
  25294. struct {
  25295. #ifdef __RX_LITTLE_ENDIAN__
  25296. unsigned long FBR5 : 8;
  25297. unsigned long : 24;
  25298. #else
  25299. unsigned long : 24;
  25300. unsigned long FBR5 : 8;
  25301. #endif
  25302. } BIT;
  25303. } FBR5;
  25304. char wk3[1404];
  25305. union {
  25306. unsigned long LONG;
  25307. struct {
  25308. unsigned char HH;
  25309. unsigned char HL;
  25310. unsigned char LH;
  25311. unsigned char LL;
  25312. } BYTE;
  25313. } FN1DATAR1[64];
  25314. union {
  25315. unsigned long LONG;
  25316. struct {
  25317. unsigned char HH;
  25318. unsigned char HL;
  25319. unsigned char LH;
  25320. unsigned char LL;
  25321. } BYTE;
  25322. } FN1DATAR2[64];
  25323. union {
  25324. unsigned long LONG;
  25325. struct {
  25326. unsigned char HH;
  25327. unsigned char HL;
  25328. unsigned char LH;
  25329. unsigned char LL;
  25330. } BYTE;
  25331. } FN1DATAR3[64];
  25332. union {
  25333. unsigned char BYTE;
  25334. struct {
  25335. #ifdef __RX_LITTLE_ENDIAN__
  25336. unsigned char INTVEC : 8;
  25337. #else
  25338. unsigned char INTVEC : 8;
  25339. #endif
  25340. } BIT;
  25341. } FN1INTVECR;
  25342. union {
  25343. unsigned char BYTE;
  25344. struct {
  25345. #ifdef __RX_LITTLE_ENDIAN__
  25346. unsigned char INTCTR : 8;
  25347. #else
  25348. unsigned char INTCTR : 8;
  25349. #endif
  25350. } BIT;
  25351. } FN1INTCLRR;
  25352. char wk4[254];
  25353. union {
  25354. unsigned long LONG;
  25355. struct {
  25356. unsigned char HH;
  25357. unsigned char HL;
  25358. unsigned char LH;
  25359. unsigned char LL;
  25360. } BYTE;
  25361. } FN1DATAR5[256];
  25362. } st_sdsi_t;
  25363. typedef struct st_smci0 {
  25364. union {
  25365. unsigned char BYTE;
  25366. struct {
  25367. #ifdef __RX_LITTLE_ENDIAN__
  25368. unsigned char CKS : 2;
  25369. unsigned char BCP : 2;
  25370. unsigned char PM : 1;
  25371. unsigned char PE : 1;
  25372. unsigned char BLK : 1;
  25373. unsigned char GM : 1;
  25374. #else
  25375. unsigned char GM : 1;
  25376. unsigned char BLK : 1;
  25377. unsigned char PE : 1;
  25378. unsigned char PM : 1;
  25379. unsigned char BCP : 2;
  25380. unsigned char CKS : 2;
  25381. #endif
  25382. } BIT;
  25383. } SMR;
  25384. unsigned char BRR;
  25385. union {
  25386. unsigned char BYTE;
  25387. struct {
  25388. #ifdef __RX_LITTLE_ENDIAN__
  25389. unsigned char CKE : 2;
  25390. unsigned char TEIE : 1;
  25391. unsigned char MPIE : 1;
  25392. unsigned char RE : 1;
  25393. unsigned char TE : 1;
  25394. unsigned char RIE : 1;
  25395. unsigned char TIE : 1;
  25396. #else
  25397. unsigned char TIE : 1;
  25398. unsigned char RIE : 1;
  25399. unsigned char TE : 1;
  25400. unsigned char RE : 1;
  25401. unsigned char MPIE : 1;
  25402. unsigned char TEIE : 1;
  25403. unsigned char CKE : 2;
  25404. #endif
  25405. } BIT;
  25406. } SCR;
  25407. unsigned char TDR;
  25408. union {
  25409. unsigned char BYTE;
  25410. struct {
  25411. #ifdef __RX_LITTLE_ENDIAN__
  25412. unsigned char MPBT : 1;
  25413. unsigned char MPB : 1;
  25414. unsigned char TEND : 1;
  25415. unsigned char PER : 1;
  25416. unsigned char ERS : 1;
  25417. unsigned char ORER : 1;
  25418. unsigned char RDRF : 1;
  25419. unsigned char TDRE : 1;
  25420. #else
  25421. unsigned char TDRE : 1;
  25422. unsigned char RDRF : 1;
  25423. unsigned char ORER : 1;
  25424. unsigned char ERS : 1;
  25425. unsigned char PER : 1;
  25426. unsigned char TEND : 1;
  25427. unsigned char MPB : 1;
  25428. unsigned char MPBT : 1;
  25429. #endif
  25430. } BIT;
  25431. } SSR;
  25432. unsigned char RDR;
  25433. union {
  25434. unsigned char BYTE;
  25435. struct {
  25436. #ifdef __RX_LITTLE_ENDIAN__
  25437. unsigned char SMIF : 1;
  25438. unsigned char : 1;
  25439. unsigned char SINV : 1;
  25440. unsigned char SDIR : 1;
  25441. unsigned char CHR1 : 1;
  25442. unsigned char : 2;
  25443. unsigned char BCP2 : 1;
  25444. #else
  25445. unsigned char BCP2 : 1;
  25446. unsigned char : 2;
  25447. unsigned char CHR1 : 1;
  25448. unsigned char SDIR : 1;
  25449. unsigned char SINV : 1;
  25450. unsigned char : 1;
  25451. unsigned char SMIF : 1;
  25452. #endif
  25453. } BIT;
  25454. } SCMR;
  25455. } st_smci0_t;
  25456. typedef struct st_smci10 {
  25457. union {
  25458. unsigned char BYTE;
  25459. struct {
  25460. #ifdef __RX_LITTLE_ENDIAN__
  25461. unsigned char CKS : 2;
  25462. unsigned char BCP : 2;
  25463. unsigned char PM : 1;
  25464. unsigned char PE : 1;
  25465. unsigned char BLK : 1;
  25466. unsigned char GM : 1;
  25467. #else
  25468. unsigned char GM : 1;
  25469. unsigned char BLK : 1;
  25470. unsigned char PE : 1;
  25471. unsigned char PM : 1;
  25472. unsigned char BCP : 2;
  25473. unsigned char CKS : 2;
  25474. #endif
  25475. } BIT;
  25476. } SMR;
  25477. char wk0[1];
  25478. union {
  25479. unsigned char BYTE;
  25480. struct {
  25481. #ifdef __RX_LITTLE_ENDIAN__
  25482. unsigned char CKE : 2;
  25483. unsigned char TEIE : 1;
  25484. unsigned char MPIE : 1;
  25485. unsigned char RE : 1;
  25486. unsigned char TE : 1;
  25487. unsigned char RIE : 1;
  25488. unsigned char TIE : 1;
  25489. #else
  25490. unsigned char TIE : 1;
  25491. unsigned char RIE : 1;
  25492. unsigned char TE : 1;
  25493. unsigned char RE : 1;
  25494. unsigned char MPIE : 1;
  25495. unsigned char TEIE : 1;
  25496. unsigned char CKE : 2;
  25497. #endif
  25498. } BIT;
  25499. } SCR;
  25500. char wk1[1];
  25501. union {
  25502. unsigned char BYTE;
  25503. struct {
  25504. #ifdef __RX_LITTLE_ENDIAN__
  25505. unsigned char MPBT : 1;
  25506. unsigned char MPB : 1;
  25507. unsigned char TEND : 1;
  25508. unsigned char PER : 1;
  25509. unsigned char ERS : 1;
  25510. unsigned char ORER : 1;
  25511. unsigned char RDRF : 1;
  25512. unsigned char TDRE : 1;
  25513. #else
  25514. unsigned char TDRE : 1;
  25515. unsigned char RDRF : 1;
  25516. unsigned char ORER : 1;
  25517. unsigned char ERS : 1;
  25518. unsigned char PER : 1;
  25519. unsigned char TEND : 1;
  25520. unsigned char MPB : 1;
  25521. unsigned char MPBT : 1;
  25522. #endif
  25523. } BIT;
  25524. } SSR;
  25525. char wk2[1];
  25526. union {
  25527. unsigned char BYTE;
  25528. struct {
  25529. #ifdef __RX_LITTLE_ENDIAN__
  25530. unsigned char SMIF : 1;
  25531. unsigned char : 1;
  25532. unsigned char SINV : 1;
  25533. unsigned char SDIR : 1;
  25534. unsigned char CHR1 : 1;
  25535. unsigned char : 2;
  25536. unsigned char BCP2 : 1;
  25537. #else
  25538. unsigned char BCP2 : 1;
  25539. unsigned char : 2;
  25540. unsigned char CHR1 : 1;
  25541. unsigned char SDIR : 1;
  25542. unsigned char SINV : 1;
  25543. unsigned char : 1;
  25544. unsigned char SMIF : 1;
  25545. #endif
  25546. } BIT;
  25547. } SCMR;
  25548. } st_smci10_t;
  25549. typedef struct st_system {
  25550. union {
  25551. unsigned short WORD;
  25552. struct {
  25553. #ifdef __RX_LITTLE_ENDIAN__
  25554. unsigned short MD : 1;
  25555. unsigned short : 15;
  25556. #else
  25557. unsigned short : 15;
  25558. unsigned short MD : 1;
  25559. #endif
  25560. } BIT;
  25561. } MDMONR;
  25562. char wk0[4];
  25563. union {
  25564. unsigned short WORD;
  25565. struct {
  25566. #ifdef __RX_LITTLE_ENDIAN__
  25567. unsigned short ROME : 1;
  25568. unsigned short EXBE : 1;
  25569. unsigned short : 6;
  25570. unsigned short KEY : 8;
  25571. #else
  25572. unsigned short KEY : 8;
  25573. unsigned short : 6;
  25574. unsigned short EXBE : 1;
  25575. unsigned short ROME : 1;
  25576. #endif
  25577. } BIT;
  25578. } SYSCR0;
  25579. union {
  25580. unsigned short WORD;
  25581. struct {
  25582. #ifdef __RX_LITTLE_ENDIAN__
  25583. unsigned short RAME : 1;
  25584. unsigned short : 6;
  25585. unsigned short SBYRAME : 1;
  25586. unsigned short : 8;
  25587. #else
  25588. unsigned short : 8;
  25589. unsigned short SBYRAME : 1;
  25590. unsigned short : 6;
  25591. unsigned short RAME : 1;
  25592. #endif
  25593. } BIT;
  25594. } SYSCR1;
  25595. char wk1[2];
  25596. union {
  25597. unsigned short WORD;
  25598. struct {
  25599. #ifdef __RX_LITTLE_ENDIAN__
  25600. unsigned short : 14;
  25601. unsigned short OPE : 1;
  25602. unsigned short SSBY : 1;
  25603. #else
  25604. unsigned short SSBY : 1;
  25605. unsigned short OPE : 1;
  25606. unsigned short : 14;
  25607. #endif
  25608. } BIT;
  25609. } SBYCR;
  25610. char wk2[2];
  25611. union {
  25612. unsigned long LONG;
  25613. struct {
  25614. #ifdef __RX_LITTLE_ENDIAN__
  25615. unsigned long MSTPA0 : 1;
  25616. unsigned long MSTPA1 : 1;
  25617. unsigned long : 2;
  25618. unsigned long MSTPA4 : 1;
  25619. unsigned long MSTPA5 : 1;
  25620. unsigned long : 3;
  25621. unsigned long MSTPA9 : 1;
  25622. unsigned long MSTPA10 : 1;
  25623. unsigned long MSTPA11 : 1;
  25624. unsigned long : 1;
  25625. unsigned long MSTPA13 : 1;
  25626. unsigned long MSTPA14 : 1;
  25627. unsigned long MSTPA15 : 1;
  25628. unsigned long MSTPA16 : 1;
  25629. unsigned long MSTPA17 : 1;
  25630. unsigned long : 1;
  25631. unsigned long MSTPA19 : 1;
  25632. unsigned long : 4;
  25633. unsigned long MSTPA24 : 1;
  25634. unsigned long : 2;
  25635. unsigned long MSTPA27 : 1;
  25636. unsigned long MSTPA28 : 1;
  25637. unsigned long MSTPA29 : 1;
  25638. unsigned long : 1;
  25639. unsigned long ACSE : 1;
  25640. #else
  25641. unsigned long ACSE : 1;
  25642. unsigned long : 1;
  25643. unsigned long MSTPA29 : 1;
  25644. unsigned long MSTPA28 : 1;
  25645. unsigned long MSTPA27 : 1;
  25646. unsigned long : 2;
  25647. unsigned long MSTPA24 : 1;
  25648. unsigned long : 4;
  25649. unsigned long MSTPA19 : 1;
  25650. unsigned long : 1;
  25651. unsigned long MSTPA17 : 1;
  25652. unsigned long MSTPA16 : 1;
  25653. unsigned long MSTPA15 : 1;
  25654. unsigned long MSTPA14 : 1;
  25655. unsigned long MSTPA13 : 1;
  25656. unsigned long : 1;
  25657. unsigned long MSTPA11 : 1;
  25658. unsigned long MSTPA10 : 1;
  25659. unsigned long MSTPA9 : 1;
  25660. unsigned long : 3;
  25661. unsigned long MSTPA5 : 1;
  25662. unsigned long MSTPA4 : 1;
  25663. unsigned long : 2;
  25664. unsigned long MSTPA1 : 1;
  25665. unsigned long MSTPA0 : 1;
  25666. #endif
  25667. } BIT;
  25668. } MSTPCRA;
  25669. union {
  25670. unsigned long LONG;
  25671. struct {
  25672. #ifdef __RX_LITTLE_ENDIAN__
  25673. unsigned long MSTPB0 : 1;
  25674. unsigned long MSTPB1 : 1;
  25675. unsigned long : 2;
  25676. unsigned long MSTPB4 : 1;
  25677. unsigned long : 1;
  25678. unsigned long MSTPB6 : 1;
  25679. unsigned long : 1;
  25680. unsigned long MSTPB8 : 1;
  25681. unsigned long MSTPB9 : 1;
  25682. unsigned long : 5;
  25683. unsigned long MSTPB15 : 1;
  25684. unsigned long MSTPB16 : 1;
  25685. unsigned long MSTPB17 : 1;
  25686. unsigned long : 1;
  25687. unsigned long MSTPB19 : 1;
  25688. unsigned long MSTPB20 : 1;
  25689. unsigned long MSTPB21 : 1;
  25690. unsigned long MSTPB22 : 1;
  25691. unsigned long MSTPB23 : 1;
  25692. unsigned long MSTPB24 : 1;
  25693. unsigned long MSTPB25 : 1;
  25694. unsigned long MSTPB26 : 1;
  25695. unsigned long MSTPB27 : 1;
  25696. unsigned long MSTPB28 : 1;
  25697. unsigned long MSTPB29 : 1;
  25698. unsigned long MSTPB30 : 1;
  25699. unsigned long MSTPB31 : 1;
  25700. #else
  25701. unsigned long MSTPB31 : 1;
  25702. unsigned long MSTPB30 : 1;
  25703. unsigned long MSTPB29 : 1;
  25704. unsigned long MSTPB28 : 1;
  25705. unsigned long MSTPB27 : 1;
  25706. unsigned long MSTPB26 : 1;
  25707. unsigned long MSTPB25 : 1;
  25708. unsigned long MSTPB24 : 1;
  25709. unsigned long MSTPB23 : 1;
  25710. unsigned long MSTPB22 : 1;
  25711. unsigned long MSTPB21 : 1;
  25712. unsigned long MSTPB20 : 1;
  25713. unsigned long MSTPB19 : 1;
  25714. unsigned long : 1;
  25715. unsigned long MSTPB17 : 1;
  25716. unsigned long MSTPB16 : 1;
  25717. unsigned long MSTPB15 : 1;
  25718. unsigned long : 5;
  25719. unsigned long MSTPB9 : 1;
  25720. unsigned long MSTPB8 : 1;
  25721. unsigned long : 1;
  25722. unsigned long MSTPB6 : 1;
  25723. unsigned long : 1;
  25724. unsigned long MSTPB4 : 1;
  25725. unsigned long : 2;
  25726. unsigned long MSTPB1 : 1;
  25727. unsigned long MSTPB0 : 1;
  25728. #endif
  25729. } BIT;
  25730. } MSTPCRB;
  25731. union {
  25732. unsigned long LONG;
  25733. struct {
  25734. #ifdef __RX_LITTLE_ENDIAN__
  25735. unsigned long MSTPC0 : 1;
  25736. unsigned long : 1;
  25737. unsigned long MSTPC2 : 1;
  25738. unsigned long : 4;
  25739. unsigned long MSTPC7 : 1;
  25740. unsigned long : 9;
  25741. unsigned long MSTPC17 : 1;
  25742. unsigned long : 1;
  25743. unsigned long MSTPC19 : 1;
  25744. unsigned long : 2;
  25745. unsigned long MSTPC22 : 1;
  25746. unsigned long MSTPC23 : 1;
  25747. unsigned long MSTPC24 : 1;
  25748. unsigned long MSTPC25 : 1;
  25749. unsigned long MSTPC26 : 1;
  25750. unsigned long MSTPC27 : 1;
  25751. unsigned long MSTPC28 : 1;
  25752. unsigned long MSTPC29 : 1;
  25753. unsigned long : 2;
  25754. #else
  25755. unsigned long : 2;
  25756. unsigned long MSTPC29 : 1;
  25757. unsigned long MSTPC28 : 1;
  25758. unsigned long MSTPC27 : 1;
  25759. unsigned long MSTPC26 : 1;
  25760. unsigned long MSTPC25 : 1;
  25761. unsigned long MSTPC24 : 1;
  25762. unsigned long MSTPC23 : 1;
  25763. unsigned long MSTPC22 : 1;
  25764. unsigned long : 2;
  25765. unsigned long MSTPC19 : 1;
  25766. unsigned long : 1;
  25767. unsigned long MSTPC17 : 1;
  25768. unsigned long : 9;
  25769. unsigned long MSTPC7 : 1;
  25770. unsigned long : 4;
  25771. unsigned long MSTPC2 : 1;
  25772. unsigned long : 1;
  25773. unsigned long MSTPC0 : 1;
  25774. #endif
  25775. } BIT;
  25776. } MSTPCRC;
  25777. union {
  25778. unsigned long LONG;
  25779. struct {
  25780. #ifdef __RX_LITTLE_ENDIAN__
  25781. unsigned long MSTPD0 : 1;
  25782. unsigned long MSTPD1 : 1;
  25783. unsigned long MSTPD2 : 1;
  25784. unsigned long MSTPD3 : 1;
  25785. unsigned long MSTPD4 : 1;
  25786. unsigned long MSTPD5 : 1;
  25787. unsigned long MSTPD6 : 1;
  25788. unsigned long MSTPD7 : 1;
  25789. unsigned long : 5;
  25790. unsigned long MSTPD13 : 1;
  25791. unsigned long : 5;
  25792. unsigned long MSTPD19 : 1;
  25793. unsigned long : 1;
  25794. unsigned long MSTPD21 : 1;
  25795. unsigned long : 5;
  25796. unsigned long MSTPD27 : 1;
  25797. unsigned long : 4;
  25798. #else
  25799. unsigned long : 4;
  25800. unsigned long MSTPD27 : 1;
  25801. unsigned long : 5;
  25802. unsigned long MSTPD21 : 1;
  25803. unsigned long : 1;
  25804. unsigned long MSTPD19 : 1;
  25805. unsigned long : 5;
  25806. unsigned long MSTPD13 : 1;
  25807. unsigned long : 5;
  25808. unsigned long MSTPD7 : 1;
  25809. unsigned long MSTPD6 : 1;
  25810. unsigned long MSTPD5 : 1;
  25811. unsigned long MSTPD4 : 1;
  25812. unsigned long MSTPD3 : 1;
  25813. unsigned long MSTPD2 : 1;
  25814. unsigned long MSTPD1 : 1;
  25815. unsigned long MSTPD0 : 1;
  25816. #endif
  25817. } BIT;
  25818. } MSTPCRD;
  25819. union {
  25820. unsigned long LONG;
  25821. struct {
  25822. #ifdef __RX_LITTLE_ENDIAN__
  25823. unsigned long PCKD : 4;
  25824. unsigned long PCKC : 4;
  25825. unsigned long PCKB : 4;
  25826. unsigned long PCKA : 4;
  25827. unsigned long BCK : 4;
  25828. unsigned long : 2;
  25829. unsigned long PSTOP0 : 1;
  25830. unsigned long PSTOP1 : 1;
  25831. unsigned long ICK : 4;
  25832. unsigned long FCK : 4;
  25833. #else
  25834. unsigned long FCK : 4;
  25835. unsigned long ICK : 4;
  25836. unsigned long PSTOP1 : 1;
  25837. unsigned long PSTOP0 : 1;
  25838. unsigned long : 2;
  25839. unsigned long BCK : 4;
  25840. unsigned long PCKA : 4;
  25841. unsigned long PCKB : 4;
  25842. unsigned long PCKC : 4;
  25843. unsigned long PCKD : 4;
  25844. #endif
  25845. } BIT;
  25846. } SCKCR;
  25847. union {
  25848. unsigned short WORD;
  25849. struct {
  25850. #ifdef __RX_LITTLE_ENDIAN__
  25851. unsigned short : 4;
  25852. unsigned short UCK : 4;
  25853. unsigned short : 8;
  25854. #else
  25855. unsigned short : 8;
  25856. unsigned short UCK : 4;
  25857. unsigned short : 4;
  25858. #endif
  25859. } BIT;
  25860. } SCKCR2;
  25861. union {
  25862. unsigned short WORD;
  25863. struct {
  25864. #ifdef __RX_LITTLE_ENDIAN__
  25865. unsigned short : 8;
  25866. unsigned short CKSEL : 3;
  25867. unsigned short : 5;
  25868. #else
  25869. unsigned short : 5;
  25870. unsigned short CKSEL : 3;
  25871. unsigned short : 8;
  25872. #endif
  25873. } BIT;
  25874. } SCKCR3;
  25875. union {
  25876. unsigned short WORD;
  25877. struct {
  25878. #ifdef __RX_LITTLE_ENDIAN__
  25879. unsigned short PLIDIV : 2;
  25880. unsigned short : 2;
  25881. unsigned short PLLSRCSEL : 1;
  25882. unsigned short : 3;
  25883. unsigned short STC : 6;
  25884. unsigned short : 2;
  25885. #else
  25886. unsigned short : 2;
  25887. unsigned short STC : 6;
  25888. unsigned short : 3;
  25889. unsigned short PLLSRCSEL : 1;
  25890. unsigned short : 2;
  25891. unsigned short PLIDIV : 2;
  25892. #endif
  25893. } BIT;
  25894. } PLLCR;
  25895. union {
  25896. unsigned char BYTE;
  25897. struct {
  25898. #ifdef __RX_LITTLE_ENDIAN__
  25899. unsigned char PLLEN : 1;
  25900. unsigned char : 7;
  25901. #else
  25902. unsigned char : 7;
  25903. unsigned char PLLEN : 1;
  25904. #endif
  25905. } BIT;
  25906. } PLLCR2;
  25907. char wk3[5];
  25908. union {
  25909. unsigned char BYTE;
  25910. struct {
  25911. #ifdef __RX_LITTLE_ENDIAN__
  25912. unsigned char BCLKDIV : 1;
  25913. unsigned char : 7;
  25914. #else
  25915. unsigned char : 7;
  25916. unsigned char BCLKDIV : 1;
  25917. #endif
  25918. } BIT;
  25919. } BCKCR;
  25920. char wk4[1];
  25921. union {
  25922. unsigned char BYTE;
  25923. struct {
  25924. #ifdef __RX_LITTLE_ENDIAN__
  25925. unsigned char MOSTP : 1;
  25926. unsigned char : 7;
  25927. #else
  25928. unsigned char : 7;
  25929. unsigned char MOSTP : 1;
  25930. #endif
  25931. } BIT;
  25932. } MOSCCR;
  25933. union {
  25934. unsigned char BYTE;
  25935. struct {
  25936. #ifdef __RX_LITTLE_ENDIAN__
  25937. unsigned char SOSTP : 1;
  25938. unsigned char : 7;
  25939. #else
  25940. unsigned char : 7;
  25941. unsigned char SOSTP : 1;
  25942. #endif
  25943. } BIT;
  25944. } SOSCCR;
  25945. union {
  25946. unsigned char BYTE;
  25947. struct {
  25948. #ifdef __RX_LITTLE_ENDIAN__
  25949. unsigned char LCSTP : 1;
  25950. unsigned char : 7;
  25951. #else
  25952. unsigned char : 7;
  25953. unsigned char LCSTP : 1;
  25954. #endif
  25955. } BIT;
  25956. } LOCOCR;
  25957. union {
  25958. unsigned char BYTE;
  25959. struct {
  25960. #ifdef __RX_LITTLE_ENDIAN__
  25961. unsigned char ILCSTP : 1;
  25962. unsigned char : 7;
  25963. #else
  25964. unsigned char : 7;
  25965. unsigned char ILCSTP : 1;
  25966. #endif
  25967. } BIT;
  25968. } ILOCOCR;
  25969. union {
  25970. unsigned char BYTE;
  25971. struct {
  25972. #ifdef __RX_LITTLE_ENDIAN__
  25973. unsigned char HCSTP : 1;
  25974. unsigned char : 7;
  25975. #else
  25976. unsigned char : 7;
  25977. unsigned char HCSTP : 1;
  25978. #endif
  25979. } BIT;
  25980. } HOCOCR;
  25981. union {
  25982. unsigned char BYTE;
  25983. struct {
  25984. #ifdef __RX_LITTLE_ENDIAN__
  25985. unsigned char HCFRQ : 2;
  25986. unsigned char : 6;
  25987. #else
  25988. unsigned char : 6;
  25989. unsigned char HCFRQ : 2;
  25990. #endif
  25991. } BIT;
  25992. } HOCOCR2;
  25993. char wk5[4];
  25994. union {
  25995. unsigned char BYTE;
  25996. struct {
  25997. #ifdef __RX_LITTLE_ENDIAN__
  25998. unsigned char MOOVF : 1;
  25999. unsigned char SOOVF : 1;
  26000. unsigned char PLOVF : 1;
  26001. unsigned char HCOVF : 1;
  26002. unsigned char ILCOVF : 1;
  26003. unsigned char : 3;
  26004. #else
  26005. unsigned char : 3;
  26006. unsigned char ILCOVF : 1;
  26007. unsigned char HCOVF : 1;
  26008. unsigned char PLOVF : 1;
  26009. unsigned char SOOVF : 1;
  26010. unsigned char MOOVF : 1;
  26011. #endif
  26012. } BIT;
  26013. } OSCOVFSR;
  26014. char wk6[3];
  26015. union {
  26016. unsigned char BYTE;
  26017. struct {
  26018. #ifdef __RX_LITTLE_ENDIAN__
  26019. unsigned char OSTDIE : 1;
  26020. unsigned char : 6;
  26021. unsigned char OSTDE : 1;
  26022. #else
  26023. unsigned char OSTDE : 1;
  26024. unsigned char : 6;
  26025. unsigned char OSTDIE : 1;
  26026. #endif
  26027. } BIT;
  26028. } OSTDCR;
  26029. union {
  26030. unsigned char BYTE;
  26031. struct {
  26032. #ifdef __RX_LITTLE_ENDIAN__
  26033. unsigned char OSTDF : 1;
  26034. unsigned char : 7;
  26035. #else
  26036. unsigned char : 7;
  26037. unsigned char OSTDF : 1;
  26038. #endif
  26039. } BIT;
  26040. } OSTDSR;
  26041. char wk7[94];
  26042. union {
  26043. unsigned char BYTE;
  26044. struct {
  26045. #ifdef __RX_LITTLE_ENDIAN__
  26046. unsigned char OPCM : 3;
  26047. unsigned char : 1;
  26048. unsigned char OPCMTSF : 1;
  26049. unsigned char : 3;
  26050. #else
  26051. unsigned char : 3;
  26052. unsigned char OPCMTSF : 1;
  26053. unsigned char : 1;
  26054. unsigned char OPCM : 3;
  26055. #endif
  26056. } BIT;
  26057. } OPCCR;
  26058. union {
  26059. unsigned char BYTE;
  26060. struct {
  26061. #ifdef __RX_LITTLE_ENDIAN__
  26062. unsigned char RSTCKSEL : 3;
  26063. unsigned char : 4;
  26064. unsigned char RSTCKEN : 1;
  26065. #else
  26066. unsigned char RSTCKEN : 1;
  26067. unsigned char : 4;
  26068. unsigned char RSTCKSEL : 3;
  26069. #endif
  26070. } BIT;
  26071. } RSTCKCR;
  26072. union {
  26073. unsigned char BYTE;
  26074. struct {
  26075. #ifdef __RX_LITTLE_ENDIAN__
  26076. unsigned char MSTS : 8;
  26077. #else
  26078. unsigned char MSTS : 8;
  26079. #endif
  26080. } BIT;
  26081. } MOSCWTCR;
  26082. union {
  26083. unsigned char BYTE;
  26084. struct {
  26085. #ifdef __RX_LITTLE_ENDIAN__
  26086. unsigned char SSTS : 8;
  26087. #else
  26088. unsigned char SSTS : 8;
  26089. #endif
  26090. } BIT;
  26091. } SOSCWTCR;
  26092. char wk8[28];
  26093. union {
  26094. unsigned char BYTE;
  26095. struct {
  26096. #ifdef __RX_LITTLE_ENDIAN__
  26097. unsigned char IWDTRF : 1;
  26098. unsigned char WDTRF : 1;
  26099. unsigned char SWRF : 1;
  26100. unsigned char : 5;
  26101. #else
  26102. unsigned char : 5;
  26103. unsigned char SWRF : 1;
  26104. unsigned char WDTRF : 1;
  26105. unsigned char IWDTRF : 1;
  26106. #endif
  26107. } BIT;
  26108. } RSTSR2;
  26109. char wk9[1];
  26110. unsigned short SWRR;
  26111. char wk10[28];
  26112. union {
  26113. unsigned char BYTE;
  26114. struct {
  26115. #ifdef __RX_LITTLE_ENDIAN__
  26116. unsigned char LVD1IDTSEL : 2;
  26117. unsigned char LVD1IRQSEL : 1;
  26118. unsigned char : 5;
  26119. #else
  26120. unsigned char : 5;
  26121. unsigned char LVD1IRQSEL : 1;
  26122. unsigned char LVD1IDTSEL : 2;
  26123. #endif
  26124. } BIT;
  26125. } LVD1CR1;
  26126. union {
  26127. unsigned char BYTE;
  26128. struct {
  26129. #ifdef __RX_LITTLE_ENDIAN__
  26130. unsigned char LVD1DET : 1;
  26131. unsigned char LVD1MON : 1;
  26132. unsigned char : 6;
  26133. #else
  26134. unsigned char : 6;
  26135. unsigned char LVD1MON : 1;
  26136. unsigned char LVD1DET : 1;
  26137. #endif
  26138. } BIT;
  26139. } LVD1SR;
  26140. union {
  26141. unsigned char BYTE;
  26142. struct {
  26143. #ifdef __RX_LITTLE_ENDIAN__
  26144. unsigned char LVD2IDTSEL : 2;
  26145. unsigned char LVD2IRQSEL : 1;
  26146. unsigned char : 5;
  26147. #else
  26148. unsigned char : 5;
  26149. unsigned char LVD2IRQSEL : 1;
  26150. unsigned char LVD2IDTSEL : 2;
  26151. #endif
  26152. } BIT;
  26153. } LVD2CR1;
  26154. union {
  26155. unsigned char BYTE;
  26156. struct {
  26157. #ifdef __RX_LITTLE_ENDIAN__
  26158. unsigned char LVD2DET : 1;
  26159. unsigned char LVD2MON : 1;
  26160. unsigned char : 6;
  26161. #else
  26162. unsigned char : 6;
  26163. unsigned char LVD2MON : 1;
  26164. unsigned char LVD2DET : 1;
  26165. #endif
  26166. } BIT;
  26167. } LVD2SR;
  26168. char wk11[794];
  26169. union {
  26170. unsigned short WORD;
  26171. struct {
  26172. #ifdef __RX_LITTLE_ENDIAN__
  26173. unsigned short PRC0 : 1;
  26174. unsigned short PRC1 : 1;
  26175. unsigned short : 1;
  26176. unsigned short PRC3 : 1;
  26177. unsigned short : 4;
  26178. unsigned short PRKEY : 8;
  26179. #else
  26180. unsigned short PRKEY : 8;
  26181. unsigned short : 4;
  26182. unsigned short PRC3 : 1;
  26183. unsigned short : 1;
  26184. unsigned short PRC1 : 1;
  26185. unsigned short PRC0 : 1;
  26186. #endif
  26187. } BIT;
  26188. } PRCR;
  26189. char wk12[3100];
  26190. union {
  26191. unsigned char BYTE;
  26192. struct {
  26193. #ifdef __RX_LITTLE_ENDIAN__
  26194. unsigned char ROMWT : 2;
  26195. unsigned char : 6;
  26196. #else
  26197. unsigned char : 6;
  26198. unsigned char ROMWT : 2;
  26199. #endif
  26200. } BIT;
  26201. } ROMWT;
  26202. char wk13[45667];
  26203. union {
  26204. unsigned char BYTE;
  26205. struct {
  26206. #ifdef __RX_LITTLE_ENDIAN__
  26207. unsigned char DEEPCUT : 2;
  26208. unsigned char : 4;
  26209. unsigned char IOKEEP : 1;
  26210. unsigned char DPSBY : 1;
  26211. #else
  26212. unsigned char DPSBY : 1;
  26213. unsigned char IOKEEP : 1;
  26214. unsigned char : 4;
  26215. unsigned char DEEPCUT : 2;
  26216. #endif
  26217. } BIT;
  26218. } DPSBYCR;
  26219. char wk14[1];
  26220. union {
  26221. unsigned char BYTE;
  26222. struct {
  26223. #ifdef __RX_LITTLE_ENDIAN__
  26224. unsigned char DIRQ0E : 1;
  26225. unsigned char DIRQ1E : 1;
  26226. unsigned char DIRQ2E : 1;
  26227. unsigned char DIRQ3E : 1;
  26228. unsigned char DIRQ4E : 1;
  26229. unsigned char DIRQ5E : 1;
  26230. unsigned char DIRQ6E : 1;
  26231. unsigned char DIRQ7E : 1;
  26232. #else
  26233. unsigned char DIRQ7E : 1;
  26234. unsigned char DIRQ6E : 1;
  26235. unsigned char DIRQ5E : 1;
  26236. unsigned char DIRQ4E : 1;
  26237. unsigned char DIRQ3E : 1;
  26238. unsigned char DIRQ2E : 1;
  26239. unsigned char DIRQ1E : 1;
  26240. unsigned char DIRQ0E : 1;
  26241. #endif
  26242. } BIT;
  26243. } DPSIER0;
  26244. union {
  26245. unsigned char BYTE;
  26246. struct {
  26247. #ifdef __RX_LITTLE_ENDIAN__
  26248. unsigned char DIRQ8E : 1;
  26249. unsigned char DIRQ9E : 1;
  26250. unsigned char DIRQ10E : 1;
  26251. unsigned char DIRQ11E : 1;
  26252. unsigned char DIRQ12E : 1;
  26253. unsigned char DIRQ13E : 1;
  26254. unsigned char DIRQ14E : 1;
  26255. unsigned char DIRQ15E : 1;
  26256. #else
  26257. unsigned char DIRQ15E : 1;
  26258. unsigned char DIRQ14E : 1;
  26259. unsigned char DIRQ13E : 1;
  26260. unsigned char DIRQ12E : 1;
  26261. unsigned char DIRQ11E : 1;
  26262. unsigned char DIRQ10E : 1;
  26263. unsigned char DIRQ9E : 1;
  26264. unsigned char DIRQ8E : 1;
  26265. #endif
  26266. } BIT;
  26267. } DPSIER1;
  26268. union {
  26269. unsigned char BYTE;
  26270. struct {
  26271. #ifdef __RX_LITTLE_ENDIAN__
  26272. unsigned char DLVD1IE : 1;
  26273. unsigned char DLVD2IE : 1;
  26274. unsigned char DRTCIIE : 1;
  26275. unsigned char DRTCAIE : 1;
  26276. unsigned char DNMIE : 1;
  26277. unsigned char DRIICDIE : 1;
  26278. unsigned char DRIICCIE : 1;
  26279. unsigned char DUSBIE : 1;
  26280. #else
  26281. unsigned char DUSBIE : 1;
  26282. unsigned char DRIICCIE : 1;
  26283. unsigned char DRIICDIE : 1;
  26284. unsigned char DNMIE : 1;
  26285. unsigned char DRTCAIE : 1;
  26286. unsigned char DRTCIIE : 1;
  26287. unsigned char DLVD2IE : 1;
  26288. unsigned char DLVD1IE : 1;
  26289. #endif
  26290. } BIT;
  26291. } DPSIER2;
  26292. union {
  26293. unsigned char BYTE;
  26294. struct {
  26295. #ifdef __RX_LITTLE_ENDIAN__
  26296. unsigned char DCANIE : 1;
  26297. unsigned char : 7;
  26298. #else
  26299. unsigned char : 7;
  26300. unsigned char DCANIE : 1;
  26301. #endif
  26302. } BIT;
  26303. } DPSIER3;
  26304. union {
  26305. unsigned char BYTE;
  26306. struct {
  26307. #ifdef __RX_LITTLE_ENDIAN__
  26308. unsigned char DIRQ0F : 1;
  26309. unsigned char DIRQ1F : 1;
  26310. unsigned char DIRQ2F : 1;
  26311. unsigned char DIRQ3F : 1;
  26312. unsigned char DIRQ4F : 1;
  26313. unsigned char DIRQ5F : 1;
  26314. unsigned char DIRQ6F : 1;
  26315. unsigned char DIRQ7F : 1;
  26316. #else
  26317. unsigned char DIRQ7F : 1;
  26318. unsigned char DIRQ6F : 1;
  26319. unsigned char DIRQ5F : 1;
  26320. unsigned char DIRQ4F : 1;
  26321. unsigned char DIRQ3F : 1;
  26322. unsigned char DIRQ2F : 1;
  26323. unsigned char DIRQ1F : 1;
  26324. unsigned char DIRQ0F : 1;
  26325. #endif
  26326. } BIT;
  26327. } DPSIFR0;
  26328. union {
  26329. unsigned char BYTE;
  26330. struct {
  26331. #ifdef __RX_LITTLE_ENDIAN__
  26332. unsigned char DIRQ8F : 1;
  26333. unsigned char DIRQ9F : 1;
  26334. unsigned char DIRQ10F : 1;
  26335. unsigned char DIRQ11F : 1;
  26336. unsigned char DIRQ12F : 1;
  26337. unsigned char DIRQ13F : 1;
  26338. unsigned char DIRQ14F : 1;
  26339. unsigned char DIRQ15F : 1;
  26340. #else
  26341. unsigned char DIRQ15F : 1;
  26342. unsigned char DIRQ14F : 1;
  26343. unsigned char DIRQ13F : 1;
  26344. unsigned char DIRQ12F : 1;
  26345. unsigned char DIRQ11F : 1;
  26346. unsigned char DIRQ10F : 1;
  26347. unsigned char DIRQ9F : 1;
  26348. unsigned char DIRQ8F : 1;
  26349. #endif
  26350. } BIT;
  26351. } DPSIFR1;
  26352. union {
  26353. unsigned char BYTE;
  26354. struct {
  26355. #ifdef __RX_LITTLE_ENDIAN__
  26356. unsigned char DLVD1IF : 1;
  26357. unsigned char DLVD2IF : 1;
  26358. unsigned char DRTCIIF : 1;
  26359. unsigned char DRTCAIF : 1;
  26360. unsigned char DNMIF : 1;
  26361. unsigned char DRIICDIF : 1;
  26362. unsigned char DRIICCIF : 1;
  26363. unsigned char DUSBIF : 1;
  26364. #else
  26365. unsigned char DUSBIF : 1;
  26366. unsigned char DRIICCIF : 1;
  26367. unsigned char DRIICDIF : 1;
  26368. unsigned char DNMIF : 1;
  26369. unsigned char DRTCAIF : 1;
  26370. unsigned char DRTCIIF : 1;
  26371. unsigned char DLVD2IF : 1;
  26372. unsigned char DLVD1IF : 1;
  26373. #endif
  26374. } BIT;
  26375. } DPSIFR2;
  26376. union {
  26377. unsigned char BYTE;
  26378. struct {
  26379. #ifdef __RX_LITTLE_ENDIAN__
  26380. unsigned char DCANIF : 1;
  26381. unsigned char : 7;
  26382. #else
  26383. unsigned char : 7;
  26384. unsigned char DCANIF : 1;
  26385. #endif
  26386. } BIT;
  26387. } DPSIFR3;
  26388. union {
  26389. unsigned char BYTE;
  26390. struct {
  26391. #ifdef __RX_LITTLE_ENDIAN__
  26392. unsigned char DIRQ0EG : 1;
  26393. unsigned char DIRQ1EG : 1;
  26394. unsigned char DIRQ2EG : 1;
  26395. unsigned char DIRQ3EG : 1;
  26396. unsigned char DIRQ4EG : 1;
  26397. unsigned char DIRQ5EG : 1;
  26398. unsigned char DIRQ6EG : 1;
  26399. unsigned char DIRQ7EG : 1;
  26400. #else
  26401. unsigned char DIRQ7EG : 1;
  26402. unsigned char DIRQ6EG : 1;
  26403. unsigned char DIRQ5EG : 1;
  26404. unsigned char DIRQ4EG : 1;
  26405. unsigned char DIRQ3EG : 1;
  26406. unsigned char DIRQ2EG : 1;
  26407. unsigned char DIRQ1EG : 1;
  26408. unsigned char DIRQ0EG : 1;
  26409. #endif
  26410. } BIT;
  26411. } DPSIEGR0;
  26412. union {
  26413. unsigned char BYTE;
  26414. struct {
  26415. #ifdef __RX_LITTLE_ENDIAN__
  26416. unsigned char DIRQ8EG : 1;
  26417. unsigned char DIRQ9EG : 1;
  26418. unsigned char DIRQ10EG : 1;
  26419. unsigned char DIRQ11EG : 1;
  26420. unsigned char DIRQ12EG : 1;
  26421. unsigned char DIRQ13EG : 1;
  26422. unsigned char DIRQ14EG : 1;
  26423. unsigned char DIRQ15EG : 1;
  26424. #else
  26425. unsigned char DIRQ15EG : 1;
  26426. unsigned char DIRQ14EG : 1;
  26427. unsigned char DIRQ13EG : 1;
  26428. unsigned char DIRQ12EG : 1;
  26429. unsigned char DIRQ11EG : 1;
  26430. unsigned char DIRQ10EG : 1;
  26431. unsigned char DIRQ9EG : 1;
  26432. unsigned char DIRQ8EG : 1;
  26433. #endif
  26434. } BIT;
  26435. } DPSIEGR1;
  26436. union {
  26437. unsigned char BYTE;
  26438. struct {
  26439. #ifdef __RX_LITTLE_ENDIAN__
  26440. unsigned char DLVD1EG : 1;
  26441. unsigned char DLVD2EG : 1;
  26442. unsigned char : 2;
  26443. unsigned char DNMIEG : 1;
  26444. unsigned char DRIICDEG : 1;
  26445. unsigned char DRIICCEG : 1;
  26446. unsigned char : 1;
  26447. #else
  26448. unsigned char : 1;
  26449. unsigned char DRIICCEG : 1;
  26450. unsigned char DRIICDEG : 1;
  26451. unsigned char DNMIEG : 1;
  26452. unsigned char : 2;
  26453. unsigned char DLVD2EG : 1;
  26454. unsigned char DLVD1EG : 1;
  26455. #endif
  26456. } BIT;
  26457. } DPSIEGR2;
  26458. union {
  26459. unsigned char BYTE;
  26460. struct {
  26461. #ifdef __RX_LITTLE_ENDIAN__
  26462. unsigned char DCANIEG : 1;
  26463. unsigned char : 7;
  26464. #else
  26465. unsigned char : 7;
  26466. unsigned char DCANIEG : 1;
  26467. #endif
  26468. } BIT;
  26469. } DPSIEGR3;
  26470. char wk15[2];
  26471. union {
  26472. unsigned char BYTE;
  26473. struct {
  26474. #ifdef __RX_LITTLE_ENDIAN__
  26475. unsigned char PORF : 1;
  26476. unsigned char LVD0RF : 1;
  26477. unsigned char LVD1RF : 1;
  26478. unsigned char LVD2RF : 1;
  26479. unsigned char : 3;
  26480. unsigned char DPSRSTF : 1;
  26481. #else
  26482. unsigned char DPSRSTF : 1;
  26483. unsigned char : 3;
  26484. unsigned char LVD2RF : 1;
  26485. unsigned char LVD1RF : 1;
  26486. unsigned char LVD0RF : 1;
  26487. unsigned char PORF : 1;
  26488. #endif
  26489. } BIT;
  26490. } RSTSR0;
  26491. union {
  26492. unsigned char BYTE;
  26493. struct {
  26494. #ifdef __RX_LITTLE_ENDIAN__
  26495. unsigned char CWSF : 1;
  26496. unsigned char : 7;
  26497. #else
  26498. unsigned char : 7;
  26499. unsigned char CWSF : 1;
  26500. #endif
  26501. } BIT;
  26502. } RSTSR1;
  26503. char wk16[1];
  26504. union {
  26505. unsigned char BYTE;
  26506. struct {
  26507. #ifdef __RX_LITTLE_ENDIAN__
  26508. unsigned char MOFXIN : 1;
  26509. unsigned char : 3;
  26510. unsigned char MODRV2 : 2;
  26511. unsigned char MOSEL : 1;
  26512. unsigned char : 1;
  26513. #else
  26514. unsigned char : 1;
  26515. unsigned char MOSEL : 1;
  26516. unsigned char MODRV2 : 2;
  26517. unsigned char : 3;
  26518. unsigned char MOFXIN : 1;
  26519. #endif
  26520. } BIT;
  26521. } MOFCR;
  26522. union {
  26523. unsigned char BYTE;
  26524. struct {
  26525. #ifdef __RX_LITTLE_ENDIAN__
  26526. unsigned char HOCOPCNT : 1;
  26527. unsigned char : 7;
  26528. #else
  26529. unsigned char : 7;
  26530. unsigned char HOCOPCNT : 1;
  26531. #endif
  26532. } BIT;
  26533. } HOCOPCR;
  26534. char wk17[2];
  26535. union {
  26536. unsigned char BYTE;
  26537. struct {
  26538. #ifdef __RX_LITTLE_ENDIAN__
  26539. unsigned char : 5;
  26540. unsigned char LVD1E : 1;
  26541. unsigned char LVD2E : 1;
  26542. unsigned char : 1;
  26543. #else
  26544. unsigned char : 1;
  26545. unsigned char LVD2E : 1;
  26546. unsigned char LVD1E : 1;
  26547. unsigned char : 5;
  26548. #endif
  26549. } BIT;
  26550. } LVCMPCR;
  26551. union {
  26552. unsigned char BYTE;
  26553. struct {
  26554. #ifdef __RX_LITTLE_ENDIAN__
  26555. unsigned char LVD1LVL : 4;
  26556. unsigned char LVD2LVL : 4;
  26557. #else
  26558. unsigned char LVD2LVL : 4;
  26559. unsigned char LVD1LVL : 4;
  26560. #endif
  26561. } BIT;
  26562. } LVDLVLR;
  26563. char wk18[1];
  26564. union {
  26565. unsigned char BYTE;
  26566. struct {
  26567. #ifdef __RX_LITTLE_ENDIAN__
  26568. unsigned char LVD1RIE : 1;
  26569. unsigned char LVD1DFDIS : 1;
  26570. unsigned char LVD1CMPE : 1;
  26571. unsigned char : 1;
  26572. unsigned char LVD1FSAMP : 2;
  26573. unsigned char LVD1RI : 1;
  26574. unsigned char LVD1RN : 1;
  26575. #else
  26576. unsigned char LVD1RN : 1;
  26577. unsigned char LVD1RI : 1;
  26578. unsigned char LVD1FSAMP : 2;
  26579. unsigned char : 1;
  26580. unsigned char LVD1CMPE : 1;
  26581. unsigned char LVD1DFDIS : 1;
  26582. unsigned char LVD1RIE : 1;
  26583. #endif
  26584. } BIT;
  26585. } LVD1CR0;
  26586. union {
  26587. unsigned char BYTE;
  26588. struct {
  26589. #ifdef __RX_LITTLE_ENDIAN__
  26590. unsigned char LVD2RIE : 1;
  26591. unsigned char LVD2DFDIS : 1;
  26592. unsigned char LVD2CMPE : 1;
  26593. unsigned char : 1;
  26594. unsigned char LVD2FSAMP : 2;
  26595. unsigned char LVD2RI : 1;
  26596. unsigned char LVD2RN : 1;
  26597. #else
  26598. unsigned char LVD2RN : 1;
  26599. unsigned char LVD2RI : 1;
  26600. unsigned char LVD2FSAMP : 2;
  26601. unsigned char : 1;
  26602. unsigned char LVD2CMPE : 1;
  26603. unsigned char LVD2DFDIS : 1;
  26604. unsigned char LVD2RIE : 1;
  26605. #endif
  26606. } BIT;
  26607. } LVD2CR0;
  26608. char wk19[4];
  26609. unsigned char DPSBKR[32];
  26610. } st_system_t;
  26611. typedef struct st_temps {
  26612. union {
  26613. unsigned char BYTE;
  26614. struct {
  26615. #ifdef __RX_LITTLE_ENDIAN__
  26616. unsigned char : 4;
  26617. unsigned char TSOE : 1;
  26618. unsigned char : 2;
  26619. unsigned char TSEN : 1;
  26620. #else
  26621. unsigned char TSEN : 1;
  26622. unsigned char : 2;
  26623. unsigned char TSOE : 1;
  26624. unsigned char : 4;
  26625. #endif
  26626. } BIT;
  26627. } TSCR;
  26628. } st_temps_t;
  26629. typedef struct st_tmr0 {
  26630. union {
  26631. unsigned char BYTE;
  26632. struct {
  26633. #ifdef __RX_LITTLE_ENDIAN__
  26634. unsigned char : 3;
  26635. unsigned char CCLR : 2;
  26636. unsigned char OVIE : 1;
  26637. unsigned char CMIEA : 1;
  26638. unsigned char CMIEB : 1;
  26639. #else
  26640. unsigned char CMIEB : 1;
  26641. unsigned char CMIEA : 1;
  26642. unsigned char OVIE : 1;
  26643. unsigned char CCLR : 2;
  26644. unsigned char : 3;
  26645. #endif
  26646. } BIT;
  26647. } TCR;
  26648. char wk0[1];
  26649. union {
  26650. unsigned char BYTE;
  26651. struct {
  26652. #ifdef __RX_LITTLE_ENDIAN__
  26653. unsigned char OSA : 2;
  26654. unsigned char OSB : 2;
  26655. unsigned char ADTE : 1;
  26656. unsigned char : 3;
  26657. #else
  26658. unsigned char : 3;
  26659. unsigned char ADTE : 1;
  26660. unsigned char OSB : 2;
  26661. unsigned char OSA : 2;
  26662. #endif
  26663. } BIT;
  26664. } TCSR;
  26665. char wk1[1];
  26666. unsigned char TCORA;
  26667. char wk2[1];
  26668. unsigned char TCORB;
  26669. char wk3[1];
  26670. unsigned char TCNT;
  26671. char wk4[1];
  26672. union {
  26673. unsigned char BYTE;
  26674. struct {
  26675. #ifdef __RX_LITTLE_ENDIAN__
  26676. unsigned char CKS : 3;
  26677. unsigned char CSS : 2;
  26678. unsigned char : 2;
  26679. unsigned char TMRIS : 1;
  26680. #else
  26681. unsigned char TMRIS : 1;
  26682. unsigned char : 2;
  26683. unsigned char CSS : 2;
  26684. unsigned char CKS : 3;
  26685. #endif
  26686. } BIT;
  26687. } TCCR;
  26688. char wk5[1];
  26689. union {
  26690. unsigned char BYTE;
  26691. struct {
  26692. #ifdef __RX_LITTLE_ENDIAN__
  26693. unsigned char TCS : 1;
  26694. unsigned char : 7;
  26695. #else
  26696. unsigned char : 7;
  26697. unsigned char TCS : 1;
  26698. #endif
  26699. } BIT;
  26700. } TCSTR;
  26701. } st_tmr0_t;
  26702. typedef struct st_tmr1 {
  26703. union {
  26704. unsigned char BYTE;
  26705. struct {
  26706. #ifdef __RX_LITTLE_ENDIAN__
  26707. unsigned char : 3;
  26708. unsigned char CCLR : 2;
  26709. unsigned char OVIE : 1;
  26710. unsigned char CMIEA : 1;
  26711. unsigned char CMIEB : 1;
  26712. #else
  26713. unsigned char CMIEB : 1;
  26714. unsigned char CMIEA : 1;
  26715. unsigned char OVIE : 1;
  26716. unsigned char CCLR : 2;
  26717. unsigned char : 3;
  26718. #endif
  26719. } BIT;
  26720. } TCR;
  26721. char wk0[1];
  26722. union {
  26723. unsigned char BYTE;
  26724. struct {
  26725. #ifdef __RX_LITTLE_ENDIAN__
  26726. unsigned char OSA : 2;
  26727. unsigned char OSB : 2;
  26728. unsigned char : 4;
  26729. #else
  26730. unsigned char : 4;
  26731. unsigned char OSB : 2;
  26732. unsigned char OSA : 2;
  26733. #endif
  26734. } BIT;
  26735. } TCSR;
  26736. char wk1[1];
  26737. unsigned char TCORA;
  26738. char wk2[1];
  26739. unsigned char TCORB;
  26740. char wk3[1];
  26741. unsigned char TCNT;
  26742. char wk4[1];
  26743. union {
  26744. unsigned char BYTE;
  26745. struct {
  26746. #ifdef __RX_LITTLE_ENDIAN__
  26747. unsigned char CKS : 3;
  26748. unsigned char CSS : 2;
  26749. unsigned char : 2;
  26750. unsigned char TMRIS : 1;
  26751. #else
  26752. unsigned char TMRIS : 1;
  26753. unsigned char : 2;
  26754. unsigned char CSS : 2;
  26755. unsigned char CKS : 3;
  26756. #endif
  26757. } BIT;
  26758. } TCCR;
  26759. char wk5[1];
  26760. union {
  26761. unsigned char BYTE;
  26762. struct {
  26763. #ifdef __RX_LITTLE_ENDIAN__
  26764. unsigned char TCS : 1;
  26765. unsigned char : 7;
  26766. #else
  26767. unsigned char : 7;
  26768. unsigned char TCS : 1;
  26769. #endif
  26770. } BIT;
  26771. } TCSTR;
  26772. } st_tmr1_t;
  26773. typedef struct st_tmr01 {
  26774. unsigned short TCORA;
  26775. unsigned short TCORB;
  26776. unsigned short TCNT;
  26777. unsigned short TCCR;
  26778. } st_tmr01_t;
  26779. typedef struct st_tpu0 {
  26780. union {
  26781. unsigned char BYTE;
  26782. struct {
  26783. #ifdef __RX_LITTLE_ENDIAN__
  26784. unsigned char NFAEN : 1;
  26785. unsigned char NFBEN : 1;
  26786. unsigned char NFCEN : 1;
  26787. unsigned char NFDEN : 1;
  26788. unsigned char NFCS : 2;
  26789. unsigned char : 2;
  26790. #else
  26791. unsigned char : 2;
  26792. unsigned char NFCS : 2;
  26793. unsigned char NFDEN : 1;
  26794. unsigned char NFCEN : 1;
  26795. unsigned char NFBEN : 1;
  26796. unsigned char NFAEN : 1;
  26797. #endif
  26798. } BIT;
  26799. } NFCR;
  26800. char wk0[7];
  26801. union {
  26802. unsigned char BYTE;
  26803. struct {
  26804. #ifdef __RX_LITTLE_ENDIAN__
  26805. unsigned char TPSC : 3;
  26806. unsigned char CKEG : 2;
  26807. unsigned char CCLR : 3;
  26808. #else
  26809. unsigned char CCLR : 3;
  26810. unsigned char CKEG : 2;
  26811. unsigned char TPSC : 3;
  26812. #endif
  26813. } BIT;
  26814. } TCR;
  26815. union {
  26816. unsigned char BYTE;
  26817. struct {
  26818. #ifdef __RX_LITTLE_ENDIAN__
  26819. unsigned char MD : 4;
  26820. unsigned char BFA : 1;
  26821. unsigned char BFB : 1;
  26822. unsigned char ICSELB : 1;
  26823. unsigned char ICSELD : 1;
  26824. #else
  26825. unsigned char ICSELD : 1;
  26826. unsigned char ICSELB : 1;
  26827. unsigned char BFB : 1;
  26828. unsigned char BFA : 1;
  26829. unsigned char MD : 4;
  26830. #endif
  26831. } BIT;
  26832. } TMDR;
  26833. union {
  26834. unsigned char BYTE;
  26835. struct {
  26836. #ifdef __RX_LITTLE_ENDIAN__
  26837. unsigned char IOA : 4;
  26838. unsigned char IOB : 4;
  26839. #else
  26840. unsigned char IOB : 4;
  26841. unsigned char IOA : 4;
  26842. #endif
  26843. } BIT;
  26844. } TIORH;
  26845. union {
  26846. unsigned char BYTE;
  26847. struct {
  26848. #ifdef __RX_LITTLE_ENDIAN__
  26849. unsigned char IOC : 4;
  26850. unsigned char IOD : 4;
  26851. #else
  26852. unsigned char IOD : 4;
  26853. unsigned char IOC : 4;
  26854. #endif
  26855. } BIT;
  26856. } TIORL;
  26857. union {
  26858. unsigned char BYTE;
  26859. struct {
  26860. #ifdef __RX_LITTLE_ENDIAN__
  26861. unsigned char TGIEA : 1;
  26862. unsigned char TGIEB : 1;
  26863. unsigned char TGIEC : 1;
  26864. unsigned char TGIED : 1;
  26865. unsigned char TCIEV : 1;
  26866. unsigned char : 2;
  26867. unsigned char TTGE : 1;
  26868. #else
  26869. unsigned char TTGE : 1;
  26870. unsigned char : 2;
  26871. unsigned char TCIEV : 1;
  26872. unsigned char TGIED : 1;
  26873. unsigned char TGIEC : 1;
  26874. unsigned char TGIEB : 1;
  26875. unsigned char TGIEA : 1;
  26876. #endif
  26877. } BIT;
  26878. } TIER;
  26879. union {
  26880. unsigned char BYTE;
  26881. struct {
  26882. #ifdef __RX_LITTLE_ENDIAN__
  26883. unsigned char TGFA : 1;
  26884. unsigned char TGFB : 1;
  26885. unsigned char TGFC : 1;
  26886. unsigned char TGFD : 1;
  26887. unsigned char TCFV : 1;
  26888. unsigned char : 3;
  26889. #else
  26890. unsigned char : 3;
  26891. unsigned char TCFV : 1;
  26892. unsigned char TGFD : 1;
  26893. unsigned char TGFC : 1;
  26894. unsigned char TGFB : 1;
  26895. unsigned char TGFA : 1;
  26896. #endif
  26897. } BIT;
  26898. } TSR;
  26899. unsigned short TCNT;
  26900. unsigned short TGRA;
  26901. unsigned short TGRB;
  26902. unsigned short TGRC;
  26903. unsigned short TGRD;
  26904. } st_tpu0_t;
  26905. typedef struct st_tpu1 {
  26906. char wk0[1];
  26907. union {
  26908. unsigned char BYTE;
  26909. struct {
  26910. #ifdef __RX_LITTLE_ENDIAN__
  26911. unsigned char NFAEN : 1;
  26912. unsigned char NFBEN : 1;
  26913. unsigned char : 2;
  26914. unsigned char NFCS : 2;
  26915. unsigned char : 2;
  26916. #else
  26917. unsigned char : 2;
  26918. unsigned char NFCS : 2;
  26919. unsigned char : 2;
  26920. unsigned char NFBEN : 1;
  26921. unsigned char NFAEN : 1;
  26922. #endif
  26923. } BIT;
  26924. } NFCR;
  26925. char wk1[22];
  26926. union {
  26927. unsigned char BYTE;
  26928. struct {
  26929. #ifdef __RX_LITTLE_ENDIAN__
  26930. unsigned char TPSC : 3;
  26931. unsigned char CKEG : 2;
  26932. unsigned char CCLR : 2;
  26933. unsigned char : 1;
  26934. #else
  26935. unsigned char : 1;
  26936. unsigned char CCLR : 2;
  26937. unsigned char CKEG : 2;
  26938. unsigned char TPSC : 3;
  26939. #endif
  26940. } BIT;
  26941. } TCR;
  26942. union {
  26943. unsigned char BYTE;
  26944. struct {
  26945. #ifdef __RX_LITTLE_ENDIAN__
  26946. unsigned char MD : 4;
  26947. unsigned char : 2;
  26948. unsigned char ICSELB : 1;
  26949. unsigned char : 1;
  26950. #else
  26951. unsigned char : 1;
  26952. unsigned char ICSELB : 1;
  26953. unsigned char : 2;
  26954. unsigned char MD : 4;
  26955. #endif
  26956. } BIT;
  26957. } TMDR;
  26958. union {
  26959. unsigned char BYTE;
  26960. struct {
  26961. #ifdef __RX_LITTLE_ENDIAN__
  26962. unsigned char IOA : 4;
  26963. unsigned char IOB : 4;
  26964. #else
  26965. unsigned char IOB : 4;
  26966. unsigned char IOA : 4;
  26967. #endif
  26968. } BIT;
  26969. } TIOR;
  26970. char wk2[1];
  26971. union {
  26972. unsigned char BYTE;
  26973. struct {
  26974. #ifdef __RX_LITTLE_ENDIAN__
  26975. unsigned char TGIEA : 1;
  26976. unsigned char TGIEB : 1;
  26977. unsigned char : 2;
  26978. unsigned char TCIEV : 1;
  26979. unsigned char TCIEU : 1;
  26980. unsigned char : 1;
  26981. unsigned char TTGE : 1;
  26982. #else
  26983. unsigned char TTGE : 1;
  26984. unsigned char : 1;
  26985. unsigned char TCIEU : 1;
  26986. unsigned char TCIEV : 1;
  26987. unsigned char : 2;
  26988. unsigned char TGIEB : 1;
  26989. unsigned char TGIEA : 1;
  26990. #endif
  26991. } BIT;
  26992. } TIER;
  26993. union {
  26994. unsigned char BYTE;
  26995. struct {
  26996. #ifdef __RX_LITTLE_ENDIAN__
  26997. unsigned char TGFA : 1;
  26998. unsigned char TGFB : 1;
  26999. unsigned char : 2;
  27000. unsigned char TCFV : 1;
  27001. unsigned char TCFU : 1;
  27002. unsigned char : 1;
  27003. unsigned char TCFD : 1;
  27004. #else
  27005. unsigned char TCFD : 1;
  27006. unsigned char : 1;
  27007. unsigned char TCFU : 1;
  27008. unsigned char TCFV : 1;
  27009. unsigned char : 2;
  27010. unsigned char TGFB : 1;
  27011. unsigned char TGFA : 1;
  27012. #endif
  27013. } BIT;
  27014. } TSR;
  27015. unsigned short TCNT;
  27016. unsigned short TGRA;
  27017. unsigned short TGRB;
  27018. } st_tpu1_t;
  27019. typedef struct st_tpu2 {
  27020. union {
  27021. unsigned char BYTE;
  27022. struct {
  27023. #ifdef __RX_LITTLE_ENDIAN__
  27024. unsigned char NFAEN : 1;
  27025. unsigned char NFBEN : 1;
  27026. unsigned char : 2;
  27027. unsigned char NFCS : 2;
  27028. unsigned char : 2;
  27029. #else
  27030. unsigned char : 2;
  27031. unsigned char NFCS : 2;
  27032. unsigned char : 2;
  27033. unsigned char NFBEN : 1;
  27034. unsigned char NFAEN : 1;
  27035. #endif
  27036. } BIT;
  27037. } NFCR;
  27038. char wk0[37];
  27039. union {
  27040. unsigned char BYTE;
  27041. struct {
  27042. #ifdef __RX_LITTLE_ENDIAN__
  27043. unsigned char TPSC : 3;
  27044. unsigned char CKEG : 2;
  27045. unsigned char CCLR : 2;
  27046. unsigned char : 1;
  27047. #else
  27048. unsigned char : 1;
  27049. unsigned char CCLR : 2;
  27050. unsigned char CKEG : 2;
  27051. unsigned char TPSC : 3;
  27052. #endif
  27053. } BIT;
  27054. } TCR;
  27055. union {
  27056. unsigned char BYTE;
  27057. struct {
  27058. #ifdef __RX_LITTLE_ENDIAN__
  27059. unsigned char MD : 4;
  27060. unsigned char : 2;
  27061. unsigned char ICSELB : 1;
  27062. unsigned char : 1;
  27063. #else
  27064. unsigned char : 1;
  27065. unsigned char ICSELB : 1;
  27066. unsigned char : 2;
  27067. unsigned char MD : 4;
  27068. #endif
  27069. } BIT;
  27070. } TMDR;
  27071. union {
  27072. unsigned char BYTE;
  27073. struct {
  27074. #ifdef __RX_LITTLE_ENDIAN__
  27075. unsigned char IOA : 4;
  27076. unsigned char IOB : 4;
  27077. #else
  27078. unsigned char IOB : 4;
  27079. unsigned char IOA : 4;
  27080. #endif
  27081. } BIT;
  27082. } TIOR;
  27083. char wk1[1];
  27084. union {
  27085. unsigned char BYTE;
  27086. struct {
  27087. #ifdef __RX_LITTLE_ENDIAN__
  27088. unsigned char TGIEA : 1;
  27089. unsigned char TGIEB : 1;
  27090. unsigned char : 2;
  27091. unsigned char TCIEV : 1;
  27092. unsigned char TCIEU : 1;
  27093. unsigned char : 1;
  27094. unsigned char TTGE : 1;
  27095. #else
  27096. unsigned char TTGE : 1;
  27097. unsigned char : 1;
  27098. unsigned char TCIEU : 1;
  27099. unsigned char TCIEV : 1;
  27100. unsigned char : 2;
  27101. unsigned char TGIEB : 1;
  27102. unsigned char TGIEA : 1;
  27103. #endif
  27104. } BIT;
  27105. } TIER;
  27106. union {
  27107. unsigned char BYTE;
  27108. struct {
  27109. #ifdef __RX_LITTLE_ENDIAN__
  27110. unsigned char TGFA : 1;
  27111. unsigned char TGFB : 1;
  27112. unsigned char : 2;
  27113. unsigned char TCFV : 1;
  27114. unsigned char TCFU : 1;
  27115. unsigned char : 1;
  27116. unsigned char TCFD : 1;
  27117. #else
  27118. unsigned char TCFD : 1;
  27119. unsigned char : 1;
  27120. unsigned char TCFU : 1;
  27121. unsigned char TCFV : 1;
  27122. unsigned char : 2;
  27123. unsigned char TGFB : 1;
  27124. unsigned char TGFA : 1;
  27125. #endif
  27126. } BIT;
  27127. } TSR;
  27128. unsigned short TCNT;
  27129. unsigned short TGRA;
  27130. unsigned short TGRB;
  27131. } st_tpu2_t;
  27132. typedef struct st_tpu3 {
  27133. char wk0[1];
  27134. union {
  27135. unsigned char BYTE;
  27136. struct {
  27137. #ifdef __RX_LITTLE_ENDIAN__
  27138. unsigned char NFAEN : 1;
  27139. unsigned char NFBEN : 1;
  27140. unsigned char NFCEN : 1;
  27141. unsigned char NFDEN : 1;
  27142. unsigned char NFCS : 2;
  27143. unsigned char : 2;
  27144. #else
  27145. unsigned char : 2;
  27146. unsigned char NFCS : 2;
  27147. unsigned char NFDEN : 1;
  27148. unsigned char NFCEN : 1;
  27149. unsigned char NFBEN : 1;
  27150. unsigned char NFAEN : 1;
  27151. #endif
  27152. } BIT;
  27153. } NFCR;
  27154. char wk1[52];
  27155. union {
  27156. unsigned char BYTE;
  27157. struct {
  27158. #ifdef __RX_LITTLE_ENDIAN__
  27159. unsigned char TPSC : 3;
  27160. unsigned char CKEG : 2;
  27161. unsigned char CCLR : 3;
  27162. #else
  27163. unsigned char CCLR : 3;
  27164. unsigned char CKEG : 2;
  27165. unsigned char TPSC : 3;
  27166. #endif
  27167. } BIT;
  27168. } TCR;
  27169. union {
  27170. unsigned char BYTE;
  27171. struct {
  27172. #ifdef __RX_LITTLE_ENDIAN__
  27173. unsigned char MD : 4;
  27174. unsigned char BFA : 1;
  27175. unsigned char BFB : 1;
  27176. unsigned char ICSELB : 1;
  27177. unsigned char ICSELD : 1;
  27178. #else
  27179. unsigned char ICSELD : 1;
  27180. unsigned char ICSELB : 1;
  27181. unsigned char BFB : 1;
  27182. unsigned char BFA : 1;
  27183. unsigned char MD : 4;
  27184. #endif
  27185. } BIT;
  27186. } TMDR;
  27187. union {
  27188. unsigned char BYTE;
  27189. struct {
  27190. #ifdef __RX_LITTLE_ENDIAN__
  27191. unsigned char IOA : 4;
  27192. unsigned char IOB : 4;
  27193. #else
  27194. unsigned char IOB : 4;
  27195. unsigned char IOA : 4;
  27196. #endif
  27197. } BIT;
  27198. } TIORH;
  27199. union {
  27200. unsigned char BYTE;
  27201. struct {
  27202. #ifdef __RX_LITTLE_ENDIAN__
  27203. unsigned char IOC : 4;
  27204. unsigned char IOD : 4;
  27205. #else
  27206. unsigned char IOD : 4;
  27207. unsigned char IOC : 4;
  27208. #endif
  27209. } BIT;
  27210. } TIORL;
  27211. union {
  27212. unsigned char BYTE;
  27213. struct {
  27214. #ifdef __RX_LITTLE_ENDIAN__
  27215. unsigned char TGIEA : 1;
  27216. unsigned char TGIEB : 1;
  27217. unsigned char TGIEC : 1;
  27218. unsigned char TGIED : 1;
  27219. unsigned char TCIEV : 1;
  27220. unsigned char : 2;
  27221. unsigned char TTGE : 1;
  27222. #else
  27223. unsigned char TTGE : 1;
  27224. unsigned char : 2;
  27225. unsigned char TCIEV : 1;
  27226. unsigned char TGIED : 1;
  27227. unsigned char TGIEC : 1;
  27228. unsigned char TGIEB : 1;
  27229. unsigned char TGIEA : 1;
  27230. #endif
  27231. } BIT;
  27232. } TIER;
  27233. union {
  27234. unsigned char BYTE;
  27235. struct {
  27236. #ifdef __RX_LITTLE_ENDIAN__
  27237. unsigned char TGFA : 1;
  27238. unsigned char TGFB : 1;
  27239. unsigned char TGFC : 1;
  27240. unsigned char TGFD : 1;
  27241. unsigned char TCFV : 1;
  27242. unsigned char : 3;
  27243. #else
  27244. unsigned char : 3;
  27245. unsigned char TCFV : 1;
  27246. unsigned char TGFD : 1;
  27247. unsigned char TGFC : 1;
  27248. unsigned char TGFB : 1;
  27249. unsigned char TGFA : 1;
  27250. #endif
  27251. } BIT;
  27252. } TSR;
  27253. unsigned short TCNT;
  27254. unsigned short TGRA;
  27255. unsigned short TGRB;
  27256. unsigned short TGRC;
  27257. unsigned short TGRD;
  27258. } st_tpu3_t;
  27259. typedef struct st_tpu4 {
  27260. union {
  27261. unsigned char BYTE;
  27262. struct {
  27263. #ifdef __RX_LITTLE_ENDIAN__
  27264. unsigned char NFAEN : 1;
  27265. unsigned char NFBEN : 1;
  27266. unsigned char : 2;
  27267. unsigned char NFCS : 2;
  27268. unsigned char : 2;
  27269. #else
  27270. unsigned char : 2;
  27271. unsigned char NFCS : 2;
  27272. unsigned char : 2;
  27273. unsigned char NFBEN : 1;
  27274. unsigned char NFAEN : 1;
  27275. #endif
  27276. } BIT;
  27277. } NFCR;
  27278. char wk0[67];
  27279. union {
  27280. unsigned char BYTE;
  27281. struct {
  27282. #ifdef __RX_LITTLE_ENDIAN__
  27283. unsigned char TPSC : 3;
  27284. unsigned char CKEG : 2;
  27285. unsigned char CCLR : 2;
  27286. unsigned char : 1;
  27287. #else
  27288. unsigned char : 1;
  27289. unsigned char CCLR : 2;
  27290. unsigned char CKEG : 2;
  27291. unsigned char TPSC : 3;
  27292. #endif
  27293. } BIT;
  27294. } TCR;
  27295. union {
  27296. unsigned char BYTE;
  27297. struct {
  27298. #ifdef __RX_LITTLE_ENDIAN__
  27299. unsigned char MD : 4;
  27300. unsigned char : 2;
  27301. unsigned char ICSELB : 1;
  27302. unsigned char : 1;
  27303. #else
  27304. unsigned char : 1;
  27305. unsigned char ICSELB : 1;
  27306. unsigned char : 2;
  27307. unsigned char MD : 4;
  27308. #endif
  27309. } BIT;
  27310. } TMDR;
  27311. union {
  27312. unsigned char BYTE;
  27313. struct {
  27314. #ifdef __RX_LITTLE_ENDIAN__
  27315. unsigned char IOA : 4;
  27316. unsigned char IOB : 4;
  27317. #else
  27318. unsigned char IOB : 4;
  27319. unsigned char IOA : 4;
  27320. #endif
  27321. } BIT;
  27322. } TIOR;
  27323. char wk1[1];
  27324. union {
  27325. unsigned char BYTE;
  27326. struct {
  27327. #ifdef __RX_LITTLE_ENDIAN__
  27328. unsigned char TGIEA : 1;
  27329. unsigned char TGIEB : 1;
  27330. unsigned char : 2;
  27331. unsigned char TCIEV : 1;
  27332. unsigned char TCIEU : 1;
  27333. unsigned char : 1;
  27334. unsigned char TTGE : 1;
  27335. #else
  27336. unsigned char TTGE : 1;
  27337. unsigned char : 1;
  27338. unsigned char TCIEU : 1;
  27339. unsigned char TCIEV : 1;
  27340. unsigned char : 2;
  27341. unsigned char TGIEB : 1;
  27342. unsigned char TGIEA : 1;
  27343. #endif
  27344. } BIT;
  27345. } TIER;
  27346. union {
  27347. unsigned char BYTE;
  27348. struct {
  27349. #ifdef __RX_LITTLE_ENDIAN__
  27350. unsigned char TGFA : 1;
  27351. unsigned char TGFB : 1;
  27352. unsigned char : 2;
  27353. unsigned char TCFV : 1;
  27354. unsigned char TCFU : 1;
  27355. unsigned char : 1;
  27356. unsigned char TCFD : 1;
  27357. #else
  27358. unsigned char TCFD : 1;
  27359. unsigned char : 1;
  27360. unsigned char TCFU : 1;
  27361. unsigned char TCFV : 1;
  27362. unsigned char : 2;
  27363. unsigned char TGFB : 1;
  27364. unsigned char TGFA : 1;
  27365. #endif
  27366. } BIT;
  27367. } TSR;
  27368. unsigned short TCNT;
  27369. unsigned short TGRA;
  27370. unsigned short TGRB;
  27371. } st_tpu4_t;
  27372. typedef struct st_tpu5 {
  27373. char wk0[1];
  27374. union {
  27375. unsigned char BYTE;
  27376. struct {
  27377. #ifdef __RX_LITTLE_ENDIAN__
  27378. unsigned char NFAEN : 1;
  27379. unsigned char NFBEN : 1;
  27380. unsigned char : 2;
  27381. unsigned char NFCS : 2;
  27382. unsigned char : 2;
  27383. #else
  27384. unsigned char : 2;
  27385. unsigned char NFCS : 2;
  27386. unsigned char : 2;
  27387. unsigned char NFBEN : 1;
  27388. unsigned char NFAEN : 1;
  27389. #endif
  27390. } BIT;
  27391. } NFCR;
  27392. char wk1[82];
  27393. union {
  27394. unsigned char BYTE;
  27395. struct {
  27396. #ifdef __RX_LITTLE_ENDIAN__
  27397. unsigned char TPSC : 3;
  27398. unsigned char CKEG : 2;
  27399. unsigned char CCLR : 2;
  27400. unsigned char : 1;
  27401. #else
  27402. unsigned char : 1;
  27403. unsigned char CCLR : 2;
  27404. unsigned char CKEG : 2;
  27405. unsigned char TPSC : 3;
  27406. #endif
  27407. } BIT;
  27408. } TCR;
  27409. union {
  27410. unsigned char BYTE;
  27411. struct {
  27412. #ifdef __RX_LITTLE_ENDIAN__
  27413. unsigned char MD : 4;
  27414. unsigned char : 2;
  27415. unsigned char ICSELB : 1;
  27416. unsigned char : 1;
  27417. #else
  27418. unsigned char : 1;
  27419. unsigned char ICSELB : 1;
  27420. unsigned char : 2;
  27421. unsigned char MD : 4;
  27422. #endif
  27423. } BIT;
  27424. } TMDR;
  27425. union {
  27426. unsigned char BYTE;
  27427. struct {
  27428. #ifdef __RX_LITTLE_ENDIAN__
  27429. unsigned char IOA : 4;
  27430. unsigned char IOB : 4;
  27431. #else
  27432. unsigned char IOB : 4;
  27433. unsigned char IOA : 4;
  27434. #endif
  27435. } BIT;
  27436. } TIOR;
  27437. char wk2[1];
  27438. union {
  27439. unsigned char BYTE;
  27440. struct {
  27441. #ifdef __RX_LITTLE_ENDIAN__
  27442. unsigned char TGIEA : 1;
  27443. unsigned char TGIEB : 1;
  27444. unsigned char : 2;
  27445. unsigned char TCIEV : 1;
  27446. unsigned char TCIEU : 1;
  27447. unsigned char : 2;
  27448. #else
  27449. unsigned char : 2;
  27450. unsigned char TCIEU : 1;
  27451. unsigned char TCIEV : 1;
  27452. unsigned char : 2;
  27453. unsigned char TGIEB : 1;
  27454. unsigned char TGIEA : 1;
  27455. #endif
  27456. } BIT;
  27457. } TIER;
  27458. union {
  27459. unsigned char BYTE;
  27460. struct {
  27461. #ifdef __RX_LITTLE_ENDIAN__
  27462. unsigned char TGFA : 1;
  27463. unsigned char TGFB : 1;
  27464. unsigned char : 2;
  27465. unsigned char TCFV : 1;
  27466. unsigned char TCFU : 1;
  27467. unsigned char : 1;
  27468. unsigned char TCFD : 1;
  27469. #else
  27470. unsigned char TCFD : 1;
  27471. unsigned char : 1;
  27472. unsigned char TCFU : 1;
  27473. unsigned char TCFV : 1;
  27474. unsigned char : 2;
  27475. unsigned char TGFB : 1;
  27476. unsigned char TGFA : 1;
  27477. #endif
  27478. } BIT;
  27479. } TSR;
  27480. unsigned short TCNT;
  27481. unsigned short TGRA;
  27482. unsigned short TGRB;
  27483. } st_tpu5_t;
  27484. typedef struct st_tpua {
  27485. union {
  27486. unsigned char BYTE;
  27487. struct {
  27488. #ifdef __RX_LITTLE_ENDIAN__
  27489. unsigned char CST0 : 1;
  27490. unsigned char CST1 : 1;
  27491. unsigned char CST2 : 1;
  27492. unsigned char CST3 : 1;
  27493. unsigned char CST4 : 1;
  27494. unsigned char CST5 : 1;
  27495. unsigned char : 2;
  27496. #else
  27497. unsigned char : 2;
  27498. unsigned char CST5 : 1;
  27499. unsigned char CST4 : 1;
  27500. unsigned char CST3 : 1;
  27501. unsigned char CST2 : 1;
  27502. unsigned char CST1 : 1;
  27503. unsigned char CST0 : 1;
  27504. #endif
  27505. } BIT;
  27506. } TSTR;
  27507. union {
  27508. unsigned char BYTE;
  27509. struct {
  27510. #ifdef __RX_LITTLE_ENDIAN__
  27511. unsigned char SYNC0 : 1;
  27512. unsigned char SYNC1 : 1;
  27513. unsigned char SYNC2 : 1;
  27514. unsigned char SYNC3 : 1;
  27515. unsigned char SYNC4 : 1;
  27516. unsigned char SYNC5 : 1;
  27517. unsigned char : 2;
  27518. #else
  27519. unsigned char : 2;
  27520. unsigned char SYNC5 : 1;
  27521. unsigned char SYNC4 : 1;
  27522. unsigned char SYNC3 : 1;
  27523. unsigned char SYNC2 : 1;
  27524. unsigned char SYNC1 : 1;
  27525. unsigned char SYNC0 : 1;
  27526. #endif
  27527. } BIT;
  27528. } TSYR;
  27529. } st_tpua_t;
  27530. typedef struct st_usb {
  27531. union {
  27532. unsigned long LONG;
  27533. struct {
  27534. #ifdef __RX_LITTLE_ENDIAN__
  27535. unsigned long SRPC0 : 1;
  27536. unsigned long RPUE0 : 1;
  27537. unsigned long : 1;
  27538. unsigned long DRPD0 : 1;
  27539. unsigned long FIXPHY0 : 1;
  27540. unsigned long : 11;
  27541. unsigned long DP0 : 1;
  27542. unsigned long DM0 : 1;
  27543. unsigned long : 2;
  27544. unsigned long DOVCA0 : 1;
  27545. unsigned long DOVCB0 : 1;
  27546. unsigned long : 1;
  27547. unsigned long DVBSTS0 : 1;
  27548. unsigned long : 8;
  27549. #else
  27550. unsigned long : 8;
  27551. unsigned long DVBSTS0 : 1;
  27552. unsigned long : 1;
  27553. unsigned long DOVCB0 : 1;
  27554. unsigned long DOVCA0 : 1;
  27555. unsigned long : 2;
  27556. unsigned long DM0 : 1;
  27557. unsigned long DP0 : 1;
  27558. unsigned long : 11;
  27559. unsigned long FIXPHY0 : 1;
  27560. unsigned long DRPD0 : 1;
  27561. unsigned long : 1;
  27562. unsigned long RPUE0 : 1;
  27563. unsigned long SRPC0 : 1;
  27564. #endif
  27565. } BIT;
  27566. } DPUSR0R;
  27567. union {
  27568. unsigned long LONG;
  27569. struct {
  27570. #ifdef __RX_LITTLE_ENDIAN__
  27571. unsigned long DPINTE0 : 1;
  27572. unsigned long DMINTE0 : 1;
  27573. unsigned long : 2;
  27574. unsigned long DOVRCRAE0 : 1;
  27575. unsigned long DOVRCRBE0 : 1;
  27576. unsigned long : 1;
  27577. unsigned long DVBSE0 : 1;
  27578. unsigned long : 8;
  27579. unsigned long DPINT0 : 1;
  27580. unsigned long DMINT0 : 1;
  27581. unsigned long : 2;
  27582. unsigned long DOVRCRA0 : 1;
  27583. unsigned long DOVRCRB0 : 1;
  27584. unsigned long : 1;
  27585. unsigned long DVBINT0 : 1;
  27586. unsigned long : 8;
  27587. #else
  27588. unsigned long : 8;
  27589. unsigned long DVBINT0 : 1;
  27590. unsigned long : 1;
  27591. unsigned long DOVRCRB0 : 1;
  27592. unsigned long DOVRCRA0 : 1;
  27593. unsigned long : 2;
  27594. unsigned long DMINT0 : 1;
  27595. unsigned long DPINT0 : 1;
  27596. unsigned long : 8;
  27597. unsigned long DVBSE0 : 1;
  27598. unsigned long : 1;
  27599. unsigned long DOVRCRBE0 : 1;
  27600. unsigned long DOVRCRAE0 : 1;
  27601. unsigned long : 2;
  27602. unsigned long DMINTE0 : 1;
  27603. unsigned long DPINTE0 : 1;
  27604. #endif
  27605. } BIT;
  27606. } DPUSR1R;
  27607. } st_usb_t;
  27608. typedef struct st_usb0 {
  27609. union {
  27610. unsigned short WORD;
  27611. #ifdef IODEFINE_H_HISTORY
  27612. struct {
  27613. #ifdef __RX_LITTLE_ENDIAN__
  27614. unsigned short USBE : 1;
  27615. unsigned short : 3;
  27616. unsigned short DPRPU : 1;
  27617. unsigned short DRPD : 1;
  27618. unsigned short DCFM : 1;
  27619. unsigned short : 3;
  27620. unsigned short SCKE : 1;
  27621. unsigned short : 5;
  27622. #else
  27623. unsigned short : 5;
  27624. unsigned short SCKE : 1;
  27625. unsigned short : 3;
  27626. unsigned short DCFM : 1;
  27627. unsigned short DRPD : 1;
  27628. unsigned short DPRPU : 1;
  27629. unsigned short : 3;
  27630. unsigned short USBE : 1;
  27631. #endif
  27632. } BIT;
  27633. #endif
  27634. } SYSCFG;
  27635. char wk0[2];
  27636. union {
  27637. unsigned short WORD;
  27638. struct {
  27639. #ifdef __RX_LITTLE_ENDIAN__
  27640. unsigned short LNST : 2;
  27641. unsigned short IDMON : 1;
  27642. unsigned short : 2;
  27643. unsigned short SOFEA : 1;
  27644. unsigned short HTACT : 1;
  27645. unsigned short : 7;
  27646. unsigned short OVCMON : 2;
  27647. #else
  27648. unsigned short OVCMON : 2;
  27649. unsigned short : 7;
  27650. unsigned short HTACT : 1;
  27651. unsigned short SOFEA : 1;
  27652. unsigned short : 2;
  27653. unsigned short IDMON : 1;
  27654. unsigned short LNST : 2;
  27655. #endif
  27656. } BIT;
  27657. } SYSSTS0;
  27658. char wk1[2];
  27659. union {
  27660. unsigned short WORD;
  27661. #ifdef IODEFINE_H_HISTORY
  27662. struct {
  27663. #ifdef __RX_LITTLE_ENDIAN__
  27664. unsigned short RHST : 3;
  27665. unsigned short : 1;
  27666. unsigned short UACT : 1;
  27667. unsigned short RESUME : 1;
  27668. unsigned short USBRST : 1;
  27669. unsigned short RWUPE : 1;
  27670. unsigned short WKUP : 1;
  27671. unsigned short VBUSEN : 1;
  27672. unsigned short EXICEN : 1;
  27673. unsigned short HNPBTOA : 1;
  27674. unsigned short : 4;
  27675. #else
  27676. unsigned short : 4;
  27677. unsigned short HNPBTOA : 1;
  27678. unsigned short EXICEN : 1;
  27679. unsigned short VBUSEN : 1;
  27680. unsigned short WKUP : 1;
  27681. unsigned short RWUPE : 1;
  27682. unsigned short USBRST : 1;
  27683. unsigned short RESUME : 1;
  27684. unsigned short UACT : 1;
  27685. unsigned short : 1;
  27686. unsigned short RHST : 3;
  27687. #endif
  27688. } BIT;
  27689. #endif
  27690. } DVSTCTR0;
  27691. char wk2[10];
  27692. union {
  27693. unsigned short WORD;
  27694. struct {
  27695. unsigned char L;
  27696. unsigned char H;
  27697. } BYTE;
  27698. } CFIFO;
  27699. char wk3[2];
  27700. union {
  27701. unsigned short WORD;
  27702. struct {
  27703. unsigned char L;
  27704. unsigned char H;
  27705. } BYTE;
  27706. } D0FIFO;
  27707. char wk4[2];
  27708. union {
  27709. unsigned short WORD;
  27710. struct {
  27711. unsigned char L;
  27712. unsigned char H;
  27713. } BYTE;
  27714. } D1FIFO;
  27715. char wk5[2];
  27716. union {
  27717. unsigned short WORD;
  27718. #ifdef IODEFINE_H_HISTORY
  27719. struct {
  27720. #ifdef __RX_LITTLE_ENDIAN__
  27721. unsigned short CURPIPE : 4;
  27722. unsigned short : 1;
  27723. unsigned short ISEL : 1;
  27724. unsigned short : 2;
  27725. unsigned short BIGEND : 1;
  27726. unsigned short : 1;
  27727. unsigned short MBW : 1;
  27728. unsigned short : 3;
  27729. unsigned short REW : 1;
  27730. unsigned short RCNT : 1;
  27731. #else
  27732. unsigned short RCNT : 1;
  27733. unsigned short REW : 1;
  27734. unsigned short : 3;
  27735. unsigned short MBW : 1;
  27736. unsigned short : 1;
  27737. unsigned short BIGEND : 1;
  27738. unsigned short : 2;
  27739. unsigned short ISEL : 1;
  27740. unsigned short : 1;
  27741. unsigned short CURPIPE : 4;
  27742. #endif
  27743. } BIT;
  27744. #endif
  27745. } CFIFOSEL;
  27746. union {
  27747. unsigned short WORD;
  27748. #ifdef IODEFINE_H_HISTORY
  27749. struct {
  27750. #ifdef __RX_LITTLE_ENDIAN__
  27751. unsigned short DTLN : 9;
  27752. unsigned short : 4;
  27753. unsigned short FRDY : 1;
  27754. unsigned short BCLR : 1;
  27755. unsigned short BVAL : 1;
  27756. #else
  27757. unsigned short BVAL : 1;
  27758. unsigned short BCLR : 1;
  27759. unsigned short FRDY : 1;
  27760. unsigned short : 4;
  27761. unsigned short DTLN : 9;
  27762. #endif
  27763. } BIT;
  27764. #endif
  27765. } CFIFOCTR;
  27766. char wk6[4];
  27767. union {
  27768. unsigned short WORD;
  27769. #ifdef IODEFINE_H_HISTORY
  27770. struct {
  27771. #ifdef __RX_LITTLE_ENDIAN__
  27772. unsigned short CURPIPE : 4;
  27773. unsigned short : 4;
  27774. unsigned short BIGEND : 1;
  27775. unsigned short : 1;
  27776. unsigned short MBW : 1;
  27777. unsigned short : 1;
  27778. unsigned short DREQE : 1;
  27779. unsigned short DCLRM : 1;
  27780. unsigned short REW : 1;
  27781. unsigned short RCNT : 1;
  27782. #else
  27783. unsigned short RCNT : 1;
  27784. unsigned short REW : 1;
  27785. unsigned short DCLRM : 1;
  27786. unsigned short DREQE : 1;
  27787. unsigned short : 1;
  27788. unsigned short MBW : 1;
  27789. unsigned short : 1;
  27790. unsigned short BIGEND : 1;
  27791. unsigned short : 4;
  27792. unsigned short CURPIPE : 4;
  27793. #endif
  27794. } BIT;
  27795. #endif
  27796. } D0FIFOSEL;
  27797. union {
  27798. unsigned short WORD;
  27799. #ifdef IODEFINE_H_HISTORY
  27800. struct {
  27801. #ifdef __RX_LITTLE_ENDIAN__
  27802. unsigned short DTLN : 9;
  27803. unsigned short : 4;
  27804. unsigned short FRDY : 1;
  27805. unsigned short BCLR : 1;
  27806. unsigned short BVAL : 1;
  27807. #else
  27808. unsigned short BVAL : 1;
  27809. unsigned short BCLR : 1;
  27810. unsigned short FRDY : 1;
  27811. unsigned short : 4;
  27812. unsigned short DTLN : 9;
  27813. #endif
  27814. } BIT;
  27815. #endif
  27816. } D0FIFOCTR;
  27817. union {
  27818. unsigned short WORD;
  27819. #ifdef IODEFINE_H_HISTORY
  27820. struct {
  27821. #ifdef __RX_LITTLE_ENDIAN__
  27822. unsigned short CURPIPE : 4;
  27823. unsigned short : 4;
  27824. unsigned short BIGEND : 1;
  27825. unsigned short : 1;
  27826. unsigned short MBW : 1;
  27827. unsigned short : 1;
  27828. unsigned short DREQE : 1;
  27829. unsigned short DCLRM : 1;
  27830. unsigned short REW : 1;
  27831. unsigned short RCNT : 1;
  27832. #else
  27833. unsigned short RCNT : 1;
  27834. unsigned short REW : 1;
  27835. unsigned short DCLRM : 1;
  27836. unsigned short DREQE : 1;
  27837. unsigned short : 1;
  27838. unsigned short MBW : 1;
  27839. unsigned short : 1;
  27840. unsigned short BIGEND : 1;
  27841. unsigned short : 4;
  27842. unsigned short CURPIPE : 4;
  27843. #endif
  27844. } BIT;
  27845. #endif
  27846. } D1FIFOSEL;
  27847. union {
  27848. unsigned short WORD;
  27849. #ifdef IODEFINE_H_HISTORY
  27850. struct {
  27851. #ifdef __RX_LITTLE_ENDIAN__
  27852. unsigned short DTLN : 9;
  27853. unsigned short : 4;
  27854. unsigned short FRDY : 1;
  27855. unsigned short BCLR : 1;
  27856. unsigned short BVAL : 1;
  27857. #else
  27858. unsigned short BVAL : 1;
  27859. unsigned short BCLR : 1;
  27860. unsigned short FRDY : 1;
  27861. unsigned short : 4;
  27862. unsigned short DTLN : 9;
  27863. #endif
  27864. } BIT;
  27865. #endif
  27866. } D1FIFOCTR;
  27867. union {
  27868. unsigned short WORD;
  27869. #ifdef IODEFINE_H_HISTORY
  27870. struct {
  27871. #ifdef __RX_LITTLE_ENDIAN__
  27872. unsigned short : 8;
  27873. unsigned short BRDYE : 1;
  27874. unsigned short NRDYE : 1;
  27875. unsigned short BEMPE : 1;
  27876. unsigned short CTRE : 1;
  27877. unsigned short DVSE : 1;
  27878. unsigned short SOFE : 1;
  27879. unsigned short RSME : 1;
  27880. unsigned short VBSE : 1;
  27881. #else
  27882. unsigned short VBSE : 1;
  27883. unsigned short RSME : 1;
  27884. unsigned short SOFE : 1;
  27885. unsigned short DVSE : 1;
  27886. unsigned short CTRE : 1;
  27887. unsigned short BEMPE : 1;
  27888. unsigned short NRDYE : 1;
  27889. unsigned short BRDYE : 1;
  27890. unsigned short : 8;
  27891. #endif
  27892. } BIT;
  27893. #endif
  27894. } INTENB0;
  27895. union {
  27896. unsigned short WORD;
  27897. #ifdef IODEFINE_H_HISTORY
  27898. struct {
  27899. #ifdef __RX_LITTLE_ENDIAN__
  27900. unsigned short : 4;
  27901. unsigned short SACKE : 1;
  27902. unsigned short SIGNE : 1;
  27903. unsigned short EOFERRE : 1;
  27904. unsigned short : 4;
  27905. unsigned short ATTCHE : 1;
  27906. unsigned short DTCHE : 1;
  27907. unsigned short : 1;
  27908. unsigned short BCHGE : 1;
  27909. unsigned short OVRCRE : 1;
  27910. #else
  27911. unsigned short OVRCRE : 1;
  27912. unsigned short BCHGE : 1;
  27913. unsigned short : 1;
  27914. unsigned short DTCHE : 1;
  27915. unsigned short ATTCHE : 1;
  27916. unsigned short : 4;
  27917. unsigned short EOFERRE : 1;
  27918. unsigned short SIGNE : 1;
  27919. unsigned short SACKE : 1;
  27920. unsigned short : 4;
  27921. #endif
  27922. } BIT;
  27923. #endif
  27924. } INTENB1;
  27925. char wk7[2];
  27926. union {
  27927. unsigned short WORD;
  27928. struct {
  27929. #ifdef __RX_LITTLE_ENDIAN__
  27930. unsigned short PIPE0BRDYE : 1;
  27931. unsigned short PIPE1BRDYE : 1;
  27932. unsigned short PIPE2BRDYE : 1;
  27933. unsigned short PIPE3BRDYE : 1;
  27934. unsigned short PIPE4BRDYE : 1;
  27935. unsigned short PIPE5BRDYE : 1;
  27936. unsigned short PIPE6BRDYE : 1;
  27937. unsigned short PIPE7BRDYE : 1;
  27938. unsigned short PIPE8BRDYE : 1;
  27939. unsigned short PIPE9BRDYE : 1;
  27940. unsigned short : 6;
  27941. #else
  27942. unsigned short : 6;
  27943. unsigned short PIPE9BRDYE : 1;
  27944. unsigned short PIPE8BRDYE : 1;
  27945. unsigned short PIPE7BRDYE : 1;
  27946. unsigned short PIPE6BRDYE : 1;
  27947. unsigned short PIPE5BRDYE : 1;
  27948. unsigned short PIPE4BRDYE : 1;
  27949. unsigned short PIPE3BRDYE : 1;
  27950. unsigned short PIPE2BRDYE : 1;
  27951. unsigned short PIPE1BRDYE : 1;
  27952. unsigned short PIPE0BRDYE : 1;
  27953. #endif
  27954. } BIT;
  27955. } BRDYENB;
  27956. union {
  27957. unsigned short WORD;
  27958. struct {
  27959. #ifdef __RX_LITTLE_ENDIAN__
  27960. unsigned short PIPE0NRDYE : 1;
  27961. unsigned short PIPE1NRDYE : 1;
  27962. unsigned short PIPE2NRDYE : 1;
  27963. unsigned short PIPE3NRDYE : 1;
  27964. unsigned short PIPE4NRDYE : 1;
  27965. unsigned short PIPE5NRDYE : 1;
  27966. unsigned short PIPE6NRDYE : 1;
  27967. unsigned short PIPE7NRDYE : 1;
  27968. unsigned short PIPE8NRDYE : 1;
  27969. unsigned short PIPE9NRDYE : 1;
  27970. unsigned short : 6;
  27971. #else
  27972. unsigned short : 6;
  27973. unsigned short PIPE9NRDYE : 1;
  27974. unsigned short PIPE8NRDYE : 1;
  27975. unsigned short PIPE7NRDYE : 1;
  27976. unsigned short PIPE6NRDYE : 1;
  27977. unsigned short PIPE5NRDYE : 1;
  27978. unsigned short PIPE4NRDYE : 1;
  27979. unsigned short PIPE3NRDYE : 1;
  27980. unsigned short PIPE2NRDYE : 1;
  27981. unsigned short PIPE1NRDYE : 1;
  27982. unsigned short PIPE0NRDYE : 1;
  27983. #endif
  27984. } BIT;
  27985. } NRDYENB;
  27986. union {
  27987. unsigned short WORD;
  27988. struct {
  27989. #ifdef __RX_LITTLE_ENDIAN__
  27990. unsigned short PIPE0BEMPE : 1;
  27991. unsigned short PIPE1BEMPE : 1;
  27992. unsigned short PIPE2BEMPE : 1;
  27993. unsigned short PIPE3BEMPE : 1;
  27994. unsigned short PIPE4BEMPE : 1;
  27995. unsigned short PIPE5BEMPE : 1;
  27996. unsigned short PIPE6BEMPE : 1;
  27997. unsigned short PIPE7BEMPE : 1;
  27998. unsigned short PIPE8BEMPE : 1;
  27999. unsigned short PIPE9BEMPE : 1;
  28000. unsigned short : 6;
  28001. #else
  28002. unsigned short : 6;
  28003. unsigned short PIPE9BEMPE : 1;
  28004. unsigned short PIPE8BEMPE : 1;
  28005. unsigned short PIPE7BEMPE : 1;
  28006. unsigned short PIPE6BEMPE : 1;
  28007. unsigned short PIPE5BEMPE : 1;
  28008. unsigned short PIPE4BEMPE : 1;
  28009. unsigned short PIPE3BEMPE : 1;
  28010. unsigned short PIPE2BEMPE : 1;
  28011. unsigned short PIPE1BEMPE : 1;
  28012. unsigned short PIPE0BEMPE : 1;
  28013. #endif
  28014. } BIT;
  28015. } BEMPENB;
  28016. union {
  28017. unsigned short WORD;
  28018. #ifdef IODEFINE_H_HISTORY
  28019. struct {
  28020. #ifdef __RX_LITTLE_ENDIAN__
  28021. unsigned short : 4;
  28022. unsigned short EDGESTS : 1;
  28023. unsigned short : 1;
  28024. unsigned short BRDYM : 1;
  28025. unsigned short : 1;
  28026. unsigned short TRNENSEL : 1;
  28027. unsigned short : 7;
  28028. #else
  28029. unsigned short : 7;
  28030. unsigned short TRNENSEL : 1;
  28031. unsigned short : 1;
  28032. unsigned short BRDYM : 1;
  28033. unsigned short : 1;
  28034. unsigned short EDGESTS : 1;
  28035. unsigned short : 4;
  28036. #endif
  28037. } BIT;
  28038. #endif
  28039. } SOFCFG;
  28040. char wk8[2];
  28041. union {
  28042. unsigned short WORD;
  28043. #ifdef IODEFINE_H_HISTORY
  28044. struct {
  28045. #ifdef __RX_LITTLE_ENDIAN__
  28046. unsigned short CTSQ : 3;
  28047. unsigned short VALID : 1;
  28048. unsigned short DVSQ : 3;
  28049. unsigned short VBSTS : 1;
  28050. unsigned short BRDY : 1;
  28051. unsigned short NRDY : 1;
  28052. unsigned short BEMP : 1;
  28053. unsigned short CTRT : 1;
  28054. unsigned short DVST : 1;
  28055. unsigned short SOFR : 1;
  28056. unsigned short RESM : 1;
  28057. unsigned short VBINT : 1;
  28058. #else
  28059. unsigned short VBINT : 1;
  28060. unsigned short RESM : 1;
  28061. unsigned short SOFR : 1;
  28062. unsigned short DVST : 1;
  28063. unsigned short CTRT : 1;
  28064. unsigned short BEMP : 1;
  28065. unsigned short NRDY : 1;
  28066. unsigned short BRDY : 1;
  28067. unsigned short VBSTS : 1;
  28068. unsigned short DVSQ : 3;
  28069. unsigned short VALID : 1;
  28070. unsigned short CTSQ : 3;
  28071. #endif
  28072. } BIT;
  28073. #endif
  28074. } INTSTS0;
  28075. union {
  28076. unsigned short WORD;
  28077. #ifdef IODEFINE_H_HISTORY
  28078. struct {
  28079. #ifdef __RX_LITTLE_ENDIAN__
  28080. unsigned short : 4;
  28081. unsigned short SACK : 1;
  28082. unsigned short SIGN : 1;
  28083. unsigned short EOFERR : 1;
  28084. unsigned short : 4;
  28085. unsigned short ATTCH : 1;
  28086. unsigned short DTCH : 1;
  28087. unsigned short : 1;
  28088. unsigned short BCHG : 1;
  28089. unsigned short OVRCR : 1;
  28090. #else
  28091. unsigned short OVRCR : 1;
  28092. unsigned short BCHG : 1;
  28093. unsigned short : 1;
  28094. unsigned short DTCH : 1;
  28095. unsigned short ATTCH : 1;
  28096. unsigned short : 4;
  28097. unsigned short EOFERR : 1;
  28098. unsigned short SIGN : 1;
  28099. unsigned short SACK : 1;
  28100. unsigned short : 4;
  28101. #endif
  28102. } BIT;
  28103. #endif
  28104. } INTSTS1;
  28105. char wk9[2];
  28106. union {
  28107. unsigned short WORD;
  28108. #ifdef IODEFINE_H_HISTORY
  28109. struct {
  28110. #ifdef __RX_LITTLE_ENDIAN__
  28111. unsigned short PIPE0BRDY : 1;
  28112. unsigned short PIPE1BRDY : 1;
  28113. unsigned short PIPE2BRDY : 1;
  28114. unsigned short PIPE3BRDY : 1;
  28115. unsigned short PIPE4BRDY : 1;
  28116. unsigned short PIPE5BRDY : 1;
  28117. unsigned short PIPE6BRDY : 1;
  28118. unsigned short PIPE7BRDY : 1;
  28119. unsigned short PIPE8BRDY : 1;
  28120. unsigned short PIPE9BRDY : 1;
  28121. unsigned short : 6;
  28122. #else
  28123. unsigned short : 6;
  28124. unsigned short PIPE9BRDY : 1;
  28125. unsigned short PIPE8BRDY : 1;
  28126. unsigned short PIPE7BRDY : 1;
  28127. unsigned short PIPE6BRDY : 1;
  28128. unsigned short PIPE5BRDY : 1;
  28129. unsigned short PIPE4BRDY : 1;
  28130. unsigned short PIPE3BRDY : 1;
  28131. unsigned short PIPE2BRDY : 1;
  28132. unsigned short PIPE1BRDY : 1;
  28133. unsigned short PIPE0BRDY : 1;
  28134. #endif
  28135. } BIT;
  28136. #endif
  28137. } BRDYSTS;
  28138. union {
  28139. unsigned short WORD;
  28140. #ifdef IODEFINE_H_HISTORY
  28141. struct {
  28142. #ifdef __RX_LITTLE_ENDIAN__
  28143. unsigned short PIPE0NRDY : 1;
  28144. unsigned short PIPE1NRDY : 1;
  28145. unsigned short PIPE2NRDY : 1;
  28146. unsigned short PIPE3NRDY : 1;
  28147. unsigned short PIPE4NRDY : 1;
  28148. unsigned short PIPE5NRDY : 1;
  28149. unsigned short PIPE6NRDY : 1;
  28150. unsigned short PIPE7NRDY : 1;
  28151. unsigned short PIPE8NRDY : 1;
  28152. unsigned short PIPE9NRDY : 1;
  28153. unsigned short : 6;
  28154. #else
  28155. unsigned short : 6;
  28156. unsigned short PIPE9NRDY : 1;
  28157. unsigned short PIPE8NRDY : 1;
  28158. unsigned short PIPE7NRDY : 1;
  28159. unsigned short PIPE6NRDY : 1;
  28160. unsigned short PIPE5NRDY : 1;
  28161. unsigned short PIPE4NRDY : 1;
  28162. unsigned short PIPE3NRDY : 1;
  28163. unsigned short PIPE2NRDY : 1;
  28164. unsigned short PIPE1NRDY : 1;
  28165. unsigned short PIPE0NRDY : 1;
  28166. #endif
  28167. } BIT;
  28168. #endif
  28169. } NRDYSTS;
  28170. union {
  28171. unsigned short WORD;
  28172. #ifdef IODEFINE_H_HISTORY
  28173. struct {
  28174. #ifdef __RX_LITTLE_ENDIAN__
  28175. unsigned short PIPE0BEMP : 1;
  28176. unsigned short PIPE1BEMP : 1;
  28177. unsigned short PIPE2BEMP : 1;
  28178. unsigned short PIPE3BEMP : 1;
  28179. unsigned short PIPE4BEMP : 1;
  28180. unsigned short PIPE5BEMP : 1;
  28181. unsigned short PIPE6BEMP : 1;
  28182. unsigned short PIPE7BEMP : 1;
  28183. unsigned short PIPE8BEMP : 1;
  28184. unsigned short PIPE9BEMP : 1;
  28185. unsigned short : 6;
  28186. #else
  28187. unsigned short : 6;
  28188. unsigned short PIPE9BEMP : 1;
  28189. unsigned short PIPE8BEMP : 1;
  28190. unsigned short PIPE7BEMP : 1;
  28191. unsigned short PIPE6BEMP : 1;
  28192. unsigned short PIPE5BEMP : 1;
  28193. unsigned short PIPE4BEMP : 1;
  28194. unsigned short PIPE3BEMP : 1;
  28195. unsigned short PIPE2BEMP : 1;
  28196. unsigned short PIPE1BEMP : 1;
  28197. unsigned short PIPE0BEMP : 1;
  28198. #endif
  28199. } BIT;
  28200. #endif
  28201. } BEMPSTS;
  28202. union {
  28203. unsigned short WORD;
  28204. #ifdef IODEFINE_H_HISTORY
  28205. struct {
  28206. #ifdef __RX_LITTLE_ENDIAN__
  28207. unsigned short FRNM : 11;
  28208. unsigned short : 3;
  28209. unsigned short CRCE : 1;
  28210. unsigned short OVRN : 1;
  28211. #else
  28212. unsigned short OVRN : 1;
  28213. unsigned short CRCE : 1;
  28214. unsigned short : 3;
  28215. unsigned short FRNM : 11;
  28216. #endif
  28217. } BIT;
  28218. #endif
  28219. } FRMNUM;
  28220. union {
  28221. unsigned short WORD;
  28222. struct {
  28223. #ifdef __RX_LITTLE_ENDIAN__
  28224. unsigned short : 15;
  28225. unsigned short DVCHG : 1;
  28226. #else
  28227. unsigned short DVCHG : 1;
  28228. unsigned short : 15;
  28229. #endif
  28230. } BIT;
  28231. } DVCHGR;
  28232. union {
  28233. unsigned short WORD;
  28234. struct {
  28235. #ifdef __RX_LITTLE_ENDIAN__
  28236. unsigned short USBADDR : 7;
  28237. unsigned short : 1;
  28238. unsigned short STSRECOV : 4;
  28239. unsigned short : 4;
  28240. #else
  28241. unsigned short : 4;
  28242. unsigned short STSRECOV : 4;
  28243. unsigned short : 1;
  28244. unsigned short USBADDR : 7;
  28245. #endif
  28246. } BIT;
  28247. } USBADDR;
  28248. char wk10[2];
  28249. union {
  28250. unsigned short WORD;
  28251. struct {
  28252. #ifdef __RX_LITTLE_ENDIAN__
  28253. unsigned short BMREQUESTTYPE : 8;
  28254. unsigned short BREQUEST : 8;
  28255. #else
  28256. unsigned short BREQUEST : 8;
  28257. unsigned short BMREQUESTTYPE : 8;
  28258. #endif
  28259. } BIT;
  28260. } USBREQ;
  28261. unsigned short USBVAL;
  28262. unsigned short USBINDX;
  28263. unsigned short USBLENG;
  28264. union {
  28265. unsigned short WORD;
  28266. #ifdef IODEFINE_H_HISTORY
  28267. struct {
  28268. #ifdef __RX_LITTLE_ENDIAN__
  28269. unsigned short : 4;
  28270. unsigned short DIR : 1;
  28271. unsigned short : 2;
  28272. unsigned short SHTNAK : 1;
  28273. unsigned short : 8;
  28274. #else
  28275. unsigned short : 8;
  28276. unsigned short SHTNAK : 1;
  28277. unsigned short : 2;
  28278. unsigned short DIR : 1;
  28279. unsigned short : 4;
  28280. #endif
  28281. } BIT;
  28282. #endif
  28283. } DCPCFG;
  28284. union {
  28285. unsigned short WORD;
  28286. #ifdef IODEFINE_H_HISTORY
  28287. struct {
  28288. #ifdef __RX_LITTLE_ENDIAN__
  28289. unsigned short MXPS : 7;
  28290. unsigned short : 5;
  28291. unsigned short DEVSEL : 4;
  28292. #else
  28293. unsigned short DEVSEL : 4;
  28294. unsigned short : 5;
  28295. unsigned short MXPS : 7;
  28296. #endif
  28297. } BIT;
  28298. #endif
  28299. } DCPMAXP;
  28300. union {
  28301. unsigned short WORD;
  28302. #ifdef IODEFINE_H_HISTORY
  28303. struct {
  28304. #ifdef __RX_LITTLE_ENDIAN__
  28305. unsigned short PID : 2;
  28306. unsigned short CCPL : 1;
  28307. unsigned short : 2;
  28308. unsigned short PBUSY : 1;
  28309. unsigned short SQMON : 1;
  28310. unsigned short SQSET : 1;
  28311. unsigned short SQCLR : 1;
  28312. unsigned short : 2;
  28313. unsigned short SUREQCLR : 1;
  28314. unsigned short : 2;
  28315. unsigned short SUREQ : 1;
  28316. unsigned short BSTS : 1;
  28317. #else
  28318. unsigned short BSTS : 1;
  28319. unsigned short SUREQ : 1;
  28320. unsigned short : 2;
  28321. unsigned short SUREQCLR : 1;
  28322. unsigned short : 2;
  28323. unsigned short SQCLR : 1;
  28324. unsigned short SQSET : 1;
  28325. unsigned short SQMON : 1;
  28326. unsigned short PBUSY : 1;
  28327. unsigned short : 2;
  28328. unsigned short CCPL : 1;
  28329. unsigned short PID : 2;
  28330. #endif
  28331. } BIT;
  28332. #endif
  28333. } DCPCTR;
  28334. char wk11[2];
  28335. union {
  28336. unsigned short WORD;
  28337. #ifdef IODEFINE_H_HISTORY
  28338. struct {
  28339. #ifdef __RX_LITTLE_ENDIAN__
  28340. unsigned short PIPESEL : 4;
  28341. unsigned short : 12;
  28342. #else
  28343. unsigned short : 12;
  28344. unsigned short PIPESEL : 4;
  28345. #endif
  28346. } BIT;
  28347. #endif
  28348. } PIPESEL;
  28349. char wk12[2];
  28350. union {
  28351. unsigned short WORD;
  28352. #ifdef IODEFINE_H_HISTORY
  28353. struct {
  28354. #ifdef __RX_LITTLE_ENDIAN__
  28355. unsigned short EPNUM : 4;
  28356. unsigned short DIR : 1;
  28357. unsigned short : 2;
  28358. unsigned short SHTNAK : 1;
  28359. unsigned short : 1;
  28360. unsigned short DBLB : 1;
  28361. unsigned short BFRE : 1;
  28362. unsigned short : 3;
  28363. unsigned short TYPE : 2;
  28364. #else
  28365. unsigned short TYPE : 2;
  28366. unsigned short : 3;
  28367. unsigned short BFRE : 1;
  28368. unsigned short DBLB : 1;
  28369. unsigned short : 1;
  28370. unsigned short SHTNAK : 1;
  28371. unsigned short : 2;
  28372. unsigned short DIR : 1;
  28373. unsigned short EPNUM : 4;
  28374. #endif
  28375. } BIT;
  28376. #endif
  28377. } PIPECFG;
  28378. char wk13[2];
  28379. union {
  28380. unsigned short WORD;
  28381. #ifdef IODEFINE_H_HISTORY
  28382. struct {
  28383. #ifdef __RX_LITTLE_ENDIAN__
  28384. unsigned short MXPS : 9;
  28385. unsigned short : 3;
  28386. unsigned short DEVSEL : 4;
  28387. #else
  28388. unsigned short DEVSEL : 4;
  28389. unsigned short : 3;
  28390. unsigned short MXPS : 9;
  28391. #endif
  28392. } BIT;
  28393. #endif
  28394. } PIPEMAXP;
  28395. union {
  28396. unsigned short WORD;
  28397. #ifdef IODEFINE_H_HISTORY
  28398. struct {
  28399. #ifdef __RX_LITTLE_ENDIAN__
  28400. unsigned short IITV : 3;
  28401. unsigned short : 9;
  28402. unsigned short IFIS : 1;
  28403. unsigned short : 3;
  28404. #else
  28405. unsigned short : 3;
  28406. unsigned short IFIS : 1;
  28407. unsigned short : 9;
  28408. unsigned short IITV : 3;
  28409. #endif
  28410. } BIT;
  28411. #endif
  28412. } PIPEPERI;
  28413. union {
  28414. unsigned short WORD;
  28415. #ifdef IODEFINE_H_HISTORY
  28416. struct {
  28417. #ifdef __RX_LITTLE_ENDIAN__
  28418. unsigned short PID : 2;
  28419. unsigned short : 3;
  28420. unsigned short PBUSY : 1;
  28421. unsigned short SQMON : 1;
  28422. unsigned short SQSET : 1;
  28423. unsigned short SQCLR : 1;
  28424. unsigned short ACLRM : 1;
  28425. unsigned short ATREPM : 1;
  28426. unsigned short : 3;
  28427. unsigned short INBUFM : 1;
  28428. unsigned short BSTS : 1;
  28429. #else
  28430. unsigned short BSTS : 1;
  28431. unsigned short INBUFM : 1;
  28432. unsigned short : 3;
  28433. unsigned short ATREPM : 1;
  28434. unsigned short ACLRM : 1;
  28435. unsigned short SQCLR : 1;
  28436. unsigned short SQSET : 1;
  28437. unsigned short SQMON : 1;
  28438. unsigned short PBUSY : 1;
  28439. unsigned short : 3;
  28440. unsigned short PID : 2;
  28441. #endif
  28442. } BIT;
  28443. #endif
  28444. } PIPE1CTR;
  28445. union {
  28446. unsigned short WORD;
  28447. #ifdef IODEFINE_H_HISTORY
  28448. struct {
  28449. #ifdef __RX_LITTLE_ENDIAN__
  28450. unsigned short PID : 2;
  28451. unsigned short : 3;
  28452. unsigned short PBUSY : 1;
  28453. unsigned short SQMON : 1;
  28454. unsigned short SQSET : 1;
  28455. unsigned short SQCLR : 1;
  28456. unsigned short ACLRM : 1;
  28457. unsigned short ATREPM : 1;
  28458. unsigned short : 3;
  28459. unsigned short INBUFM : 1;
  28460. unsigned short BSTS : 1;
  28461. #else
  28462. unsigned short BSTS : 1;
  28463. unsigned short INBUFM : 1;
  28464. unsigned short : 3;
  28465. unsigned short ATREPM : 1;
  28466. unsigned short ACLRM : 1;
  28467. unsigned short SQCLR : 1;
  28468. unsigned short SQSET : 1;
  28469. unsigned short SQMON : 1;
  28470. unsigned short PBUSY : 1;
  28471. unsigned short : 3;
  28472. unsigned short PID : 2;
  28473. #endif
  28474. } BIT;
  28475. #endif
  28476. } PIPE2CTR;
  28477. union {
  28478. unsigned short WORD;
  28479. #ifdef IODEFINE_H_HISTORY
  28480. struct {
  28481. #ifdef __RX_LITTLE_ENDIAN__
  28482. unsigned short PID : 2;
  28483. unsigned short : 3;
  28484. unsigned short PBUSY : 1;
  28485. unsigned short SQMON : 1;
  28486. unsigned short SQSET : 1;
  28487. unsigned short SQCLR : 1;
  28488. unsigned short ACLRM : 1;
  28489. unsigned short ATREPM : 1;
  28490. unsigned short : 3;
  28491. unsigned short INBUFM : 1;
  28492. unsigned short BSTS : 1;
  28493. #else
  28494. unsigned short BSTS : 1;
  28495. unsigned short INBUFM : 1;
  28496. unsigned short : 3;
  28497. unsigned short ATREPM : 1;
  28498. unsigned short ACLRM : 1;
  28499. unsigned short SQCLR : 1;
  28500. unsigned short SQSET : 1;
  28501. unsigned short SQMON : 1;
  28502. unsigned short PBUSY : 1;
  28503. unsigned short : 3;
  28504. unsigned short PID : 2;
  28505. #endif
  28506. } BIT;
  28507. #endif
  28508. } PIPE3CTR;
  28509. union {
  28510. unsigned short WORD;
  28511. #ifdef IODEFINE_H_HISTORY
  28512. struct {
  28513. #ifdef __RX_LITTLE_ENDIAN__
  28514. unsigned short PID : 2;
  28515. unsigned short : 3;
  28516. unsigned short PBUSY : 1;
  28517. unsigned short SQMON : 1;
  28518. unsigned short SQSET : 1;
  28519. unsigned short SQCLR : 1;
  28520. unsigned short ACLRM : 1;
  28521. unsigned short ATREPM : 1;
  28522. unsigned short : 3;
  28523. unsigned short INBUFM : 1;
  28524. unsigned short BSTS : 1;
  28525. #else
  28526. unsigned short BSTS : 1;
  28527. unsigned short INBUFM : 1;
  28528. unsigned short : 3;
  28529. unsigned short ATREPM : 1;
  28530. unsigned short ACLRM : 1;
  28531. unsigned short SQCLR : 1;
  28532. unsigned short SQSET : 1;
  28533. unsigned short SQMON : 1;
  28534. unsigned short PBUSY : 1;
  28535. unsigned short : 3;
  28536. unsigned short PID : 2;
  28537. #endif
  28538. } BIT;
  28539. #endif
  28540. } PIPE4CTR;
  28541. union {
  28542. unsigned short WORD;
  28543. #ifdef IODEFINE_H_HISTORY
  28544. struct {
  28545. #ifdef __RX_LITTLE_ENDIAN__
  28546. unsigned short PID : 2;
  28547. unsigned short : 3;
  28548. unsigned short PBUSY : 1;
  28549. unsigned short SQMON : 1;
  28550. unsigned short SQSET : 1;
  28551. unsigned short SQCLR : 1;
  28552. unsigned short ACLRM : 1;
  28553. unsigned short ATREPM : 1;
  28554. unsigned short : 3;
  28555. unsigned short INBUFM : 1;
  28556. unsigned short BSTS : 1;
  28557. #else
  28558. unsigned short BSTS : 1;
  28559. unsigned short INBUFM : 1;
  28560. unsigned short : 3;
  28561. unsigned short ATREPM : 1;
  28562. unsigned short ACLRM : 1;
  28563. unsigned short SQCLR : 1;
  28564. unsigned short SQSET : 1;
  28565. unsigned short SQMON : 1;
  28566. unsigned short PBUSY : 1;
  28567. unsigned short : 3;
  28568. unsigned short PID : 2;
  28569. #endif
  28570. } BIT;
  28571. #endif
  28572. } PIPE5CTR;
  28573. union {
  28574. unsigned short WORD;
  28575. #ifdef IODEFINE_H_HISTORY
  28576. struct {
  28577. #ifdef __RX_LITTLE_ENDIAN__
  28578. unsigned short PID : 2;
  28579. unsigned short : 3;
  28580. unsigned short PBUSY : 1;
  28581. unsigned short SQMON : 1;
  28582. unsigned short SQSET : 1;
  28583. unsigned short SQCLR : 1;
  28584. unsigned short ACLRM : 1;
  28585. unsigned short : 5;
  28586. unsigned short BSTS : 1;
  28587. #else
  28588. unsigned short BSTS : 1;
  28589. unsigned short : 5;
  28590. unsigned short ACLRM : 1;
  28591. unsigned short SQCLR : 1;
  28592. unsigned short SQSET : 1;
  28593. unsigned short SQMON : 1;
  28594. unsigned short PBUSY : 1;
  28595. unsigned short : 3;
  28596. unsigned short PID : 2;
  28597. #endif
  28598. } BIT;
  28599. #endif
  28600. } PIPE6CTR;
  28601. union {
  28602. unsigned short WORD;
  28603. #ifdef IODEFINE_H_HISTORY
  28604. struct {
  28605. #ifdef __RX_LITTLE_ENDIAN__
  28606. unsigned short PID : 2;
  28607. unsigned short : 3;
  28608. unsigned short PBUSY : 1;
  28609. unsigned short SQMON : 1;
  28610. unsigned short SQSET : 1;
  28611. unsigned short SQCLR : 1;
  28612. unsigned short ACLRM : 1;
  28613. unsigned short : 5;
  28614. unsigned short BSTS : 1;
  28615. #else
  28616. unsigned short BSTS : 1;
  28617. unsigned short : 5;
  28618. unsigned short ACLRM : 1;
  28619. unsigned short SQCLR : 1;
  28620. unsigned short SQSET : 1;
  28621. unsigned short SQMON : 1;
  28622. unsigned short PBUSY : 1;
  28623. unsigned short : 3;
  28624. unsigned short PID : 2;
  28625. #endif
  28626. } BIT;
  28627. #endif
  28628. } PIPE7CTR;
  28629. union {
  28630. unsigned short WORD;
  28631. #ifdef IODEFINE_H_HISTORY
  28632. struct {
  28633. #ifdef __RX_LITTLE_ENDIAN__
  28634. unsigned short PID : 2;
  28635. unsigned short : 3;
  28636. unsigned short PBUSY : 1;
  28637. unsigned short SQMON : 1;
  28638. unsigned short SQSET : 1;
  28639. unsigned short SQCLR : 1;
  28640. unsigned short ACLRM : 1;
  28641. unsigned short : 5;
  28642. unsigned short BSTS : 1;
  28643. #else
  28644. unsigned short BSTS : 1;
  28645. unsigned short : 5;
  28646. unsigned short ACLRM : 1;
  28647. unsigned short SQCLR : 1;
  28648. unsigned short SQSET : 1;
  28649. unsigned short SQMON : 1;
  28650. unsigned short PBUSY : 1;
  28651. unsigned short : 3;
  28652. unsigned short PID : 2;
  28653. #endif
  28654. } BIT;
  28655. #endif
  28656. } PIPE8CTR;
  28657. union {
  28658. unsigned short WORD;
  28659. #ifdef IODEFINE_H_HISTORY
  28660. struct {
  28661. #ifdef __RX_LITTLE_ENDIAN__
  28662. unsigned short PID : 2;
  28663. unsigned short : 3;
  28664. unsigned short PBUSY : 1;
  28665. unsigned short SQMON : 1;
  28666. unsigned short SQSET : 1;
  28667. unsigned short SQCLR : 1;
  28668. unsigned short ACLRM : 1;
  28669. unsigned short : 5;
  28670. unsigned short BSTS : 1;
  28671. #else
  28672. unsigned short BSTS : 1;
  28673. unsigned short : 5;
  28674. unsigned short ACLRM : 1;
  28675. unsigned short SQCLR : 1;
  28676. unsigned short SQSET : 1;
  28677. unsigned short SQMON : 1;
  28678. unsigned short PBUSY : 1;
  28679. unsigned short : 3;
  28680. unsigned short PID : 2;
  28681. #endif
  28682. } BIT;
  28683. #endif
  28684. } PIPE9CTR;
  28685. char wk14[14];
  28686. union {
  28687. unsigned short WORD;
  28688. #ifdef IODEFINE_H_HISTORY
  28689. struct {
  28690. #ifdef __RX_LITTLE_ENDIAN__
  28691. unsigned short : 8;
  28692. unsigned short TRCLR : 1;
  28693. unsigned short TRENB : 1;
  28694. unsigned short : 6;
  28695. #else
  28696. unsigned short : 6;
  28697. unsigned short TRENB : 1;
  28698. unsigned short TRCLR : 1;
  28699. unsigned short : 8;
  28700. #endif
  28701. } BIT;
  28702. #endif
  28703. } PIPE1TRE;
  28704. unsigned short PIPE1TRN;
  28705. union {
  28706. unsigned short WORD;
  28707. #ifdef IODEFINE_H_HISTORY
  28708. struct {
  28709. #ifdef __RX_LITTLE_ENDIAN__
  28710. unsigned short : 8;
  28711. unsigned short TRCLR : 1;
  28712. unsigned short TRENB : 1;
  28713. unsigned short : 6;
  28714. #else
  28715. unsigned short : 6;
  28716. unsigned short TRENB : 1;
  28717. unsigned short TRCLR : 1;
  28718. unsigned short : 8;
  28719. #endif
  28720. } BIT;
  28721. #endif
  28722. } PIPE2TRE;
  28723. unsigned short PIPE2TRN;
  28724. union {
  28725. unsigned short WORD;
  28726. #ifdef IODEFINE_H_HISTORY
  28727. struct {
  28728. #ifdef __RX_LITTLE_ENDIAN__
  28729. unsigned short : 8;
  28730. unsigned short TRCLR : 1;
  28731. unsigned short TRENB : 1;
  28732. unsigned short : 6;
  28733. #else
  28734. unsigned short : 6;
  28735. unsigned short TRENB : 1;
  28736. unsigned short TRCLR : 1;
  28737. unsigned short : 8;
  28738. #endif
  28739. } BIT;
  28740. #endif
  28741. } PIPE3TRE;
  28742. unsigned short PIPE3TRN;
  28743. union {
  28744. unsigned short WORD;
  28745. #ifdef IODEFINE_H_HISTORY
  28746. struct {
  28747. #ifdef __RX_LITTLE_ENDIAN__
  28748. unsigned short : 8;
  28749. unsigned short TRCLR : 1;
  28750. unsigned short TRENB : 1;
  28751. unsigned short : 6;
  28752. #else
  28753. unsigned short : 6;
  28754. unsigned short TRENB : 1;
  28755. unsigned short TRCLR : 1;
  28756. unsigned short : 8;
  28757. #endif
  28758. } BIT;
  28759. #endif
  28760. } PIPE4TRE;
  28761. unsigned short PIPE4TRN;
  28762. union {
  28763. unsigned short WORD;
  28764. #ifdef IODEFINE_H_HISTORY
  28765. struct {
  28766. #ifdef __RX_LITTLE_ENDIAN__
  28767. unsigned short : 8;
  28768. unsigned short TRCLR : 1;
  28769. unsigned short TRENB : 1;
  28770. unsigned short : 6;
  28771. #else
  28772. unsigned short : 6;
  28773. unsigned short TRENB : 1;
  28774. unsigned short TRCLR : 1;
  28775. unsigned short : 8;
  28776. #endif
  28777. } BIT;
  28778. #endif
  28779. } PIPE5TRE;
  28780. unsigned short PIPE5TRN;
  28781. char wk15[44];
  28782. union {
  28783. unsigned short WORD;
  28784. #ifdef IODEFINE_H_HISTORY
  28785. struct {
  28786. #ifdef __RX_LITTLE_ENDIAN__
  28787. unsigned short : 6;
  28788. unsigned short USBSPD : 2;
  28789. unsigned short : 8;
  28790. #else
  28791. unsigned short : 8;
  28792. unsigned short USBSPD : 2;
  28793. unsigned short : 6;
  28794. #endif
  28795. } BIT;
  28796. #endif
  28797. } DEVADD0;
  28798. union {
  28799. unsigned short WORD;
  28800. #ifdef IODEFINE_H_HISTORY
  28801. struct {
  28802. #ifdef __RX_LITTLE_ENDIAN__
  28803. unsigned short : 6;
  28804. unsigned short USBSPD : 2;
  28805. unsigned short : 8;
  28806. #else
  28807. unsigned short : 8;
  28808. unsigned short USBSPD : 2;
  28809. unsigned short : 6;
  28810. #endif
  28811. } BIT;
  28812. #endif
  28813. } DEVADD1;
  28814. union {
  28815. unsigned short WORD;
  28816. #ifdef IODEFINE_H_HISTORY
  28817. struct {
  28818. #ifdef __RX_LITTLE_ENDIAN__
  28819. unsigned short : 6;
  28820. unsigned short USBSPD : 2;
  28821. unsigned short : 8;
  28822. #else
  28823. unsigned short : 8;
  28824. unsigned short USBSPD : 2;
  28825. unsigned short : 6;
  28826. #endif
  28827. } BIT;
  28828. #endif
  28829. } DEVADD2;
  28830. union {
  28831. unsigned short WORD;
  28832. #ifdef IODEFINE_H_HISTORY
  28833. struct {
  28834. #ifdef __RX_LITTLE_ENDIAN__
  28835. unsigned short : 6;
  28836. unsigned short USBSPD : 2;
  28837. unsigned short : 8;
  28838. #else
  28839. unsigned short : 8;
  28840. unsigned short USBSPD : 2;
  28841. unsigned short : 6;
  28842. #endif
  28843. } BIT;
  28844. #endif
  28845. } DEVADD3;
  28846. union {
  28847. unsigned short WORD;
  28848. #ifdef IODEFINE_H_HISTORY
  28849. struct {
  28850. #ifdef __RX_LITTLE_ENDIAN__
  28851. unsigned short : 6;
  28852. unsigned short USBSPD : 2;
  28853. unsigned short : 8;
  28854. #else
  28855. unsigned short : 8;
  28856. unsigned short USBSPD : 2;
  28857. unsigned short : 6;
  28858. #endif
  28859. } BIT;
  28860. #endif
  28861. } DEVADD4;
  28862. union {
  28863. unsigned short WORD;
  28864. #ifdef IODEFINE_H_HISTORY
  28865. struct {
  28866. #ifdef __RX_LITTLE_ENDIAN__
  28867. unsigned short : 6;
  28868. unsigned short USBSPD : 2;
  28869. unsigned short : 8;
  28870. #else
  28871. unsigned short : 8;
  28872. unsigned short USBSPD : 2;
  28873. unsigned short : 6;
  28874. #endif
  28875. } BIT;
  28876. #endif
  28877. } DEVADD5;
  28878. char wk16[20];
  28879. union {
  28880. unsigned long LONG;
  28881. struct {
  28882. #ifdef __RX_LITTLE_ENDIAN__
  28883. unsigned long SLEWR00 : 1;
  28884. unsigned long SLEWR01 : 1;
  28885. unsigned long SLEWF00 : 1;
  28886. unsigned long SLEWF01 : 1;
  28887. unsigned long : 28;
  28888. #else
  28889. unsigned long : 28;
  28890. unsigned long SLEWF01 : 1;
  28891. unsigned long SLEWF00 : 1;
  28892. unsigned long SLEWR01 : 1;
  28893. unsigned long SLEWR00 : 1;
  28894. #endif
  28895. } BIT;
  28896. } PHYSLEW;
  28897. } st_usb0_t;
  28898. typedef struct st_wdt {
  28899. unsigned char WDTRR;
  28900. char wk0[1];
  28901. union {
  28902. unsigned short WORD;
  28903. struct {
  28904. #ifdef __RX_LITTLE_ENDIAN__
  28905. unsigned short TOPS : 2;
  28906. unsigned short : 2;
  28907. unsigned short CKS : 4;
  28908. unsigned short RPES : 2;
  28909. unsigned short : 2;
  28910. unsigned short RPSS : 2;
  28911. unsigned short : 2;
  28912. #else
  28913. unsigned short : 2;
  28914. unsigned short RPSS : 2;
  28915. unsigned short : 2;
  28916. unsigned short RPES : 2;
  28917. unsigned short CKS : 4;
  28918. unsigned short : 2;
  28919. unsigned short TOPS : 2;
  28920. #endif
  28921. } BIT;
  28922. } WDTCR;
  28923. union {
  28924. unsigned short WORD;
  28925. struct {
  28926. #ifdef __RX_LITTLE_ENDIAN__
  28927. unsigned short CNTVAL : 14;
  28928. unsigned short UNDFF : 1;
  28929. unsigned short REFEF : 1;
  28930. #else
  28931. unsigned short REFEF : 1;
  28932. unsigned short UNDFF : 1;
  28933. unsigned short CNTVAL : 14;
  28934. #endif
  28935. } BIT;
  28936. } WDTSR;
  28937. union {
  28938. unsigned char BYTE;
  28939. struct {
  28940. #ifdef __RX_LITTLE_ENDIAN__
  28941. unsigned char : 7;
  28942. unsigned char RSTIRQS : 1;
  28943. #else
  28944. unsigned char RSTIRQS : 1;
  28945. unsigned char : 7;
  28946. #endif
  28947. } BIT;
  28948. } WDTRCR;
  28949. } st_wdt_t;
  28950. typedef struct st_flashconst {
  28951. unsigned long UIDR0;
  28952. unsigned long UIDR1;
  28953. unsigned long UIDR2;
  28954. unsigned long UIDR3;
  28955. } st_flashconst_t;
  28956. typedef struct st_tempsconst {
  28957. unsigned long TSCDR;
  28958. } st_tempsconst_t;
  28959. #pragma pack()
  28960. #endif