regsocotp.h 392 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504
  1. /*
  2. * Copyright (C) 2012, Freescale Semiconductor, Inc. All Rights Reserved
  3. * THIS SOURCE CODE IS CONFIDENTIAL AND PROPRIETARY AND MAY NOT
  4. * BE USED OR DISTRIBUTED WITHOUT THE WRITTEN PERMISSION OF
  5. * Freescale Semiconductor, Inc.
  6. */
  7. #ifndef __HW_OCOTP_REGISTERS_H__
  8. #define __HW_OCOTP_REGISTERS_H__
  9. #include "regs.h"
  10. /*
  11. * i.MX6UL OCOTP registers defined in this header file.
  12. *
  13. * - HW_OCOTP_CTRL - OTP Controller Control Register
  14. * - HW_OCOTP_TIMING - OTP Controller Timing Register
  15. * - HW_OCOTP_DATA - OTP Controller Write Data Register
  16. * - HW_OCOTP_READ_CTRL - OTP Controller Write Data Register
  17. * - HW_OCOTP_READ_FUSE_DATA - OTP Controller Read Data Register
  18. * - HW_OCOTP_SW_STICKY - Sticky bit Register
  19. * - HW_OCOTP_SCS - Software Controllable Signals Register
  20. * - HW_OCOTP_CRC_ADDR - OTP Controller CRC test address
  21. * - HW_OCOTP_CRC_VALUE - OTP Controller CRC Value Register
  22. * - HW_OCOTP_VERSION - OTP Controller Version Register
  23. * - HW_OCOTP_LOCK - Value of OTP Bank0 Word0 (Lock controls)
  24. * - HW_OCOTP_CFG0 - Value of OTP Bank0 Word1 (Configuration and Manufacturing Info.)
  25. * - HW_OCOTP_CFG1 - Value of OTP Bank0 Word2 (Configuration and Manufacturing Info.)
  26. * - HW_OCOTP_CFG2 - Value of OTP Bank0 Word3 (Configuration and Manufacturing Info.)
  27. * - HW_OCOTP_CFG3 - Value of OTP Bank0 Word4 (Configuration and Manufacturing Info.)
  28. * - HW_OCOTP_CFG4 - Value of OTP Bank0 Word5 (Configuration and Manufacturing Info.)
  29. * - HW_OCOTP_CFG5 - Value of OTP Bank0 Word6 (Configuration and Manufacturing Info.)
  30. * - HW_OCOTP_CFG6 - Value of OTP Bank0 Word7 (Configuration and Manufacturing Info.)
  31. * - HW_OCOTP_MEM0 - Value of OTP Bank1 Word0 (Memory Related Info.)
  32. * - HW_OCOTP_MEM1 - Value of OTP Bank1 Word1 (Memory Related Info.)
  33. * - HW_OCOTP_MEM2 - Value of OTP Bank1 Word2 (Memory Related Info.)
  34. * - HW_OCOTP_MEM3 - Value of OTP Bank1 Word3 (Memory Related Info.)
  35. * - HW_OCOTP_MEM4 - Value of OTP Bank1 Word4 (Memory Related Info.)
  36. * - HW_OCOTP_ANA0 - Value of OTP Bank1 Word5 (Memory Related Info.)
  37. * - HW_OCOTP_ANA1 - Value of OTP Bank1 Word6 (General Purpose Customer Defined Info.)
  38. * - HW_OCOTP_ANA2 - Value of OTP Bank1 Word7 (General Purpose Customer Defined Info.)
  39. * - HW_OCOTP_OTPMK0 - Shadow Register for OTP Bank2 Word0 (OTPMK and CRYPTO Key)
  40. * - HW_OCOTP_OTPMK1 - Shadow Register for OTP Bank2 Word1 (OTPMK and CRYPTO Key)
  41. * - HW_OCOTP_OTPMK2 - Shadow Register for OTP Bank2 Word2 (OTPMK and CRYPTO Key)
  42. * - HW_OCOTP_OTPMK3 - Shadow Register for OTP Bank2 Word3 (OTPMK and CRYPTO Key)
  43. * - HW_OCOTP_OTPMK4 - Shadow Register for OTP Bank2 Word4 (OTPMK Key)
  44. * - HW_OCOTP_OTPMK5 - Shadow Register for OTP Bank2 Word5 (OTPMK Key)
  45. * - HW_OCOTP_OTPMK6 - Shadow Register for OTP Bank2 Word6 (OTPMK Key)
  46. * - HW_OCOTP_OTPMK7 - Shadow Register for OTP Bank2 Word7 (OTPMK Key)
  47. * - HW_OCOTP_SRK0 - Shadow Register for OTP Bank3 Word0 (SRK Hash)
  48. * - HW_OCOTP_SRK1 - Shadow Register for OTP Bank3 Word1 (SRK Hash)
  49. * - HW_OCOTP_SRK2 - Shadow Register for OTP Bank3 Word2 (SRK Hash)
  50. * - HW_OCOTP_SRK3 - Shadow Register for OTP Bank3 Word3 (SRK Hash)
  51. * - HW_OCOTP_SRK4 - Shadow Register for OTP Bank3 Word4 (SRK Hash)
  52. * - HW_OCOTP_SRK5 - Shadow Register for OTP Bank3 Word5 (SRK Hash)
  53. * - HW_OCOTP_SRK6 - Shadow Register for OTP Bank3 Word6 (SRK Hash)
  54. * - HW_OCOTP_SRK7 - Shadow Register for OTP Bank3 Word7 (SRK Hash)
  55. * - HW_OCOTP_RESP0 - Value of OTP Bank4 Word0 (Secure JTAG Response Field)
  56. * - HW_OCOTP_HSJC_RESP1 - Value of OTP Bank4 Word1 (Secure JTAG Response Field)
  57. * - HW_OCOTP_MAC0 - Value of OTP Bank4 Word2 (MAC Address)
  58. * - HW_OCOTP_MAC1 - Value of OTP Bank4 Word3 (MAC Address)
  59. * - HW_OCOTP_HDCP_KSV0 - Value of OTP Bank4 Word4 (HW Capabilities)
  60. * - HW_OCOTP_HDCP_KSV1 - Value of OTP Bank4 Word5 (HW Capabilities)
  61. * - HW_OCOTP_GP1 - Value of OTP Bank4 Word6 (HW Capabilities)
  62. * - HW_OCOTP_GP2 - Value of OTP Bank4 Word7 (HW Capabilities)
  63. * - HW_OCOTP_DTCP_KEY0 - Value of OTP Bank5 Word0 (HW Capabilities)
  64. * - HW_OCOTP_DTCP_KEY1 - Value of OTP Bank5 Word1 (HW Capabilities)
  65. * - HW_OCOTP_DTCP_KEY2 - Value of OTP Bank5 Word2 (HW Capabilities)
  66. * - HW_OCOTP_DTCP_KEY3 - Value of OTP Bank5 Word3 (HW Capabilities)
  67. * - HW_OCOTP_DTCP_KEY4 - Value of OTP Bank5 Word4 (HW Capabilities)
  68. * - HW_OCOTP_MISC_CONF - Value of OTP Bank5 Word5 (HW Capabilities)
  69. * - HW_OCOTP_FIELD_RETURN - Value of OTP Bank5 Word6 (HW Capabilities)
  70. * - HW_OCOTP_SRK_REVOKE - Value of OTP Bank5 Word7 (HW Capabilities)
  71. * - HW_OCOTP_HDCP_KEY0 - Value of OTP Bank6 Word0 (HW Capabilities)
  72. * - HW_OCOTP_HDCP_KEY1 - Value of OTP Bank6 Word1 (HW Capabilities)
  73. * - HW_OCOTP_HDCP_KEY2 - Value of OTP Bank6 Word2 (HW Capabilities)
  74. * - HW_OCOTP_HDCP_KEY3 - Value of OTP Bank6 Word3 (HW Capabilities)
  75. * - HW_OCOTP_HDCP_KEY4 - Value of OTP Bank6 Word4 (HW Capabilities)
  76. * - HW_OCOTP_HDCP_KEY5 - Value of OTP Bank6 Word5 (HW Capabilities)
  77. * - HW_OCOTP_HDCP_KEY6 - Value of OTP Bank6 Word6 (HW Capabilities)
  78. * - HW_OCOTP_HDCP_KEY7 - Value of OTP Bank6 Word7 (HW Capabilities)
  79. * - HW_OCOTP_HDCP_KEY8 - Value of OTP Bank7 Word0 (HW Capabilities)
  80. * - HW_OCOTP_HDCP_KEY9 - Value of OTP Bank7 Word1 (HW Capabilities)
  81. * - HW_OCOTP_HDCP_KEY10 - Value of OTP Bank7 Word2 (HW Capabilities)
  82. * - HW_OCOTP_HDCP_KEY11 - Value of OTP Bank7 Word3 (HW Capabilities)
  83. * - HW_OCOTP_HDCP_KEY12 - Value of OTP Bank7 Word4 (HW Capabilities)
  84. * - HW_OCOTP_HDCP_KEY13 - Value of OTP Bank7 Word5 (HW Capabilities)
  85. * - HW_OCOTP_HDCP_KEY14 - Value of OTP Bank7 Word6 (HW Capabilities)
  86. * - HW_OCOTP_HDCP_KEY15 - Value of OTP Bank7 Word7 (HW Capabilities)
  87. * - HW_OCOTP_HDCP_KEY16 - Value of OTP Bank8 Word0 (HW Capabilities)
  88. * - HW_OCOTP_HDCP_KEY17 - Value of OTP Bank8 Word1 (HW Capabilities)
  89. * - HW_OCOTP_HDCP_KEY18 - Value of OTP Bank8 Word2 (HW Capabilities)
  90. * - HW_OCOTP_HDCP_KEY19 - Value of OTP Bank8 Word3 (HW Capabilities)
  91. * - HW_OCOTP_HDCP_KEY20 - Value of OTP Bank8 Word4 (HW Capabilities)
  92. * - HW_OCOTP_HDCP_KEY21 - Value of OTP Bank8 Word5 (HW Capabilities)
  93. * - HW_OCOTP_HDCP_KEY22 - Value of OTP Bank8 Word6 (HW Capabilities)
  94. * - HW_OCOTP_HDCP_KEY23 - Value of OTP Bank8 Word7 (HW Capabilities)
  95. * - HW_OCOTP_HDCP_KEY24 - Value of OTP Bank9 Word0 (HW Capabilities)
  96. * - HW_OCOTP_HDCP_KEY25 - Value of OTP Bank9 Word1 (HW Capabilities)
  97. * - HW_OCOTP_HDCP_KEY26 - Value of OTP Bank9 Word2 (HW Capabilities)
  98. * - HW_OCOTP_HDCP_KEY27 - Value of OTP Bank9 Word3 (HW Capabilities)
  99. * - HW_OCOTP_HDCP_KEY28 - Value of OTP Bank9 Word4 (HW Capabilities)
  100. * - HW_OCOTP_HDCP_KEY29 - Value of OTP Bank9 Word5 (HW Capabilities)
  101. * - HW_OCOTP_HDCP_KEY30 - Value of OTP Bank9 Word6 (HW Capabilities)
  102. * - HW_OCOTP_HDCP_KEY31 - Value of OTP Bank9 Word7 (HW Capabilities)
  103. * - HW_OCOTP_HDCP_KEY32 - Value of OTP Bank10 Word0 (HW Capabilities)
  104. * - HW_OCOTP_HDCP_KEY33 - Value of OTP Bank10 Word1 (HW Capabilities)
  105. * - HW_OCOTP_HDCP_KEY34 - Value of OTP Bank10 Word2 (HW Capabilities)
  106. * - HW_OCOTP_HDCP_KEY35 - Value of OTP Bank10 Word3 (HW Capabilities)
  107. * - HW_OCOTP_HDCP_KEY36 - Value of OTP Bank10 Word4 (HW Capabilities)
  108. * - HW_OCOTP_HDCP_KEY37 - Value of OTP Bank10 Word5 (HW Capabilities)
  109. * - HW_OCOTP_HDCP_KEY38 - Value of OTP Bank10 Word6 (HW Capabilities)
  110. * - HW_OCOTP_HDCP_KEY39 - Value of OTP Bank10 Word7 (HW Capabilities)
  111. * - HW_OCOTP_HDCP_KEY40 - Value of OTP Bank11 Word0 (HW Capabilities)
  112. * - HW_OCOTP_HDCP_KEY41 - Value of OTP Bank11 Word1 (HW Capabilities)
  113. * - HW_OCOTP_HDCP_KEY42 - Value of OTP Bank11 Word2 (HW Capabilities)
  114. * - HW_OCOTP_HDCP_KEY43 - Value of OTP Bank11 Word3 (HW Capabilities)
  115. * - HW_OCOTP_HDCP_KEY44 - Value of OTP Bank11 Word4 (HW Capabilities)
  116. * - HW_OCOTP_HDCP_KEY45 - Value of OTP Bank11 Word5 (HW Capabilities)
  117. * - HW_OCOTP_HDCP_KEY46 - Value of OTP Bank11 Word6 (HW Capabilities)
  118. * - HW_OCOTP_HDCP_KEY47 - Value of OTP Bank11 Word7 (HW Capabilities)
  119. * - HW_OCOTP_HDCP_KEY48 - Value of OTP Bank12 Word0 (HW Capabilities)
  120. * - HW_OCOTP_HDCP_KEY49 - Value of OTP Bank12 Word1 (HW Capabilities)
  121. * - HW_OCOTP_HDCP_KEY50 - Value of OTP Bank12 Word2 (HW Capabilities)
  122. * - HW_OCOTP_HDCP_KEY51 - Value of OTP Bank12 Word3 (HW Capabilities)
  123. * - HW_OCOTP_HDCP_KEY52 - Value of OTP Bank12 Word4 (HW Capabilities)
  124. * - HW_OCOTP_HDCP_KEY53 - Value of OTP Bank12 Word5 (HW Capabilities)
  125. * - HW_OCOTP_HDCP_KEY54 - Value of OTP Bank12 Word6 (HW Capabilities)
  126. * - HW_OCOTP_HDCP_KEY55 - Value of OTP Bank12 Word7 (HW Capabilities)
  127. * - HW_OCOTP_HDCP_KEY56 - Value of OTP Bank13 Word0 (HW Capabilities)
  128. * - HW_OCOTP_HDCP_KEY57 - Value of OTP Bank13 Word1 (HW Capabilities)
  129. * - HW_OCOTP_HDCP_KEY58 - Value of OTP Bank13 Word2 (HW Capabilities)
  130. * - HW_OCOTP_HDCP_KEY59 - Value of OTP Bank13 Word3 (HW Capabilities)
  131. * - HW_OCOTP_HDCP_KEY60 - Value of OTP Bank13 Word4 (HW Capabilities)
  132. * - HW_OCOTP_HDCP_KEY61 - Value of OTP Bank13 Word5 (HW Capabilities)
  133. * - HW_OCOTP_HDCP_KEY62 - Value of OTP Bank13 Word6 (HW Capabilities)
  134. * - HW_OCOTP_HDCP_KEY63 - Value of OTP Bank13 Word7 (HW Capabilities)
  135. * - HW_OCOTP_HDCP_KEY64 - Value of OTP Bank14 Word0 (HW Capabilities)
  136. * - HW_OCOTP_HDCP_KEY65 - Value of OTP Bank14 Word1 (HW Capabilities)
  137. * - HW_OCOTP_HDCP_KEY66 - Value of OTP Bank14 Word2 (HW Capabilities)
  138. * - HW_OCOTP_HDCP_KEY67 - Value of OTP Bank14 Word3 (HW Capabilities)
  139. * - HW_OCOTP_HDCP_KEY68 - Value of OTP Bank14 Word4 (HW Capabilities)
  140. * - HW_OCOTP_HDCP_KEY69 - Value of OTP Bank14 Word5 (HW Capabilities)
  141. * - HW_OCOTP_HDCP_KEY70 - Value of OTP Bank14 Word6 (HW Capabilities)
  142. * - HW_OCOTP_HDCP_KEY71 - Value of OTP Bank14 Word7 (HW Capabilities)
  143. * - HW_OCOTP_CRC0 - Value of OTP Bank15 Word0 (HW Capabilities)
  144. * - HW_OCOTP_CRC1 - Value of OTP Bank15 Word1 (HW Capabilities)
  145. * - HW_OCOTP_CRC2 - Value of OTP Bank15 Word2 (HW Capabilities)
  146. * - HW_OCOTP_CRC3 - Value of OTP Bank15 Word3 (HW Capabilities)
  147. * - HW_OCOTP_CRC4 - Value of OTP Bank15 Word4 (HW Capabilities)
  148. * - HW_OCOTP_CRC5 - Value of OTP Bank15 Word5 (HW Capabilities)
  149. * - HW_OCOTP_CRC6 - Value of OTP Bank15 Word6 (HW Capabilities)
  150. * - HW_OCOTP_CRC7 - Value of OTP Bank15 Word5 (HW Capabilities)
  151. *
  152. * - hw_ocotp_t - Struct containing all module registers.
  153. */
  154. //! @name Module base addresses
  155. //@{
  156. #ifndef REGS_OCOTP_BASE
  157. #define HW_OCOTP_INSTANCE_COUNT (1) //!< Number of instances of the OCOTP module.
  158. #define REGS_OCOTP_BASE (0x021bc000) //!< Base address for OCOTP.
  159. #endif
  160. //@}
  161. //-------------------------------------------------------------------------------------------
  162. // HW_OCOTP_CTRL - OTP Controller Control Register
  163. //-------------------------------------------------------------------------------------------
  164. #ifndef __LANGUAGE_ASM__
  165. /*!
  166. * @brief HW_OCOTP_CTRL - OTP Controller Control Register (RW)
  167. *
  168. * Reset value: 0x00000000
  169. *
  170. * The OCOTP Control and Status Register specifies the copy state, as well as the control required
  171. * for random access of the OTP memory OCOTP_CTRL: 0x000 The OCOTP Control and Status Register
  172. * provides the necessary software interface for performing read and write operations to the On-Chip
  173. * OTP (One-Time Programmable ROM). The control fields such as WR_UNLOCK, ADDR and BUSY/ERROR may be
  174. * used in conjuction with the HW_OCOTP_DATA register to perform write operations. Read operations
  175. * to the On-Chip OTP are involving ADDR, BUSY/ERROR bit field and HW_OCOTP_READ_CTRL register. Read
  176. * value is saved in HW_OCOTP_READ_FUSE_DATA register. EXAMPLE Empty Example.
  177. */
  178. typedef union _hw_ocotp_ctrl
  179. {
  180. reg32_t U;
  181. struct _hw_ocotp_ctrl_bitfields
  182. {
  183. unsigned ADDR : 7; //!< [6:0] OTP write and read access address register.
  184. unsigned RESERVED0 : 1; //!< [7] Reserved
  185. unsigned BUSY : 1; //!< [8] OTP controller status bit.
  186. unsigned ERROR : 1; //!< [9] Set by the controller when an access to a locked region(OTP or shadow register) is requested.
  187. unsigned RELOAD_SHADOWS : 1; //!< [10] Set to force re-loading the shadow registers (HW/SW capability and LOCK).
  188. unsigned CRC_TEST : 1; //!< [11] Set to calculate CRC according to start address and end address in CRC_ADDR register.And compare with CRC fuse word according CRC address in CRC_ADDR register to generate CRC_FAIL flag
  189. unsigned CRC_FAIL : 1; //!< [12] Set by controller when calculated CRC value is not equal to appointed CRC fuse word
  190. unsigned RESERVED1 : 3; //!< [15:13] Reserved
  191. unsigned WR_UNLOCK : 16; //!< [31:16] Write 0x3E77 to enable OTP write accesses.
  192. } B;
  193. } hw_ocotp_ctrl_t;
  194. #endif
  195. /*
  196. * constants & macros for entire OCOTP_CTRL register
  197. */
  198. #define HW_OCOTP_CTRL_ADDR (REGS_OCOTP_BASE + 0x0)
  199. #define HW_OCOTP_CTRL_SET_ADDR (HW_OCOTP_CTRL_ADDR + 0x4)
  200. #define HW_OCOTP_CTRL_CLR_ADDR (HW_OCOTP_CTRL_ADDR + 0x8)
  201. #define HW_OCOTP_CTRL_TOG_ADDR (HW_OCOTP_CTRL_ADDR + 0xC)
  202. #ifndef __LANGUAGE_ASM__
  203. #define HW_OCOTP_CTRL (*(volatile hw_ocotp_ctrl_t *) HW_OCOTP_CTRL_ADDR)
  204. #define HW_OCOTP_CTRL_RD() (HW_OCOTP_CTRL.U)
  205. #define HW_OCOTP_CTRL_WR(v) (HW_OCOTP_CTRL.U = (v))
  206. #define HW_OCOTP_CTRL_SET(v) ((*(volatile reg32_t *) HW_OCOTP_CTRL_SET_ADDR) = (v))
  207. #define HW_OCOTP_CTRL_CLR(v) ((*(volatile reg32_t *) HW_OCOTP_CTRL_CLR_ADDR) = (v))
  208. #define HW_OCOTP_CTRL_TOG(v) ((*(volatile reg32_t *) HW_OCOTP_CTRL_TOG_ADDR) = (v))
  209. #endif
  210. /*
  211. * constants & macros for individual OCOTP_CTRL bitfields
  212. */
  213. /* --- Register HW_OCOTP_CTRL, field ADDR[6:0] (RW)
  214. *
  215. * OTP write and read access address register. Specifies one of 128 word address locations (0x00 -
  216. * 0x7f). If a valid access is accepted by the controller, the controller makes an internal copy of
  217. * this value. This internal copy will not update until the access is complete.
  218. */
  219. #define BP_OCOTP_CTRL_ADDR (0) //!< Bit position for OCOTP_CTRL_ADDR.
  220. #define BM_OCOTP_CTRL_ADDR (0x0000007f) //!< Bit mask for OCOTP_CTRL_ADDR.
  221. //! @brief Get value of OCOTP_CTRL_ADDR from a register value.
  222. #define BG_OCOTP_CTRL_ADDR(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_CTRL_ADDR) >> BP_OCOTP_CTRL_ADDR)
  223. //! @brief Format value for bitfield OCOTP_CTRL_ADDR.
  224. #define BF_OCOTP_CTRL_ADDR(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_CTRL_ADDR) & BM_OCOTP_CTRL_ADDR)
  225. #ifndef __LANGUAGE_ASM__
  226. //! @brief Set the ADDR field to a new value.
  227. #define BW_OCOTP_CTRL_ADDR(v) BF_CS1(OCOTP_CTRL, ADDR, v)
  228. #endif
  229. /* --- Register HW_OCOTP_CTRL, field BUSY[8] (RO)
  230. *
  231. * OTP controller status bit. When active, no new write access or read access to OTP(including
  232. * RELOAD_SHADOWS) can be performed. Cleared by controller when access complete. After reset (or
  233. * after setting RELOAD_SHADOWS), this bit is set by the controller until the HW/SW and LOCK
  234. * registers are successfully copied, after which time it is automatically cleared by the
  235. * controller.
  236. */
  237. #define BP_OCOTP_CTRL_BUSY (8) //!< Bit position for OCOTP_CTRL_BUSY.
  238. #define BM_OCOTP_CTRL_BUSY (0x00000100) //!< Bit mask for OCOTP_CTRL_BUSY.
  239. //! @brief Get value of OCOTP_CTRL_BUSY from a register value.
  240. #define BG_OCOTP_CTRL_BUSY(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_CTRL_BUSY) >> BP_OCOTP_CTRL_BUSY)
  241. /* --- Register HW_OCOTP_CTRL, field ERROR[9] (RW)
  242. *
  243. * Set by the controller when an access to a locked region(OTP or shadow register) is requested.
  244. * Must be cleared before any further access can be performed. This bit can only be set by the
  245. * controller. This bit is also set if the Pin interface is active and software requests an access
  246. * to the OTP. In this instance, the ERROR bit cannot be cleared until the Pin interface access has
  247. * completed. Reset this bit by writing a one to the SCT clear address space and not by a general
  248. * write.
  249. */
  250. #define BP_OCOTP_CTRL_ERROR (9) //!< Bit position for OCOTP_CTRL_ERROR.
  251. #define BM_OCOTP_CTRL_ERROR (0x00000200) //!< Bit mask for OCOTP_CTRL_ERROR.
  252. //! @brief Get value of OCOTP_CTRL_ERROR from a register value.
  253. #define BG_OCOTP_CTRL_ERROR(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_CTRL_ERROR) >> BP_OCOTP_CTRL_ERROR)
  254. //! @brief Format value for bitfield OCOTP_CTRL_ERROR.
  255. #define BF_OCOTP_CTRL_ERROR(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_CTRL_ERROR) & BM_OCOTP_CTRL_ERROR)
  256. #ifndef __LANGUAGE_ASM__
  257. //! @brief Set the ERROR field to a new value.
  258. #define BW_OCOTP_CTRL_ERROR(v) BF_CS1(OCOTP_CTRL, ERROR, v)
  259. #endif
  260. /* --- Register HW_OCOTP_CTRL, field RELOAD_SHADOWS[10] (RW)
  261. *
  262. * Set to force re-loading the shadow registers (HW/SW capability and LOCK). This operation will
  263. * automatically set BUSY. Once the shadow registers have been re-loaded, BUSY and RELOAD_SHADOWS
  264. * are automatically cleared by the controller.
  265. */
  266. #define BP_OCOTP_CTRL_RELOAD_SHADOWS (10) //!< Bit position for OCOTP_CTRL_RELOAD_SHADOWS.
  267. #define BM_OCOTP_CTRL_RELOAD_SHADOWS (0x00000400) //!< Bit mask for OCOTP_CTRL_RELOAD_SHADOWS.
  268. //! @brief Get value of OCOTP_CTRL_RELOAD_SHADOWS from a register value.
  269. #define BG_OCOTP_CTRL_RELOAD_SHADOWS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_CTRL_RELOAD_SHADOWS) >> BP_OCOTP_CTRL_RELOAD_SHADOWS)
  270. //! @brief Format value for bitfield OCOTP_CTRL_RELOAD_SHADOWS.
  271. #define BF_OCOTP_CTRL_RELOAD_SHADOWS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_CTRL_RELOAD_SHADOWS) & BM_OCOTP_CTRL_RELOAD_SHADOWS)
  272. #ifndef __LANGUAGE_ASM__
  273. //! @brief Set the RELOAD_SHADOWS field to a new value.
  274. #define BW_OCOTP_CTRL_RELOAD_SHADOWS(v) BF_CS1(OCOTP_CTRL, RELOAD_SHADOWS, v)
  275. #endif
  276. /* --- Register HW_OCOTP_CTRL, field CRC_TEST[11] (RW)
  277. *
  278. * Set to calculate CRC according to start address and end address in CRC_ADDR register.And compare
  279. * with CRC fuse word according CRC address in CRC_ADDR register to generate CRC_FAIL flag
  280. */
  281. #define BP_OCOTP_CTRL_CRC_TEST (11) //!< Bit position for OCOTP_CTRL_CRC_TEST.
  282. #define BM_OCOTP_CTRL_CRC_TEST (0x00000800) //!< Bit mask for OCOTP_CTRL_CRC_TEST.
  283. //! @brief Get value of OCOTP_CTRL_CRC_TEST from a register value.
  284. #define BG_OCOTP_CTRL_CRC_TEST(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_CTRL_CRC_TEST) >> BP_OCOTP_CTRL_CRC_TEST)
  285. //! @brief Format value for bitfield OCOTP_CTRL_CRC_TEST.
  286. #define BF_OCOTP_CTRL_CRC_TEST(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_CTRL_CRC_TEST) & BM_OCOTP_CTRL_CRC_TEST)
  287. #ifndef __LANGUAGE_ASM__
  288. //! @brief Set the CRC_TEST field to a new value.
  289. #define BW_OCOTP_CTRL_CRC_TEST(v) BF_CS1(OCOTP_CTRL, CRC_TEST, v)
  290. #endif
  291. /* --- Register HW_OCOTP_CTRL, field CRC_FAIL[12] (RW)
  292. *
  293. * Set by controller when calculated CRC value is not equal to appointed CRC fuse word
  294. */
  295. #define BP_OCOTP_CTRL_CRC_FAIL (12) //!< Bit position for OCOTP_CTRL_CRC_FAIL.
  296. #define BM_OCOTP_CTRL_CRC_FAIL (0x00001000) //!< Bit mask for OCOTP_CTRL_CRC_FAIL.
  297. //! @brief Get value of OCOTP_CTRL_CRC_FAIL from a register value.
  298. #define BG_OCOTP_CTRL_CRC_FAIL(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_CTRL_CRC_FAIL) >> BP_OCOTP_CTRL_CRC_FAIL)
  299. //! @brief Format value for bitfield OCOTP_CTRL_CRC_FAIL.
  300. #define BF_OCOTP_CTRL_CRC_FAIL(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_CTRL_CRC_FAIL) & BM_OCOTP_CTRL_CRC_FAIL)
  301. #ifndef __LANGUAGE_ASM__
  302. //! @brief Set the CRC_FAIL field to a new value.
  303. #define BW_OCOTP_CTRL_CRC_FAIL(v) BF_CS1(OCOTP_CTRL, CRC_FAIL, v)
  304. #endif
  305. /* --- Register HW_OCOTP_CTRL, field WR_UNLOCK[31:16] (RW)
  306. *
  307. * Write 0x3E77 to enable OTP write accesses. NOTE: This register must be unlocked on a write-by-
  308. * write basis (a write is initiated when HW_OCOTP_DATA is written), so the UNLOCK bitfield must
  309. * contain the correct key value during all writes to HW_OCOTP_DATA, otherwise a write shall not be
  310. * initiated. This field is automatically cleared after a successful write completion (clearing of
  311. * BUSY).
  312. *
  313. * Values:
  314. * KEY = 0x3E77 - Key needed to unlock HW_OCOTP_DATA register.
  315. */
  316. #define BP_OCOTP_CTRL_WR_UNLOCK (16) //!< Bit position for OCOTP_CTRL_WR_UNLOCK.
  317. #define BM_OCOTP_CTRL_WR_UNLOCK (0xffff0000) //!< Bit mask for OCOTP_CTRL_WR_UNLOCK.
  318. //! @brief Get value of OCOTP_CTRL_WR_UNLOCK from a register value.
  319. #define BG_OCOTP_CTRL_WR_UNLOCK(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_CTRL_WR_UNLOCK) >> BP_OCOTP_CTRL_WR_UNLOCK)
  320. //! @brief Format value for bitfield OCOTP_CTRL_WR_UNLOCK.
  321. #define BF_OCOTP_CTRL_WR_UNLOCK(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_CTRL_WR_UNLOCK) & BM_OCOTP_CTRL_WR_UNLOCK)
  322. #ifndef __LANGUAGE_ASM__
  323. //! @brief Set the WR_UNLOCK field to a new value.
  324. #define BW_OCOTP_CTRL_WR_UNLOCK(v) BF_CS1(OCOTP_CTRL, WR_UNLOCK, v)
  325. #endif
  326. #define BV_OCOTP_CTRL_WR_UNLOCK__KEY (0x3e77) //!< Key needed to unlock HW_OCOTP_DATA register.
  327. //-------------------------------------------------------------------------------------------
  328. // HW_OCOTP_TIMING - OTP Controller Timing Register
  329. //-------------------------------------------------------------------------------------------
  330. #ifndef __LANGUAGE_ASM__
  331. /*!
  332. * @brief HW_OCOTP_TIMING - OTP Controller Timing Register (RW)
  333. *
  334. * Reset value: 0x01461299
  335. *
  336. * The OCOTP Data Register is used for OTP Programming This register specifies timing parameters
  337. * for programming and reading the OCOTP fuse array. EXAMPLE Empty Example.
  338. */
  339. typedef union _hw_ocotp_timing
  340. {
  341. reg32_t U;
  342. struct _hw_ocotp_timing_bitfields
  343. {
  344. unsigned STROBE_PROG : 12; //!< [11:0] This count value specifies the strobe period in one time write OTP.
  345. unsigned RELAX : 4; //!< [15:12] This count value specifies the time to add to all default timing parameters other than the Tpgm and Trd.
  346. unsigned STROBE_READ : 6; //!< [21:16] This count value specifies the strobe period in one time read OTP.
  347. unsigned WAIT : 6; //!< [27:22] This count value specifies time interval between auto read and write access in one time program.
  348. unsigned RESERVED0 : 4; //!< [31:28] These bits always read back zero.
  349. } B;
  350. } hw_ocotp_timing_t;
  351. #endif
  352. /*
  353. * constants & macros for entire OCOTP_TIMING register
  354. */
  355. #define HW_OCOTP_TIMING_ADDR (REGS_OCOTP_BASE + 0x10)
  356. #ifndef __LANGUAGE_ASM__
  357. #define HW_OCOTP_TIMING (*(volatile hw_ocotp_timing_t *) HW_OCOTP_TIMING_ADDR)
  358. #define HW_OCOTP_TIMING_RD() (HW_OCOTP_TIMING.U)
  359. #define HW_OCOTP_TIMING_WR(v) (HW_OCOTP_TIMING.U = (v))
  360. #define HW_OCOTP_TIMING_SET(v) (HW_OCOTP_TIMING_WR(HW_OCOTP_TIMING_RD() | (v)))
  361. #define HW_OCOTP_TIMING_CLR(v) (HW_OCOTP_TIMING_WR(HW_OCOTP_TIMING_RD() & ~(v)))
  362. #define HW_OCOTP_TIMING_TOG(v) (HW_OCOTP_TIMING_WR(HW_OCOTP_TIMING_RD() ^ (v)))
  363. #endif
  364. /*
  365. * constants & macros for individual OCOTP_TIMING bitfields
  366. */
  367. /* --- Register HW_OCOTP_TIMING, field STROBE_PROG[11:0] (RW)
  368. *
  369. * This count value specifies the strobe period in one time write OTP. Tpgm = ((STROBE_PROG+1)-
  370. * 2*(RELAX+1)) /ipg_clk_freq. It is given in number of ipg_clk periods.
  371. */
  372. #define BP_OCOTP_TIMING_STROBE_PROG (0) //!< Bit position for OCOTP_TIMING_STROBE_PROG.
  373. #define BM_OCOTP_TIMING_STROBE_PROG (0x00000fff) //!< Bit mask for OCOTP_TIMING_STROBE_PROG.
  374. //! @brief Get value of OCOTP_TIMING_STROBE_PROG from a register value.
  375. #define BG_OCOTP_TIMING_STROBE_PROG(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_TIMING_STROBE_PROG) >> BP_OCOTP_TIMING_STROBE_PROG)
  376. //! @brief Format value for bitfield OCOTP_TIMING_STROBE_PROG.
  377. #define BF_OCOTP_TIMING_STROBE_PROG(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_TIMING_STROBE_PROG) & BM_OCOTP_TIMING_STROBE_PROG)
  378. #ifndef __LANGUAGE_ASM__
  379. //! @brief Set the STROBE_PROG field to a new value.
  380. #define BW_OCOTP_TIMING_STROBE_PROG(v) (HW_OCOTP_TIMING_WR((HW_OCOTP_TIMING_RD() & ~BM_OCOTP_TIMING_STROBE_PROG) | BF_OCOTP_TIMING_STROBE_PROG(v)))
  381. #endif
  382. /* --- Register HW_OCOTP_TIMING, field RELAX[15:12] (RW)
  383. *
  384. * This count value specifies the time to add to all default timing parameters other than the Tpgm
  385. * and Trd. It is given in number of ipg_clk periods.
  386. */
  387. #define BP_OCOTP_TIMING_RELAX (12) //!< Bit position for OCOTP_TIMING_RELAX.
  388. #define BM_OCOTP_TIMING_RELAX (0x0000f000) //!< Bit mask for OCOTP_TIMING_RELAX.
  389. //! @brief Get value of OCOTP_TIMING_RELAX from a register value.
  390. #define BG_OCOTP_TIMING_RELAX(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_TIMING_RELAX) >> BP_OCOTP_TIMING_RELAX)
  391. //! @brief Format value for bitfield OCOTP_TIMING_RELAX.
  392. #define BF_OCOTP_TIMING_RELAX(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_TIMING_RELAX) & BM_OCOTP_TIMING_RELAX)
  393. #ifndef __LANGUAGE_ASM__
  394. //! @brief Set the RELAX field to a new value.
  395. #define BW_OCOTP_TIMING_RELAX(v) (HW_OCOTP_TIMING_WR((HW_OCOTP_TIMING_RD() & ~BM_OCOTP_TIMING_RELAX) | BF_OCOTP_TIMING_RELAX(v)))
  396. #endif
  397. /* --- Register HW_OCOTP_TIMING, field STROBE_READ[21:16] (RW)
  398. *
  399. * This count value specifies the strobe period in one time read OTP. Trd = ((STROBE_READ+1)-
  400. * 2*(RELAX+1)) /ipg_clk_freq. It is given in number of ipg_clk periods.
  401. */
  402. #define BP_OCOTP_TIMING_STROBE_READ (16) //!< Bit position for OCOTP_TIMING_STROBE_READ.
  403. #define BM_OCOTP_TIMING_STROBE_READ (0x003f0000) //!< Bit mask for OCOTP_TIMING_STROBE_READ.
  404. //! @brief Get value of OCOTP_TIMING_STROBE_READ from a register value.
  405. #define BG_OCOTP_TIMING_STROBE_READ(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_TIMING_STROBE_READ) >> BP_OCOTP_TIMING_STROBE_READ)
  406. //! @brief Format value for bitfield OCOTP_TIMING_STROBE_READ.
  407. #define BF_OCOTP_TIMING_STROBE_READ(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_TIMING_STROBE_READ) & BM_OCOTP_TIMING_STROBE_READ)
  408. #ifndef __LANGUAGE_ASM__
  409. //! @brief Set the STROBE_READ field to a new value.
  410. #define BW_OCOTP_TIMING_STROBE_READ(v) (HW_OCOTP_TIMING_WR((HW_OCOTP_TIMING_RD() & ~BM_OCOTP_TIMING_STROBE_READ) | BF_OCOTP_TIMING_STROBE_READ(v)))
  411. #endif
  412. /* --- Register HW_OCOTP_TIMING, field WAIT[27:22] (RW)
  413. *
  414. * This count value specifies time interval between auto read and write access in one time program.
  415. * It is given in number of ipg_clk periods.
  416. */
  417. #define BP_OCOTP_TIMING_WAIT (22) //!< Bit position for OCOTP_TIMING_WAIT.
  418. #define BM_OCOTP_TIMING_WAIT (0x0fc00000) //!< Bit mask for OCOTP_TIMING_WAIT.
  419. //! @brief Get value of OCOTP_TIMING_WAIT from a register value.
  420. #define BG_OCOTP_TIMING_WAIT(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_TIMING_WAIT) >> BP_OCOTP_TIMING_WAIT)
  421. //! @brief Format value for bitfield OCOTP_TIMING_WAIT.
  422. #define BF_OCOTP_TIMING_WAIT(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_TIMING_WAIT) & BM_OCOTP_TIMING_WAIT)
  423. #ifndef __LANGUAGE_ASM__
  424. //! @brief Set the WAIT field to a new value.
  425. #define BW_OCOTP_TIMING_WAIT(v) (HW_OCOTP_TIMING_WR((HW_OCOTP_TIMING_RD() & ~BM_OCOTP_TIMING_WAIT) | BF_OCOTP_TIMING_WAIT(v)))
  426. #endif
  427. //-------------------------------------------------------------------------------------------
  428. // HW_OCOTP_DATA - OTP Controller Write Data Register
  429. //-------------------------------------------------------------------------------------------
  430. #ifndef __LANGUAGE_ASM__
  431. /*!
  432. * @brief HW_OCOTP_DATA - OTP Controller Write Data Register (RW)
  433. *
  434. * Reset value: 0x00000000
  435. *
  436. * The OCOTP Data Register is used for OTP Programming This register is used in conjuction with
  437. * HW_OCOTP_CTRL to perform one-time writes to the OTP. Please see the "Software Write Sequence"
  438. * section for operating details. EXAMPLE Empty Example.
  439. */
  440. typedef union _hw_ocotp_data
  441. {
  442. reg32_t U;
  443. struct _hw_ocotp_data_bitfields
  444. {
  445. unsigned DATA : 32; //!< [31:0] Used to initiate a write to OTP.
  446. } B;
  447. } hw_ocotp_data_t;
  448. #endif
  449. /*
  450. * constants & macros for entire OCOTP_DATA register
  451. */
  452. #define HW_OCOTP_DATA_ADDR (REGS_OCOTP_BASE + 0x20)
  453. #ifndef __LANGUAGE_ASM__
  454. #define HW_OCOTP_DATA (*(volatile hw_ocotp_data_t *) HW_OCOTP_DATA_ADDR)
  455. #define HW_OCOTP_DATA_RD() (HW_OCOTP_DATA.U)
  456. #define HW_OCOTP_DATA_WR(v) (HW_OCOTP_DATA.U = (v))
  457. #define HW_OCOTP_DATA_SET(v) (HW_OCOTP_DATA_WR(HW_OCOTP_DATA_RD() | (v)))
  458. #define HW_OCOTP_DATA_CLR(v) (HW_OCOTP_DATA_WR(HW_OCOTP_DATA_RD() & ~(v)))
  459. #define HW_OCOTP_DATA_TOG(v) (HW_OCOTP_DATA_WR(HW_OCOTP_DATA_RD() ^ (v)))
  460. #endif
  461. /*
  462. * constants & macros for individual OCOTP_DATA bitfields
  463. */
  464. /* --- Register HW_OCOTP_DATA, field DATA[31:0] (RW)
  465. *
  466. * Used to initiate a write to OTP. Please see the "Software Write Sequence" section for operating
  467. * details.
  468. */
  469. #define BP_OCOTP_DATA_DATA (0) //!< Bit position for OCOTP_DATA_DATA.
  470. #define BM_OCOTP_DATA_DATA (0xffffffff) //!< Bit mask for OCOTP_DATA_DATA.
  471. //! @brief Get value of OCOTP_DATA_DATA from a register value.
  472. #define BG_OCOTP_DATA_DATA(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_DATA_DATA) >> BP_OCOTP_DATA_DATA)
  473. //! @brief Format value for bitfield OCOTP_DATA_DATA.
  474. #define BF_OCOTP_DATA_DATA(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_DATA_DATA) & BM_OCOTP_DATA_DATA)
  475. #ifndef __LANGUAGE_ASM__
  476. //! @brief Set the DATA field to a new value.
  477. #define BW_OCOTP_DATA_DATA(v) (HW_OCOTP_DATA_WR((HW_OCOTP_DATA_RD() & ~BM_OCOTP_DATA_DATA) | BF_OCOTP_DATA_DATA(v)))
  478. #endif
  479. //-------------------------------------------------------------------------------------------
  480. // HW_OCOTP_READ_CTRL - OTP Controller Write Data Register
  481. //-------------------------------------------------------------------------------------------
  482. #ifndef __LANGUAGE_ASM__
  483. /*!
  484. * @brief HW_OCOTP_READ_CTRL - OTP Controller Write Data Register (RW)
  485. *
  486. * Reset value: 0x00000000
  487. *
  488. * The OCOTP Register is used for OTP Read This register is used in conjuction with HW_OCOTP_CTRL
  489. * to perform one time read to the OTP. Please see the "Software read Sequence" section for
  490. * operating details. EXAMPLE Empty Example.
  491. */
  492. typedef union _hw_ocotp_read_ctrl
  493. {
  494. reg32_t U;
  495. struct _hw_ocotp_read_ctrl_bitfields
  496. {
  497. unsigned READ_FUSE : 1; //!< [0] Used to initiate a read to OTP.
  498. unsigned RESERVED0 : 31; //!< [31:1] Reserved
  499. } B;
  500. } hw_ocotp_read_ctrl_t;
  501. #endif
  502. /*
  503. * constants & macros for entire OCOTP_READ_CTRL register
  504. */
  505. #define HW_OCOTP_READ_CTRL_ADDR (REGS_OCOTP_BASE + 0x30)
  506. #ifndef __LANGUAGE_ASM__
  507. #define HW_OCOTP_READ_CTRL (*(volatile hw_ocotp_read_ctrl_t *) HW_OCOTP_READ_CTRL_ADDR)
  508. #define HW_OCOTP_READ_CTRL_RD() (HW_OCOTP_READ_CTRL.U)
  509. #define HW_OCOTP_READ_CTRL_WR(v) (HW_OCOTP_READ_CTRL.U = (v))
  510. #define HW_OCOTP_READ_CTRL_SET(v) (HW_OCOTP_READ_CTRL_WR(HW_OCOTP_READ_CTRL_RD() | (v)))
  511. #define HW_OCOTP_READ_CTRL_CLR(v) (HW_OCOTP_READ_CTRL_WR(HW_OCOTP_READ_CTRL_RD() & ~(v)))
  512. #define HW_OCOTP_READ_CTRL_TOG(v) (HW_OCOTP_READ_CTRL_WR(HW_OCOTP_READ_CTRL_RD() ^ (v)))
  513. #endif
  514. /*
  515. * constants & macros for individual OCOTP_READ_CTRL bitfields
  516. */
  517. /* --- Register HW_OCOTP_READ_CTRL, field READ_FUSE[0] (RW)
  518. *
  519. * Used to initiate a read to OTP. Please see the "Software read Sequence" section for operating
  520. * details.
  521. */
  522. #define BP_OCOTP_READ_CTRL_READ_FUSE (0) //!< Bit position for OCOTP_READ_CTRL_READ_FUSE.
  523. #define BM_OCOTP_READ_CTRL_READ_FUSE (0x00000001) //!< Bit mask for OCOTP_READ_CTRL_READ_FUSE.
  524. //! @brief Get value of OCOTP_READ_CTRL_READ_FUSE from a register value.
  525. #define BG_OCOTP_READ_CTRL_READ_FUSE(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_READ_CTRL_READ_FUSE) >> BP_OCOTP_READ_CTRL_READ_FUSE)
  526. //! @brief Format value for bitfield OCOTP_READ_CTRL_READ_FUSE.
  527. #define BF_OCOTP_READ_CTRL_READ_FUSE(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_READ_CTRL_READ_FUSE) & BM_OCOTP_READ_CTRL_READ_FUSE)
  528. #ifndef __LANGUAGE_ASM__
  529. //! @brief Set the READ_FUSE field to a new value.
  530. #define BW_OCOTP_READ_CTRL_READ_FUSE(v) (HW_OCOTP_READ_CTRL_WR((HW_OCOTP_READ_CTRL_RD() & ~BM_OCOTP_READ_CTRL_READ_FUSE) | BF_OCOTP_READ_CTRL_READ_FUSE(v)))
  531. #endif
  532. //-------------------------------------------------------------------------------------------
  533. // HW_OCOTP_READ_FUSE_DATA - OTP Controller Read Data Register
  534. //-------------------------------------------------------------------------------------------
  535. #ifndef __LANGUAGE_ASM__
  536. /*!
  537. * @brief HW_OCOTP_READ_FUSE_DATA - OTP Controller Read Data Register (RW)
  538. *
  539. * Reset value: 0x00000000
  540. *
  541. * The OCOTP Data Register is used for OTP Read The data read from OTP EXAMPLE Empty Example.
  542. */
  543. typedef union _hw_ocotp_read_fuse_data
  544. {
  545. reg32_t U;
  546. struct _hw_ocotp_read_fuse_data_bitfields
  547. {
  548. unsigned DATA : 32; //!< [31:0] The data read from OTP
  549. } B;
  550. } hw_ocotp_read_fuse_data_t;
  551. #endif
  552. /*
  553. * constants & macros for entire OCOTP_READ_FUSE_DATA register
  554. */
  555. #define HW_OCOTP_READ_FUSE_DATA_ADDR (REGS_OCOTP_BASE + 0x40)
  556. #ifndef __LANGUAGE_ASM__
  557. #define HW_OCOTP_READ_FUSE_DATA (*(volatile hw_ocotp_read_fuse_data_t *) HW_OCOTP_READ_FUSE_DATA_ADDR)
  558. #define HW_OCOTP_READ_FUSE_DATA_RD() (HW_OCOTP_READ_FUSE_DATA.U)
  559. #define HW_OCOTP_READ_FUSE_DATA_WR(v) (HW_OCOTP_READ_FUSE_DATA.U = (v))
  560. #define HW_OCOTP_READ_FUSE_DATA_SET(v) (HW_OCOTP_READ_FUSE_DATA_WR(HW_OCOTP_READ_FUSE_DATA_RD() | (v)))
  561. #define HW_OCOTP_READ_FUSE_DATA_CLR(v) (HW_OCOTP_READ_FUSE_DATA_WR(HW_OCOTP_READ_FUSE_DATA_RD() & ~(v)))
  562. #define HW_OCOTP_READ_FUSE_DATA_TOG(v) (HW_OCOTP_READ_FUSE_DATA_WR(HW_OCOTP_READ_FUSE_DATA_RD() ^ (v)))
  563. #endif
  564. /*
  565. * constants & macros for individual OCOTP_READ_FUSE_DATA bitfields
  566. */
  567. /* --- Register HW_OCOTP_READ_FUSE_DATA, field DATA[31:0] (RW)
  568. *
  569. * The data read from OTP
  570. */
  571. #define BP_OCOTP_READ_FUSE_DATA_DATA (0) //!< Bit position for OCOTP_READ_FUSE_DATA_DATA.
  572. #define BM_OCOTP_READ_FUSE_DATA_DATA (0xffffffff) //!< Bit mask for OCOTP_READ_FUSE_DATA_DATA.
  573. //! @brief Get value of OCOTP_READ_FUSE_DATA_DATA from a register value.
  574. #define BG_OCOTP_READ_FUSE_DATA_DATA(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_READ_FUSE_DATA_DATA) >> BP_OCOTP_READ_FUSE_DATA_DATA)
  575. //! @brief Format value for bitfield OCOTP_READ_FUSE_DATA_DATA.
  576. #define BF_OCOTP_READ_FUSE_DATA_DATA(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_READ_FUSE_DATA_DATA) & BM_OCOTP_READ_FUSE_DATA_DATA)
  577. #ifndef __LANGUAGE_ASM__
  578. //! @brief Set the DATA field to a new value.
  579. #define BW_OCOTP_READ_FUSE_DATA_DATA(v) (HW_OCOTP_READ_FUSE_DATA_WR((HW_OCOTP_READ_FUSE_DATA_RD() & ~BM_OCOTP_READ_FUSE_DATA_DATA) | BF_OCOTP_READ_FUSE_DATA_DATA(v)))
  580. #endif
  581. //-------------------------------------------------------------------------------------------
  582. // HW_OCOTP_SW_STICKY - Sticky bit Register
  583. //-------------------------------------------------------------------------------------------
  584. #ifndef __LANGUAGE_ASM__
  585. /*!
  586. * @brief HW_OCOTP_SW_STICKY - Sticky bit Register (RW)
  587. *
  588. * Reset value: 0x00000000
  589. *
  590. * Some SW sticky bits . Some sticky bits are used by SW to lock some fuse area , shadow registers
  591. * and other features. EXAMPLE Empty Example.
  592. */
  593. typedef union _hw_ocotp_sw_sticky
  594. {
  595. reg32_t U;
  596. struct _hw_ocotp_sw_sticky_bitfields
  597. {
  598. unsigned RESERVED0 : 1; //!< [0] Reserved.
  599. unsigned SRK_REVOKE_LOCK : 1; //!< [1] Shadow register write and OTP write lock for SRK_REVOKE region.
  600. unsigned FIELD_RETURN_LOCK : 1; //!< [2] Shadow register write and OTP write lock for FIELD_RETURN region.
  601. unsigned RESERVED1 : 29; //!< [31:3] Reserved
  602. } B;
  603. } hw_ocotp_sw_sticky_t;
  604. #endif
  605. /*
  606. * constants & macros for entire OCOTP_SW_STICKY register
  607. */
  608. #define HW_OCOTP_SW_STICKY_ADDR (REGS_OCOTP_BASE + 0x50)
  609. #ifndef __LANGUAGE_ASM__
  610. #define HW_OCOTP_SW_STICKY (*(volatile hw_ocotp_sw_sticky_t *) HW_OCOTP_SW_STICKY_ADDR)
  611. #define HW_OCOTP_SW_STICKY_RD() (HW_OCOTP_SW_STICKY.U)
  612. #define HW_OCOTP_SW_STICKY_WR(v) (HW_OCOTP_SW_STICKY.U = (v))
  613. #define HW_OCOTP_SW_STICKY_SET(v) (HW_OCOTP_SW_STICKY_WR(HW_OCOTP_SW_STICKY_RD() | (v)))
  614. #define HW_OCOTP_SW_STICKY_CLR(v) (HW_OCOTP_SW_STICKY_WR(HW_OCOTP_SW_STICKY_RD() & ~(v)))
  615. #define HW_OCOTP_SW_STICKY_TOG(v) (HW_OCOTP_SW_STICKY_WR(HW_OCOTP_SW_STICKY_RD() ^ (v)))
  616. #endif
  617. /*
  618. * constants & macros for individual OCOTP_SW_STICKY bitfields
  619. */
  620. /* --- Register HW_OCOTP_SW_STICKY, field SRK_REVOKE_LOCK[1] (RW)
  621. *
  622. * Shadow register write and OTP write lock for SRK_REVOKE region. When set, the writing of this
  623. * region's shadow register and OTP fuse word are blocked. Once this bit is set, it is always high
  624. * unless a POR is issued.
  625. */
  626. #define BP_OCOTP_SW_STICKY_SRK_REVOKE_LOCK (1) //!< Bit position for OCOTP_SW_STICKY_SRK_REVOKE_LOCK.
  627. #define BM_OCOTP_SW_STICKY_SRK_REVOKE_LOCK (0x00000002) //!< Bit mask for OCOTP_SW_STICKY_SRK_REVOKE_LOCK.
  628. //! @brief Get value of OCOTP_SW_STICKY_SRK_REVOKE_LOCK from a register value.
  629. #define BG_OCOTP_SW_STICKY_SRK_REVOKE_LOCK(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_SW_STICKY_SRK_REVOKE_LOCK) >> BP_OCOTP_SW_STICKY_SRK_REVOKE_LOCK)
  630. //! @brief Format value for bitfield OCOTP_SW_STICKY_SRK_REVOKE_LOCK.
  631. #define BF_OCOTP_SW_STICKY_SRK_REVOKE_LOCK(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_SW_STICKY_SRK_REVOKE_LOCK) & BM_OCOTP_SW_STICKY_SRK_REVOKE_LOCK)
  632. #ifndef __LANGUAGE_ASM__
  633. //! @brief Set the SRK_REVOKE_LOCK field to a new value.
  634. #define BW_OCOTP_SW_STICKY_SRK_REVOKE_LOCK(v) (HW_OCOTP_SW_STICKY_WR((HW_OCOTP_SW_STICKY_RD() & ~BM_OCOTP_SW_STICKY_SRK_REVOKE_LOCK) | BF_OCOTP_SW_STICKY_SRK_REVOKE_LOCK(v)))
  635. #endif
  636. /* --- Register HW_OCOTP_SW_STICKY, field FIELD_RETURN_LOCK[2] (RW)
  637. *
  638. * Shadow register write and OTP write lock for FIELD_RETURN region. When set, the writing of this
  639. * region's shadow register and OTP fuse word are blocked.Once this bit is set, it is always high
  640. * unless a POR is issued.
  641. */
  642. #define BP_OCOTP_SW_STICKY_FIELD_RETURN_LOCK (2) //!< Bit position for OCOTP_SW_STICKY_FIELD_RETURN_LOCK.
  643. #define BM_OCOTP_SW_STICKY_FIELD_RETURN_LOCK (0x00000004) //!< Bit mask for OCOTP_SW_STICKY_FIELD_RETURN_LOCK.
  644. //! @brief Get value of OCOTP_SW_STICKY_FIELD_RETURN_LOCK from a register value.
  645. #define BG_OCOTP_SW_STICKY_FIELD_RETURN_LOCK(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_SW_STICKY_FIELD_RETURN_LOCK) >> BP_OCOTP_SW_STICKY_FIELD_RETURN_LOCK)
  646. //! @brief Format value for bitfield OCOTP_SW_STICKY_FIELD_RETURN_LOCK.
  647. #define BF_OCOTP_SW_STICKY_FIELD_RETURN_LOCK(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_SW_STICKY_FIELD_RETURN_LOCK) & BM_OCOTP_SW_STICKY_FIELD_RETURN_LOCK)
  648. #ifndef __LANGUAGE_ASM__
  649. //! @brief Set the FIELD_RETURN_LOCK field to a new value.
  650. #define BW_OCOTP_SW_STICKY_FIELD_RETURN_LOCK(v) (HW_OCOTP_SW_STICKY_WR((HW_OCOTP_SW_STICKY_RD() & ~BM_OCOTP_SW_STICKY_FIELD_RETURN_LOCK) | BF_OCOTP_SW_STICKY_FIELD_RETURN_LOCK(v)))
  651. #endif
  652. //-------------------------------------------------------------------------------------------
  653. // HW_OCOTP_SCS - Software Controllable Signals Register
  654. //-------------------------------------------------------------------------------------------
  655. #ifndef __LANGUAGE_ASM__
  656. /*!
  657. * @brief HW_OCOTP_SCS - Software Controllable Signals Register (RW)
  658. *
  659. * Reset value: 0x00000000
  660. *
  661. * HW_OCOTP_SCS: 0x060 This register holds volatile configuration values that can be set and locked
  662. * by trusted software. All values are returned to their defualt values after POR. EXAMPLE Empty
  663. * Example.
  664. */
  665. typedef union _hw_ocotp_scs
  666. {
  667. reg32_t U;
  668. struct _hw_ocotp_scs_bitfields
  669. {
  670. unsigned HAB_JDE : 1; //!< [0] HAB JTAG Debug Enable.
  671. unsigned SPARE : 30; //!< [30:1] Unallocated read/write bits for implementation specific software use.
  672. unsigned LOCK : 1; //!< [31] When set, all of the bits in this register are locked and can not be changed through SW programming.
  673. } B;
  674. } hw_ocotp_scs_t;
  675. #endif
  676. /*
  677. * constants & macros for entire OCOTP_SCS register
  678. */
  679. #define HW_OCOTP_SCS_ADDR (REGS_OCOTP_BASE + 0x60)
  680. #define HW_OCOTP_SCS_SET_ADDR (HW_OCOTP_SCS_ADDR + 0x4)
  681. #define HW_OCOTP_SCS_CLR_ADDR (HW_OCOTP_SCS_ADDR + 0x8)
  682. #define HW_OCOTP_SCS_TOG_ADDR (HW_OCOTP_SCS_ADDR + 0xC)
  683. #ifndef __LANGUAGE_ASM__
  684. #define HW_OCOTP_SCS (*(volatile hw_ocotp_scs_t *) HW_OCOTP_SCS_ADDR)
  685. #define HW_OCOTP_SCS_RD() (HW_OCOTP_SCS.U)
  686. #define HW_OCOTP_SCS_WR(v) (HW_OCOTP_SCS.U = (v))
  687. #define HW_OCOTP_SCS_SET(v) ((*(volatile reg32_t *) HW_OCOTP_SCS_SET_ADDR) = (v))
  688. #define HW_OCOTP_SCS_CLR(v) ((*(volatile reg32_t *) HW_OCOTP_SCS_CLR_ADDR) = (v))
  689. #define HW_OCOTP_SCS_TOG(v) ((*(volatile reg32_t *) HW_OCOTP_SCS_TOG_ADDR) = (v))
  690. #endif
  691. /*
  692. * constants & macros for individual OCOTP_SCS bitfields
  693. */
  694. /* --- Register HW_OCOTP_SCS, field HAB_JDE[0] (RW)
  695. *
  696. * HAB JTAG Debug Enable. This bit is used by the HAB to enable JTAG debugging, assuming that a
  697. * properlay signed command to do so is found and validated by the HAB. The HAB must lock the
  698. * register before passing control to the OS whether or not JTAG debugging has been enabled. Once
  699. * JTAG is enabled by this bit, it can not be disabled unless the system is reset by POR. 0: JTAG
  700. * debugging is not enabled by the HAB (it may still be enabled by other mechanisms). 1: JTAG
  701. * debugging is enabled by the HAB (though this signal may be gated off).
  702. *
  703. * Values:
  704. * 1 - JTAG debugging is enabled by the HAB (though this signal may be gated off)
  705. */
  706. #define BP_OCOTP_SCS_HAB_JDE (0) //!< Bit position for OCOTP_SCS_HAB_JDE.
  707. #define BM_OCOTP_SCS_HAB_JDE (0x00000001) //!< Bit mask for OCOTP_SCS_HAB_JDE.
  708. //! @brief Get value of OCOTP_SCS_HAB_JDE from a register value.
  709. #define BG_OCOTP_SCS_HAB_JDE(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_SCS_HAB_JDE) >> BP_OCOTP_SCS_HAB_JDE)
  710. //! @brief Format value for bitfield OCOTP_SCS_HAB_JDE.
  711. #define BF_OCOTP_SCS_HAB_JDE(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_SCS_HAB_JDE) & BM_OCOTP_SCS_HAB_JDE)
  712. #ifndef __LANGUAGE_ASM__
  713. //! @brief Set the HAB_JDE field to a new value.
  714. #define BW_OCOTP_SCS_HAB_JDE(v) BF_CS1(OCOTP_SCS, HAB_JDE, v)
  715. #endif
  716. /* --- Register HW_OCOTP_SCS, field SPARE[30:1] (RW)
  717. *
  718. * Unallocated read/write bits for implementation specific software use.
  719. */
  720. #define BP_OCOTP_SCS_SPARE (1) //!< Bit position for OCOTP_SCS_SPARE.
  721. #define BM_OCOTP_SCS_SPARE (0x7ffffffe) //!< Bit mask for OCOTP_SCS_SPARE.
  722. //! @brief Get value of OCOTP_SCS_SPARE from a register value.
  723. #define BG_OCOTP_SCS_SPARE(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_SCS_SPARE) >> BP_OCOTP_SCS_SPARE)
  724. //! @brief Format value for bitfield OCOTP_SCS_SPARE.
  725. #define BF_OCOTP_SCS_SPARE(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_SCS_SPARE) & BM_OCOTP_SCS_SPARE)
  726. #ifndef __LANGUAGE_ASM__
  727. //! @brief Set the SPARE field to a new value.
  728. #define BW_OCOTP_SCS_SPARE(v) BF_CS1(OCOTP_SCS, SPARE, v)
  729. #endif
  730. /* --- Register HW_OCOTP_SCS, field LOCK[31] (RW)
  731. *
  732. * When set, all of the bits in this register are locked and can not be changed through SW
  733. * programming. This bit is only reset after a POR is issued.
  734. */
  735. #define BP_OCOTP_SCS_LOCK (31) //!< Bit position for OCOTP_SCS_LOCK.
  736. #define BM_OCOTP_SCS_LOCK (0x80000000) //!< Bit mask for OCOTP_SCS_LOCK.
  737. //! @brief Get value of OCOTP_SCS_LOCK from a register value.
  738. #define BG_OCOTP_SCS_LOCK(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_SCS_LOCK) >> BP_OCOTP_SCS_LOCK)
  739. //! @brief Format value for bitfield OCOTP_SCS_LOCK.
  740. #define BF_OCOTP_SCS_LOCK(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_SCS_LOCK) & BM_OCOTP_SCS_LOCK)
  741. #ifndef __LANGUAGE_ASM__
  742. //! @brief Set the LOCK field to a new value.
  743. #define BW_OCOTP_SCS_LOCK(v) BF_CS1(OCOTP_SCS, LOCK, v)
  744. #endif
  745. //-------------------------------------------------------------------------------------------
  746. // HW_OCOTP_CRC_ADDR - OTP Controller CRC test address
  747. //-------------------------------------------------------------------------------------------
  748. #ifndef __LANGUAGE_ASM__
  749. /*!
  750. * @brief HW_OCOTP_CRC_ADDR - OTP Controller CRC test address (RW)
  751. *
  752. * Reset value: 0x00000000
  753. *
  754. * The OCOTP Data Register is used for OTP Read The address for CRC calculation EXAMPLE Empty
  755. * Example.
  756. */
  757. typedef union _hw_ocotp_crc_addr
  758. {
  759. reg32_t U;
  760. struct _hw_ocotp_crc_addr_bitfields
  761. {
  762. unsigned DATA_START_ADDR : 8; //!< [7:0] End address of fuse location for CRC calculation
  763. unsigned DATA_END_ADDR : 8; //!< [15:8] Start address of fuse location for CRC calculation
  764. unsigned CRC_ADDR : 3; //!< [18:16] Address of 32-bit CRC result for comparing
  765. unsigned RESERVED0 : 13; //!< [31:19] Reserved
  766. } B;
  767. } hw_ocotp_crc_addr_t;
  768. #endif
  769. /*
  770. * constants & macros for entire OCOTP_CRC_ADDR register
  771. */
  772. #define HW_OCOTP_CRC_ADDR_ADDR (REGS_OCOTP_BASE + 0x70)
  773. #ifndef __LANGUAGE_ASM__
  774. #define HW_OCOTP_CRC_ADDR (*(volatile hw_ocotp_crc_addr_t *) HW_OCOTP_CRC_ADDR_ADDR)
  775. #define HW_OCOTP_CRC_ADDR_RD() (HW_OCOTP_CRC_ADDR.U)
  776. #define HW_OCOTP_CRC_ADDR_WR(v) (HW_OCOTP_CRC_ADDR.U = (v))
  777. #define HW_OCOTP_CRC_ADDR_SET(v) (HW_OCOTP_CRC_ADDR_WR(HW_OCOTP_CRC_ADDR_RD() | (v)))
  778. #define HW_OCOTP_CRC_ADDR_CLR(v) (HW_OCOTP_CRC_ADDR_WR(HW_OCOTP_CRC_ADDR_RD() & ~(v)))
  779. #define HW_OCOTP_CRC_ADDR_TOG(v) (HW_OCOTP_CRC_ADDR_WR(HW_OCOTP_CRC_ADDR_RD() ^ (v)))
  780. #endif
  781. /*
  782. * constants & macros for individual OCOTP_CRC_ADDR bitfields
  783. */
  784. /* --- Register HW_OCOTP_CRC_ADDR, field DATA_START_ADDR[7:0] (RW)
  785. *
  786. * End address of fuse location for CRC calculation
  787. */
  788. #define BP_OCOTP_CRC_ADDR_DATA_START_ADDR (0) //!< Bit position for OCOTP_CRC_ADDR_DATA_START_ADDR.
  789. #define BM_OCOTP_CRC_ADDR_DATA_START_ADDR (0x000000ff) //!< Bit mask for OCOTP_CRC_ADDR_DATA_START_ADDR.
  790. //! @brief Get value of OCOTP_CRC_ADDR_DATA_START_ADDR from a register value.
  791. #define BG_OCOTP_CRC_ADDR_DATA_START_ADDR(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_CRC_ADDR_DATA_START_ADDR) >> BP_OCOTP_CRC_ADDR_DATA_START_ADDR)
  792. //! @brief Format value for bitfield OCOTP_CRC_ADDR_DATA_START_ADDR.
  793. #define BF_OCOTP_CRC_ADDR_DATA_START_ADDR(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_CRC_ADDR_DATA_START_ADDR) & BM_OCOTP_CRC_ADDR_DATA_START_ADDR)
  794. #ifndef __LANGUAGE_ASM__
  795. //! @brief Set the DATA_START_ADDR field to a new value.
  796. #define BW_OCOTP_CRC_ADDR_DATA_START_ADDR(v) (HW_OCOTP_CRC_ADDR_WR((HW_OCOTP_CRC_ADDR_RD() & ~BM_OCOTP_CRC_ADDR_DATA_START_ADDR) | BF_OCOTP_CRC_ADDR_DATA_START_ADDR(v)))
  797. #endif
  798. /* --- Register HW_OCOTP_CRC_ADDR, field DATA_END_ADDR[15:8] (RW)
  799. *
  800. * Start address of fuse location for CRC calculation
  801. */
  802. #define BP_OCOTP_CRC_ADDR_DATA_END_ADDR (8) //!< Bit position for OCOTP_CRC_ADDR_DATA_END_ADDR.
  803. #define BM_OCOTP_CRC_ADDR_DATA_END_ADDR (0x0000ff00) //!< Bit mask for OCOTP_CRC_ADDR_DATA_END_ADDR.
  804. //! @brief Get value of OCOTP_CRC_ADDR_DATA_END_ADDR from a register value.
  805. #define BG_OCOTP_CRC_ADDR_DATA_END_ADDR(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_CRC_ADDR_DATA_END_ADDR) >> BP_OCOTP_CRC_ADDR_DATA_END_ADDR)
  806. //! @brief Format value for bitfield OCOTP_CRC_ADDR_DATA_END_ADDR.
  807. #define BF_OCOTP_CRC_ADDR_DATA_END_ADDR(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_CRC_ADDR_DATA_END_ADDR) & BM_OCOTP_CRC_ADDR_DATA_END_ADDR)
  808. #ifndef __LANGUAGE_ASM__
  809. //! @brief Set the DATA_END_ADDR field to a new value.
  810. #define BW_OCOTP_CRC_ADDR_DATA_END_ADDR(v) (HW_OCOTP_CRC_ADDR_WR((HW_OCOTP_CRC_ADDR_RD() & ~BM_OCOTP_CRC_ADDR_DATA_END_ADDR) | BF_OCOTP_CRC_ADDR_DATA_END_ADDR(v)))
  811. #endif
  812. /* --- Register HW_OCOTP_CRC_ADDR, field CRC_ADDR[18:16] (RW)
  813. *
  814. * Address of 32-bit CRC result for comparing
  815. */
  816. #define BP_OCOTP_CRC_ADDR_CRC_ADDR (16) //!< Bit position for OCOTP_CRC_ADDR_CRC_ADDR.
  817. #define BM_OCOTP_CRC_ADDR_CRC_ADDR (0x00070000) //!< Bit mask for OCOTP_CRC_ADDR_CRC_ADDR.
  818. //! @brief Get value of OCOTP_CRC_ADDR_CRC_ADDR from a register value.
  819. #define BG_OCOTP_CRC_ADDR_CRC_ADDR(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_CRC_ADDR_CRC_ADDR) >> BP_OCOTP_CRC_ADDR_CRC_ADDR)
  820. //! @brief Format value for bitfield OCOTP_CRC_ADDR_CRC_ADDR.
  821. #define BF_OCOTP_CRC_ADDR_CRC_ADDR(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_CRC_ADDR_CRC_ADDR) & BM_OCOTP_CRC_ADDR_CRC_ADDR)
  822. #ifndef __LANGUAGE_ASM__
  823. //! @brief Set the CRC_ADDR field to a new value.
  824. #define BW_OCOTP_CRC_ADDR_CRC_ADDR(v) (HW_OCOTP_CRC_ADDR_WR((HW_OCOTP_CRC_ADDR_RD() & ~BM_OCOTP_CRC_ADDR_CRC_ADDR) | BF_OCOTP_CRC_ADDR_CRC_ADDR(v)))
  825. #endif
  826. //-------------------------------------------------------------------------------------------
  827. // HW_OCOTP_CRC_VALUE - OTP Controller CRC Value Register
  828. //-------------------------------------------------------------------------------------------
  829. #ifndef __LANGUAGE_ASM__
  830. /*!
  831. * @brief HW_OCOTP_CRC_VALUE - OTP Controller CRC Value Register (RW)
  832. *
  833. * Reset value: 0x00000000
  834. *
  835. * The OCOTP Data Register is used for OTP Read The crc32 value based on CRC_ADDR EXAMPLE Empty
  836. * Example.
  837. */
  838. typedef union _hw_ocotp_crc_value
  839. {
  840. reg32_t U;
  841. struct _hw_ocotp_crc_value_bitfields
  842. {
  843. unsigned DATA : 32; //!< [31:0] The crc32 value based on CRC_ADDR
  844. } B;
  845. } hw_ocotp_crc_value_t;
  846. #endif
  847. /*
  848. * constants & macros for entire OCOTP_CRC_VALUE register
  849. */
  850. #define HW_OCOTP_CRC_VALUE_ADDR (REGS_OCOTP_BASE + 0x80)
  851. #ifndef __LANGUAGE_ASM__
  852. #define HW_OCOTP_CRC_VALUE (*(volatile hw_ocotp_crc_value_t *) HW_OCOTP_CRC_VALUE_ADDR)
  853. #define HW_OCOTP_CRC_VALUE_RD() (HW_OCOTP_CRC_VALUE.U)
  854. #define HW_OCOTP_CRC_VALUE_WR(v) (HW_OCOTP_CRC_VALUE.U = (v))
  855. #define HW_OCOTP_CRC_VALUE_SET(v) (HW_OCOTP_CRC_VALUE_WR(HW_OCOTP_CRC_VALUE_RD() | (v)))
  856. #define HW_OCOTP_CRC_VALUE_CLR(v) (HW_OCOTP_CRC_VALUE_WR(HW_OCOTP_CRC_VALUE_RD() & ~(v)))
  857. #define HW_OCOTP_CRC_VALUE_TOG(v) (HW_OCOTP_CRC_VALUE_WR(HW_OCOTP_CRC_VALUE_RD() ^ (v)))
  858. #endif
  859. /*
  860. * constants & macros for individual OCOTP_CRC_VALUE bitfields
  861. */
  862. /* --- Register HW_OCOTP_CRC_VALUE, field DATA[31:0] (RW)
  863. *
  864. * The crc32 value based on CRC_ADDR
  865. */
  866. #define BP_OCOTP_CRC_VALUE_DATA (0) //!< Bit position for OCOTP_CRC_VALUE_DATA.
  867. #define BM_OCOTP_CRC_VALUE_DATA (0xffffffff) //!< Bit mask for OCOTP_CRC_VALUE_DATA.
  868. //! @brief Get value of OCOTP_CRC_VALUE_DATA from a register value.
  869. #define BG_OCOTP_CRC_VALUE_DATA(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_CRC_VALUE_DATA) >> BP_OCOTP_CRC_VALUE_DATA)
  870. //! @brief Format value for bitfield OCOTP_CRC_VALUE_DATA.
  871. #define BF_OCOTP_CRC_VALUE_DATA(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_CRC_VALUE_DATA) & BM_OCOTP_CRC_VALUE_DATA)
  872. #ifndef __LANGUAGE_ASM__
  873. //! @brief Set the DATA field to a new value.
  874. #define BW_OCOTP_CRC_VALUE_DATA(v) (HW_OCOTP_CRC_VALUE_WR((HW_OCOTP_CRC_VALUE_RD() & ~BM_OCOTP_CRC_VALUE_DATA) | BF_OCOTP_CRC_VALUE_DATA(v)))
  875. #endif
  876. //-------------------------------------------------------------------------------------------
  877. // HW_OCOTP_VERSION - OTP Controller Version Register
  878. //-------------------------------------------------------------------------------------------
  879. #ifndef __LANGUAGE_ASM__
  880. /*!
  881. * @brief HW_OCOTP_VERSION - OTP Controller Version Register (RO)
  882. *
  883. * Reset value: 0x02000000
  884. *
  885. * This register always returns a known read value for debug purposes it indicates the version of
  886. * the block. This register indicates the RTL version in use. EXAMPLE Empty Example.
  887. */
  888. typedef union _hw_ocotp_version
  889. {
  890. reg32_t U;
  891. struct _hw_ocotp_version_bitfields
  892. {
  893. unsigned STEP : 16; //!< [15:0] Fixed read-only value reflecting the stepping of the RTL version.
  894. unsigned MINOR : 8; //!< [23:16] Fixed read-only value reflecting the MINOR field of the RTL version.
  895. unsigned MAJOR : 8; //!< [31:24] Fixed read-only value reflecting the MAJOR field of the RTL version.
  896. } B;
  897. } hw_ocotp_version_t;
  898. #endif
  899. /*
  900. * constants & macros for entire OCOTP_VERSION register
  901. */
  902. #define HW_OCOTP_VERSION_ADDR (REGS_OCOTP_BASE + 0x90)
  903. #ifndef __LANGUAGE_ASM__
  904. #define HW_OCOTP_VERSION (*(volatile hw_ocotp_version_t *) HW_OCOTP_VERSION_ADDR)
  905. #define HW_OCOTP_VERSION_RD() (HW_OCOTP_VERSION.U)
  906. #endif
  907. /*
  908. * constants & macros for individual OCOTP_VERSION bitfields
  909. */
  910. /* --- Register HW_OCOTP_VERSION, field STEP[15:0] (RO)
  911. *
  912. * Fixed read-only value reflecting the stepping of the RTL version.
  913. */
  914. #define BP_OCOTP_VERSION_STEP (0) //!< Bit position for OCOTP_VERSION_STEP.
  915. #define BM_OCOTP_VERSION_STEP (0x0000ffff) //!< Bit mask for OCOTP_VERSION_STEP.
  916. //! @brief Get value of OCOTP_VERSION_STEP from a register value.
  917. #define BG_OCOTP_VERSION_STEP(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_VERSION_STEP) >> BP_OCOTP_VERSION_STEP)
  918. /* --- Register HW_OCOTP_VERSION, field MINOR[23:16] (RO)
  919. *
  920. * Fixed read-only value reflecting the MINOR field of the RTL version.
  921. */
  922. #define BP_OCOTP_VERSION_MINOR (16) //!< Bit position for OCOTP_VERSION_MINOR.
  923. #define BM_OCOTP_VERSION_MINOR (0x00ff0000) //!< Bit mask for OCOTP_VERSION_MINOR.
  924. //! @brief Get value of OCOTP_VERSION_MINOR from a register value.
  925. #define BG_OCOTP_VERSION_MINOR(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_VERSION_MINOR) >> BP_OCOTP_VERSION_MINOR)
  926. /* --- Register HW_OCOTP_VERSION, field MAJOR[31:24] (RO)
  927. *
  928. * Fixed read-only value reflecting the MAJOR field of the RTL version.
  929. */
  930. #define BP_OCOTP_VERSION_MAJOR (24) //!< Bit position for OCOTP_VERSION_MAJOR.
  931. #define BM_OCOTP_VERSION_MAJOR (0xff000000) //!< Bit mask for OCOTP_VERSION_MAJOR.
  932. //! @brief Get value of OCOTP_VERSION_MAJOR from a register value.
  933. #define BG_OCOTP_VERSION_MAJOR(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_VERSION_MAJOR) >> BP_OCOTP_VERSION_MAJOR)
  934. //-------------------------------------------------------------------------------------------
  935. // HW_OCOTP_LOCK - Value of OTP Bank0 Word0 (Lock controls)
  936. //-------------------------------------------------------------------------------------------
  937. #ifndef __LANGUAGE_ASM__
  938. /*!
  939. * @brief HW_OCOTP_LOCK - Value of OTP Bank0 Word0 (Lock controls) (RO)
  940. *
  941. * Reset value: 0x00000000
  942. *
  943. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  944. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 0, word 0 (ADDR = 0x00).
  945. * EXAMPLE Empty Example.
  946. */
  947. typedef union _hw_ocotp_lock
  948. {
  949. reg32_t U;
  950. struct _hw_ocotp_lock_bitfields
  951. {
  952. unsigned TESTER : 2; //!< [1:0] Status of shadow register and OTP write lock for tester region.
  953. unsigned BOOT_CFG : 2; //!< [3:2] Status of shadow register and OTP write lock for boot_cfg region.
  954. unsigned MEM_TRIM : 2; //!< [5:4] Status of shadow register and OTP write lock for mem_trim region.
  955. unsigned SJC_RESP : 1; //!< [6] Status of shadow register read and write, OTP read and write lock for sjc_resp region.
  956. unsigned RESERVED0 : 1; //!< [7] Reserved
  957. unsigned MAC_ADDR : 2; //!< [9:8] Status of shadow register and OTP write lock for mac_addr region.
  958. unsigned GP1 : 2; //!< [11:10] Status of shadow register and OTP write lock for gp2 region.
  959. unsigned GP2 : 2; //!< [13:12] Status of shadow register and OTP write lock for gp2 region.
  960. unsigned SRK : 1; //!< [14] Status of shadow register and OTP write lock for srk region.
  961. unsigned RESERVED1 : 1; //!< [15] Reserved
  962. unsigned DTCP_KEY : 1; //!< [16] Status of shadow register read and write, OTP read and write lock for dtcp_key region.
  963. unsigned OTPMK : 1; //!< [17] Status of shadow register read and write, OTP read and write lock for otpmk region.
  964. unsigned ANALOG : 2; //!< [19:18] Status of shadow register and OTP write lock for analog region.
  965. unsigned HDCP_KSV : 1; //!< [20] Status of shadow register and OTP write lock for hdcp_ksv region.
  966. unsigned HDCP_KEYS : 1; //!< [21] Status of OTP write, shadow register read and write for hdcp_key region.
  967. unsigned MISC_CONF : 1; //!< [22] Status of shadow register and OTP write lock for misc_conf region.
  968. unsigned DTCP_DEV_CERT : 1; //!< [23] Status of shadow register and OTP write lock for dtcp_dev_cert region.
  969. unsigned RESERVED2 : 1; //!< [24] Reserved
  970. unsigned PIN : 1; //!< [25] Status of Pin access lock bit.
  971. unsigned CRC_GP_LO_LOCK : 2; //!< [27:26] Status of shadow register write and read, OTP program and read lock for lower 128 bits CRC region.
  972. unsigned CRC_GP_HI_LOCK : 2; //!< [29:28] Status of shadow register write and read, OTP program and read lock for upper 128 bits CRC region.
  973. unsigned UNALLOCATED : 2; //!< [31:30] Value of un-used portion of LOCK word
  974. } B;
  975. } hw_ocotp_lock_t;
  976. #endif
  977. /*
  978. * constants & macros for entire OCOTP_LOCK register
  979. */
  980. #define HW_OCOTP_LOCK_ADDR (REGS_OCOTP_BASE + 0x400)
  981. #ifndef __LANGUAGE_ASM__
  982. #define HW_OCOTP_LOCK (*(volatile hw_ocotp_lock_t *) HW_OCOTP_LOCK_ADDR)
  983. #define HW_OCOTP_LOCK_RD() (HW_OCOTP_LOCK.U)
  984. #endif
  985. /*
  986. * constants & macros for individual OCOTP_LOCK bitfields
  987. */
  988. /* --- Register HW_OCOTP_LOCK, field TESTER[1:0] (RO)
  989. *
  990. * Status of shadow register and OTP write lock for tester region. When bit 1 is set, the writing of
  991. * this region's shadow register is blocked. When bit 0 is set, the writing of this region's OTP
  992. * fuse word is blocked.
  993. */
  994. #define BP_OCOTP_LOCK_TESTER (0) //!< Bit position for OCOTP_LOCK_TESTER.
  995. #define BM_OCOTP_LOCK_TESTER (0x00000003) //!< Bit mask for OCOTP_LOCK_TESTER.
  996. //! @brief Get value of OCOTP_LOCK_TESTER from a register value.
  997. #define BG_OCOTP_LOCK_TESTER(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_LOCK_TESTER) >> BP_OCOTP_LOCK_TESTER)
  998. /* --- Register HW_OCOTP_LOCK, field BOOT_CFG[3:2] (RO)
  999. *
  1000. * Status of shadow register and OTP write lock for boot_cfg region. When bit 1 is set, the writing
  1001. * of this region's shadow register is blocked. When bit 0 is set, the writing of this region's OTP
  1002. * fuse word is blocked.
  1003. */
  1004. #define BP_OCOTP_LOCK_BOOT_CFG (2) //!< Bit position for OCOTP_LOCK_BOOT_CFG.
  1005. #define BM_OCOTP_LOCK_BOOT_CFG (0x0000000c) //!< Bit mask for OCOTP_LOCK_BOOT_CFG.
  1006. //! @brief Get value of OCOTP_LOCK_BOOT_CFG from a register value.
  1007. #define BG_OCOTP_LOCK_BOOT_CFG(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_LOCK_BOOT_CFG) >> BP_OCOTP_LOCK_BOOT_CFG)
  1008. /* --- Register HW_OCOTP_LOCK, field MEM_TRIM[5:4] (RO)
  1009. *
  1010. * Status of shadow register and OTP write lock for mem_trim region. When bit 1 is set, the writing
  1011. * of this region's shadow register is blocked. When bit 0 is set, the writing of this region's OTP
  1012. * fuse word is blocked.
  1013. */
  1014. #define BP_OCOTP_LOCK_MEM_TRIM (4) //!< Bit position for OCOTP_LOCK_MEM_TRIM.
  1015. #define BM_OCOTP_LOCK_MEM_TRIM (0x00000030) //!< Bit mask for OCOTP_LOCK_MEM_TRIM.
  1016. //! @brief Get value of OCOTP_LOCK_MEM_TRIM from a register value.
  1017. #define BG_OCOTP_LOCK_MEM_TRIM(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_LOCK_MEM_TRIM) >> BP_OCOTP_LOCK_MEM_TRIM)
  1018. /* --- Register HW_OCOTP_LOCK, field SJC_RESP[6] (RO)
  1019. *
  1020. * Status of shadow register read and write, OTP read and write lock for sjc_resp region. When set,
  1021. * the writing of this region's shadow register and OTP fuse word are blocked. The read of this
  1022. * region's shadow register and OTP fuse word are also blocked.
  1023. */
  1024. #define BP_OCOTP_LOCK_SJC_RESP (6) //!< Bit position for OCOTP_LOCK_SJC_RESP.
  1025. #define BM_OCOTP_LOCK_SJC_RESP (0x00000040) //!< Bit mask for OCOTP_LOCK_SJC_RESP.
  1026. //! @brief Get value of OCOTP_LOCK_SJC_RESP from a register value.
  1027. #define BG_OCOTP_LOCK_SJC_RESP(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_LOCK_SJC_RESP) >> BP_OCOTP_LOCK_SJC_RESP)
  1028. /* --- Register HW_OCOTP_LOCK, field MAC_ADDR[9:8] (RO)
  1029. *
  1030. * Status of shadow register and OTP write lock for mac_addr region. When bit 1 is set, the writing
  1031. * of this region's shadow register is blocked. When bit 0 is set, the writing of this region's OTP
  1032. * fuse word is blocked.
  1033. */
  1034. #define BP_OCOTP_LOCK_MAC_ADDR (8) //!< Bit position for OCOTP_LOCK_MAC_ADDR.
  1035. #define BM_OCOTP_LOCK_MAC_ADDR (0x00000300) //!< Bit mask for OCOTP_LOCK_MAC_ADDR.
  1036. //! @brief Get value of OCOTP_LOCK_MAC_ADDR from a register value.
  1037. #define BG_OCOTP_LOCK_MAC_ADDR(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_LOCK_MAC_ADDR) >> BP_OCOTP_LOCK_MAC_ADDR)
  1038. /* --- Register HW_OCOTP_LOCK, field GP1[11:10] (RO)
  1039. *
  1040. * Status of shadow register and OTP write lock for gp2 region. When bit 1 is set, the writing of
  1041. * this region's shadow register is blocked. When bit 0 is set, the writing of this region's OTP
  1042. * fuse word is blocked.
  1043. */
  1044. #define BP_OCOTP_LOCK_GP1 (10) //!< Bit position for OCOTP_LOCK_GP1.
  1045. #define BM_OCOTP_LOCK_GP1 (0x00000c00) //!< Bit mask for OCOTP_LOCK_GP1.
  1046. //! @brief Get value of OCOTP_LOCK_GP1 from a register value.
  1047. #define BG_OCOTP_LOCK_GP1(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_LOCK_GP1) >> BP_OCOTP_LOCK_GP1)
  1048. /* --- Register HW_OCOTP_LOCK, field GP2[13:12] (RO)
  1049. *
  1050. * Status of shadow register and OTP write lock for gp2 region. When bit 1 is set, the writing of
  1051. * this region's shadow register is blocked. When bit 0 is set, the writing of this region's OTP
  1052. * fuse word is blocked.
  1053. */
  1054. #define BP_OCOTP_LOCK_GP2 (12) //!< Bit position for OCOTP_LOCK_GP2.
  1055. #define BM_OCOTP_LOCK_GP2 (0x00003000) //!< Bit mask for OCOTP_LOCK_GP2.
  1056. //! @brief Get value of OCOTP_LOCK_GP2 from a register value.
  1057. #define BG_OCOTP_LOCK_GP2(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_LOCK_GP2) >> BP_OCOTP_LOCK_GP2)
  1058. /* --- Register HW_OCOTP_LOCK, field SRK[14] (RO)
  1059. *
  1060. * Status of shadow register and OTP write lock for srk region. When set, the writing of this
  1061. * region's shadow register and OTP fuse word are blocked.
  1062. */
  1063. #define BP_OCOTP_LOCK_SRK (14) //!< Bit position for OCOTP_LOCK_SRK.
  1064. #define BM_OCOTP_LOCK_SRK (0x00004000) //!< Bit mask for OCOTP_LOCK_SRK.
  1065. //! @brief Get value of OCOTP_LOCK_SRK from a register value.
  1066. #define BG_OCOTP_LOCK_SRK(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_LOCK_SRK) >> BP_OCOTP_LOCK_SRK)
  1067. /* --- Register HW_OCOTP_LOCK, field DTCP_KEY[16] (RO)
  1068. *
  1069. * Status of shadow register read and write, OTP read and write lock for dtcp_key region. When set,
  1070. * the writing of this region's shadow register and OTP fuse word are blocked. The read of this
  1071. * region's shadow register and OTP fuse word are also blocked.
  1072. */
  1073. #define BP_OCOTP_LOCK_DTCP_KEY (16) //!< Bit position for OCOTP_LOCK_DTCP_KEY.
  1074. #define BM_OCOTP_LOCK_DTCP_KEY (0x00010000) //!< Bit mask for OCOTP_LOCK_DTCP_KEY.
  1075. //! @brief Get value of OCOTP_LOCK_DTCP_KEY from a register value.
  1076. #define BG_OCOTP_LOCK_DTCP_KEY(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_LOCK_DTCP_KEY) >> BP_OCOTP_LOCK_DTCP_KEY)
  1077. /* --- Register HW_OCOTP_LOCK, field OTPMK[17] (RO)
  1078. *
  1079. * Status of shadow register read and write, OTP read and write lock for otpmk region. When set, the
  1080. * writing of this region's shadow register and OTP fuse word are blocked. The read of this region's
  1081. * shadow register and OTP fuse word are also blocked.
  1082. */
  1083. #define BP_OCOTP_LOCK_OTPMK (17) //!< Bit position for OCOTP_LOCK_OTPMK.
  1084. #define BM_OCOTP_LOCK_OTPMK (0x00020000) //!< Bit mask for OCOTP_LOCK_OTPMK.
  1085. //! @brief Get value of OCOTP_LOCK_OTPMK from a register value.
  1086. #define BG_OCOTP_LOCK_OTPMK(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_LOCK_OTPMK) >> BP_OCOTP_LOCK_OTPMK)
  1087. /* --- Register HW_OCOTP_LOCK, field ANALOG[19:18] (RO)
  1088. *
  1089. * Status of shadow register and OTP write lock for analog region. When bit 1 is set, the writing of
  1090. * this region's shadow register is blocked. When bit 0 is set, the writing of this region's OTP
  1091. * fuse word is blocked.
  1092. */
  1093. #define BP_OCOTP_LOCK_ANALOG (18) //!< Bit position for OCOTP_LOCK_ANALOG.
  1094. #define BM_OCOTP_LOCK_ANALOG (0x000c0000) //!< Bit mask for OCOTP_LOCK_ANALOG.
  1095. //! @brief Get value of OCOTP_LOCK_ANALOG from a register value.
  1096. #define BG_OCOTP_LOCK_ANALOG(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_LOCK_ANALOG) >> BP_OCOTP_LOCK_ANALOG)
  1097. /* --- Register HW_OCOTP_LOCK, field HDCP_KSV[20] (RO)
  1098. *
  1099. * Status of shadow register and OTP write lock for hdcp_ksv region. When set, the writing of this
  1100. * region's shadow register and OTP fuse word are blocked.
  1101. */
  1102. #define BP_OCOTP_LOCK_HDCP_KSV (20) //!< Bit position for OCOTP_LOCK_HDCP_KSV.
  1103. #define BM_OCOTP_LOCK_HDCP_KSV (0x00100000) //!< Bit mask for OCOTP_LOCK_HDCP_KSV.
  1104. //! @brief Get value of OCOTP_LOCK_HDCP_KSV from a register value.
  1105. #define BG_OCOTP_LOCK_HDCP_KSV(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_LOCK_HDCP_KSV) >> BP_OCOTP_LOCK_HDCP_KSV)
  1106. /* --- Register HW_OCOTP_LOCK, field HDCP_KEYS[21] (RO)
  1107. *
  1108. * Status of OTP write, shadow register read and write for hdcp_key region. When set, the writing of
  1109. * this region's shadow register and OTP fuse word are blocked. HDTP key shadow register also can be
  1110. * not read by ARM if set. The HDCP key region can not support OTP read feature in any case.
  1111. */
  1112. #define BP_OCOTP_LOCK_HDCP_KEYS (21) //!< Bit position for OCOTP_LOCK_HDCP_KEYS.
  1113. #define BM_OCOTP_LOCK_HDCP_KEYS (0x00200000) //!< Bit mask for OCOTP_LOCK_HDCP_KEYS.
  1114. //! @brief Get value of OCOTP_LOCK_HDCP_KEYS from a register value.
  1115. #define BG_OCOTP_LOCK_HDCP_KEYS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_LOCK_HDCP_KEYS) >> BP_OCOTP_LOCK_HDCP_KEYS)
  1116. /* --- Register HW_OCOTP_LOCK, field MISC_CONF[22] (RO)
  1117. *
  1118. * Status of shadow register and OTP write lock for misc_conf region. When set, the writing of this
  1119. * region's shadow register and OTP fuse word are blocked.
  1120. */
  1121. #define BP_OCOTP_LOCK_MISC_CONF (22) //!< Bit position for OCOTP_LOCK_MISC_CONF.
  1122. #define BM_OCOTP_LOCK_MISC_CONF (0x00400000) //!< Bit mask for OCOTP_LOCK_MISC_CONF.
  1123. //! @brief Get value of OCOTP_LOCK_MISC_CONF from a register value.
  1124. #define BG_OCOTP_LOCK_MISC_CONF(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_LOCK_MISC_CONF) >> BP_OCOTP_LOCK_MISC_CONF)
  1125. /* --- Register HW_OCOTP_LOCK, field DTCP_DEV_CERT[23] (RO)
  1126. *
  1127. * Status of shadow register and OTP write lock for dtcp_dev_cert region. When set, the writing of
  1128. * this region's shadow register and OTP fuse word are blocked.
  1129. */
  1130. #define BP_OCOTP_LOCK_DTCP_DEV_CERT (23) //!< Bit position for OCOTP_LOCK_DTCP_DEV_CERT.
  1131. #define BM_OCOTP_LOCK_DTCP_DEV_CERT (0x00800000) //!< Bit mask for OCOTP_LOCK_DTCP_DEV_CERT.
  1132. //! @brief Get value of OCOTP_LOCK_DTCP_DEV_CERT from a register value.
  1133. #define BG_OCOTP_LOCK_DTCP_DEV_CERT(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_LOCK_DTCP_DEV_CERT) >> BP_OCOTP_LOCK_DTCP_DEV_CERT)
  1134. /* --- Register HW_OCOTP_LOCK, field PIN[25] (RO)
  1135. *
  1136. * Status of Pin access lock bit. When set, pin access is disabled.
  1137. */
  1138. #define BP_OCOTP_LOCK_PIN (25) //!< Bit position for OCOTP_LOCK_PIN.
  1139. #define BM_OCOTP_LOCK_PIN (0x02000000) //!< Bit mask for OCOTP_LOCK_PIN.
  1140. //! @brief Get value of OCOTP_LOCK_PIN from a register value.
  1141. #define BG_OCOTP_LOCK_PIN(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_LOCK_PIN) >> BP_OCOTP_LOCK_PIN)
  1142. /* --- Register HW_OCOTP_LOCK, field CRC_GP_LO_LOCK[27:26] (RO)
  1143. *
  1144. * Status of shadow register write and read, OTP program and read lock for lower 128 bits CRC
  1145. * region. When bit 1 is set, the reading and writing of this region's OTP fuse and reading of
  1146. * shadow register are blocked.When bit 0 is set, the writing of this region's shadow register and
  1147. * OTP fuse are blocked.
  1148. */
  1149. #define BP_OCOTP_LOCK_CRC_GP_LO_LOCK (26) //!< Bit position for OCOTP_LOCK_CRC_GP_LO_LOCK.
  1150. #define BM_OCOTP_LOCK_CRC_GP_LO_LOCK (0x0c000000) //!< Bit mask for OCOTP_LOCK_CRC_GP_LO_LOCK.
  1151. //! @brief Get value of OCOTP_LOCK_CRC_GP_LO_LOCK from a register value.
  1152. #define BG_OCOTP_LOCK_CRC_GP_LO_LOCK(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_LOCK_CRC_GP_LO_LOCK) >> BP_OCOTP_LOCK_CRC_GP_LO_LOCK)
  1153. /* --- Register HW_OCOTP_LOCK, field CRC_GP_HI_LOCK[29:28] (RO)
  1154. *
  1155. * Status of shadow register write and read, OTP program and read lock for upper 128 bits CRC
  1156. * region. When bit 1 is set, the reading and writing of this region's OTP fuse and reading of
  1157. * shadow register are blocked.When bit 0 is set, the writing of this region's shadow register and
  1158. * OTP fuse are blocked.
  1159. */
  1160. #define BP_OCOTP_LOCK_CRC_GP_HI_LOCK (28) //!< Bit position for OCOTP_LOCK_CRC_GP_HI_LOCK.
  1161. #define BM_OCOTP_LOCK_CRC_GP_HI_LOCK (0x30000000) //!< Bit mask for OCOTP_LOCK_CRC_GP_HI_LOCK.
  1162. //! @brief Get value of OCOTP_LOCK_CRC_GP_HI_LOCK from a register value.
  1163. #define BG_OCOTP_LOCK_CRC_GP_HI_LOCK(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_LOCK_CRC_GP_HI_LOCK) >> BP_OCOTP_LOCK_CRC_GP_HI_LOCK)
  1164. /* --- Register HW_OCOTP_LOCK, field UNALLOCATED[31:30] (RO)
  1165. *
  1166. * Value of un-used portion of LOCK word
  1167. */
  1168. #define BP_OCOTP_LOCK_UNALLOCATED (30) //!< Bit position for OCOTP_LOCK_UNALLOCATED.
  1169. #define BM_OCOTP_LOCK_UNALLOCATED (0xc0000000) //!< Bit mask for OCOTP_LOCK_UNALLOCATED.
  1170. //! @brief Get value of OCOTP_LOCK_UNALLOCATED from a register value.
  1171. #define BG_OCOTP_LOCK_UNALLOCATED(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_LOCK_UNALLOCATED) >> BP_OCOTP_LOCK_UNALLOCATED)
  1172. //-------------------------------------------------------------------------------------------
  1173. // HW_OCOTP_CFG0 - Value of OTP Bank0 Word1 (Configuration and Manufacturing Info.)
  1174. //-------------------------------------------------------------------------------------------
  1175. #ifndef __LANGUAGE_ASM__
  1176. /*!
  1177. * @brief HW_OCOTP_CFG0 - Value of OTP Bank0 Word1 (Configuration and Manufacturing Info.) (RW)
  1178. *
  1179. * Reset value: 0x00000000
  1180. *
  1181. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  1182. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 0, word 1 (ADDR = 0x01).
  1183. * EXAMPLE Empty Example.
  1184. */
  1185. typedef union _hw_ocotp_cfg0
  1186. {
  1187. reg32_t U;
  1188. struct _hw_ocotp_cfg0_bitfields
  1189. {
  1190. unsigned BITS : 32; //!< [31:0] This register contains 32 bits of the Unique ID and SJC_CHALLENGE field.
  1191. } B;
  1192. } hw_ocotp_cfg0_t;
  1193. #endif
  1194. /*
  1195. * constants & macros for entire OCOTP_CFG0 register
  1196. */
  1197. #define HW_OCOTP_CFG0_ADDR (REGS_OCOTP_BASE + 0x410)
  1198. #ifndef __LANGUAGE_ASM__
  1199. #define HW_OCOTP_CFG0 (*(volatile hw_ocotp_cfg0_t *) HW_OCOTP_CFG0_ADDR)
  1200. #define HW_OCOTP_CFG0_RD() (HW_OCOTP_CFG0.U)
  1201. #define HW_OCOTP_CFG0_WR(v) (HW_OCOTP_CFG0.U = (v))
  1202. #define HW_OCOTP_CFG0_SET(v) (HW_OCOTP_CFG0_WR(HW_OCOTP_CFG0_RD() | (v)))
  1203. #define HW_OCOTP_CFG0_CLR(v) (HW_OCOTP_CFG0_WR(HW_OCOTP_CFG0_RD() & ~(v)))
  1204. #define HW_OCOTP_CFG0_TOG(v) (HW_OCOTP_CFG0_WR(HW_OCOTP_CFG0_RD() ^ (v)))
  1205. #endif
  1206. /*
  1207. * constants & macros for individual OCOTP_CFG0 bitfields
  1208. */
  1209. /* --- Register HW_OCOTP_CFG0, field BITS[31:0] (RW)
  1210. *
  1211. * This register contains 32 bits of the Unique ID and SJC_CHALLENGE field. Reflects value of OTP
  1212. * Bank 0, word 1 (ADDR = 0x01). These bits become read-only after the HW_OCOTP_LOCK_TESTER[1] bit
  1213. * is set.
  1214. */
  1215. #define BP_OCOTP_CFG0_BITS (0) //!< Bit position for OCOTP_CFG0_BITS.
  1216. #define BM_OCOTP_CFG0_BITS (0xffffffff) //!< Bit mask for OCOTP_CFG0_BITS.
  1217. //! @brief Get value of OCOTP_CFG0_BITS from a register value.
  1218. #define BG_OCOTP_CFG0_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_CFG0_BITS) >> BP_OCOTP_CFG0_BITS)
  1219. //! @brief Format value for bitfield OCOTP_CFG0_BITS.
  1220. #define BF_OCOTP_CFG0_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_CFG0_BITS) & BM_OCOTP_CFG0_BITS)
  1221. #ifndef __LANGUAGE_ASM__
  1222. //! @brief Set the BITS field to a new value.
  1223. #define BW_OCOTP_CFG0_BITS(v) (HW_OCOTP_CFG0_WR((HW_OCOTP_CFG0_RD() & ~BM_OCOTP_CFG0_BITS) | BF_OCOTP_CFG0_BITS(v)))
  1224. #endif
  1225. //-------------------------------------------------------------------------------------------
  1226. // HW_OCOTP_CFG1 - Value of OTP Bank0 Word2 (Configuration and Manufacturing Info.)
  1227. //-------------------------------------------------------------------------------------------
  1228. #ifndef __LANGUAGE_ASM__
  1229. /*!
  1230. * @brief HW_OCOTP_CFG1 - Value of OTP Bank0 Word2 (Configuration and Manufacturing Info.) (RW)
  1231. *
  1232. * Reset value: 0x00000000
  1233. *
  1234. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  1235. * HW_OCOTP_CTRL[RELOAD_SHADOWS] shadowed memory mapped access to OTP Bank 0, word 2 (ADDR = 0x02).
  1236. * EXAMPLE Empty Example.
  1237. */
  1238. typedef union _hw_ocotp_cfg1
  1239. {
  1240. reg32_t U;
  1241. struct _hw_ocotp_cfg1_bitfields
  1242. {
  1243. unsigned BITS : 32; //!< [31:0] This register contains 32 bits of the Unique ID and SJC_CHALLENGE field.
  1244. } B;
  1245. } hw_ocotp_cfg1_t;
  1246. #endif
  1247. /*
  1248. * constants & macros for entire OCOTP_CFG1 register
  1249. */
  1250. #define HW_OCOTP_CFG1_ADDR (REGS_OCOTP_BASE + 0x420)
  1251. #ifndef __LANGUAGE_ASM__
  1252. #define HW_OCOTP_CFG1 (*(volatile hw_ocotp_cfg1_t *) HW_OCOTP_CFG1_ADDR)
  1253. #define HW_OCOTP_CFG1_RD() (HW_OCOTP_CFG1.U)
  1254. #define HW_OCOTP_CFG1_WR(v) (HW_OCOTP_CFG1.U = (v))
  1255. #define HW_OCOTP_CFG1_SET(v) (HW_OCOTP_CFG1_WR(HW_OCOTP_CFG1_RD() | (v)))
  1256. #define HW_OCOTP_CFG1_CLR(v) (HW_OCOTP_CFG1_WR(HW_OCOTP_CFG1_RD() & ~(v)))
  1257. #define HW_OCOTP_CFG1_TOG(v) (HW_OCOTP_CFG1_WR(HW_OCOTP_CFG1_RD() ^ (v)))
  1258. #endif
  1259. /*
  1260. * constants & macros for individual OCOTP_CFG1 bitfields
  1261. */
  1262. /* --- Register HW_OCOTP_CFG1, field BITS[31:0] (RW)
  1263. *
  1264. * This register contains 32 bits of the Unique ID and SJC_CHALLENGE field. Reflects value of OTP
  1265. * Bank 0, word 2 (ADDR = 0x02). These bits become read-only after the HW_OCOTP_LOCK_TESTER[1] bit
  1266. * is set.
  1267. */
  1268. #define BP_OCOTP_CFG1_BITS (0) //!< Bit position for OCOTP_CFG1_BITS.
  1269. #define BM_OCOTP_CFG1_BITS (0xffffffff) //!< Bit mask for OCOTP_CFG1_BITS.
  1270. //! @brief Get value of OCOTP_CFG1_BITS from a register value.
  1271. #define BG_OCOTP_CFG1_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_CFG1_BITS) >> BP_OCOTP_CFG1_BITS)
  1272. //! @brief Format value for bitfield OCOTP_CFG1_BITS.
  1273. #define BF_OCOTP_CFG1_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_CFG1_BITS) & BM_OCOTP_CFG1_BITS)
  1274. #ifndef __LANGUAGE_ASM__
  1275. //! @brief Set the BITS field to a new value.
  1276. #define BW_OCOTP_CFG1_BITS(v) (HW_OCOTP_CFG1_WR((HW_OCOTP_CFG1_RD() & ~BM_OCOTP_CFG1_BITS) | BF_OCOTP_CFG1_BITS(v)))
  1277. #endif
  1278. //-------------------------------------------------------------------------------------------
  1279. // HW_OCOTP_CFG2 - Value of OTP Bank0 Word3 (Configuration and Manufacturing Info.)
  1280. //-------------------------------------------------------------------------------------------
  1281. #ifndef __LANGUAGE_ASM__
  1282. /*!
  1283. * @brief HW_OCOTP_CFG2 - Value of OTP Bank0 Word3 (Configuration and Manufacturing Info.) (RW)
  1284. *
  1285. * Reset value: 0x00000000
  1286. *
  1287. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  1288. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 0, word 3 (ADDR = 0x03).
  1289. * EXAMPLE Empty Example.
  1290. */
  1291. typedef union _hw_ocotp_cfg2
  1292. {
  1293. reg32_t U;
  1294. struct _hw_ocotp_cfg2_bitfields
  1295. {
  1296. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 0, word 3 (ADDR = 0x03).
  1297. } B;
  1298. } hw_ocotp_cfg2_t;
  1299. #endif
  1300. /*
  1301. * constants & macros for entire OCOTP_CFG2 register
  1302. */
  1303. #define HW_OCOTP_CFG2_ADDR (REGS_OCOTP_BASE + 0x430)
  1304. #ifndef __LANGUAGE_ASM__
  1305. #define HW_OCOTP_CFG2 (*(volatile hw_ocotp_cfg2_t *) HW_OCOTP_CFG2_ADDR)
  1306. #define HW_OCOTP_CFG2_RD() (HW_OCOTP_CFG2.U)
  1307. #define HW_OCOTP_CFG2_WR(v) (HW_OCOTP_CFG2.U = (v))
  1308. #define HW_OCOTP_CFG2_SET(v) (HW_OCOTP_CFG2_WR(HW_OCOTP_CFG2_RD() | (v)))
  1309. #define HW_OCOTP_CFG2_CLR(v) (HW_OCOTP_CFG2_WR(HW_OCOTP_CFG2_RD() & ~(v)))
  1310. #define HW_OCOTP_CFG2_TOG(v) (HW_OCOTP_CFG2_WR(HW_OCOTP_CFG2_RD() ^ (v)))
  1311. #endif
  1312. /*
  1313. * constants & macros for individual OCOTP_CFG2 bitfields
  1314. */
  1315. /* --- Register HW_OCOTP_CFG2, field BITS[31:0] (RW)
  1316. *
  1317. * Reflects value of OTP Bank 0, word 3 (ADDR = 0x03). These bits become read-only after the
  1318. * HW_OCOTP_LOCK_TESTER[1] bit is set.
  1319. */
  1320. #define BP_OCOTP_CFG2_BITS (0) //!< Bit position for OCOTP_CFG2_BITS.
  1321. #define BM_OCOTP_CFG2_BITS (0xffffffff) //!< Bit mask for OCOTP_CFG2_BITS.
  1322. //! @brief Get value of OCOTP_CFG2_BITS from a register value.
  1323. #define BG_OCOTP_CFG2_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_CFG2_BITS) >> BP_OCOTP_CFG2_BITS)
  1324. //! @brief Format value for bitfield OCOTP_CFG2_BITS.
  1325. #define BF_OCOTP_CFG2_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_CFG2_BITS) & BM_OCOTP_CFG2_BITS)
  1326. #ifndef __LANGUAGE_ASM__
  1327. //! @brief Set the BITS field to a new value.
  1328. #define BW_OCOTP_CFG2_BITS(v) (HW_OCOTP_CFG2_WR((HW_OCOTP_CFG2_RD() & ~BM_OCOTP_CFG2_BITS) | BF_OCOTP_CFG2_BITS(v)))
  1329. #endif
  1330. //-------------------------------------------------------------------------------------------
  1331. // HW_OCOTP_CFG3 - Value of OTP Bank0 Word4 (Configuration and Manufacturing Info.)
  1332. //-------------------------------------------------------------------------------------------
  1333. #ifndef __LANGUAGE_ASM__
  1334. /*!
  1335. * @brief HW_OCOTP_CFG3 - Value of OTP Bank0 Word4 (Configuration and Manufacturing Info.) (RW)
  1336. *
  1337. * Reset value: 0x00000000
  1338. *
  1339. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  1340. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Non-shadowed memory mapped access to OTP Bank 0, word 4 (ADDR =
  1341. * 0x04). EXAMPLE Empty Example.
  1342. */
  1343. typedef union _hw_ocotp_cfg3
  1344. {
  1345. reg32_t U;
  1346. struct _hw_ocotp_cfg3_bitfields
  1347. {
  1348. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 0, word 4 (ADDR = 0x04).
  1349. } B;
  1350. } hw_ocotp_cfg3_t;
  1351. #endif
  1352. /*
  1353. * constants & macros for entire OCOTP_CFG3 register
  1354. */
  1355. #define HW_OCOTP_CFG3_ADDR (REGS_OCOTP_BASE + 0x440)
  1356. #ifndef __LANGUAGE_ASM__
  1357. #define HW_OCOTP_CFG3 (*(volatile hw_ocotp_cfg3_t *) HW_OCOTP_CFG3_ADDR)
  1358. #define HW_OCOTP_CFG3_RD() (HW_OCOTP_CFG3.U)
  1359. #define HW_OCOTP_CFG3_WR(v) (HW_OCOTP_CFG3.U = (v))
  1360. #define HW_OCOTP_CFG3_SET(v) (HW_OCOTP_CFG3_WR(HW_OCOTP_CFG3_RD() | (v)))
  1361. #define HW_OCOTP_CFG3_CLR(v) (HW_OCOTP_CFG3_WR(HW_OCOTP_CFG3_RD() & ~(v)))
  1362. #define HW_OCOTP_CFG3_TOG(v) (HW_OCOTP_CFG3_WR(HW_OCOTP_CFG3_RD() ^ (v)))
  1363. #endif
  1364. /*
  1365. * constants & macros for individual OCOTP_CFG3 bitfields
  1366. */
  1367. /* --- Register HW_OCOTP_CFG3, field BITS[31:0] (RW)
  1368. *
  1369. * Reflects value of OTP Bank 0, word 4 (ADDR = 0x04). These bits become read-only after the
  1370. * HW_OCOTP_LOCK_TESTER[1] bit is set.
  1371. */
  1372. #define BP_OCOTP_CFG3_BITS (0) //!< Bit position for OCOTP_CFG3_BITS.
  1373. #define BM_OCOTP_CFG3_BITS (0xffffffff) //!< Bit mask for OCOTP_CFG3_BITS.
  1374. //! @brief Get value of OCOTP_CFG3_BITS from a register value.
  1375. #define BG_OCOTP_CFG3_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_CFG3_BITS) >> BP_OCOTP_CFG3_BITS)
  1376. //! @brief Format value for bitfield OCOTP_CFG3_BITS.
  1377. #define BF_OCOTP_CFG3_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_CFG3_BITS) & BM_OCOTP_CFG3_BITS)
  1378. #ifndef __LANGUAGE_ASM__
  1379. //! @brief Set the BITS field to a new value.
  1380. #define BW_OCOTP_CFG3_BITS(v) (HW_OCOTP_CFG3_WR((HW_OCOTP_CFG3_RD() & ~BM_OCOTP_CFG3_BITS) | BF_OCOTP_CFG3_BITS(v)))
  1381. #endif
  1382. //-------------------------------------------------------------------------------------------
  1383. // HW_OCOTP_CFG4 - Value of OTP Bank0 Word5 (Configuration and Manufacturing Info.)
  1384. //-------------------------------------------------------------------------------------------
  1385. #ifndef __LANGUAGE_ASM__
  1386. /*!
  1387. * @brief HW_OCOTP_CFG4 - Value of OTP Bank0 Word5 (Configuration and Manufacturing Info.) (RW)
  1388. *
  1389. * Reset value: 0x00000000
  1390. *
  1391. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  1392. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 0, word 5 (ADDR = 0x05).
  1393. * EXAMPLE Empty Example.
  1394. */
  1395. typedef union _hw_ocotp_cfg4
  1396. {
  1397. reg32_t U;
  1398. struct _hw_ocotp_cfg4_bitfields
  1399. {
  1400. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 0, word 5 (ADDR = 0x05).
  1401. } B;
  1402. } hw_ocotp_cfg4_t;
  1403. #endif
  1404. /*
  1405. * constants & macros for entire OCOTP_CFG4 register
  1406. */
  1407. #define HW_OCOTP_CFG4_ADDR (REGS_OCOTP_BASE + 0x450)
  1408. #ifndef __LANGUAGE_ASM__
  1409. #define HW_OCOTP_CFG4 (*(volatile hw_ocotp_cfg4_t *) HW_OCOTP_CFG4_ADDR)
  1410. #define HW_OCOTP_CFG4_RD() (HW_OCOTP_CFG4.U)
  1411. #define HW_OCOTP_CFG4_WR(v) (HW_OCOTP_CFG4.U = (v))
  1412. #define HW_OCOTP_CFG4_SET(v) (HW_OCOTP_CFG4_WR(HW_OCOTP_CFG4_RD() | (v)))
  1413. #define HW_OCOTP_CFG4_CLR(v) (HW_OCOTP_CFG4_WR(HW_OCOTP_CFG4_RD() & ~(v)))
  1414. #define HW_OCOTP_CFG4_TOG(v) (HW_OCOTP_CFG4_WR(HW_OCOTP_CFG4_RD() ^ (v)))
  1415. #endif
  1416. /*
  1417. * constants & macros for individual OCOTP_CFG4 bitfields
  1418. */
  1419. /* --- Register HW_OCOTP_CFG4, field BITS[31:0] (RW)
  1420. *
  1421. * Reflects value of OTP Bank 0, word 5 (ADDR = 0x05). These bits become read-only after the
  1422. * HW_OCOTP_LOCK_BOOT_CFG[1] bit is set.
  1423. */
  1424. #define BP_OCOTP_CFG4_BITS (0) //!< Bit position for OCOTP_CFG4_BITS.
  1425. #define BM_OCOTP_CFG4_BITS (0xffffffff) //!< Bit mask for OCOTP_CFG4_BITS.
  1426. //! @brief Get value of OCOTP_CFG4_BITS from a register value.
  1427. #define BG_OCOTP_CFG4_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_CFG4_BITS) >> BP_OCOTP_CFG4_BITS)
  1428. //! @brief Format value for bitfield OCOTP_CFG4_BITS.
  1429. #define BF_OCOTP_CFG4_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_CFG4_BITS) & BM_OCOTP_CFG4_BITS)
  1430. #ifndef __LANGUAGE_ASM__
  1431. //! @brief Set the BITS field to a new value.
  1432. #define BW_OCOTP_CFG4_BITS(v) (HW_OCOTP_CFG4_WR((HW_OCOTP_CFG4_RD() & ~BM_OCOTP_CFG4_BITS) | BF_OCOTP_CFG4_BITS(v)))
  1433. #endif
  1434. //-------------------------------------------------------------------------------------------
  1435. // HW_OCOTP_CFG5 - Value of OTP Bank0 Word6 (Configuration and Manufacturing Info.)
  1436. //-------------------------------------------------------------------------------------------
  1437. #ifndef __LANGUAGE_ASM__
  1438. /*!
  1439. * @brief HW_OCOTP_CFG5 - Value of OTP Bank0 Word6 (Configuration and Manufacturing Info.) (RW)
  1440. *
  1441. * Reset value: 0x00000000
  1442. *
  1443. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  1444. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 0, word 6 (ADDR = 0x06).
  1445. * EXAMPLE Empty Example.
  1446. */
  1447. typedef union _hw_ocotp_cfg5
  1448. {
  1449. reg32_t U;
  1450. struct _hw_ocotp_cfg5_bitfields
  1451. {
  1452. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 0, word 6 (ADDR = 0x06).
  1453. } B;
  1454. } hw_ocotp_cfg5_t;
  1455. #endif
  1456. /*
  1457. * constants & macros for entire OCOTP_CFG5 register
  1458. */
  1459. #define HW_OCOTP_CFG5_ADDR (REGS_OCOTP_BASE + 0x460)
  1460. #ifndef __LANGUAGE_ASM__
  1461. #define HW_OCOTP_CFG5 (*(volatile hw_ocotp_cfg5_t *) HW_OCOTP_CFG5_ADDR)
  1462. #define HW_OCOTP_CFG5_RD() (HW_OCOTP_CFG5.U)
  1463. #define HW_OCOTP_CFG5_WR(v) (HW_OCOTP_CFG5.U = (v))
  1464. #define HW_OCOTP_CFG5_SET(v) (HW_OCOTP_CFG5_WR(HW_OCOTP_CFG5_RD() | (v)))
  1465. #define HW_OCOTP_CFG5_CLR(v) (HW_OCOTP_CFG5_WR(HW_OCOTP_CFG5_RD() & ~(v)))
  1466. #define HW_OCOTP_CFG5_TOG(v) (HW_OCOTP_CFG5_WR(HW_OCOTP_CFG5_RD() ^ (v)))
  1467. #endif
  1468. /*
  1469. * constants & macros for individual OCOTP_CFG5 bitfields
  1470. */
  1471. /* --- Register HW_OCOTP_CFG5, field BITS[31:0] (RW)
  1472. *
  1473. * Reflects value of OTP Bank 0, word 6 (ADDR = 0x06). These bits become read-only after the
  1474. * HW_OCOTP_LOCK_BOOT_CFG[1] bit is set.
  1475. */
  1476. #define BP_OCOTP_CFG5_BITS (0) //!< Bit position for OCOTP_CFG5_BITS.
  1477. #define BM_OCOTP_CFG5_BITS (0xffffffff) //!< Bit mask for OCOTP_CFG5_BITS.
  1478. //! @brief Get value of OCOTP_CFG5_BITS from a register value.
  1479. #define BG_OCOTP_CFG5_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_CFG5_BITS) >> BP_OCOTP_CFG5_BITS)
  1480. //! @brief Format value for bitfield OCOTP_CFG5_BITS.
  1481. #define BF_OCOTP_CFG5_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_CFG5_BITS) & BM_OCOTP_CFG5_BITS)
  1482. #ifndef __LANGUAGE_ASM__
  1483. //! @brief Set the BITS field to a new value.
  1484. #define BW_OCOTP_CFG5_BITS(v) (HW_OCOTP_CFG5_WR((HW_OCOTP_CFG5_RD() & ~BM_OCOTP_CFG5_BITS) | BF_OCOTP_CFG5_BITS(v)))
  1485. #endif
  1486. //-------------------------------------------------------------------------------------------
  1487. // HW_OCOTP_CFG6 - Value of OTP Bank0 Word7 (Configuration and Manufacturing Info.)
  1488. //-------------------------------------------------------------------------------------------
  1489. #ifndef __LANGUAGE_ASM__
  1490. /*!
  1491. * @brief HW_OCOTP_CFG6 - Value of OTP Bank0 Word7 (Configuration and Manufacturing Info.) (RW)
  1492. *
  1493. * Reset value: 0x00000000
  1494. *
  1495. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  1496. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 0, word 7 (ADDR = 0x07).
  1497. * EXAMPLE Empty Example.
  1498. */
  1499. typedef union _hw_ocotp_cfg6
  1500. {
  1501. reg32_t U;
  1502. struct _hw_ocotp_cfg6_bitfields
  1503. {
  1504. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 0, word 7 (ADDR = 0x07).
  1505. } B;
  1506. } hw_ocotp_cfg6_t;
  1507. #endif
  1508. /*
  1509. * constants & macros for entire OCOTP_CFG6 register
  1510. */
  1511. #define HW_OCOTP_CFG6_ADDR (REGS_OCOTP_BASE + 0x470)
  1512. #ifndef __LANGUAGE_ASM__
  1513. #define HW_OCOTP_CFG6 (*(volatile hw_ocotp_cfg6_t *) HW_OCOTP_CFG6_ADDR)
  1514. #define HW_OCOTP_CFG6_RD() (HW_OCOTP_CFG6.U)
  1515. #define HW_OCOTP_CFG6_WR(v) (HW_OCOTP_CFG6.U = (v))
  1516. #define HW_OCOTP_CFG6_SET(v) (HW_OCOTP_CFG6_WR(HW_OCOTP_CFG6_RD() | (v)))
  1517. #define HW_OCOTP_CFG6_CLR(v) (HW_OCOTP_CFG6_WR(HW_OCOTP_CFG6_RD() & ~(v)))
  1518. #define HW_OCOTP_CFG6_TOG(v) (HW_OCOTP_CFG6_WR(HW_OCOTP_CFG6_RD() ^ (v)))
  1519. #endif
  1520. /*
  1521. * constants & macros for individual OCOTP_CFG6 bitfields
  1522. */
  1523. /* --- Register HW_OCOTP_CFG6, field BITS[31:0] (RW)
  1524. *
  1525. * Reflects value of OTP Bank 0, word 7 (ADDR = 0x07). These bits become read-only after the
  1526. * HW_OCOTP_LOCK_BOOT_CFG[1] bit is set.
  1527. */
  1528. #define BP_OCOTP_CFG6_BITS (0) //!< Bit position for OCOTP_CFG6_BITS.
  1529. #define BM_OCOTP_CFG6_BITS (0xffffffff) //!< Bit mask for OCOTP_CFG6_BITS.
  1530. //! @brief Get value of OCOTP_CFG6_BITS from a register value.
  1531. #define BG_OCOTP_CFG6_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_CFG6_BITS) >> BP_OCOTP_CFG6_BITS)
  1532. //! @brief Format value for bitfield OCOTP_CFG6_BITS.
  1533. #define BF_OCOTP_CFG6_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_CFG6_BITS) & BM_OCOTP_CFG6_BITS)
  1534. #ifndef __LANGUAGE_ASM__
  1535. //! @brief Set the BITS field to a new value.
  1536. #define BW_OCOTP_CFG6_BITS(v) (HW_OCOTP_CFG6_WR((HW_OCOTP_CFG6_RD() & ~BM_OCOTP_CFG6_BITS) | BF_OCOTP_CFG6_BITS(v)))
  1537. #endif
  1538. //-------------------------------------------------------------------------------------------
  1539. // HW_OCOTP_MEM0 - Value of OTP Bank1 Word0 (Memory Related Info.)
  1540. //-------------------------------------------------------------------------------------------
  1541. #ifndef __LANGUAGE_ASM__
  1542. /*!
  1543. * @brief HW_OCOTP_MEM0 - Value of OTP Bank1 Word0 (Memory Related Info.) (RW)
  1544. *
  1545. * Reset value: 0x00000000
  1546. *
  1547. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  1548. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP bank 1, word 0 (ADDR = 0x08).
  1549. * EXAMPLE Empty Example.
  1550. */
  1551. typedef union _hw_ocotp_mem0
  1552. {
  1553. reg32_t U;
  1554. struct _hw_ocotp_mem0_bitfields
  1555. {
  1556. unsigned BITS : 32; //!< [31:0] Reflects value of OTP bank 1, word 0 (ADDR = 0x08).
  1557. } B;
  1558. } hw_ocotp_mem0_t;
  1559. #endif
  1560. /*
  1561. * constants & macros for entire OCOTP_MEM0 register
  1562. */
  1563. #define HW_OCOTP_MEM0_ADDR (REGS_OCOTP_BASE + 0x480)
  1564. #ifndef __LANGUAGE_ASM__
  1565. #define HW_OCOTP_MEM0 (*(volatile hw_ocotp_mem0_t *) HW_OCOTP_MEM0_ADDR)
  1566. #define HW_OCOTP_MEM0_RD() (HW_OCOTP_MEM0.U)
  1567. #define HW_OCOTP_MEM0_WR(v) (HW_OCOTP_MEM0.U = (v))
  1568. #define HW_OCOTP_MEM0_SET(v) (HW_OCOTP_MEM0_WR(HW_OCOTP_MEM0_RD() | (v)))
  1569. #define HW_OCOTP_MEM0_CLR(v) (HW_OCOTP_MEM0_WR(HW_OCOTP_MEM0_RD() & ~(v)))
  1570. #define HW_OCOTP_MEM0_TOG(v) (HW_OCOTP_MEM0_WR(HW_OCOTP_MEM0_RD() ^ (v)))
  1571. #endif
  1572. /*
  1573. * constants & macros for individual OCOTP_MEM0 bitfields
  1574. */
  1575. /* --- Register HW_OCOTP_MEM0, field BITS[31:0] (RW)
  1576. *
  1577. * Reflects value of OTP bank 1, word 0 (ADDR = 0x08). These bits become read-only after the
  1578. * HW_OCOTP_LOCK_MEM_TRIM[1] bit is set.
  1579. */
  1580. #define BP_OCOTP_MEM0_BITS (0) //!< Bit position for OCOTP_MEM0_BITS.
  1581. #define BM_OCOTP_MEM0_BITS (0xffffffff) //!< Bit mask for OCOTP_MEM0_BITS.
  1582. //! @brief Get value of OCOTP_MEM0_BITS from a register value.
  1583. #define BG_OCOTP_MEM0_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_MEM0_BITS) >> BP_OCOTP_MEM0_BITS)
  1584. //! @brief Format value for bitfield OCOTP_MEM0_BITS.
  1585. #define BF_OCOTP_MEM0_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_MEM0_BITS) & BM_OCOTP_MEM0_BITS)
  1586. #ifndef __LANGUAGE_ASM__
  1587. //! @brief Set the BITS field to a new value.
  1588. #define BW_OCOTP_MEM0_BITS(v) (HW_OCOTP_MEM0_WR((HW_OCOTP_MEM0_RD() & ~BM_OCOTP_MEM0_BITS) | BF_OCOTP_MEM0_BITS(v)))
  1589. #endif
  1590. //-------------------------------------------------------------------------------------------
  1591. // HW_OCOTP_MEM1 - Value of OTP Bank1 Word1 (Memory Related Info.)
  1592. //-------------------------------------------------------------------------------------------
  1593. #ifndef __LANGUAGE_ASM__
  1594. /*!
  1595. * @brief HW_OCOTP_MEM1 - Value of OTP Bank1 Word1 (Memory Related Info.) (RW)
  1596. *
  1597. * Reset value: 0x00000000
  1598. *
  1599. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  1600. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP bank 1, word 1 (ADDR = 0x09).
  1601. * EXAMPLE Empty Example.
  1602. */
  1603. typedef union _hw_ocotp_mem1
  1604. {
  1605. reg32_t U;
  1606. struct _hw_ocotp_mem1_bitfields
  1607. {
  1608. unsigned BITS : 32; //!< [31:0] Reflects value of OTP bank 1, word 1 (ADDR = 0x09).
  1609. } B;
  1610. } hw_ocotp_mem1_t;
  1611. #endif
  1612. /*
  1613. * constants & macros for entire OCOTP_MEM1 register
  1614. */
  1615. #define HW_OCOTP_MEM1_ADDR (REGS_OCOTP_BASE + 0x490)
  1616. #ifndef __LANGUAGE_ASM__
  1617. #define HW_OCOTP_MEM1 (*(volatile hw_ocotp_mem1_t *) HW_OCOTP_MEM1_ADDR)
  1618. #define HW_OCOTP_MEM1_RD() (HW_OCOTP_MEM1.U)
  1619. #define HW_OCOTP_MEM1_WR(v) (HW_OCOTP_MEM1.U = (v))
  1620. #define HW_OCOTP_MEM1_SET(v) (HW_OCOTP_MEM1_WR(HW_OCOTP_MEM1_RD() | (v)))
  1621. #define HW_OCOTP_MEM1_CLR(v) (HW_OCOTP_MEM1_WR(HW_OCOTP_MEM1_RD() & ~(v)))
  1622. #define HW_OCOTP_MEM1_TOG(v) (HW_OCOTP_MEM1_WR(HW_OCOTP_MEM1_RD() ^ (v)))
  1623. #endif
  1624. /*
  1625. * constants & macros for individual OCOTP_MEM1 bitfields
  1626. */
  1627. /* --- Register HW_OCOTP_MEM1, field BITS[31:0] (RW)
  1628. *
  1629. * Reflects value of OTP bank 1, word 1 (ADDR = 0x09). These bits become read-only after the
  1630. * HW_OCOTP_LOCK_MEM_TRIM[1] bit is set.
  1631. */
  1632. #define BP_OCOTP_MEM1_BITS (0) //!< Bit position for OCOTP_MEM1_BITS.
  1633. #define BM_OCOTP_MEM1_BITS (0xffffffff) //!< Bit mask for OCOTP_MEM1_BITS.
  1634. //! @brief Get value of OCOTP_MEM1_BITS from a register value.
  1635. #define BG_OCOTP_MEM1_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_MEM1_BITS) >> BP_OCOTP_MEM1_BITS)
  1636. //! @brief Format value for bitfield OCOTP_MEM1_BITS.
  1637. #define BF_OCOTP_MEM1_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_MEM1_BITS) & BM_OCOTP_MEM1_BITS)
  1638. #ifndef __LANGUAGE_ASM__
  1639. //! @brief Set the BITS field to a new value.
  1640. #define BW_OCOTP_MEM1_BITS(v) (HW_OCOTP_MEM1_WR((HW_OCOTP_MEM1_RD() & ~BM_OCOTP_MEM1_BITS) | BF_OCOTP_MEM1_BITS(v)))
  1641. #endif
  1642. //-------------------------------------------------------------------------------------------
  1643. // HW_OCOTP_MEM2 - Value of OTP Bank1 Word2 (Memory Related Info.)
  1644. //-------------------------------------------------------------------------------------------
  1645. #ifndef __LANGUAGE_ASM__
  1646. /*!
  1647. * @brief HW_OCOTP_MEM2 - Value of OTP Bank1 Word2 (Memory Related Info.) (RW)
  1648. *
  1649. * Reset value: 0x00000000
  1650. *
  1651. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  1652. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP bank 1, word 2 (ADDR = 0x0A).
  1653. * EXAMPLE Empty Example.
  1654. */
  1655. typedef union _hw_ocotp_mem2
  1656. {
  1657. reg32_t U;
  1658. struct _hw_ocotp_mem2_bitfields
  1659. {
  1660. unsigned BITS : 32; //!< [31:0] Reflects value of OTP bank 1, word 2 (ADDR = 0x0A).
  1661. } B;
  1662. } hw_ocotp_mem2_t;
  1663. #endif
  1664. /*
  1665. * constants & macros for entire OCOTP_MEM2 register
  1666. */
  1667. #define HW_OCOTP_MEM2_ADDR (REGS_OCOTP_BASE + 0x4a0)
  1668. #ifndef __LANGUAGE_ASM__
  1669. #define HW_OCOTP_MEM2 (*(volatile hw_ocotp_mem2_t *) HW_OCOTP_MEM2_ADDR)
  1670. #define HW_OCOTP_MEM2_RD() (HW_OCOTP_MEM2.U)
  1671. #define HW_OCOTP_MEM2_WR(v) (HW_OCOTP_MEM2.U = (v))
  1672. #define HW_OCOTP_MEM2_SET(v) (HW_OCOTP_MEM2_WR(HW_OCOTP_MEM2_RD() | (v)))
  1673. #define HW_OCOTP_MEM2_CLR(v) (HW_OCOTP_MEM2_WR(HW_OCOTP_MEM2_RD() & ~(v)))
  1674. #define HW_OCOTP_MEM2_TOG(v) (HW_OCOTP_MEM2_WR(HW_OCOTP_MEM2_RD() ^ (v)))
  1675. #endif
  1676. /*
  1677. * constants & macros for individual OCOTP_MEM2 bitfields
  1678. */
  1679. /* --- Register HW_OCOTP_MEM2, field BITS[31:0] (RW)
  1680. *
  1681. * Reflects value of OTP bank 1, word 2 (ADDR = 0x0A). These bits become read-only after the
  1682. * HW_OCOTP_LOCK_MEM_TRIM[1] bit is set.
  1683. */
  1684. #define BP_OCOTP_MEM2_BITS (0) //!< Bit position for OCOTP_MEM2_BITS.
  1685. #define BM_OCOTP_MEM2_BITS (0xffffffff) //!< Bit mask for OCOTP_MEM2_BITS.
  1686. //! @brief Get value of OCOTP_MEM2_BITS from a register value.
  1687. #define BG_OCOTP_MEM2_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_MEM2_BITS) >> BP_OCOTP_MEM2_BITS)
  1688. //! @brief Format value for bitfield OCOTP_MEM2_BITS.
  1689. #define BF_OCOTP_MEM2_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_MEM2_BITS) & BM_OCOTP_MEM2_BITS)
  1690. #ifndef __LANGUAGE_ASM__
  1691. //! @brief Set the BITS field to a new value.
  1692. #define BW_OCOTP_MEM2_BITS(v) (HW_OCOTP_MEM2_WR((HW_OCOTP_MEM2_RD() & ~BM_OCOTP_MEM2_BITS) | BF_OCOTP_MEM2_BITS(v)))
  1693. #endif
  1694. //-------------------------------------------------------------------------------------------
  1695. // HW_OCOTP_MEM3 - Value of OTP Bank1 Word3 (Memory Related Info.)
  1696. //-------------------------------------------------------------------------------------------
  1697. #ifndef __LANGUAGE_ASM__
  1698. /*!
  1699. * @brief HW_OCOTP_MEM3 - Value of OTP Bank1 Word3 (Memory Related Info.) (RW)
  1700. *
  1701. * Reset value: 0x00000000
  1702. *
  1703. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  1704. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP bank 1, word 3 (ADDR = 0x0B).
  1705. * EXAMPLE Empty Example.
  1706. */
  1707. typedef union _hw_ocotp_mem3
  1708. {
  1709. reg32_t U;
  1710. struct _hw_ocotp_mem3_bitfields
  1711. {
  1712. unsigned BITS : 32; //!< [31:0] Reflects value of OTP bank 1, word 3 (ADDR = 0x0B).
  1713. } B;
  1714. } hw_ocotp_mem3_t;
  1715. #endif
  1716. /*
  1717. * constants & macros for entire OCOTP_MEM3 register
  1718. */
  1719. #define HW_OCOTP_MEM3_ADDR (REGS_OCOTP_BASE + 0x4b0)
  1720. #ifndef __LANGUAGE_ASM__
  1721. #define HW_OCOTP_MEM3 (*(volatile hw_ocotp_mem3_t *) HW_OCOTP_MEM3_ADDR)
  1722. #define HW_OCOTP_MEM3_RD() (HW_OCOTP_MEM3.U)
  1723. #define HW_OCOTP_MEM3_WR(v) (HW_OCOTP_MEM3.U = (v))
  1724. #define HW_OCOTP_MEM3_SET(v) (HW_OCOTP_MEM3_WR(HW_OCOTP_MEM3_RD() | (v)))
  1725. #define HW_OCOTP_MEM3_CLR(v) (HW_OCOTP_MEM3_WR(HW_OCOTP_MEM3_RD() & ~(v)))
  1726. #define HW_OCOTP_MEM3_TOG(v) (HW_OCOTP_MEM3_WR(HW_OCOTP_MEM3_RD() ^ (v)))
  1727. #endif
  1728. /*
  1729. * constants & macros for individual OCOTP_MEM3 bitfields
  1730. */
  1731. /* --- Register HW_OCOTP_MEM3, field BITS[31:0] (RW)
  1732. *
  1733. * Reflects value of OTP bank 1, word 3 (ADDR = 0x0B). These bits become read-only after the
  1734. * HW_OCOTP_LOCK_MEM_TRIM[1] bit is set.
  1735. */
  1736. #define BP_OCOTP_MEM3_BITS (0) //!< Bit position for OCOTP_MEM3_BITS.
  1737. #define BM_OCOTP_MEM3_BITS (0xffffffff) //!< Bit mask for OCOTP_MEM3_BITS.
  1738. //! @brief Get value of OCOTP_MEM3_BITS from a register value.
  1739. #define BG_OCOTP_MEM3_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_MEM3_BITS) >> BP_OCOTP_MEM3_BITS)
  1740. //! @brief Format value for bitfield OCOTP_MEM3_BITS.
  1741. #define BF_OCOTP_MEM3_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_MEM3_BITS) & BM_OCOTP_MEM3_BITS)
  1742. #ifndef __LANGUAGE_ASM__
  1743. //! @brief Set the BITS field to a new value.
  1744. #define BW_OCOTP_MEM3_BITS(v) (HW_OCOTP_MEM3_WR((HW_OCOTP_MEM3_RD() & ~BM_OCOTP_MEM3_BITS) | BF_OCOTP_MEM3_BITS(v)))
  1745. #endif
  1746. //-------------------------------------------------------------------------------------------
  1747. // HW_OCOTP_MEM4 - Value of OTP Bank1 Word4 (Memory Related Info.)
  1748. //-------------------------------------------------------------------------------------------
  1749. #ifndef __LANGUAGE_ASM__
  1750. /*!
  1751. * @brief HW_OCOTP_MEM4 - Value of OTP Bank1 Word4 (Memory Related Info.) (RW)
  1752. *
  1753. * Reset value: 0x00000000
  1754. *
  1755. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  1756. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP bank 1, word 4 (ADDR = 0x0C).
  1757. * EXAMPLE Empty Example.
  1758. */
  1759. typedef union _hw_ocotp_mem4
  1760. {
  1761. reg32_t U;
  1762. struct _hw_ocotp_mem4_bitfields
  1763. {
  1764. unsigned BITS : 32; //!< [31:0] Reflects value of OTP bank 1, word 4 (ADDR = 0x0C).
  1765. } B;
  1766. } hw_ocotp_mem4_t;
  1767. #endif
  1768. /*
  1769. * constants & macros for entire OCOTP_MEM4 register
  1770. */
  1771. #define HW_OCOTP_MEM4_ADDR (REGS_OCOTP_BASE + 0x4c0)
  1772. #ifndef __LANGUAGE_ASM__
  1773. #define HW_OCOTP_MEM4 (*(volatile hw_ocotp_mem4_t *) HW_OCOTP_MEM4_ADDR)
  1774. #define HW_OCOTP_MEM4_RD() (HW_OCOTP_MEM4.U)
  1775. #define HW_OCOTP_MEM4_WR(v) (HW_OCOTP_MEM4.U = (v))
  1776. #define HW_OCOTP_MEM4_SET(v) (HW_OCOTP_MEM4_WR(HW_OCOTP_MEM4_RD() | (v)))
  1777. #define HW_OCOTP_MEM4_CLR(v) (HW_OCOTP_MEM4_WR(HW_OCOTP_MEM4_RD() & ~(v)))
  1778. #define HW_OCOTP_MEM4_TOG(v) (HW_OCOTP_MEM4_WR(HW_OCOTP_MEM4_RD() ^ (v)))
  1779. #endif
  1780. /*
  1781. * constants & macros for individual OCOTP_MEM4 bitfields
  1782. */
  1783. /* --- Register HW_OCOTP_MEM4, field BITS[31:0] (RW)
  1784. *
  1785. * Reflects value of OTP bank 1, word 4 (ADDR = 0x0C). These bits become read-only after the
  1786. * HW_OCOTP_LOCK_MEM_TRIM[1] bit is set.
  1787. */
  1788. #define BP_OCOTP_MEM4_BITS (0) //!< Bit position for OCOTP_MEM4_BITS.
  1789. #define BM_OCOTP_MEM4_BITS (0xffffffff) //!< Bit mask for OCOTP_MEM4_BITS.
  1790. //! @brief Get value of OCOTP_MEM4_BITS from a register value.
  1791. #define BG_OCOTP_MEM4_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_MEM4_BITS) >> BP_OCOTP_MEM4_BITS)
  1792. //! @brief Format value for bitfield OCOTP_MEM4_BITS.
  1793. #define BF_OCOTP_MEM4_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_MEM4_BITS) & BM_OCOTP_MEM4_BITS)
  1794. #ifndef __LANGUAGE_ASM__
  1795. //! @brief Set the BITS field to a new value.
  1796. #define BW_OCOTP_MEM4_BITS(v) (HW_OCOTP_MEM4_WR((HW_OCOTP_MEM4_RD() & ~BM_OCOTP_MEM4_BITS) | BF_OCOTP_MEM4_BITS(v)))
  1797. #endif
  1798. //-------------------------------------------------------------------------------------------
  1799. // HW_OCOTP_ANA0 - Value of OTP Bank1 Word5 (Memory Related Info.)
  1800. //-------------------------------------------------------------------------------------------
  1801. #ifndef __LANGUAGE_ASM__
  1802. /*!
  1803. * @brief HW_OCOTP_ANA0 - Value of OTP Bank1 Word5 (Memory Related Info.) (RW)
  1804. *
  1805. * Reset value: 0x00000000
  1806. *
  1807. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  1808. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP bank 1, word 5 (ADDR = 0x0D).
  1809. * EXAMPLE Empty Example.
  1810. */
  1811. typedef union _hw_ocotp_ana0
  1812. {
  1813. reg32_t U;
  1814. struct _hw_ocotp_ana0_bitfields
  1815. {
  1816. unsigned BITS : 32; //!< [31:0] Reflects value of OTP bank 1, word 5 (ADDR = 0x0D).
  1817. } B;
  1818. } hw_ocotp_ana0_t;
  1819. #endif
  1820. /*
  1821. * constants & macros for entire OCOTP_ANA0 register
  1822. */
  1823. #define HW_OCOTP_ANA0_ADDR (REGS_OCOTP_BASE + 0x4d0)
  1824. #ifndef __LANGUAGE_ASM__
  1825. #define HW_OCOTP_ANA0 (*(volatile hw_ocotp_ana0_t *) HW_OCOTP_ANA0_ADDR)
  1826. #define HW_OCOTP_ANA0_RD() (HW_OCOTP_ANA0.U)
  1827. #define HW_OCOTP_ANA0_WR(v) (HW_OCOTP_ANA0.U = (v))
  1828. #define HW_OCOTP_ANA0_SET(v) (HW_OCOTP_ANA0_WR(HW_OCOTP_ANA0_RD() | (v)))
  1829. #define HW_OCOTP_ANA0_CLR(v) (HW_OCOTP_ANA0_WR(HW_OCOTP_ANA0_RD() & ~(v)))
  1830. #define HW_OCOTP_ANA0_TOG(v) (HW_OCOTP_ANA0_WR(HW_OCOTP_ANA0_RD() ^ (v)))
  1831. #endif
  1832. /*
  1833. * constants & macros for individual OCOTP_ANA0 bitfields
  1834. */
  1835. /* --- Register HW_OCOTP_ANA0, field BITS[31:0] (RW)
  1836. *
  1837. * Reflects value of OTP bank 1, word 5 (ADDR = 0x0D). These bits become read-only after the
  1838. * HW_OCOTP_LOCK_ANALOG[1] bit is set.
  1839. */
  1840. #define BP_OCOTP_ANA0_BITS (0) //!< Bit position for OCOTP_ANA0_BITS.
  1841. #define BM_OCOTP_ANA0_BITS (0xffffffff) //!< Bit mask for OCOTP_ANA0_BITS.
  1842. //! @brief Get value of OCOTP_ANA0_BITS from a register value.
  1843. #define BG_OCOTP_ANA0_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_ANA0_BITS) >> BP_OCOTP_ANA0_BITS)
  1844. //! @brief Format value for bitfield OCOTP_ANA0_BITS.
  1845. #define BF_OCOTP_ANA0_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_ANA0_BITS) & BM_OCOTP_ANA0_BITS)
  1846. #ifndef __LANGUAGE_ASM__
  1847. //! @brief Set the BITS field to a new value.
  1848. #define BW_OCOTP_ANA0_BITS(v) (HW_OCOTP_ANA0_WR((HW_OCOTP_ANA0_RD() & ~BM_OCOTP_ANA0_BITS) | BF_OCOTP_ANA0_BITS(v)))
  1849. #endif
  1850. //-------------------------------------------------------------------------------------------
  1851. // HW_OCOTP_ANA1 - Value of OTP Bank1 Word6 (General Purpose Customer Defined Info.)
  1852. //-------------------------------------------------------------------------------------------
  1853. #ifndef __LANGUAGE_ASM__
  1854. /*!
  1855. * @brief HW_OCOTP_ANA1 - Value of OTP Bank1 Word6 (General Purpose Customer Defined Info.) (RW)
  1856. *
  1857. * Reset value: 0x00000000
  1858. *
  1859. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  1860. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP bank 1, word 6 (ADDR = 0x0E).
  1861. * EXAMPLE Empty Example.
  1862. */
  1863. typedef union _hw_ocotp_ana1
  1864. {
  1865. reg32_t U;
  1866. struct _hw_ocotp_ana1_bitfields
  1867. {
  1868. unsigned BITS : 32; //!< [31:0] Reflects value of OTP bank 1, word 6 (ADDR = 0x0E).
  1869. } B;
  1870. } hw_ocotp_ana1_t;
  1871. #endif
  1872. /*
  1873. * constants & macros for entire OCOTP_ANA1 register
  1874. */
  1875. #define HW_OCOTP_ANA1_ADDR (REGS_OCOTP_BASE + 0x4e0)
  1876. #ifndef __LANGUAGE_ASM__
  1877. #define HW_OCOTP_ANA1 (*(volatile hw_ocotp_ana1_t *) HW_OCOTP_ANA1_ADDR)
  1878. #define HW_OCOTP_ANA1_RD() (HW_OCOTP_ANA1.U)
  1879. #define HW_OCOTP_ANA1_WR(v) (HW_OCOTP_ANA1.U = (v))
  1880. #define HW_OCOTP_ANA1_SET(v) (HW_OCOTP_ANA1_WR(HW_OCOTP_ANA1_RD() | (v)))
  1881. #define HW_OCOTP_ANA1_CLR(v) (HW_OCOTP_ANA1_WR(HW_OCOTP_ANA1_RD() & ~(v)))
  1882. #define HW_OCOTP_ANA1_TOG(v) (HW_OCOTP_ANA1_WR(HW_OCOTP_ANA1_RD() ^ (v)))
  1883. #endif
  1884. /*
  1885. * constants & macros for individual OCOTP_ANA1 bitfields
  1886. */
  1887. /* --- Register HW_OCOTP_ANA1, field BITS[31:0] (RW)
  1888. *
  1889. * Reflects value of OTP bank 1, word 6 (ADDR = 0x0E). These bits become read-only after the
  1890. * HW_OCOTP_LOCK_ANALOG[1] bit is set.
  1891. */
  1892. #define BP_OCOTP_ANA1_BITS (0) //!< Bit position for OCOTP_ANA1_BITS.
  1893. #define BM_OCOTP_ANA1_BITS (0xffffffff) //!< Bit mask for OCOTP_ANA1_BITS.
  1894. //! @brief Get value of OCOTP_ANA1_BITS from a register value.
  1895. #define BG_OCOTP_ANA1_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_ANA1_BITS) >> BP_OCOTP_ANA1_BITS)
  1896. //! @brief Format value for bitfield OCOTP_ANA1_BITS.
  1897. #define BF_OCOTP_ANA1_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_ANA1_BITS) & BM_OCOTP_ANA1_BITS)
  1898. #ifndef __LANGUAGE_ASM__
  1899. //! @brief Set the BITS field to a new value.
  1900. #define BW_OCOTP_ANA1_BITS(v) (HW_OCOTP_ANA1_WR((HW_OCOTP_ANA1_RD() & ~BM_OCOTP_ANA1_BITS) | BF_OCOTP_ANA1_BITS(v)))
  1901. #endif
  1902. //-------------------------------------------------------------------------------------------
  1903. // HW_OCOTP_ANA2 - Value of OTP Bank1 Word7 (General Purpose Customer Defined Info.)
  1904. //-------------------------------------------------------------------------------------------
  1905. #ifndef __LANGUAGE_ASM__
  1906. /*!
  1907. * @brief HW_OCOTP_ANA2 - Value of OTP Bank1 Word7 (General Purpose Customer Defined Info.) (RW)
  1908. *
  1909. * Reset value: 0x00000000
  1910. *
  1911. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  1912. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP bank 1, word 7 (ADDR = 0x0F).
  1913. * EXAMPLE Empty Example.
  1914. */
  1915. typedef union _hw_ocotp_ana2
  1916. {
  1917. reg32_t U;
  1918. struct _hw_ocotp_ana2_bitfields
  1919. {
  1920. unsigned BITS : 32; //!< [31:0] Reflects value of OTP bank 1, word 7 (ADDR = 0x0F).
  1921. } B;
  1922. } hw_ocotp_ana2_t;
  1923. #endif
  1924. /*
  1925. * constants & macros for entire OCOTP_ANA2 register
  1926. */
  1927. #define HW_OCOTP_ANA2_ADDR (REGS_OCOTP_BASE + 0x4f0)
  1928. #ifndef __LANGUAGE_ASM__
  1929. #define HW_OCOTP_ANA2 (*(volatile hw_ocotp_ana2_t *) HW_OCOTP_ANA2_ADDR)
  1930. #define HW_OCOTP_ANA2_RD() (HW_OCOTP_ANA2.U)
  1931. #define HW_OCOTP_ANA2_WR(v) (HW_OCOTP_ANA2.U = (v))
  1932. #define HW_OCOTP_ANA2_SET(v) (HW_OCOTP_ANA2_WR(HW_OCOTP_ANA2_RD() | (v)))
  1933. #define HW_OCOTP_ANA2_CLR(v) (HW_OCOTP_ANA2_WR(HW_OCOTP_ANA2_RD() & ~(v)))
  1934. #define HW_OCOTP_ANA2_TOG(v) (HW_OCOTP_ANA2_WR(HW_OCOTP_ANA2_RD() ^ (v)))
  1935. #endif
  1936. /*
  1937. * constants & macros for individual OCOTP_ANA2 bitfields
  1938. */
  1939. /* --- Register HW_OCOTP_ANA2, field BITS[31:0] (RW)
  1940. *
  1941. * Reflects value of OTP bank 1, word 7 (ADDR = 0x0F). These bits become read-only after the
  1942. * HW_OCOTP_LOCK_ANALOG[1] bit is set.
  1943. */
  1944. #define BP_OCOTP_ANA2_BITS (0) //!< Bit position for OCOTP_ANA2_BITS.
  1945. #define BM_OCOTP_ANA2_BITS (0xffffffff) //!< Bit mask for OCOTP_ANA2_BITS.
  1946. //! @brief Get value of OCOTP_ANA2_BITS from a register value.
  1947. #define BG_OCOTP_ANA2_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_ANA2_BITS) >> BP_OCOTP_ANA2_BITS)
  1948. //! @brief Format value for bitfield OCOTP_ANA2_BITS.
  1949. #define BF_OCOTP_ANA2_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_ANA2_BITS) & BM_OCOTP_ANA2_BITS)
  1950. #ifndef __LANGUAGE_ASM__
  1951. //! @brief Set the BITS field to a new value.
  1952. #define BW_OCOTP_ANA2_BITS(v) (HW_OCOTP_ANA2_WR((HW_OCOTP_ANA2_RD() & ~BM_OCOTP_ANA2_BITS) | BF_OCOTP_ANA2_BITS(v)))
  1953. #endif
  1954. //-------------------------------------------------------------------------------------------
  1955. // HW_OCOTP_OTPMK0 - Shadow Register for OTP Bank2 Word0 (OTPMK and CRYPTO Key)
  1956. //-------------------------------------------------------------------------------------------
  1957. #ifndef __LANGUAGE_ASM__
  1958. /*!
  1959. * @brief HW_OCOTP_OTPMK0 - Shadow Register for OTP Bank2 Word0 (OTPMK and CRYPTO Key) (RW)
  1960. *
  1961. * Reset value: 0x00000000
  1962. *
  1963. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  1964. * HW_OCOTP_CTRL[RELOAD_SHADOWS]. Shadowed memory mapped access to OTP Bank 2, word 0 (ADDR =
  1965. * 0x10). EXAMPLE Empty Example.
  1966. */
  1967. typedef union _hw_ocotp_otpmk0
  1968. {
  1969. reg32_t U;
  1970. struct _hw_ocotp_otpmk0_bitfields
  1971. {
  1972. unsigned BITS : 32; //!< [31:0] Shadow register for the OTPMK Key word0 (Copy of OTP Bank 2, word 0 (ADDR = 0x10)).
  1973. } B;
  1974. } hw_ocotp_otpmk0_t;
  1975. #endif
  1976. /*
  1977. * constants & macros for entire OCOTP_OTPMK0 register
  1978. */
  1979. #define HW_OCOTP_OTPMK0_ADDR (REGS_OCOTP_BASE + 0x500)
  1980. #ifndef __LANGUAGE_ASM__
  1981. #define HW_OCOTP_OTPMK0 (*(volatile hw_ocotp_otpmk0_t *) HW_OCOTP_OTPMK0_ADDR)
  1982. #define HW_OCOTP_OTPMK0_RD() (HW_OCOTP_OTPMK0.U)
  1983. #define HW_OCOTP_OTPMK0_WR(v) (HW_OCOTP_OTPMK0.U = (v))
  1984. #define HW_OCOTP_OTPMK0_SET(v) (HW_OCOTP_OTPMK0_WR(HW_OCOTP_OTPMK0_RD() | (v)))
  1985. #define HW_OCOTP_OTPMK0_CLR(v) (HW_OCOTP_OTPMK0_WR(HW_OCOTP_OTPMK0_RD() & ~(v)))
  1986. #define HW_OCOTP_OTPMK0_TOG(v) (HW_OCOTP_OTPMK0_WR(HW_OCOTP_OTPMK0_RD() ^ (v)))
  1987. #endif
  1988. /*
  1989. * constants & macros for individual OCOTP_OTPMK0 bitfields
  1990. */
  1991. /* --- Register HW_OCOTP_OTPMK0, field BITS[31:0] (RW)
  1992. *
  1993. * Shadow register for the OTPMK Key word0 (Copy of OTP Bank 2, word 0 (ADDR = 0x10)). These bits
  1994. * can be not read and wrotten after the HW_OCOTP_LOCK_OTPMK bit is set. If read, returns
  1995. * 0xBADA_BADA and sets HW_OCOTP_CTRL[ERROR].
  1996. */
  1997. #define BP_OCOTP_OTPMK0_BITS (0) //!< Bit position for OCOTP_OTPMK0_BITS.
  1998. #define BM_OCOTP_OTPMK0_BITS (0xffffffff) //!< Bit mask for OCOTP_OTPMK0_BITS.
  1999. //! @brief Get value of OCOTP_OTPMK0_BITS from a register value.
  2000. #define BG_OCOTP_OTPMK0_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_OTPMK0_BITS) >> BP_OCOTP_OTPMK0_BITS)
  2001. //! @brief Format value for bitfield OCOTP_OTPMK0_BITS.
  2002. #define BF_OCOTP_OTPMK0_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_OTPMK0_BITS) & BM_OCOTP_OTPMK0_BITS)
  2003. #ifndef __LANGUAGE_ASM__
  2004. //! @brief Set the BITS field to a new value.
  2005. #define BW_OCOTP_OTPMK0_BITS(v) (HW_OCOTP_OTPMK0_WR((HW_OCOTP_OTPMK0_RD() & ~BM_OCOTP_OTPMK0_BITS) | BF_OCOTP_OTPMK0_BITS(v)))
  2006. #endif
  2007. //-------------------------------------------------------------------------------------------
  2008. // HW_OCOTP_OTPMK1 - Shadow Register for OTP Bank2 Word1 (OTPMK and CRYPTO Key)
  2009. //-------------------------------------------------------------------------------------------
  2010. #ifndef __LANGUAGE_ASM__
  2011. /*!
  2012. * @brief HW_OCOTP_OTPMK1 - Shadow Register for OTP Bank2 Word1 (OTPMK and CRYPTO Key) (RW)
  2013. *
  2014. * Reset value: 0x00000000
  2015. *
  2016. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  2017. * HW_OCOTP_CTRL[RELOAD_SHADOWS]. Shadowed memory mapped access to OTP Bank 2, word 1 (ADDR =
  2018. * 0x11). EXAMPLE Empty Example.
  2019. */
  2020. typedef union _hw_ocotp_otpmk1
  2021. {
  2022. reg32_t U;
  2023. struct _hw_ocotp_otpmk1_bitfields
  2024. {
  2025. unsigned BITS : 32; //!< [31:0] Shadow register for the OTPMK Key word1 (Copy of OTP Bank 2, word 1 (ADDR = 0x11)).
  2026. } B;
  2027. } hw_ocotp_otpmk1_t;
  2028. #endif
  2029. /*
  2030. * constants & macros for entire OCOTP_OTPMK1 register
  2031. */
  2032. #define HW_OCOTP_OTPMK1_ADDR (REGS_OCOTP_BASE + 0x510)
  2033. #ifndef __LANGUAGE_ASM__
  2034. #define HW_OCOTP_OTPMK1 (*(volatile hw_ocotp_otpmk1_t *) HW_OCOTP_OTPMK1_ADDR)
  2035. #define HW_OCOTP_OTPMK1_RD() (HW_OCOTP_OTPMK1.U)
  2036. #define HW_OCOTP_OTPMK1_WR(v) (HW_OCOTP_OTPMK1.U = (v))
  2037. #define HW_OCOTP_OTPMK1_SET(v) (HW_OCOTP_OTPMK1_WR(HW_OCOTP_OTPMK1_RD() | (v)))
  2038. #define HW_OCOTP_OTPMK1_CLR(v) (HW_OCOTP_OTPMK1_WR(HW_OCOTP_OTPMK1_RD() & ~(v)))
  2039. #define HW_OCOTP_OTPMK1_TOG(v) (HW_OCOTP_OTPMK1_WR(HW_OCOTP_OTPMK1_RD() ^ (v)))
  2040. #endif
  2041. /*
  2042. * constants & macros for individual OCOTP_OTPMK1 bitfields
  2043. */
  2044. /* --- Register HW_OCOTP_OTPMK1, field BITS[31:0] (RW)
  2045. *
  2046. * Shadow register for the OTPMK Key word1 (Copy of OTP Bank 2, word 1 (ADDR = 0x11)). These bits
  2047. * can be not read and wrotten after the HW_OCOTP_LOCK_OTPMK bit is set. If read, returns
  2048. * 0xBADA_BADA and sets HW_OCOTP_CTRL[ERROR].
  2049. */
  2050. #define BP_OCOTP_OTPMK1_BITS (0) //!< Bit position for OCOTP_OTPMK1_BITS.
  2051. #define BM_OCOTP_OTPMK1_BITS (0xffffffff) //!< Bit mask for OCOTP_OTPMK1_BITS.
  2052. //! @brief Get value of OCOTP_OTPMK1_BITS from a register value.
  2053. #define BG_OCOTP_OTPMK1_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_OTPMK1_BITS) >> BP_OCOTP_OTPMK1_BITS)
  2054. //! @brief Format value for bitfield OCOTP_OTPMK1_BITS.
  2055. #define BF_OCOTP_OTPMK1_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_OTPMK1_BITS) & BM_OCOTP_OTPMK1_BITS)
  2056. #ifndef __LANGUAGE_ASM__
  2057. //! @brief Set the BITS field to a new value.
  2058. #define BW_OCOTP_OTPMK1_BITS(v) (HW_OCOTP_OTPMK1_WR((HW_OCOTP_OTPMK1_RD() & ~BM_OCOTP_OTPMK1_BITS) | BF_OCOTP_OTPMK1_BITS(v)))
  2059. #endif
  2060. //-------------------------------------------------------------------------------------------
  2061. // HW_OCOTP_OTPMK2 - Shadow Register for OTP Bank2 Word2 (OTPMK and CRYPTO Key)
  2062. //-------------------------------------------------------------------------------------------
  2063. #ifndef __LANGUAGE_ASM__
  2064. /*!
  2065. * @brief HW_OCOTP_OTPMK2 - Shadow Register for OTP Bank2 Word2 (OTPMK and CRYPTO Key) (RW)
  2066. *
  2067. * Reset value: 0x00000000
  2068. *
  2069. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  2070. * HW_OCOTP_CTRL[RELOAD_SHADOWS]. Shadowed memory mapped access to OTP Bank 2, word 2 (ADDR =
  2071. * 0x12). EXAMPLE Empty Example.
  2072. */
  2073. typedef union _hw_ocotp_otpmk2
  2074. {
  2075. reg32_t U;
  2076. struct _hw_ocotp_otpmk2_bitfields
  2077. {
  2078. unsigned BITS : 32; //!< [31:0] Shadow register for the OTPMK Key word2 (Copy of OTP Bank 2, word 2 (ADDR = 0x12)).
  2079. } B;
  2080. } hw_ocotp_otpmk2_t;
  2081. #endif
  2082. /*
  2083. * constants & macros for entire OCOTP_OTPMK2 register
  2084. */
  2085. #define HW_OCOTP_OTPMK2_ADDR (REGS_OCOTP_BASE + 0x520)
  2086. #ifndef __LANGUAGE_ASM__
  2087. #define HW_OCOTP_OTPMK2 (*(volatile hw_ocotp_otpmk2_t *) HW_OCOTP_OTPMK2_ADDR)
  2088. #define HW_OCOTP_OTPMK2_RD() (HW_OCOTP_OTPMK2.U)
  2089. #define HW_OCOTP_OTPMK2_WR(v) (HW_OCOTP_OTPMK2.U = (v))
  2090. #define HW_OCOTP_OTPMK2_SET(v) (HW_OCOTP_OTPMK2_WR(HW_OCOTP_OTPMK2_RD() | (v)))
  2091. #define HW_OCOTP_OTPMK2_CLR(v) (HW_OCOTP_OTPMK2_WR(HW_OCOTP_OTPMK2_RD() & ~(v)))
  2092. #define HW_OCOTP_OTPMK2_TOG(v) (HW_OCOTP_OTPMK2_WR(HW_OCOTP_OTPMK2_RD() ^ (v)))
  2093. #endif
  2094. /*
  2095. * constants & macros for individual OCOTP_OTPMK2 bitfields
  2096. */
  2097. /* --- Register HW_OCOTP_OTPMK2, field BITS[31:0] (RW)
  2098. *
  2099. * Shadow register for the OTPMK Key word2 (Copy of OTP Bank 2, word 2 (ADDR = 0x12)). These bits
  2100. * can be not read and wrotten after the HW_OCOTP_LOCK_OTPMK bit is set. If read, returns
  2101. * 0xBADA_BADA and sets HW_OCOTP_CTRL[ERROR].
  2102. */
  2103. #define BP_OCOTP_OTPMK2_BITS (0) //!< Bit position for OCOTP_OTPMK2_BITS.
  2104. #define BM_OCOTP_OTPMK2_BITS (0xffffffff) //!< Bit mask for OCOTP_OTPMK2_BITS.
  2105. //! @brief Get value of OCOTP_OTPMK2_BITS from a register value.
  2106. #define BG_OCOTP_OTPMK2_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_OTPMK2_BITS) >> BP_OCOTP_OTPMK2_BITS)
  2107. //! @brief Format value for bitfield OCOTP_OTPMK2_BITS.
  2108. #define BF_OCOTP_OTPMK2_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_OTPMK2_BITS) & BM_OCOTP_OTPMK2_BITS)
  2109. #ifndef __LANGUAGE_ASM__
  2110. //! @brief Set the BITS field to a new value.
  2111. #define BW_OCOTP_OTPMK2_BITS(v) (HW_OCOTP_OTPMK2_WR((HW_OCOTP_OTPMK2_RD() & ~BM_OCOTP_OTPMK2_BITS) | BF_OCOTP_OTPMK2_BITS(v)))
  2112. #endif
  2113. //-------------------------------------------------------------------------------------------
  2114. // HW_OCOTP_OTPMK3 - Shadow Register for OTP Bank2 Word3 (OTPMK and CRYPTO Key)
  2115. //-------------------------------------------------------------------------------------------
  2116. #ifndef __LANGUAGE_ASM__
  2117. /*!
  2118. * @brief HW_OCOTP_OTPMK3 - Shadow Register for OTP Bank2 Word3 (OTPMK and CRYPTO Key) (RW)
  2119. *
  2120. * Reset value: 0x00000000
  2121. *
  2122. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  2123. * HW_OCOTP_CTRL[RELOAD_SHADOWS]. Shadowed memory mapped access to OTP Bank 2, word 3 (ADDR =
  2124. * 0x13). EXAMPLE Empty Example.
  2125. */
  2126. typedef union _hw_ocotp_otpmk3
  2127. {
  2128. reg32_t U;
  2129. struct _hw_ocotp_otpmk3_bitfields
  2130. {
  2131. unsigned BITS : 32; //!< [31:0] Shadow register for the OTPMK Key word3 (Copy of OTP Bank 2, word 3 (ADDR = 0x13)).
  2132. } B;
  2133. } hw_ocotp_otpmk3_t;
  2134. #endif
  2135. /*
  2136. * constants & macros for entire OCOTP_OTPMK3 register
  2137. */
  2138. #define HW_OCOTP_OTPMK3_ADDR (REGS_OCOTP_BASE + 0x530)
  2139. #ifndef __LANGUAGE_ASM__
  2140. #define HW_OCOTP_OTPMK3 (*(volatile hw_ocotp_otpmk3_t *) HW_OCOTP_OTPMK3_ADDR)
  2141. #define HW_OCOTP_OTPMK3_RD() (HW_OCOTP_OTPMK3.U)
  2142. #define HW_OCOTP_OTPMK3_WR(v) (HW_OCOTP_OTPMK3.U = (v))
  2143. #define HW_OCOTP_OTPMK3_SET(v) (HW_OCOTP_OTPMK3_WR(HW_OCOTP_OTPMK3_RD() | (v)))
  2144. #define HW_OCOTP_OTPMK3_CLR(v) (HW_OCOTP_OTPMK3_WR(HW_OCOTP_OTPMK3_RD() & ~(v)))
  2145. #define HW_OCOTP_OTPMK3_TOG(v) (HW_OCOTP_OTPMK3_WR(HW_OCOTP_OTPMK3_RD() ^ (v)))
  2146. #endif
  2147. /*
  2148. * constants & macros for individual OCOTP_OTPMK3 bitfields
  2149. */
  2150. /* --- Register HW_OCOTP_OTPMK3, field BITS[31:0] (RW)
  2151. *
  2152. * Shadow register for the OTPMK Key word3 (Copy of OTP Bank 2, word 3 (ADDR = 0x13)). These bits
  2153. * can be not read and wrotten after the HW_OCOTP_LOCK_OTPMK bit is set. If read, returns
  2154. * 0xBADA_BADA and sets HW_OCOTP_CTRL[ERROR].
  2155. */
  2156. #define BP_OCOTP_OTPMK3_BITS (0) //!< Bit position for OCOTP_OTPMK3_BITS.
  2157. #define BM_OCOTP_OTPMK3_BITS (0xffffffff) //!< Bit mask for OCOTP_OTPMK3_BITS.
  2158. //! @brief Get value of OCOTP_OTPMK3_BITS from a register value.
  2159. #define BG_OCOTP_OTPMK3_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_OTPMK3_BITS) >> BP_OCOTP_OTPMK3_BITS)
  2160. //! @brief Format value for bitfield OCOTP_OTPMK3_BITS.
  2161. #define BF_OCOTP_OTPMK3_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_OTPMK3_BITS) & BM_OCOTP_OTPMK3_BITS)
  2162. #ifndef __LANGUAGE_ASM__
  2163. //! @brief Set the BITS field to a new value.
  2164. #define BW_OCOTP_OTPMK3_BITS(v) (HW_OCOTP_OTPMK3_WR((HW_OCOTP_OTPMK3_RD() & ~BM_OCOTP_OTPMK3_BITS) | BF_OCOTP_OTPMK3_BITS(v)))
  2165. #endif
  2166. //-------------------------------------------------------------------------------------------
  2167. // HW_OCOTP_OTPMK4 - Shadow Register for OTP Bank2 Word4 (OTPMK Key)
  2168. //-------------------------------------------------------------------------------------------
  2169. #ifndef __LANGUAGE_ASM__
  2170. /*!
  2171. * @brief HW_OCOTP_OTPMK4 - Shadow Register for OTP Bank2 Word4 (OTPMK Key) (RW)
  2172. *
  2173. * Reset value: 0x00000000
  2174. *
  2175. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  2176. * HW_OCOTP_CTRL[RELOAD_SHADOWS]. Shadowed memory mapped access to OTP Bank 2, word 4 (ADDR =
  2177. * 0x14). EXAMPLE Empty Example.
  2178. */
  2179. typedef union _hw_ocotp_otpmk4
  2180. {
  2181. reg32_t U;
  2182. struct _hw_ocotp_otpmk4_bitfields
  2183. {
  2184. unsigned BITS : 32; //!< [31:0] Shadow register for the OTPMK Key word4 (Copy of OTP Bank 2, word 4 (ADDR = 0x14)).
  2185. } B;
  2186. } hw_ocotp_otpmk4_t;
  2187. #endif
  2188. /*
  2189. * constants & macros for entire OCOTP_OTPMK4 register
  2190. */
  2191. #define HW_OCOTP_OTPMK4_ADDR (REGS_OCOTP_BASE + 0x540)
  2192. #ifndef __LANGUAGE_ASM__
  2193. #define HW_OCOTP_OTPMK4 (*(volatile hw_ocotp_otpmk4_t *) HW_OCOTP_OTPMK4_ADDR)
  2194. #define HW_OCOTP_OTPMK4_RD() (HW_OCOTP_OTPMK4.U)
  2195. #define HW_OCOTP_OTPMK4_WR(v) (HW_OCOTP_OTPMK4.U = (v))
  2196. #define HW_OCOTP_OTPMK4_SET(v) (HW_OCOTP_OTPMK4_WR(HW_OCOTP_OTPMK4_RD() | (v)))
  2197. #define HW_OCOTP_OTPMK4_CLR(v) (HW_OCOTP_OTPMK4_WR(HW_OCOTP_OTPMK4_RD() & ~(v)))
  2198. #define HW_OCOTP_OTPMK4_TOG(v) (HW_OCOTP_OTPMK4_WR(HW_OCOTP_OTPMK4_RD() ^ (v)))
  2199. #endif
  2200. /*
  2201. * constants & macros for individual OCOTP_OTPMK4 bitfields
  2202. */
  2203. /* --- Register HW_OCOTP_OTPMK4, field BITS[31:0] (RW)
  2204. *
  2205. * Shadow register for the OTPMK Key word4 (Copy of OTP Bank 2, word 4 (ADDR = 0x14)). These bits
  2206. * can be not read and wrotten after the HW_OCOTP_LOCK_OTPMK bit is set. If read, returns
  2207. * 0xBADA_BADA and sets HW_OCOTP_CTRL[ERROR].
  2208. */
  2209. #define BP_OCOTP_OTPMK4_BITS (0) //!< Bit position for OCOTP_OTPMK4_BITS.
  2210. #define BM_OCOTP_OTPMK4_BITS (0xffffffff) //!< Bit mask for OCOTP_OTPMK4_BITS.
  2211. //! @brief Get value of OCOTP_OTPMK4_BITS from a register value.
  2212. #define BG_OCOTP_OTPMK4_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_OTPMK4_BITS) >> BP_OCOTP_OTPMK4_BITS)
  2213. //! @brief Format value for bitfield OCOTP_OTPMK4_BITS.
  2214. #define BF_OCOTP_OTPMK4_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_OTPMK4_BITS) & BM_OCOTP_OTPMK4_BITS)
  2215. #ifndef __LANGUAGE_ASM__
  2216. //! @brief Set the BITS field to a new value.
  2217. #define BW_OCOTP_OTPMK4_BITS(v) (HW_OCOTP_OTPMK4_WR((HW_OCOTP_OTPMK4_RD() & ~BM_OCOTP_OTPMK4_BITS) | BF_OCOTP_OTPMK4_BITS(v)))
  2218. #endif
  2219. //-------------------------------------------------------------------------------------------
  2220. // HW_OCOTP_OTPMK5 - Shadow Register for OTP Bank2 Word5 (OTPMK Key)
  2221. //-------------------------------------------------------------------------------------------
  2222. #ifndef __LANGUAGE_ASM__
  2223. /*!
  2224. * @brief HW_OCOTP_OTPMK5 - Shadow Register for OTP Bank2 Word5 (OTPMK Key) (RW)
  2225. *
  2226. * Reset value: 0x00000000
  2227. *
  2228. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  2229. * HW_OCOTP_CTRL[RELOAD_SHADOWS]. Shadowed memory mapped access to OTP Bank 2, word 5 (ADDR =
  2230. * 0x15). EXAMPLE Empty Example.
  2231. */
  2232. typedef union _hw_ocotp_otpmk5
  2233. {
  2234. reg32_t U;
  2235. struct _hw_ocotp_otpmk5_bitfields
  2236. {
  2237. unsigned BITS : 32; //!< [31:0] Shadow register for the OTPMK Key word5 (Copy of OTP Bank 2, word 5 (ADDR = 0x15)).
  2238. } B;
  2239. } hw_ocotp_otpmk5_t;
  2240. #endif
  2241. /*
  2242. * constants & macros for entire OCOTP_OTPMK5 register
  2243. */
  2244. #define HW_OCOTP_OTPMK5_ADDR (REGS_OCOTP_BASE + 0x550)
  2245. #ifndef __LANGUAGE_ASM__
  2246. #define HW_OCOTP_OTPMK5 (*(volatile hw_ocotp_otpmk5_t *) HW_OCOTP_OTPMK5_ADDR)
  2247. #define HW_OCOTP_OTPMK5_RD() (HW_OCOTP_OTPMK5.U)
  2248. #define HW_OCOTP_OTPMK5_WR(v) (HW_OCOTP_OTPMK5.U = (v))
  2249. #define HW_OCOTP_OTPMK5_SET(v) (HW_OCOTP_OTPMK5_WR(HW_OCOTP_OTPMK5_RD() | (v)))
  2250. #define HW_OCOTP_OTPMK5_CLR(v) (HW_OCOTP_OTPMK5_WR(HW_OCOTP_OTPMK5_RD() & ~(v)))
  2251. #define HW_OCOTP_OTPMK5_TOG(v) (HW_OCOTP_OTPMK5_WR(HW_OCOTP_OTPMK5_RD() ^ (v)))
  2252. #endif
  2253. /*
  2254. * constants & macros for individual OCOTP_OTPMK5 bitfields
  2255. */
  2256. /* --- Register HW_OCOTP_OTPMK5, field BITS[31:0] (RW)
  2257. *
  2258. * Shadow register for the OTPMK Key word5 (Copy of OTP Bank 2, word 5 (ADDR = 0x15)). These bits
  2259. * can be not read and wrotten after the HW_OCOTP_LOCK_OTPMK bit is set. If read, returns
  2260. * 0xBADA_BADA and sets HW_OCOTP_CTRL[ERROR].
  2261. */
  2262. #define BP_OCOTP_OTPMK5_BITS (0) //!< Bit position for OCOTP_OTPMK5_BITS.
  2263. #define BM_OCOTP_OTPMK5_BITS (0xffffffff) //!< Bit mask for OCOTP_OTPMK5_BITS.
  2264. //! @brief Get value of OCOTP_OTPMK5_BITS from a register value.
  2265. #define BG_OCOTP_OTPMK5_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_OTPMK5_BITS) >> BP_OCOTP_OTPMK5_BITS)
  2266. //! @brief Format value for bitfield OCOTP_OTPMK5_BITS.
  2267. #define BF_OCOTP_OTPMK5_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_OTPMK5_BITS) & BM_OCOTP_OTPMK5_BITS)
  2268. #ifndef __LANGUAGE_ASM__
  2269. //! @brief Set the BITS field to a new value.
  2270. #define BW_OCOTP_OTPMK5_BITS(v) (HW_OCOTP_OTPMK5_WR((HW_OCOTP_OTPMK5_RD() & ~BM_OCOTP_OTPMK5_BITS) | BF_OCOTP_OTPMK5_BITS(v)))
  2271. #endif
  2272. //-------------------------------------------------------------------------------------------
  2273. // HW_OCOTP_OTPMK6 - Shadow Register for OTP Bank2 Word6 (OTPMK Key)
  2274. //-------------------------------------------------------------------------------------------
  2275. #ifndef __LANGUAGE_ASM__
  2276. /*!
  2277. * @brief HW_OCOTP_OTPMK6 - Shadow Register for OTP Bank2 Word6 (OTPMK Key) (RW)
  2278. *
  2279. * Reset value: 0x00000000
  2280. *
  2281. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  2282. * HW_OCOTP_CTRL[RELOAD_SHADOWS]. Shadowed memory mapped access to OTP Bank 2, word 6 (ADDR =
  2283. * 0x16). EXAMPLE Empty Example.
  2284. */
  2285. typedef union _hw_ocotp_otpmk6
  2286. {
  2287. reg32_t U;
  2288. struct _hw_ocotp_otpmk6_bitfields
  2289. {
  2290. unsigned BITS : 32; //!< [31:0] Shadow register for the OTPMK Key word6 (Copy of OTP Bank 2, word 6 (ADDR = 0x16)).
  2291. } B;
  2292. } hw_ocotp_otpmk6_t;
  2293. #endif
  2294. /*
  2295. * constants & macros for entire OCOTP_OTPMK6 register
  2296. */
  2297. #define HW_OCOTP_OTPMK6_ADDR (REGS_OCOTP_BASE + 0x560)
  2298. #ifndef __LANGUAGE_ASM__
  2299. #define HW_OCOTP_OTPMK6 (*(volatile hw_ocotp_otpmk6_t *) HW_OCOTP_OTPMK6_ADDR)
  2300. #define HW_OCOTP_OTPMK6_RD() (HW_OCOTP_OTPMK6.U)
  2301. #define HW_OCOTP_OTPMK6_WR(v) (HW_OCOTP_OTPMK6.U = (v))
  2302. #define HW_OCOTP_OTPMK6_SET(v) (HW_OCOTP_OTPMK6_WR(HW_OCOTP_OTPMK6_RD() | (v)))
  2303. #define HW_OCOTP_OTPMK6_CLR(v) (HW_OCOTP_OTPMK6_WR(HW_OCOTP_OTPMK6_RD() & ~(v)))
  2304. #define HW_OCOTP_OTPMK6_TOG(v) (HW_OCOTP_OTPMK6_WR(HW_OCOTP_OTPMK6_RD() ^ (v)))
  2305. #endif
  2306. /*
  2307. * constants & macros for individual OCOTP_OTPMK6 bitfields
  2308. */
  2309. /* --- Register HW_OCOTP_OTPMK6, field BITS[31:0] (RW)
  2310. *
  2311. * Shadow register for the OTPMK Key word6 (Copy of OTP Bank 2, word 6 (ADDR = 0x16)). These bits
  2312. * can be not read and wrotten after the HW_OCOTP_LOCK_OTPMK bit is set. If read, returns
  2313. * 0xBADA_BADA and sets HW_OCOTP_CTRL[ERROR].
  2314. */
  2315. #define BP_OCOTP_OTPMK6_BITS (0) //!< Bit position for OCOTP_OTPMK6_BITS.
  2316. #define BM_OCOTP_OTPMK6_BITS (0xffffffff) //!< Bit mask for OCOTP_OTPMK6_BITS.
  2317. //! @brief Get value of OCOTP_OTPMK6_BITS from a register value.
  2318. #define BG_OCOTP_OTPMK6_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_OTPMK6_BITS) >> BP_OCOTP_OTPMK6_BITS)
  2319. //! @brief Format value for bitfield OCOTP_OTPMK6_BITS.
  2320. #define BF_OCOTP_OTPMK6_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_OTPMK6_BITS) & BM_OCOTP_OTPMK6_BITS)
  2321. #ifndef __LANGUAGE_ASM__
  2322. //! @brief Set the BITS field to a new value.
  2323. #define BW_OCOTP_OTPMK6_BITS(v) (HW_OCOTP_OTPMK6_WR((HW_OCOTP_OTPMK6_RD() & ~BM_OCOTP_OTPMK6_BITS) | BF_OCOTP_OTPMK6_BITS(v)))
  2324. #endif
  2325. //-------------------------------------------------------------------------------------------
  2326. // HW_OCOTP_OTPMK7 - Shadow Register for OTP Bank2 Word7 (OTPMK Key)
  2327. //-------------------------------------------------------------------------------------------
  2328. #ifndef __LANGUAGE_ASM__
  2329. /*!
  2330. * @brief HW_OCOTP_OTPMK7 - Shadow Register for OTP Bank2 Word7 (OTPMK Key) (RW)
  2331. *
  2332. * Reset value: 0x00000000
  2333. *
  2334. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  2335. * HW_OCOTP_CTRL[RELOAD_SHADOWS]. Shadowed memory mapped access to OTP Bank 2, word 7 (ADDR =
  2336. * 0x17). EXAMPLE Empty Example.
  2337. */
  2338. typedef union _hw_ocotp_otpmk7
  2339. {
  2340. reg32_t U;
  2341. struct _hw_ocotp_otpmk7_bitfields
  2342. {
  2343. unsigned BITS : 32; //!< [31:0] Shadow register for the OTPMK Key word7 (Copy of OTP Bank 2, word 7 (ADDR = 0x17)).
  2344. } B;
  2345. } hw_ocotp_otpmk7_t;
  2346. #endif
  2347. /*
  2348. * constants & macros for entire OCOTP_OTPMK7 register
  2349. */
  2350. #define HW_OCOTP_OTPMK7_ADDR (REGS_OCOTP_BASE + 0x570)
  2351. #ifndef __LANGUAGE_ASM__
  2352. #define HW_OCOTP_OTPMK7 (*(volatile hw_ocotp_otpmk7_t *) HW_OCOTP_OTPMK7_ADDR)
  2353. #define HW_OCOTP_OTPMK7_RD() (HW_OCOTP_OTPMK7.U)
  2354. #define HW_OCOTP_OTPMK7_WR(v) (HW_OCOTP_OTPMK7.U = (v))
  2355. #define HW_OCOTP_OTPMK7_SET(v) (HW_OCOTP_OTPMK7_WR(HW_OCOTP_OTPMK7_RD() | (v)))
  2356. #define HW_OCOTP_OTPMK7_CLR(v) (HW_OCOTP_OTPMK7_WR(HW_OCOTP_OTPMK7_RD() & ~(v)))
  2357. #define HW_OCOTP_OTPMK7_TOG(v) (HW_OCOTP_OTPMK7_WR(HW_OCOTP_OTPMK7_RD() ^ (v)))
  2358. #endif
  2359. /*
  2360. * constants & macros for individual OCOTP_OTPMK7 bitfields
  2361. */
  2362. /* --- Register HW_OCOTP_OTPMK7, field BITS[31:0] (RW)
  2363. *
  2364. * Shadow register for the OTPMK Key word7 (Copy of OTP Bank 2, word 7 (ADDR = 0x17)). These bits
  2365. * can be not read and wrotten after the HW_OCOTP_LOCK_OTPMK bit is set. If read, returns
  2366. * 0xBADA_BADA and sets HW_OCOTP_CTRL[ERROR].
  2367. */
  2368. #define BP_OCOTP_OTPMK7_BITS (0) //!< Bit position for OCOTP_OTPMK7_BITS.
  2369. #define BM_OCOTP_OTPMK7_BITS (0xffffffff) //!< Bit mask for OCOTP_OTPMK7_BITS.
  2370. //! @brief Get value of OCOTP_OTPMK7_BITS from a register value.
  2371. #define BG_OCOTP_OTPMK7_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_OTPMK7_BITS) >> BP_OCOTP_OTPMK7_BITS)
  2372. //! @brief Format value for bitfield OCOTP_OTPMK7_BITS.
  2373. #define BF_OCOTP_OTPMK7_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_OTPMK7_BITS) & BM_OCOTP_OTPMK7_BITS)
  2374. #ifndef __LANGUAGE_ASM__
  2375. //! @brief Set the BITS field to a new value.
  2376. #define BW_OCOTP_OTPMK7_BITS(v) (HW_OCOTP_OTPMK7_WR((HW_OCOTP_OTPMK7_RD() & ~BM_OCOTP_OTPMK7_BITS) | BF_OCOTP_OTPMK7_BITS(v)))
  2377. #endif
  2378. //-------------------------------------------------------------------------------------------
  2379. // HW_OCOTP_SRK0 - Shadow Register for OTP Bank3 Word0 (SRK Hash)
  2380. //-------------------------------------------------------------------------------------------
  2381. #ifndef __LANGUAGE_ASM__
  2382. /*!
  2383. * @brief HW_OCOTP_SRK0 - Shadow Register for OTP Bank3 Word0 (SRK Hash) (RW)
  2384. *
  2385. * Reset value: 0x00000000
  2386. *
  2387. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  2388. * HW_OCOTP_CTRL[RELOAD_SHADOWS]. Shadowed memory mapped access to OTP Bank 3, word 0 (ADDR =
  2389. * 0x18). EXAMPLE Empty Example.
  2390. */
  2391. typedef union _hw_ocotp_srk0
  2392. {
  2393. reg32_t U;
  2394. struct _hw_ocotp_srk0_bitfields
  2395. {
  2396. unsigned BITS : 32; //!< [31:0] Shadow register for the hash of the Super Root Key word0 (Copy of OTP Bank 3, word 0 (ADDR = 0x1C)).
  2397. } B;
  2398. } hw_ocotp_srk0_t;
  2399. #endif
  2400. /*
  2401. * constants & macros for entire OCOTP_SRK0 register
  2402. */
  2403. #define HW_OCOTP_SRK0_ADDR (REGS_OCOTP_BASE + 0x580)
  2404. #ifndef __LANGUAGE_ASM__
  2405. #define HW_OCOTP_SRK0 (*(volatile hw_ocotp_srk0_t *) HW_OCOTP_SRK0_ADDR)
  2406. #define HW_OCOTP_SRK0_RD() (HW_OCOTP_SRK0.U)
  2407. #define HW_OCOTP_SRK0_WR(v) (HW_OCOTP_SRK0.U = (v))
  2408. #define HW_OCOTP_SRK0_SET(v) (HW_OCOTP_SRK0_WR(HW_OCOTP_SRK0_RD() | (v)))
  2409. #define HW_OCOTP_SRK0_CLR(v) (HW_OCOTP_SRK0_WR(HW_OCOTP_SRK0_RD() & ~(v)))
  2410. #define HW_OCOTP_SRK0_TOG(v) (HW_OCOTP_SRK0_WR(HW_OCOTP_SRK0_RD() ^ (v)))
  2411. #endif
  2412. /*
  2413. * constants & macros for individual OCOTP_SRK0 bitfields
  2414. */
  2415. /* --- Register HW_OCOTP_SRK0, field BITS[31:0] (RW)
  2416. *
  2417. * Shadow register for the hash of the Super Root Key word0 (Copy of OTP Bank 3, word 0 (ADDR =
  2418. * 0x1C)). These bits become read-only after the HW_OCOTP_LOCK_SRK bit is set.
  2419. */
  2420. #define BP_OCOTP_SRK0_BITS (0) //!< Bit position for OCOTP_SRK0_BITS.
  2421. #define BM_OCOTP_SRK0_BITS (0xffffffff) //!< Bit mask for OCOTP_SRK0_BITS.
  2422. //! @brief Get value of OCOTP_SRK0_BITS from a register value.
  2423. #define BG_OCOTP_SRK0_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_SRK0_BITS) >> BP_OCOTP_SRK0_BITS)
  2424. //! @brief Format value for bitfield OCOTP_SRK0_BITS.
  2425. #define BF_OCOTP_SRK0_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_SRK0_BITS) & BM_OCOTP_SRK0_BITS)
  2426. #ifndef __LANGUAGE_ASM__
  2427. //! @brief Set the BITS field to a new value.
  2428. #define BW_OCOTP_SRK0_BITS(v) (HW_OCOTP_SRK0_WR((HW_OCOTP_SRK0_RD() & ~BM_OCOTP_SRK0_BITS) | BF_OCOTP_SRK0_BITS(v)))
  2429. #endif
  2430. //-------------------------------------------------------------------------------------------
  2431. // HW_OCOTP_SRK1 - Shadow Register for OTP Bank3 Word1 (SRK Hash)
  2432. //-------------------------------------------------------------------------------------------
  2433. #ifndef __LANGUAGE_ASM__
  2434. /*!
  2435. * @brief HW_OCOTP_SRK1 - Shadow Register for OTP Bank3 Word1 (SRK Hash) (RW)
  2436. *
  2437. * Reset value: 0x00000000
  2438. *
  2439. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  2440. * HW_OCOTP_CTRL[RELOAD_SHADOWS]. Shadowed memory mapped access to OTP Bank 3, word 1 (ADDR =
  2441. * 0x19). EXAMPLE Empty Example.
  2442. */
  2443. typedef union _hw_ocotp_srk1
  2444. {
  2445. reg32_t U;
  2446. struct _hw_ocotp_srk1_bitfields
  2447. {
  2448. unsigned BITS : 32; //!< [31:0] Shadow register for the hash of the Super Root Key word1 (Copy of OTP Bank 3, word 1 (ADDR = 0x1D)).
  2449. } B;
  2450. } hw_ocotp_srk1_t;
  2451. #endif
  2452. /*
  2453. * constants & macros for entire OCOTP_SRK1 register
  2454. */
  2455. #define HW_OCOTP_SRK1_ADDR (REGS_OCOTP_BASE + 0x590)
  2456. #ifndef __LANGUAGE_ASM__
  2457. #define HW_OCOTP_SRK1 (*(volatile hw_ocotp_srk1_t *) HW_OCOTP_SRK1_ADDR)
  2458. #define HW_OCOTP_SRK1_RD() (HW_OCOTP_SRK1.U)
  2459. #define HW_OCOTP_SRK1_WR(v) (HW_OCOTP_SRK1.U = (v))
  2460. #define HW_OCOTP_SRK1_SET(v) (HW_OCOTP_SRK1_WR(HW_OCOTP_SRK1_RD() | (v)))
  2461. #define HW_OCOTP_SRK1_CLR(v) (HW_OCOTP_SRK1_WR(HW_OCOTP_SRK1_RD() & ~(v)))
  2462. #define HW_OCOTP_SRK1_TOG(v) (HW_OCOTP_SRK1_WR(HW_OCOTP_SRK1_RD() ^ (v)))
  2463. #endif
  2464. /*
  2465. * constants & macros for individual OCOTP_SRK1 bitfields
  2466. */
  2467. /* --- Register HW_OCOTP_SRK1, field BITS[31:0] (RW)
  2468. *
  2469. * Shadow register for the hash of the Super Root Key word1 (Copy of OTP Bank 3, word 1 (ADDR =
  2470. * 0x1D)). These bits become read-only after the HW_OCOTP_LOCK_SRK bit is set.
  2471. */
  2472. #define BP_OCOTP_SRK1_BITS (0) //!< Bit position for OCOTP_SRK1_BITS.
  2473. #define BM_OCOTP_SRK1_BITS (0xffffffff) //!< Bit mask for OCOTP_SRK1_BITS.
  2474. //! @brief Get value of OCOTP_SRK1_BITS from a register value.
  2475. #define BG_OCOTP_SRK1_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_SRK1_BITS) >> BP_OCOTP_SRK1_BITS)
  2476. //! @brief Format value for bitfield OCOTP_SRK1_BITS.
  2477. #define BF_OCOTP_SRK1_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_SRK1_BITS) & BM_OCOTP_SRK1_BITS)
  2478. #ifndef __LANGUAGE_ASM__
  2479. //! @brief Set the BITS field to a new value.
  2480. #define BW_OCOTP_SRK1_BITS(v) (HW_OCOTP_SRK1_WR((HW_OCOTP_SRK1_RD() & ~BM_OCOTP_SRK1_BITS) | BF_OCOTP_SRK1_BITS(v)))
  2481. #endif
  2482. //-------------------------------------------------------------------------------------------
  2483. // HW_OCOTP_SRK2 - Shadow Register for OTP Bank3 Word2 (SRK Hash)
  2484. //-------------------------------------------------------------------------------------------
  2485. #ifndef __LANGUAGE_ASM__
  2486. /*!
  2487. * @brief HW_OCOTP_SRK2 - Shadow Register for OTP Bank3 Word2 (SRK Hash) (RW)
  2488. *
  2489. * Reset value: 0x00000000
  2490. *
  2491. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  2492. * HW_OCOTP_CTRL[RELOAD_SHADOWS]. Shadowed memory mapped access to OTP Bank 3, word 2 (ADDR =
  2493. * 0x1A). EXAMPLE Empty Example.
  2494. */
  2495. typedef union _hw_ocotp_srk2
  2496. {
  2497. reg32_t U;
  2498. struct _hw_ocotp_srk2_bitfields
  2499. {
  2500. unsigned BITS : 32; //!< [31:0] Shadow register for the hash of the Super Root Key word2 (Copy of OTP Bank 3, word 2 (ADDR = 0x1E)).
  2501. } B;
  2502. } hw_ocotp_srk2_t;
  2503. #endif
  2504. /*
  2505. * constants & macros for entire OCOTP_SRK2 register
  2506. */
  2507. #define HW_OCOTP_SRK2_ADDR (REGS_OCOTP_BASE + 0x5a0)
  2508. #ifndef __LANGUAGE_ASM__
  2509. #define HW_OCOTP_SRK2 (*(volatile hw_ocotp_srk2_t *) HW_OCOTP_SRK2_ADDR)
  2510. #define HW_OCOTP_SRK2_RD() (HW_OCOTP_SRK2.U)
  2511. #define HW_OCOTP_SRK2_WR(v) (HW_OCOTP_SRK2.U = (v))
  2512. #define HW_OCOTP_SRK2_SET(v) (HW_OCOTP_SRK2_WR(HW_OCOTP_SRK2_RD() | (v)))
  2513. #define HW_OCOTP_SRK2_CLR(v) (HW_OCOTP_SRK2_WR(HW_OCOTP_SRK2_RD() & ~(v)))
  2514. #define HW_OCOTP_SRK2_TOG(v) (HW_OCOTP_SRK2_WR(HW_OCOTP_SRK2_RD() ^ (v)))
  2515. #endif
  2516. /*
  2517. * constants & macros for individual OCOTP_SRK2 bitfields
  2518. */
  2519. /* --- Register HW_OCOTP_SRK2, field BITS[31:0] (RW)
  2520. *
  2521. * Shadow register for the hash of the Super Root Key word2 (Copy of OTP Bank 3, word 2 (ADDR =
  2522. * 0x1E)). These bits become read-only after the HW_OCOTP_LOCK_SRK bit is set.
  2523. */
  2524. #define BP_OCOTP_SRK2_BITS (0) //!< Bit position for OCOTP_SRK2_BITS.
  2525. #define BM_OCOTP_SRK2_BITS (0xffffffff) //!< Bit mask for OCOTP_SRK2_BITS.
  2526. //! @brief Get value of OCOTP_SRK2_BITS from a register value.
  2527. #define BG_OCOTP_SRK2_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_SRK2_BITS) >> BP_OCOTP_SRK2_BITS)
  2528. //! @brief Format value for bitfield OCOTP_SRK2_BITS.
  2529. #define BF_OCOTP_SRK2_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_SRK2_BITS) & BM_OCOTP_SRK2_BITS)
  2530. #ifndef __LANGUAGE_ASM__
  2531. //! @brief Set the BITS field to a new value.
  2532. #define BW_OCOTP_SRK2_BITS(v) (HW_OCOTP_SRK2_WR((HW_OCOTP_SRK2_RD() & ~BM_OCOTP_SRK2_BITS) | BF_OCOTP_SRK2_BITS(v)))
  2533. #endif
  2534. //-------------------------------------------------------------------------------------------
  2535. // HW_OCOTP_SRK3 - Shadow Register for OTP Bank3 Word3 (SRK Hash)
  2536. //-------------------------------------------------------------------------------------------
  2537. #ifndef __LANGUAGE_ASM__
  2538. /*!
  2539. * @brief HW_OCOTP_SRK3 - Shadow Register for OTP Bank3 Word3 (SRK Hash) (RW)
  2540. *
  2541. * Reset value: 0x00000000
  2542. *
  2543. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  2544. * HW_OCOTP_CTRL[RELOAD_SHADOWS]. Shadowed memory mapped access to OTP Bank 3, word 3 (ADDR =
  2545. * 0x1B). EXAMPLE Empty Example.
  2546. */
  2547. typedef union _hw_ocotp_srk3
  2548. {
  2549. reg32_t U;
  2550. struct _hw_ocotp_srk3_bitfields
  2551. {
  2552. unsigned BITS : 32; //!< [31:0] Shadow register for the hash of the Super Root Key word3 (Copy of OTP Bank 3, word 3 (ADDR = 0x1F)).
  2553. } B;
  2554. } hw_ocotp_srk3_t;
  2555. #endif
  2556. /*
  2557. * constants & macros for entire OCOTP_SRK3 register
  2558. */
  2559. #define HW_OCOTP_SRK3_ADDR (REGS_OCOTP_BASE + 0x5b0)
  2560. #ifndef __LANGUAGE_ASM__
  2561. #define HW_OCOTP_SRK3 (*(volatile hw_ocotp_srk3_t *) HW_OCOTP_SRK3_ADDR)
  2562. #define HW_OCOTP_SRK3_RD() (HW_OCOTP_SRK3.U)
  2563. #define HW_OCOTP_SRK3_WR(v) (HW_OCOTP_SRK3.U = (v))
  2564. #define HW_OCOTP_SRK3_SET(v) (HW_OCOTP_SRK3_WR(HW_OCOTP_SRK3_RD() | (v)))
  2565. #define HW_OCOTP_SRK3_CLR(v) (HW_OCOTP_SRK3_WR(HW_OCOTP_SRK3_RD() & ~(v)))
  2566. #define HW_OCOTP_SRK3_TOG(v) (HW_OCOTP_SRK3_WR(HW_OCOTP_SRK3_RD() ^ (v)))
  2567. #endif
  2568. /*
  2569. * constants & macros for individual OCOTP_SRK3 bitfields
  2570. */
  2571. /* --- Register HW_OCOTP_SRK3, field BITS[31:0] (RW)
  2572. *
  2573. * Shadow register for the hash of the Super Root Key word3 (Copy of OTP Bank 3, word 3 (ADDR =
  2574. * 0x1F)). These bits become read-only after the HW_OCOTP_LOCK_SRK bit is set.
  2575. */
  2576. #define BP_OCOTP_SRK3_BITS (0) //!< Bit position for OCOTP_SRK3_BITS.
  2577. #define BM_OCOTP_SRK3_BITS (0xffffffff) //!< Bit mask for OCOTP_SRK3_BITS.
  2578. //! @brief Get value of OCOTP_SRK3_BITS from a register value.
  2579. #define BG_OCOTP_SRK3_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_SRK3_BITS) >> BP_OCOTP_SRK3_BITS)
  2580. //! @brief Format value for bitfield OCOTP_SRK3_BITS.
  2581. #define BF_OCOTP_SRK3_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_SRK3_BITS) & BM_OCOTP_SRK3_BITS)
  2582. #ifndef __LANGUAGE_ASM__
  2583. //! @brief Set the BITS field to a new value.
  2584. #define BW_OCOTP_SRK3_BITS(v) (HW_OCOTP_SRK3_WR((HW_OCOTP_SRK3_RD() & ~BM_OCOTP_SRK3_BITS) | BF_OCOTP_SRK3_BITS(v)))
  2585. #endif
  2586. //-------------------------------------------------------------------------------------------
  2587. // HW_OCOTP_SRK4 - Shadow Register for OTP Bank3 Word4 (SRK Hash)
  2588. //-------------------------------------------------------------------------------------------
  2589. #ifndef __LANGUAGE_ASM__
  2590. /*!
  2591. * @brief HW_OCOTP_SRK4 - Shadow Register for OTP Bank3 Word4 (SRK Hash) (RW)
  2592. *
  2593. * Reset value: 0x00000000
  2594. *
  2595. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  2596. * HW_OCOTP_CTRL[RELOAD_SHADOWS]. Shadowed memory mapped access to OTP Bank 3, word 4 (ADDR =
  2597. * 0x1C). EXAMPLE Empty Example.
  2598. */
  2599. typedef union _hw_ocotp_srk4
  2600. {
  2601. reg32_t U;
  2602. struct _hw_ocotp_srk4_bitfields
  2603. {
  2604. unsigned BITS : 32; //!< [31:0] Shadow register for the hash of the Super Root Key word4 (Copy of OTP Bank 3, word 4 (ADDR = 0x20)).
  2605. } B;
  2606. } hw_ocotp_srk4_t;
  2607. #endif
  2608. /*
  2609. * constants & macros for entire OCOTP_SRK4 register
  2610. */
  2611. #define HW_OCOTP_SRK4_ADDR (REGS_OCOTP_BASE + 0x5c0)
  2612. #ifndef __LANGUAGE_ASM__
  2613. #define HW_OCOTP_SRK4 (*(volatile hw_ocotp_srk4_t *) HW_OCOTP_SRK4_ADDR)
  2614. #define HW_OCOTP_SRK4_RD() (HW_OCOTP_SRK4.U)
  2615. #define HW_OCOTP_SRK4_WR(v) (HW_OCOTP_SRK4.U = (v))
  2616. #define HW_OCOTP_SRK4_SET(v) (HW_OCOTP_SRK4_WR(HW_OCOTP_SRK4_RD() | (v)))
  2617. #define HW_OCOTP_SRK4_CLR(v) (HW_OCOTP_SRK4_WR(HW_OCOTP_SRK4_RD() & ~(v)))
  2618. #define HW_OCOTP_SRK4_TOG(v) (HW_OCOTP_SRK4_WR(HW_OCOTP_SRK4_RD() ^ (v)))
  2619. #endif
  2620. /*
  2621. * constants & macros for individual OCOTP_SRK4 bitfields
  2622. */
  2623. /* --- Register HW_OCOTP_SRK4, field BITS[31:0] (RW)
  2624. *
  2625. * Shadow register for the hash of the Super Root Key word4 (Copy of OTP Bank 3, word 4 (ADDR =
  2626. * 0x20)). These bits become read-only after the HW_OCOTP_LOCK_SRK bit is set.
  2627. */
  2628. #define BP_OCOTP_SRK4_BITS (0) //!< Bit position for OCOTP_SRK4_BITS.
  2629. #define BM_OCOTP_SRK4_BITS (0xffffffff) //!< Bit mask for OCOTP_SRK4_BITS.
  2630. //! @brief Get value of OCOTP_SRK4_BITS from a register value.
  2631. #define BG_OCOTP_SRK4_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_SRK4_BITS) >> BP_OCOTP_SRK4_BITS)
  2632. //! @brief Format value for bitfield OCOTP_SRK4_BITS.
  2633. #define BF_OCOTP_SRK4_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_SRK4_BITS) & BM_OCOTP_SRK4_BITS)
  2634. #ifndef __LANGUAGE_ASM__
  2635. //! @brief Set the BITS field to a new value.
  2636. #define BW_OCOTP_SRK4_BITS(v) (HW_OCOTP_SRK4_WR((HW_OCOTP_SRK4_RD() & ~BM_OCOTP_SRK4_BITS) | BF_OCOTP_SRK4_BITS(v)))
  2637. #endif
  2638. //-------------------------------------------------------------------------------------------
  2639. // HW_OCOTP_SRK5 - Shadow Register for OTP Bank3 Word5 (SRK Hash)
  2640. //-------------------------------------------------------------------------------------------
  2641. #ifndef __LANGUAGE_ASM__
  2642. /*!
  2643. * @brief HW_OCOTP_SRK5 - Shadow Register for OTP Bank3 Word5 (SRK Hash) (RW)
  2644. *
  2645. * Reset value: 0x00000000
  2646. *
  2647. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  2648. * HW_OCOTP_CTRL[RELOAD_SHADOWS]. Shadowed memory mapped access to OTP Bank 3, word 5 (ADDR =
  2649. * 0x1D). EXAMPLE Empty Example.
  2650. */
  2651. typedef union _hw_ocotp_srk5
  2652. {
  2653. reg32_t U;
  2654. struct _hw_ocotp_srk5_bitfields
  2655. {
  2656. unsigned BITS : 32; //!< [31:0] Shadow register for the hash of the Super Root Key word5 (Copy of OTP Bank 3, word 5 (ADDR = 0x21)).
  2657. } B;
  2658. } hw_ocotp_srk5_t;
  2659. #endif
  2660. /*
  2661. * constants & macros for entire OCOTP_SRK5 register
  2662. */
  2663. #define HW_OCOTP_SRK5_ADDR (REGS_OCOTP_BASE + 0x5d0)
  2664. #ifndef __LANGUAGE_ASM__
  2665. #define HW_OCOTP_SRK5 (*(volatile hw_ocotp_srk5_t *) HW_OCOTP_SRK5_ADDR)
  2666. #define HW_OCOTP_SRK5_RD() (HW_OCOTP_SRK5.U)
  2667. #define HW_OCOTP_SRK5_WR(v) (HW_OCOTP_SRK5.U = (v))
  2668. #define HW_OCOTP_SRK5_SET(v) (HW_OCOTP_SRK5_WR(HW_OCOTP_SRK5_RD() | (v)))
  2669. #define HW_OCOTP_SRK5_CLR(v) (HW_OCOTP_SRK5_WR(HW_OCOTP_SRK5_RD() & ~(v)))
  2670. #define HW_OCOTP_SRK5_TOG(v) (HW_OCOTP_SRK5_WR(HW_OCOTP_SRK5_RD() ^ (v)))
  2671. #endif
  2672. /*
  2673. * constants & macros for individual OCOTP_SRK5 bitfields
  2674. */
  2675. /* --- Register HW_OCOTP_SRK5, field BITS[31:0] (RW)
  2676. *
  2677. * Shadow register for the hash of the Super Root Key word5 (Copy of OTP Bank 3, word 5 (ADDR =
  2678. * 0x21)). These bits become read-only after the HW_OCOTP_LOCK_SRK bit is set.
  2679. */
  2680. #define BP_OCOTP_SRK5_BITS (0) //!< Bit position for OCOTP_SRK5_BITS.
  2681. #define BM_OCOTP_SRK5_BITS (0xffffffff) //!< Bit mask for OCOTP_SRK5_BITS.
  2682. //! @brief Get value of OCOTP_SRK5_BITS from a register value.
  2683. #define BG_OCOTP_SRK5_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_SRK5_BITS) >> BP_OCOTP_SRK5_BITS)
  2684. //! @brief Format value for bitfield OCOTP_SRK5_BITS.
  2685. #define BF_OCOTP_SRK5_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_SRK5_BITS) & BM_OCOTP_SRK5_BITS)
  2686. #ifndef __LANGUAGE_ASM__
  2687. //! @brief Set the BITS field to a new value.
  2688. #define BW_OCOTP_SRK5_BITS(v) (HW_OCOTP_SRK5_WR((HW_OCOTP_SRK5_RD() & ~BM_OCOTP_SRK5_BITS) | BF_OCOTP_SRK5_BITS(v)))
  2689. #endif
  2690. //-------------------------------------------------------------------------------------------
  2691. // HW_OCOTP_SRK6 - Shadow Register for OTP Bank3 Word6 (SRK Hash)
  2692. //-------------------------------------------------------------------------------------------
  2693. #ifndef __LANGUAGE_ASM__
  2694. /*!
  2695. * @brief HW_OCOTP_SRK6 - Shadow Register for OTP Bank3 Word6 (SRK Hash) (RW)
  2696. *
  2697. * Reset value: 0x00000000
  2698. *
  2699. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  2700. * HW_OCOTP_CTRL[RELOAD_SHADOWS]. Shadowed memory mapped access to OTP Bank 3, word 6 (ADDR =
  2701. * 0x1E). EXAMPLE Empty Example.
  2702. */
  2703. typedef union _hw_ocotp_srk6
  2704. {
  2705. reg32_t U;
  2706. struct _hw_ocotp_srk6_bitfields
  2707. {
  2708. unsigned BITS : 32; //!< [31:0] Shadow register for the hash of the Super Root Key word6 (Copy of OTP Bank 3, word 6 (ADDR = 0x22)).
  2709. } B;
  2710. } hw_ocotp_srk6_t;
  2711. #endif
  2712. /*
  2713. * constants & macros for entire OCOTP_SRK6 register
  2714. */
  2715. #define HW_OCOTP_SRK6_ADDR (REGS_OCOTP_BASE + 0x5e0)
  2716. #ifndef __LANGUAGE_ASM__
  2717. #define HW_OCOTP_SRK6 (*(volatile hw_ocotp_srk6_t *) HW_OCOTP_SRK6_ADDR)
  2718. #define HW_OCOTP_SRK6_RD() (HW_OCOTP_SRK6.U)
  2719. #define HW_OCOTP_SRK6_WR(v) (HW_OCOTP_SRK6.U = (v))
  2720. #define HW_OCOTP_SRK6_SET(v) (HW_OCOTP_SRK6_WR(HW_OCOTP_SRK6_RD() | (v)))
  2721. #define HW_OCOTP_SRK6_CLR(v) (HW_OCOTP_SRK6_WR(HW_OCOTP_SRK6_RD() & ~(v)))
  2722. #define HW_OCOTP_SRK6_TOG(v) (HW_OCOTP_SRK6_WR(HW_OCOTP_SRK6_RD() ^ (v)))
  2723. #endif
  2724. /*
  2725. * constants & macros for individual OCOTP_SRK6 bitfields
  2726. */
  2727. /* --- Register HW_OCOTP_SRK6, field BITS[31:0] (RW)
  2728. *
  2729. * Shadow register for the hash of the Super Root Key word6 (Copy of OTP Bank 3, word 6 (ADDR =
  2730. * 0x22)). These bits become read-only after the HW_OCOTP_LOCK_SRK bit is set.
  2731. */
  2732. #define BP_OCOTP_SRK6_BITS (0) //!< Bit position for OCOTP_SRK6_BITS.
  2733. #define BM_OCOTP_SRK6_BITS (0xffffffff) //!< Bit mask for OCOTP_SRK6_BITS.
  2734. //! @brief Get value of OCOTP_SRK6_BITS from a register value.
  2735. #define BG_OCOTP_SRK6_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_SRK6_BITS) >> BP_OCOTP_SRK6_BITS)
  2736. //! @brief Format value for bitfield OCOTP_SRK6_BITS.
  2737. #define BF_OCOTP_SRK6_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_SRK6_BITS) & BM_OCOTP_SRK6_BITS)
  2738. #ifndef __LANGUAGE_ASM__
  2739. //! @brief Set the BITS field to a new value.
  2740. #define BW_OCOTP_SRK6_BITS(v) (HW_OCOTP_SRK6_WR((HW_OCOTP_SRK6_RD() & ~BM_OCOTP_SRK6_BITS) | BF_OCOTP_SRK6_BITS(v)))
  2741. #endif
  2742. //-------------------------------------------------------------------------------------------
  2743. // HW_OCOTP_SRK7 - Shadow Register for OTP Bank3 Word7 (SRK Hash)
  2744. //-------------------------------------------------------------------------------------------
  2745. #ifndef __LANGUAGE_ASM__
  2746. /*!
  2747. * @brief HW_OCOTP_SRK7 - Shadow Register for OTP Bank3 Word7 (SRK Hash) (RW)
  2748. *
  2749. * Reset value: 0x00000000
  2750. *
  2751. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  2752. * HW_OCOTP_CTRL[RELOAD_SHADOWS]. Shadowed memory mapped access to OTP Bank 3, word 7 (ADDR =
  2753. * 0x1F). EXAMPLE Empty Example.
  2754. */
  2755. typedef union _hw_ocotp_srk7
  2756. {
  2757. reg32_t U;
  2758. struct _hw_ocotp_srk7_bitfields
  2759. {
  2760. unsigned BITS : 32; //!< [31:0] Shadow register for the hash of the Super Root Key word7 (Copy of OTP Bank 3, word 7 (ADDR = 0x23)).
  2761. } B;
  2762. } hw_ocotp_srk7_t;
  2763. #endif
  2764. /*
  2765. * constants & macros for entire OCOTP_SRK7 register
  2766. */
  2767. #define HW_OCOTP_SRK7_ADDR (REGS_OCOTP_BASE + 0x5f0)
  2768. #ifndef __LANGUAGE_ASM__
  2769. #define HW_OCOTP_SRK7 (*(volatile hw_ocotp_srk7_t *) HW_OCOTP_SRK7_ADDR)
  2770. #define HW_OCOTP_SRK7_RD() (HW_OCOTP_SRK7.U)
  2771. #define HW_OCOTP_SRK7_WR(v) (HW_OCOTP_SRK7.U = (v))
  2772. #define HW_OCOTP_SRK7_SET(v) (HW_OCOTP_SRK7_WR(HW_OCOTP_SRK7_RD() | (v)))
  2773. #define HW_OCOTP_SRK7_CLR(v) (HW_OCOTP_SRK7_WR(HW_OCOTP_SRK7_RD() & ~(v)))
  2774. #define HW_OCOTP_SRK7_TOG(v) (HW_OCOTP_SRK7_WR(HW_OCOTP_SRK7_RD() ^ (v)))
  2775. #endif
  2776. /*
  2777. * constants & macros for individual OCOTP_SRK7 bitfields
  2778. */
  2779. /* --- Register HW_OCOTP_SRK7, field BITS[31:0] (RW)
  2780. *
  2781. * Shadow register for the hash of the Super Root Key word7 (Copy of OTP Bank 3, word 7 (ADDR =
  2782. * 0x23)). These bits become read-only after the HW_OCOTP_LOCK_SRK bit is set.
  2783. */
  2784. #define BP_OCOTP_SRK7_BITS (0) //!< Bit position for OCOTP_SRK7_BITS.
  2785. #define BM_OCOTP_SRK7_BITS (0xffffffff) //!< Bit mask for OCOTP_SRK7_BITS.
  2786. //! @brief Get value of OCOTP_SRK7_BITS from a register value.
  2787. #define BG_OCOTP_SRK7_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_SRK7_BITS) >> BP_OCOTP_SRK7_BITS)
  2788. //! @brief Format value for bitfield OCOTP_SRK7_BITS.
  2789. #define BF_OCOTP_SRK7_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_SRK7_BITS) & BM_OCOTP_SRK7_BITS)
  2790. #ifndef __LANGUAGE_ASM__
  2791. //! @brief Set the BITS field to a new value.
  2792. #define BW_OCOTP_SRK7_BITS(v) (HW_OCOTP_SRK7_WR((HW_OCOTP_SRK7_RD() & ~BM_OCOTP_SRK7_BITS) | BF_OCOTP_SRK7_BITS(v)))
  2793. #endif
  2794. //-------------------------------------------------------------------------------------------
  2795. // HW_OCOTP_RESP0 - Value of OTP Bank4 Word0 (Secure JTAG Response Field)
  2796. //-------------------------------------------------------------------------------------------
  2797. #ifndef __LANGUAGE_ASM__
  2798. /*!
  2799. * @brief HW_OCOTP_RESP0 - Value of OTP Bank4 Word0 (Secure JTAG Response Field) (RW)
  2800. *
  2801. * Reset value: 0x00000000
  2802. *
  2803. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  2804. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 4, word 0 (ADDR = 0x20).
  2805. * EXAMPLE Empty Example.
  2806. */
  2807. typedef union _hw_ocotp_resp0
  2808. {
  2809. reg32_t U;
  2810. struct _hw_ocotp_resp0_bitfields
  2811. {
  2812. unsigned BITS : 32; //!< [31:0] Shadow register for the SJC_RESP Key word0 (Copy of OTP Bank 4, word 0 (ADDR = 0x20)).
  2813. } B;
  2814. } hw_ocotp_resp0_t;
  2815. #endif
  2816. /*
  2817. * constants & macros for entire OCOTP_RESP0 register
  2818. */
  2819. #define HW_OCOTP_RESP0_ADDR (REGS_OCOTP_BASE + 0x600)
  2820. #ifndef __LANGUAGE_ASM__
  2821. #define HW_OCOTP_RESP0 (*(volatile hw_ocotp_resp0_t *) HW_OCOTP_RESP0_ADDR)
  2822. #define HW_OCOTP_RESP0_RD() (HW_OCOTP_RESP0.U)
  2823. #define HW_OCOTP_RESP0_WR(v) (HW_OCOTP_RESP0.U = (v))
  2824. #define HW_OCOTP_RESP0_SET(v) (HW_OCOTP_RESP0_WR(HW_OCOTP_RESP0_RD() | (v)))
  2825. #define HW_OCOTP_RESP0_CLR(v) (HW_OCOTP_RESP0_WR(HW_OCOTP_RESP0_RD() & ~(v)))
  2826. #define HW_OCOTP_RESP0_TOG(v) (HW_OCOTP_RESP0_WR(HW_OCOTP_RESP0_RD() ^ (v)))
  2827. #endif
  2828. /*
  2829. * constants & macros for individual OCOTP_RESP0 bitfields
  2830. */
  2831. /* --- Register HW_OCOTP_RESP0, field BITS[31:0] (RW)
  2832. *
  2833. * Shadow register for the SJC_RESP Key word0 (Copy of OTP Bank 4, word 0 (ADDR = 0x20)). These bits
  2834. * can be not read and wrotten after the HW_OCOTP_LOCK_SJC_RESP bit is set. If read, returns
  2835. * 0xBADA_BADA and sets HW_OCOTP_CTRL[ERROR].
  2836. */
  2837. #define BP_OCOTP_RESP0_BITS (0) //!< Bit position for OCOTP_RESP0_BITS.
  2838. #define BM_OCOTP_RESP0_BITS (0xffffffff) //!< Bit mask for OCOTP_RESP0_BITS.
  2839. //! @brief Get value of OCOTP_RESP0_BITS from a register value.
  2840. #define BG_OCOTP_RESP0_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_RESP0_BITS) >> BP_OCOTP_RESP0_BITS)
  2841. //! @brief Format value for bitfield OCOTP_RESP0_BITS.
  2842. #define BF_OCOTP_RESP0_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_RESP0_BITS) & BM_OCOTP_RESP0_BITS)
  2843. #ifndef __LANGUAGE_ASM__
  2844. //! @brief Set the BITS field to a new value.
  2845. #define BW_OCOTP_RESP0_BITS(v) (HW_OCOTP_RESP0_WR((HW_OCOTP_RESP0_RD() & ~BM_OCOTP_RESP0_BITS) | BF_OCOTP_RESP0_BITS(v)))
  2846. #endif
  2847. //-------------------------------------------------------------------------------------------
  2848. // HW_OCOTP_HSJC_RESP1 - Value of OTP Bank4 Word1 (Secure JTAG Response Field)
  2849. //-------------------------------------------------------------------------------------------
  2850. #ifndef __LANGUAGE_ASM__
  2851. /*!
  2852. * @brief HW_OCOTP_HSJC_RESP1 - Value of OTP Bank4 Word1 (Secure JTAG Response Field) (RW)
  2853. *
  2854. * Reset value: 0x00000000
  2855. *
  2856. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  2857. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 4, word 1 (ADDR = 0x21).
  2858. * EXAMPLE Empty Example.
  2859. */
  2860. typedef union _hw_ocotp_hsjc_resp1
  2861. {
  2862. reg32_t U;
  2863. struct _hw_ocotp_hsjc_resp1_bitfields
  2864. {
  2865. unsigned BITS : 32; //!< [31:0] Shadow register for the SJC_RESP Key word1 (Copy of OTP Bank 4, word 1 (ADDR = 0x21)).
  2866. } B;
  2867. } hw_ocotp_hsjc_resp1_t;
  2868. #endif
  2869. /*
  2870. * constants & macros for entire OCOTP_HSJC_RESP1 register
  2871. */
  2872. #define HW_OCOTP_HSJC_RESP1_ADDR (REGS_OCOTP_BASE + 0x610)
  2873. #ifndef __LANGUAGE_ASM__
  2874. #define HW_OCOTP_HSJC_RESP1 (*(volatile hw_ocotp_hsjc_resp1_t *) HW_OCOTP_HSJC_RESP1_ADDR)
  2875. #define HW_OCOTP_HSJC_RESP1_RD() (HW_OCOTP_HSJC_RESP1.U)
  2876. #define HW_OCOTP_HSJC_RESP1_WR(v) (HW_OCOTP_HSJC_RESP1.U = (v))
  2877. #define HW_OCOTP_HSJC_RESP1_SET(v) (HW_OCOTP_HSJC_RESP1_WR(HW_OCOTP_HSJC_RESP1_RD() | (v)))
  2878. #define HW_OCOTP_HSJC_RESP1_CLR(v) (HW_OCOTP_HSJC_RESP1_WR(HW_OCOTP_HSJC_RESP1_RD() & ~(v)))
  2879. #define HW_OCOTP_HSJC_RESP1_TOG(v) (HW_OCOTP_HSJC_RESP1_WR(HW_OCOTP_HSJC_RESP1_RD() ^ (v)))
  2880. #endif
  2881. /*
  2882. * constants & macros for individual OCOTP_HSJC_RESP1 bitfields
  2883. */
  2884. /* --- Register HW_OCOTP_HSJC_RESP1, field BITS[31:0] (RW)
  2885. *
  2886. * Shadow register for the SJC_RESP Key word1 (Copy of OTP Bank 4, word 1 (ADDR = 0x21)). These bits
  2887. * can be not read and wrotten after the HW_OCOTP_LOCK_SJC_RESP bit is set. If read, returns
  2888. * 0xBADA_BADA and sets HW_OCOTP_CTRL[ERROR].
  2889. */
  2890. #define BP_OCOTP_HSJC_RESP1_BITS (0) //!< Bit position for OCOTP_HSJC_RESP1_BITS.
  2891. #define BM_OCOTP_HSJC_RESP1_BITS (0xffffffff) //!< Bit mask for OCOTP_HSJC_RESP1_BITS.
  2892. //! @brief Get value of OCOTP_HSJC_RESP1_BITS from a register value.
  2893. #define BG_OCOTP_HSJC_RESP1_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HSJC_RESP1_BITS) >> BP_OCOTP_HSJC_RESP1_BITS)
  2894. //! @brief Format value for bitfield OCOTP_HSJC_RESP1_BITS.
  2895. #define BF_OCOTP_HSJC_RESP1_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HSJC_RESP1_BITS) & BM_OCOTP_HSJC_RESP1_BITS)
  2896. #ifndef __LANGUAGE_ASM__
  2897. //! @brief Set the BITS field to a new value.
  2898. #define BW_OCOTP_HSJC_RESP1_BITS(v) (HW_OCOTP_HSJC_RESP1_WR((HW_OCOTP_HSJC_RESP1_RD() & ~BM_OCOTP_HSJC_RESP1_BITS) | BF_OCOTP_HSJC_RESP1_BITS(v)))
  2899. #endif
  2900. //-------------------------------------------------------------------------------------------
  2901. // HW_OCOTP_MAC0 - Value of OTP Bank4 Word2 (MAC Address)
  2902. //-------------------------------------------------------------------------------------------
  2903. #ifndef __LANGUAGE_ASM__
  2904. /*!
  2905. * @brief HW_OCOTP_MAC0 - Value of OTP Bank4 Word2 (MAC Address) (RW)
  2906. *
  2907. * Reset value: 0x00000000
  2908. *
  2909. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  2910. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 4, word 2 (ADDR = 0x22).
  2911. * EXAMPLE Empty Example.
  2912. */
  2913. typedef union _hw_ocotp_mac0
  2914. {
  2915. reg32_t U;
  2916. struct _hw_ocotp_mac0_bitfields
  2917. {
  2918. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 4, word 2 (ADDR = 0x22).
  2919. } B;
  2920. } hw_ocotp_mac0_t;
  2921. #endif
  2922. /*
  2923. * constants & macros for entire OCOTP_MAC0 register
  2924. */
  2925. #define HW_OCOTP_MAC0_ADDR (REGS_OCOTP_BASE + 0x620)
  2926. #ifndef __LANGUAGE_ASM__
  2927. #define HW_OCOTP_MAC0 (*(volatile hw_ocotp_mac0_t *) HW_OCOTP_MAC0_ADDR)
  2928. #define HW_OCOTP_MAC0_RD() (HW_OCOTP_MAC0.U)
  2929. #define HW_OCOTP_MAC0_WR(v) (HW_OCOTP_MAC0.U = (v))
  2930. #define HW_OCOTP_MAC0_SET(v) (HW_OCOTP_MAC0_WR(HW_OCOTP_MAC0_RD() | (v)))
  2931. #define HW_OCOTP_MAC0_CLR(v) (HW_OCOTP_MAC0_WR(HW_OCOTP_MAC0_RD() & ~(v)))
  2932. #define HW_OCOTP_MAC0_TOG(v) (HW_OCOTP_MAC0_WR(HW_OCOTP_MAC0_RD() ^ (v)))
  2933. #endif
  2934. /*
  2935. * constants & macros for individual OCOTP_MAC0 bitfields
  2936. */
  2937. /* --- Register HW_OCOTP_MAC0, field BITS[31:0] (RW)
  2938. *
  2939. * Reflects value of OTP Bank 4, word 2 (ADDR = 0x22).
  2940. */
  2941. #define BP_OCOTP_MAC0_BITS (0) //!< Bit position for OCOTP_MAC0_BITS.
  2942. #define BM_OCOTP_MAC0_BITS (0xffffffff) //!< Bit mask for OCOTP_MAC0_BITS.
  2943. //! @brief Get value of OCOTP_MAC0_BITS from a register value.
  2944. #define BG_OCOTP_MAC0_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_MAC0_BITS) >> BP_OCOTP_MAC0_BITS)
  2945. //! @brief Format value for bitfield OCOTP_MAC0_BITS.
  2946. #define BF_OCOTP_MAC0_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_MAC0_BITS) & BM_OCOTP_MAC0_BITS)
  2947. #ifndef __LANGUAGE_ASM__
  2948. //! @brief Set the BITS field to a new value.
  2949. #define BW_OCOTP_MAC0_BITS(v) (HW_OCOTP_MAC0_WR((HW_OCOTP_MAC0_RD() & ~BM_OCOTP_MAC0_BITS) | BF_OCOTP_MAC0_BITS(v)))
  2950. #endif
  2951. //-------------------------------------------------------------------------------------------
  2952. // HW_OCOTP_MAC1 - Value of OTP Bank4 Word3 (MAC Address)
  2953. //-------------------------------------------------------------------------------------------
  2954. #ifndef __LANGUAGE_ASM__
  2955. /*!
  2956. * @brief HW_OCOTP_MAC1 - Value of OTP Bank4 Word3 (MAC Address) (RW)
  2957. *
  2958. * Reset value: 0x00000000
  2959. *
  2960. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  2961. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 4, word 3 (ADDR = 0x23).
  2962. * EXAMPLE Empty Example.
  2963. */
  2964. typedef union _hw_ocotp_mac1
  2965. {
  2966. reg32_t U;
  2967. struct _hw_ocotp_mac1_bitfields
  2968. {
  2969. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 4, word 3 (ADDR = 0x23).
  2970. } B;
  2971. } hw_ocotp_mac1_t;
  2972. #endif
  2973. /*
  2974. * constants & macros for entire OCOTP_MAC1 register
  2975. */
  2976. #define HW_OCOTP_MAC1_ADDR (REGS_OCOTP_BASE + 0x630)
  2977. #ifndef __LANGUAGE_ASM__
  2978. #define HW_OCOTP_MAC1 (*(volatile hw_ocotp_mac1_t *) HW_OCOTP_MAC1_ADDR)
  2979. #define HW_OCOTP_MAC1_RD() (HW_OCOTP_MAC1.U)
  2980. #define HW_OCOTP_MAC1_WR(v) (HW_OCOTP_MAC1.U = (v))
  2981. #define HW_OCOTP_MAC1_SET(v) (HW_OCOTP_MAC1_WR(HW_OCOTP_MAC1_RD() | (v)))
  2982. #define HW_OCOTP_MAC1_CLR(v) (HW_OCOTP_MAC1_WR(HW_OCOTP_MAC1_RD() & ~(v)))
  2983. #define HW_OCOTP_MAC1_TOG(v) (HW_OCOTP_MAC1_WR(HW_OCOTP_MAC1_RD() ^ (v)))
  2984. #endif
  2985. /*
  2986. * constants & macros for individual OCOTP_MAC1 bitfields
  2987. */
  2988. /* --- Register HW_OCOTP_MAC1, field BITS[31:0] (RW)
  2989. *
  2990. * Reflects value of OTP Bank 4, word 3 (ADDR = 0x23).
  2991. */
  2992. #define BP_OCOTP_MAC1_BITS (0) //!< Bit position for OCOTP_MAC1_BITS.
  2993. #define BM_OCOTP_MAC1_BITS (0xffffffff) //!< Bit mask for OCOTP_MAC1_BITS.
  2994. //! @brief Get value of OCOTP_MAC1_BITS from a register value.
  2995. #define BG_OCOTP_MAC1_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_MAC1_BITS) >> BP_OCOTP_MAC1_BITS)
  2996. //! @brief Format value for bitfield OCOTP_MAC1_BITS.
  2997. #define BF_OCOTP_MAC1_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_MAC1_BITS) & BM_OCOTP_MAC1_BITS)
  2998. #ifndef __LANGUAGE_ASM__
  2999. //! @brief Set the BITS field to a new value.
  3000. #define BW_OCOTP_MAC1_BITS(v) (HW_OCOTP_MAC1_WR((HW_OCOTP_MAC1_RD() & ~BM_OCOTP_MAC1_BITS) | BF_OCOTP_MAC1_BITS(v)))
  3001. #endif
  3002. //-------------------------------------------------------------------------------------------
  3003. // HW_OCOTP_HDCP_KSV0 - Value of OTP Bank4 Word4 (HW Capabilities)
  3004. //-------------------------------------------------------------------------------------------
  3005. #ifndef __LANGUAGE_ASM__
  3006. /*!
  3007. * @brief HW_OCOTP_HDCP_KSV0 - Value of OTP Bank4 Word4 (HW Capabilities) (RW)
  3008. *
  3009. * Reset value: 0x00000000
  3010. *
  3011. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  3012. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 4, word 4 (ADDR = 0x24).
  3013. * EXAMPLE Empty Example.
  3014. */
  3015. typedef union _hw_ocotp_hdcp_ksv0
  3016. {
  3017. reg32_t U;
  3018. struct _hw_ocotp_hdcp_ksv0_bitfields
  3019. {
  3020. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 4, word 4 (ADDR = 0x24).
  3021. } B;
  3022. } hw_ocotp_hdcp_ksv0_t;
  3023. #endif
  3024. /*
  3025. * constants & macros for entire OCOTP_HDCP_KSV0 register
  3026. */
  3027. #define HW_OCOTP_HDCP_KSV0_ADDR (REGS_OCOTP_BASE + 0x640)
  3028. #ifndef __LANGUAGE_ASM__
  3029. #define HW_OCOTP_HDCP_KSV0 (*(volatile hw_ocotp_hdcp_ksv0_t *) HW_OCOTP_HDCP_KSV0_ADDR)
  3030. #define HW_OCOTP_HDCP_KSV0_RD() (HW_OCOTP_HDCP_KSV0.U)
  3031. #define HW_OCOTP_HDCP_KSV0_WR(v) (HW_OCOTP_HDCP_KSV0.U = (v))
  3032. #define HW_OCOTP_HDCP_KSV0_SET(v) (HW_OCOTP_HDCP_KSV0_WR(HW_OCOTP_HDCP_KSV0_RD() | (v)))
  3033. #define HW_OCOTP_HDCP_KSV0_CLR(v) (HW_OCOTP_HDCP_KSV0_WR(HW_OCOTP_HDCP_KSV0_RD() & ~(v)))
  3034. #define HW_OCOTP_HDCP_KSV0_TOG(v) (HW_OCOTP_HDCP_KSV0_WR(HW_OCOTP_HDCP_KSV0_RD() ^ (v)))
  3035. #endif
  3036. /*
  3037. * constants & macros for individual OCOTP_HDCP_KSV0 bitfields
  3038. */
  3039. /* --- Register HW_OCOTP_HDCP_KSV0, field BITS[31:0] (RW)
  3040. *
  3041. * Reflects value of OTP Bank 4, word 4 (ADDR = 0x24).
  3042. */
  3043. #define BP_OCOTP_HDCP_KSV0_BITS (0) //!< Bit position for OCOTP_HDCP_KSV0_BITS.
  3044. #define BM_OCOTP_HDCP_KSV0_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KSV0_BITS.
  3045. //! @brief Get value of OCOTP_HDCP_KSV0_BITS from a register value.
  3046. #define BG_OCOTP_HDCP_KSV0_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KSV0_BITS) >> BP_OCOTP_HDCP_KSV0_BITS)
  3047. //! @brief Format value for bitfield OCOTP_HDCP_KSV0_BITS.
  3048. #define BF_OCOTP_HDCP_KSV0_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KSV0_BITS) & BM_OCOTP_HDCP_KSV0_BITS)
  3049. #ifndef __LANGUAGE_ASM__
  3050. //! @brief Set the BITS field to a new value.
  3051. #define BW_OCOTP_HDCP_KSV0_BITS(v) (HW_OCOTP_HDCP_KSV0_WR((HW_OCOTP_HDCP_KSV0_RD() & ~BM_OCOTP_HDCP_KSV0_BITS) | BF_OCOTP_HDCP_KSV0_BITS(v)))
  3052. #endif
  3053. //-------------------------------------------------------------------------------------------
  3054. // HW_OCOTP_HDCP_KSV1 - Value of OTP Bank4 Word5 (HW Capabilities)
  3055. //-------------------------------------------------------------------------------------------
  3056. #ifndef __LANGUAGE_ASM__
  3057. /*!
  3058. * @brief HW_OCOTP_HDCP_KSV1 - Value of OTP Bank4 Word5 (HW Capabilities) (RW)
  3059. *
  3060. * Reset value: 0x00000000
  3061. *
  3062. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  3063. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 4, word 5 (ADDR = 0x25).
  3064. * EXAMPLE Empty Example.
  3065. */
  3066. typedef union _hw_ocotp_hdcp_ksv1
  3067. {
  3068. reg32_t U;
  3069. struct _hw_ocotp_hdcp_ksv1_bitfields
  3070. {
  3071. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 4, word 5 (ADDR = 0x25).
  3072. } B;
  3073. } hw_ocotp_hdcp_ksv1_t;
  3074. #endif
  3075. /*
  3076. * constants & macros for entire OCOTP_HDCP_KSV1 register
  3077. */
  3078. #define HW_OCOTP_HDCP_KSV1_ADDR (REGS_OCOTP_BASE + 0x650)
  3079. #ifndef __LANGUAGE_ASM__
  3080. #define HW_OCOTP_HDCP_KSV1 (*(volatile hw_ocotp_hdcp_ksv1_t *) HW_OCOTP_HDCP_KSV1_ADDR)
  3081. #define HW_OCOTP_HDCP_KSV1_RD() (HW_OCOTP_HDCP_KSV1.U)
  3082. #define HW_OCOTP_HDCP_KSV1_WR(v) (HW_OCOTP_HDCP_KSV1.U = (v))
  3083. #define HW_OCOTP_HDCP_KSV1_SET(v) (HW_OCOTP_HDCP_KSV1_WR(HW_OCOTP_HDCP_KSV1_RD() | (v)))
  3084. #define HW_OCOTP_HDCP_KSV1_CLR(v) (HW_OCOTP_HDCP_KSV1_WR(HW_OCOTP_HDCP_KSV1_RD() & ~(v)))
  3085. #define HW_OCOTP_HDCP_KSV1_TOG(v) (HW_OCOTP_HDCP_KSV1_WR(HW_OCOTP_HDCP_KSV1_RD() ^ (v)))
  3086. #endif
  3087. /*
  3088. * constants & macros for individual OCOTP_HDCP_KSV1 bitfields
  3089. */
  3090. /* --- Register HW_OCOTP_HDCP_KSV1, field BITS[31:0] (RW)
  3091. *
  3092. * Reflects value of OTP Bank 4, word 5 (ADDR = 0x25).
  3093. */
  3094. #define BP_OCOTP_HDCP_KSV1_BITS (0) //!< Bit position for OCOTP_HDCP_KSV1_BITS.
  3095. #define BM_OCOTP_HDCP_KSV1_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KSV1_BITS.
  3096. //! @brief Get value of OCOTP_HDCP_KSV1_BITS from a register value.
  3097. #define BG_OCOTP_HDCP_KSV1_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KSV1_BITS) >> BP_OCOTP_HDCP_KSV1_BITS)
  3098. //! @brief Format value for bitfield OCOTP_HDCP_KSV1_BITS.
  3099. #define BF_OCOTP_HDCP_KSV1_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KSV1_BITS) & BM_OCOTP_HDCP_KSV1_BITS)
  3100. #ifndef __LANGUAGE_ASM__
  3101. //! @brief Set the BITS field to a new value.
  3102. #define BW_OCOTP_HDCP_KSV1_BITS(v) (HW_OCOTP_HDCP_KSV1_WR((HW_OCOTP_HDCP_KSV1_RD() & ~BM_OCOTP_HDCP_KSV1_BITS) | BF_OCOTP_HDCP_KSV1_BITS(v)))
  3103. #endif
  3104. //-------------------------------------------------------------------------------------------
  3105. // HW_OCOTP_GP1 - Value of OTP Bank4 Word6 (HW Capabilities)
  3106. //-------------------------------------------------------------------------------------------
  3107. #ifndef __LANGUAGE_ASM__
  3108. /*!
  3109. * @brief HW_OCOTP_GP1 - Value of OTP Bank4 Word6 (HW Capabilities) (RW)
  3110. *
  3111. * Reset value: 0x00000000
  3112. *
  3113. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  3114. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 4, word 6 (ADDR = 0x26).
  3115. * EXAMPLE Empty Example.
  3116. */
  3117. typedef union _hw_ocotp_gp1
  3118. {
  3119. reg32_t U;
  3120. struct _hw_ocotp_gp1_bitfields
  3121. {
  3122. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 4, word 6 (ADDR = 0x26).
  3123. } B;
  3124. } hw_ocotp_gp1_t;
  3125. #endif
  3126. /*
  3127. * constants & macros for entire OCOTP_GP1 register
  3128. */
  3129. #define HW_OCOTP_GP1_ADDR (REGS_OCOTP_BASE + 0x660)
  3130. #ifndef __LANGUAGE_ASM__
  3131. #define HW_OCOTP_GP1 (*(volatile hw_ocotp_gp1_t *) HW_OCOTP_GP1_ADDR)
  3132. #define HW_OCOTP_GP1_RD() (HW_OCOTP_GP1.U)
  3133. #define HW_OCOTP_GP1_WR(v) (HW_OCOTP_GP1.U = (v))
  3134. #define HW_OCOTP_GP1_SET(v) (HW_OCOTP_GP1_WR(HW_OCOTP_GP1_RD() | (v)))
  3135. #define HW_OCOTP_GP1_CLR(v) (HW_OCOTP_GP1_WR(HW_OCOTP_GP1_RD() & ~(v)))
  3136. #define HW_OCOTP_GP1_TOG(v) (HW_OCOTP_GP1_WR(HW_OCOTP_GP1_RD() ^ (v)))
  3137. #endif
  3138. /*
  3139. * constants & macros for individual OCOTP_GP1 bitfields
  3140. */
  3141. /* --- Register HW_OCOTP_GP1, field BITS[31:0] (RW)
  3142. *
  3143. * Reflects value of OTP Bank 4, word 6 (ADDR = 0x26).
  3144. */
  3145. #define BP_OCOTP_GP1_BITS (0) //!< Bit position for OCOTP_GP1_BITS.
  3146. #define BM_OCOTP_GP1_BITS (0xffffffff) //!< Bit mask for OCOTP_GP1_BITS.
  3147. //! @brief Get value of OCOTP_GP1_BITS from a register value.
  3148. #define BG_OCOTP_GP1_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_GP1_BITS) >> BP_OCOTP_GP1_BITS)
  3149. //! @brief Format value for bitfield OCOTP_GP1_BITS.
  3150. #define BF_OCOTP_GP1_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_GP1_BITS) & BM_OCOTP_GP1_BITS)
  3151. #ifndef __LANGUAGE_ASM__
  3152. //! @brief Set the BITS field to a new value.
  3153. #define BW_OCOTP_GP1_BITS(v) (HW_OCOTP_GP1_WR((HW_OCOTP_GP1_RD() & ~BM_OCOTP_GP1_BITS) | BF_OCOTP_GP1_BITS(v)))
  3154. #endif
  3155. //-------------------------------------------------------------------------------------------
  3156. // HW_OCOTP_GP2 - Value of OTP Bank4 Word7 (HW Capabilities)
  3157. //-------------------------------------------------------------------------------------------
  3158. #ifndef __LANGUAGE_ASM__
  3159. /*!
  3160. * @brief HW_OCOTP_GP2 - Value of OTP Bank4 Word7 (HW Capabilities) (RW)
  3161. *
  3162. * Reset value: 0x00000000
  3163. *
  3164. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  3165. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 4, word 7 (ADDR = 0x27).
  3166. * EXAMPLE Empty Example.
  3167. */
  3168. typedef union _hw_ocotp_gp2
  3169. {
  3170. reg32_t U;
  3171. struct _hw_ocotp_gp2_bitfields
  3172. {
  3173. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 4, word 7 (ADDR = 0x27).
  3174. } B;
  3175. } hw_ocotp_gp2_t;
  3176. #endif
  3177. /*
  3178. * constants & macros for entire OCOTP_GP2 register
  3179. */
  3180. #define HW_OCOTP_GP2_ADDR (REGS_OCOTP_BASE + 0x670)
  3181. #ifndef __LANGUAGE_ASM__
  3182. #define HW_OCOTP_GP2 (*(volatile hw_ocotp_gp2_t *) HW_OCOTP_GP2_ADDR)
  3183. #define HW_OCOTP_GP2_RD() (HW_OCOTP_GP2.U)
  3184. #define HW_OCOTP_GP2_WR(v) (HW_OCOTP_GP2.U = (v))
  3185. #define HW_OCOTP_GP2_SET(v) (HW_OCOTP_GP2_WR(HW_OCOTP_GP2_RD() | (v)))
  3186. #define HW_OCOTP_GP2_CLR(v) (HW_OCOTP_GP2_WR(HW_OCOTP_GP2_RD() & ~(v)))
  3187. #define HW_OCOTP_GP2_TOG(v) (HW_OCOTP_GP2_WR(HW_OCOTP_GP2_RD() ^ (v)))
  3188. #endif
  3189. /*
  3190. * constants & macros for individual OCOTP_GP2 bitfields
  3191. */
  3192. /* --- Register HW_OCOTP_GP2, field BITS[31:0] (RW)
  3193. *
  3194. * Reflects value of OTP Bank 4, word 7 (ADDR = 0x27).
  3195. */
  3196. #define BP_OCOTP_GP2_BITS (0) //!< Bit position for OCOTP_GP2_BITS.
  3197. #define BM_OCOTP_GP2_BITS (0xffffffff) //!< Bit mask for OCOTP_GP2_BITS.
  3198. //! @brief Get value of OCOTP_GP2_BITS from a register value.
  3199. #define BG_OCOTP_GP2_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_GP2_BITS) >> BP_OCOTP_GP2_BITS)
  3200. //! @brief Format value for bitfield OCOTP_GP2_BITS.
  3201. #define BF_OCOTP_GP2_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_GP2_BITS) & BM_OCOTP_GP2_BITS)
  3202. #ifndef __LANGUAGE_ASM__
  3203. //! @brief Set the BITS field to a new value.
  3204. #define BW_OCOTP_GP2_BITS(v) (HW_OCOTP_GP2_WR((HW_OCOTP_GP2_RD() & ~BM_OCOTP_GP2_BITS) | BF_OCOTP_GP2_BITS(v)))
  3205. #endif
  3206. //-------------------------------------------------------------------------------------------
  3207. // HW_OCOTP_DTCP_KEY0 - Value of OTP Bank5 Word0 (HW Capabilities)
  3208. //-------------------------------------------------------------------------------------------
  3209. #ifndef __LANGUAGE_ASM__
  3210. /*!
  3211. * @brief HW_OCOTP_DTCP_KEY0 - Value of OTP Bank5 Word0 (HW Capabilities) (RW)
  3212. *
  3213. * Reset value: 0x00000000
  3214. *
  3215. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  3216. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 5, word 0 (ADDR = 0x28).
  3217. * EXAMPLE Empty Example.
  3218. */
  3219. typedef union _hw_ocotp_dtcp_key0
  3220. {
  3221. reg32_t U;
  3222. struct _hw_ocotp_dtcp_key0_bitfields
  3223. {
  3224. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 5, word 0 (ADDR = 0x28).
  3225. } B;
  3226. } hw_ocotp_dtcp_key0_t;
  3227. #endif
  3228. /*
  3229. * constants & macros for entire OCOTP_DTCP_KEY0 register
  3230. */
  3231. #define HW_OCOTP_DTCP_KEY0_ADDR (REGS_OCOTP_BASE + 0x680)
  3232. #ifndef __LANGUAGE_ASM__
  3233. #define HW_OCOTP_DTCP_KEY0 (*(volatile hw_ocotp_dtcp_key0_t *) HW_OCOTP_DTCP_KEY0_ADDR)
  3234. #define HW_OCOTP_DTCP_KEY0_RD() (HW_OCOTP_DTCP_KEY0.U)
  3235. #define HW_OCOTP_DTCP_KEY0_WR(v) (HW_OCOTP_DTCP_KEY0.U = (v))
  3236. #define HW_OCOTP_DTCP_KEY0_SET(v) (HW_OCOTP_DTCP_KEY0_WR(HW_OCOTP_DTCP_KEY0_RD() | (v)))
  3237. #define HW_OCOTP_DTCP_KEY0_CLR(v) (HW_OCOTP_DTCP_KEY0_WR(HW_OCOTP_DTCP_KEY0_RD() & ~(v)))
  3238. #define HW_OCOTP_DTCP_KEY0_TOG(v) (HW_OCOTP_DTCP_KEY0_WR(HW_OCOTP_DTCP_KEY0_RD() ^ (v)))
  3239. #endif
  3240. /*
  3241. * constants & macros for individual OCOTP_DTCP_KEY0 bitfields
  3242. */
  3243. /* --- Register HW_OCOTP_DTCP_KEY0, field BITS[31:0] (RW)
  3244. *
  3245. * Reflects value of OTP Bank 5, word 0 (ADDR = 0x28).
  3246. */
  3247. #define BP_OCOTP_DTCP_KEY0_BITS (0) //!< Bit position for OCOTP_DTCP_KEY0_BITS.
  3248. #define BM_OCOTP_DTCP_KEY0_BITS (0xffffffff) //!< Bit mask for OCOTP_DTCP_KEY0_BITS.
  3249. //! @brief Get value of OCOTP_DTCP_KEY0_BITS from a register value.
  3250. #define BG_OCOTP_DTCP_KEY0_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_DTCP_KEY0_BITS) >> BP_OCOTP_DTCP_KEY0_BITS)
  3251. //! @brief Format value for bitfield OCOTP_DTCP_KEY0_BITS.
  3252. #define BF_OCOTP_DTCP_KEY0_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_DTCP_KEY0_BITS) & BM_OCOTP_DTCP_KEY0_BITS)
  3253. #ifndef __LANGUAGE_ASM__
  3254. //! @brief Set the BITS field to a new value.
  3255. #define BW_OCOTP_DTCP_KEY0_BITS(v) (HW_OCOTP_DTCP_KEY0_WR((HW_OCOTP_DTCP_KEY0_RD() & ~BM_OCOTP_DTCP_KEY0_BITS) | BF_OCOTP_DTCP_KEY0_BITS(v)))
  3256. #endif
  3257. //-------------------------------------------------------------------------------------------
  3258. // HW_OCOTP_DTCP_KEY1 - Value of OTP Bank5 Word1 (HW Capabilities)
  3259. //-------------------------------------------------------------------------------------------
  3260. #ifndef __LANGUAGE_ASM__
  3261. /*!
  3262. * @brief HW_OCOTP_DTCP_KEY1 - Value of OTP Bank5 Word1 (HW Capabilities) (RW)
  3263. *
  3264. * Reset value: 0x00000000
  3265. *
  3266. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  3267. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 5, word 1 (ADDR = 0x29).
  3268. * EXAMPLE Empty Example.
  3269. */
  3270. typedef union _hw_ocotp_dtcp_key1
  3271. {
  3272. reg32_t U;
  3273. struct _hw_ocotp_dtcp_key1_bitfields
  3274. {
  3275. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 5, word 1 (ADDR = 0x29).
  3276. } B;
  3277. } hw_ocotp_dtcp_key1_t;
  3278. #endif
  3279. /*
  3280. * constants & macros for entire OCOTP_DTCP_KEY1 register
  3281. */
  3282. #define HW_OCOTP_DTCP_KEY1_ADDR (REGS_OCOTP_BASE + 0x690)
  3283. #ifndef __LANGUAGE_ASM__
  3284. #define HW_OCOTP_DTCP_KEY1 (*(volatile hw_ocotp_dtcp_key1_t *) HW_OCOTP_DTCP_KEY1_ADDR)
  3285. #define HW_OCOTP_DTCP_KEY1_RD() (HW_OCOTP_DTCP_KEY1.U)
  3286. #define HW_OCOTP_DTCP_KEY1_WR(v) (HW_OCOTP_DTCP_KEY1.U = (v))
  3287. #define HW_OCOTP_DTCP_KEY1_SET(v) (HW_OCOTP_DTCP_KEY1_WR(HW_OCOTP_DTCP_KEY1_RD() | (v)))
  3288. #define HW_OCOTP_DTCP_KEY1_CLR(v) (HW_OCOTP_DTCP_KEY1_WR(HW_OCOTP_DTCP_KEY1_RD() & ~(v)))
  3289. #define HW_OCOTP_DTCP_KEY1_TOG(v) (HW_OCOTP_DTCP_KEY1_WR(HW_OCOTP_DTCP_KEY1_RD() ^ (v)))
  3290. #endif
  3291. /*
  3292. * constants & macros for individual OCOTP_DTCP_KEY1 bitfields
  3293. */
  3294. /* --- Register HW_OCOTP_DTCP_KEY1, field BITS[31:0] (RW)
  3295. *
  3296. * Reflects value of OTP Bank 5, word 1 (ADDR = 0x29).
  3297. */
  3298. #define BP_OCOTP_DTCP_KEY1_BITS (0) //!< Bit position for OCOTP_DTCP_KEY1_BITS.
  3299. #define BM_OCOTP_DTCP_KEY1_BITS (0xffffffff) //!< Bit mask for OCOTP_DTCP_KEY1_BITS.
  3300. //! @brief Get value of OCOTP_DTCP_KEY1_BITS from a register value.
  3301. #define BG_OCOTP_DTCP_KEY1_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_DTCP_KEY1_BITS) >> BP_OCOTP_DTCP_KEY1_BITS)
  3302. //! @brief Format value for bitfield OCOTP_DTCP_KEY1_BITS.
  3303. #define BF_OCOTP_DTCP_KEY1_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_DTCP_KEY1_BITS) & BM_OCOTP_DTCP_KEY1_BITS)
  3304. #ifndef __LANGUAGE_ASM__
  3305. //! @brief Set the BITS field to a new value.
  3306. #define BW_OCOTP_DTCP_KEY1_BITS(v) (HW_OCOTP_DTCP_KEY1_WR((HW_OCOTP_DTCP_KEY1_RD() & ~BM_OCOTP_DTCP_KEY1_BITS) | BF_OCOTP_DTCP_KEY1_BITS(v)))
  3307. #endif
  3308. //-------------------------------------------------------------------------------------------
  3309. // HW_OCOTP_DTCP_KEY2 - Value of OTP Bank5 Word2 (HW Capabilities)
  3310. //-------------------------------------------------------------------------------------------
  3311. #ifndef __LANGUAGE_ASM__
  3312. /*!
  3313. * @brief HW_OCOTP_DTCP_KEY2 - Value of OTP Bank5 Word2 (HW Capabilities) (RW)
  3314. *
  3315. * Reset value: 0x00000000
  3316. *
  3317. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  3318. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 5, word 2 (ADDR = 0x2a).
  3319. * EXAMPLE Empty Example.
  3320. */
  3321. typedef union _hw_ocotp_dtcp_key2
  3322. {
  3323. reg32_t U;
  3324. struct _hw_ocotp_dtcp_key2_bitfields
  3325. {
  3326. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 5, word 2 (ADDR = 0x2a).
  3327. } B;
  3328. } hw_ocotp_dtcp_key2_t;
  3329. #endif
  3330. /*
  3331. * constants & macros for entire OCOTP_DTCP_KEY2 register
  3332. */
  3333. #define HW_OCOTP_DTCP_KEY2_ADDR (REGS_OCOTP_BASE + 0x6a0)
  3334. #ifndef __LANGUAGE_ASM__
  3335. #define HW_OCOTP_DTCP_KEY2 (*(volatile hw_ocotp_dtcp_key2_t *) HW_OCOTP_DTCP_KEY2_ADDR)
  3336. #define HW_OCOTP_DTCP_KEY2_RD() (HW_OCOTP_DTCP_KEY2.U)
  3337. #define HW_OCOTP_DTCP_KEY2_WR(v) (HW_OCOTP_DTCP_KEY2.U = (v))
  3338. #define HW_OCOTP_DTCP_KEY2_SET(v) (HW_OCOTP_DTCP_KEY2_WR(HW_OCOTP_DTCP_KEY2_RD() | (v)))
  3339. #define HW_OCOTP_DTCP_KEY2_CLR(v) (HW_OCOTP_DTCP_KEY2_WR(HW_OCOTP_DTCP_KEY2_RD() & ~(v)))
  3340. #define HW_OCOTP_DTCP_KEY2_TOG(v) (HW_OCOTP_DTCP_KEY2_WR(HW_OCOTP_DTCP_KEY2_RD() ^ (v)))
  3341. #endif
  3342. /*
  3343. * constants & macros for individual OCOTP_DTCP_KEY2 bitfields
  3344. */
  3345. /* --- Register HW_OCOTP_DTCP_KEY2, field BITS[31:0] (RW)
  3346. *
  3347. * Reflects value of OTP Bank 5, word 2 (ADDR = 0x2a).
  3348. */
  3349. #define BP_OCOTP_DTCP_KEY2_BITS (0) //!< Bit position for OCOTP_DTCP_KEY2_BITS.
  3350. #define BM_OCOTP_DTCP_KEY2_BITS (0xffffffff) //!< Bit mask for OCOTP_DTCP_KEY2_BITS.
  3351. //! @brief Get value of OCOTP_DTCP_KEY2_BITS from a register value.
  3352. #define BG_OCOTP_DTCP_KEY2_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_DTCP_KEY2_BITS) >> BP_OCOTP_DTCP_KEY2_BITS)
  3353. //! @brief Format value for bitfield OCOTP_DTCP_KEY2_BITS.
  3354. #define BF_OCOTP_DTCP_KEY2_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_DTCP_KEY2_BITS) & BM_OCOTP_DTCP_KEY2_BITS)
  3355. #ifndef __LANGUAGE_ASM__
  3356. //! @brief Set the BITS field to a new value.
  3357. #define BW_OCOTP_DTCP_KEY2_BITS(v) (HW_OCOTP_DTCP_KEY2_WR((HW_OCOTP_DTCP_KEY2_RD() & ~BM_OCOTP_DTCP_KEY2_BITS) | BF_OCOTP_DTCP_KEY2_BITS(v)))
  3358. #endif
  3359. //-------------------------------------------------------------------------------------------
  3360. // HW_OCOTP_DTCP_KEY3 - Value of OTP Bank5 Word3 (HW Capabilities)
  3361. //-------------------------------------------------------------------------------------------
  3362. #ifndef __LANGUAGE_ASM__
  3363. /*!
  3364. * @brief HW_OCOTP_DTCP_KEY3 - Value of OTP Bank5 Word3 (HW Capabilities) (RW)
  3365. *
  3366. * Reset value: 0x00000000
  3367. *
  3368. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  3369. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 5, word 3 (ADDR = 0x2b).
  3370. * EXAMPLE Empty Example.
  3371. */
  3372. typedef union _hw_ocotp_dtcp_key3
  3373. {
  3374. reg32_t U;
  3375. struct _hw_ocotp_dtcp_key3_bitfields
  3376. {
  3377. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 5, word 3 (ADDR = 0x2b).
  3378. } B;
  3379. } hw_ocotp_dtcp_key3_t;
  3380. #endif
  3381. /*
  3382. * constants & macros for entire OCOTP_DTCP_KEY3 register
  3383. */
  3384. #define HW_OCOTP_DTCP_KEY3_ADDR (REGS_OCOTP_BASE + 0x6b0)
  3385. #ifndef __LANGUAGE_ASM__
  3386. #define HW_OCOTP_DTCP_KEY3 (*(volatile hw_ocotp_dtcp_key3_t *) HW_OCOTP_DTCP_KEY3_ADDR)
  3387. #define HW_OCOTP_DTCP_KEY3_RD() (HW_OCOTP_DTCP_KEY3.U)
  3388. #define HW_OCOTP_DTCP_KEY3_WR(v) (HW_OCOTP_DTCP_KEY3.U = (v))
  3389. #define HW_OCOTP_DTCP_KEY3_SET(v) (HW_OCOTP_DTCP_KEY3_WR(HW_OCOTP_DTCP_KEY3_RD() | (v)))
  3390. #define HW_OCOTP_DTCP_KEY3_CLR(v) (HW_OCOTP_DTCP_KEY3_WR(HW_OCOTP_DTCP_KEY3_RD() & ~(v)))
  3391. #define HW_OCOTP_DTCP_KEY3_TOG(v) (HW_OCOTP_DTCP_KEY3_WR(HW_OCOTP_DTCP_KEY3_RD() ^ (v)))
  3392. #endif
  3393. /*
  3394. * constants & macros for individual OCOTP_DTCP_KEY3 bitfields
  3395. */
  3396. /* --- Register HW_OCOTP_DTCP_KEY3, field BITS[31:0] (RW)
  3397. *
  3398. * Reflects value of OTP Bank 5, word 3 (ADDR = 0x2b).
  3399. */
  3400. #define BP_OCOTP_DTCP_KEY3_BITS (0) //!< Bit position for OCOTP_DTCP_KEY3_BITS.
  3401. #define BM_OCOTP_DTCP_KEY3_BITS (0xffffffff) //!< Bit mask for OCOTP_DTCP_KEY3_BITS.
  3402. //! @brief Get value of OCOTP_DTCP_KEY3_BITS from a register value.
  3403. #define BG_OCOTP_DTCP_KEY3_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_DTCP_KEY3_BITS) >> BP_OCOTP_DTCP_KEY3_BITS)
  3404. //! @brief Format value for bitfield OCOTP_DTCP_KEY3_BITS.
  3405. #define BF_OCOTP_DTCP_KEY3_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_DTCP_KEY3_BITS) & BM_OCOTP_DTCP_KEY3_BITS)
  3406. #ifndef __LANGUAGE_ASM__
  3407. //! @brief Set the BITS field to a new value.
  3408. #define BW_OCOTP_DTCP_KEY3_BITS(v) (HW_OCOTP_DTCP_KEY3_WR((HW_OCOTP_DTCP_KEY3_RD() & ~BM_OCOTP_DTCP_KEY3_BITS) | BF_OCOTP_DTCP_KEY3_BITS(v)))
  3409. #endif
  3410. //-------------------------------------------------------------------------------------------
  3411. // HW_OCOTP_DTCP_KEY4 - Value of OTP Bank5 Word4 (HW Capabilities)
  3412. //-------------------------------------------------------------------------------------------
  3413. #ifndef __LANGUAGE_ASM__
  3414. /*!
  3415. * @brief HW_OCOTP_DTCP_KEY4 - Value of OTP Bank5 Word4 (HW Capabilities) (RW)
  3416. *
  3417. * Reset value: 0x00000000
  3418. *
  3419. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  3420. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 5, word 4 (ADDR = 0x2c).
  3421. * EXAMPLE Empty Example.
  3422. */
  3423. typedef union _hw_ocotp_dtcp_key4
  3424. {
  3425. reg32_t U;
  3426. struct _hw_ocotp_dtcp_key4_bitfields
  3427. {
  3428. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 5, word 4 (ADDR = 0x2c).
  3429. } B;
  3430. } hw_ocotp_dtcp_key4_t;
  3431. #endif
  3432. /*
  3433. * constants & macros for entire OCOTP_DTCP_KEY4 register
  3434. */
  3435. #define HW_OCOTP_DTCP_KEY4_ADDR (REGS_OCOTP_BASE + 0x6c0)
  3436. #ifndef __LANGUAGE_ASM__
  3437. #define HW_OCOTP_DTCP_KEY4 (*(volatile hw_ocotp_dtcp_key4_t *) HW_OCOTP_DTCP_KEY4_ADDR)
  3438. #define HW_OCOTP_DTCP_KEY4_RD() (HW_OCOTP_DTCP_KEY4.U)
  3439. #define HW_OCOTP_DTCP_KEY4_WR(v) (HW_OCOTP_DTCP_KEY4.U = (v))
  3440. #define HW_OCOTP_DTCP_KEY4_SET(v) (HW_OCOTP_DTCP_KEY4_WR(HW_OCOTP_DTCP_KEY4_RD() | (v)))
  3441. #define HW_OCOTP_DTCP_KEY4_CLR(v) (HW_OCOTP_DTCP_KEY4_WR(HW_OCOTP_DTCP_KEY4_RD() & ~(v)))
  3442. #define HW_OCOTP_DTCP_KEY4_TOG(v) (HW_OCOTP_DTCP_KEY4_WR(HW_OCOTP_DTCP_KEY4_RD() ^ (v)))
  3443. #endif
  3444. /*
  3445. * constants & macros for individual OCOTP_DTCP_KEY4 bitfields
  3446. */
  3447. /* --- Register HW_OCOTP_DTCP_KEY4, field BITS[31:0] (RW)
  3448. *
  3449. * Reflects value of OTP Bank 5, word 4 (ADDR = 0x2c).
  3450. */
  3451. #define BP_OCOTP_DTCP_KEY4_BITS (0) //!< Bit position for OCOTP_DTCP_KEY4_BITS.
  3452. #define BM_OCOTP_DTCP_KEY4_BITS (0xffffffff) //!< Bit mask for OCOTP_DTCP_KEY4_BITS.
  3453. //! @brief Get value of OCOTP_DTCP_KEY4_BITS from a register value.
  3454. #define BG_OCOTP_DTCP_KEY4_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_DTCP_KEY4_BITS) >> BP_OCOTP_DTCP_KEY4_BITS)
  3455. //! @brief Format value for bitfield OCOTP_DTCP_KEY4_BITS.
  3456. #define BF_OCOTP_DTCP_KEY4_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_DTCP_KEY4_BITS) & BM_OCOTP_DTCP_KEY4_BITS)
  3457. #ifndef __LANGUAGE_ASM__
  3458. //! @brief Set the BITS field to a new value.
  3459. #define BW_OCOTP_DTCP_KEY4_BITS(v) (HW_OCOTP_DTCP_KEY4_WR((HW_OCOTP_DTCP_KEY4_RD() & ~BM_OCOTP_DTCP_KEY4_BITS) | BF_OCOTP_DTCP_KEY4_BITS(v)))
  3460. #endif
  3461. //-------------------------------------------------------------------------------------------
  3462. // HW_OCOTP_MISC_CONF - Value of OTP Bank5 Word5 (HW Capabilities)
  3463. //-------------------------------------------------------------------------------------------
  3464. #ifndef __LANGUAGE_ASM__
  3465. /*!
  3466. * @brief HW_OCOTP_MISC_CONF - Value of OTP Bank5 Word5 (HW Capabilities) (RW)
  3467. *
  3468. * Reset value: 0x00000000
  3469. *
  3470. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  3471. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 5, word 5 (ADDR = 0x2d).
  3472. * EXAMPLE Empty Example.
  3473. */
  3474. typedef union _hw_ocotp_misc_conf
  3475. {
  3476. reg32_t U;
  3477. struct _hw_ocotp_misc_conf_bitfields
  3478. {
  3479. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 5, word 5 (ADDR = 0x2d).
  3480. } B;
  3481. } hw_ocotp_misc_conf_t;
  3482. #endif
  3483. /*
  3484. * constants & macros for entire OCOTP_MISC_CONF register
  3485. */
  3486. #define HW_OCOTP_MISC_CONF_ADDR (REGS_OCOTP_BASE + 0x6d0)
  3487. #ifndef __LANGUAGE_ASM__
  3488. #define HW_OCOTP_MISC_CONF (*(volatile hw_ocotp_misc_conf_t *) HW_OCOTP_MISC_CONF_ADDR)
  3489. #define HW_OCOTP_MISC_CONF_RD() (HW_OCOTP_MISC_CONF.U)
  3490. #define HW_OCOTP_MISC_CONF_WR(v) (HW_OCOTP_MISC_CONF.U = (v))
  3491. #define HW_OCOTP_MISC_CONF_SET(v) (HW_OCOTP_MISC_CONF_WR(HW_OCOTP_MISC_CONF_RD() | (v)))
  3492. #define HW_OCOTP_MISC_CONF_CLR(v) (HW_OCOTP_MISC_CONF_WR(HW_OCOTP_MISC_CONF_RD() & ~(v)))
  3493. #define HW_OCOTP_MISC_CONF_TOG(v) (HW_OCOTP_MISC_CONF_WR(HW_OCOTP_MISC_CONF_RD() ^ (v)))
  3494. #endif
  3495. /*
  3496. * constants & macros for individual OCOTP_MISC_CONF bitfields
  3497. */
  3498. /* --- Register HW_OCOTP_MISC_CONF, field BITS[31:0] (RW)
  3499. *
  3500. * Reflects value of OTP Bank 5, word 5 (ADDR = 0x2d).
  3501. */
  3502. #define BP_OCOTP_MISC_CONF_BITS (0) //!< Bit position for OCOTP_MISC_CONF_BITS.
  3503. #define BM_OCOTP_MISC_CONF_BITS (0xffffffff) //!< Bit mask for OCOTP_MISC_CONF_BITS.
  3504. //! @brief Get value of OCOTP_MISC_CONF_BITS from a register value.
  3505. #define BG_OCOTP_MISC_CONF_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_MISC_CONF_BITS) >> BP_OCOTP_MISC_CONF_BITS)
  3506. //! @brief Format value for bitfield OCOTP_MISC_CONF_BITS.
  3507. #define BF_OCOTP_MISC_CONF_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_MISC_CONF_BITS) & BM_OCOTP_MISC_CONF_BITS)
  3508. #ifndef __LANGUAGE_ASM__
  3509. //! @brief Set the BITS field to a new value.
  3510. #define BW_OCOTP_MISC_CONF_BITS(v) (HW_OCOTP_MISC_CONF_WR((HW_OCOTP_MISC_CONF_RD() & ~BM_OCOTP_MISC_CONF_BITS) | BF_OCOTP_MISC_CONF_BITS(v)))
  3511. #endif
  3512. //-------------------------------------------------------------------------------------------
  3513. // HW_OCOTP_FIELD_RETURN - Value of OTP Bank5 Word6 (HW Capabilities)
  3514. //-------------------------------------------------------------------------------------------
  3515. #ifndef __LANGUAGE_ASM__
  3516. /*!
  3517. * @brief HW_OCOTP_FIELD_RETURN - Value of OTP Bank5 Word6 (HW Capabilities) (RW)
  3518. *
  3519. * Reset value: 0x00000000
  3520. *
  3521. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  3522. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 5, word 6 (ADDR = 0x2e).
  3523. * EXAMPLE Empty Example.
  3524. */
  3525. typedef union _hw_ocotp_field_return
  3526. {
  3527. reg32_t U;
  3528. struct _hw_ocotp_field_return_bitfields
  3529. {
  3530. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 5, word 6 (ADDR = 0x2e).
  3531. } B;
  3532. } hw_ocotp_field_return_t;
  3533. #endif
  3534. /*
  3535. * constants & macros for entire OCOTP_FIELD_RETURN register
  3536. */
  3537. #define HW_OCOTP_FIELD_RETURN_ADDR (REGS_OCOTP_BASE + 0x6e0)
  3538. #ifndef __LANGUAGE_ASM__
  3539. #define HW_OCOTP_FIELD_RETURN (*(volatile hw_ocotp_field_return_t *) HW_OCOTP_FIELD_RETURN_ADDR)
  3540. #define HW_OCOTP_FIELD_RETURN_RD() (HW_OCOTP_FIELD_RETURN.U)
  3541. #define HW_OCOTP_FIELD_RETURN_WR(v) (HW_OCOTP_FIELD_RETURN.U = (v))
  3542. #define HW_OCOTP_FIELD_RETURN_SET(v) (HW_OCOTP_FIELD_RETURN_WR(HW_OCOTP_FIELD_RETURN_RD() | (v)))
  3543. #define HW_OCOTP_FIELD_RETURN_CLR(v) (HW_OCOTP_FIELD_RETURN_WR(HW_OCOTP_FIELD_RETURN_RD() & ~(v)))
  3544. #define HW_OCOTP_FIELD_RETURN_TOG(v) (HW_OCOTP_FIELD_RETURN_WR(HW_OCOTP_FIELD_RETURN_RD() ^ (v)))
  3545. #endif
  3546. /*
  3547. * constants & macros for individual OCOTP_FIELD_RETURN bitfields
  3548. */
  3549. /* --- Register HW_OCOTP_FIELD_RETURN, field BITS[31:0] (RW)
  3550. *
  3551. * Reflects value of OTP Bank 5, word 6 (ADDR = 0x2e).
  3552. */
  3553. #define BP_OCOTP_FIELD_RETURN_BITS (0) //!< Bit position for OCOTP_FIELD_RETURN_BITS.
  3554. #define BM_OCOTP_FIELD_RETURN_BITS (0xffffffff) //!< Bit mask for OCOTP_FIELD_RETURN_BITS.
  3555. //! @brief Get value of OCOTP_FIELD_RETURN_BITS from a register value.
  3556. #define BG_OCOTP_FIELD_RETURN_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_FIELD_RETURN_BITS) >> BP_OCOTP_FIELD_RETURN_BITS)
  3557. //! @brief Format value for bitfield OCOTP_FIELD_RETURN_BITS.
  3558. #define BF_OCOTP_FIELD_RETURN_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_FIELD_RETURN_BITS) & BM_OCOTP_FIELD_RETURN_BITS)
  3559. #ifndef __LANGUAGE_ASM__
  3560. //! @brief Set the BITS field to a new value.
  3561. #define BW_OCOTP_FIELD_RETURN_BITS(v) (HW_OCOTP_FIELD_RETURN_WR((HW_OCOTP_FIELD_RETURN_RD() & ~BM_OCOTP_FIELD_RETURN_BITS) | BF_OCOTP_FIELD_RETURN_BITS(v)))
  3562. #endif
  3563. //-------------------------------------------------------------------------------------------
  3564. // HW_OCOTP_SRK_REVOKE - Value of OTP Bank5 Word7 (HW Capabilities)
  3565. //-------------------------------------------------------------------------------------------
  3566. #ifndef __LANGUAGE_ASM__
  3567. /*!
  3568. * @brief HW_OCOTP_SRK_REVOKE - Value of OTP Bank5 Word7 (HW Capabilities) (RW)
  3569. *
  3570. * Reset value: 0x00000000
  3571. *
  3572. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  3573. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 5, word 7 (ADDR = 0x2f).
  3574. * EXAMPLE Empty Example.
  3575. */
  3576. typedef union _hw_ocotp_srk_revoke
  3577. {
  3578. reg32_t U;
  3579. struct _hw_ocotp_srk_revoke_bitfields
  3580. {
  3581. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 5, word 7 (ADDR = 0x2f).
  3582. } B;
  3583. } hw_ocotp_srk_revoke_t;
  3584. #endif
  3585. /*
  3586. * constants & macros for entire OCOTP_SRK_REVOKE register
  3587. */
  3588. #define HW_OCOTP_SRK_REVOKE_ADDR (REGS_OCOTP_BASE + 0x6f0)
  3589. #ifndef __LANGUAGE_ASM__
  3590. #define HW_OCOTP_SRK_REVOKE (*(volatile hw_ocotp_srk_revoke_t *) HW_OCOTP_SRK_REVOKE_ADDR)
  3591. #define HW_OCOTP_SRK_REVOKE_RD() (HW_OCOTP_SRK_REVOKE.U)
  3592. #define HW_OCOTP_SRK_REVOKE_WR(v) (HW_OCOTP_SRK_REVOKE.U = (v))
  3593. #define HW_OCOTP_SRK_REVOKE_SET(v) (HW_OCOTP_SRK_REVOKE_WR(HW_OCOTP_SRK_REVOKE_RD() | (v)))
  3594. #define HW_OCOTP_SRK_REVOKE_CLR(v) (HW_OCOTP_SRK_REVOKE_WR(HW_OCOTP_SRK_REVOKE_RD() & ~(v)))
  3595. #define HW_OCOTP_SRK_REVOKE_TOG(v) (HW_OCOTP_SRK_REVOKE_WR(HW_OCOTP_SRK_REVOKE_RD() ^ (v)))
  3596. #endif
  3597. /*
  3598. * constants & macros for individual OCOTP_SRK_REVOKE bitfields
  3599. */
  3600. /* --- Register HW_OCOTP_SRK_REVOKE, field BITS[31:0] (RW)
  3601. *
  3602. * Reflects value of OTP Bank 5, word 7 (ADDR = 0x2f).
  3603. */
  3604. #define BP_OCOTP_SRK_REVOKE_BITS (0) //!< Bit position for OCOTP_SRK_REVOKE_BITS.
  3605. #define BM_OCOTP_SRK_REVOKE_BITS (0xffffffff) //!< Bit mask for OCOTP_SRK_REVOKE_BITS.
  3606. //! @brief Get value of OCOTP_SRK_REVOKE_BITS from a register value.
  3607. #define BG_OCOTP_SRK_REVOKE_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_SRK_REVOKE_BITS) >> BP_OCOTP_SRK_REVOKE_BITS)
  3608. //! @brief Format value for bitfield OCOTP_SRK_REVOKE_BITS.
  3609. #define BF_OCOTP_SRK_REVOKE_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_SRK_REVOKE_BITS) & BM_OCOTP_SRK_REVOKE_BITS)
  3610. #ifndef __LANGUAGE_ASM__
  3611. //! @brief Set the BITS field to a new value.
  3612. #define BW_OCOTP_SRK_REVOKE_BITS(v) (HW_OCOTP_SRK_REVOKE_WR((HW_OCOTP_SRK_REVOKE_RD() & ~BM_OCOTP_SRK_REVOKE_BITS) | BF_OCOTP_SRK_REVOKE_BITS(v)))
  3613. #endif
  3614. //-------------------------------------------------------------------------------------------
  3615. // HW_OCOTP_HDCP_KEY0 - Value of OTP Bank6 Word0 (HW Capabilities)
  3616. //-------------------------------------------------------------------------------------------
  3617. #ifndef __LANGUAGE_ASM__
  3618. /*!
  3619. * @brief HW_OCOTP_HDCP_KEY0 - Value of OTP Bank6 Word0 (HW Capabilities) (RW)
  3620. *
  3621. * Reset value: 0x00000000
  3622. *
  3623. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  3624. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 6, word 0 (ADDR = 0x30).
  3625. * EXAMPLE Empty Example.
  3626. */
  3627. typedef union _hw_ocotp_hdcp_key0
  3628. {
  3629. reg32_t U;
  3630. struct _hw_ocotp_hdcp_key0_bitfields
  3631. {
  3632. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 6, word 0 (ADDR = 0x30).
  3633. } B;
  3634. } hw_ocotp_hdcp_key0_t;
  3635. #endif
  3636. /*
  3637. * constants & macros for entire OCOTP_HDCP_KEY0 register
  3638. */
  3639. #define HW_OCOTP_HDCP_KEY0_ADDR (REGS_OCOTP_BASE + 0x800)
  3640. #ifndef __LANGUAGE_ASM__
  3641. #define HW_OCOTP_HDCP_KEY0 (*(volatile hw_ocotp_hdcp_key0_t *) HW_OCOTP_HDCP_KEY0_ADDR)
  3642. #define HW_OCOTP_HDCP_KEY0_RD() (HW_OCOTP_HDCP_KEY0.U)
  3643. #define HW_OCOTP_HDCP_KEY0_WR(v) (HW_OCOTP_HDCP_KEY0.U = (v))
  3644. #define HW_OCOTP_HDCP_KEY0_SET(v) (HW_OCOTP_HDCP_KEY0_WR(HW_OCOTP_HDCP_KEY0_RD() | (v)))
  3645. #define HW_OCOTP_HDCP_KEY0_CLR(v) (HW_OCOTP_HDCP_KEY0_WR(HW_OCOTP_HDCP_KEY0_RD() & ~(v)))
  3646. #define HW_OCOTP_HDCP_KEY0_TOG(v) (HW_OCOTP_HDCP_KEY0_WR(HW_OCOTP_HDCP_KEY0_RD() ^ (v)))
  3647. #endif
  3648. /*
  3649. * constants & macros for individual OCOTP_HDCP_KEY0 bitfields
  3650. */
  3651. /* --- Register HW_OCOTP_HDCP_KEY0, field BITS[31:0] (RW)
  3652. *
  3653. * Reflects value of OTP Bank 6, word 0 (ADDR = 0x30).
  3654. */
  3655. #define BP_OCOTP_HDCP_KEY0_BITS (0) //!< Bit position for OCOTP_HDCP_KEY0_BITS.
  3656. #define BM_OCOTP_HDCP_KEY0_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY0_BITS.
  3657. //! @brief Get value of OCOTP_HDCP_KEY0_BITS from a register value.
  3658. #define BG_OCOTP_HDCP_KEY0_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY0_BITS) >> BP_OCOTP_HDCP_KEY0_BITS)
  3659. //! @brief Format value for bitfield OCOTP_HDCP_KEY0_BITS.
  3660. #define BF_OCOTP_HDCP_KEY0_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY0_BITS) & BM_OCOTP_HDCP_KEY0_BITS)
  3661. #ifndef __LANGUAGE_ASM__
  3662. //! @brief Set the BITS field to a new value.
  3663. #define BW_OCOTP_HDCP_KEY0_BITS(v) (HW_OCOTP_HDCP_KEY0_WR((HW_OCOTP_HDCP_KEY0_RD() & ~BM_OCOTP_HDCP_KEY0_BITS) | BF_OCOTP_HDCP_KEY0_BITS(v)))
  3664. #endif
  3665. //-------------------------------------------------------------------------------------------
  3666. // HW_OCOTP_HDCP_KEY1 - Value of OTP Bank6 Word1 (HW Capabilities)
  3667. //-------------------------------------------------------------------------------------------
  3668. #ifndef __LANGUAGE_ASM__
  3669. /*!
  3670. * @brief HW_OCOTP_HDCP_KEY1 - Value of OTP Bank6 Word1 (HW Capabilities) (RW)
  3671. *
  3672. * Reset value: 0x00000000
  3673. *
  3674. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  3675. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 6, word 1 (ADDR = 0x31).
  3676. * EXAMPLE Empty Example.
  3677. */
  3678. typedef union _hw_ocotp_hdcp_key1
  3679. {
  3680. reg32_t U;
  3681. struct _hw_ocotp_hdcp_key1_bitfields
  3682. {
  3683. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 6, word 1 (ADDR = 0x31).
  3684. } B;
  3685. } hw_ocotp_hdcp_key1_t;
  3686. #endif
  3687. /*
  3688. * constants & macros for entire OCOTP_HDCP_KEY1 register
  3689. */
  3690. #define HW_OCOTP_HDCP_KEY1_ADDR (REGS_OCOTP_BASE + 0x810)
  3691. #ifndef __LANGUAGE_ASM__
  3692. #define HW_OCOTP_HDCP_KEY1 (*(volatile hw_ocotp_hdcp_key1_t *) HW_OCOTP_HDCP_KEY1_ADDR)
  3693. #define HW_OCOTP_HDCP_KEY1_RD() (HW_OCOTP_HDCP_KEY1.U)
  3694. #define HW_OCOTP_HDCP_KEY1_WR(v) (HW_OCOTP_HDCP_KEY1.U = (v))
  3695. #define HW_OCOTP_HDCP_KEY1_SET(v) (HW_OCOTP_HDCP_KEY1_WR(HW_OCOTP_HDCP_KEY1_RD() | (v)))
  3696. #define HW_OCOTP_HDCP_KEY1_CLR(v) (HW_OCOTP_HDCP_KEY1_WR(HW_OCOTP_HDCP_KEY1_RD() & ~(v)))
  3697. #define HW_OCOTP_HDCP_KEY1_TOG(v) (HW_OCOTP_HDCP_KEY1_WR(HW_OCOTP_HDCP_KEY1_RD() ^ (v)))
  3698. #endif
  3699. /*
  3700. * constants & macros for individual OCOTP_HDCP_KEY1 bitfields
  3701. */
  3702. /* --- Register HW_OCOTP_HDCP_KEY1, field BITS[31:0] (RW)
  3703. *
  3704. * Reflects value of OTP Bank 6, word 1 (ADDR = 0x31).
  3705. */
  3706. #define BP_OCOTP_HDCP_KEY1_BITS (0) //!< Bit position for OCOTP_HDCP_KEY1_BITS.
  3707. #define BM_OCOTP_HDCP_KEY1_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY1_BITS.
  3708. //! @brief Get value of OCOTP_HDCP_KEY1_BITS from a register value.
  3709. #define BG_OCOTP_HDCP_KEY1_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY1_BITS) >> BP_OCOTP_HDCP_KEY1_BITS)
  3710. //! @brief Format value for bitfield OCOTP_HDCP_KEY1_BITS.
  3711. #define BF_OCOTP_HDCP_KEY1_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY1_BITS) & BM_OCOTP_HDCP_KEY1_BITS)
  3712. #ifndef __LANGUAGE_ASM__
  3713. //! @brief Set the BITS field to a new value.
  3714. #define BW_OCOTP_HDCP_KEY1_BITS(v) (HW_OCOTP_HDCP_KEY1_WR((HW_OCOTP_HDCP_KEY1_RD() & ~BM_OCOTP_HDCP_KEY1_BITS) | BF_OCOTP_HDCP_KEY1_BITS(v)))
  3715. #endif
  3716. //-------------------------------------------------------------------------------------------
  3717. // HW_OCOTP_HDCP_KEY2 - Value of OTP Bank6 Word2 (HW Capabilities)
  3718. //-------------------------------------------------------------------------------------------
  3719. #ifndef __LANGUAGE_ASM__
  3720. /*!
  3721. * @brief HW_OCOTP_HDCP_KEY2 - Value of OTP Bank6 Word2 (HW Capabilities) (RW)
  3722. *
  3723. * Reset value: 0x00000000
  3724. *
  3725. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  3726. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 6, word 2 (ADDR = 0x32).
  3727. * EXAMPLE Empty Example.
  3728. */
  3729. typedef union _hw_ocotp_hdcp_key2
  3730. {
  3731. reg32_t U;
  3732. struct _hw_ocotp_hdcp_key2_bitfields
  3733. {
  3734. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 6, word 2 (ADDR = 0x32).
  3735. } B;
  3736. } hw_ocotp_hdcp_key2_t;
  3737. #endif
  3738. /*
  3739. * constants & macros for entire OCOTP_HDCP_KEY2 register
  3740. */
  3741. #define HW_OCOTP_HDCP_KEY2_ADDR (REGS_OCOTP_BASE + 0x820)
  3742. #ifndef __LANGUAGE_ASM__
  3743. #define HW_OCOTP_HDCP_KEY2 (*(volatile hw_ocotp_hdcp_key2_t *) HW_OCOTP_HDCP_KEY2_ADDR)
  3744. #define HW_OCOTP_HDCP_KEY2_RD() (HW_OCOTP_HDCP_KEY2.U)
  3745. #define HW_OCOTP_HDCP_KEY2_WR(v) (HW_OCOTP_HDCP_KEY2.U = (v))
  3746. #define HW_OCOTP_HDCP_KEY2_SET(v) (HW_OCOTP_HDCP_KEY2_WR(HW_OCOTP_HDCP_KEY2_RD() | (v)))
  3747. #define HW_OCOTP_HDCP_KEY2_CLR(v) (HW_OCOTP_HDCP_KEY2_WR(HW_OCOTP_HDCP_KEY2_RD() & ~(v)))
  3748. #define HW_OCOTP_HDCP_KEY2_TOG(v) (HW_OCOTP_HDCP_KEY2_WR(HW_OCOTP_HDCP_KEY2_RD() ^ (v)))
  3749. #endif
  3750. /*
  3751. * constants & macros for individual OCOTP_HDCP_KEY2 bitfields
  3752. */
  3753. /* --- Register HW_OCOTP_HDCP_KEY2, field BITS[31:0] (RW)
  3754. *
  3755. * Reflects value of OTP Bank 6, word 2 (ADDR = 0x32).
  3756. */
  3757. #define BP_OCOTP_HDCP_KEY2_BITS (0) //!< Bit position for OCOTP_HDCP_KEY2_BITS.
  3758. #define BM_OCOTP_HDCP_KEY2_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY2_BITS.
  3759. //! @brief Get value of OCOTP_HDCP_KEY2_BITS from a register value.
  3760. #define BG_OCOTP_HDCP_KEY2_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY2_BITS) >> BP_OCOTP_HDCP_KEY2_BITS)
  3761. //! @brief Format value for bitfield OCOTP_HDCP_KEY2_BITS.
  3762. #define BF_OCOTP_HDCP_KEY2_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY2_BITS) & BM_OCOTP_HDCP_KEY2_BITS)
  3763. #ifndef __LANGUAGE_ASM__
  3764. //! @brief Set the BITS field to a new value.
  3765. #define BW_OCOTP_HDCP_KEY2_BITS(v) (HW_OCOTP_HDCP_KEY2_WR((HW_OCOTP_HDCP_KEY2_RD() & ~BM_OCOTP_HDCP_KEY2_BITS) | BF_OCOTP_HDCP_KEY2_BITS(v)))
  3766. #endif
  3767. //-------------------------------------------------------------------------------------------
  3768. // HW_OCOTP_HDCP_KEY3 - Value of OTP Bank6 Word3 (HW Capabilities)
  3769. //-------------------------------------------------------------------------------------------
  3770. #ifndef __LANGUAGE_ASM__
  3771. /*!
  3772. * @brief HW_OCOTP_HDCP_KEY3 - Value of OTP Bank6 Word3 (HW Capabilities) (RW)
  3773. *
  3774. * Reset value: 0x00000000
  3775. *
  3776. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  3777. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 6, word 3 (ADDR = 0x33).
  3778. * EXAMPLE Empty Example.
  3779. */
  3780. typedef union _hw_ocotp_hdcp_key3
  3781. {
  3782. reg32_t U;
  3783. struct _hw_ocotp_hdcp_key3_bitfields
  3784. {
  3785. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 6, word 3 (ADDR = 0x33).
  3786. } B;
  3787. } hw_ocotp_hdcp_key3_t;
  3788. #endif
  3789. /*
  3790. * constants & macros for entire OCOTP_HDCP_KEY3 register
  3791. */
  3792. #define HW_OCOTP_HDCP_KEY3_ADDR (REGS_OCOTP_BASE + 0x830)
  3793. #ifndef __LANGUAGE_ASM__
  3794. #define HW_OCOTP_HDCP_KEY3 (*(volatile hw_ocotp_hdcp_key3_t *) HW_OCOTP_HDCP_KEY3_ADDR)
  3795. #define HW_OCOTP_HDCP_KEY3_RD() (HW_OCOTP_HDCP_KEY3.U)
  3796. #define HW_OCOTP_HDCP_KEY3_WR(v) (HW_OCOTP_HDCP_KEY3.U = (v))
  3797. #define HW_OCOTP_HDCP_KEY3_SET(v) (HW_OCOTP_HDCP_KEY3_WR(HW_OCOTP_HDCP_KEY3_RD() | (v)))
  3798. #define HW_OCOTP_HDCP_KEY3_CLR(v) (HW_OCOTP_HDCP_KEY3_WR(HW_OCOTP_HDCP_KEY3_RD() & ~(v)))
  3799. #define HW_OCOTP_HDCP_KEY3_TOG(v) (HW_OCOTP_HDCP_KEY3_WR(HW_OCOTP_HDCP_KEY3_RD() ^ (v)))
  3800. #endif
  3801. /*
  3802. * constants & macros for individual OCOTP_HDCP_KEY3 bitfields
  3803. */
  3804. /* --- Register HW_OCOTP_HDCP_KEY3, field BITS[31:0] (RW)
  3805. *
  3806. * Reflects value of OTP Bank 6, word 3 (ADDR = 0x33).
  3807. */
  3808. #define BP_OCOTP_HDCP_KEY3_BITS (0) //!< Bit position for OCOTP_HDCP_KEY3_BITS.
  3809. #define BM_OCOTP_HDCP_KEY3_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY3_BITS.
  3810. //! @brief Get value of OCOTP_HDCP_KEY3_BITS from a register value.
  3811. #define BG_OCOTP_HDCP_KEY3_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY3_BITS) >> BP_OCOTP_HDCP_KEY3_BITS)
  3812. //! @brief Format value for bitfield OCOTP_HDCP_KEY3_BITS.
  3813. #define BF_OCOTP_HDCP_KEY3_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY3_BITS) & BM_OCOTP_HDCP_KEY3_BITS)
  3814. #ifndef __LANGUAGE_ASM__
  3815. //! @brief Set the BITS field to a new value.
  3816. #define BW_OCOTP_HDCP_KEY3_BITS(v) (HW_OCOTP_HDCP_KEY3_WR((HW_OCOTP_HDCP_KEY3_RD() & ~BM_OCOTP_HDCP_KEY3_BITS) | BF_OCOTP_HDCP_KEY3_BITS(v)))
  3817. #endif
  3818. //-------------------------------------------------------------------------------------------
  3819. // HW_OCOTP_HDCP_KEY4 - Value of OTP Bank6 Word4 (HW Capabilities)
  3820. //-------------------------------------------------------------------------------------------
  3821. #ifndef __LANGUAGE_ASM__
  3822. /*!
  3823. * @brief HW_OCOTP_HDCP_KEY4 - Value of OTP Bank6 Word4 (HW Capabilities) (RW)
  3824. *
  3825. * Reset value: 0x00000000
  3826. *
  3827. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  3828. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank Bank 6, word 4 (ADDR =
  3829. * 0x34). EXAMPLE Empty Example.
  3830. */
  3831. typedef union _hw_ocotp_hdcp_key4
  3832. {
  3833. reg32_t U;
  3834. struct _hw_ocotp_hdcp_key4_bitfields
  3835. {
  3836. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 6, word 4 (ADDR = 0x34).
  3837. } B;
  3838. } hw_ocotp_hdcp_key4_t;
  3839. #endif
  3840. /*
  3841. * constants & macros for entire OCOTP_HDCP_KEY4 register
  3842. */
  3843. #define HW_OCOTP_HDCP_KEY4_ADDR (REGS_OCOTP_BASE + 0x840)
  3844. #ifndef __LANGUAGE_ASM__
  3845. #define HW_OCOTP_HDCP_KEY4 (*(volatile hw_ocotp_hdcp_key4_t *) HW_OCOTP_HDCP_KEY4_ADDR)
  3846. #define HW_OCOTP_HDCP_KEY4_RD() (HW_OCOTP_HDCP_KEY4.U)
  3847. #define HW_OCOTP_HDCP_KEY4_WR(v) (HW_OCOTP_HDCP_KEY4.U = (v))
  3848. #define HW_OCOTP_HDCP_KEY4_SET(v) (HW_OCOTP_HDCP_KEY4_WR(HW_OCOTP_HDCP_KEY4_RD() | (v)))
  3849. #define HW_OCOTP_HDCP_KEY4_CLR(v) (HW_OCOTP_HDCP_KEY4_WR(HW_OCOTP_HDCP_KEY4_RD() & ~(v)))
  3850. #define HW_OCOTP_HDCP_KEY4_TOG(v) (HW_OCOTP_HDCP_KEY4_WR(HW_OCOTP_HDCP_KEY4_RD() ^ (v)))
  3851. #endif
  3852. /*
  3853. * constants & macros for individual OCOTP_HDCP_KEY4 bitfields
  3854. */
  3855. /* --- Register HW_OCOTP_HDCP_KEY4, field BITS[31:0] (RW)
  3856. *
  3857. * Reflects value of OTP Bank 6, word 4 (ADDR = 0x34).
  3858. */
  3859. #define BP_OCOTP_HDCP_KEY4_BITS (0) //!< Bit position for OCOTP_HDCP_KEY4_BITS.
  3860. #define BM_OCOTP_HDCP_KEY4_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY4_BITS.
  3861. //! @brief Get value of OCOTP_HDCP_KEY4_BITS from a register value.
  3862. #define BG_OCOTP_HDCP_KEY4_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY4_BITS) >> BP_OCOTP_HDCP_KEY4_BITS)
  3863. //! @brief Format value for bitfield OCOTP_HDCP_KEY4_BITS.
  3864. #define BF_OCOTP_HDCP_KEY4_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY4_BITS) & BM_OCOTP_HDCP_KEY4_BITS)
  3865. #ifndef __LANGUAGE_ASM__
  3866. //! @brief Set the BITS field to a new value.
  3867. #define BW_OCOTP_HDCP_KEY4_BITS(v) (HW_OCOTP_HDCP_KEY4_WR((HW_OCOTP_HDCP_KEY4_RD() & ~BM_OCOTP_HDCP_KEY4_BITS) | BF_OCOTP_HDCP_KEY4_BITS(v)))
  3868. #endif
  3869. //-------------------------------------------------------------------------------------------
  3870. // HW_OCOTP_HDCP_KEY5 - Value of OTP Bank6 Word5 (HW Capabilities)
  3871. //-------------------------------------------------------------------------------------------
  3872. #ifndef __LANGUAGE_ASM__
  3873. /*!
  3874. * @brief HW_OCOTP_HDCP_KEY5 - Value of OTP Bank6 Word5 (HW Capabilities) (RW)
  3875. *
  3876. * Reset value: 0x00000000
  3877. *
  3878. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  3879. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 6, word 5 (ADDR = 0x35).
  3880. * EXAMPLE Empty Example.
  3881. */
  3882. typedef union _hw_ocotp_hdcp_key5
  3883. {
  3884. reg32_t U;
  3885. struct _hw_ocotp_hdcp_key5_bitfields
  3886. {
  3887. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 6, word 5 (ADDR = 0x35).
  3888. } B;
  3889. } hw_ocotp_hdcp_key5_t;
  3890. #endif
  3891. /*
  3892. * constants & macros for entire OCOTP_HDCP_KEY5 register
  3893. */
  3894. #define HW_OCOTP_HDCP_KEY5_ADDR (REGS_OCOTP_BASE + 0x850)
  3895. #ifndef __LANGUAGE_ASM__
  3896. #define HW_OCOTP_HDCP_KEY5 (*(volatile hw_ocotp_hdcp_key5_t *) HW_OCOTP_HDCP_KEY5_ADDR)
  3897. #define HW_OCOTP_HDCP_KEY5_RD() (HW_OCOTP_HDCP_KEY5.U)
  3898. #define HW_OCOTP_HDCP_KEY5_WR(v) (HW_OCOTP_HDCP_KEY5.U = (v))
  3899. #define HW_OCOTP_HDCP_KEY5_SET(v) (HW_OCOTP_HDCP_KEY5_WR(HW_OCOTP_HDCP_KEY5_RD() | (v)))
  3900. #define HW_OCOTP_HDCP_KEY5_CLR(v) (HW_OCOTP_HDCP_KEY5_WR(HW_OCOTP_HDCP_KEY5_RD() & ~(v)))
  3901. #define HW_OCOTP_HDCP_KEY5_TOG(v) (HW_OCOTP_HDCP_KEY5_WR(HW_OCOTP_HDCP_KEY5_RD() ^ (v)))
  3902. #endif
  3903. /*
  3904. * constants & macros for individual OCOTP_HDCP_KEY5 bitfields
  3905. */
  3906. /* --- Register HW_OCOTP_HDCP_KEY5, field BITS[31:0] (RW)
  3907. *
  3908. * Reflects value of OTP Bank 6, word 5 (ADDR = 0x35).
  3909. */
  3910. #define BP_OCOTP_HDCP_KEY5_BITS (0) //!< Bit position for OCOTP_HDCP_KEY5_BITS.
  3911. #define BM_OCOTP_HDCP_KEY5_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY5_BITS.
  3912. //! @brief Get value of OCOTP_HDCP_KEY5_BITS from a register value.
  3913. #define BG_OCOTP_HDCP_KEY5_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY5_BITS) >> BP_OCOTP_HDCP_KEY5_BITS)
  3914. //! @brief Format value for bitfield OCOTP_HDCP_KEY5_BITS.
  3915. #define BF_OCOTP_HDCP_KEY5_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY5_BITS) & BM_OCOTP_HDCP_KEY5_BITS)
  3916. #ifndef __LANGUAGE_ASM__
  3917. //! @brief Set the BITS field to a new value.
  3918. #define BW_OCOTP_HDCP_KEY5_BITS(v) (HW_OCOTP_HDCP_KEY5_WR((HW_OCOTP_HDCP_KEY5_RD() & ~BM_OCOTP_HDCP_KEY5_BITS) | BF_OCOTP_HDCP_KEY5_BITS(v)))
  3919. #endif
  3920. //-------------------------------------------------------------------------------------------
  3921. // HW_OCOTP_HDCP_KEY6 - Value of OTP Bank6 Word6 (HW Capabilities)
  3922. //-------------------------------------------------------------------------------------------
  3923. #ifndef __LANGUAGE_ASM__
  3924. /*!
  3925. * @brief HW_OCOTP_HDCP_KEY6 - Value of OTP Bank6 Word6 (HW Capabilities) (RW)
  3926. *
  3927. * Reset value: 0x00000000
  3928. *
  3929. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  3930. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 6, word 6 (ADDR = 0x36).
  3931. * EXAMPLE Empty Example.
  3932. */
  3933. typedef union _hw_ocotp_hdcp_key6
  3934. {
  3935. reg32_t U;
  3936. struct _hw_ocotp_hdcp_key6_bitfields
  3937. {
  3938. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 6, word 6 (ADDR = 0x36).
  3939. } B;
  3940. } hw_ocotp_hdcp_key6_t;
  3941. #endif
  3942. /*
  3943. * constants & macros for entire OCOTP_HDCP_KEY6 register
  3944. */
  3945. #define HW_OCOTP_HDCP_KEY6_ADDR (REGS_OCOTP_BASE + 0x860)
  3946. #ifndef __LANGUAGE_ASM__
  3947. #define HW_OCOTP_HDCP_KEY6 (*(volatile hw_ocotp_hdcp_key6_t *) HW_OCOTP_HDCP_KEY6_ADDR)
  3948. #define HW_OCOTP_HDCP_KEY6_RD() (HW_OCOTP_HDCP_KEY6.U)
  3949. #define HW_OCOTP_HDCP_KEY6_WR(v) (HW_OCOTP_HDCP_KEY6.U = (v))
  3950. #define HW_OCOTP_HDCP_KEY6_SET(v) (HW_OCOTP_HDCP_KEY6_WR(HW_OCOTP_HDCP_KEY6_RD() | (v)))
  3951. #define HW_OCOTP_HDCP_KEY6_CLR(v) (HW_OCOTP_HDCP_KEY6_WR(HW_OCOTP_HDCP_KEY6_RD() & ~(v)))
  3952. #define HW_OCOTP_HDCP_KEY6_TOG(v) (HW_OCOTP_HDCP_KEY6_WR(HW_OCOTP_HDCP_KEY6_RD() ^ (v)))
  3953. #endif
  3954. /*
  3955. * constants & macros for individual OCOTP_HDCP_KEY6 bitfields
  3956. */
  3957. /* --- Register HW_OCOTP_HDCP_KEY6, field BITS[31:0] (RW)
  3958. *
  3959. * Reflects value of OTP Bank 6, word 6 (ADDR = 0x36).
  3960. */
  3961. #define BP_OCOTP_HDCP_KEY6_BITS (0) //!< Bit position for OCOTP_HDCP_KEY6_BITS.
  3962. #define BM_OCOTP_HDCP_KEY6_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY6_BITS.
  3963. //! @brief Get value of OCOTP_HDCP_KEY6_BITS from a register value.
  3964. #define BG_OCOTP_HDCP_KEY6_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY6_BITS) >> BP_OCOTP_HDCP_KEY6_BITS)
  3965. //! @brief Format value for bitfield OCOTP_HDCP_KEY6_BITS.
  3966. #define BF_OCOTP_HDCP_KEY6_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY6_BITS) & BM_OCOTP_HDCP_KEY6_BITS)
  3967. #ifndef __LANGUAGE_ASM__
  3968. //! @brief Set the BITS field to a new value.
  3969. #define BW_OCOTP_HDCP_KEY6_BITS(v) (HW_OCOTP_HDCP_KEY6_WR((HW_OCOTP_HDCP_KEY6_RD() & ~BM_OCOTP_HDCP_KEY6_BITS) | BF_OCOTP_HDCP_KEY6_BITS(v)))
  3970. #endif
  3971. //-------------------------------------------------------------------------------------------
  3972. // HW_OCOTP_HDCP_KEY7 - Value of OTP Bank6 Word7 (HW Capabilities)
  3973. //-------------------------------------------------------------------------------------------
  3974. #ifndef __LANGUAGE_ASM__
  3975. /*!
  3976. * @brief HW_OCOTP_HDCP_KEY7 - Value of OTP Bank6 Word7 (HW Capabilities) (RW)
  3977. *
  3978. * Reset value: 0x00000000
  3979. *
  3980. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  3981. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 6, word 7 (ADDR = 0x37).
  3982. * EXAMPLE Empty Example.
  3983. */
  3984. typedef union _hw_ocotp_hdcp_key7
  3985. {
  3986. reg32_t U;
  3987. struct _hw_ocotp_hdcp_key7_bitfields
  3988. {
  3989. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 6, word 7 (ADDR = 0x37).
  3990. } B;
  3991. } hw_ocotp_hdcp_key7_t;
  3992. #endif
  3993. /*
  3994. * constants & macros for entire OCOTP_HDCP_KEY7 register
  3995. */
  3996. #define HW_OCOTP_HDCP_KEY7_ADDR (REGS_OCOTP_BASE + 0x870)
  3997. #ifndef __LANGUAGE_ASM__
  3998. #define HW_OCOTP_HDCP_KEY7 (*(volatile hw_ocotp_hdcp_key7_t *) HW_OCOTP_HDCP_KEY7_ADDR)
  3999. #define HW_OCOTP_HDCP_KEY7_RD() (HW_OCOTP_HDCP_KEY7.U)
  4000. #define HW_OCOTP_HDCP_KEY7_WR(v) (HW_OCOTP_HDCP_KEY7.U = (v))
  4001. #define HW_OCOTP_HDCP_KEY7_SET(v) (HW_OCOTP_HDCP_KEY7_WR(HW_OCOTP_HDCP_KEY7_RD() | (v)))
  4002. #define HW_OCOTP_HDCP_KEY7_CLR(v) (HW_OCOTP_HDCP_KEY7_WR(HW_OCOTP_HDCP_KEY7_RD() & ~(v)))
  4003. #define HW_OCOTP_HDCP_KEY7_TOG(v) (HW_OCOTP_HDCP_KEY7_WR(HW_OCOTP_HDCP_KEY7_RD() ^ (v)))
  4004. #endif
  4005. /*
  4006. * constants & macros for individual OCOTP_HDCP_KEY7 bitfields
  4007. */
  4008. /* --- Register HW_OCOTP_HDCP_KEY7, field BITS[31:0] (RW)
  4009. *
  4010. * Reflects value of OTP Bank 6, word 7 (ADDR = 0x37).
  4011. */
  4012. #define BP_OCOTP_HDCP_KEY7_BITS (0) //!< Bit position for OCOTP_HDCP_KEY7_BITS.
  4013. #define BM_OCOTP_HDCP_KEY7_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY7_BITS.
  4014. //! @brief Get value of OCOTP_HDCP_KEY7_BITS from a register value.
  4015. #define BG_OCOTP_HDCP_KEY7_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY7_BITS) >> BP_OCOTP_HDCP_KEY7_BITS)
  4016. //! @brief Format value for bitfield OCOTP_HDCP_KEY7_BITS.
  4017. #define BF_OCOTP_HDCP_KEY7_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY7_BITS) & BM_OCOTP_HDCP_KEY7_BITS)
  4018. #ifndef __LANGUAGE_ASM__
  4019. //! @brief Set the BITS field to a new value.
  4020. #define BW_OCOTP_HDCP_KEY7_BITS(v) (HW_OCOTP_HDCP_KEY7_WR((HW_OCOTP_HDCP_KEY7_RD() & ~BM_OCOTP_HDCP_KEY7_BITS) | BF_OCOTP_HDCP_KEY7_BITS(v)))
  4021. #endif
  4022. //-------------------------------------------------------------------------------------------
  4023. // HW_OCOTP_HDCP_KEY8 - Value of OTP Bank7 Word0 (HW Capabilities)
  4024. //-------------------------------------------------------------------------------------------
  4025. #ifndef __LANGUAGE_ASM__
  4026. /*!
  4027. * @brief HW_OCOTP_HDCP_KEY8 - Value of OTP Bank7 Word0 (HW Capabilities) (RW)
  4028. *
  4029. * Reset value: 0x00000000
  4030. *
  4031. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  4032. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 7, word 0 (ADDR = 0x38).
  4033. * EXAMPLE Empty Example.
  4034. */
  4035. typedef union _hw_ocotp_hdcp_key8
  4036. {
  4037. reg32_t U;
  4038. struct _hw_ocotp_hdcp_key8_bitfields
  4039. {
  4040. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 7, word 0 (ADDR = 0x38).
  4041. } B;
  4042. } hw_ocotp_hdcp_key8_t;
  4043. #endif
  4044. /*
  4045. * constants & macros for entire OCOTP_HDCP_KEY8 register
  4046. */
  4047. #define HW_OCOTP_HDCP_KEY8_ADDR (REGS_OCOTP_BASE + 0x880)
  4048. #ifndef __LANGUAGE_ASM__
  4049. #define HW_OCOTP_HDCP_KEY8 (*(volatile hw_ocotp_hdcp_key8_t *) HW_OCOTP_HDCP_KEY8_ADDR)
  4050. #define HW_OCOTP_HDCP_KEY8_RD() (HW_OCOTP_HDCP_KEY8.U)
  4051. #define HW_OCOTP_HDCP_KEY8_WR(v) (HW_OCOTP_HDCP_KEY8.U = (v))
  4052. #define HW_OCOTP_HDCP_KEY8_SET(v) (HW_OCOTP_HDCP_KEY8_WR(HW_OCOTP_HDCP_KEY8_RD() | (v)))
  4053. #define HW_OCOTP_HDCP_KEY8_CLR(v) (HW_OCOTP_HDCP_KEY8_WR(HW_OCOTP_HDCP_KEY8_RD() & ~(v)))
  4054. #define HW_OCOTP_HDCP_KEY8_TOG(v) (HW_OCOTP_HDCP_KEY8_WR(HW_OCOTP_HDCP_KEY8_RD() ^ (v)))
  4055. #endif
  4056. /*
  4057. * constants & macros for individual OCOTP_HDCP_KEY8 bitfields
  4058. */
  4059. /* --- Register HW_OCOTP_HDCP_KEY8, field BITS[31:0] (RW)
  4060. *
  4061. * Reflects value of OTP Bank 7, word 0 (ADDR = 0x38).
  4062. */
  4063. #define BP_OCOTP_HDCP_KEY8_BITS (0) //!< Bit position for OCOTP_HDCP_KEY8_BITS.
  4064. #define BM_OCOTP_HDCP_KEY8_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY8_BITS.
  4065. //! @brief Get value of OCOTP_HDCP_KEY8_BITS from a register value.
  4066. #define BG_OCOTP_HDCP_KEY8_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY8_BITS) >> BP_OCOTP_HDCP_KEY8_BITS)
  4067. //! @brief Format value for bitfield OCOTP_HDCP_KEY8_BITS.
  4068. #define BF_OCOTP_HDCP_KEY8_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY8_BITS) & BM_OCOTP_HDCP_KEY8_BITS)
  4069. #ifndef __LANGUAGE_ASM__
  4070. //! @brief Set the BITS field to a new value.
  4071. #define BW_OCOTP_HDCP_KEY8_BITS(v) (HW_OCOTP_HDCP_KEY8_WR((HW_OCOTP_HDCP_KEY8_RD() & ~BM_OCOTP_HDCP_KEY8_BITS) | BF_OCOTP_HDCP_KEY8_BITS(v)))
  4072. #endif
  4073. //-------------------------------------------------------------------------------------------
  4074. // HW_OCOTP_HDCP_KEY9 - Value of OTP Bank7 Word1 (HW Capabilities)
  4075. //-------------------------------------------------------------------------------------------
  4076. #ifndef __LANGUAGE_ASM__
  4077. /*!
  4078. * @brief HW_OCOTP_HDCP_KEY9 - Value of OTP Bank7 Word1 (HW Capabilities) (RW)
  4079. *
  4080. * Reset value: 0x00000000
  4081. *
  4082. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  4083. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 7, word 1 (ADDR = 0x39).
  4084. * EXAMPLE Empty Example.
  4085. */
  4086. typedef union _hw_ocotp_hdcp_key9
  4087. {
  4088. reg32_t U;
  4089. struct _hw_ocotp_hdcp_key9_bitfields
  4090. {
  4091. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 7, word 1 (ADDR = 0x39).
  4092. } B;
  4093. } hw_ocotp_hdcp_key9_t;
  4094. #endif
  4095. /*
  4096. * constants & macros for entire OCOTP_HDCP_KEY9 register
  4097. */
  4098. #define HW_OCOTP_HDCP_KEY9_ADDR (REGS_OCOTP_BASE + 0x890)
  4099. #ifndef __LANGUAGE_ASM__
  4100. #define HW_OCOTP_HDCP_KEY9 (*(volatile hw_ocotp_hdcp_key9_t *) HW_OCOTP_HDCP_KEY9_ADDR)
  4101. #define HW_OCOTP_HDCP_KEY9_RD() (HW_OCOTP_HDCP_KEY9.U)
  4102. #define HW_OCOTP_HDCP_KEY9_WR(v) (HW_OCOTP_HDCP_KEY9.U = (v))
  4103. #define HW_OCOTP_HDCP_KEY9_SET(v) (HW_OCOTP_HDCP_KEY9_WR(HW_OCOTP_HDCP_KEY9_RD() | (v)))
  4104. #define HW_OCOTP_HDCP_KEY9_CLR(v) (HW_OCOTP_HDCP_KEY9_WR(HW_OCOTP_HDCP_KEY9_RD() & ~(v)))
  4105. #define HW_OCOTP_HDCP_KEY9_TOG(v) (HW_OCOTP_HDCP_KEY9_WR(HW_OCOTP_HDCP_KEY9_RD() ^ (v)))
  4106. #endif
  4107. /*
  4108. * constants & macros for individual OCOTP_HDCP_KEY9 bitfields
  4109. */
  4110. /* --- Register HW_OCOTP_HDCP_KEY9, field BITS[31:0] (RW)
  4111. *
  4112. * Reflects value of OTP Bank 7, word 1 (ADDR = 0x39).
  4113. */
  4114. #define BP_OCOTP_HDCP_KEY9_BITS (0) //!< Bit position for OCOTP_HDCP_KEY9_BITS.
  4115. #define BM_OCOTP_HDCP_KEY9_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY9_BITS.
  4116. //! @brief Get value of OCOTP_HDCP_KEY9_BITS from a register value.
  4117. #define BG_OCOTP_HDCP_KEY9_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY9_BITS) >> BP_OCOTP_HDCP_KEY9_BITS)
  4118. //! @brief Format value for bitfield OCOTP_HDCP_KEY9_BITS.
  4119. #define BF_OCOTP_HDCP_KEY9_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY9_BITS) & BM_OCOTP_HDCP_KEY9_BITS)
  4120. #ifndef __LANGUAGE_ASM__
  4121. //! @brief Set the BITS field to a new value.
  4122. #define BW_OCOTP_HDCP_KEY9_BITS(v) (HW_OCOTP_HDCP_KEY9_WR((HW_OCOTP_HDCP_KEY9_RD() & ~BM_OCOTP_HDCP_KEY9_BITS) | BF_OCOTP_HDCP_KEY9_BITS(v)))
  4123. #endif
  4124. //-------------------------------------------------------------------------------------------
  4125. // HW_OCOTP_HDCP_KEY10 - Value of OTP Bank7 Word2 (HW Capabilities)
  4126. //-------------------------------------------------------------------------------------------
  4127. #ifndef __LANGUAGE_ASM__
  4128. /*!
  4129. * @brief HW_OCOTP_HDCP_KEY10 - Value of OTP Bank7 Word2 (HW Capabilities) (RW)
  4130. *
  4131. * Reset value: 0x00000000
  4132. *
  4133. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  4134. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 7, word 2 (ADDR = 0x3a).
  4135. * EXAMPLE Empty Example.
  4136. */
  4137. typedef union _hw_ocotp_hdcp_key10
  4138. {
  4139. reg32_t U;
  4140. struct _hw_ocotp_hdcp_key10_bitfields
  4141. {
  4142. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 7, word 2 (ADDR = 0x3a).
  4143. } B;
  4144. } hw_ocotp_hdcp_key10_t;
  4145. #endif
  4146. /*
  4147. * constants & macros for entire OCOTP_HDCP_KEY10 register
  4148. */
  4149. #define HW_OCOTP_HDCP_KEY10_ADDR (REGS_OCOTP_BASE + 0x8a0)
  4150. #ifndef __LANGUAGE_ASM__
  4151. #define HW_OCOTP_HDCP_KEY10 (*(volatile hw_ocotp_hdcp_key10_t *) HW_OCOTP_HDCP_KEY10_ADDR)
  4152. #define HW_OCOTP_HDCP_KEY10_RD() (HW_OCOTP_HDCP_KEY10.U)
  4153. #define HW_OCOTP_HDCP_KEY10_WR(v) (HW_OCOTP_HDCP_KEY10.U = (v))
  4154. #define HW_OCOTP_HDCP_KEY10_SET(v) (HW_OCOTP_HDCP_KEY10_WR(HW_OCOTP_HDCP_KEY10_RD() | (v)))
  4155. #define HW_OCOTP_HDCP_KEY10_CLR(v) (HW_OCOTP_HDCP_KEY10_WR(HW_OCOTP_HDCP_KEY10_RD() & ~(v)))
  4156. #define HW_OCOTP_HDCP_KEY10_TOG(v) (HW_OCOTP_HDCP_KEY10_WR(HW_OCOTP_HDCP_KEY10_RD() ^ (v)))
  4157. #endif
  4158. /*
  4159. * constants & macros for individual OCOTP_HDCP_KEY10 bitfields
  4160. */
  4161. /* --- Register HW_OCOTP_HDCP_KEY10, field BITS[31:0] (RW)
  4162. *
  4163. * Reflects value of OTP Bank 7, word 2 (ADDR = 0x3a).
  4164. */
  4165. #define BP_OCOTP_HDCP_KEY10_BITS (0) //!< Bit position for OCOTP_HDCP_KEY10_BITS.
  4166. #define BM_OCOTP_HDCP_KEY10_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY10_BITS.
  4167. //! @brief Get value of OCOTP_HDCP_KEY10_BITS from a register value.
  4168. #define BG_OCOTP_HDCP_KEY10_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY10_BITS) >> BP_OCOTP_HDCP_KEY10_BITS)
  4169. //! @brief Format value for bitfield OCOTP_HDCP_KEY10_BITS.
  4170. #define BF_OCOTP_HDCP_KEY10_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY10_BITS) & BM_OCOTP_HDCP_KEY10_BITS)
  4171. #ifndef __LANGUAGE_ASM__
  4172. //! @brief Set the BITS field to a new value.
  4173. #define BW_OCOTP_HDCP_KEY10_BITS(v) (HW_OCOTP_HDCP_KEY10_WR((HW_OCOTP_HDCP_KEY10_RD() & ~BM_OCOTP_HDCP_KEY10_BITS) | BF_OCOTP_HDCP_KEY10_BITS(v)))
  4174. #endif
  4175. //-------------------------------------------------------------------------------------------
  4176. // HW_OCOTP_HDCP_KEY11 - Value of OTP Bank7 Word3 (HW Capabilities)
  4177. //-------------------------------------------------------------------------------------------
  4178. #ifndef __LANGUAGE_ASM__
  4179. /*!
  4180. * @brief HW_OCOTP_HDCP_KEY11 - Value of OTP Bank7 Word3 (HW Capabilities) (RW)
  4181. *
  4182. * Reset value: 0x00000000
  4183. *
  4184. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  4185. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 7, word 3 (ADDR = 0x3b).
  4186. * EXAMPLE Empty Example.
  4187. */
  4188. typedef union _hw_ocotp_hdcp_key11
  4189. {
  4190. reg32_t U;
  4191. struct _hw_ocotp_hdcp_key11_bitfields
  4192. {
  4193. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 7, word 3 (ADDR = 0x3b).
  4194. } B;
  4195. } hw_ocotp_hdcp_key11_t;
  4196. #endif
  4197. /*
  4198. * constants & macros for entire OCOTP_HDCP_KEY11 register
  4199. */
  4200. #define HW_OCOTP_HDCP_KEY11_ADDR (REGS_OCOTP_BASE + 0x8b0)
  4201. #ifndef __LANGUAGE_ASM__
  4202. #define HW_OCOTP_HDCP_KEY11 (*(volatile hw_ocotp_hdcp_key11_t *) HW_OCOTP_HDCP_KEY11_ADDR)
  4203. #define HW_OCOTP_HDCP_KEY11_RD() (HW_OCOTP_HDCP_KEY11.U)
  4204. #define HW_OCOTP_HDCP_KEY11_WR(v) (HW_OCOTP_HDCP_KEY11.U = (v))
  4205. #define HW_OCOTP_HDCP_KEY11_SET(v) (HW_OCOTP_HDCP_KEY11_WR(HW_OCOTP_HDCP_KEY11_RD() | (v)))
  4206. #define HW_OCOTP_HDCP_KEY11_CLR(v) (HW_OCOTP_HDCP_KEY11_WR(HW_OCOTP_HDCP_KEY11_RD() & ~(v)))
  4207. #define HW_OCOTP_HDCP_KEY11_TOG(v) (HW_OCOTP_HDCP_KEY11_WR(HW_OCOTP_HDCP_KEY11_RD() ^ (v)))
  4208. #endif
  4209. /*
  4210. * constants & macros for individual OCOTP_HDCP_KEY11 bitfields
  4211. */
  4212. /* --- Register HW_OCOTP_HDCP_KEY11, field BITS[31:0] (RW)
  4213. *
  4214. * Reflects value of OTP Bank 7, word 3 (ADDR = 0x3b).
  4215. */
  4216. #define BP_OCOTP_HDCP_KEY11_BITS (0) //!< Bit position for OCOTP_HDCP_KEY11_BITS.
  4217. #define BM_OCOTP_HDCP_KEY11_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY11_BITS.
  4218. //! @brief Get value of OCOTP_HDCP_KEY11_BITS from a register value.
  4219. #define BG_OCOTP_HDCP_KEY11_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY11_BITS) >> BP_OCOTP_HDCP_KEY11_BITS)
  4220. //! @brief Format value for bitfield OCOTP_HDCP_KEY11_BITS.
  4221. #define BF_OCOTP_HDCP_KEY11_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY11_BITS) & BM_OCOTP_HDCP_KEY11_BITS)
  4222. #ifndef __LANGUAGE_ASM__
  4223. //! @brief Set the BITS field to a new value.
  4224. #define BW_OCOTP_HDCP_KEY11_BITS(v) (HW_OCOTP_HDCP_KEY11_WR((HW_OCOTP_HDCP_KEY11_RD() & ~BM_OCOTP_HDCP_KEY11_BITS) | BF_OCOTP_HDCP_KEY11_BITS(v)))
  4225. #endif
  4226. //-------------------------------------------------------------------------------------------
  4227. // HW_OCOTP_HDCP_KEY12 - Value of OTP Bank7 Word4 (HW Capabilities)
  4228. //-------------------------------------------------------------------------------------------
  4229. #ifndef __LANGUAGE_ASM__
  4230. /*!
  4231. * @brief HW_OCOTP_HDCP_KEY12 - Value of OTP Bank7 Word4 (HW Capabilities) (RW)
  4232. *
  4233. * Reset value: 0x00000000
  4234. *
  4235. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  4236. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 7, word 4 (ADDR = 0x3c).
  4237. * EXAMPLE Empty Example.
  4238. */
  4239. typedef union _hw_ocotp_hdcp_key12
  4240. {
  4241. reg32_t U;
  4242. struct _hw_ocotp_hdcp_key12_bitfields
  4243. {
  4244. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 7, word 4 (ADDR = 0x3c).
  4245. } B;
  4246. } hw_ocotp_hdcp_key12_t;
  4247. #endif
  4248. /*
  4249. * constants & macros for entire OCOTP_HDCP_KEY12 register
  4250. */
  4251. #define HW_OCOTP_HDCP_KEY12_ADDR (REGS_OCOTP_BASE + 0x8c0)
  4252. #ifndef __LANGUAGE_ASM__
  4253. #define HW_OCOTP_HDCP_KEY12 (*(volatile hw_ocotp_hdcp_key12_t *) HW_OCOTP_HDCP_KEY12_ADDR)
  4254. #define HW_OCOTP_HDCP_KEY12_RD() (HW_OCOTP_HDCP_KEY12.U)
  4255. #define HW_OCOTP_HDCP_KEY12_WR(v) (HW_OCOTP_HDCP_KEY12.U = (v))
  4256. #define HW_OCOTP_HDCP_KEY12_SET(v) (HW_OCOTP_HDCP_KEY12_WR(HW_OCOTP_HDCP_KEY12_RD() | (v)))
  4257. #define HW_OCOTP_HDCP_KEY12_CLR(v) (HW_OCOTP_HDCP_KEY12_WR(HW_OCOTP_HDCP_KEY12_RD() & ~(v)))
  4258. #define HW_OCOTP_HDCP_KEY12_TOG(v) (HW_OCOTP_HDCP_KEY12_WR(HW_OCOTP_HDCP_KEY12_RD() ^ (v)))
  4259. #endif
  4260. /*
  4261. * constants & macros for individual OCOTP_HDCP_KEY12 bitfields
  4262. */
  4263. /* --- Register HW_OCOTP_HDCP_KEY12, field BITS[31:0] (RW)
  4264. *
  4265. * Reflects value of OTP Bank 7, word 4 (ADDR = 0x3c).
  4266. */
  4267. #define BP_OCOTP_HDCP_KEY12_BITS (0) //!< Bit position for OCOTP_HDCP_KEY12_BITS.
  4268. #define BM_OCOTP_HDCP_KEY12_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY12_BITS.
  4269. //! @brief Get value of OCOTP_HDCP_KEY12_BITS from a register value.
  4270. #define BG_OCOTP_HDCP_KEY12_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY12_BITS) >> BP_OCOTP_HDCP_KEY12_BITS)
  4271. //! @brief Format value for bitfield OCOTP_HDCP_KEY12_BITS.
  4272. #define BF_OCOTP_HDCP_KEY12_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY12_BITS) & BM_OCOTP_HDCP_KEY12_BITS)
  4273. #ifndef __LANGUAGE_ASM__
  4274. //! @brief Set the BITS field to a new value.
  4275. #define BW_OCOTP_HDCP_KEY12_BITS(v) (HW_OCOTP_HDCP_KEY12_WR((HW_OCOTP_HDCP_KEY12_RD() & ~BM_OCOTP_HDCP_KEY12_BITS) | BF_OCOTP_HDCP_KEY12_BITS(v)))
  4276. #endif
  4277. //-------------------------------------------------------------------------------------------
  4278. // HW_OCOTP_HDCP_KEY13 - Value of OTP Bank7 Word5 (HW Capabilities)
  4279. //-------------------------------------------------------------------------------------------
  4280. #ifndef __LANGUAGE_ASM__
  4281. /*!
  4282. * @brief HW_OCOTP_HDCP_KEY13 - Value of OTP Bank7 Word5 (HW Capabilities) (RW)
  4283. *
  4284. * Reset value: 0x00000000
  4285. *
  4286. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  4287. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 7, word 5 (ADDR = 0x3d).
  4288. * EXAMPLE Empty Example.
  4289. */
  4290. typedef union _hw_ocotp_hdcp_key13
  4291. {
  4292. reg32_t U;
  4293. struct _hw_ocotp_hdcp_key13_bitfields
  4294. {
  4295. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 7, word 5 (ADDR = 0x3d).
  4296. } B;
  4297. } hw_ocotp_hdcp_key13_t;
  4298. #endif
  4299. /*
  4300. * constants & macros for entire OCOTP_HDCP_KEY13 register
  4301. */
  4302. #define HW_OCOTP_HDCP_KEY13_ADDR (REGS_OCOTP_BASE + 0x8d0)
  4303. #ifndef __LANGUAGE_ASM__
  4304. #define HW_OCOTP_HDCP_KEY13 (*(volatile hw_ocotp_hdcp_key13_t *) HW_OCOTP_HDCP_KEY13_ADDR)
  4305. #define HW_OCOTP_HDCP_KEY13_RD() (HW_OCOTP_HDCP_KEY13.U)
  4306. #define HW_OCOTP_HDCP_KEY13_WR(v) (HW_OCOTP_HDCP_KEY13.U = (v))
  4307. #define HW_OCOTP_HDCP_KEY13_SET(v) (HW_OCOTP_HDCP_KEY13_WR(HW_OCOTP_HDCP_KEY13_RD() | (v)))
  4308. #define HW_OCOTP_HDCP_KEY13_CLR(v) (HW_OCOTP_HDCP_KEY13_WR(HW_OCOTP_HDCP_KEY13_RD() & ~(v)))
  4309. #define HW_OCOTP_HDCP_KEY13_TOG(v) (HW_OCOTP_HDCP_KEY13_WR(HW_OCOTP_HDCP_KEY13_RD() ^ (v)))
  4310. #endif
  4311. /*
  4312. * constants & macros for individual OCOTP_HDCP_KEY13 bitfields
  4313. */
  4314. /* --- Register HW_OCOTP_HDCP_KEY13, field BITS[31:0] (RW)
  4315. *
  4316. * Reflects value of OTP Bank 7, word 5 (ADDR = 0x3d).
  4317. */
  4318. #define BP_OCOTP_HDCP_KEY13_BITS (0) //!< Bit position for OCOTP_HDCP_KEY13_BITS.
  4319. #define BM_OCOTP_HDCP_KEY13_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY13_BITS.
  4320. //! @brief Get value of OCOTP_HDCP_KEY13_BITS from a register value.
  4321. #define BG_OCOTP_HDCP_KEY13_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY13_BITS) >> BP_OCOTP_HDCP_KEY13_BITS)
  4322. //! @brief Format value for bitfield OCOTP_HDCP_KEY13_BITS.
  4323. #define BF_OCOTP_HDCP_KEY13_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY13_BITS) & BM_OCOTP_HDCP_KEY13_BITS)
  4324. #ifndef __LANGUAGE_ASM__
  4325. //! @brief Set the BITS field to a new value.
  4326. #define BW_OCOTP_HDCP_KEY13_BITS(v) (HW_OCOTP_HDCP_KEY13_WR((HW_OCOTP_HDCP_KEY13_RD() & ~BM_OCOTP_HDCP_KEY13_BITS) | BF_OCOTP_HDCP_KEY13_BITS(v)))
  4327. #endif
  4328. //-------------------------------------------------------------------------------------------
  4329. // HW_OCOTP_HDCP_KEY14 - Value of OTP Bank7 Word6 (HW Capabilities)
  4330. //-------------------------------------------------------------------------------------------
  4331. #ifndef __LANGUAGE_ASM__
  4332. /*!
  4333. * @brief HW_OCOTP_HDCP_KEY14 - Value of OTP Bank7 Word6 (HW Capabilities) (RW)
  4334. *
  4335. * Reset value: 0x00000000
  4336. *
  4337. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  4338. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 7, word 6 (ADDR = 0x3e).
  4339. * EXAMPLE Empty Example.
  4340. */
  4341. typedef union _hw_ocotp_hdcp_key14
  4342. {
  4343. reg32_t U;
  4344. struct _hw_ocotp_hdcp_key14_bitfields
  4345. {
  4346. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 7, word 6 (ADDR = 0x3e).
  4347. } B;
  4348. } hw_ocotp_hdcp_key14_t;
  4349. #endif
  4350. /*
  4351. * constants & macros for entire OCOTP_HDCP_KEY14 register
  4352. */
  4353. #define HW_OCOTP_HDCP_KEY14_ADDR (REGS_OCOTP_BASE + 0x8e0)
  4354. #ifndef __LANGUAGE_ASM__
  4355. #define HW_OCOTP_HDCP_KEY14 (*(volatile hw_ocotp_hdcp_key14_t *) HW_OCOTP_HDCP_KEY14_ADDR)
  4356. #define HW_OCOTP_HDCP_KEY14_RD() (HW_OCOTP_HDCP_KEY14.U)
  4357. #define HW_OCOTP_HDCP_KEY14_WR(v) (HW_OCOTP_HDCP_KEY14.U = (v))
  4358. #define HW_OCOTP_HDCP_KEY14_SET(v) (HW_OCOTP_HDCP_KEY14_WR(HW_OCOTP_HDCP_KEY14_RD() | (v)))
  4359. #define HW_OCOTP_HDCP_KEY14_CLR(v) (HW_OCOTP_HDCP_KEY14_WR(HW_OCOTP_HDCP_KEY14_RD() & ~(v)))
  4360. #define HW_OCOTP_HDCP_KEY14_TOG(v) (HW_OCOTP_HDCP_KEY14_WR(HW_OCOTP_HDCP_KEY14_RD() ^ (v)))
  4361. #endif
  4362. /*
  4363. * constants & macros for individual OCOTP_HDCP_KEY14 bitfields
  4364. */
  4365. /* --- Register HW_OCOTP_HDCP_KEY14, field BITS[31:0] (RW)
  4366. *
  4367. * Reflects value of OTP Bank 7, word 6 (ADDR = 0x3e).
  4368. */
  4369. #define BP_OCOTP_HDCP_KEY14_BITS (0) //!< Bit position for OCOTP_HDCP_KEY14_BITS.
  4370. #define BM_OCOTP_HDCP_KEY14_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY14_BITS.
  4371. //! @brief Get value of OCOTP_HDCP_KEY14_BITS from a register value.
  4372. #define BG_OCOTP_HDCP_KEY14_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY14_BITS) >> BP_OCOTP_HDCP_KEY14_BITS)
  4373. //! @brief Format value for bitfield OCOTP_HDCP_KEY14_BITS.
  4374. #define BF_OCOTP_HDCP_KEY14_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY14_BITS) & BM_OCOTP_HDCP_KEY14_BITS)
  4375. #ifndef __LANGUAGE_ASM__
  4376. //! @brief Set the BITS field to a new value.
  4377. #define BW_OCOTP_HDCP_KEY14_BITS(v) (HW_OCOTP_HDCP_KEY14_WR((HW_OCOTP_HDCP_KEY14_RD() & ~BM_OCOTP_HDCP_KEY14_BITS) | BF_OCOTP_HDCP_KEY14_BITS(v)))
  4378. #endif
  4379. //-------------------------------------------------------------------------------------------
  4380. // HW_OCOTP_HDCP_KEY15 - Value of OTP Bank7 Word7 (HW Capabilities)
  4381. //-------------------------------------------------------------------------------------------
  4382. #ifndef __LANGUAGE_ASM__
  4383. /*!
  4384. * @brief HW_OCOTP_HDCP_KEY15 - Value of OTP Bank7 Word7 (HW Capabilities) (RW)
  4385. *
  4386. * Reset value: 0x00000000
  4387. *
  4388. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  4389. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 7, word 7 (ADDR = 0x3f).
  4390. * EXAMPLE Empty Example.
  4391. */
  4392. typedef union _hw_ocotp_hdcp_key15
  4393. {
  4394. reg32_t U;
  4395. struct _hw_ocotp_hdcp_key15_bitfields
  4396. {
  4397. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 7, word 7 (ADDR = 0x3f).
  4398. } B;
  4399. } hw_ocotp_hdcp_key15_t;
  4400. #endif
  4401. /*
  4402. * constants & macros for entire OCOTP_HDCP_KEY15 register
  4403. */
  4404. #define HW_OCOTP_HDCP_KEY15_ADDR (REGS_OCOTP_BASE + 0x8f0)
  4405. #ifndef __LANGUAGE_ASM__
  4406. #define HW_OCOTP_HDCP_KEY15 (*(volatile hw_ocotp_hdcp_key15_t *) HW_OCOTP_HDCP_KEY15_ADDR)
  4407. #define HW_OCOTP_HDCP_KEY15_RD() (HW_OCOTP_HDCP_KEY15.U)
  4408. #define HW_OCOTP_HDCP_KEY15_WR(v) (HW_OCOTP_HDCP_KEY15.U = (v))
  4409. #define HW_OCOTP_HDCP_KEY15_SET(v) (HW_OCOTP_HDCP_KEY15_WR(HW_OCOTP_HDCP_KEY15_RD() | (v)))
  4410. #define HW_OCOTP_HDCP_KEY15_CLR(v) (HW_OCOTP_HDCP_KEY15_WR(HW_OCOTP_HDCP_KEY15_RD() & ~(v)))
  4411. #define HW_OCOTP_HDCP_KEY15_TOG(v) (HW_OCOTP_HDCP_KEY15_WR(HW_OCOTP_HDCP_KEY15_RD() ^ (v)))
  4412. #endif
  4413. /*
  4414. * constants & macros for individual OCOTP_HDCP_KEY15 bitfields
  4415. */
  4416. /* --- Register HW_OCOTP_HDCP_KEY15, field BITS[31:0] (RW)
  4417. *
  4418. * Reflects value of OTP Bank 7, word 7 (ADDR = 0x3f).
  4419. */
  4420. #define BP_OCOTP_HDCP_KEY15_BITS (0) //!< Bit position for OCOTP_HDCP_KEY15_BITS.
  4421. #define BM_OCOTP_HDCP_KEY15_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY15_BITS.
  4422. //! @brief Get value of OCOTP_HDCP_KEY15_BITS from a register value.
  4423. #define BG_OCOTP_HDCP_KEY15_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY15_BITS) >> BP_OCOTP_HDCP_KEY15_BITS)
  4424. //! @brief Format value for bitfield OCOTP_HDCP_KEY15_BITS.
  4425. #define BF_OCOTP_HDCP_KEY15_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY15_BITS) & BM_OCOTP_HDCP_KEY15_BITS)
  4426. #ifndef __LANGUAGE_ASM__
  4427. //! @brief Set the BITS field to a new value.
  4428. #define BW_OCOTP_HDCP_KEY15_BITS(v) (HW_OCOTP_HDCP_KEY15_WR((HW_OCOTP_HDCP_KEY15_RD() & ~BM_OCOTP_HDCP_KEY15_BITS) | BF_OCOTP_HDCP_KEY15_BITS(v)))
  4429. #endif
  4430. //-------------------------------------------------------------------------------------------
  4431. // HW_OCOTP_HDCP_KEY16 - Value of OTP Bank8 Word0 (HW Capabilities)
  4432. //-------------------------------------------------------------------------------------------
  4433. #ifndef __LANGUAGE_ASM__
  4434. /*!
  4435. * @brief HW_OCOTP_HDCP_KEY16 - Value of OTP Bank8 Word0 (HW Capabilities) (RW)
  4436. *
  4437. * Reset value: 0x00000000
  4438. *
  4439. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  4440. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 8, word 0 (ADDR = 0x40).
  4441. * EXAMPLE Empty Example.
  4442. */
  4443. typedef union _hw_ocotp_hdcp_key16
  4444. {
  4445. reg32_t U;
  4446. struct _hw_ocotp_hdcp_key16_bitfields
  4447. {
  4448. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 8, word 0 (ADDR = 0x40).
  4449. } B;
  4450. } hw_ocotp_hdcp_key16_t;
  4451. #endif
  4452. /*
  4453. * constants & macros for entire OCOTP_HDCP_KEY16 register
  4454. */
  4455. #define HW_OCOTP_HDCP_KEY16_ADDR (REGS_OCOTP_BASE + 0x900)
  4456. #ifndef __LANGUAGE_ASM__
  4457. #define HW_OCOTP_HDCP_KEY16 (*(volatile hw_ocotp_hdcp_key16_t *) HW_OCOTP_HDCP_KEY16_ADDR)
  4458. #define HW_OCOTP_HDCP_KEY16_RD() (HW_OCOTP_HDCP_KEY16.U)
  4459. #define HW_OCOTP_HDCP_KEY16_WR(v) (HW_OCOTP_HDCP_KEY16.U = (v))
  4460. #define HW_OCOTP_HDCP_KEY16_SET(v) (HW_OCOTP_HDCP_KEY16_WR(HW_OCOTP_HDCP_KEY16_RD() | (v)))
  4461. #define HW_OCOTP_HDCP_KEY16_CLR(v) (HW_OCOTP_HDCP_KEY16_WR(HW_OCOTP_HDCP_KEY16_RD() & ~(v)))
  4462. #define HW_OCOTP_HDCP_KEY16_TOG(v) (HW_OCOTP_HDCP_KEY16_WR(HW_OCOTP_HDCP_KEY16_RD() ^ (v)))
  4463. #endif
  4464. /*
  4465. * constants & macros for individual OCOTP_HDCP_KEY16 bitfields
  4466. */
  4467. /* --- Register HW_OCOTP_HDCP_KEY16, field BITS[31:0] (RW)
  4468. *
  4469. * Reflects value of OTP Bank 8, word 0 (ADDR = 0x40).
  4470. */
  4471. #define BP_OCOTP_HDCP_KEY16_BITS (0) //!< Bit position for OCOTP_HDCP_KEY16_BITS.
  4472. #define BM_OCOTP_HDCP_KEY16_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY16_BITS.
  4473. //! @brief Get value of OCOTP_HDCP_KEY16_BITS from a register value.
  4474. #define BG_OCOTP_HDCP_KEY16_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY16_BITS) >> BP_OCOTP_HDCP_KEY16_BITS)
  4475. //! @brief Format value for bitfield OCOTP_HDCP_KEY16_BITS.
  4476. #define BF_OCOTP_HDCP_KEY16_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY16_BITS) & BM_OCOTP_HDCP_KEY16_BITS)
  4477. #ifndef __LANGUAGE_ASM__
  4478. //! @brief Set the BITS field to a new value.
  4479. #define BW_OCOTP_HDCP_KEY16_BITS(v) (HW_OCOTP_HDCP_KEY16_WR((HW_OCOTP_HDCP_KEY16_RD() & ~BM_OCOTP_HDCP_KEY16_BITS) | BF_OCOTP_HDCP_KEY16_BITS(v)))
  4480. #endif
  4481. //-------------------------------------------------------------------------------------------
  4482. // HW_OCOTP_HDCP_KEY17 - Value of OTP Bank8 Word1 (HW Capabilities)
  4483. //-------------------------------------------------------------------------------------------
  4484. #ifndef __LANGUAGE_ASM__
  4485. /*!
  4486. * @brief HW_OCOTP_HDCP_KEY17 - Value of OTP Bank8 Word1 (HW Capabilities) (RW)
  4487. *
  4488. * Reset value: 0x00000000
  4489. *
  4490. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  4491. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 8, word 1 (ADDR = 0x41).
  4492. * EXAMPLE Empty Example.
  4493. */
  4494. typedef union _hw_ocotp_hdcp_key17
  4495. {
  4496. reg32_t U;
  4497. struct _hw_ocotp_hdcp_key17_bitfields
  4498. {
  4499. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 8, word 1 (ADDR = 0x41).
  4500. } B;
  4501. } hw_ocotp_hdcp_key17_t;
  4502. #endif
  4503. /*
  4504. * constants & macros for entire OCOTP_HDCP_KEY17 register
  4505. */
  4506. #define HW_OCOTP_HDCP_KEY17_ADDR (REGS_OCOTP_BASE + 0x910)
  4507. #ifndef __LANGUAGE_ASM__
  4508. #define HW_OCOTP_HDCP_KEY17 (*(volatile hw_ocotp_hdcp_key17_t *) HW_OCOTP_HDCP_KEY17_ADDR)
  4509. #define HW_OCOTP_HDCP_KEY17_RD() (HW_OCOTP_HDCP_KEY17.U)
  4510. #define HW_OCOTP_HDCP_KEY17_WR(v) (HW_OCOTP_HDCP_KEY17.U = (v))
  4511. #define HW_OCOTP_HDCP_KEY17_SET(v) (HW_OCOTP_HDCP_KEY17_WR(HW_OCOTP_HDCP_KEY17_RD() | (v)))
  4512. #define HW_OCOTP_HDCP_KEY17_CLR(v) (HW_OCOTP_HDCP_KEY17_WR(HW_OCOTP_HDCP_KEY17_RD() & ~(v)))
  4513. #define HW_OCOTP_HDCP_KEY17_TOG(v) (HW_OCOTP_HDCP_KEY17_WR(HW_OCOTP_HDCP_KEY17_RD() ^ (v)))
  4514. #endif
  4515. /*
  4516. * constants & macros for individual OCOTP_HDCP_KEY17 bitfields
  4517. */
  4518. /* --- Register HW_OCOTP_HDCP_KEY17, field BITS[31:0] (RW)
  4519. *
  4520. * Reflects value of OTP Bank 8, word 1 (ADDR = 0x41).
  4521. */
  4522. #define BP_OCOTP_HDCP_KEY17_BITS (0) //!< Bit position for OCOTP_HDCP_KEY17_BITS.
  4523. #define BM_OCOTP_HDCP_KEY17_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY17_BITS.
  4524. //! @brief Get value of OCOTP_HDCP_KEY17_BITS from a register value.
  4525. #define BG_OCOTP_HDCP_KEY17_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY17_BITS) >> BP_OCOTP_HDCP_KEY17_BITS)
  4526. //! @brief Format value for bitfield OCOTP_HDCP_KEY17_BITS.
  4527. #define BF_OCOTP_HDCP_KEY17_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY17_BITS) & BM_OCOTP_HDCP_KEY17_BITS)
  4528. #ifndef __LANGUAGE_ASM__
  4529. //! @brief Set the BITS field to a new value.
  4530. #define BW_OCOTP_HDCP_KEY17_BITS(v) (HW_OCOTP_HDCP_KEY17_WR((HW_OCOTP_HDCP_KEY17_RD() & ~BM_OCOTP_HDCP_KEY17_BITS) | BF_OCOTP_HDCP_KEY17_BITS(v)))
  4531. #endif
  4532. //-------------------------------------------------------------------------------------------
  4533. // HW_OCOTP_HDCP_KEY18 - Value of OTP Bank8 Word2 (HW Capabilities)
  4534. //-------------------------------------------------------------------------------------------
  4535. #ifndef __LANGUAGE_ASM__
  4536. /*!
  4537. * @brief HW_OCOTP_HDCP_KEY18 - Value of OTP Bank8 Word2 (HW Capabilities) (RW)
  4538. *
  4539. * Reset value: 0x00000000
  4540. *
  4541. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  4542. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 8, word 2 (ADDR = 0x42).
  4543. * EXAMPLE Empty Example.
  4544. */
  4545. typedef union _hw_ocotp_hdcp_key18
  4546. {
  4547. reg32_t U;
  4548. struct _hw_ocotp_hdcp_key18_bitfields
  4549. {
  4550. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 8, word 2 (ADDR = 0x42).
  4551. } B;
  4552. } hw_ocotp_hdcp_key18_t;
  4553. #endif
  4554. /*
  4555. * constants & macros for entire OCOTP_HDCP_KEY18 register
  4556. */
  4557. #define HW_OCOTP_HDCP_KEY18_ADDR (REGS_OCOTP_BASE + 0x920)
  4558. #ifndef __LANGUAGE_ASM__
  4559. #define HW_OCOTP_HDCP_KEY18 (*(volatile hw_ocotp_hdcp_key18_t *) HW_OCOTP_HDCP_KEY18_ADDR)
  4560. #define HW_OCOTP_HDCP_KEY18_RD() (HW_OCOTP_HDCP_KEY18.U)
  4561. #define HW_OCOTP_HDCP_KEY18_WR(v) (HW_OCOTP_HDCP_KEY18.U = (v))
  4562. #define HW_OCOTP_HDCP_KEY18_SET(v) (HW_OCOTP_HDCP_KEY18_WR(HW_OCOTP_HDCP_KEY18_RD() | (v)))
  4563. #define HW_OCOTP_HDCP_KEY18_CLR(v) (HW_OCOTP_HDCP_KEY18_WR(HW_OCOTP_HDCP_KEY18_RD() & ~(v)))
  4564. #define HW_OCOTP_HDCP_KEY18_TOG(v) (HW_OCOTP_HDCP_KEY18_WR(HW_OCOTP_HDCP_KEY18_RD() ^ (v)))
  4565. #endif
  4566. /*
  4567. * constants & macros for individual OCOTP_HDCP_KEY18 bitfields
  4568. */
  4569. /* --- Register HW_OCOTP_HDCP_KEY18, field BITS[31:0] (RW)
  4570. *
  4571. * Reflects value of OTP Bank 8, word 2 (ADDR = 0x42).
  4572. */
  4573. #define BP_OCOTP_HDCP_KEY18_BITS (0) //!< Bit position for OCOTP_HDCP_KEY18_BITS.
  4574. #define BM_OCOTP_HDCP_KEY18_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY18_BITS.
  4575. //! @brief Get value of OCOTP_HDCP_KEY18_BITS from a register value.
  4576. #define BG_OCOTP_HDCP_KEY18_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY18_BITS) >> BP_OCOTP_HDCP_KEY18_BITS)
  4577. //! @brief Format value for bitfield OCOTP_HDCP_KEY18_BITS.
  4578. #define BF_OCOTP_HDCP_KEY18_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY18_BITS) & BM_OCOTP_HDCP_KEY18_BITS)
  4579. #ifndef __LANGUAGE_ASM__
  4580. //! @brief Set the BITS field to a new value.
  4581. #define BW_OCOTP_HDCP_KEY18_BITS(v) (HW_OCOTP_HDCP_KEY18_WR((HW_OCOTP_HDCP_KEY18_RD() & ~BM_OCOTP_HDCP_KEY18_BITS) | BF_OCOTP_HDCP_KEY18_BITS(v)))
  4582. #endif
  4583. //-------------------------------------------------------------------------------------------
  4584. // HW_OCOTP_HDCP_KEY19 - Value of OTP Bank8 Word3 (HW Capabilities)
  4585. //-------------------------------------------------------------------------------------------
  4586. #ifndef __LANGUAGE_ASM__
  4587. /*!
  4588. * @brief HW_OCOTP_HDCP_KEY19 - Value of OTP Bank8 Word3 (HW Capabilities) (RW)
  4589. *
  4590. * Reset value: 0x00000000
  4591. *
  4592. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  4593. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 8, word 3 (ADDR = 0x43).
  4594. * EXAMPLE Empty Example.
  4595. */
  4596. typedef union _hw_ocotp_hdcp_key19
  4597. {
  4598. reg32_t U;
  4599. struct _hw_ocotp_hdcp_key19_bitfields
  4600. {
  4601. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 8, word 3 (ADDR = 0x43).
  4602. } B;
  4603. } hw_ocotp_hdcp_key19_t;
  4604. #endif
  4605. /*
  4606. * constants & macros for entire OCOTP_HDCP_KEY19 register
  4607. */
  4608. #define HW_OCOTP_HDCP_KEY19_ADDR (REGS_OCOTP_BASE + 0x930)
  4609. #ifndef __LANGUAGE_ASM__
  4610. #define HW_OCOTP_HDCP_KEY19 (*(volatile hw_ocotp_hdcp_key19_t *) HW_OCOTP_HDCP_KEY19_ADDR)
  4611. #define HW_OCOTP_HDCP_KEY19_RD() (HW_OCOTP_HDCP_KEY19.U)
  4612. #define HW_OCOTP_HDCP_KEY19_WR(v) (HW_OCOTP_HDCP_KEY19.U = (v))
  4613. #define HW_OCOTP_HDCP_KEY19_SET(v) (HW_OCOTP_HDCP_KEY19_WR(HW_OCOTP_HDCP_KEY19_RD() | (v)))
  4614. #define HW_OCOTP_HDCP_KEY19_CLR(v) (HW_OCOTP_HDCP_KEY19_WR(HW_OCOTP_HDCP_KEY19_RD() & ~(v)))
  4615. #define HW_OCOTP_HDCP_KEY19_TOG(v) (HW_OCOTP_HDCP_KEY19_WR(HW_OCOTP_HDCP_KEY19_RD() ^ (v)))
  4616. #endif
  4617. /*
  4618. * constants & macros for individual OCOTP_HDCP_KEY19 bitfields
  4619. */
  4620. /* --- Register HW_OCOTP_HDCP_KEY19, field BITS[31:0] (RW)
  4621. *
  4622. * Reflects value of OTP Bank 8, word 3 (ADDR = 0x43).
  4623. */
  4624. #define BP_OCOTP_HDCP_KEY19_BITS (0) //!< Bit position for OCOTP_HDCP_KEY19_BITS.
  4625. #define BM_OCOTP_HDCP_KEY19_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY19_BITS.
  4626. //! @brief Get value of OCOTP_HDCP_KEY19_BITS from a register value.
  4627. #define BG_OCOTP_HDCP_KEY19_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY19_BITS) >> BP_OCOTP_HDCP_KEY19_BITS)
  4628. //! @brief Format value for bitfield OCOTP_HDCP_KEY19_BITS.
  4629. #define BF_OCOTP_HDCP_KEY19_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY19_BITS) & BM_OCOTP_HDCP_KEY19_BITS)
  4630. #ifndef __LANGUAGE_ASM__
  4631. //! @brief Set the BITS field to a new value.
  4632. #define BW_OCOTP_HDCP_KEY19_BITS(v) (HW_OCOTP_HDCP_KEY19_WR((HW_OCOTP_HDCP_KEY19_RD() & ~BM_OCOTP_HDCP_KEY19_BITS) | BF_OCOTP_HDCP_KEY19_BITS(v)))
  4633. #endif
  4634. //-------------------------------------------------------------------------------------------
  4635. // HW_OCOTP_HDCP_KEY20 - Value of OTP Bank8 Word4 (HW Capabilities)
  4636. //-------------------------------------------------------------------------------------------
  4637. #ifndef __LANGUAGE_ASM__
  4638. /*!
  4639. * @brief HW_OCOTP_HDCP_KEY20 - Value of OTP Bank8 Word4 (HW Capabilities) (RW)
  4640. *
  4641. * Reset value: 0x00000000
  4642. *
  4643. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  4644. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 8, word 4 (ADDR = 0x44).
  4645. * EXAMPLE Empty Example.
  4646. */
  4647. typedef union _hw_ocotp_hdcp_key20
  4648. {
  4649. reg32_t U;
  4650. struct _hw_ocotp_hdcp_key20_bitfields
  4651. {
  4652. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 8, word 4 (ADDR = 0x44).
  4653. } B;
  4654. } hw_ocotp_hdcp_key20_t;
  4655. #endif
  4656. /*
  4657. * constants & macros for entire OCOTP_HDCP_KEY20 register
  4658. */
  4659. #define HW_OCOTP_HDCP_KEY20_ADDR (REGS_OCOTP_BASE + 0x940)
  4660. #ifndef __LANGUAGE_ASM__
  4661. #define HW_OCOTP_HDCP_KEY20 (*(volatile hw_ocotp_hdcp_key20_t *) HW_OCOTP_HDCP_KEY20_ADDR)
  4662. #define HW_OCOTP_HDCP_KEY20_RD() (HW_OCOTP_HDCP_KEY20.U)
  4663. #define HW_OCOTP_HDCP_KEY20_WR(v) (HW_OCOTP_HDCP_KEY20.U = (v))
  4664. #define HW_OCOTP_HDCP_KEY20_SET(v) (HW_OCOTP_HDCP_KEY20_WR(HW_OCOTP_HDCP_KEY20_RD() | (v)))
  4665. #define HW_OCOTP_HDCP_KEY20_CLR(v) (HW_OCOTP_HDCP_KEY20_WR(HW_OCOTP_HDCP_KEY20_RD() & ~(v)))
  4666. #define HW_OCOTP_HDCP_KEY20_TOG(v) (HW_OCOTP_HDCP_KEY20_WR(HW_OCOTP_HDCP_KEY20_RD() ^ (v)))
  4667. #endif
  4668. /*
  4669. * constants & macros for individual OCOTP_HDCP_KEY20 bitfields
  4670. */
  4671. /* --- Register HW_OCOTP_HDCP_KEY20, field BITS[31:0] (RW)
  4672. *
  4673. * Reflects value of OTP Bank 8, word 4 (ADDR = 0x44).
  4674. */
  4675. #define BP_OCOTP_HDCP_KEY20_BITS (0) //!< Bit position for OCOTP_HDCP_KEY20_BITS.
  4676. #define BM_OCOTP_HDCP_KEY20_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY20_BITS.
  4677. //! @brief Get value of OCOTP_HDCP_KEY20_BITS from a register value.
  4678. #define BG_OCOTP_HDCP_KEY20_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY20_BITS) >> BP_OCOTP_HDCP_KEY20_BITS)
  4679. //! @brief Format value for bitfield OCOTP_HDCP_KEY20_BITS.
  4680. #define BF_OCOTP_HDCP_KEY20_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY20_BITS) & BM_OCOTP_HDCP_KEY20_BITS)
  4681. #ifndef __LANGUAGE_ASM__
  4682. //! @brief Set the BITS field to a new value.
  4683. #define BW_OCOTP_HDCP_KEY20_BITS(v) (HW_OCOTP_HDCP_KEY20_WR((HW_OCOTP_HDCP_KEY20_RD() & ~BM_OCOTP_HDCP_KEY20_BITS) | BF_OCOTP_HDCP_KEY20_BITS(v)))
  4684. #endif
  4685. //-------------------------------------------------------------------------------------------
  4686. // HW_OCOTP_HDCP_KEY21 - Value of OTP Bank8 Word5 (HW Capabilities)
  4687. //-------------------------------------------------------------------------------------------
  4688. #ifndef __LANGUAGE_ASM__
  4689. /*!
  4690. * @brief HW_OCOTP_HDCP_KEY21 - Value of OTP Bank8 Word5 (HW Capabilities) (RW)
  4691. *
  4692. * Reset value: 0x00000000
  4693. *
  4694. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  4695. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 8, word 5 (ADDR = 0x45).
  4696. * EXAMPLE Empty Example.
  4697. */
  4698. typedef union _hw_ocotp_hdcp_key21
  4699. {
  4700. reg32_t U;
  4701. struct _hw_ocotp_hdcp_key21_bitfields
  4702. {
  4703. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 8, word 5 (ADDR = 0x45).
  4704. } B;
  4705. } hw_ocotp_hdcp_key21_t;
  4706. #endif
  4707. /*
  4708. * constants & macros for entire OCOTP_HDCP_KEY21 register
  4709. */
  4710. #define HW_OCOTP_HDCP_KEY21_ADDR (REGS_OCOTP_BASE + 0x950)
  4711. #ifndef __LANGUAGE_ASM__
  4712. #define HW_OCOTP_HDCP_KEY21 (*(volatile hw_ocotp_hdcp_key21_t *) HW_OCOTP_HDCP_KEY21_ADDR)
  4713. #define HW_OCOTP_HDCP_KEY21_RD() (HW_OCOTP_HDCP_KEY21.U)
  4714. #define HW_OCOTP_HDCP_KEY21_WR(v) (HW_OCOTP_HDCP_KEY21.U = (v))
  4715. #define HW_OCOTP_HDCP_KEY21_SET(v) (HW_OCOTP_HDCP_KEY21_WR(HW_OCOTP_HDCP_KEY21_RD() | (v)))
  4716. #define HW_OCOTP_HDCP_KEY21_CLR(v) (HW_OCOTP_HDCP_KEY21_WR(HW_OCOTP_HDCP_KEY21_RD() & ~(v)))
  4717. #define HW_OCOTP_HDCP_KEY21_TOG(v) (HW_OCOTP_HDCP_KEY21_WR(HW_OCOTP_HDCP_KEY21_RD() ^ (v)))
  4718. #endif
  4719. /*
  4720. * constants & macros for individual OCOTP_HDCP_KEY21 bitfields
  4721. */
  4722. /* --- Register HW_OCOTP_HDCP_KEY21, field BITS[31:0] (RW)
  4723. *
  4724. * Reflects value of OTP Bank 8, word 5 (ADDR = 0x45).
  4725. */
  4726. #define BP_OCOTP_HDCP_KEY21_BITS (0) //!< Bit position for OCOTP_HDCP_KEY21_BITS.
  4727. #define BM_OCOTP_HDCP_KEY21_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY21_BITS.
  4728. //! @brief Get value of OCOTP_HDCP_KEY21_BITS from a register value.
  4729. #define BG_OCOTP_HDCP_KEY21_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY21_BITS) >> BP_OCOTP_HDCP_KEY21_BITS)
  4730. //! @brief Format value for bitfield OCOTP_HDCP_KEY21_BITS.
  4731. #define BF_OCOTP_HDCP_KEY21_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY21_BITS) & BM_OCOTP_HDCP_KEY21_BITS)
  4732. #ifndef __LANGUAGE_ASM__
  4733. //! @brief Set the BITS field to a new value.
  4734. #define BW_OCOTP_HDCP_KEY21_BITS(v) (HW_OCOTP_HDCP_KEY21_WR((HW_OCOTP_HDCP_KEY21_RD() & ~BM_OCOTP_HDCP_KEY21_BITS) | BF_OCOTP_HDCP_KEY21_BITS(v)))
  4735. #endif
  4736. //-------------------------------------------------------------------------------------------
  4737. // HW_OCOTP_HDCP_KEY22 - Value of OTP Bank8 Word6 (HW Capabilities)
  4738. //-------------------------------------------------------------------------------------------
  4739. #ifndef __LANGUAGE_ASM__
  4740. /*!
  4741. * @brief HW_OCOTP_HDCP_KEY22 - Value of OTP Bank8 Word6 (HW Capabilities) (RW)
  4742. *
  4743. * Reset value: 0x00000000
  4744. *
  4745. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  4746. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 8, word 6 (ADDR = 0x46).
  4747. * EXAMPLE Empty Example.
  4748. */
  4749. typedef union _hw_ocotp_hdcp_key22
  4750. {
  4751. reg32_t U;
  4752. struct _hw_ocotp_hdcp_key22_bitfields
  4753. {
  4754. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 8, word 6 (ADDR = 0x46).
  4755. } B;
  4756. } hw_ocotp_hdcp_key22_t;
  4757. #endif
  4758. /*
  4759. * constants & macros for entire OCOTP_HDCP_KEY22 register
  4760. */
  4761. #define HW_OCOTP_HDCP_KEY22_ADDR (REGS_OCOTP_BASE + 0x960)
  4762. #ifndef __LANGUAGE_ASM__
  4763. #define HW_OCOTP_HDCP_KEY22 (*(volatile hw_ocotp_hdcp_key22_t *) HW_OCOTP_HDCP_KEY22_ADDR)
  4764. #define HW_OCOTP_HDCP_KEY22_RD() (HW_OCOTP_HDCP_KEY22.U)
  4765. #define HW_OCOTP_HDCP_KEY22_WR(v) (HW_OCOTP_HDCP_KEY22.U = (v))
  4766. #define HW_OCOTP_HDCP_KEY22_SET(v) (HW_OCOTP_HDCP_KEY22_WR(HW_OCOTP_HDCP_KEY22_RD() | (v)))
  4767. #define HW_OCOTP_HDCP_KEY22_CLR(v) (HW_OCOTP_HDCP_KEY22_WR(HW_OCOTP_HDCP_KEY22_RD() & ~(v)))
  4768. #define HW_OCOTP_HDCP_KEY22_TOG(v) (HW_OCOTP_HDCP_KEY22_WR(HW_OCOTP_HDCP_KEY22_RD() ^ (v)))
  4769. #endif
  4770. /*
  4771. * constants & macros for individual OCOTP_HDCP_KEY22 bitfields
  4772. */
  4773. /* --- Register HW_OCOTP_HDCP_KEY22, field BITS[31:0] (RW)
  4774. *
  4775. * Reflects value of OTP Bank 8, word 6 (ADDR = 0x46).
  4776. */
  4777. #define BP_OCOTP_HDCP_KEY22_BITS (0) //!< Bit position for OCOTP_HDCP_KEY22_BITS.
  4778. #define BM_OCOTP_HDCP_KEY22_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY22_BITS.
  4779. //! @brief Get value of OCOTP_HDCP_KEY22_BITS from a register value.
  4780. #define BG_OCOTP_HDCP_KEY22_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY22_BITS) >> BP_OCOTP_HDCP_KEY22_BITS)
  4781. //! @brief Format value for bitfield OCOTP_HDCP_KEY22_BITS.
  4782. #define BF_OCOTP_HDCP_KEY22_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY22_BITS) & BM_OCOTP_HDCP_KEY22_BITS)
  4783. #ifndef __LANGUAGE_ASM__
  4784. //! @brief Set the BITS field to a new value.
  4785. #define BW_OCOTP_HDCP_KEY22_BITS(v) (HW_OCOTP_HDCP_KEY22_WR((HW_OCOTP_HDCP_KEY22_RD() & ~BM_OCOTP_HDCP_KEY22_BITS) | BF_OCOTP_HDCP_KEY22_BITS(v)))
  4786. #endif
  4787. //-------------------------------------------------------------------------------------------
  4788. // HW_OCOTP_HDCP_KEY23 - Value of OTP Bank8 Word7 (HW Capabilities)
  4789. //-------------------------------------------------------------------------------------------
  4790. #ifndef __LANGUAGE_ASM__
  4791. /*!
  4792. * @brief HW_OCOTP_HDCP_KEY23 - Value of OTP Bank8 Word7 (HW Capabilities) (RW)
  4793. *
  4794. * Reset value: 0x00000000
  4795. *
  4796. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  4797. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 8, word 7 (ADDR = 0x47).
  4798. * EXAMPLE Empty Example.
  4799. */
  4800. typedef union _hw_ocotp_hdcp_key23
  4801. {
  4802. reg32_t U;
  4803. struct _hw_ocotp_hdcp_key23_bitfields
  4804. {
  4805. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 8, word 7 (ADDR = 0x47).
  4806. } B;
  4807. } hw_ocotp_hdcp_key23_t;
  4808. #endif
  4809. /*
  4810. * constants & macros for entire OCOTP_HDCP_KEY23 register
  4811. */
  4812. #define HW_OCOTP_HDCP_KEY23_ADDR (REGS_OCOTP_BASE + 0x970)
  4813. #ifndef __LANGUAGE_ASM__
  4814. #define HW_OCOTP_HDCP_KEY23 (*(volatile hw_ocotp_hdcp_key23_t *) HW_OCOTP_HDCP_KEY23_ADDR)
  4815. #define HW_OCOTP_HDCP_KEY23_RD() (HW_OCOTP_HDCP_KEY23.U)
  4816. #define HW_OCOTP_HDCP_KEY23_WR(v) (HW_OCOTP_HDCP_KEY23.U = (v))
  4817. #define HW_OCOTP_HDCP_KEY23_SET(v) (HW_OCOTP_HDCP_KEY23_WR(HW_OCOTP_HDCP_KEY23_RD() | (v)))
  4818. #define HW_OCOTP_HDCP_KEY23_CLR(v) (HW_OCOTP_HDCP_KEY23_WR(HW_OCOTP_HDCP_KEY23_RD() & ~(v)))
  4819. #define HW_OCOTP_HDCP_KEY23_TOG(v) (HW_OCOTP_HDCP_KEY23_WR(HW_OCOTP_HDCP_KEY23_RD() ^ (v)))
  4820. #endif
  4821. /*
  4822. * constants & macros for individual OCOTP_HDCP_KEY23 bitfields
  4823. */
  4824. /* --- Register HW_OCOTP_HDCP_KEY23, field BITS[31:0] (RW)
  4825. *
  4826. * Reflects value of OTP Bank 8, word 7 (ADDR = 0x47).
  4827. */
  4828. #define BP_OCOTP_HDCP_KEY23_BITS (0) //!< Bit position for OCOTP_HDCP_KEY23_BITS.
  4829. #define BM_OCOTP_HDCP_KEY23_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY23_BITS.
  4830. //! @brief Get value of OCOTP_HDCP_KEY23_BITS from a register value.
  4831. #define BG_OCOTP_HDCP_KEY23_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY23_BITS) >> BP_OCOTP_HDCP_KEY23_BITS)
  4832. //! @brief Format value for bitfield OCOTP_HDCP_KEY23_BITS.
  4833. #define BF_OCOTP_HDCP_KEY23_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY23_BITS) & BM_OCOTP_HDCP_KEY23_BITS)
  4834. #ifndef __LANGUAGE_ASM__
  4835. //! @brief Set the BITS field to a new value.
  4836. #define BW_OCOTP_HDCP_KEY23_BITS(v) (HW_OCOTP_HDCP_KEY23_WR((HW_OCOTP_HDCP_KEY23_RD() & ~BM_OCOTP_HDCP_KEY23_BITS) | BF_OCOTP_HDCP_KEY23_BITS(v)))
  4837. #endif
  4838. //-------------------------------------------------------------------------------------------
  4839. // HW_OCOTP_HDCP_KEY24 - Value of OTP Bank9 Word0 (HW Capabilities)
  4840. //-------------------------------------------------------------------------------------------
  4841. #ifndef __LANGUAGE_ASM__
  4842. /*!
  4843. * @brief HW_OCOTP_HDCP_KEY24 - Value of OTP Bank9 Word0 (HW Capabilities) (RW)
  4844. *
  4845. * Reset value: 0x00000000
  4846. *
  4847. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  4848. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 9, word 0 (ADDR = 0x48).
  4849. * EXAMPLE Empty Example.
  4850. */
  4851. typedef union _hw_ocotp_hdcp_key24
  4852. {
  4853. reg32_t U;
  4854. struct _hw_ocotp_hdcp_key24_bitfields
  4855. {
  4856. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 9, word 0 (ADDR = 0x48).
  4857. } B;
  4858. } hw_ocotp_hdcp_key24_t;
  4859. #endif
  4860. /*
  4861. * constants & macros for entire OCOTP_HDCP_KEY24 register
  4862. */
  4863. #define HW_OCOTP_HDCP_KEY24_ADDR (REGS_OCOTP_BASE + 0x980)
  4864. #ifndef __LANGUAGE_ASM__
  4865. #define HW_OCOTP_HDCP_KEY24 (*(volatile hw_ocotp_hdcp_key24_t *) HW_OCOTP_HDCP_KEY24_ADDR)
  4866. #define HW_OCOTP_HDCP_KEY24_RD() (HW_OCOTP_HDCP_KEY24.U)
  4867. #define HW_OCOTP_HDCP_KEY24_WR(v) (HW_OCOTP_HDCP_KEY24.U = (v))
  4868. #define HW_OCOTP_HDCP_KEY24_SET(v) (HW_OCOTP_HDCP_KEY24_WR(HW_OCOTP_HDCP_KEY24_RD() | (v)))
  4869. #define HW_OCOTP_HDCP_KEY24_CLR(v) (HW_OCOTP_HDCP_KEY24_WR(HW_OCOTP_HDCP_KEY24_RD() & ~(v)))
  4870. #define HW_OCOTP_HDCP_KEY24_TOG(v) (HW_OCOTP_HDCP_KEY24_WR(HW_OCOTP_HDCP_KEY24_RD() ^ (v)))
  4871. #endif
  4872. /*
  4873. * constants & macros for individual OCOTP_HDCP_KEY24 bitfields
  4874. */
  4875. /* --- Register HW_OCOTP_HDCP_KEY24, field BITS[31:0] (RW)
  4876. *
  4877. * Reflects value of OTP Bank 9, word 0 (ADDR = 0x48).
  4878. */
  4879. #define BP_OCOTP_HDCP_KEY24_BITS (0) //!< Bit position for OCOTP_HDCP_KEY24_BITS.
  4880. #define BM_OCOTP_HDCP_KEY24_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY24_BITS.
  4881. //! @brief Get value of OCOTP_HDCP_KEY24_BITS from a register value.
  4882. #define BG_OCOTP_HDCP_KEY24_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY24_BITS) >> BP_OCOTP_HDCP_KEY24_BITS)
  4883. //! @brief Format value for bitfield OCOTP_HDCP_KEY24_BITS.
  4884. #define BF_OCOTP_HDCP_KEY24_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY24_BITS) & BM_OCOTP_HDCP_KEY24_BITS)
  4885. #ifndef __LANGUAGE_ASM__
  4886. //! @brief Set the BITS field to a new value.
  4887. #define BW_OCOTP_HDCP_KEY24_BITS(v) (HW_OCOTP_HDCP_KEY24_WR((HW_OCOTP_HDCP_KEY24_RD() & ~BM_OCOTP_HDCP_KEY24_BITS) | BF_OCOTP_HDCP_KEY24_BITS(v)))
  4888. #endif
  4889. //-------------------------------------------------------------------------------------------
  4890. // HW_OCOTP_HDCP_KEY25 - Value of OTP Bank9 Word1 (HW Capabilities)
  4891. //-------------------------------------------------------------------------------------------
  4892. #ifndef __LANGUAGE_ASM__
  4893. /*!
  4894. * @brief HW_OCOTP_HDCP_KEY25 - Value of OTP Bank9 Word1 (HW Capabilities) (RW)
  4895. *
  4896. * Reset value: 0x00000000
  4897. *
  4898. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  4899. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 9, word 1 (ADDR = 0x49).
  4900. * EXAMPLE Empty Example.
  4901. */
  4902. typedef union _hw_ocotp_hdcp_key25
  4903. {
  4904. reg32_t U;
  4905. struct _hw_ocotp_hdcp_key25_bitfields
  4906. {
  4907. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 9, word 1 (ADDR = 0x49).
  4908. } B;
  4909. } hw_ocotp_hdcp_key25_t;
  4910. #endif
  4911. /*
  4912. * constants & macros for entire OCOTP_HDCP_KEY25 register
  4913. */
  4914. #define HW_OCOTP_HDCP_KEY25_ADDR (REGS_OCOTP_BASE + 0x990)
  4915. #ifndef __LANGUAGE_ASM__
  4916. #define HW_OCOTP_HDCP_KEY25 (*(volatile hw_ocotp_hdcp_key25_t *) HW_OCOTP_HDCP_KEY25_ADDR)
  4917. #define HW_OCOTP_HDCP_KEY25_RD() (HW_OCOTP_HDCP_KEY25.U)
  4918. #define HW_OCOTP_HDCP_KEY25_WR(v) (HW_OCOTP_HDCP_KEY25.U = (v))
  4919. #define HW_OCOTP_HDCP_KEY25_SET(v) (HW_OCOTP_HDCP_KEY25_WR(HW_OCOTP_HDCP_KEY25_RD() | (v)))
  4920. #define HW_OCOTP_HDCP_KEY25_CLR(v) (HW_OCOTP_HDCP_KEY25_WR(HW_OCOTP_HDCP_KEY25_RD() & ~(v)))
  4921. #define HW_OCOTP_HDCP_KEY25_TOG(v) (HW_OCOTP_HDCP_KEY25_WR(HW_OCOTP_HDCP_KEY25_RD() ^ (v)))
  4922. #endif
  4923. /*
  4924. * constants & macros for individual OCOTP_HDCP_KEY25 bitfields
  4925. */
  4926. /* --- Register HW_OCOTP_HDCP_KEY25, field BITS[31:0] (RW)
  4927. *
  4928. * Reflects value of OTP Bank 9, word 1 (ADDR = 0x49).
  4929. */
  4930. #define BP_OCOTP_HDCP_KEY25_BITS (0) //!< Bit position for OCOTP_HDCP_KEY25_BITS.
  4931. #define BM_OCOTP_HDCP_KEY25_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY25_BITS.
  4932. //! @brief Get value of OCOTP_HDCP_KEY25_BITS from a register value.
  4933. #define BG_OCOTP_HDCP_KEY25_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY25_BITS) >> BP_OCOTP_HDCP_KEY25_BITS)
  4934. //! @brief Format value for bitfield OCOTP_HDCP_KEY25_BITS.
  4935. #define BF_OCOTP_HDCP_KEY25_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY25_BITS) & BM_OCOTP_HDCP_KEY25_BITS)
  4936. #ifndef __LANGUAGE_ASM__
  4937. //! @brief Set the BITS field to a new value.
  4938. #define BW_OCOTP_HDCP_KEY25_BITS(v) (HW_OCOTP_HDCP_KEY25_WR((HW_OCOTP_HDCP_KEY25_RD() & ~BM_OCOTP_HDCP_KEY25_BITS) | BF_OCOTP_HDCP_KEY25_BITS(v)))
  4939. #endif
  4940. //-------------------------------------------------------------------------------------------
  4941. // HW_OCOTP_HDCP_KEY26 - Value of OTP Bank9 Word2 (HW Capabilities)
  4942. //-------------------------------------------------------------------------------------------
  4943. #ifndef __LANGUAGE_ASM__
  4944. /*!
  4945. * @brief HW_OCOTP_HDCP_KEY26 - Value of OTP Bank9 Word2 (HW Capabilities) (RW)
  4946. *
  4947. * Reset value: 0x00000000
  4948. *
  4949. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  4950. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 9, word 2 (ADDR = 0x4a).
  4951. * EXAMPLE Empty Example.
  4952. */
  4953. typedef union _hw_ocotp_hdcp_key26
  4954. {
  4955. reg32_t U;
  4956. struct _hw_ocotp_hdcp_key26_bitfields
  4957. {
  4958. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 9, word 2 (ADDR = 0x4a).
  4959. } B;
  4960. } hw_ocotp_hdcp_key26_t;
  4961. #endif
  4962. /*
  4963. * constants & macros for entire OCOTP_HDCP_KEY26 register
  4964. */
  4965. #define HW_OCOTP_HDCP_KEY26_ADDR (REGS_OCOTP_BASE + 0x9a0)
  4966. #ifndef __LANGUAGE_ASM__
  4967. #define HW_OCOTP_HDCP_KEY26 (*(volatile hw_ocotp_hdcp_key26_t *) HW_OCOTP_HDCP_KEY26_ADDR)
  4968. #define HW_OCOTP_HDCP_KEY26_RD() (HW_OCOTP_HDCP_KEY26.U)
  4969. #define HW_OCOTP_HDCP_KEY26_WR(v) (HW_OCOTP_HDCP_KEY26.U = (v))
  4970. #define HW_OCOTP_HDCP_KEY26_SET(v) (HW_OCOTP_HDCP_KEY26_WR(HW_OCOTP_HDCP_KEY26_RD() | (v)))
  4971. #define HW_OCOTP_HDCP_KEY26_CLR(v) (HW_OCOTP_HDCP_KEY26_WR(HW_OCOTP_HDCP_KEY26_RD() & ~(v)))
  4972. #define HW_OCOTP_HDCP_KEY26_TOG(v) (HW_OCOTP_HDCP_KEY26_WR(HW_OCOTP_HDCP_KEY26_RD() ^ (v)))
  4973. #endif
  4974. /*
  4975. * constants & macros for individual OCOTP_HDCP_KEY26 bitfields
  4976. */
  4977. /* --- Register HW_OCOTP_HDCP_KEY26, field BITS[31:0] (RW)
  4978. *
  4979. * Reflects value of OTP Bank 9, word 2 (ADDR = 0x4a).
  4980. */
  4981. #define BP_OCOTP_HDCP_KEY26_BITS (0) //!< Bit position for OCOTP_HDCP_KEY26_BITS.
  4982. #define BM_OCOTP_HDCP_KEY26_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY26_BITS.
  4983. //! @brief Get value of OCOTP_HDCP_KEY26_BITS from a register value.
  4984. #define BG_OCOTP_HDCP_KEY26_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY26_BITS) >> BP_OCOTP_HDCP_KEY26_BITS)
  4985. //! @brief Format value for bitfield OCOTP_HDCP_KEY26_BITS.
  4986. #define BF_OCOTP_HDCP_KEY26_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY26_BITS) & BM_OCOTP_HDCP_KEY26_BITS)
  4987. #ifndef __LANGUAGE_ASM__
  4988. //! @brief Set the BITS field to a new value.
  4989. #define BW_OCOTP_HDCP_KEY26_BITS(v) (HW_OCOTP_HDCP_KEY26_WR((HW_OCOTP_HDCP_KEY26_RD() & ~BM_OCOTP_HDCP_KEY26_BITS) | BF_OCOTP_HDCP_KEY26_BITS(v)))
  4990. #endif
  4991. //-------------------------------------------------------------------------------------------
  4992. // HW_OCOTP_HDCP_KEY27 - Value of OTP Bank9 Word3 (HW Capabilities)
  4993. //-------------------------------------------------------------------------------------------
  4994. #ifndef __LANGUAGE_ASM__
  4995. /*!
  4996. * @brief HW_OCOTP_HDCP_KEY27 - Value of OTP Bank9 Word3 (HW Capabilities) (RW)
  4997. *
  4998. * Reset value: 0x00000000
  4999. *
  5000. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  5001. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 9, word 3 (ADDR = 0x4b).
  5002. * EXAMPLE Empty Example.
  5003. */
  5004. typedef union _hw_ocotp_hdcp_key27
  5005. {
  5006. reg32_t U;
  5007. struct _hw_ocotp_hdcp_key27_bitfields
  5008. {
  5009. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 9, word 3 (ADDR = 0x4b).
  5010. } B;
  5011. } hw_ocotp_hdcp_key27_t;
  5012. #endif
  5013. /*
  5014. * constants & macros for entire OCOTP_HDCP_KEY27 register
  5015. */
  5016. #define HW_OCOTP_HDCP_KEY27_ADDR (REGS_OCOTP_BASE + 0x9b0)
  5017. #ifndef __LANGUAGE_ASM__
  5018. #define HW_OCOTP_HDCP_KEY27 (*(volatile hw_ocotp_hdcp_key27_t *) HW_OCOTP_HDCP_KEY27_ADDR)
  5019. #define HW_OCOTP_HDCP_KEY27_RD() (HW_OCOTP_HDCP_KEY27.U)
  5020. #define HW_OCOTP_HDCP_KEY27_WR(v) (HW_OCOTP_HDCP_KEY27.U = (v))
  5021. #define HW_OCOTP_HDCP_KEY27_SET(v) (HW_OCOTP_HDCP_KEY27_WR(HW_OCOTP_HDCP_KEY27_RD() | (v)))
  5022. #define HW_OCOTP_HDCP_KEY27_CLR(v) (HW_OCOTP_HDCP_KEY27_WR(HW_OCOTP_HDCP_KEY27_RD() & ~(v)))
  5023. #define HW_OCOTP_HDCP_KEY27_TOG(v) (HW_OCOTP_HDCP_KEY27_WR(HW_OCOTP_HDCP_KEY27_RD() ^ (v)))
  5024. #endif
  5025. /*
  5026. * constants & macros for individual OCOTP_HDCP_KEY27 bitfields
  5027. */
  5028. /* --- Register HW_OCOTP_HDCP_KEY27, field BITS[31:0] (RW)
  5029. *
  5030. * Reflects value of OTP Bank 9, word 3 (ADDR = 0x4b).
  5031. */
  5032. #define BP_OCOTP_HDCP_KEY27_BITS (0) //!< Bit position for OCOTP_HDCP_KEY27_BITS.
  5033. #define BM_OCOTP_HDCP_KEY27_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY27_BITS.
  5034. //! @brief Get value of OCOTP_HDCP_KEY27_BITS from a register value.
  5035. #define BG_OCOTP_HDCP_KEY27_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY27_BITS) >> BP_OCOTP_HDCP_KEY27_BITS)
  5036. //! @brief Format value for bitfield OCOTP_HDCP_KEY27_BITS.
  5037. #define BF_OCOTP_HDCP_KEY27_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY27_BITS) & BM_OCOTP_HDCP_KEY27_BITS)
  5038. #ifndef __LANGUAGE_ASM__
  5039. //! @brief Set the BITS field to a new value.
  5040. #define BW_OCOTP_HDCP_KEY27_BITS(v) (HW_OCOTP_HDCP_KEY27_WR((HW_OCOTP_HDCP_KEY27_RD() & ~BM_OCOTP_HDCP_KEY27_BITS) | BF_OCOTP_HDCP_KEY27_BITS(v)))
  5041. #endif
  5042. //-------------------------------------------------------------------------------------------
  5043. // HW_OCOTP_HDCP_KEY28 - Value of OTP Bank9 Word4 (HW Capabilities)
  5044. //-------------------------------------------------------------------------------------------
  5045. #ifndef __LANGUAGE_ASM__
  5046. /*!
  5047. * @brief HW_OCOTP_HDCP_KEY28 - Value of OTP Bank9 Word4 (HW Capabilities) (RW)
  5048. *
  5049. * Reset value: 0x00000000
  5050. *
  5051. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  5052. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 9, word 4 (ADDR = 0x4c).
  5053. * EXAMPLE Empty Example.
  5054. */
  5055. typedef union _hw_ocotp_hdcp_key28
  5056. {
  5057. reg32_t U;
  5058. struct _hw_ocotp_hdcp_key28_bitfields
  5059. {
  5060. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 9, word 4 (ADDR = 0x4c).
  5061. } B;
  5062. } hw_ocotp_hdcp_key28_t;
  5063. #endif
  5064. /*
  5065. * constants & macros for entire OCOTP_HDCP_KEY28 register
  5066. */
  5067. #define HW_OCOTP_HDCP_KEY28_ADDR (REGS_OCOTP_BASE + 0x9c0)
  5068. #ifndef __LANGUAGE_ASM__
  5069. #define HW_OCOTP_HDCP_KEY28 (*(volatile hw_ocotp_hdcp_key28_t *) HW_OCOTP_HDCP_KEY28_ADDR)
  5070. #define HW_OCOTP_HDCP_KEY28_RD() (HW_OCOTP_HDCP_KEY28.U)
  5071. #define HW_OCOTP_HDCP_KEY28_WR(v) (HW_OCOTP_HDCP_KEY28.U = (v))
  5072. #define HW_OCOTP_HDCP_KEY28_SET(v) (HW_OCOTP_HDCP_KEY28_WR(HW_OCOTP_HDCP_KEY28_RD() | (v)))
  5073. #define HW_OCOTP_HDCP_KEY28_CLR(v) (HW_OCOTP_HDCP_KEY28_WR(HW_OCOTP_HDCP_KEY28_RD() & ~(v)))
  5074. #define HW_OCOTP_HDCP_KEY28_TOG(v) (HW_OCOTP_HDCP_KEY28_WR(HW_OCOTP_HDCP_KEY28_RD() ^ (v)))
  5075. #endif
  5076. /*
  5077. * constants & macros for individual OCOTP_HDCP_KEY28 bitfields
  5078. */
  5079. /* --- Register HW_OCOTP_HDCP_KEY28, field BITS[31:0] (RW)
  5080. *
  5081. * Reflects value of OTP Bank 9, word 4 (ADDR = 0x4c).
  5082. */
  5083. #define BP_OCOTP_HDCP_KEY28_BITS (0) //!< Bit position for OCOTP_HDCP_KEY28_BITS.
  5084. #define BM_OCOTP_HDCP_KEY28_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY28_BITS.
  5085. //! @brief Get value of OCOTP_HDCP_KEY28_BITS from a register value.
  5086. #define BG_OCOTP_HDCP_KEY28_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY28_BITS) >> BP_OCOTP_HDCP_KEY28_BITS)
  5087. //! @brief Format value for bitfield OCOTP_HDCP_KEY28_BITS.
  5088. #define BF_OCOTP_HDCP_KEY28_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY28_BITS) & BM_OCOTP_HDCP_KEY28_BITS)
  5089. #ifndef __LANGUAGE_ASM__
  5090. //! @brief Set the BITS field to a new value.
  5091. #define BW_OCOTP_HDCP_KEY28_BITS(v) (HW_OCOTP_HDCP_KEY28_WR((HW_OCOTP_HDCP_KEY28_RD() & ~BM_OCOTP_HDCP_KEY28_BITS) | BF_OCOTP_HDCP_KEY28_BITS(v)))
  5092. #endif
  5093. //-------------------------------------------------------------------------------------------
  5094. // HW_OCOTP_HDCP_KEY29 - Value of OTP Bank9 Word5 (HW Capabilities)
  5095. //-------------------------------------------------------------------------------------------
  5096. #ifndef __LANGUAGE_ASM__
  5097. /*!
  5098. * @brief HW_OCOTP_HDCP_KEY29 - Value of OTP Bank9 Word5 (HW Capabilities) (RW)
  5099. *
  5100. * Reset value: 0x00000000
  5101. *
  5102. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  5103. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 9, word 5 (ADDR = 0x4d).
  5104. * EXAMPLE Empty Example.
  5105. */
  5106. typedef union _hw_ocotp_hdcp_key29
  5107. {
  5108. reg32_t U;
  5109. struct _hw_ocotp_hdcp_key29_bitfields
  5110. {
  5111. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 9, word 5 (ADDR = 0x4d).
  5112. } B;
  5113. } hw_ocotp_hdcp_key29_t;
  5114. #endif
  5115. /*
  5116. * constants & macros for entire OCOTP_HDCP_KEY29 register
  5117. */
  5118. #define HW_OCOTP_HDCP_KEY29_ADDR (REGS_OCOTP_BASE + 0x9d0)
  5119. #ifndef __LANGUAGE_ASM__
  5120. #define HW_OCOTP_HDCP_KEY29 (*(volatile hw_ocotp_hdcp_key29_t *) HW_OCOTP_HDCP_KEY29_ADDR)
  5121. #define HW_OCOTP_HDCP_KEY29_RD() (HW_OCOTP_HDCP_KEY29.U)
  5122. #define HW_OCOTP_HDCP_KEY29_WR(v) (HW_OCOTP_HDCP_KEY29.U = (v))
  5123. #define HW_OCOTP_HDCP_KEY29_SET(v) (HW_OCOTP_HDCP_KEY29_WR(HW_OCOTP_HDCP_KEY29_RD() | (v)))
  5124. #define HW_OCOTP_HDCP_KEY29_CLR(v) (HW_OCOTP_HDCP_KEY29_WR(HW_OCOTP_HDCP_KEY29_RD() & ~(v)))
  5125. #define HW_OCOTP_HDCP_KEY29_TOG(v) (HW_OCOTP_HDCP_KEY29_WR(HW_OCOTP_HDCP_KEY29_RD() ^ (v)))
  5126. #endif
  5127. /*
  5128. * constants & macros for individual OCOTP_HDCP_KEY29 bitfields
  5129. */
  5130. /* --- Register HW_OCOTP_HDCP_KEY29, field BITS[31:0] (RW)
  5131. *
  5132. * Reflects value of OTP Bank 9, word 5 (ADDR = 0x4d).
  5133. */
  5134. #define BP_OCOTP_HDCP_KEY29_BITS (0) //!< Bit position for OCOTP_HDCP_KEY29_BITS.
  5135. #define BM_OCOTP_HDCP_KEY29_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY29_BITS.
  5136. //! @brief Get value of OCOTP_HDCP_KEY29_BITS from a register value.
  5137. #define BG_OCOTP_HDCP_KEY29_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY29_BITS) >> BP_OCOTP_HDCP_KEY29_BITS)
  5138. //! @brief Format value for bitfield OCOTP_HDCP_KEY29_BITS.
  5139. #define BF_OCOTP_HDCP_KEY29_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY29_BITS) & BM_OCOTP_HDCP_KEY29_BITS)
  5140. #ifndef __LANGUAGE_ASM__
  5141. //! @brief Set the BITS field to a new value.
  5142. #define BW_OCOTP_HDCP_KEY29_BITS(v) (HW_OCOTP_HDCP_KEY29_WR((HW_OCOTP_HDCP_KEY29_RD() & ~BM_OCOTP_HDCP_KEY29_BITS) | BF_OCOTP_HDCP_KEY29_BITS(v)))
  5143. #endif
  5144. //-------------------------------------------------------------------------------------------
  5145. // HW_OCOTP_HDCP_KEY30 - Value of OTP Bank9 Word6 (HW Capabilities)
  5146. //-------------------------------------------------------------------------------------------
  5147. #ifndef __LANGUAGE_ASM__
  5148. /*!
  5149. * @brief HW_OCOTP_HDCP_KEY30 - Value of OTP Bank9 Word6 (HW Capabilities) (RW)
  5150. *
  5151. * Reset value: 0x00000000
  5152. *
  5153. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  5154. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 9, word 6 (ADDR = 0x4e).
  5155. * EXAMPLE Empty Example.
  5156. */
  5157. typedef union _hw_ocotp_hdcp_key30
  5158. {
  5159. reg32_t U;
  5160. struct _hw_ocotp_hdcp_key30_bitfields
  5161. {
  5162. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 9, word 6 (ADDR = 0x4e).
  5163. } B;
  5164. } hw_ocotp_hdcp_key30_t;
  5165. #endif
  5166. /*
  5167. * constants & macros for entire OCOTP_HDCP_KEY30 register
  5168. */
  5169. #define HW_OCOTP_HDCP_KEY30_ADDR (REGS_OCOTP_BASE + 0x9e0)
  5170. #ifndef __LANGUAGE_ASM__
  5171. #define HW_OCOTP_HDCP_KEY30 (*(volatile hw_ocotp_hdcp_key30_t *) HW_OCOTP_HDCP_KEY30_ADDR)
  5172. #define HW_OCOTP_HDCP_KEY30_RD() (HW_OCOTP_HDCP_KEY30.U)
  5173. #define HW_OCOTP_HDCP_KEY30_WR(v) (HW_OCOTP_HDCP_KEY30.U = (v))
  5174. #define HW_OCOTP_HDCP_KEY30_SET(v) (HW_OCOTP_HDCP_KEY30_WR(HW_OCOTP_HDCP_KEY30_RD() | (v)))
  5175. #define HW_OCOTP_HDCP_KEY30_CLR(v) (HW_OCOTP_HDCP_KEY30_WR(HW_OCOTP_HDCP_KEY30_RD() & ~(v)))
  5176. #define HW_OCOTP_HDCP_KEY30_TOG(v) (HW_OCOTP_HDCP_KEY30_WR(HW_OCOTP_HDCP_KEY30_RD() ^ (v)))
  5177. #endif
  5178. /*
  5179. * constants & macros for individual OCOTP_HDCP_KEY30 bitfields
  5180. */
  5181. /* --- Register HW_OCOTP_HDCP_KEY30, field BITS[31:0] (RW)
  5182. *
  5183. * Reflects value of OTP Bank 9, word 6 (ADDR = 0x4e).
  5184. */
  5185. #define BP_OCOTP_HDCP_KEY30_BITS (0) //!< Bit position for OCOTP_HDCP_KEY30_BITS.
  5186. #define BM_OCOTP_HDCP_KEY30_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY30_BITS.
  5187. //! @brief Get value of OCOTP_HDCP_KEY30_BITS from a register value.
  5188. #define BG_OCOTP_HDCP_KEY30_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY30_BITS) >> BP_OCOTP_HDCP_KEY30_BITS)
  5189. //! @brief Format value for bitfield OCOTP_HDCP_KEY30_BITS.
  5190. #define BF_OCOTP_HDCP_KEY30_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY30_BITS) & BM_OCOTP_HDCP_KEY30_BITS)
  5191. #ifndef __LANGUAGE_ASM__
  5192. //! @brief Set the BITS field to a new value.
  5193. #define BW_OCOTP_HDCP_KEY30_BITS(v) (HW_OCOTP_HDCP_KEY30_WR((HW_OCOTP_HDCP_KEY30_RD() & ~BM_OCOTP_HDCP_KEY30_BITS) | BF_OCOTP_HDCP_KEY30_BITS(v)))
  5194. #endif
  5195. //-------------------------------------------------------------------------------------------
  5196. // HW_OCOTP_HDCP_KEY31 - Value of OTP Bank9 Word7 (HW Capabilities)
  5197. //-------------------------------------------------------------------------------------------
  5198. #ifndef __LANGUAGE_ASM__
  5199. /*!
  5200. * @brief HW_OCOTP_HDCP_KEY31 - Value of OTP Bank9 Word7 (HW Capabilities) (RW)
  5201. *
  5202. * Reset value: 0x00000000
  5203. *
  5204. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  5205. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 9, word 7 (ADDR = 0x4f).
  5206. * EXAMPLE Empty Example.
  5207. */
  5208. typedef union _hw_ocotp_hdcp_key31
  5209. {
  5210. reg32_t U;
  5211. struct _hw_ocotp_hdcp_key31_bitfields
  5212. {
  5213. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 9, word 7 (ADDR = 0x4f).
  5214. } B;
  5215. } hw_ocotp_hdcp_key31_t;
  5216. #endif
  5217. /*
  5218. * constants & macros for entire OCOTP_HDCP_KEY31 register
  5219. */
  5220. #define HW_OCOTP_HDCP_KEY31_ADDR (REGS_OCOTP_BASE + 0x9f0)
  5221. #ifndef __LANGUAGE_ASM__
  5222. #define HW_OCOTP_HDCP_KEY31 (*(volatile hw_ocotp_hdcp_key31_t *) HW_OCOTP_HDCP_KEY31_ADDR)
  5223. #define HW_OCOTP_HDCP_KEY31_RD() (HW_OCOTP_HDCP_KEY31.U)
  5224. #define HW_OCOTP_HDCP_KEY31_WR(v) (HW_OCOTP_HDCP_KEY31.U = (v))
  5225. #define HW_OCOTP_HDCP_KEY31_SET(v) (HW_OCOTP_HDCP_KEY31_WR(HW_OCOTP_HDCP_KEY31_RD() | (v)))
  5226. #define HW_OCOTP_HDCP_KEY31_CLR(v) (HW_OCOTP_HDCP_KEY31_WR(HW_OCOTP_HDCP_KEY31_RD() & ~(v)))
  5227. #define HW_OCOTP_HDCP_KEY31_TOG(v) (HW_OCOTP_HDCP_KEY31_WR(HW_OCOTP_HDCP_KEY31_RD() ^ (v)))
  5228. #endif
  5229. /*
  5230. * constants & macros for individual OCOTP_HDCP_KEY31 bitfields
  5231. */
  5232. /* --- Register HW_OCOTP_HDCP_KEY31, field BITS[31:0] (RW)
  5233. *
  5234. * Reflects value of OTP Bank 9, word 7 (ADDR = 0x4f).
  5235. */
  5236. #define BP_OCOTP_HDCP_KEY31_BITS (0) //!< Bit position for OCOTP_HDCP_KEY31_BITS.
  5237. #define BM_OCOTP_HDCP_KEY31_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY31_BITS.
  5238. //! @brief Get value of OCOTP_HDCP_KEY31_BITS from a register value.
  5239. #define BG_OCOTP_HDCP_KEY31_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY31_BITS) >> BP_OCOTP_HDCP_KEY31_BITS)
  5240. //! @brief Format value for bitfield OCOTP_HDCP_KEY31_BITS.
  5241. #define BF_OCOTP_HDCP_KEY31_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY31_BITS) & BM_OCOTP_HDCP_KEY31_BITS)
  5242. #ifndef __LANGUAGE_ASM__
  5243. //! @brief Set the BITS field to a new value.
  5244. #define BW_OCOTP_HDCP_KEY31_BITS(v) (HW_OCOTP_HDCP_KEY31_WR((HW_OCOTP_HDCP_KEY31_RD() & ~BM_OCOTP_HDCP_KEY31_BITS) | BF_OCOTP_HDCP_KEY31_BITS(v)))
  5245. #endif
  5246. //-------------------------------------------------------------------------------------------
  5247. // HW_OCOTP_HDCP_KEY32 - Value of OTP Bank10 Word0 (HW Capabilities)
  5248. //-------------------------------------------------------------------------------------------
  5249. #ifndef __LANGUAGE_ASM__
  5250. /*!
  5251. * @brief HW_OCOTP_HDCP_KEY32 - Value of OTP Bank10 Word0 (HW Capabilities) (RW)
  5252. *
  5253. * Reset value: 0x00000000
  5254. *
  5255. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  5256. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 10, word 0 (ADDR =
  5257. * 0x50). EXAMPLE Empty Example.
  5258. */
  5259. typedef union _hw_ocotp_hdcp_key32
  5260. {
  5261. reg32_t U;
  5262. struct _hw_ocotp_hdcp_key32_bitfields
  5263. {
  5264. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 10, word 0 (ADDR = 0x50).
  5265. } B;
  5266. } hw_ocotp_hdcp_key32_t;
  5267. #endif
  5268. /*
  5269. * constants & macros for entire OCOTP_HDCP_KEY32 register
  5270. */
  5271. #define HW_OCOTP_HDCP_KEY32_ADDR (REGS_OCOTP_BASE + 0xa00)
  5272. #ifndef __LANGUAGE_ASM__
  5273. #define HW_OCOTP_HDCP_KEY32 (*(volatile hw_ocotp_hdcp_key32_t *) HW_OCOTP_HDCP_KEY32_ADDR)
  5274. #define HW_OCOTP_HDCP_KEY32_RD() (HW_OCOTP_HDCP_KEY32.U)
  5275. #define HW_OCOTP_HDCP_KEY32_WR(v) (HW_OCOTP_HDCP_KEY32.U = (v))
  5276. #define HW_OCOTP_HDCP_KEY32_SET(v) (HW_OCOTP_HDCP_KEY32_WR(HW_OCOTP_HDCP_KEY32_RD() | (v)))
  5277. #define HW_OCOTP_HDCP_KEY32_CLR(v) (HW_OCOTP_HDCP_KEY32_WR(HW_OCOTP_HDCP_KEY32_RD() & ~(v)))
  5278. #define HW_OCOTP_HDCP_KEY32_TOG(v) (HW_OCOTP_HDCP_KEY32_WR(HW_OCOTP_HDCP_KEY32_RD() ^ (v)))
  5279. #endif
  5280. /*
  5281. * constants & macros for individual OCOTP_HDCP_KEY32 bitfields
  5282. */
  5283. /* --- Register HW_OCOTP_HDCP_KEY32, field BITS[31:0] (RW)
  5284. *
  5285. * Reflects value of OTP Bank 10, word 0 (ADDR = 0x50).
  5286. */
  5287. #define BP_OCOTP_HDCP_KEY32_BITS (0) //!< Bit position for OCOTP_HDCP_KEY32_BITS.
  5288. #define BM_OCOTP_HDCP_KEY32_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY32_BITS.
  5289. //! @brief Get value of OCOTP_HDCP_KEY32_BITS from a register value.
  5290. #define BG_OCOTP_HDCP_KEY32_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY32_BITS) >> BP_OCOTP_HDCP_KEY32_BITS)
  5291. //! @brief Format value for bitfield OCOTP_HDCP_KEY32_BITS.
  5292. #define BF_OCOTP_HDCP_KEY32_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY32_BITS) & BM_OCOTP_HDCP_KEY32_BITS)
  5293. #ifndef __LANGUAGE_ASM__
  5294. //! @brief Set the BITS field to a new value.
  5295. #define BW_OCOTP_HDCP_KEY32_BITS(v) (HW_OCOTP_HDCP_KEY32_WR((HW_OCOTP_HDCP_KEY32_RD() & ~BM_OCOTP_HDCP_KEY32_BITS) | BF_OCOTP_HDCP_KEY32_BITS(v)))
  5296. #endif
  5297. //-------------------------------------------------------------------------------------------
  5298. // HW_OCOTP_HDCP_KEY33 - Value of OTP Bank10 Word1 (HW Capabilities)
  5299. //-------------------------------------------------------------------------------------------
  5300. #ifndef __LANGUAGE_ASM__
  5301. /*!
  5302. * @brief HW_OCOTP_HDCP_KEY33 - Value of OTP Bank10 Word1 (HW Capabilities) (RW)
  5303. *
  5304. * Reset value: 0x00000000
  5305. *
  5306. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  5307. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 10, word 1 (ADDR =
  5308. * 0x51). EXAMPLE Empty Example.
  5309. */
  5310. typedef union _hw_ocotp_hdcp_key33
  5311. {
  5312. reg32_t U;
  5313. struct _hw_ocotp_hdcp_key33_bitfields
  5314. {
  5315. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 10, word 1 (ADDR = 0x51).
  5316. } B;
  5317. } hw_ocotp_hdcp_key33_t;
  5318. #endif
  5319. /*
  5320. * constants & macros for entire OCOTP_HDCP_KEY33 register
  5321. */
  5322. #define HW_OCOTP_HDCP_KEY33_ADDR (REGS_OCOTP_BASE + 0xa10)
  5323. #ifndef __LANGUAGE_ASM__
  5324. #define HW_OCOTP_HDCP_KEY33 (*(volatile hw_ocotp_hdcp_key33_t *) HW_OCOTP_HDCP_KEY33_ADDR)
  5325. #define HW_OCOTP_HDCP_KEY33_RD() (HW_OCOTP_HDCP_KEY33.U)
  5326. #define HW_OCOTP_HDCP_KEY33_WR(v) (HW_OCOTP_HDCP_KEY33.U = (v))
  5327. #define HW_OCOTP_HDCP_KEY33_SET(v) (HW_OCOTP_HDCP_KEY33_WR(HW_OCOTP_HDCP_KEY33_RD() | (v)))
  5328. #define HW_OCOTP_HDCP_KEY33_CLR(v) (HW_OCOTP_HDCP_KEY33_WR(HW_OCOTP_HDCP_KEY33_RD() & ~(v)))
  5329. #define HW_OCOTP_HDCP_KEY33_TOG(v) (HW_OCOTP_HDCP_KEY33_WR(HW_OCOTP_HDCP_KEY33_RD() ^ (v)))
  5330. #endif
  5331. /*
  5332. * constants & macros for individual OCOTP_HDCP_KEY33 bitfields
  5333. */
  5334. /* --- Register HW_OCOTP_HDCP_KEY33, field BITS[31:0] (RW)
  5335. *
  5336. * Reflects value of OTP Bank 10, word 1 (ADDR = 0x51).
  5337. */
  5338. #define BP_OCOTP_HDCP_KEY33_BITS (0) //!< Bit position for OCOTP_HDCP_KEY33_BITS.
  5339. #define BM_OCOTP_HDCP_KEY33_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY33_BITS.
  5340. //! @brief Get value of OCOTP_HDCP_KEY33_BITS from a register value.
  5341. #define BG_OCOTP_HDCP_KEY33_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY33_BITS) >> BP_OCOTP_HDCP_KEY33_BITS)
  5342. //! @brief Format value for bitfield OCOTP_HDCP_KEY33_BITS.
  5343. #define BF_OCOTP_HDCP_KEY33_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY33_BITS) & BM_OCOTP_HDCP_KEY33_BITS)
  5344. #ifndef __LANGUAGE_ASM__
  5345. //! @brief Set the BITS field to a new value.
  5346. #define BW_OCOTP_HDCP_KEY33_BITS(v) (HW_OCOTP_HDCP_KEY33_WR((HW_OCOTP_HDCP_KEY33_RD() & ~BM_OCOTP_HDCP_KEY33_BITS) | BF_OCOTP_HDCP_KEY33_BITS(v)))
  5347. #endif
  5348. //-------------------------------------------------------------------------------------------
  5349. // HW_OCOTP_HDCP_KEY34 - Value of OTP Bank10 Word2 (HW Capabilities)
  5350. //-------------------------------------------------------------------------------------------
  5351. #ifndef __LANGUAGE_ASM__
  5352. /*!
  5353. * @brief HW_OCOTP_HDCP_KEY34 - Value of OTP Bank10 Word2 (HW Capabilities) (RW)
  5354. *
  5355. * Reset value: 0x00000000
  5356. *
  5357. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  5358. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 10, word 2 (ADDR =
  5359. * 0x52). EXAMPLE Empty Example.
  5360. */
  5361. typedef union _hw_ocotp_hdcp_key34
  5362. {
  5363. reg32_t U;
  5364. struct _hw_ocotp_hdcp_key34_bitfields
  5365. {
  5366. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 10, word 2 (ADDR = 0x52).
  5367. } B;
  5368. } hw_ocotp_hdcp_key34_t;
  5369. #endif
  5370. /*
  5371. * constants & macros for entire OCOTP_HDCP_KEY34 register
  5372. */
  5373. #define HW_OCOTP_HDCP_KEY34_ADDR (REGS_OCOTP_BASE + 0xa20)
  5374. #ifndef __LANGUAGE_ASM__
  5375. #define HW_OCOTP_HDCP_KEY34 (*(volatile hw_ocotp_hdcp_key34_t *) HW_OCOTP_HDCP_KEY34_ADDR)
  5376. #define HW_OCOTP_HDCP_KEY34_RD() (HW_OCOTP_HDCP_KEY34.U)
  5377. #define HW_OCOTP_HDCP_KEY34_WR(v) (HW_OCOTP_HDCP_KEY34.U = (v))
  5378. #define HW_OCOTP_HDCP_KEY34_SET(v) (HW_OCOTP_HDCP_KEY34_WR(HW_OCOTP_HDCP_KEY34_RD() | (v)))
  5379. #define HW_OCOTP_HDCP_KEY34_CLR(v) (HW_OCOTP_HDCP_KEY34_WR(HW_OCOTP_HDCP_KEY34_RD() & ~(v)))
  5380. #define HW_OCOTP_HDCP_KEY34_TOG(v) (HW_OCOTP_HDCP_KEY34_WR(HW_OCOTP_HDCP_KEY34_RD() ^ (v)))
  5381. #endif
  5382. /*
  5383. * constants & macros for individual OCOTP_HDCP_KEY34 bitfields
  5384. */
  5385. /* --- Register HW_OCOTP_HDCP_KEY34, field BITS[31:0] (RW)
  5386. *
  5387. * Reflects value of OTP Bank 10, word 2 (ADDR = 0x52).
  5388. */
  5389. #define BP_OCOTP_HDCP_KEY34_BITS (0) //!< Bit position for OCOTP_HDCP_KEY34_BITS.
  5390. #define BM_OCOTP_HDCP_KEY34_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY34_BITS.
  5391. //! @brief Get value of OCOTP_HDCP_KEY34_BITS from a register value.
  5392. #define BG_OCOTP_HDCP_KEY34_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY34_BITS) >> BP_OCOTP_HDCP_KEY34_BITS)
  5393. //! @brief Format value for bitfield OCOTP_HDCP_KEY34_BITS.
  5394. #define BF_OCOTP_HDCP_KEY34_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY34_BITS) & BM_OCOTP_HDCP_KEY34_BITS)
  5395. #ifndef __LANGUAGE_ASM__
  5396. //! @brief Set the BITS field to a new value.
  5397. #define BW_OCOTP_HDCP_KEY34_BITS(v) (HW_OCOTP_HDCP_KEY34_WR((HW_OCOTP_HDCP_KEY34_RD() & ~BM_OCOTP_HDCP_KEY34_BITS) | BF_OCOTP_HDCP_KEY34_BITS(v)))
  5398. #endif
  5399. //-------------------------------------------------------------------------------------------
  5400. // HW_OCOTP_HDCP_KEY35 - Value of OTP Bank10 Word3 (HW Capabilities)
  5401. //-------------------------------------------------------------------------------------------
  5402. #ifndef __LANGUAGE_ASM__
  5403. /*!
  5404. * @brief HW_OCOTP_HDCP_KEY35 - Value of OTP Bank10 Word3 (HW Capabilities) (RW)
  5405. *
  5406. * Reset value: 0x00000000
  5407. *
  5408. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  5409. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 10, word 3 (ADDR =
  5410. * 0x53). EXAMPLE Empty Example.
  5411. */
  5412. typedef union _hw_ocotp_hdcp_key35
  5413. {
  5414. reg32_t U;
  5415. struct _hw_ocotp_hdcp_key35_bitfields
  5416. {
  5417. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 10, word 3 (ADDR = 0x53).
  5418. } B;
  5419. } hw_ocotp_hdcp_key35_t;
  5420. #endif
  5421. /*
  5422. * constants & macros for entire OCOTP_HDCP_KEY35 register
  5423. */
  5424. #define HW_OCOTP_HDCP_KEY35_ADDR (REGS_OCOTP_BASE + 0xa30)
  5425. #ifndef __LANGUAGE_ASM__
  5426. #define HW_OCOTP_HDCP_KEY35 (*(volatile hw_ocotp_hdcp_key35_t *) HW_OCOTP_HDCP_KEY35_ADDR)
  5427. #define HW_OCOTP_HDCP_KEY35_RD() (HW_OCOTP_HDCP_KEY35.U)
  5428. #define HW_OCOTP_HDCP_KEY35_WR(v) (HW_OCOTP_HDCP_KEY35.U = (v))
  5429. #define HW_OCOTP_HDCP_KEY35_SET(v) (HW_OCOTP_HDCP_KEY35_WR(HW_OCOTP_HDCP_KEY35_RD() | (v)))
  5430. #define HW_OCOTP_HDCP_KEY35_CLR(v) (HW_OCOTP_HDCP_KEY35_WR(HW_OCOTP_HDCP_KEY35_RD() & ~(v)))
  5431. #define HW_OCOTP_HDCP_KEY35_TOG(v) (HW_OCOTP_HDCP_KEY35_WR(HW_OCOTP_HDCP_KEY35_RD() ^ (v)))
  5432. #endif
  5433. /*
  5434. * constants & macros for individual OCOTP_HDCP_KEY35 bitfields
  5435. */
  5436. /* --- Register HW_OCOTP_HDCP_KEY35, field BITS[31:0] (RW)
  5437. *
  5438. * Reflects value of OTP Bank 10, word 3 (ADDR = 0x53).
  5439. */
  5440. #define BP_OCOTP_HDCP_KEY35_BITS (0) //!< Bit position for OCOTP_HDCP_KEY35_BITS.
  5441. #define BM_OCOTP_HDCP_KEY35_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY35_BITS.
  5442. //! @brief Get value of OCOTP_HDCP_KEY35_BITS from a register value.
  5443. #define BG_OCOTP_HDCP_KEY35_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY35_BITS) >> BP_OCOTP_HDCP_KEY35_BITS)
  5444. //! @brief Format value for bitfield OCOTP_HDCP_KEY35_BITS.
  5445. #define BF_OCOTP_HDCP_KEY35_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY35_BITS) & BM_OCOTP_HDCP_KEY35_BITS)
  5446. #ifndef __LANGUAGE_ASM__
  5447. //! @brief Set the BITS field to a new value.
  5448. #define BW_OCOTP_HDCP_KEY35_BITS(v) (HW_OCOTP_HDCP_KEY35_WR((HW_OCOTP_HDCP_KEY35_RD() & ~BM_OCOTP_HDCP_KEY35_BITS) | BF_OCOTP_HDCP_KEY35_BITS(v)))
  5449. #endif
  5450. //-------------------------------------------------------------------------------------------
  5451. // HW_OCOTP_HDCP_KEY36 - Value of OTP Bank10 Word4 (HW Capabilities)
  5452. //-------------------------------------------------------------------------------------------
  5453. #ifndef __LANGUAGE_ASM__
  5454. /*!
  5455. * @brief HW_OCOTP_HDCP_KEY36 - Value of OTP Bank10 Word4 (HW Capabilities) (RW)
  5456. *
  5457. * Reset value: 0x00000000
  5458. *
  5459. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  5460. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 10, word 4 (ADDR =
  5461. * 0x54). EXAMPLE Empty Example.
  5462. */
  5463. typedef union _hw_ocotp_hdcp_key36
  5464. {
  5465. reg32_t U;
  5466. struct _hw_ocotp_hdcp_key36_bitfields
  5467. {
  5468. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 10, word 4 (ADDR = 0x54).
  5469. } B;
  5470. } hw_ocotp_hdcp_key36_t;
  5471. #endif
  5472. /*
  5473. * constants & macros for entire OCOTP_HDCP_KEY36 register
  5474. */
  5475. #define HW_OCOTP_HDCP_KEY36_ADDR (REGS_OCOTP_BASE + 0xa40)
  5476. #ifndef __LANGUAGE_ASM__
  5477. #define HW_OCOTP_HDCP_KEY36 (*(volatile hw_ocotp_hdcp_key36_t *) HW_OCOTP_HDCP_KEY36_ADDR)
  5478. #define HW_OCOTP_HDCP_KEY36_RD() (HW_OCOTP_HDCP_KEY36.U)
  5479. #define HW_OCOTP_HDCP_KEY36_WR(v) (HW_OCOTP_HDCP_KEY36.U = (v))
  5480. #define HW_OCOTP_HDCP_KEY36_SET(v) (HW_OCOTP_HDCP_KEY36_WR(HW_OCOTP_HDCP_KEY36_RD() | (v)))
  5481. #define HW_OCOTP_HDCP_KEY36_CLR(v) (HW_OCOTP_HDCP_KEY36_WR(HW_OCOTP_HDCP_KEY36_RD() & ~(v)))
  5482. #define HW_OCOTP_HDCP_KEY36_TOG(v) (HW_OCOTP_HDCP_KEY36_WR(HW_OCOTP_HDCP_KEY36_RD() ^ (v)))
  5483. #endif
  5484. /*
  5485. * constants & macros for individual OCOTP_HDCP_KEY36 bitfields
  5486. */
  5487. /* --- Register HW_OCOTP_HDCP_KEY36, field BITS[31:0] (RW)
  5488. *
  5489. * Reflects value of OTP Bank 10, word 4 (ADDR = 0x54).
  5490. */
  5491. #define BP_OCOTP_HDCP_KEY36_BITS (0) //!< Bit position for OCOTP_HDCP_KEY36_BITS.
  5492. #define BM_OCOTP_HDCP_KEY36_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY36_BITS.
  5493. //! @brief Get value of OCOTP_HDCP_KEY36_BITS from a register value.
  5494. #define BG_OCOTP_HDCP_KEY36_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY36_BITS) >> BP_OCOTP_HDCP_KEY36_BITS)
  5495. //! @brief Format value for bitfield OCOTP_HDCP_KEY36_BITS.
  5496. #define BF_OCOTP_HDCP_KEY36_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY36_BITS) & BM_OCOTP_HDCP_KEY36_BITS)
  5497. #ifndef __LANGUAGE_ASM__
  5498. //! @brief Set the BITS field to a new value.
  5499. #define BW_OCOTP_HDCP_KEY36_BITS(v) (HW_OCOTP_HDCP_KEY36_WR((HW_OCOTP_HDCP_KEY36_RD() & ~BM_OCOTP_HDCP_KEY36_BITS) | BF_OCOTP_HDCP_KEY36_BITS(v)))
  5500. #endif
  5501. //-------------------------------------------------------------------------------------------
  5502. // HW_OCOTP_HDCP_KEY37 - Value of OTP Bank10 Word5 (HW Capabilities)
  5503. //-------------------------------------------------------------------------------------------
  5504. #ifndef __LANGUAGE_ASM__
  5505. /*!
  5506. * @brief HW_OCOTP_HDCP_KEY37 - Value of OTP Bank10 Word5 (HW Capabilities) (RW)
  5507. *
  5508. * Reset value: 0x00000000
  5509. *
  5510. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  5511. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 10, word 5 (ADDR =
  5512. * 0x55). EXAMPLE Empty Example.
  5513. */
  5514. typedef union _hw_ocotp_hdcp_key37
  5515. {
  5516. reg32_t U;
  5517. struct _hw_ocotp_hdcp_key37_bitfields
  5518. {
  5519. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 10, word 5 (ADDR = 0x55).
  5520. } B;
  5521. } hw_ocotp_hdcp_key37_t;
  5522. #endif
  5523. /*
  5524. * constants & macros for entire OCOTP_HDCP_KEY37 register
  5525. */
  5526. #define HW_OCOTP_HDCP_KEY37_ADDR (REGS_OCOTP_BASE + 0xa50)
  5527. #ifndef __LANGUAGE_ASM__
  5528. #define HW_OCOTP_HDCP_KEY37 (*(volatile hw_ocotp_hdcp_key37_t *) HW_OCOTP_HDCP_KEY37_ADDR)
  5529. #define HW_OCOTP_HDCP_KEY37_RD() (HW_OCOTP_HDCP_KEY37.U)
  5530. #define HW_OCOTP_HDCP_KEY37_WR(v) (HW_OCOTP_HDCP_KEY37.U = (v))
  5531. #define HW_OCOTP_HDCP_KEY37_SET(v) (HW_OCOTP_HDCP_KEY37_WR(HW_OCOTP_HDCP_KEY37_RD() | (v)))
  5532. #define HW_OCOTP_HDCP_KEY37_CLR(v) (HW_OCOTP_HDCP_KEY37_WR(HW_OCOTP_HDCP_KEY37_RD() & ~(v)))
  5533. #define HW_OCOTP_HDCP_KEY37_TOG(v) (HW_OCOTP_HDCP_KEY37_WR(HW_OCOTP_HDCP_KEY37_RD() ^ (v)))
  5534. #endif
  5535. /*
  5536. * constants & macros for individual OCOTP_HDCP_KEY37 bitfields
  5537. */
  5538. /* --- Register HW_OCOTP_HDCP_KEY37, field BITS[31:0] (RW)
  5539. *
  5540. * Reflects value of OTP Bank 10, word 5 (ADDR = 0x55).
  5541. */
  5542. #define BP_OCOTP_HDCP_KEY37_BITS (0) //!< Bit position for OCOTP_HDCP_KEY37_BITS.
  5543. #define BM_OCOTP_HDCP_KEY37_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY37_BITS.
  5544. //! @brief Get value of OCOTP_HDCP_KEY37_BITS from a register value.
  5545. #define BG_OCOTP_HDCP_KEY37_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY37_BITS) >> BP_OCOTP_HDCP_KEY37_BITS)
  5546. //! @brief Format value for bitfield OCOTP_HDCP_KEY37_BITS.
  5547. #define BF_OCOTP_HDCP_KEY37_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY37_BITS) & BM_OCOTP_HDCP_KEY37_BITS)
  5548. #ifndef __LANGUAGE_ASM__
  5549. //! @brief Set the BITS field to a new value.
  5550. #define BW_OCOTP_HDCP_KEY37_BITS(v) (HW_OCOTP_HDCP_KEY37_WR((HW_OCOTP_HDCP_KEY37_RD() & ~BM_OCOTP_HDCP_KEY37_BITS) | BF_OCOTP_HDCP_KEY37_BITS(v)))
  5551. #endif
  5552. //-------------------------------------------------------------------------------------------
  5553. // HW_OCOTP_HDCP_KEY38 - Value of OTP Bank10 Word6 (HW Capabilities)
  5554. //-------------------------------------------------------------------------------------------
  5555. #ifndef __LANGUAGE_ASM__
  5556. /*!
  5557. * @brief HW_OCOTP_HDCP_KEY38 - Value of OTP Bank10 Word6 (HW Capabilities) (RW)
  5558. *
  5559. * Reset value: 0x00000000
  5560. *
  5561. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  5562. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 10, word 6 (ADDR =
  5563. * 0x56). EXAMPLE Empty Example.
  5564. */
  5565. typedef union _hw_ocotp_hdcp_key38
  5566. {
  5567. reg32_t U;
  5568. struct _hw_ocotp_hdcp_key38_bitfields
  5569. {
  5570. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 10, word 6 (ADDR = 0x56).
  5571. } B;
  5572. } hw_ocotp_hdcp_key38_t;
  5573. #endif
  5574. /*
  5575. * constants & macros for entire OCOTP_HDCP_KEY38 register
  5576. */
  5577. #define HW_OCOTP_HDCP_KEY38_ADDR (REGS_OCOTP_BASE + 0xa60)
  5578. #ifndef __LANGUAGE_ASM__
  5579. #define HW_OCOTP_HDCP_KEY38 (*(volatile hw_ocotp_hdcp_key38_t *) HW_OCOTP_HDCP_KEY38_ADDR)
  5580. #define HW_OCOTP_HDCP_KEY38_RD() (HW_OCOTP_HDCP_KEY38.U)
  5581. #define HW_OCOTP_HDCP_KEY38_WR(v) (HW_OCOTP_HDCP_KEY38.U = (v))
  5582. #define HW_OCOTP_HDCP_KEY38_SET(v) (HW_OCOTP_HDCP_KEY38_WR(HW_OCOTP_HDCP_KEY38_RD() | (v)))
  5583. #define HW_OCOTP_HDCP_KEY38_CLR(v) (HW_OCOTP_HDCP_KEY38_WR(HW_OCOTP_HDCP_KEY38_RD() & ~(v)))
  5584. #define HW_OCOTP_HDCP_KEY38_TOG(v) (HW_OCOTP_HDCP_KEY38_WR(HW_OCOTP_HDCP_KEY38_RD() ^ (v)))
  5585. #endif
  5586. /*
  5587. * constants & macros for individual OCOTP_HDCP_KEY38 bitfields
  5588. */
  5589. /* --- Register HW_OCOTP_HDCP_KEY38, field BITS[31:0] (RW)
  5590. *
  5591. * Reflects value of OTP Bank 10, word 6 (ADDR = 0x56).
  5592. */
  5593. #define BP_OCOTP_HDCP_KEY38_BITS (0) //!< Bit position for OCOTP_HDCP_KEY38_BITS.
  5594. #define BM_OCOTP_HDCP_KEY38_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY38_BITS.
  5595. //! @brief Get value of OCOTP_HDCP_KEY38_BITS from a register value.
  5596. #define BG_OCOTP_HDCP_KEY38_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY38_BITS) >> BP_OCOTP_HDCP_KEY38_BITS)
  5597. //! @brief Format value for bitfield OCOTP_HDCP_KEY38_BITS.
  5598. #define BF_OCOTP_HDCP_KEY38_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY38_BITS) & BM_OCOTP_HDCP_KEY38_BITS)
  5599. #ifndef __LANGUAGE_ASM__
  5600. //! @brief Set the BITS field to a new value.
  5601. #define BW_OCOTP_HDCP_KEY38_BITS(v) (HW_OCOTP_HDCP_KEY38_WR((HW_OCOTP_HDCP_KEY38_RD() & ~BM_OCOTP_HDCP_KEY38_BITS) | BF_OCOTP_HDCP_KEY38_BITS(v)))
  5602. #endif
  5603. //-------------------------------------------------------------------------------------------
  5604. // HW_OCOTP_HDCP_KEY39 - Value of OTP Bank10 Word7 (HW Capabilities)
  5605. //-------------------------------------------------------------------------------------------
  5606. #ifndef __LANGUAGE_ASM__
  5607. /*!
  5608. * @brief HW_OCOTP_HDCP_KEY39 - Value of OTP Bank10 Word7 (HW Capabilities) (RW)
  5609. *
  5610. * Reset value: 0x00000000
  5611. *
  5612. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  5613. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 10, word 7 (ADDR =
  5614. * 0x57). EXAMPLE Empty Example.
  5615. */
  5616. typedef union _hw_ocotp_hdcp_key39
  5617. {
  5618. reg32_t U;
  5619. struct _hw_ocotp_hdcp_key39_bitfields
  5620. {
  5621. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 10, word 7 (ADDR = 0x57).
  5622. } B;
  5623. } hw_ocotp_hdcp_key39_t;
  5624. #endif
  5625. /*
  5626. * constants & macros for entire OCOTP_HDCP_KEY39 register
  5627. */
  5628. #define HW_OCOTP_HDCP_KEY39_ADDR (REGS_OCOTP_BASE + 0xa70)
  5629. #ifndef __LANGUAGE_ASM__
  5630. #define HW_OCOTP_HDCP_KEY39 (*(volatile hw_ocotp_hdcp_key39_t *) HW_OCOTP_HDCP_KEY39_ADDR)
  5631. #define HW_OCOTP_HDCP_KEY39_RD() (HW_OCOTP_HDCP_KEY39.U)
  5632. #define HW_OCOTP_HDCP_KEY39_WR(v) (HW_OCOTP_HDCP_KEY39.U = (v))
  5633. #define HW_OCOTP_HDCP_KEY39_SET(v) (HW_OCOTP_HDCP_KEY39_WR(HW_OCOTP_HDCP_KEY39_RD() | (v)))
  5634. #define HW_OCOTP_HDCP_KEY39_CLR(v) (HW_OCOTP_HDCP_KEY39_WR(HW_OCOTP_HDCP_KEY39_RD() & ~(v)))
  5635. #define HW_OCOTP_HDCP_KEY39_TOG(v) (HW_OCOTP_HDCP_KEY39_WR(HW_OCOTP_HDCP_KEY39_RD() ^ (v)))
  5636. #endif
  5637. /*
  5638. * constants & macros for individual OCOTP_HDCP_KEY39 bitfields
  5639. */
  5640. /* --- Register HW_OCOTP_HDCP_KEY39, field BITS[31:0] (RW)
  5641. *
  5642. * Reflects value of OTP Bank 10, word 7 (ADDR = 0x57).
  5643. */
  5644. #define BP_OCOTP_HDCP_KEY39_BITS (0) //!< Bit position for OCOTP_HDCP_KEY39_BITS.
  5645. #define BM_OCOTP_HDCP_KEY39_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY39_BITS.
  5646. //! @brief Get value of OCOTP_HDCP_KEY39_BITS from a register value.
  5647. #define BG_OCOTP_HDCP_KEY39_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY39_BITS) >> BP_OCOTP_HDCP_KEY39_BITS)
  5648. //! @brief Format value for bitfield OCOTP_HDCP_KEY39_BITS.
  5649. #define BF_OCOTP_HDCP_KEY39_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY39_BITS) & BM_OCOTP_HDCP_KEY39_BITS)
  5650. #ifndef __LANGUAGE_ASM__
  5651. //! @brief Set the BITS field to a new value.
  5652. #define BW_OCOTP_HDCP_KEY39_BITS(v) (HW_OCOTP_HDCP_KEY39_WR((HW_OCOTP_HDCP_KEY39_RD() & ~BM_OCOTP_HDCP_KEY39_BITS) | BF_OCOTP_HDCP_KEY39_BITS(v)))
  5653. #endif
  5654. //-------------------------------------------------------------------------------------------
  5655. // HW_OCOTP_HDCP_KEY40 - Value of OTP Bank11 Word0 (HW Capabilities)
  5656. //-------------------------------------------------------------------------------------------
  5657. #ifndef __LANGUAGE_ASM__
  5658. /*!
  5659. * @brief HW_OCOTP_HDCP_KEY40 - Value of OTP Bank11 Word0 (HW Capabilities) (RW)
  5660. *
  5661. * Reset value: 0x00000000
  5662. *
  5663. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  5664. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 11, word 0 (ADDR =
  5665. * 0x58). EXAMPLE Empty Example.
  5666. */
  5667. typedef union _hw_ocotp_hdcp_key40
  5668. {
  5669. reg32_t U;
  5670. struct _hw_ocotp_hdcp_key40_bitfields
  5671. {
  5672. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 11, word 0 (ADDR = 0x58).
  5673. } B;
  5674. } hw_ocotp_hdcp_key40_t;
  5675. #endif
  5676. /*
  5677. * constants & macros for entire OCOTP_HDCP_KEY40 register
  5678. */
  5679. #define HW_OCOTP_HDCP_KEY40_ADDR (REGS_OCOTP_BASE + 0xa80)
  5680. #ifndef __LANGUAGE_ASM__
  5681. #define HW_OCOTP_HDCP_KEY40 (*(volatile hw_ocotp_hdcp_key40_t *) HW_OCOTP_HDCP_KEY40_ADDR)
  5682. #define HW_OCOTP_HDCP_KEY40_RD() (HW_OCOTP_HDCP_KEY40.U)
  5683. #define HW_OCOTP_HDCP_KEY40_WR(v) (HW_OCOTP_HDCP_KEY40.U = (v))
  5684. #define HW_OCOTP_HDCP_KEY40_SET(v) (HW_OCOTP_HDCP_KEY40_WR(HW_OCOTP_HDCP_KEY40_RD() | (v)))
  5685. #define HW_OCOTP_HDCP_KEY40_CLR(v) (HW_OCOTP_HDCP_KEY40_WR(HW_OCOTP_HDCP_KEY40_RD() & ~(v)))
  5686. #define HW_OCOTP_HDCP_KEY40_TOG(v) (HW_OCOTP_HDCP_KEY40_WR(HW_OCOTP_HDCP_KEY40_RD() ^ (v)))
  5687. #endif
  5688. /*
  5689. * constants & macros for individual OCOTP_HDCP_KEY40 bitfields
  5690. */
  5691. /* --- Register HW_OCOTP_HDCP_KEY40, field BITS[31:0] (RW)
  5692. *
  5693. * Reflects value of OTP Bank 11, word 0 (ADDR = 0x58).
  5694. */
  5695. #define BP_OCOTP_HDCP_KEY40_BITS (0) //!< Bit position for OCOTP_HDCP_KEY40_BITS.
  5696. #define BM_OCOTP_HDCP_KEY40_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY40_BITS.
  5697. //! @brief Get value of OCOTP_HDCP_KEY40_BITS from a register value.
  5698. #define BG_OCOTP_HDCP_KEY40_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY40_BITS) >> BP_OCOTP_HDCP_KEY40_BITS)
  5699. //! @brief Format value for bitfield OCOTP_HDCP_KEY40_BITS.
  5700. #define BF_OCOTP_HDCP_KEY40_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY40_BITS) & BM_OCOTP_HDCP_KEY40_BITS)
  5701. #ifndef __LANGUAGE_ASM__
  5702. //! @brief Set the BITS field to a new value.
  5703. #define BW_OCOTP_HDCP_KEY40_BITS(v) (HW_OCOTP_HDCP_KEY40_WR((HW_OCOTP_HDCP_KEY40_RD() & ~BM_OCOTP_HDCP_KEY40_BITS) | BF_OCOTP_HDCP_KEY40_BITS(v)))
  5704. #endif
  5705. //-------------------------------------------------------------------------------------------
  5706. // HW_OCOTP_HDCP_KEY41 - Value of OTP Bank11 Word1 (HW Capabilities)
  5707. //-------------------------------------------------------------------------------------------
  5708. #ifndef __LANGUAGE_ASM__
  5709. /*!
  5710. * @brief HW_OCOTP_HDCP_KEY41 - Value of OTP Bank11 Word1 (HW Capabilities) (RW)
  5711. *
  5712. * Reset value: 0x00000000
  5713. *
  5714. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  5715. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 11, word 1 (ADDR =
  5716. * 0x59). EXAMPLE Empty Example.
  5717. */
  5718. typedef union _hw_ocotp_hdcp_key41
  5719. {
  5720. reg32_t U;
  5721. struct _hw_ocotp_hdcp_key41_bitfields
  5722. {
  5723. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 11, word 1 (ADDR = 0x59).
  5724. } B;
  5725. } hw_ocotp_hdcp_key41_t;
  5726. #endif
  5727. /*
  5728. * constants & macros for entire OCOTP_HDCP_KEY41 register
  5729. */
  5730. #define HW_OCOTP_HDCP_KEY41_ADDR (REGS_OCOTP_BASE + 0xa90)
  5731. #ifndef __LANGUAGE_ASM__
  5732. #define HW_OCOTP_HDCP_KEY41 (*(volatile hw_ocotp_hdcp_key41_t *) HW_OCOTP_HDCP_KEY41_ADDR)
  5733. #define HW_OCOTP_HDCP_KEY41_RD() (HW_OCOTP_HDCP_KEY41.U)
  5734. #define HW_OCOTP_HDCP_KEY41_WR(v) (HW_OCOTP_HDCP_KEY41.U = (v))
  5735. #define HW_OCOTP_HDCP_KEY41_SET(v) (HW_OCOTP_HDCP_KEY41_WR(HW_OCOTP_HDCP_KEY41_RD() | (v)))
  5736. #define HW_OCOTP_HDCP_KEY41_CLR(v) (HW_OCOTP_HDCP_KEY41_WR(HW_OCOTP_HDCP_KEY41_RD() & ~(v)))
  5737. #define HW_OCOTP_HDCP_KEY41_TOG(v) (HW_OCOTP_HDCP_KEY41_WR(HW_OCOTP_HDCP_KEY41_RD() ^ (v)))
  5738. #endif
  5739. /*
  5740. * constants & macros for individual OCOTP_HDCP_KEY41 bitfields
  5741. */
  5742. /* --- Register HW_OCOTP_HDCP_KEY41, field BITS[31:0] (RW)
  5743. *
  5744. * Reflects value of OTP Bank 11, word 1 (ADDR = 0x59).
  5745. */
  5746. #define BP_OCOTP_HDCP_KEY41_BITS (0) //!< Bit position for OCOTP_HDCP_KEY41_BITS.
  5747. #define BM_OCOTP_HDCP_KEY41_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY41_BITS.
  5748. //! @brief Get value of OCOTP_HDCP_KEY41_BITS from a register value.
  5749. #define BG_OCOTP_HDCP_KEY41_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY41_BITS) >> BP_OCOTP_HDCP_KEY41_BITS)
  5750. //! @brief Format value for bitfield OCOTP_HDCP_KEY41_BITS.
  5751. #define BF_OCOTP_HDCP_KEY41_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY41_BITS) & BM_OCOTP_HDCP_KEY41_BITS)
  5752. #ifndef __LANGUAGE_ASM__
  5753. //! @brief Set the BITS field to a new value.
  5754. #define BW_OCOTP_HDCP_KEY41_BITS(v) (HW_OCOTP_HDCP_KEY41_WR((HW_OCOTP_HDCP_KEY41_RD() & ~BM_OCOTP_HDCP_KEY41_BITS) | BF_OCOTP_HDCP_KEY41_BITS(v)))
  5755. #endif
  5756. //-------------------------------------------------------------------------------------------
  5757. // HW_OCOTP_HDCP_KEY42 - Value of OTP Bank11 Word2 (HW Capabilities)
  5758. //-------------------------------------------------------------------------------------------
  5759. #ifndef __LANGUAGE_ASM__
  5760. /*!
  5761. * @brief HW_OCOTP_HDCP_KEY42 - Value of OTP Bank11 Word2 (HW Capabilities) (RW)
  5762. *
  5763. * Reset value: 0x00000000
  5764. *
  5765. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  5766. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 11, word 2 (ADDR =
  5767. * 0x5a). EXAMPLE Empty Example.
  5768. */
  5769. typedef union _hw_ocotp_hdcp_key42
  5770. {
  5771. reg32_t U;
  5772. struct _hw_ocotp_hdcp_key42_bitfields
  5773. {
  5774. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 11, word 2 (ADDR = 0x5a).
  5775. } B;
  5776. } hw_ocotp_hdcp_key42_t;
  5777. #endif
  5778. /*
  5779. * constants & macros for entire OCOTP_HDCP_KEY42 register
  5780. */
  5781. #define HW_OCOTP_HDCP_KEY42_ADDR (REGS_OCOTP_BASE + 0xaa0)
  5782. #ifndef __LANGUAGE_ASM__
  5783. #define HW_OCOTP_HDCP_KEY42 (*(volatile hw_ocotp_hdcp_key42_t *) HW_OCOTP_HDCP_KEY42_ADDR)
  5784. #define HW_OCOTP_HDCP_KEY42_RD() (HW_OCOTP_HDCP_KEY42.U)
  5785. #define HW_OCOTP_HDCP_KEY42_WR(v) (HW_OCOTP_HDCP_KEY42.U = (v))
  5786. #define HW_OCOTP_HDCP_KEY42_SET(v) (HW_OCOTP_HDCP_KEY42_WR(HW_OCOTP_HDCP_KEY42_RD() | (v)))
  5787. #define HW_OCOTP_HDCP_KEY42_CLR(v) (HW_OCOTP_HDCP_KEY42_WR(HW_OCOTP_HDCP_KEY42_RD() & ~(v)))
  5788. #define HW_OCOTP_HDCP_KEY42_TOG(v) (HW_OCOTP_HDCP_KEY42_WR(HW_OCOTP_HDCP_KEY42_RD() ^ (v)))
  5789. #endif
  5790. /*
  5791. * constants & macros for individual OCOTP_HDCP_KEY42 bitfields
  5792. */
  5793. /* --- Register HW_OCOTP_HDCP_KEY42, field BITS[31:0] (RW)
  5794. *
  5795. * Reflects value of OTP Bank 11, word 2 (ADDR = 0x5a).
  5796. */
  5797. #define BP_OCOTP_HDCP_KEY42_BITS (0) //!< Bit position for OCOTP_HDCP_KEY42_BITS.
  5798. #define BM_OCOTP_HDCP_KEY42_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY42_BITS.
  5799. //! @brief Get value of OCOTP_HDCP_KEY42_BITS from a register value.
  5800. #define BG_OCOTP_HDCP_KEY42_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY42_BITS) >> BP_OCOTP_HDCP_KEY42_BITS)
  5801. //! @brief Format value for bitfield OCOTP_HDCP_KEY42_BITS.
  5802. #define BF_OCOTP_HDCP_KEY42_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY42_BITS) & BM_OCOTP_HDCP_KEY42_BITS)
  5803. #ifndef __LANGUAGE_ASM__
  5804. //! @brief Set the BITS field to a new value.
  5805. #define BW_OCOTP_HDCP_KEY42_BITS(v) (HW_OCOTP_HDCP_KEY42_WR((HW_OCOTP_HDCP_KEY42_RD() & ~BM_OCOTP_HDCP_KEY42_BITS) | BF_OCOTP_HDCP_KEY42_BITS(v)))
  5806. #endif
  5807. //-------------------------------------------------------------------------------------------
  5808. // HW_OCOTP_HDCP_KEY43 - Value of OTP Bank11 Word3 (HW Capabilities)
  5809. //-------------------------------------------------------------------------------------------
  5810. #ifndef __LANGUAGE_ASM__
  5811. /*!
  5812. * @brief HW_OCOTP_HDCP_KEY43 - Value of OTP Bank11 Word3 (HW Capabilities) (RW)
  5813. *
  5814. * Reset value: 0x00000000
  5815. *
  5816. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  5817. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 11, word 3 (ADDR =
  5818. * 0x5b). EXAMPLE Empty Example.
  5819. */
  5820. typedef union _hw_ocotp_hdcp_key43
  5821. {
  5822. reg32_t U;
  5823. struct _hw_ocotp_hdcp_key43_bitfields
  5824. {
  5825. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 11, word 3 (ADDR = 0x5b).
  5826. } B;
  5827. } hw_ocotp_hdcp_key43_t;
  5828. #endif
  5829. /*
  5830. * constants & macros for entire OCOTP_HDCP_KEY43 register
  5831. */
  5832. #define HW_OCOTP_HDCP_KEY43_ADDR (REGS_OCOTP_BASE + 0xab0)
  5833. #ifndef __LANGUAGE_ASM__
  5834. #define HW_OCOTP_HDCP_KEY43 (*(volatile hw_ocotp_hdcp_key43_t *) HW_OCOTP_HDCP_KEY43_ADDR)
  5835. #define HW_OCOTP_HDCP_KEY43_RD() (HW_OCOTP_HDCP_KEY43.U)
  5836. #define HW_OCOTP_HDCP_KEY43_WR(v) (HW_OCOTP_HDCP_KEY43.U = (v))
  5837. #define HW_OCOTP_HDCP_KEY43_SET(v) (HW_OCOTP_HDCP_KEY43_WR(HW_OCOTP_HDCP_KEY43_RD() | (v)))
  5838. #define HW_OCOTP_HDCP_KEY43_CLR(v) (HW_OCOTP_HDCP_KEY43_WR(HW_OCOTP_HDCP_KEY43_RD() & ~(v)))
  5839. #define HW_OCOTP_HDCP_KEY43_TOG(v) (HW_OCOTP_HDCP_KEY43_WR(HW_OCOTP_HDCP_KEY43_RD() ^ (v)))
  5840. #endif
  5841. /*
  5842. * constants & macros for individual OCOTP_HDCP_KEY43 bitfields
  5843. */
  5844. /* --- Register HW_OCOTP_HDCP_KEY43, field BITS[31:0] (RW)
  5845. *
  5846. * Reflects value of OTP Bank 11, word 3 (ADDR = 0x5b).
  5847. */
  5848. #define BP_OCOTP_HDCP_KEY43_BITS (0) //!< Bit position for OCOTP_HDCP_KEY43_BITS.
  5849. #define BM_OCOTP_HDCP_KEY43_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY43_BITS.
  5850. //! @brief Get value of OCOTP_HDCP_KEY43_BITS from a register value.
  5851. #define BG_OCOTP_HDCP_KEY43_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY43_BITS) >> BP_OCOTP_HDCP_KEY43_BITS)
  5852. //! @brief Format value for bitfield OCOTP_HDCP_KEY43_BITS.
  5853. #define BF_OCOTP_HDCP_KEY43_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY43_BITS) & BM_OCOTP_HDCP_KEY43_BITS)
  5854. #ifndef __LANGUAGE_ASM__
  5855. //! @brief Set the BITS field to a new value.
  5856. #define BW_OCOTP_HDCP_KEY43_BITS(v) (HW_OCOTP_HDCP_KEY43_WR((HW_OCOTP_HDCP_KEY43_RD() & ~BM_OCOTP_HDCP_KEY43_BITS) | BF_OCOTP_HDCP_KEY43_BITS(v)))
  5857. #endif
  5858. //-------------------------------------------------------------------------------------------
  5859. // HW_OCOTP_HDCP_KEY44 - Value of OTP Bank11 Word4 (HW Capabilities)
  5860. //-------------------------------------------------------------------------------------------
  5861. #ifndef __LANGUAGE_ASM__
  5862. /*!
  5863. * @brief HW_OCOTP_HDCP_KEY44 - Value of OTP Bank11 Word4 (HW Capabilities) (RW)
  5864. *
  5865. * Reset value: 0x00000000
  5866. *
  5867. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  5868. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 11, word 4 (ADDR =
  5869. * 0x5c). EXAMPLE Empty Example.
  5870. */
  5871. typedef union _hw_ocotp_hdcp_key44
  5872. {
  5873. reg32_t U;
  5874. struct _hw_ocotp_hdcp_key44_bitfields
  5875. {
  5876. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 11, word 4 (ADDR = 0x5c).
  5877. } B;
  5878. } hw_ocotp_hdcp_key44_t;
  5879. #endif
  5880. /*
  5881. * constants & macros for entire OCOTP_HDCP_KEY44 register
  5882. */
  5883. #define HW_OCOTP_HDCP_KEY44_ADDR (REGS_OCOTP_BASE + 0xac0)
  5884. #ifndef __LANGUAGE_ASM__
  5885. #define HW_OCOTP_HDCP_KEY44 (*(volatile hw_ocotp_hdcp_key44_t *) HW_OCOTP_HDCP_KEY44_ADDR)
  5886. #define HW_OCOTP_HDCP_KEY44_RD() (HW_OCOTP_HDCP_KEY44.U)
  5887. #define HW_OCOTP_HDCP_KEY44_WR(v) (HW_OCOTP_HDCP_KEY44.U = (v))
  5888. #define HW_OCOTP_HDCP_KEY44_SET(v) (HW_OCOTP_HDCP_KEY44_WR(HW_OCOTP_HDCP_KEY44_RD() | (v)))
  5889. #define HW_OCOTP_HDCP_KEY44_CLR(v) (HW_OCOTP_HDCP_KEY44_WR(HW_OCOTP_HDCP_KEY44_RD() & ~(v)))
  5890. #define HW_OCOTP_HDCP_KEY44_TOG(v) (HW_OCOTP_HDCP_KEY44_WR(HW_OCOTP_HDCP_KEY44_RD() ^ (v)))
  5891. #endif
  5892. /*
  5893. * constants & macros for individual OCOTP_HDCP_KEY44 bitfields
  5894. */
  5895. /* --- Register HW_OCOTP_HDCP_KEY44, field BITS[31:0] (RW)
  5896. *
  5897. * Reflects value of OTP Bank 11, word 4 (ADDR = 0x5c).
  5898. */
  5899. #define BP_OCOTP_HDCP_KEY44_BITS (0) //!< Bit position for OCOTP_HDCP_KEY44_BITS.
  5900. #define BM_OCOTP_HDCP_KEY44_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY44_BITS.
  5901. //! @brief Get value of OCOTP_HDCP_KEY44_BITS from a register value.
  5902. #define BG_OCOTP_HDCP_KEY44_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY44_BITS) >> BP_OCOTP_HDCP_KEY44_BITS)
  5903. //! @brief Format value for bitfield OCOTP_HDCP_KEY44_BITS.
  5904. #define BF_OCOTP_HDCP_KEY44_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY44_BITS) & BM_OCOTP_HDCP_KEY44_BITS)
  5905. #ifndef __LANGUAGE_ASM__
  5906. //! @brief Set the BITS field to a new value.
  5907. #define BW_OCOTP_HDCP_KEY44_BITS(v) (HW_OCOTP_HDCP_KEY44_WR((HW_OCOTP_HDCP_KEY44_RD() & ~BM_OCOTP_HDCP_KEY44_BITS) | BF_OCOTP_HDCP_KEY44_BITS(v)))
  5908. #endif
  5909. //-------------------------------------------------------------------------------------------
  5910. // HW_OCOTP_HDCP_KEY45 - Value of OTP Bank11 Word5 (HW Capabilities)
  5911. //-------------------------------------------------------------------------------------------
  5912. #ifndef __LANGUAGE_ASM__
  5913. /*!
  5914. * @brief HW_OCOTP_HDCP_KEY45 - Value of OTP Bank11 Word5 (HW Capabilities) (RW)
  5915. *
  5916. * Reset value: 0x00000000
  5917. *
  5918. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  5919. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 11, word 5 (ADDR =
  5920. * 0x5d). EXAMPLE Empty Example.
  5921. */
  5922. typedef union _hw_ocotp_hdcp_key45
  5923. {
  5924. reg32_t U;
  5925. struct _hw_ocotp_hdcp_key45_bitfields
  5926. {
  5927. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 11, word 5 (ADDR = 0x5d).
  5928. } B;
  5929. } hw_ocotp_hdcp_key45_t;
  5930. #endif
  5931. /*
  5932. * constants & macros for entire OCOTP_HDCP_KEY45 register
  5933. */
  5934. #define HW_OCOTP_HDCP_KEY45_ADDR (REGS_OCOTP_BASE + 0xad0)
  5935. #ifndef __LANGUAGE_ASM__
  5936. #define HW_OCOTP_HDCP_KEY45 (*(volatile hw_ocotp_hdcp_key45_t *) HW_OCOTP_HDCP_KEY45_ADDR)
  5937. #define HW_OCOTP_HDCP_KEY45_RD() (HW_OCOTP_HDCP_KEY45.U)
  5938. #define HW_OCOTP_HDCP_KEY45_WR(v) (HW_OCOTP_HDCP_KEY45.U = (v))
  5939. #define HW_OCOTP_HDCP_KEY45_SET(v) (HW_OCOTP_HDCP_KEY45_WR(HW_OCOTP_HDCP_KEY45_RD() | (v)))
  5940. #define HW_OCOTP_HDCP_KEY45_CLR(v) (HW_OCOTP_HDCP_KEY45_WR(HW_OCOTP_HDCP_KEY45_RD() & ~(v)))
  5941. #define HW_OCOTP_HDCP_KEY45_TOG(v) (HW_OCOTP_HDCP_KEY45_WR(HW_OCOTP_HDCP_KEY45_RD() ^ (v)))
  5942. #endif
  5943. /*
  5944. * constants & macros for individual OCOTP_HDCP_KEY45 bitfields
  5945. */
  5946. /* --- Register HW_OCOTP_HDCP_KEY45, field BITS[31:0] (RW)
  5947. *
  5948. * Reflects value of OTP Bank 11, word 5 (ADDR = 0x5d).
  5949. */
  5950. #define BP_OCOTP_HDCP_KEY45_BITS (0) //!< Bit position for OCOTP_HDCP_KEY45_BITS.
  5951. #define BM_OCOTP_HDCP_KEY45_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY45_BITS.
  5952. //! @brief Get value of OCOTP_HDCP_KEY45_BITS from a register value.
  5953. #define BG_OCOTP_HDCP_KEY45_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY45_BITS) >> BP_OCOTP_HDCP_KEY45_BITS)
  5954. //! @brief Format value for bitfield OCOTP_HDCP_KEY45_BITS.
  5955. #define BF_OCOTP_HDCP_KEY45_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY45_BITS) & BM_OCOTP_HDCP_KEY45_BITS)
  5956. #ifndef __LANGUAGE_ASM__
  5957. //! @brief Set the BITS field to a new value.
  5958. #define BW_OCOTP_HDCP_KEY45_BITS(v) (HW_OCOTP_HDCP_KEY45_WR((HW_OCOTP_HDCP_KEY45_RD() & ~BM_OCOTP_HDCP_KEY45_BITS) | BF_OCOTP_HDCP_KEY45_BITS(v)))
  5959. #endif
  5960. //-------------------------------------------------------------------------------------------
  5961. // HW_OCOTP_HDCP_KEY46 - Value of OTP Bank11 Word6 (HW Capabilities)
  5962. //-------------------------------------------------------------------------------------------
  5963. #ifndef __LANGUAGE_ASM__
  5964. /*!
  5965. * @brief HW_OCOTP_HDCP_KEY46 - Value of OTP Bank11 Word6 (HW Capabilities) (RW)
  5966. *
  5967. * Reset value: 0x00000000
  5968. *
  5969. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  5970. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 11, word 6 (ADDR =
  5971. * 0x5e). EXAMPLE Empty Example.
  5972. */
  5973. typedef union _hw_ocotp_hdcp_key46
  5974. {
  5975. reg32_t U;
  5976. struct _hw_ocotp_hdcp_key46_bitfields
  5977. {
  5978. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 11, word 6 (ADDR = 0x5e).
  5979. } B;
  5980. } hw_ocotp_hdcp_key46_t;
  5981. #endif
  5982. /*
  5983. * constants & macros for entire OCOTP_HDCP_KEY46 register
  5984. */
  5985. #define HW_OCOTP_HDCP_KEY46_ADDR (REGS_OCOTP_BASE + 0xae0)
  5986. #ifndef __LANGUAGE_ASM__
  5987. #define HW_OCOTP_HDCP_KEY46 (*(volatile hw_ocotp_hdcp_key46_t *) HW_OCOTP_HDCP_KEY46_ADDR)
  5988. #define HW_OCOTP_HDCP_KEY46_RD() (HW_OCOTP_HDCP_KEY46.U)
  5989. #define HW_OCOTP_HDCP_KEY46_WR(v) (HW_OCOTP_HDCP_KEY46.U = (v))
  5990. #define HW_OCOTP_HDCP_KEY46_SET(v) (HW_OCOTP_HDCP_KEY46_WR(HW_OCOTP_HDCP_KEY46_RD() | (v)))
  5991. #define HW_OCOTP_HDCP_KEY46_CLR(v) (HW_OCOTP_HDCP_KEY46_WR(HW_OCOTP_HDCP_KEY46_RD() & ~(v)))
  5992. #define HW_OCOTP_HDCP_KEY46_TOG(v) (HW_OCOTP_HDCP_KEY46_WR(HW_OCOTP_HDCP_KEY46_RD() ^ (v)))
  5993. #endif
  5994. /*
  5995. * constants & macros for individual OCOTP_HDCP_KEY46 bitfields
  5996. */
  5997. /* --- Register HW_OCOTP_HDCP_KEY46, field BITS[31:0] (RW)
  5998. *
  5999. * Reflects value of OTP Bank 11, word 6 (ADDR = 0x5e).
  6000. */
  6001. #define BP_OCOTP_HDCP_KEY46_BITS (0) //!< Bit position for OCOTP_HDCP_KEY46_BITS.
  6002. #define BM_OCOTP_HDCP_KEY46_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY46_BITS.
  6003. //! @brief Get value of OCOTP_HDCP_KEY46_BITS from a register value.
  6004. #define BG_OCOTP_HDCP_KEY46_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY46_BITS) >> BP_OCOTP_HDCP_KEY46_BITS)
  6005. //! @brief Format value for bitfield OCOTP_HDCP_KEY46_BITS.
  6006. #define BF_OCOTP_HDCP_KEY46_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY46_BITS) & BM_OCOTP_HDCP_KEY46_BITS)
  6007. #ifndef __LANGUAGE_ASM__
  6008. //! @brief Set the BITS field to a new value.
  6009. #define BW_OCOTP_HDCP_KEY46_BITS(v) (HW_OCOTP_HDCP_KEY46_WR((HW_OCOTP_HDCP_KEY46_RD() & ~BM_OCOTP_HDCP_KEY46_BITS) | BF_OCOTP_HDCP_KEY46_BITS(v)))
  6010. #endif
  6011. //-------------------------------------------------------------------------------------------
  6012. // HW_OCOTP_HDCP_KEY47 - Value of OTP Bank11 Word7 (HW Capabilities)
  6013. //-------------------------------------------------------------------------------------------
  6014. #ifndef __LANGUAGE_ASM__
  6015. /*!
  6016. * @brief HW_OCOTP_HDCP_KEY47 - Value of OTP Bank11 Word7 (HW Capabilities) (RW)
  6017. *
  6018. * Reset value: 0x00000000
  6019. *
  6020. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  6021. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 11, word 7 (ADDR =
  6022. * 0x5f). EXAMPLE Empty Example.
  6023. */
  6024. typedef union _hw_ocotp_hdcp_key47
  6025. {
  6026. reg32_t U;
  6027. struct _hw_ocotp_hdcp_key47_bitfields
  6028. {
  6029. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 11, word 7 (ADDR = 0x5f).
  6030. } B;
  6031. } hw_ocotp_hdcp_key47_t;
  6032. #endif
  6033. /*
  6034. * constants & macros for entire OCOTP_HDCP_KEY47 register
  6035. */
  6036. #define HW_OCOTP_HDCP_KEY47_ADDR (REGS_OCOTP_BASE + 0xaf0)
  6037. #ifndef __LANGUAGE_ASM__
  6038. #define HW_OCOTP_HDCP_KEY47 (*(volatile hw_ocotp_hdcp_key47_t *) HW_OCOTP_HDCP_KEY47_ADDR)
  6039. #define HW_OCOTP_HDCP_KEY47_RD() (HW_OCOTP_HDCP_KEY47.U)
  6040. #define HW_OCOTP_HDCP_KEY47_WR(v) (HW_OCOTP_HDCP_KEY47.U = (v))
  6041. #define HW_OCOTP_HDCP_KEY47_SET(v) (HW_OCOTP_HDCP_KEY47_WR(HW_OCOTP_HDCP_KEY47_RD() | (v)))
  6042. #define HW_OCOTP_HDCP_KEY47_CLR(v) (HW_OCOTP_HDCP_KEY47_WR(HW_OCOTP_HDCP_KEY47_RD() & ~(v)))
  6043. #define HW_OCOTP_HDCP_KEY47_TOG(v) (HW_OCOTP_HDCP_KEY47_WR(HW_OCOTP_HDCP_KEY47_RD() ^ (v)))
  6044. #endif
  6045. /*
  6046. * constants & macros for individual OCOTP_HDCP_KEY47 bitfields
  6047. */
  6048. /* --- Register HW_OCOTP_HDCP_KEY47, field BITS[31:0] (RW)
  6049. *
  6050. * Reflects value of OTP Bank 11, word 7 (ADDR = 0x5f).
  6051. */
  6052. #define BP_OCOTP_HDCP_KEY47_BITS (0) //!< Bit position for OCOTP_HDCP_KEY47_BITS.
  6053. #define BM_OCOTP_HDCP_KEY47_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY47_BITS.
  6054. //! @brief Get value of OCOTP_HDCP_KEY47_BITS from a register value.
  6055. #define BG_OCOTP_HDCP_KEY47_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY47_BITS) >> BP_OCOTP_HDCP_KEY47_BITS)
  6056. //! @brief Format value for bitfield OCOTP_HDCP_KEY47_BITS.
  6057. #define BF_OCOTP_HDCP_KEY47_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY47_BITS) & BM_OCOTP_HDCP_KEY47_BITS)
  6058. #ifndef __LANGUAGE_ASM__
  6059. //! @brief Set the BITS field to a new value.
  6060. #define BW_OCOTP_HDCP_KEY47_BITS(v) (HW_OCOTP_HDCP_KEY47_WR((HW_OCOTP_HDCP_KEY47_RD() & ~BM_OCOTP_HDCP_KEY47_BITS) | BF_OCOTP_HDCP_KEY47_BITS(v)))
  6061. #endif
  6062. //-------------------------------------------------------------------------------------------
  6063. // HW_OCOTP_HDCP_KEY48 - Value of OTP Bank12 Word0 (HW Capabilities)
  6064. //-------------------------------------------------------------------------------------------
  6065. #ifndef __LANGUAGE_ASM__
  6066. /*!
  6067. * @brief HW_OCOTP_HDCP_KEY48 - Value of OTP Bank12 Word0 (HW Capabilities) (RW)
  6068. *
  6069. * Reset value: 0x00000000
  6070. *
  6071. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  6072. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 12, word 0 (ADDR =
  6073. * 0x60). EXAMPLE Empty Example.
  6074. */
  6075. typedef union _hw_ocotp_hdcp_key48
  6076. {
  6077. reg32_t U;
  6078. struct _hw_ocotp_hdcp_key48_bitfields
  6079. {
  6080. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 12, word 0 (ADDR = 0x60).
  6081. } B;
  6082. } hw_ocotp_hdcp_key48_t;
  6083. #endif
  6084. /*
  6085. * constants & macros for entire OCOTP_HDCP_KEY48 register
  6086. */
  6087. #define HW_OCOTP_HDCP_KEY48_ADDR (REGS_OCOTP_BASE + 0xb00)
  6088. #ifndef __LANGUAGE_ASM__
  6089. #define HW_OCOTP_HDCP_KEY48 (*(volatile hw_ocotp_hdcp_key48_t *) HW_OCOTP_HDCP_KEY48_ADDR)
  6090. #define HW_OCOTP_HDCP_KEY48_RD() (HW_OCOTP_HDCP_KEY48.U)
  6091. #define HW_OCOTP_HDCP_KEY48_WR(v) (HW_OCOTP_HDCP_KEY48.U = (v))
  6092. #define HW_OCOTP_HDCP_KEY48_SET(v) (HW_OCOTP_HDCP_KEY48_WR(HW_OCOTP_HDCP_KEY48_RD() | (v)))
  6093. #define HW_OCOTP_HDCP_KEY48_CLR(v) (HW_OCOTP_HDCP_KEY48_WR(HW_OCOTP_HDCP_KEY48_RD() & ~(v)))
  6094. #define HW_OCOTP_HDCP_KEY48_TOG(v) (HW_OCOTP_HDCP_KEY48_WR(HW_OCOTP_HDCP_KEY48_RD() ^ (v)))
  6095. #endif
  6096. /*
  6097. * constants & macros for individual OCOTP_HDCP_KEY48 bitfields
  6098. */
  6099. /* --- Register HW_OCOTP_HDCP_KEY48, field BITS[31:0] (RW)
  6100. *
  6101. * Reflects value of OTP Bank 12, word 0 (ADDR = 0x60).
  6102. */
  6103. #define BP_OCOTP_HDCP_KEY48_BITS (0) //!< Bit position for OCOTP_HDCP_KEY48_BITS.
  6104. #define BM_OCOTP_HDCP_KEY48_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY48_BITS.
  6105. //! @brief Get value of OCOTP_HDCP_KEY48_BITS from a register value.
  6106. #define BG_OCOTP_HDCP_KEY48_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY48_BITS) >> BP_OCOTP_HDCP_KEY48_BITS)
  6107. //! @brief Format value for bitfield OCOTP_HDCP_KEY48_BITS.
  6108. #define BF_OCOTP_HDCP_KEY48_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY48_BITS) & BM_OCOTP_HDCP_KEY48_BITS)
  6109. #ifndef __LANGUAGE_ASM__
  6110. //! @brief Set the BITS field to a new value.
  6111. #define BW_OCOTP_HDCP_KEY48_BITS(v) (HW_OCOTP_HDCP_KEY48_WR((HW_OCOTP_HDCP_KEY48_RD() & ~BM_OCOTP_HDCP_KEY48_BITS) | BF_OCOTP_HDCP_KEY48_BITS(v)))
  6112. #endif
  6113. //-------------------------------------------------------------------------------------------
  6114. // HW_OCOTP_HDCP_KEY49 - Value of OTP Bank12 Word1 (HW Capabilities)
  6115. //-------------------------------------------------------------------------------------------
  6116. #ifndef __LANGUAGE_ASM__
  6117. /*!
  6118. * @brief HW_OCOTP_HDCP_KEY49 - Value of OTP Bank12 Word1 (HW Capabilities) (RW)
  6119. *
  6120. * Reset value: 0x00000000
  6121. *
  6122. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  6123. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 12, word 1 (ADDR =
  6124. * 0x61). EXAMPLE Empty Example.
  6125. */
  6126. typedef union _hw_ocotp_hdcp_key49
  6127. {
  6128. reg32_t U;
  6129. struct _hw_ocotp_hdcp_key49_bitfields
  6130. {
  6131. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 12, word 1 (ADDR = 0x61).
  6132. } B;
  6133. } hw_ocotp_hdcp_key49_t;
  6134. #endif
  6135. /*
  6136. * constants & macros for entire OCOTP_HDCP_KEY49 register
  6137. */
  6138. #define HW_OCOTP_HDCP_KEY49_ADDR (REGS_OCOTP_BASE + 0xb10)
  6139. #ifndef __LANGUAGE_ASM__
  6140. #define HW_OCOTP_HDCP_KEY49 (*(volatile hw_ocotp_hdcp_key49_t *) HW_OCOTP_HDCP_KEY49_ADDR)
  6141. #define HW_OCOTP_HDCP_KEY49_RD() (HW_OCOTP_HDCP_KEY49.U)
  6142. #define HW_OCOTP_HDCP_KEY49_WR(v) (HW_OCOTP_HDCP_KEY49.U = (v))
  6143. #define HW_OCOTP_HDCP_KEY49_SET(v) (HW_OCOTP_HDCP_KEY49_WR(HW_OCOTP_HDCP_KEY49_RD() | (v)))
  6144. #define HW_OCOTP_HDCP_KEY49_CLR(v) (HW_OCOTP_HDCP_KEY49_WR(HW_OCOTP_HDCP_KEY49_RD() & ~(v)))
  6145. #define HW_OCOTP_HDCP_KEY49_TOG(v) (HW_OCOTP_HDCP_KEY49_WR(HW_OCOTP_HDCP_KEY49_RD() ^ (v)))
  6146. #endif
  6147. /*
  6148. * constants & macros for individual OCOTP_HDCP_KEY49 bitfields
  6149. */
  6150. /* --- Register HW_OCOTP_HDCP_KEY49, field BITS[31:0] (RW)
  6151. *
  6152. * Reflects value of OTP Bank 12, word 1 (ADDR = 0x61).
  6153. */
  6154. #define BP_OCOTP_HDCP_KEY49_BITS (0) //!< Bit position for OCOTP_HDCP_KEY49_BITS.
  6155. #define BM_OCOTP_HDCP_KEY49_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY49_BITS.
  6156. //! @brief Get value of OCOTP_HDCP_KEY49_BITS from a register value.
  6157. #define BG_OCOTP_HDCP_KEY49_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY49_BITS) >> BP_OCOTP_HDCP_KEY49_BITS)
  6158. //! @brief Format value for bitfield OCOTP_HDCP_KEY49_BITS.
  6159. #define BF_OCOTP_HDCP_KEY49_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY49_BITS) & BM_OCOTP_HDCP_KEY49_BITS)
  6160. #ifndef __LANGUAGE_ASM__
  6161. //! @brief Set the BITS field to a new value.
  6162. #define BW_OCOTP_HDCP_KEY49_BITS(v) (HW_OCOTP_HDCP_KEY49_WR((HW_OCOTP_HDCP_KEY49_RD() & ~BM_OCOTP_HDCP_KEY49_BITS) | BF_OCOTP_HDCP_KEY49_BITS(v)))
  6163. #endif
  6164. //-------------------------------------------------------------------------------------------
  6165. // HW_OCOTP_HDCP_KEY50 - Value of OTP Bank12 Word2 (HW Capabilities)
  6166. //-------------------------------------------------------------------------------------------
  6167. #ifndef __LANGUAGE_ASM__
  6168. /*!
  6169. * @brief HW_OCOTP_HDCP_KEY50 - Value of OTP Bank12 Word2 (HW Capabilities) (RW)
  6170. *
  6171. * Reset value: 0x00000000
  6172. *
  6173. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  6174. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 12, word 2 (ADDR =
  6175. * 0x62). EXAMPLE Empty Example.
  6176. */
  6177. typedef union _hw_ocotp_hdcp_key50
  6178. {
  6179. reg32_t U;
  6180. struct _hw_ocotp_hdcp_key50_bitfields
  6181. {
  6182. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 12, word 2 (ADDR = 0x62).
  6183. } B;
  6184. } hw_ocotp_hdcp_key50_t;
  6185. #endif
  6186. /*
  6187. * constants & macros for entire OCOTP_HDCP_KEY50 register
  6188. */
  6189. #define HW_OCOTP_HDCP_KEY50_ADDR (REGS_OCOTP_BASE + 0xb20)
  6190. #ifndef __LANGUAGE_ASM__
  6191. #define HW_OCOTP_HDCP_KEY50 (*(volatile hw_ocotp_hdcp_key50_t *) HW_OCOTP_HDCP_KEY50_ADDR)
  6192. #define HW_OCOTP_HDCP_KEY50_RD() (HW_OCOTP_HDCP_KEY50.U)
  6193. #define HW_OCOTP_HDCP_KEY50_WR(v) (HW_OCOTP_HDCP_KEY50.U = (v))
  6194. #define HW_OCOTP_HDCP_KEY50_SET(v) (HW_OCOTP_HDCP_KEY50_WR(HW_OCOTP_HDCP_KEY50_RD() | (v)))
  6195. #define HW_OCOTP_HDCP_KEY50_CLR(v) (HW_OCOTP_HDCP_KEY50_WR(HW_OCOTP_HDCP_KEY50_RD() & ~(v)))
  6196. #define HW_OCOTP_HDCP_KEY50_TOG(v) (HW_OCOTP_HDCP_KEY50_WR(HW_OCOTP_HDCP_KEY50_RD() ^ (v)))
  6197. #endif
  6198. /*
  6199. * constants & macros for individual OCOTP_HDCP_KEY50 bitfields
  6200. */
  6201. /* --- Register HW_OCOTP_HDCP_KEY50, field BITS[31:0] (RW)
  6202. *
  6203. * Reflects value of OTP Bank 12, word 2 (ADDR = 0x62).
  6204. */
  6205. #define BP_OCOTP_HDCP_KEY50_BITS (0) //!< Bit position for OCOTP_HDCP_KEY50_BITS.
  6206. #define BM_OCOTP_HDCP_KEY50_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY50_BITS.
  6207. //! @brief Get value of OCOTP_HDCP_KEY50_BITS from a register value.
  6208. #define BG_OCOTP_HDCP_KEY50_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY50_BITS) >> BP_OCOTP_HDCP_KEY50_BITS)
  6209. //! @brief Format value for bitfield OCOTP_HDCP_KEY50_BITS.
  6210. #define BF_OCOTP_HDCP_KEY50_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY50_BITS) & BM_OCOTP_HDCP_KEY50_BITS)
  6211. #ifndef __LANGUAGE_ASM__
  6212. //! @brief Set the BITS field to a new value.
  6213. #define BW_OCOTP_HDCP_KEY50_BITS(v) (HW_OCOTP_HDCP_KEY50_WR((HW_OCOTP_HDCP_KEY50_RD() & ~BM_OCOTP_HDCP_KEY50_BITS) | BF_OCOTP_HDCP_KEY50_BITS(v)))
  6214. #endif
  6215. //-------------------------------------------------------------------------------------------
  6216. // HW_OCOTP_HDCP_KEY51 - Value of OTP Bank12 Word3 (HW Capabilities)
  6217. //-------------------------------------------------------------------------------------------
  6218. #ifndef __LANGUAGE_ASM__
  6219. /*!
  6220. * @brief HW_OCOTP_HDCP_KEY51 - Value of OTP Bank12 Word3 (HW Capabilities) (RW)
  6221. *
  6222. * Reset value: 0x00000000
  6223. *
  6224. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  6225. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 12, word 3 (ADDR =
  6226. * 0x63). EXAMPLE Empty Example.
  6227. */
  6228. typedef union _hw_ocotp_hdcp_key51
  6229. {
  6230. reg32_t U;
  6231. struct _hw_ocotp_hdcp_key51_bitfields
  6232. {
  6233. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 12, word 3 (ADDR = 0x63).
  6234. } B;
  6235. } hw_ocotp_hdcp_key51_t;
  6236. #endif
  6237. /*
  6238. * constants & macros for entire OCOTP_HDCP_KEY51 register
  6239. */
  6240. #define HW_OCOTP_HDCP_KEY51_ADDR (REGS_OCOTP_BASE + 0xb30)
  6241. #ifndef __LANGUAGE_ASM__
  6242. #define HW_OCOTP_HDCP_KEY51 (*(volatile hw_ocotp_hdcp_key51_t *) HW_OCOTP_HDCP_KEY51_ADDR)
  6243. #define HW_OCOTP_HDCP_KEY51_RD() (HW_OCOTP_HDCP_KEY51.U)
  6244. #define HW_OCOTP_HDCP_KEY51_WR(v) (HW_OCOTP_HDCP_KEY51.U = (v))
  6245. #define HW_OCOTP_HDCP_KEY51_SET(v) (HW_OCOTP_HDCP_KEY51_WR(HW_OCOTP_HDCP_KEY51_RD() | (v)))
  6246. #define HW_OCOTP_HDCP_KEY51_CLR(v) (HW_OCOTP_HDCP_KEY51_WR(HW_OCOTP_HDCP_KEY51_RD() & ~(v)))
  6247. #define HW_OCOTP_HDCP_KEY51_TOG(v) (HW_OCOTP_HDCP_KEY51_WR(HW_OCOTP_HDCP_KEY51_RD() ^ (v)))
  6248. #endif
  6249. /*
  6250. * constants & macros for individual OCOTP_HDCP_KEY51 bitfields
  6251. */
  6252. /* --- Register HW_OCOTP_HDCP_KEY51, field BITS[31:0] (RW)
  6253. *
  6254. * Reflects value of OTP Bank 12, word 3 (ADDR = 0x63).
  6255. */
  6256. #define BP_OCOTP_HDCP_KEY51_BITS (0) //!< Bit position for OCOTP_HDCP_KEY51_BITS.
  6257. #define BM_OCOTP_HDCP_KEY51_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY51_BITS.
  6258. //! @brief Get value of OCOTP_HDCP_KEY51_BITS from a register value.
  6259. #define BG_OCOTP_HDCP_KEY51_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY51_BITS) >> BP_OCOTP_HDCP_KEY51_BITS)
  6260. //! @brief Format value for bitfield OCOTP_HDCP_KEY51_BITS.
  6261. #define BF_OCOTP_HDCP_KEY51_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY51_BITS) & BM_OCOTP_HDCP_KEY51_BITS)
  6262. #ifndef __LANGUAGE_ASM__
  6263. //! @brief Set the BITS field to a new value.
  6264. #define BW_OCOTP_HDCP_KEY51_BITS(v) (HW_OCOTP_HDCP_KEY51_WR((HW_OCOTP_HDCP_KEY51_RD() & ~BM_OCOTP_HDCP_KEY51_BITS) | BF_OCOTP_HDCP_KEY51_BITS(v)))
  6265. #endif
  6266. //-------------------------------------------------------------------------------------------
  6267. // HW_OCOTP_HDCP_KEY52 - Value of OTP Bank12 Word4 (HW Capabilities)
  6268. //-------------------------------------------------------------------------------------------
  6269. #ifndef __LANGUAGE_ASM__
  6270. /*!
  6271. * @brief HW_OCOTP_HDCP_KEY52 - Value of OTP Bank12 Word4 (HW Capabilities) (RW)
  6272. *
  6273. * Reset value: 0x00000000
  6274. *
  6275. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  6276. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 12, word 4 (ADDR =
  6277. * 0x64). EXAMPLE Empty Example.
  6278. */
  6279. typedef union _hw_ocotp_hdcp_key52
  6280. {
  6281. reg32_t U;
  6282. struct _hw_ocotp_hdcp_key52_bitfields
  6283. {
  6284. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 12, word 4 (ADDR = 0x64).
  6285. } B;
  6286. } hw_ocotp_hdcp_key52_t;
  6287. #endif
  6288. /*
  6289. * constants & macros for entire OCOTP_HDCP_KEY52 register
  6290. */
  6291. #define HW_OCOTP_HDCP_KEY52_ADDR (REGS_OCOTP_BASE + 0xb40)
  6292. #ifndef __LANGUAGE_ASM__
  6293. #define HW_OCOTP_HDCP_KEY52 (*(volatile hw_ocotp_hdcp_key52_t *) HW_OCOTP_HDCP_KEY52_ADDR)
  6294. #define HW_OCOTP_HDCP_KEY52_RD() (HW_OCOTP_HDCP_KEY52.U)
  6295. #define HW_OCOTP_HDCP_KEY52_WR(v) (HW_OCOTP_HDCP_KEY52.U = (v))
  6296. #define HW_OCOTP_HDCP_KEY52_SET(v) (HW_OCOTP_HDCP_KEY52_WR(HW_OCOTP_HDCP_KEY52_RD() | (v)))
  6297. #define HW_OCOTP_HDCP_KEY52_CLR(v) (HW_OCOTP_HDCP_KEY52_WR(HW_OCOTP_HDCP_KEY52_RD() & ~(v)))
  6298. #define HW_OCOTP_HDCP_KEY52_TOG(v) (HW_OCOTP_HDCP_KEY52_WR(HW_OCOTP_HDCP_KEY52_RD() ^ (v)))
  6299. #endif
  6300. /*
  6301. * constants & macros for individual OCOTP_HDCP_KEY52 bitfields
  6302. */
  6303. /* --- Register HW_OCOTP_HDCP_KEY52, field BITS[31:0] (RW)
  6304. *
  6305. * Reflects value of OTP Bank 12, word 4 (ADDR = 0x64).
  6306. */
  6307. #define BP_OCOTP_HDCP_KEY52_BITS (0) //!< Bit position for OCOTP_HDCP_KEY52_BITS.
  6308. #define BM_OCOTP_HDCP_KEY52_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY52_BITS.
  6309. //! @brief Get value of OCOTP_HDCP_KEY52_BITS from a register value.
  6310. #define BG_OCOTP_HDCP_KEY52_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY52_BITS) >> BP_OCOTP_HDCP_KEY52_BITS)
  6311. //! @brief Format value for bitfield OCOTP_HDCP_KEY52_BITS.
  6312. #define BF_OCOTP_HDCP_KEY52_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY52_BITS) & BM_OCOTP_HDCP_KEY52_BITS)
  6313. #ifndef __LANGUAGE_ASM__
  6314. //! @brief Set the BITS field to a new value.
  6315. #define BW_OCOTP_HDCP_KEY52_BITS(v) (HW_OCOTP_HDCP_KEY52_WR((HW_OCOTP_HDCP_KEY52_RD() & ~BM_OCOTP_HDCP_KEY52_BITS) | BF_OCOTP_HDCP_KEY52_BITS(v)))
  6316. #endif
  6317. //-------------------------------------------------------------------------------------------
  6318. // HW_OCOTP_HDCP_KEY53 - Value of OTP Bank12 Word5 (HW Capabilities)
  6319. //-------------------------------------------------------------------------------------------
  6320. #ifndef __LANGUAGE_ASM__
  6321. /*!
  6322. * @brief HW_OCOTP_HDCP_KEY53 - Value of OTP Bank12 Word5 (HW Capabilities) (RW)
  6323. *
  6324. * Reset value: 0x00000000
  6325. *
  6326. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  6327. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 12, word 5 (ADDR =
  6328. * 0x65). EXAMPLE Empty Example.
  6329. */
  6330. typedef union _hw_ocotp_hdcp_key53
  6331. {
  6332. reg32_t U;
  6333. struct _hw_ocotp_hdcp_key53_bitfields
  6334. {
  6335. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 12, word 5 (ADDR = 0x65).
  6336. } B;
  6337. } hw_ocotp_hdcp_key53_t;
  6338. #endif
  6339. /*
  6340. * constants & macros for entire OCOTP_HDCP_KEY53 register
  6341. */
  6342. #define HW_OCOTP_HDCP_KEY53_ADDR (REGS_OCOTP_BASE + 0xb50)
  6343. #ifndef __LANGUAGE_ASM__
  6344. #define HW_OCOTP_HDCP_KEY53 (*(volatile hw_ocotp_hdcp_key53_t *) HW_OCOTP_HDCP_KEY53_ADDR)
  6345. #define HW_OCOTP_HDCP_KEY53_RD() (HW_OCOTP_HDCP_KEY53.U)
  6346. #define HW_OCOTP_HDCP_KEY53_WR(v) (HW_OCOTP_HDCP_KEY53.U = (v))
  6347. #define HW_OCOTP_HDCP_KEY53_SET(v) (HW_OCOTP_HDCP_KEY53_WR(HW_OCOTP_HDCP_KEY53_RD() | (v)))
  6348. #define HW_OCOTP_HDCP_KEY53_CLR(v) (HW_OCOTP_HDCP_KEY53_WR(HW_OCOTP_HDCP_KEY53_RD() & ~(v)))
  6349. #define HW_OCOTP_HDCP_KEY53_TOG(v) (HW_OCOTP_HDCP_KEY53_WR(HW_OCOTP_HDCP_KEY53_RD() ^ (v)))
  6350. #endif
  6351. /*
  6352. * constants & macros for individual OCOTP_HDCP_KEY53 bitfields
  6353. */
  6354. /* --- Register HW_OCOTP_HDCP_KEY53, field BITS[31:0] (RW)
  6355. *
  6356. * Reflects value of OTP Bank 12, word 5 (ADDR = 0x65).
  6357. */
  6358. #define BP_OCOTP_HDCP_KEY53_BITS (0) //!< Bit position for OCOTP_HDCP_KEY53_BITS.
  6359. #define BM_OCOTP_HDCP_KEY53_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY53_BITS.
  6360. //! @brief Get value of OCOTP_HDCP_KEY53_BITS from a register value.
  6361. #define BG_OCOTP_HDCP_KEY53_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY53_BITS) >> BP_OCOTP_HDCP_KEY53_BITS)
  6362. //! @brief Format value for bitfield OCOTP_HDCP_KEY53_BITS.
  6363. #define BF_OCOTP_HDCP_KEY53_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY53_BITS) & BM_OCOTP_HDCP_KEY53_BITS)
  6364. #ifndef __LANGUAGE_ASM__
  6365. //! @brief Set the BITS field to a new value.
  6366. #define BW_OCOTP_HDCP_KEY53_BITS(v) (HW_OCOTP_HDCP_KEY53_WR((HW_OCOTP_HDCP_KEY53_RD() & ~BM_OCOTP_HDCP_KEY53_BITS) | BF_OCOTP_HDCP_KEY53_BITS(v)))
  6367. #endif
  6368. //-------------------------------------------------------------------------------------------
  6369. // HW_OCOTP_HDCP_KEY54 - Value of OTP Bank12 Word6 (HW Capabilities)
  6370. //-------------------------------------------------------------------------------------------
  6371. #ifndef __LANGUAGE_ASM__
  6372. /*!
  6373. * @brief HW_OCOTP_HDCP_KEY54 - Value of OTP Bank12 Word6 (HW Capabilities) (RW)
  6374. *
  6375. * Reset value: 0x00000000
  6376. *
  6377. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  6378. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 12, word 6 (ADDR =
  6379. * 0x66). EXAMPLE Empty Example.
  6380. */
  6381. typedef union _hw_ocotp_hdcp_key54
  6382. {
  6383. reg32_t U;
  6384. struct _hw_ocotp_hdcp_key54_bitfields
  6385. {
  6386. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 12, word 6 (ADDR = 0x66).
  6387. } B;
  6388. } hw_ocotp_hdcp_key54_t;
  6389. #endif
  6390. /*
  6391. * constants & macros for entire OCOTP_HDCP_KEY54 register
  6392. */
  6393. #define HW_OCOTP_HDCP_KEY54_ADDR (REGS_OCOTP_BASE + 0xb60)
  6394. #ifndef __LANGUAGE_ASM__
  6395. #define HW_OCOTP_HDCP_KEY54 (*(volatile hw_ocotp_hdcp_key54_t *) HW_OCOTP_HDCP_KEY54_ADDR)
  6396. #define HW_OCOTP_HDCP_KEY54_RD() (HW_OCOTP_HDCP_KEY54.U)
  6397. #define HW_OCOTP_HDCP_KEY54_WR(v) (HW_OCOTP_HDCP_KEY54.U = (v))
  6398. #define HW_OCOTP_HDCP_KEY54_SET(v) (HW_OCOTP_HDCP_KEY54_WR(HW_OCOTP_HDCP_KEY54_RD() | (v)))
  6399. #define HW_OCOTP_HDCP_KEY54_CLR(v) (HW_OCOTP_HDCP_KEY54_WR(HW_OCOTP_HDCP_KEY54_RD() & ~(v)))
  6400. #define HW_OCOTP_HDCP_KEY54_TOG(v) (HW_OCOTP_HDCP_KEY54_WR(HW_OCOTP_HDCP_KEY54_RD() ^ (v)))
  6401. #endif
  6402. /*
  6403. * constants & macros for individual OCOTP_HDCP_KEY54 bitfields
  6404. */
  6405. /* --- Register HW_OCOTP_HDCP_KEY54, field BITS[31:0] (RW)
  6406. *
  6407. * Reflects value of OTP Bank 12, word 6 (ADDR = 0x66).
  6408. */
  6409. #define BP_OCOTP_HDCP_KEY54_BITS (0) //!< Bit position for OCOTP_HDCP_KEY54_BITS.
  6410. #define BM_OCOTP_HDCP_KEY54_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY54_BITS.
  6411. //! @brief Get value of OCOTP_HDCP_KEY54_BITS from a register value.
  6412. #define BG_OCOTP_HDCP_KEY54_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY54_BITS) >> BP_OCOTP_HDCP_KEY54_BITS)
  6413. //! @brief Format value for bitfield OCOTP_HDCP_KEY54_BITS.
  6414. #define BF_OCOTP_HDCP_KEY54_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY54_BITS) & BM_OCOTP_HDCP_KEY54_BITS)
  6415. #ifndef __LANGUAGE_ASM__
  6416. //! @brief Set the BITS field to a new value.
  6417. #define BW_OCOTP_HDCP_KEY54_BITS(v) (HW_OCOTP_HDCP_KEY54_WR((HW_OCOTP_HDCP_KEY54_RD() & ~BM_OCOTP_HDCP_KEY54_BITS) | BF_OCOTP_HDCP_KEY54_BITS(v)))
  6418. #endif
  6419. //-------------------------------------------------------------------------------------------
  6420. // HW_OCOTP_HDCP_KEY55 - Value of OTP Bank12 Word7 (HW Capabilities)
  6421. //-------------------------------------------------------------------------------------------
  6422. #ifndef __LANGUAGE_ASM__
  6423. /*!
  6424. * @brief HW_OCOTP_HDCP_KEY55 - Value of OTP Bank12 Word7 (HW Capabilities) (RW)
  6425. *
  6426. * Reset value: 0x00000000
  6427. *
  6428. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  6429. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 12, word 7 (ADDR =
  6430. * 0x67). EXAMPLE Empty Example.
  6431. */
  6432. typedef union _hw_ocotp_hdcp_key55
  6433. {
  6434. reg32_t U;
  6435. struct _hw_ocotp_hdcp_key55_bitfields
  6436. {
  6437. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 12, word 7 (ADDR = 0x67).
  6438. } B;
  6439. } hw_ocotp_hdcp_key55_t;
  6440. #endif
  6441. /*
  6442. * constants & macros for entire OCOTP_HDCP_KEY55 register
  6443. */
  6444. #define HW_OCOTP_HDCP_KEY55_ADDR (REGS_OCOTP_BASE + 0xb70)
  6445. #ifndef __LANGUAGE_ASM__
  6446. #define HW_OCOTP_HDCP_KEY55 (*(volatile hw_ocotp_hdcp_key55_t *) HW_OCOTP_HDCP_KEY55_ADDR)
  6447. #define HW_OCOTP_HDCP_KEY55_RD() (HW_OCOTP_HDCP_KEY55.U)
  6448. #define HW_OCOTP_HDCP_KEY55_WR(v) (HW_OCOTP_HDCP_KEY55.U = (v))
  6449. #define HW_OCOTP_HDCP_KEY55_SET(v) (HW_OCOTP_HDCP_KEY55_WR(HW_OCOTP_HDCP_KEY55_RD() | (v)))
  6450. #define HW_OCOTP_HDCP_KEY55_CLR(v) (HW_OCOTP_HDCP_KEY55_WR(HW_OCOTP_HDCP_KEY55_RD() & ~(v)))
  6451. #define HW_OCOTP_HDCP_KEY55_TOG(v) (HW_OCOTP_HDCP_KEY55_WR(HW_OCOTP_HDCP_KEY55_RD() ^ (v)))
  6452. #endif
  6453. /*
  6454. * constants & macros for individual OCOTP_HDCP_KEY55 bitfields
  6455. */
  6456. /* --- Register HW_OCOTP_HDCP_KEY55, field BITS[31:0] (RW)
  6457. *
  6458. * Reflects value of OTP Bank 12, word 7 (ADDR = 0x67).
  6459. */
  6460. #define BP_OCOTP_HDCP_KEY55_BITS (0) //!< Bit position for OCOTP_HDCP_KEY55_BITS.
  6461. #define BM_OCOTP_HDCP_KEY55_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY55_BITS.
  6462. //! @brief Get value of OCOTP_HDCP_KEY55_BITS from a register value.
  6463. #define BG_OCOTP_HDCP_KEY55_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY55_BITS) >> BP_OCOTP_HDCP_KEY55_BITS)
  6464. //! @brief Format value for bitfield OCOTP_HDCP_KEY55_BITS.
  6465. #define BF_OCOTP_HDCP_KEY55_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY55_BITS) & BM_OCOTP_HDCP_KEY55_BITS)
  6466. #ifndef __LANGUAGE_ASM__
  6467. //! @brief Set the BITS field to a new value.
  6468. #define BW_OCOTP_HDCP_KEY55_BITS(v) (HW_OCOTP_HDCP_KEY55_WR((HW_OCOTP_HDCP_KEY55_RD() & ~BM_OCOTP_HDCP_KEY55_BITS) | BF_OCOTP_HDCP_KEY55_BITS(v)))
  6469. #endif
  6470. //-------------------------------------------------------------------------------------------
  6471. // HW_OCOTP_HDCP_KEY56 - Value of OTP Bank13 Word0 (HW Capabilities)
  6472. //-------------------------------------------------------------------------------------------
  6473. #ifndef __LANGUAGE_ASM__
  6474. /*!
  6475. * @brief HW_OCOTP_HDCP_KEY56 - Value of OTP Bank13 Word0 (HW Capabilities) (RW)
  6476. *
  6477. * Reset value: 0x00000000
  6478. *
  6479. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  6480. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 13, word 0 (ADDR =
  6481. * 0x68). EXAMPLE Empty Example.
  6482. */
  6483. typedef union _hw_ocotp_hdcp_key56
  6484. {
  6485. reg32_t U;
  6486. struct _hw_ocotp_hdcp_key56_bitfields
  6487. {
  6488. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 13, word 0 (ADDR = 0x68).
  6489. } B;
  6490. } hw_ocotp_hdcp_key56_t;
  6491. #endif
  6492. /*
  6493. * constants & macros for entire OCOTP_HDCP_KEY56 register
  6494. */
  6495. #define HW_OCOTP_HDCP_KEY56_ADDR (REGS_OCOTP_BASE + 0xb80)
  6496. #ifndef __LANGUAGE_ASM__
  6497. #define HW_OCOTP_HDCP_KEY56 (*(volatile hw_ocotp_hdcp_key56_t *) HW_OCOTP_HDCP_KEY56_ADDR)
  6498. #define HW_OCOTP_HDCP_KEY56_RD() (HW_OCOTP_HDCP_KEY56.U)
  6499. #define HW_OCOTP_HDCP_KEY56_WR(v) (HW_OCOTP_HDCP_KEY56.U = (v))
  6500. #define HW_OCOTP_HDCP_KEY56_SET(v) (HW_OCOTP_HDCP_KEY56_WR(HW_OCOTP_HDCP_KEY56_RD() | (v)))
  6501. #define HW_OCOTP_HDCP_KEY56_CLR(v) (HW_OCOTP_HDCP_KEY56_WR(HW_OCOTP_HDCP_KEY56_RD() & ~(v)))
  6502. #define HW_OCOTP_HDCP_KEY56_TOG(v) (HW_OCOTP_HDCP_KEY56_WR(HW_OCOTP_HDCP_KEY56_RD() ^ (v)))
  6503. #endif
  6504. /*
  6505. * constants & macros for individual OCOTP_HDCP_KEY56 bitfields
  6506. */
  6507. /* --- Register HW_OCOTP_HDCP_KEY56, field BITS[31:0] (RW)
  6508. *
  6509. * Reflects value of OTP Bank 13, word 0 (ADDR = 0x68).
  6510. */
  6511. #define BP_OCOTP_HDCP_KEY56_BITS (0) //!< Bit position for OCOTP_HDCP_KEY56_BITS.
  6512. #define BM_OCOTP_HDCP_KEY56_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY56_BITS.
  6513. //! @brief Get value of OCOTP_HDCP_KEY56_BITS from a register value.
  6514. #define BG_OCOTP_HDCP_KEY56_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY56_BITS) >> BP_OCOTP_HDCP_KEY56_BITS)
  6515. //! @brief Format value for bitfield OCOTP_HDCP_KEY56_BITS.
  6516. #define BF_OCOTP_HDCP_KEY56_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY56_BITS) & BM_OCOTP_HDCP_KEY56_BITS)
  6517. #ifndef __LANGUAGE_ASM__
  6518. //! @brief Set the BITS field to a new value.
  6519. #define BW_OCOTP_HDCP_KEY56_BITS(v) (HW_OCOTP_HDCP_KEY56_WR((HW_OCOTP_HDCP_KEY56_RD() & ~BM_OCOTP_HDCP_KEY56_BITS) | BF_OCOTP_HDCP_KEY56_BITS(v)))
  6520. #endif
  6521. //-------------------------------------------------------------------------------------------
  6522. // HW_OCOTP_HDCP_KEY57 - Value of OTP Bank13 Word1 (HW Capabilities)
  6523. //-------------------------------------------------------------------------------------------
  6524. #ifndef __LANGUAGE_ASM__
  6525. /*!
  6526. * @brief HW_OCOTP_HDCP_KEY57 - Value of OTP Bank13 Word1 (HW Capabilities) (RW)
  6527. *
  6528. * Reset value: 0x00000000
  6529. *
  6530. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  6531. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 13, word 1 (ADDR =
  6532. * 0x69). EXAMPLE Empty Example.
  6533. */
  6534. typedef union _hw_ocotp_hdcp_key57
  6535. {
  6536. reg32_t U;
  6537. struct _hw_ocotp_hdcp_key57_bitfields
  6538. {
  6539. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 13, word 1 (ADDR = 0x69).
  6540. } B;
  6541. } hw_ocotp_hdcp_key57_t;
  6542. #endif
  6543. /*
  6544. * constants & macros for entire OCOTP_HDCP_KEY57 register
  6545. */
  6546. #define HW_OCOTP_HDCP_KEY57_ADDR (REGS_OCOTP_BASE + 0xb90)
  6547. #ifndef __LANGUAGE_ASM__
  6548. #define HW_OCOTP_HDCP_KEY57 (*(volatile hw_ocotp_hdcp_key57_t *) HW_OCOTP_HDCP_KEY57_ADDR)
  6549. #define HW_OCOTP_HDCP_KEY57_RD() (HW_OCOTP_HDCP_KEY57.U)
  6550. #define HW_OCOTP_HDCP_KEY57_WR(v) (HW_OCOTP_HDCP_KEY57.U = (v))
  6551. #define HW_OCOTP_HDCP_KEY57_SET(v) (HW_OCOTP_HDCP_KEY57_WR(HW_OCOTP_HDCP_KEY57_RD() | (v)))
  6552. #define HW_OCOTP_HDCP_KEY57_CLR(v) (HW_OCOTP_HDCP_KEY57_WR(HW_OCOTP_HDCP_KEY57_RD() & ~(v)))
  6553. #define HW_OCOTP_HDCP_KEY57_TOG(v) (HW_OCOTP_HDCP_KEY57_WR(HW_OCOTP_HDCP_KEY57_RD() ^ (v)))
  6554. #endif
  6555. /*
  6556. * constants & macros for individual OCOTP_HDCP_KEY57 bitfields
  6557. */
  6558. /* --- Register HW_OCOTP_HDCP_KEY57, field BITS[31:0] (RW)
  6559. *
  6560. * Reflects value of OTP Bank 13, word 1 (ADDR = 0x69).
  6561. */
  6562. #define BP_OCOTP_HDCP_KEY57_BITS (0) //!< Bit position for OCOTP_HDCP_KEY57_BITS.
  6563. #define BM_OCOTP_HDCP_KEY57_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY57_BITS.
  6564. //! @brief Get value of OCOTP_HDCP_KEY57_BITS from a register value.
  6565. #define BG_OCOTP_HDCP_KEY57_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY57_BITS) >> BP_OCOTP_HDCP_KEY57_BITS)
  6566. //! @brief Format value for bitfield OCOTP_HDCP_KEY57_BITS.
  6567. #define BF_OCOTP_HDCP_KEY57_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY57_BITS) & BM_OCOTP_HDCP_KEY57_BITS)
  6568. #ifndef __LANGUAGE_ASM__
  6569. //! @brief Set the BITS field to a new value.
  6570. #define BW_OCOTP_HDCP_KEY57_BITS(v) (HW_OCOTP_HDCP_KEY57_WR((HW_OCOTP_HDCP_KEY57_RD() & ~BM_OCOTP_HDCP_KEY57_BITS) | BF_OCOTP_HDCP_KEY57_BITS(v)))
  6571. #endif
  6572. //-------------------------------------------------------------------------------------------
  6573. // HW_OCOTP_HDCP_KEY58 - Value of OTP Bank13 Word2 (HW Capabilities)
  6574. //-------------------------------------------------------------------------------------------
  6575. #ifndef __LANGUAGE_ASM__
  6576. /*!
  6577. * @brief HW_OCOTP_HDCP_KEY58 - Value of OTP Bank13 Word2 (HW Capabilities) (RW)
  6578. *
  6579. * Reset value: 0x00000000
  6580. *
  6581. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  6582. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 13, word 2 (ADDR =
  6583. * 0x6a). EXAMPLE Empty Example.
  6584. */
  6585. typedef union _hw_ocotp_hdcp_key58
  6586. {
  6587. reg32_t U;
  6588. struct _hw_ocotp_hdcp_key58_bitfields
  6589. {
  6590. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 13, word 2 (ADDR = 0x6a).
  6591. } B;
  6592. } hw_ocotp_hdcp_key58_t;
  6593. #endif
  6594. /*
  6595. * constants & macros for entire OCOTP_HDCP_KEY58 register
  6596. */
  6597. #define HW_OCOTP_HDCP_KEY58_ADDR (REGS_OCOTP_BASE + 0xba0)
  6598. #ifndef __LANGUAGE_ASM__
  6599. #define HW_OCOTP_HDCP_KEY58 (*(volatile hw_ocotp_hdcp_key58_t *) HW_OCOTP_HDCP_KEY58_ADDR)
  6600. #define HW_OCOTP_HDCP_KEY58_RD() (HW_OCOTP_HDCP_KEY58.U)
  6601. #define HW_OCOTP_HDCP_KEY58_WR(v) (HW_OCOTP_HDCP_KEY58.U = (v))
  6602. #define HW_OCOTP_HDCP_KEY58_SET(v) (HW_OCOTP_HDCP_KEY58_WR(HW_OCOTP_HDCP_KEY58_RD() | (v)))
  6603. #define HW_OCOTP_HDCP_KEY58_CLR(v) (HW_OCOTP_HDCP_KEY58_WR(HW_OCOTP_HDCP_KEY58_RD() & ~(v)))
  6604. #define HW_OCOTP_HDCP_KEY58_TOG(v) (HW_OCOTP_HDCP_KEY58_WR(HW_OCOTP_HDCP_KEY58_RD() ^ (v)))
  6605. #endif
  6606. /*
  6607. * constants & macros for individual OCOTP_HDCP_KEY58 bitfields
  6608. */
  6609. /* --- Register HW_OCOTP_HDCP_KEY58, field BITS[31:0] (RW)
  6610. *
  6611. * Reflects value of OTP Bank 13, word 2 (ADDR = 0x6a).
  6612. */
  6613. #define BP_OCOTP_HDCP_KEY58_BITS (0) //!< Bit position for OCOTP_HDCP_KEY58_BITS.
  6614. #define BM_OCOTP_HDCP_KEY58_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY58_BITS.
  6615. //! @brief Get value of OCOTP_HDCP_KEY58_BITS from a register value.
  6616. #define BG_OCOTP_HDCP_KEY58_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY58_BITS) >> BP_OCOTP_HDCP_KEY58_BITS)
  6617. //! @brief Format value for bitfield OCOTP_HDCP_KEY58_BITS.
  6618. #define BF_OCOTP_HDCP_KEY58_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY58_BITS) & BM_OCOTP_HDCP_KEY58_BITS)
  6619. #ifndef __LANGUAGE_ASM__
  6620. //! @brief Set the BITS field to a new value.
  6621. #define BW_OCOTP_HDCP_KEY58_BITS(v) (HW_OCOTP_HDCP_KEY58_WR((HW_OCOTP_HDCP_KEY58_RD() & ~BM_OCOTP_HDCP_KEY58_BITS) | BF_OCOTP_HDCP_KEY58_BITS(v)))
  6622. #endif
  6623. //-------------------------------------------------------------------------------------------
  6624. // HW_OCOTP_HDCP_KEY59 - Value of OTP Bank13 Word3 (HW Capabilities)
  6625. //-------------------------------------------------------------------------------------------
  6626. #ifndef __LANGUAGE_ASM__
  6627. /*!
  6628. * @brief HW_OCOTP_HDCP_KEY59 - Value of OTP Bank13 Word3 (HW Capabilities) (RW)
  6629. *
  6630. * Reset value: 0x00000000
  6631. *
  6632. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  6633. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 13, word 3 (ADDR =
  6634. * 0x6b). EXAMPLE Empty Example.
  6635. */
  6636. typedef union _hw_ocotp_hdcp_key59
  6637. {
  6638. reg32_t U;
  6639. struct _hw_ocotp_hdcp_key59_bitfields
  6640. {
  6641. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 13, word 3 (ADDR = 0x6b).
  6642. } B;
  6643. } hw_ocotp_hdcp_key59_t;
  6644. #endif
  6645. /*
  6646. * constants & macros for entire OCOTP_HDCP_KEY59 register
  6647. */
  6648. #define HW_OCOTP_HDCP_KEY59_ADDR (REGS_OCOTP_BASE + 0xbb0)
  6649. #ifndef __LANGUAGE_ASM__
  6650. #define HW_OCOTP_HDCP_KEY59 (*(volatile hw_ocotp_hdcp_key59_t *) HW_OCOTP_HDCP_KEY59_ADDR)
  6651. #define HW_OCOTP_HDCP_KEY59_RD() (HW_OCOTP_HDCP_KEY59.U)
  6652. #define HW_OCOTP_HDCP_KEY59_WR(v) (HW_OCOTP_HDCP_KEY59.U = (v))
  6653. #define HW_OCOTP_HDCP_KEY59_SET(v) (HW_OCOTP_HDCP_KEY59_WR(HW_OCOTP_HDCP_KEY59_RD() | (v)))
  6654. #define HW_OCOTP_HDCP_KEY59_CLR(v) (HW_OCOTP_HDCP_KEY59_WR(HW_OCOTP_HDCP_KEY59_RD() & ~(v)))
  6655. #define HW_OCOTP_HDCP_KEY59_TOG(v) (HW_OCOTP_HDCP_KEY59_WR(HW_OCOTP_HDCP_KEY59_RD() ^ (v)))
  6656. #endif
  6657. /*
  6658. * constants & macros for individual OCOTP_HDCP_KEY59 bitfields
  6659. */
  6660. /* --- Register HW_OCOTP_HDCP_KEY59, field BITS[31:0] (RW)
  6661. *
  6662. * Reflects value of OTP Bank 13, word 3 (ADDR = 0x6b).
  6663. */
  6664. #define BP_OCOTP_HDCP_KEY59_BITS (0) //!< Bit position for OCOTP_HDCP_KEY59_BITS.
  6665. #define BM_OCOTP_HDCP_KEY59_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY59_BITS.
  6666. //! @brief Get value of OCOTP_HDCP_KEY59_BITS from a register value.
  6667. #define BG_OCOTP_HDCP_KEY59_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY59_BITS) >> BP_OCOTP_HDCP_KEY59_BITS)
  6668. //! @brief Format value for bitfield OCOTP_HDCP_KEY59_BITS.
  6669. #define BF_OCOTP_HDCP_KEY59_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY59_BITS) & BM_OCOTP_HDCP_KEY59_BITS)
  6670. #ifndef __LANGUAGE_ASM__
  6671. //! @brief Set the BITS field to a new value.
  6672. #define BW_OCOTP_HDCP_KEY59_BITS(v) (HW_OCOTP_HDCP_KEY59_WR((HW_OCOTP_HDCP_KEY59_RD() & ~BM_OCOTP_HDCP_KEY59_BITS) | BF_OCOTP_HDCP_KEY59_BITS(v)))
  6673. #endif
  6674. //-------------------------------------------------------------------------------------------
  6675. // HW_OCOTP_HDCP_KEY60 - Value of OTP Bank13 Word4 (HW Capabilities)
  6676. //-------------------------------------------------------------------------------------------
  6677. #ifndef __LANGUAGE_ASM__
  6678. /*!
  6679. * @brief HW_OCOTP_HDCP_KEY60 - Value of OTP Bank13 Word4 (HW Capabilities) (RW)
  6680. *
  6681. * Reset value: 0x00000000
  6682. *
  6683. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  6684. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 13, word 4 (ADDR =
  6685. * 0x6c). EXAMPLE Empty Example.
  6686. */
  6687. typedef union _hw_ocotp_hdcp_key60
  6688. {
  6689. reg32_t U;
  6690. struct _hw_ocotp_hdcp_key60_bitfields
  6691. {
  6692. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 13, word 4 (ADDR = 0x6c).
  6693. } B;
  6694. } hw_ocotp_hdcp_key60_t;
  6695. #endif
  6696. /*
  6697. * constants & macros for entire OCOTP_HDCP_KEY60 register
  6698. */
  6699. #define HW_OCOTP_HDCP_KEY60_ADDR (REGS_OCOTP_BASE + 0xbc0)
  6700. #ifndef __LANGUAGE_ASM__
  6701. #define HW_OCOTP_HDCP_KEY60 (*(volatile hw_ocotp_hdcp_key60_t *) HW_OCOTP_HDCP_KEY60_ADDR)
  6702. #define HW_OCOTP_HDCP_KEY60_RD() (HW_OCOTP_HDCP_KEY60.U)
  6703. #define HW_OCOTP_HDCP_KEY60_WR(v) (HW_OCOTP_HDCP_KEY60.U = (v))
  6704. #define HW_OCOTP_HDCP_KEY60_SET(v) (HW_OCOTP_HDCP_KEY60_WR(HW_OCOTP_HDCP_KEY60_RD() | (v)))
  6705. #define HW_OCOTP_HDCP_KEY60_CLR(v) (HW_OCOTP_HDCP_KEY60_WR(HW_OCOTP_HDCP_KEY60_RD() & ~(v)))
  6706. #define HW_OCOTP_HDCP_KEY60_TOG(v) (HW_OCOTP_HDCP_KEY60_WR(HW_OCOTP_HDCP_KEY60_RD() ^ (v)))
  6707. #endif
  6708. /*
  6709. * constants & macros for individual OCOTP_HDCP_KEY60 bitfields
  6710. */
  6711. /* --- Register HW_OCOTP_HDCP_KEY60, field BITS[31:0] (RW)
  6712. *
  6713. * Reflects value of OTP Bank 13, word 4 (ADDR = 0x6c).
  6714. */
  6715. #define BP_OCOTP_HDCP_KEY60_BITS (0) //!< Bit position for OCOTP_HDCP_KEY60_BITS.
  6716. #define BM_OCOTP_HDCP_KEY60_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY60_BITS.
  6717. //! @brief Get value of OCOTP_HDCP_KEY60_BITS from a register value.
  6718. #define BG_OCOTP_HDCP_KEY60_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY60_BITS) >> BP_OCOTP_HDCP_KEY60_BITS)
  6719. //! @brief Format value for bitfield OCOTP_HDCP_KEY60_BITS.
  6720. #define BF_OCOTP_HDCP_KEY60_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY60_BITS) & BM_OCOTP_HDCP_KEY60_BITS)
  6721. #ifndef __LANGUAGE_ASM__
  6722. //! @brief Set the BITS field to a new value.
  6723. #define BW_OCOTP_HDCP_KEY60_BITS(v) (HW_OCOTP_HDCP_KEY60_WR((HW_OCOTP_HDCP_KEY60_RD() & ~BM_OCOTP_HDCP_KEY60_BITS) | BF_OCOTP_HDCP_KEY60_BITS(v)))
  6724. #endif
  6725. //-------------------------------------------------------------------------------------------
  6726. // HW_OCOTP_HDCP_KEY61 - Value of OTP Bank13 Word5 (HW Capabilities)
  6727. //-------------------------------------------------------------------------------------------
  6728. #ifndef __LANGUAGE_ASM__
  6729. /*!
  6730. * @brief HW_OCOTP_HDCP_KEY61 - Value of OTP Bank13 Word5 (HW Capabilities) (RW)
  6731. *
  6732. * Reset value: 0x00000000
  6733. *
  6734. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  6735. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 13, word 5 (ADDR =
  6736. * 0x6d). EXAMPLE Empty Example.
  6737. */
  6738. typedef union _hw_ocotp_hdcp_key61
  6739. {
  6740. reg32_t U;
  6741. struct _hw_ocotp_hdcp_key61_bitfields
  6742. {
  6743. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 13, word 5 (ADDR = 0x6d).
  6744. } B;
  6745. } hw_ocotp_hdcp_key61_t;
  6746. #endif
  6747. /*
  6748. * constants & macros for entire OCOTP_HDCP_KEY61 register
  6749. */
  6750. #define HW_OCOTP_HDCP_KEY61_ADDR (REGS_OCOTP_BASE + 0xbd0)
  6751. #ifndef __LANGUAGE_ASM__
  6752. #define HW_OCOTP_HDCP_KEY61 (*(volatile hw_ocotp_hdcp_key61_t *) HW_OCOTP_HDCP_KEY61_ADDR)
  6753. #define HW_OCOTP_HDCP_KEY61_RD() (HW_OCOTP_HDCP_KEY61.U)
  6754. #define HW_OCOTP_HDCP_KEY61_WR(v) (HW_OCOTP_HDCP_KEY61.U = (v))
  6755. #define HW_OCOTP_HDCP_KEY61_SET(v) (HW_OCOTP_HDCP_KEY61_WR(HW_OCOTP_HDCP_KEY61_RD() | (v)))
  6756. #define HW_OCOTP_HDCP_KEY61_CLR(v) (HW_OCOTP_HDCP_KEY61_WR(HW_OCOTP_HDCP_KEY61_RD() & ~(v)))
  6757. #define HW_OCOTP_HDCP_KEY61_TOG(v) (HW_OCOTP_HDCP_KEY61_WR(HW_OCOTP_HDCP_KEY61_RD() ^ (v)))
  6758. #endif
  6759. /*
  6760. * constants & macros for individual OCOTP_HDCP_KEY61 bitfields
  6761. */
  6762. /* --- Register HW_OCOTP_HDCP_KEY61, field BITS[31:0] (RW)
  6763. *
  6764. * Reflects value of OTP Bank 13, word 5 (ADDR = 0x6d).
  6765. */
  6766. #define BP_OCOTP_HDCP_KEY61_BITS (0) //!< Bit position for OCOTP_HDCP_KEY61_BITS.
  6767. #define BM_OCOTP_HDCP_KEY61_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY61_BITS.
  6768. //! @brief Get value of OCOTP_HDCP_KEY61_BITS from a register value.
  6769. #define BG_OCOTP_HDCP_KEY61_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY61_BITS) >> BP_OCOTP_HDCP_KEY61_BITS)
  6770. //! @brief Format value for bitfield OCOTP_HDCP_KEY61_BITS.
  6771. #define BF_OCOTP_HDCP_KEY61_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY61_BITS) & BM_OCOTP_HDCP_KEY61_BITS)
  6772. #ifndef __LANGUAGE_ASM__
  6773. //! @brief Set the BITS field to a new value.
  6774. #define BW_OCOTP_HDCP_KEY61_BITS(v) (HW_OCOTP_HDCP_KEY61_WR((HW_OCOTP_HDCP_KEY61_RD() & ~BM_OCOTP_HDCP_KEY61_BITS) | BF_OCOTP_HDCP_KEY61_BITS(v)))
  6775. #endif
  6776. //-------------------------------------------------------------------------------------------
  6777. // HW_OCOTP_HDCP_KEY62 - Value of OTP Bank13 Word6 (HW Capabilities)
  6778. //-------------------------------------------------------------------------------------------
  6779. #ifndef __LANGUAGE_ASM__
  6780. /*!
  6781. * @brief HW_OCOTP_HDCP_KEY62 - Value of OTP Bank13 Word6 (HW Capabilities) (RW)
  6782. *
  6783. * Reset value: 0x00000000
  6784. *
  6785. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  6786. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to Bank 13, word 6 (ADDR = 0x6e).
  6787. * EXAMPLE Empty Example.
  6788. */
  6789. typedef union _hw_ocotp_hdcp_key62
  6790. {
  6791. reg32_t U;
  6792. struct _hw_ocotp_hdcp_key62_bitfields
  6793. {
  6794. unsigned BITS : 32; //!< [31:0] Reflects value of Bank 13, word 6 (ADDR = 0x6e).
  6795. } B;
  6796. } hw_ocotp_hdcp_key62_t;
  6797. #endif
  6798. /*
  6799. * constants & macros for entire OCOTP_HDCP_KEY62 register
  6800. */
  6801. #define HW_OCOTP_HDCP_KEY62_ADDR (REGS_OCOTP_BASE + 0xbe0)
  6802. #ifndef __LANGUAGE_ASM__
  6803. #define HW_OCOTP_HDCP_KEY62 (*(volatile hw_ocotp_hdcp_key62_t *) HW_OCOTP_HDCP_KEY62_ADDR)
  6804. #define HW_OCOTP_HDCP_KEY62_RD() (HW_OCOTP_HDCP_KEY62.U)
  6805. #define HW_OCOTP_HDCP_KEY62_WR(v) (HW_OCOTP_HDCP_KEY62.U = (v))
  6806. #define HW_OCOTP_HDCP_KEY62_SET(v) (HW_OCOTP_HDCP_KEY62_WR(HW_OCOTP_HDCP_KEY62_RD() | (v)))
  6807. #define HW_OCOTP_HDCP_KEY62_CLR(v) (HW_OCOTP_HDCP_KEY62_WR(HW_OCOTP_HDCP_KEY62_RD() & ~(v)))
  6808. #define HW_OCOTP_HDCP_KEY62_TOG(v) (HW_OCOTP_HDCP_KEY62_WR(HW_OCOTP_HDCP_KEY62_RD() ^ (v)))
  6809. #endif
  6810. /*
  6811. * constants & macros for individual OCOTP_HDCP_KEY62 bitfields
  6812. */
  6813. /* --- Register HW_OCOTP_HDCP_KEY62, field BITS[31:0] (RW)
  6814. *
  6815. * Reflects value of Bank 13, word 6 (ADDR = 0x6e).
  6816. */
  6817. #define BP_OCOTP_HDCP_KEY62_BITS (0) //!< Bit position for OCOTP_HDCP_KEY62_BITS.
  6818. #define BM_OCOTP_HDCP_KEY62_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY62_BITS.
  6819. //! @brief Get value of OCOTP_HDCP_KEY62_BITS from a register value.
  6820. #define BG_OCOTP_HDCP_KEY62_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY62_BITS) >> BP_OCOTP_HDCP_KEY62_BITS)
  6821. //! @brief Format value for bitfield OCOTP_HDCP_KEY62_BITS.
  6822. #define BF_OCOTP_HDCP_KEY62_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY62_BITS) & BM_OCOTP_HDCP_KEY62_BITS)
  6823. #ifndef __LANGUAGE_ASM__
  6824. //! @brief Set the BITS field to a new value.
  6825. #define BW_OCOTP_HDCP_KEY62_BITS(v) (HW_OCOTP_HDCP_KEY62_WR((HW_OCOTP_HDCP_KEY62_RD() & ~BM_OCOTP_HDCP_KEY62_BITS) | BF_OCOTP_HDCP_KEY62_BITS(v)))
  6826. #endif
  6827. //-------------------------------------------------------------------------------------------
  6828. // HW_OCOTP_HDCP_KEY63 - Value of OTP Bank13 Word7 (HW Capabilities)
  6829. //-------------------------------------------------------------------------------------------
  6830. #ifndef __LANGUAGE_ASM__
  6831. /*!
  6832. * @brief HW_OCOTP_HDCP_KEY63 - Value of OTP Bank13 Word7 (HW Capabilities) (RW)
  6833. *
  6834. * Reset value: 0x00000000
  6835. *
  6836. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  6837. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 13, word 7 (ADDR =
  6838. * 0x6f). EXAMPLE Empty Example.
  6839. */
  6840. typedef union _hw_ocotp_hdcp_key63
  6841. {
  6842. reg32_t U;
  6843. struct _hw_ocotp_hdcp_key63_bitfields
  6844. {
  6845. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 13, word 7 (ADDR = 0x6f).
  6846. } B;
  6847. } hw_ocotp_hdcp_key63_t;
  6848. #endif
  6849. /*
  6850. * constants & macros for entire OCOTP_HDCP_KEY63 register
  6851. */
  6852. #define HW_OCOTP_HDCP_KEY63_ADDR (REGS_OCOTP_BASE + 0xbf0)
  6853. #ifndef __LANGUAGE_ASM__
  6854. #define HW_OCOTP_HDCP_KEY63 (*(volatile hw_ocotp_hdcp_key63_t *) HW_OCOTP_HDCP_KEY63_ADDR)
  6855. #define HW_OCOTP_HDCP_KEY63_RD() (HW_OCOTP_HDCP_KEY63.U)
  6856. #define HW_OCOTP_HDCP_KEY63_WR(v) (HW_OCOTP_HDCP_KEY63.U = (v))
  6857. #define HW_OCOTP_HDCP_KEY63_SET(v) (HW_OCOTP_HDCP_KEY63_WR(HW_OCOTP_HDCP_KEY63_RD() | (v)))
  6858. #define HW_OCOTP_HDCP_KEY63_CLR(v) (HW_OCOTP_HDCP_KEY63_WR(HW_OCOTP_HDCP_KEY63_RD() & ~(v)))
  6859. #define HW_OCOTP_HDCP_KEY63_TOG(v) (HW_OCOTP_HDCP_KEY63_WR(HW_OCOTP_HDCP_KEY63_RD() ^ (v)))
  6860. #endif
  6861. /*
  6862. * constants & macros for individual OCOTP_HDCP_KEY63 bitfields
  6863. */
  6864. /* --- Register HW_OCOTP_HDCP_KEY63, field BITS[31:0] (RW)
  6865. *
  6866. * Reflects value of OTP Bank 13, word 7 (ADDR = 0x6f).
  6867. */
  6868. #define BP_OCOTP_HDCP_KEY63_BITS (0) //!< Bit position for OCOTP_HDCP_KEY63_BITS.
  6869. #define BM_OCOTP_HDCP_KEY63_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY63_BITS.
  6870. //! @brief Get value of OCOTP_HDCP_KEY63_BITS from a register value.
  6871. #define BG_OCOTP_HDCP_KEY63_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY63_BITS) >> BP_OCOTP_HDCP_KEY63_BITS)
  6872. //! @brief Format value for bitfield OCOTP_HDCP_KEY63_BITS.
  6873. #define BF_OCOTP_HDCP_KEY63_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY63_BITS) & BM_OCOTP_HDCP_KEY63_BITS)
  6874. #ifndef __LANGUAGE_ASM__
  6875. //! @brief Set the BITS field to a new value.
  6876. #define BW_OCOTP_HDCP_KEY63_BITS(v) (HW_OCOTP_HDCP_KEY63_WR((HW_OCOTP_HDCP_KEY63_RD() & ~BM_OCOTP_HDCP_KEY63_BITS) | BF_OCOTP_HDCP_KEY63_BITS(v)))
  6877. #endif
  6878. //-------------------------------------------------------------------------------------------
  6879. // HW_OCOTP_HDCP_KEY64 - Value of OTP Bank14 Word0 (HW Capabilities)
  6880. //-------------------------------------------------------------------------------------------
  6881. #ifndef __LANGUAGE_ASM__
  6882. /*!
  6883. * @brief HW_OCOTP_HDCP_KEY64 - Value of OTP Bank14 Word0 (HW Capabilities) (RW)
  6884. *
  6885. * Reset value: 0x00000000
  6886. *
  6887. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  6888. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 14, word 0 (ADDR =
  6889. * 0x70). EXAMPLE Empty Example.
  6890. */
  6891. typedef union _hw_ocotp_hdcp_key64
  6892. {
  6893. reg32_t U;
  6894. struct _hw_ocotp_hdcp_key64_bitfields
  6895. {
  6896. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 14, word 0 (ADDR = 0x70).
  6897. } B;
  6898. } hw_ocotp_hdcp_key64_t;
  6899. #endif
  6900. /*
  6901. * constants & macros for entire OCOTP_HDCP_KEY64 register
  6902. */
  6903. #define HW_OCOTP_HDCP_KEY64_ADDR (REGS_OCOTP_BASE + 0xc00)
  6904. #ifndef __LANGUAGE_ASM__
  6905. #define HW_OCOTP_HDCP_KEY64 (*(volatile hw_ocotp_hdcp_key64_t *) HW_OCOTP_HDCP_KEY64_ADDR)
  6906. #define HW_OCOTP_HDCP_KEY64_RD() (HW_OCOTP_HDCP_KEY64.U)
  6907. #define HW_OCOTP_HDCP_KEY64_WR(v) (HW_OCOTP_HDCP_KEY64.U = (v))
  6908. #define HW_OCOTP_HDCP_KEY64_SET(v) (HW_OCOTP_HDCP_KEY64_WR(HW_OCOTP_HDCP_KEY64_RD() | (v)))
  6909. #define HW_OCOTP_HDCP_KEY64_CLR(v) (HW_OCOTP_HDCP_KEY64_WR(HW_OCOTP_HDCP_KEY64_RD() & ~(v)))
  6910. #define HW_OCOTP_HDCP_KEY64_TOG(v) (HW_OCOTP_HDCP_KEY64_WR(HW_OCOTP_HDCP_KEY64_RD() ^ (v)))
  6911. #endif
  6912. /*
  6913. * constants & macros for individual OCOTP_HDCP_KEY64 bitfields
  6914. */
  6915. /* --- Register HW_OCOTP_HDCP_KEY64, field BITS[31:0] (RW)
  6916. *
  6917. * Reflects value of OTP Bank 14, word 0 (ADDR = 0x70).
  6918. */
  6919. #define BP_OCOTP_HDCP_KEY64_BITS (0) //!< Bit position for OCOTP_HDCP_KEY64_BITS.
  6920. #define BM_OCOTP_HDCP_KEY64_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY64_BITS.
  6921. //! @brief Get value of OCOTP_HDCP_KEY64_BITS from a register value.
  6922. #define BG_OCOTP_HDCP_KEY64_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY64_BITS) >> BP_OCOTP_HDCP_KEY64_BITS)
  6923. //! @brief Format value for bitfield OCOTP_HDCP_KEY64_BITS.
  6924. #define BF_OCOTP_HDCP_KEY64_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY64_BITS) & BM_OCOTP_HDCP_KEY64_BITS)
  6925. #ifndef __LANGUAGE_ASM__
  6926. //! @brief Set the BITS field to a new value.
  6927. #define BW_OCOTP_HDCP_KEY64_BITS(v) (HW_OCOTP_HDCP_KEY64_WR((HW_OCOTP_HDCP_KEY64_RD() & ~BM_OCOTP_HDCP_KEY64_BITS) | BF_OCOTP_HDCP_KEY64_BITS(v)))
  6928. #endif
  6929. //-------------------------------------------------------------------------------------------
  6930. // HW_OCOTP_HDCP_KEY65 - Value of OTP Bank14 Word1 (HW Capabilities)
  6931. //-------------------------------------------------------------------------------------------
  6932. #ifndef __LANGUAGE_ASM__
  6933. /*!
  6934. * @brief HW_OCOTP_HDCP_KEY65 - Value of OTP Bank14 Word1 (HW Capabilities) (RW)
  6935. *
  6936. * Reset value: 0x00000000
  6937. *
  6938. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  6939. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 14, word 1 (ADDR =
  6940. * 0x71). EXAMPLE Empty Example.
  6941. */
  6942. typedef union _hw_ocotp_hdcp_key65
  6943. {
  6944. reg32_t U;
  6945. struct _hw_ocotp_hdcp_key65_bitfields
  6946. {
  6947. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 14, word 1 (ADDR = 0x71).
  6948. } B;
  6949. } hw_ocotp_hdcp_key65_t;
  6950. #endif
  6951. /*
  6952. * constants & macros for entire OCOTP_HDCP_KEY65 register
  6953. */
  6954. #define HW_OCOTP_HDCP_KEY65_ADDR (REGS_OCOTP_BASE + 0xc10)
  6955. #ifndef __LANGUAGE_ASM__
  6956. #define HW_OCOTP_HDCP_KEY65 (*(volatile hw_ocotp_hdcp_key65_t *) HW_OCOTP_HDCP_KEY65_ADDR)
  6957. #define HW_OCOTP_HDCP_KEY65_RD() (HW_OCOTP_HDCP_KEY65.U)
  6958. #define HW_OCOTP_HDCP_KEY65_WR(v) (HW_OCOTP_HDCP_KEY65.U = (v))
  6959. #define HW_OCOTP_HDCP_KEY65_SET(v) (HW_OCOTP_HDCP_KEY65_WR(HW_OCOTP_HDCP_KEY65_RD() | (v)))
  6960. #define HW_OCOTP_HDCP_KEY65_CLR(v) (HW_OCOTP_HDCP_KEY65_WR(HW_OCOTP_HDCP_KEY65_RD() & ~(v)))
  6961. #define HW_OCOTP_HDCP_KEY65_TOG(v) (HW_OCOTP_HDCP_KEY65_WR(HW_OCOTP_HDCP_KEY65_RD() ^ (v)))
  6962. #endif
  6963. /*
  6964. * constants & macros for individual OCOTP_HDCP_KEY65 bitfields
  6965. */
  6966. /* --- Register HW_OCOTP_HDCP_KEY65, field BITS[31:0] (RW)
  6967. *
  6968. * Reflects value of OTP Bank 14, word 1 (ADDR = 0x71).
  6969. */
  6970. #define BP_OCOTP_HDCP_KEY65_BITS (0) //!< Bit position for OCOTP_HDCP_KEY65_BITS.
  6971. #define BM_OCOTP_HDCP_KEY65_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY65_BITS.
  6972. //! @brief Get value of OCOTP_HDCP_KEY65_BITS from a register value.
  6973. #define BG_OCOTP_HDCP_KEY65_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY65_BITS) >> BP_OCOTP_HDCP_KEY65_BITS)
  6974. //! @brief Format value for bitfield OCOTP_HDCP_KEY65_BITS.
  6975. #define BF_OCOTP_HDCP_KEY65_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY65_BITS) & BM_OCOTP_HDCP_KEY65_BITS)
  6976. #ifndef __LANGUAGE_ASM__
  6977. //! @brief Set the BITS field to a new value.
  6978. #define BW_OCOTP_HDCP_KEY65_BITS(v) (HW_OCOTP_HDCP_KEY65_WR((HW_OCOTP_HDCP_KEY65_RD() & ~BM_OCOTP_HDCP_KEY65_BITS) | BF_OCOTP_HDCP_KEY65_BITS(v)))
  6979. #endif
  6980. //-------------------------------------------------------------------------------------------
  6981. // HW_OCOTP_HDCP_KEY66 - Value of OTP Bank14 Word2 (HW Capabilities)
  6982. //-------------------------------------------------------------------------------------------
  6983. #ifndef __LANGUAGE_ASM__
  6984. /*!
  6985. * @brief HW_OCOTP_HDCP_KEY66 - Value of OTP Bank14 Word2 (HW Capabilities) (RW)
  6986. *
  6987. * Reset value: 0x00000000
  6988. *
  6989. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  6990. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 14, word 2 (ADDR =
  6991. * 0x72). EXAMPLE Empty Example.
  6992. */
  6993. typedef union _hw_ocotp_hdcp_key66
  6994. {
  6995. reg32_t U;
  6996. struct _hw_ocotp_hdcp_key66_bitfields
  6997. {
  6998. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 14, word 2 (ADDR = 0x72).
  6999. } B;
  7000. } hw_ocotp_hdcp_key66_t;
  7001. #endif
  7002. /*
  7003. * constants & macros for entire OCOTP_HDCP_KEY66 register
  7004. */
  7005. #define HW_OCOTP_HDCP_KEY66_ADDR (REGS_OCOTP_BASE + 0xc20)
  7006. #ifndef __LANGUAGE_ASM__
  7007. #define HW_OCOTP_HDCP_KEY66 (*(volatile hw_ocotp_hdcp_key66_t *) HW_OCOTP_HDCP_KEY66_ADDR)
  7008. #define HW_OCOTP_HDCP_KEY66_RD() (HW_OCOTP_HDCP_KEY66.U)
  7009. #define HW_OCOTP_HDCP_KEY66_WR(v) (HW_OCOTP_HDCP_KEY66.U = (v))
  7010. #define HW_OCOTP_HDCP_KEY66_SET(v) (HW_OCOTP_HDCP_KEY66_WR(HW_OCOTP_HDCP_KEY66_RD() | (v)))
  7011. #define HW_OCOTP_HDCP_KEY66_CLR(v) (HW_OCOTP_HDCP_KEY66_WR(HW_OCOTP_HDCP_KEY66_RD() & ~(v)))
  7012. #define HW_OCOTP_HDCP_KEY66_TOG(v) (HW_OCOTP_HDCP_KEY66_WR(HW_OCOTP_HDCP_KEY66_RD() ^ (v)))
  7013. #endif
  7014. /*
  7015. * constants & macros for individual OCOTP_HDCP_KEY66 bitfields
  7016. */
  7017. /* --- Register HW_OCOTP_HDCP_KEY66, field BITS[31:0] (RW)
  7018. *
  7019. * Reflects value of OTP Bank 14, word 2 (ADDR = 0x72).
  7020. */
  7021. #define BP_OCOTP_HDCP_KEY66_BITS (0) //!< Bit position for OCOTP_HDCP_KEY66_BITS.
  7022. #define BM_OCOTP_HDCP_KEY66_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY66_BITS.
  7023. //! @brief Get value of OCOTP_HDCP_KEY66_BITS from a register value.
  7024. #define BG_OCOTP_HDCP_KEY66_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY66_BITS) >> BP_OCOTP_HDCP_KEY66_BITS)
  7025. //! @brief Format value for bitfield OCOTP_HDCP_KEY66_BITS.
  7026. #define BF_OCOTP_HDCP_KEY66_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY66_BITS) & BM_OCOTP_HDCP_KEY66_BITS)
  7027. #ifndef __LANGUAGE_ASM__
  7028. //! @brief Set the BITS field to a new value.
  7029. #define BW_OCOTP_HDCP_KEY66_BITS(v) (HW_OCOTP_HDCP_KEY66_WR((HW_OCOTP_HDCP_KEY66_RD() & ~BM_OCOTP_HDCP_KEY66_BITS) | BF_OCOTP_HDCP_KEY66_BITS(v)))
  7030. #endif
  7031. //-------------------------------------------------------------------------------------------
  7032. // HW_OCOTP_HDCP_KEY67 - Value of OTP Bank14 Word3 (HW Capabilities)
  7033. //-------------------------------------------------------------------------------------------
  7034. #ifndef __LANGUAGE_ASM__
  7035. /*!
  7036. * @brief HW_OCOTP_HDCP_KEY67 - Value of OTP Bank14 Word3 (HW Capabilities) (RW)
  7037. *
  7038. * Reset value: 0x00000000
  7039. *
  7040. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  7041. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 14, word 3 (ADDR =
  7042. * 0x73). EXAMPLE Empty Example.
  7043. */
  7044. typedef union _hw_ocotp_hdcp_key67
  7045. {
  7046. reg32_t U;
  7047. struct _hw_ocotp_hdcp_key67_bitfields
  7048. {
  7049. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 14, word 3 (ADDR = 0x73).
  7050. } B;
  7051. } hw_ocotp_hdcp_key67_t;
  7052. #endif
  7053. /*
  7054. * constants & macros for entire OCOTP_HDCP_KEY67 register
  7055. */
  7056. #define HW_OCOTP_HDCP_KEY67_ADDR (REGS_OCOTP_BASE + 0xc30)
  7057. #ifndef __LANGUAGE_ASM__
  7058. #define HW_OCOTP_HDCP_KEY67 (*(volatile hw_ocotp_hdcp_key67_t *) HW_OCOTP_HDCP_KEY67_ADDR)
  7059. #define HW_OCOTP_HDCP_KEY67_RD() (HW_OCOTP_HDCP_KEY67.U)
  7060. #define HW_OCOTP_HDCP_KEY67_WR(v) (HW_OCOTP_HDCP_KEY67.U = (v))
  7061. #define HW_OCOTP_HDCP_KEY67_SET(v) (HW_OCOTP_HDCP_KEY67_WR(HW_OCOTP_HDCP_KEY67_RD() | (v)))
  7062. #define HW_OCOTP_HDCP_KEY67_CLR(v) (HW_OCOTP_HDCP_KEY67_WR(HW_OCOTP_HDCP_KEY67_RD() & ~(v)))
  7063. #define HW_OCOTP_HDCP_KEY67_TOG(v) (HW_OCOTP_HDCP_KEY67_WR(HW_OCOTP_HDCP_KEY67_RD() ^ (v)))
  7064. #endif
  7065. /*
  7066. * constants & macros for individual OCOTP_HDCP_KEY67 bitfields
  7067. */
  7068. /* --- Register HW_OCOTP_HDCP_KEY67, field BITS[31:0] (RW)
  7069. *
  7070. * Reflects value of OTP Bank 14, word 3 (ADDR = 0x73).
  7071. */
  7072. #define BP_OCOTP_HDCP_KEY67_BITS (0) //!< Bit position for OCOTP_HDCP_KEY67_BITS.
  7073. #define BM_OCOTP_HDCP_KEY67_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY67_BITS.
  7074. //! @brief Get value of OCOTP_HDCP_KEY67_BITS from a register value.
  7075. #define BG_OCOTP_HDCP_KEY67_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY67_BITS) >> BP_OCOTP_HDCP_KEY67_BITS)
  7076. //! @brief Format value for bitfield OCOTP_HDCP_KEY67_BITS.
  7077. #define BF_OCOTP_HDCP_KEY67_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY67_BITS) & BM_OCOTP_HDCP_KEY67_BITS)
  7078. #ifndef __LANGUAGE_ASM__
  7079. //! @brief Set the BITS field to a new value.
  7080. #define BW_OCOTP_HDCP_KEY67_BITS(v) (HW_OCOTP_HDCP_KEY67_WR((HW_OCOTP_HDCP_KEY67_RD() & ~BM_OCOTP_HDCP_KEY67_BITS) | BF_OCOTP_HDCP_KEY67_BITS(v)))
  7081. #endif
  7082. //-------------------------------------------------------------------------------------------
  7083. // HW_OCOTP_HDCP_KEY68 - Value of OTP Bank14 Word4 (HW Capabilities)
  7084. //-------------------------------------------------------------------------------------------
  7085. #ifndef __LANGUAGE_ASM__
  7086. /*!
  7087. * @brief HW_OCOTP_HDCP_KEY68 - Value of OTP Bank14 Word4 (HW Capabilities) (RW)
  7088. *
  7089. * Reset value: 0x00000000
  7090. *
  7091. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  7092. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 14, word 4 (ADDR =
  7093. * 0x74). EXAMPLE Empty Example.
  7094. */
  7095. typedef union _hw_ocotp_hdcp_key68
  7096. {
  7097. reg32_t U;
  7098. struct _hw_ocotp_hdcp_key68_bitfields
  7099. {
  7100. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 14, word 4 (ADDR = 0x74).
  7101. } B;
  7102. } hw_ocotp_hdcp_key68_t;
  7103. #endif
  7104. /*
  7105. * constants & macros for entire OCOTP_HDCP_KEY68 register
  7106. */
  7107. #define HW_OCOTP_HDCP_KEY68_ADDR (REGS_OCOTP_BASE + 0xc40)
  7108. #ifndef __LANGUAGE_ASM__
  7109. #define HW_OCOTP_HDCP_KEY68 (*(volatile hw_ocotp_hdcp_key68_t *) HW_OCOTP_HDCP_KEY68_ADDR)
  7110. #define HW_OCOTP_HDCP_KEY68_RD() (HW_OCOTP_HDCP_KEY68.U)
  7111. #define HW_OCOTP_HDCP_KEY68_WR(v) (HW_OCOTP_HDCP_KEY68.U = (v))
  7112. #define HW_OCOTP_HDCP_KEY68_SET(v) (HW_OCOTP_HDCP_KEY68_WR(HW_OCOTP_HDCP_KEY68_RD() | (v)))
  7113. #define HW_OCOTP_HDCP_KEY68_CLR(v) (HW_OCOTP_HDCP_KEY68_WR(HW_OCOTP_HDCP_KEY68_RD() & ~(v)))
  7114. #define HW_OCOTP_HDCP_KEY68_TOG(v) (HW_OCOTP_HDCP_KEY68_WR(HW_OCOTP_HDCP_KEY68_RD() ^ (v)))
  7115. #endif
  7116. /*
  7117. * constants & macros for individual OCOTP_HDCP_KEY68 bitfields
  7118. */
  7119. /* --- Register HW_OCOTP_HDCP_KEY68, field BITS[31:0] (RW)
  7120. *
  7121. * Reflects value of OTP Bank 14, word 4 (ADDR = 0x74).
  7122. */
  7123. #define BP_OCOTP_HDCP_KEY68_BITS (0) //!< Bit position for OCOTP_HDCP_KEY68_BITS.
  7124. #define BM_OCOTP_HDCP_KEY68_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY68_BITS.
  7125. //! @brief Get value of OCOTP_HDCP_KEY68_BITS from a register value.
  7126. #define BG_OCOTP_HDCP_KEY68_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY68_BITS) >> BP_OCOTP_HDCP_KEY68_BITS)
  7127. //! @brief Format value for bitfield OCOTP_HDCP_KEY68_BITS.
  7128. #define BF_OCOTP_HDCP_KEY68_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY68_BITS) & BM_OCOTP_HDCP_KEY68_BITS)
  7129. #ifndef __LANGUAGE_ASM__
  7130. //! @brief Set the BITS field to a new value.
  7131. #define BW_OCOTP_HDCP_KEY68_BITS(v) (HW_OCOTP_HDCP_KEY68_WR((HW_OCOTP_HDCP_KEY68_RD() & ~BM_OCOTP_HDCP_KEY68_BITS) | BF_OCOTP_HDCP_KEY68_BITS(v)))
  7132. #endif
  7133. //-------------------------------------------------------------------------------------------
  7134. // HW_OCOTP_HDCP_KEY69 - Value of OTP Bank14 Word5 (HW Capabilities)
  7135. //-------------------------------------------------------------------------------------------
  7136. #ifndef __LANGUAGE_ASM__
  7137. /*!
  7138. * @brief HW_OCOTP_HDCP_KEY69 - Value of OTP Bank14 Word5 (HW Capabilities) (RW)
  7139. *
  7140. * Reset value: 0x00000000
  7141. *
  7142. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  7143. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 14, word 5 (ADDR =
  7144. * 0x75). EXAMPLE Empty Example.
  7145. */
  7146. typedef union _hw_ocotp_hdcp_key69
  7147. {
  7148. reg32_t U;
  7149. struct _hw_ocotp_hdcp_key69_bitfields
  7150. {
  7151. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 14, word 5 (ADDR = 0x75).
  7152. } B;
  7153. } hw_ocotp_hdcp_key69_t;
  7154. #endif
  7155. /*
  7156. * constants & macros for entire OCOTP_HDCP_KEY69 register
  7157. */
  7158. #define HW_OCOTP_HDCP_KEY69_ADDR (REGS_OCOTP_BASE + 0xc50)
  7159. #ifndef __LANGUAGE_ASM__
  7160. #define HW_OCOTP_HDCP_KEY69 (*(volatile hw_ocotp_hdcp_key69_t *) HW_OCOTP_HDCP_KEY69_ADDR)
  7161. #define HW_OCOTP_HDCP_KEY69_RD() (HW_OCOTP_HDCP_KEY69.U)
  7162. #define HW_OCOTP_HDCP_KEY69_WR(v) (HW_OCOTP_HDCP_KEY69.U = (v))
  7163. #define HW_OCOTP_HDCP_KEY69_SET(v) (HW_OCOTP_HDCP_KEY69_WR(HW_OCOTP_HDCP_KEY69_RD() | (v)))
  7164. #define HW_OCOTP_HDCP_KEY69_CLR(v) (HW_OCOTP_HDCP_KEY69_WR(HW_OCOTP_HDCP_KEY69_RD() & ~(v)))
  7165. #define HW_OCOTP_HDCP_KEY69_TOG(v) (HW_OCOTP_HDCP_KEY69_WR(HW_OCOTP_HDCP_KEY69_RD() ^ (v)))
  7166. #endif
  7167. /*
  7168. * constants & macros for individual OCOTP_HDCP_KEY69 bitfields
  7169. */
  7170. /* --- Register HW_OCOTP_HDCP_KEY69, field BITS[31:0] (RW)
  7171. *
  7172. * Reflects value of OTP Bank 14, word 5 (ADDR = 0x75).
  7173. */
  7174. #define BP_OCOTP_HDCP_KEY69_BITS (0) //!< Bit position for OCOTP_HDCP_KEY69_BITS.
  7175. #define BM_OCOTP_HDCP_KEY69_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY69_BITS.
  7176. //! @brief Get value of OCOTP_HDCP_KEY69_BITS from a register value.
  7177. #define BG_OCOTP_HDCP_KEY69_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY69_BITS) >> BP_OCOTP_HDCP_KEY69_BITS)
  7178. //! @brief Format value for bitfield OCOTP_HDCP_KEY69_BITS.
  7179. #define BF_OCOTP_HDCP_KEY69_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY69_BITS) & BM_OCOTP_HDCP_KEY69_BITS)
  7180. #ifndef __LANGUAGE_ASM__
  7181. //! @brief Set the BITS field to a new value.
  7182. #define BW_OCOTP_HDCP_KEY69_BITS(v) (HW_OCOTP_HDCP_KEY69_WR((HW_OCOTP_HDCP_KEY69_RD() & ~BM_OCOTP_HDCP_KEY69_BITS) | BF_OCOTP_HDCP_KEY69_BITS(v)))
  7183. #endif
  7184. //-------------------------------------------------------------------------------------------
  7185. // HW_OCOTP_HDCP_KEY70 - Value of OTP Bank14 Word6 (HW Capabilities)
  7186. //-------------------------------------------------------------------------------------------
  7187. #ifndef __LANGUAGE_ASM__
  7188. /*!
  7189. * @brief HW_OCOTP_HDCP_KEY70 - Value of OTP Bank14 Word6 (HW Capabilities) (RW)
  7190. *
  7191. * Reset value: 0x00000000
  7192. *
  7193. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  7194. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 14, word 6 (ADDR =
  7195. * 0x76). EXAMPLE Empty Example.
  7196. */
  7197. typedef union _hw_ocotp_hdcp_key70
  7198. {
  7199. reg32_t U;
  7200. struct _hw_ocotp_hdcp_key70_bitfields
  7201. {
  7202. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 14, word 6 (ADDR = 0x76).
  7203. } B;
  7204. } hw_ocotp_hdcp_key70_t;
  7205. #endif
  7206. /*
  7207. * constants & macros for entire OCOTP_HDCP_KEY70 register
  7208. */
  7209. #define HW_OCOTP_HDCP_KEY70_ADDR (REGS_OCOTP_BASE + 0xc60)
  7210. #ifndef __LANGUAGE_ASM__
  7211. #define HW_OCOTP_HDCP_KEY70 (*(volatile hw_ocotp_hdcp_key70_t *) HW_OCOTP_HDCP_KEY70_ADDR)
  7212. #define HW_OCOTP_HDCP_KEY70_RD() (HW_OCOTP_HDCP_KEY70.U)
  7213. #define HW_OCOTP_HDCP_KEY70_WR(v) (HW_OCOTP_HDCP_KEY70.U = (v))
  7214. #define HW_OCOTP_HDCP_KEY70_SET(v) (HW_OCOTP_HDCP_KEY70_WR(HW_OCOTP_HDCP_KEY70_RD() | (v)))
  7215. #define HW_OCOTP_HDCP_KEY70_CLR(v) (HW_OCOTP_HDCP_KEY70_WR(HW_OCOTP_HDCP_KEY70_RD() & ~(v)))
  7216. #define HW_OCOTP_HDCP_KEY70_TOG(v) (HW_OCOTP_HDCP_KEY70_WR(HW_OCOTP_HDCP_KEY70_RD() ^ (v)))
  7217. #endif
  7218. /*
  7219. * constants & macros for individual OCOTP_HDCP_KEY70 bitfields
  7220. */
  7221. /* --- Register HW_OCOTP_HDCP_KEY70, field BITS[31:0] (RW)
  7222. *
  7223. * Reflects value of OTP Bank 14, word 6 (ADDR = 0x76).
  7224. */
  7225. #define BP_OCOTP_HDCP_KEY70_BITS (0) //!< Bit position for OCOTP_HDCP_KEY70_BITS.
  7226. #define BM_OCOTP_HDCP_KEY70_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY70_BITS.
  7227. //! @brief Get value of OCOTP_HDCP_KEY70_BITS from a register value.
  7228. #define BG_OCOTP_HDCP_KEY70_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY70_BITS) >> BP_OCOTP_HDCP_KEY70_BITS)
  7229. //! @brief Format value for bitfield OCOTP_HDCP_KEY70_BITS.
  7230. #define BF_OCOTP_HDCP_KEY70_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY70_BITS) & BM_OCOTP_HDCP_KEY70_BITS)
  7231. #ifndef __LANGUAGE_ASM__
  7232. //! @brief Set the BITS field to a new value.
  7233. #define BW_OCOTP_HDCP_KEY70_BITS(v) (HW_OCOTP_HDCP_KEY70_WR((HW_OCOTP_HDCP_KEY70_RD() & ~BM_OCOTP_HDCP_KEY70_BITS) | BF_OCOTP_HDCP_KEY70_BITS(v)))
  7234. #endif
  7235. //-------------------------------------------------------------------------------------------
  7236. // HW_OCOTP_HDCP_KEY71 - Value of OTP Bank14 Word7 (HW Capabilities)
  7237. //-------------------------------------------------------------------------------------------
  7238. #ifndef __LANGUAGE_ASM__
  7239. /*!
  7240. * @brief HW_OCOTP_HDCP_KEY71 - Value of OTP Bank14 Word7 (HW Capabilities) (RW)
  7241. *
  7242. * Reset value: 0x00000000
  7243. *
  7244. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  7245. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 14, word 7 (ADDR =
  7246. * 0x77). EXAMPLE Empty Example.
  7247. */
  7248. typedef union _hw_ocotp_hdcp_key71
  7249. {
  7250. reg32_t U;
  7251. struct _hw_ocotp_hdcp_key71_bitfields
  7252. {
  7253. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 14, word 7 (ADDR = 0x77).
  7254. } B;
  7255. } hw_ocotp_hdcp_key71_t;
  7256. #endif
  7257. /*
  7258. * constants & macros for entire OCOTP_HDCP_KEY71 register
  7259. */
  7260. #define HW_OCOTP_HDCP_KEY71_ADDR (REGS_OCOTP_BASE + 0xc70)
  7261. #ifndef __LANGUAGE_ASM__
  7262. #define HW_OCOTP_HDCP_KEY71 (*(volatile hw_ocotp_hdcp_key71_t *) HW_OCOTP_HDCP_KEY71_ADDR)
  7263. #define HW_OCOTP_HDCP_KEY71_RD() (HW_OCOTP_HDCP_KEY71.U)
  7264. #define HW_OCOTP_HDCP_KEY71_WR(v) (HW_OCOTP_HDCP_KEY71.U = (v))
  7265. #define HW_OCOTP_HDCP_KEY71_SET(v) (HW_OCOTP_HDCP_KEY71_WR(HW_OCOTP_HDCP_KEY71_RD() | (v)))
  7266. #define HW_OCOTP_HDCP_KEY71_CLR(v) (HW_OCOTP_HDCP_KEY71_WR(HW_OCOTP_HDCP_KEY71_RD() & ~(v)))
  7267. #define HW_OCOTP_HDCP_KEY71_TOG(v) (HW_OCOTP_HDCP_KEY71_WR(HW_OCOTP_HDCP_KEY71_RD() ^ (v)))
  7268. #endif
  7269. /*
  7270. * constants & macros for individual OCOTP_HDCP_KEY71 bitfields
  7271. */
  7272. /* --- Register HW_OCOTP_HDCP_KEY71, field BITS[31:0] (RW)
  7273. *
  7274. * Reflects value of OTP Bank 14, word 7 (ADDR = 0x77).
  7275. */
  7276. #define BP_OCOTP_HDCP_KEY71_BITS (0) //!< Bit position for OCOTP_HDCP_KEY71_BITS.
  7277. #define BM_OCOTP_HDCP_KEY71_BITS (0xffffffff) //!< Bit mask for OCOTP_HDCP_KEY71_BITS.
  7278. //! @brief Get value of OCOTP_HDCP_KEY71_BITS from a register value.
  7279. #define BG_OCOTP_HDCP_KEY71_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_HDCP_KEY71_BITS) >> BP_OCOTP_HDCP_KEY71_BITS)
  7280. //! @brief Format value for bitfield OCOTP_HDCP_KEY71_BITS.
  7281. #define BF_OCOTP_HDCP_KEY71_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_HDCP_KEY71_BITS) & BM_OCOTP_HDCP_KEY71_BITS)
  7282. #ifndef __LANGUAGE_ASM__
  7283. //! @brief Set the BITS field to a new value.
  7284. #define BW_OCOTP_HDCP_KEY71_BITS(v) (HW_OCOTP_HDCP_KEY71_WR((HW_OCOTP_HDCP_KEY71_RD() & ~BM_OCOTP_HDCP_KEY71_BITS) | BF_OCOTP_HDCP_KEY71_BITS(v)))
  7285. #endif
  7286. //-------------------------------------------------------------------------------------------
  7287. // HW_OCOTP_CRC0 - Value of OTP Bank15 Word0 (HW Capabilities)
  7288. //-------------------------------------------------------------------------------------------
  7289. #ifndef __LANGUAGE_ASM__
  7290. /*!
  7291. * @brief HW_OCOTP_CRC0 - Value of OTP Bank15 Word0 (HW Capabilities) (RW)
  7292. *
  7293. * Reset value: 0x00000000
  7294. *
  7295. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  7296. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 15, word 0 (ADDR =
  7297. * 0x78). EXAMPLE Empty Example.
  7298. */
  7299. typedef union _hw_ocotp_crc0
  7300. {
  7301. reg32_t U;
  7302. struct _hw_ocotp_crc0_bitfields
  7303. {
  7304. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 15, word 0 (ADDR = 0x78).
  7305. } B;
  7306. } hw_ocotp_crc0_t;
  7307. #endif
  7308. /*
  7309. * constants & macros for entire OCOTP_CRC0 register
  7310. */
  7311. #define HW_OCOTP_CRC0_ADDR (REGS_OCOTP_BASE + 0xd00)
  7312. #ifndef __LANGUAGE_ASM__
  7313. #define HW_OCOTP_CRC0 (*(volatile hw_ocotp_crc0_t *) HW_OCOTP_CRC0_ADDR)
  7314. #define HW_OCOTP_CRC0_RD() (HW_OCOTP_CRC0.U)
  7315. #define HW_OCOTP_CRC0_WR(v) (HW_OCOTP_CRC0.U = (v))
  7316. #define HW_OCOTP_CRC0_SET(v) (HW_OCOTP_CRC0_WR(HW_OCOTP_CRC0_RD() | (v)))
  7317. #define HW_OCOTP_CRC0_CLR(v) (HW_OCOTP_CRC0_WR(HW_OCOTP_CRC0_RD() & ~(v)))
  7318. #define HW_OCOTP_CRC0_TOG(v) (HW_OCOTP_CRC0_WR(HW_OCOTP_CRC0_RD() ^ (v)))
  7319. #endif
  7320. /*
  7321. * constants & macros for individual OCOTP_CRC0 bitfields
  7322. */
  7323. /* --- Register HW_OCOTP_CRC0, field BITS[31:0] (RW)
  7324. *
  7325. * Reflects value of OTP Bank 15, word 0 (ADDR = 0x78).
  7326. */
  7327. #define BP_OCOTP_CRC0_BITS (0) //!< Bit position for OCOTP_CRC0_BITS.
  7328. #define BM_OCOTP_CRC0_BITS (0xffffffff) //!< Bit mask for OCOTP_CRC0_BITS.
  7329. //! @brief Get value of OCOTP_CRC0_BITS from a register value.
  7330. #define BG_OCOTP_CRC0_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_CRC0_BITS) >> BP_OCOTP_CRC0_BITS)
  7331. //! @brief Format value for bitfield OCOTP_CRC0_BITS.
  7332. #define BF_OCOTP_CRC0_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_CRC0_BITS) & BM_OCOTP_CRC0_BITS)
  7333. #ifndef __LANGUAGE_ASM__
  7334. //! @brief Set the BITS field to a new value.
  7335. #define BW_OCOTP_CRC0_BITS(v) (HW_OCOTP_CRC0_WR((HW_OCOTP_CRC0_RD() & ~BM_OCOTP_CRC0_BITS) | BF_OCOTP_CRC0_BITS(v)))
  7336. #endif
  7337. //-------------------------------------------------------------------------------------------
  7338. // HW_OCOTP_CRC1 - Value of OTP Bank15 Word1 (HW Capabilities)
  7339. //-------------------------------------------------------------------------------------------
  7340. #ifndef __LANGUAGE_ASM__
  7341. /*!
  7342. * @brief HW_OCOTP_CRC1 - Value of OTP Bank15 Word1 (HW Capabilities) (RW)
  7343. *
  7344. * Reset value: 0x00000000
  7345. *
  7346. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  7347. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 15, word 1 (ADDR =
  7348. * 0x79). EXAMPLE Empty Example.
  7349. */
  7350. typedef union _hw_ocotp_crc1
  7351. {
  7352. reg32_t U;
  7353. struct _hw_ocotp_crc1_bitfields
  7354. {
  7355. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 15, word 1 (ADDR = 0x79).
  7356. } B;
  7357. } hw_ocotp_crc1_t;
  7358. #endif
  7359. /*
  7360. * constants & macros for entire OCOTP_CRC1 register
  7361. */
  7362. #define HW_OCOTP_CRC1_ADDR (REGS_OCOTP_BASE + 0xd10)
  7363. #ifndef __LANGUAGE_ASM__
  7364. #define HW_OCOTP_CRC1 (*(volatile hw_ocotp_crc1_t *) HW_OCOTP_CRC1_ADDR)
  7365. #define HW_OCOTP_CRC1_RD() (HW_OCOTP_CRC1.U)
  7366. #define HW_OCOTP_CRC1_WR(v) (HW_OCOTP_CRC1.U = (v))
  7367. #define HW_OCOTP_CRC1_SET(v) (HW_OCOTP_CRC1_WR(HW_OCOTP_CRC1_RD() | (v)))
  7368. #define HW_OCOTP_CRC1_CLR(v) (HW_OCOTP_CRC1_WR(HW_OCOTP_CRC1_RD() & ~(v)))
  7369. #define HW_OCOTP_CRC1_TOG(v) (HW_OCOTP_CRC1_WR(HW_OCOTP_CRC1_RD() ^ (v)))
  7370. #endif
  7371. /*
  7372. * constants & macros for individual OCOTP_CRC1 bitfields
  7373. */
  7374. /* --- Register HW_OCOTP_CRC1, field BITS[31:0] (RW)
  7375. *
  7376. * Reflects value of OTP Bank 15, word 1 (ADDR = 0x79).
  7377. */
  7378. #define BP_OCOTP_CRC1_BITS (0) //!< Bit position for OCOTP_CRC1_BITS.
  7379. #define BM_OCOTP_CRC1_BITS (0xffffffff) //!< Bit mask for OCOTP_CRC1_BITS.
  7380. //! @brief Get value of OCOTP_CRC1_BITS from a register value.
  7381. #define BG_OCOTP_CRC1_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_CRC1_BITS) >> BP_OCOTP_CRC1_BITS)
  7382. //! @brief Format value for bitfield OCOTP_CRC1_BITS.
  7383. #define BF_OCOTP_CRC1_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_CRC1_BITS) & BM_OCOTP_CRC1_BITS)
  7384. #ifndef __LANGUAGE_ASM__
  7385. //! @brief Set the BITS field to a new value.
  7386. #define BW_OCOTP_CRC1_BITS(v) (HW_OCOTP_CRC1_WR((HW_OCOTP_CRC1_RD() & ~BM_OCOTP_CRC1_BITS) | BF_OCOTP_CRC1_BITS(v)))
  7387. #endif
  7388. //-------------------------------------------------------------------------------------------
  7389. // HW_OCOTP_CRC2 - Value of OTP Bank15 Word2 (HW Capabilities)
  7390. //-------------------------------------------------------------------------------------------
  7391. #ifndef __LANGUAGE_ASM__
  7392. /*!
  7393. * @brief HW_OCOTP_CRC2 - Value of OTP Bank15 Word2 (HW Capabilities) (RW)
  7394. *
  7395. * Reset value: 0x00000000
  7396. *
  7397. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  7398. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 15, word 2 (ADDR =
  7399. * 0x7A). EXAMPLE Empty Example.
  7400. */
  7401. typedef union _hw_ocotp_crc2
  7402. {
  7403. reg32_t U;
  7404. struct _hw_ocotp_crc2_bitfields
  7405. {
  7406. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 15, word 2 (ADDR = 0x7A).
  7407. } B;
  7408. } hw_ocotp_crc2_t;
  7409. #endif
  7410. /*
  7411. * constants & macros for entire OCOTP_CRC2 register
  7412. */
  7413. #define HW_OCOTP_CRC2_ADDR (REGS_OCOTP_BASE + 0xd20)
  7414. #ifndef __LANGUAGE_ASM__
  7415. #define HW_OCOTP_CRC2 (*(volatile hw_ocotp_crc2_t *) HW_OCOTP_CRC2_ADDR)
  7416. #define HW_OCOTP_CRC2_RD() (HW_OCOTP_CRC2.U)
  7417. #define HW_OCOTP_CRC2_WR(v) (HW_OCOTP_CRC2.U = (v))
  7418. #define HW_OCOTP_CRC2_SET(v) (HW_OCOTP_CRC2_WR(HW_OCOTP_CRC2_RD() | (v)))
  7419. #define HW_OCOTP_CRC2_CLR(v) (HW_OCOTP_CRC2_WR(HW_OCOTP_CRC2_RD() & ~(v)))
  7420. #define HW_OCOTP_CRC2_TOG(v) (HW_OCOTP_CRC2_WR(HW_OCOTP_CRC2_RD() ^ (v)))
  7421. #endif
  7422. /*
  7423. * constants & macros for individual OCOTP_CRC2 bitfields
  7424. */
  7425. /* --- Register HW_OCOTP_CRC2, field BITS[31:0] (RW)
  7426. *
  7427. * Reflects value of OTP Bank 15, word 2 (ADDR = 0x7A).
  7428. */
  7429. #define BP_OCOTP_CRC2_BITS (0) //!< Bit position for OCOTP_CRC2_BITS.
  7430. #define BM_OCOTP_CRC2_BITS (0xffffffff) //!< Bit mask for OCOTP_CRC2_BITS.
  7431. //! @brief Get value of OCOTP_CRC2_BITS from a register value.
  7432. #define BG_OCOTP_CRC2_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_CRC2_BITS) >> BP_OCOTP_CRC2_BITS)
  7433. //! @brief Format value for bitfield OCOTP_CRC2_BITS.
  7434. #define BF_OCOTP_CRC2_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_CRC2_BITS) & BM_OCOTP_CRC2_BITS)
  7435. #ifndef __LANGUAGE_ASM__
  7436. //! @brief Set the BITS field to a new value.
  7437. #define BW_OCOTP_CRC2_BITS(v) (HW_OCOTP_CRC2_WR((HW_OCOTP_CRC2_RD() & ~BM_OCOTP_CRC2_BITS) | BF_OCOTP_CRC2_BITS(v)))
  7438. #endif
  7439. //-------------------------------------------------------------------------------------------
  7440. // HW_OCOTP_CRC3 - Value of OTP Bank15 Word3 (HW Capabilities)
  7441. //-------------------------------------------------------------------------------------------
  7442. #ifndef __LANGUAGE_ASM__
  7443. /*!
  7444. * @brief HW_OCOTP_CRC3 - Value of OTP Bank15 Word3 (HW Capabilities) (RW)
  7445. *
  7446. * Reset value: 0x00000000
  7447. *
  7448. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  7449. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 15, word 3 (ADDR =
  7450. * 0x7B). EXAMPLE Empty Example.
  7451. */
  7452. typedef union _hw_ocotp_crc3
  7453. {
  7454. reg32_t U;
  7455. struct _hw_ocotp_crc3_bitfields
  7456. {
  7457. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 15, word 3 (ADDR = 0x7B).
  7458. } B;
  7459. } hw_ocotp_crc3_t;
  7460. #endif
  7461. /*
  7462. * constants & macros for entire OCOTP_CRC3 register
  7463. */
  7464. #define HW_OCOTP_CRC3_ADDR (REGS_OCOTP_BASE + 0xd30)
  7465. #ifndef __LANGUAGE_ASM__
  7466. #define HW_OCOTP_CRC3 (*(volatile hw_ocotp_crc3_t *) HW_OCOTP_CRC3_ADDR)
  7467. #define HW_OCOTP_CRC3_RD() (HW_OCOTP_CRC3.U)
  7468. #define HW_OCOTP_CRC3_WR(v) (HW_OCOTP_CRC3.U = (v))
  7469. #define HW_OCOTP_CRC3_SET(v) (HW_OCOTP_CRC3_WR(HW_OCOTP_CRC3_RD() | (v)))
  7470. #define HW_OCOTP_CRC3_CLR(v) (HW_OCOTP_CRC3_WR(HW_OCOTP_CRC3_RD() & ~(v)))
  7471. #define HW_OCOTP_CRC3_TOG(v) (HW_OCOTP_CRC3_WR(HW_OCOTP_CRC3_RD() ^ (v)))
  7472. #endif
  7473. /*
  7474. * constants & macros for individual OCOTP_CRC3 bitfields
  7475. */
  7476. /* --- Register HW_OCOTP_CRC3, field BITS[31:0] (RW)
  7477. *
  7478. * Reflects value of OTP Bank 15, word 3 (ADDR = 0x7B).
  7479. */
  7480. #define BP_OCOTP_CRC3_BITS (0) //!< Bit position for OCOTP_CRC3_BITS.
  7481. #define BM_OCOTP_CRC3_BITS (0xffffffff) //!< Bit mask for OCOTP_CRC3_BITS.
  7482. //! @brief Get value of OCOTP_CRC3_BITS from a register value.
  7483. #define BG_OCOTP_CRC3_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_CRC3_BITS) >> BP_OCOTP_CRC3_BITS)
  7484. //! @brief Format value for bitfield OCOTP_CRC3_BITS.
  7485. #define BF_OCOTP_CRC3_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_CRC3_BITS) & BM_OCOTP_CRC3_BITS)
  7486. #ifndef __LANGUAGE_ASM__
  7487. //! @brief Set the BITS field to a new value.
  7488. #define BW_OCOTP_CRC3_BITS(v) (HW_OCOTP_CRC3_WR((HW_OCOTP_CRC3_RD() & ~BM_OCOTP_CRC3_BITS) | BF_OCOTP_CRC3_BITS(v)))
  7489. #endif
  7490. //-------------------------------------------------------------------------------------------
  7491. // HW_OCOTP_CRC4 - Value of OTP Bank15 Word4 (HW Capabilities)
  7492. //-------------------------------------------------------------------------------------------
  7493. #ifndef __LANGUAGE_ASM__
  7494. /*!
  7495. * @brief HW_OCOTP_CRC4 - Value of OTP Bank15 Word4 (HW Capabilities) (RW)
  7496. *
  7497. * Reset value: 0x00000000
  7498. *
  7499. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  7500. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 15, word 4 (ADDR =
  7501. * 0x7C). EXAMPLE Empty Example.
  7502. */
  7503. typedef union _hw_ocotp_crc4
  7504. {
  7505. reg32_t U;
  7506. struct _hw_ocotp_crc4_bitfields
  7507. {
  7508. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 15, word 4 (ADDR = 0x7C).
  7509. } B;
  7510. } hw_ocotp_crc4_t;
  7511. #endif
  7512. /*
  7513. * constants & macros for entire OCOTP_CRC4 register
  7514. */
  7515. #define HW_OCOTP_CRC4_ADDR (REGS_OCOTP_BASE + 0xd40)
  7516. #ifndef __LANGUAGE_ASM__
  7517. #define HW_OCOTP_CRC4 (*(volatile hw_ocotp_crc4_t *) HW_OCOTP_CRC4_ADDR)
  7518. #define HW_OCOTP_CRC4_RD() (HW_OCOTP_CRC4.U)
  7519. #define HW_OCOTP_CRC4_WR(v) (HW_OCOTP_CRC4.U = (v))
  7520. #define HW_OCOTP_CRC4_SET(v) (HW_OCOTP_CRC4_WR(HW_OCOTP_CRC4_RD() | (v)))
  7521. #define HW_OCOTP_CRC4_CLR(v) (HW_OCOTP_CRC4_WR(HW_OCOTP_CRC4_RD() & ~(v)))
  7522. #define HW_OCOTP_CRC4_TOG(v) (HW_OCOTP_CRC4_WR(HW_OCOTP_CRC4_RD() ^ (v)))
  7523. #endif
  7524. /*
  7525. * constants & macros for individual OCOTP_CRC4 bitfields
  7526. */
  7527. /* --- Register HW_OCOTP_CRC4, field BITS[31:0] (RW)
  7528. *
  7529. * Reflects value of OTP Bank 15, word 4 (ADDR = 0x7C).
  7530. */
  7531. #define BP_OCOTP_CRC4_BITS (0) //!< Bit position for OCOTP_CRC4_BITS.
  7532. #define BM_OCOTP_CRC4_BITS (0xffffffff) //!< Bit mask for OCOTP_CRC4_BITS.
  7533. //! @brief Get value of OCOTP_CRC4_BITS from a register value.
  7534. #define BG_OCOTP_CRC4_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_CRC4_BITS) >> BP_OCOTP_CRC4_BITS)
  7535. //! @brief Format value for bitfield OCOTP_CRC4_BITS.
  7536. #define BF_OCOTP_CRC4_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_CRC4_BITS) & BM_OCOTP_CRC4_BITS)
  7537. #ifndef __LANGUAGE_ASM__
  7538. //! @brief Set the BITS field to a new value.
  7539. #define BW_OCOTP_CRC4_BITS(v) (HW_OCOTP_CRC4_WR((HW_OCOTP_CRC4_RD() & ~BM_OCOTP_CRC4_BITS) | BF_OCOTP_CRC4_BITS(v)))
  7540. #endif
  7541. //-------------------------------------------------------------------------------------------
  7542. // HW_OCOTP_CRC5 - Value of OTP Bank15 Word5 (HW Capabilities)
  7543. //-------------------------------------------------------------------------------------------
  7544. #ifndef __LANGUAGE_ASM__
  7545. /*!
  7546. * @brief HW_OCOTP_CRC5 - Value of OTP Bank15 Word5 (HW Capabilities) (RW)
  7547. *
  7548. * Reset value: 0x00000000
  7549. *
  7550. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  7551. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 15, word 5 (ADDR =
  7552. * 0x7D). EXAMPLE Empty Example.
  7553. */
  7554. typedef union _hw_ocotp_crc5
  7555. {
  7556. reg32_t U;
  7557. struct _hw_ocotp_crc5_bitfields
  7558. {
  7559. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 15, word 5 (ADDR = 0x7D).
  7560. } B;
  7561. } hw_ocotp_crc5_t;
  7562. #endif
  7563. /*
  7564. * constants & macros for entire OCOTP_CRC5 register
  7565. */
  7566. #define HW_OCOTP_CRC5_ADDR (REGS_OCOTP_BASE + 0xd50)
  7567. #ifndef __LANGUAGE_ASM__
  7568. #define HW_OCOTP_CRC5 (*(volatile hw_ocotp_crc5_t *) HW_OCOTP_CRC5_ADDR)
  7569. #define HW_OCOTP_CRC5_RD() (HW_OCOTP_CRC5.U)
  7570. #define HW_OCOTP_CRC5_WR(v) (HW_OCOTP_CRC5.U = (v))
  7571. #define HW_OCOTP_CRC5_SET(v) (HW_OCOTP_CRC5_WR(HW_OCOTP_CRC5_RD() | (v)))
  7572. #define HW_OCOTP_CRC5_CLR(v) (HW_OCOTP_CRC5_WR(HW_OCOTP_CRC5_RD() & ~(v)))
  7573. #define HW_OCOTP_CRC5_TOG(v) (HW_OCOTP_CRC5_WR(HW_OCOTP_CRC5_RD() ^ (v)))
  7574. #endif
  7575. /*
  7576. * constants & macros for individual OCOTP_CRC5 bitfields
  7577. */
  7578. /* --- Register HW_OCOTP_CRC5, field BITS[31:0] (RW)
  7579. *
  7580. * Reflects value of OTP Bank 15, word 5 (ADDR = 0x7D).
  7581. */
  7582. #define BP_OCOTP_CRC5_BITS (0) //!< Bit position for OCOTP_CRC5_BITS.
  7583. #define BM_OCOTP_CRC5_BITS (0xffffffff) //!< Bit mask for OCOTP_CRC5_BITS.
  7584. //! @brief Get value of OCOTP_CRC5_BITS from a register value.
  7585. #define BG_OCOTP_CRC5_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_CRC5_BITS) >> BP_OCOTP_CRC5_BITS)
  7586. //! @brief Format value for bitfield OCOTP_CRC5_BITS.
  7587. #define BF_OCOTP_CRC5_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_CRC5_BITS) & BM_OCOTP_CRC5_BITS)
  7588. #ifndef __LANGUAGE_ASM__
  7589. //! @brief Set the BITS field to a new value.
  7590. #define BW_OCOTP_CRC5_BITS(v) (HW_OCOTP_CRC5_WR((HW_OCOTP_CRC5_RD() & ~BM_OCOTP_CRC5_BITS) | BF_OCOTP_CRC5_BITS(v)))
  7591. #endif
  7592. //-------------------------------------------------------------------------------------------
  7593. // HW_OCOTP_CRC6 - Value of OTP Bank15 Word6 (HW Capabilities)
  7594. //-------------------------------------------------------------------------------------------
  7595. #ifndef __LANGUAGE_ASM__
  7596. /*!
  7597. * @brief HW_OCOTP_CRC6 - Value of OTP Bank15 Word6 (HW Capabilities) (RW)
  7598. *
  7599. * Reset value: 0x00000000
  7600. *
  7601. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  7602. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 15, word 6 (ADDR =
  7603. * 0x7E). EXAMPLE Empty Example.
  7604. */
  7605. typedef union _hw_ocotp_crc6
  7606. {
  7607. reg32_t U;
  7608. struct _hw_ocotp_crc6_bitfields
  7609. {
  7610. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 15, word 6 (ADDR = 0x7E).
  7611. } B;
  7612. } hw_ocotp_crc6_t;
  7613. #endif
  7614. /*
  7615. * constants & macros for entire OCOTP_CRC6 register
  7616. */
  7617. #define HW_OCOTP_CRC6_ADDR (REGS_OCOTP_BASE + 0xd60)
  7618. #ifndef __LANGUAGE_ASM__
  7619. #define HW_OCOTP_CRC6 (*(volatile hw_ocotp_crc6_t *) HW_OCOTP_CRC6_ADDR)
  7620. #define HW_OCOTP_CRC6_RD() (HW_OCOTP_CRC6.U)
  7621. #define HW_OCOTP_CRC6_WR(v) (HW_OCOTP_CRC6.U = (v))
  7622. #define HW_OCOTP_CRC6_SET(v) (HW_OCOTP_CRC6_WR(HW_OCOTP_CRC6_RD() | (v)))
  7623. #define HW_OCOTP_CRC6_CLR(v) (HW_OCOTP_CRC6_WR(HW_OCOTP_CRC6_RD() & ~(v)))
  7624. #define HW_OCOTP_CRC6_TOG(v) (HW_OCOTP_CRC6_WR(HW_OCOTP_CRC6_RD() ^ (v)))
  7625. #endif
  7626. /*
  7627. * constants & macros for individual OCOTP_CRC6 bitfields
  7628. */
  7629. /* --- Register HW_OCOTP_CRC6, field BITS[31:0] (RW)
  7630. *
  7631. * Reflects value of OTP Bank 15, word 6 (ADDR = 0x7E).
  7632. */
  7633. #define BP_OCOTP_CRC6_BITS (0) //!< Bit position for OCOTP_CRC6_BITS.
  7634. #define BM_OCOTP_CRC6_BITS (0xffffffff) //!< Bit mask for OCOTP_CRC6_BITS.
  7635. //! @brief Get value of OCOTP_CRC6_BITS from a register value.
  7636. #define BG_OCOTP_CRC6_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_CRC6_BITS) >> BP_OCOTP_CRC6_BITS)
  7637. //! @brief Format value for bitfield OCOTP_CRC6_BITS.
  7638. #define BF_OCOTP_CRC6_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_CRC6_BITS) & BM_OCOTP_CRC6_BITS)
  7639. #ifndef __LANGUAGE_ASM__
  7640. //! @brief Set the BITS field to a new value.
  7641. #define BW_OCOTP_CRC6_BITS(v) (HW_OCOTP_CRC6_WR((HW_OCOTP_CRC6_RD() & ~BM_OCOTP_CRC6_BITS) | BF_OCOTP_CRC6_BITS(v)))
  7642. #endif
  7643. //-------------------------------------------------------------------------------------------
  7644. // HW_OCOTP_CRC7 - Value of OTP Bank15 Word5 (HW Capabilities)
  7645. //-------------------------------------------------------------------------------------------
  7646. #ifndef __LANGUAGE_ASM__
  7647. /*!
  7648. * @brief HW_OCOTP_CRC7 - Value of OTP Bank15 Word5 (HW Capabilities) (RW)
  7649. *
  7650. * Reset value: 0x00000000
  7651. *
  7652. * Copied from the OTP automatically after reset. Can be re-loaded by setting
  7653. * HW_OCOTP_CTRL[RELOAD_SHADOWS] Shadowed memory mapped access to OTP Bank 15, word 7 (ADDR =
  7654. * 0x7F). EXAMPLE Empty Example.
  7655. */
  7656. typedef union _hw_ocotp_crc7
  7657. {
  7658. reg32_t U;
  7659. struct _hw_ocotp_crc7_bitfields
  7660. {
  7661. unsigned BITS : 32; //!< [31:0] Reflects value of OTP Bank 15, word 7 (ADDR = 0x7F).
  7662. } B;
  7663. } hw_ocotp_crc7_t;
  7664. #endif
  7665. /*
  7666. * constants & macros for entire OCOTP_CRC7 register
  7667. */
  7668. #define HW_OCOTP_CRC7_ADDR (REGS_OCOTP_BASE + 0xd70)
  7669. #ifndef __LANGUAGE_ASM__
  7670. #define HW_OCOTP_CRC7 (*(volatile hw_ocotp_crc7_t *) HW_OCOTP_CRC7_ADDR)
  7671. #define HW_OCOTP_CRC7_RD() (HW_OCOTP_CRC7.U)
  7672. #define HW_OCOTP_CRC7_WR(v) (HW_OCOTP_CRC7.U = (v))
  7673. #define HW_OCOTP_CRC7_SET(v) (HW_OCOTP_CRC7_WR(HW_OCOTP_CRC7_RD() | (v)))
  7674. #define HW_OCOTP_CRC7_CLR(v) (HW_OCOTP_CRC7_WR(HW_OCOTP_CRC7_RD() & ~(v)))
  7675. #define HW_OCOTP_CRC7_TOG(v) (HW_OCOTP_CRC7_WR(HW_OCOTP_CRC7_RD() ^ (v)))
  7676. #endif
  7677. /*
  7678. * constants & macros for individual OCOTP_CRC7 bitfields
  7679. */
  7680. /* --- Register HW_OCOTP_CRC7, field BITS[31:0] (RW)
  7681. *
  7682. * Reflects value of OTP Bank 15, word 7 (ADDR = 0x7F).
  7683. */
  7684. #define BP_OCOTP_CRC7_BITS (0) //!< Bit position for OCOTP_CRC7_BITS.
  7685. #define BM_OCOTP_CRC7_BITS (0xffffffff) //!< Bit mask for OCOTP_CRC7_BITS.
  7686. //! @brief Get value of OCOTP_CRC7_BITS from a register value.
  7687. #define BG_OCOTP_CRC7_BITS(r) ((__REG_VALUE_TYPE((r), reg32_t) & BM_OCOTP_CRC7_BITS) >> BP_OCOTP_CRC7_BITS)
  7688. //! @brief Format value for bitfield OCOTP_CRC7_BITS.
  7689. #define BF_OCOTP_CRC7_BITS(v) ((__REG_VALUE_TYPE((v), reg32_t) << BP_OCOTP_CRC7_BITS) & BM_OCOTP_CRC7_BITS)
  7690. #ifndef __LANGUAGE_ASM__
  7691. //! @brief Set the BITS field to a new value.
  7692. #define BW_OCOTP_CRC7_BITS(v) (HW_OCOTP_CRC7_WR((HW_OCOTP_CRC7_RD() & ~BM_OCOTP_CRC7_BITS) | BF_OCOTP_CRC7_BITS(v)))
  7693. #endif
  7694. /*!
  7695. * @brief All OCOTP module registers.
  7696. */
  7697. #ifndef __LANGUAGE_ASM__
  7698. #pragma pack(1)
  7699. typedef struct _hw_ocotp
  7700. {
  7701. volatile hw_ocotp_ctrl_t CTRL; //!< OTP Controller Control Register
  7702. volatile reg32_t CTRL_SET; //!< OTP Controller Control Register Set
  7703. volatile reg32_t CTRL_CLR; //!< OTP Controller Control Register Clear
  7704. volatile reg32_t CTRL_TOG; //!< OTP Controller Control Register Toggle
  7705. volatile hw_ocotp_timing_t TIMING; //!< OTP Controller Timing Register
  7706. reg32_t _reserved0[3];
  7707. volatile hw_ocotp_data_t DATA; //!< OTP Controller Write Data Register
  7708. reg32_t _reserved1[3];
  7709. volatile hw_ocotp_read_ctrl_t READ_CTRL; //!< OTP Controller Write Data Register
  7710. reg32_t _reserved2[3];
  7711. volatile hw_ocotp_read_fuse_data_t READ_FUSE_DATA; //!< OTP Controller Read Data Register
  7712. reg32_t _reserved3[3];
  7713. volatile hw_ocotp_sw_sticky_t SW_STICKY; //!< Sticky bit Register
  7714. reg32_t _reserved4[3];
  7715. volatile hw_ocotp_scs_t SCS; //!< Software Controllable Signals Register
  7716. volatile reg32_t SCS_SET; //!< Software Controllable Signals Register Set
  7717. volatile reg32_t SCS_CLR; //!< Software Controllable Signals Register Clear
  7718. volatile reg32_t SCS_TOG; //!< Software Controllable Signals Register Toggle
  7719. volatile hw_ocotp_crc_addr_t CRC_ADDR; //!< OTP Controller CRC test address
  7720. reg32_t _reserved5[3];
  7721. volatile hw_ocotp_crc_value_t CRC_VALUE; //!< OTP Controller CRC Value Register
  7722. reg32_t _reserved6[3];
  7723. volatile hw_ocotp_version_t VERSION; //!< OTP Controller Version Register
  7724. reg32_t _reserved7[219];
  7725. volatile hw_ocotp_lock_t LOCK; //!< Value of OTP Bank0 Word0 (Lock controls)
  7726. reg32_t _reserved8[3];
  7727. volatile hw_ocotp_cfg0_t CFG0; //!< Value of OTP Bank0 Word1 (Configuration and Manufacturing Info.)
  7728. reg32_t _reserved9[3];
  7729. volatile hw_ocotp_cfg1_t CFG1; //!< Value of OTP Bank0 Word2 (Configuration and Manufacturing Info.)
  7730. reg32_t _reserved10[3];
  7731. volatile hw_ocotp_cfg2_t CFG2; //!< Value of OTP Bank0 Word3 (Configuration and Manufacturing Info.)
  7732. reg32_t _reserved11[3];
  7733. volatile hw_ocotp_cfg3_t CFG3; //!< Value of OTP Bank0 Word4 (Configuration and Manufacturing Info.)
  7734. reg32_t _reserved12[3];
  7735. volatile hw_ocotp_cfg4_t CFG4; //!< Value of OTP Bank0 Word5 (Configuration and Manufacturing Info.)
  7736. reg32_t _reserved13[3];
  7737. volatile hw_ocotp_cfg5_t CFG5; //!< Value of OTP Bank0 Word6 (Configuration and Manufacturing Info.)
  7738. reg32_t _reserved14[3];
  7739. volatile hw_ocotp_cfg6_t CFG6; //!< Value of OTP Bank0 Word7 (Configuration and Manufacturing Info.)
  7740. reg32_t _reserved15[3];
  7741. volatile hw_ocotp_mem0_t MEM0; //!< Value of OTP Bank1 Word0 (Memory Related Info.)
  7742. reg32_t _reserved16[3];
  7743. volatile hw_ocotp_mem1_t MEM1; //!< Value of OTP Bank1 Word1 (Memory Related Info.)
  7744. reg32_t _reserved17[3];
  7745. volatile hw_ocotp_mem2_t MEM2; //!< Value of OTP Bank1 Word2 (Memory Related Info.)
  7746. reg32_t _reserved18[3];
  7747. volatile hw_ocotp_mem3_t MEM3; //!< Value of OTP Bank1 Word3 (Memory Related Info.)
  7748. reg32_t _reserved19[3];
  7749. volatile hw_ocotp_mem4_t MEM4; //!< Value of OTP Bank1 Word4 (Memory Related Info.)
  7750. reg32_t _reserved20[3];
  7751. volatile hw_ocotp_ana0_t ANA0; //!< Value of OTP Bank1 Word5 (Memory Related Info.)
  7752. reg32_t _reserved21[3];
  7753. volatile hw_ocotp_ana1_t ANA1; //!< Value of OTP Bank1 Word6 (General Purpose Customer Defined Info.)
  7754. reg32_t _reserved22[3];
  7755. volatile hw_ocotp_ana2_t ANA2; //!< Value of OTP Bank1 Word7 (General Purpose Customer Defined Info.)
  7756. reg32_t _reserved23[3];
  7757. volatile hw_ocotp_otpmk0_t OTPMK0; //!< Shadow Register for OTP Bank2 Word0 (OTPMK and CRYPTO Key)
  7758. reg32_t _reserved24[3];
  7759. volatile hw_ocotp_otpmk1_t OTPMK1; //!< Shadow Register for OTP Bank2 Word1 (OTPMK and CRYPTO Key)
  7760. reg32_t _reserved25[3];
  7761. volatile hw_ocotp_otpmk2_t OTPMK2; //!< Shadow Register for OTP Bank2 Word2 (OTPMK and CRYPTO Key)
  7762. reg32_t _reserved26[3];
  7763. volatile hw_ocotp_otpmk3_t OTPMK3; //!< Shadow Register for OTP Bank2 Word3 (OTPMK and CRYPTO Key)
  7764. reg32_t _reserved27[3];
  7765. volatile hw_ocotp_otpmk4_t OTPMK4; //!< Shadow Register for OTP Bank2 Word4 (OTPMK Key)
  7766. reg32_t _reserved28[3];
  7767. volatile hw_ocotp_otpmk5_t OTPMK5; //!< Shadow Register for OTP Bank2 Word5 (OTPMK Key)
  7768. reg32_t _reserved29[3];
  7769. volatile hw_ocotp_otpmk6_t OTPMK6; //!< Shadow Register for OTP Bank2 Word6 (OTPMK Key)
  7770. reg32_t _reserved30[3];
  7771. volatile hw_ocotp_otpmk7_t OTPMK7; //!< Shadow Register for OTP Bank2 Word7 (OTPMK Key)
  7772. reg32_t _reserved31[3];
  7773. volatile hw_ocotp_srk0_t SRK0; //!< Shadow Register for OTP Bank3 Word0 (SRK Hash)
  7774. reg32_t _reserved32[3];
  7775. volatile hw_ocotp_srk1_t SRK1; //!< Shadow Register for OTP Bank3 Word1 (SRK Hash)
  7776. reg32_t _reserved33[3];
  7777. volatile hw_ocotp_srk2_t SRK2; //!< Shadow Register for OTP Bank3 Word2 (SRK Hash)
  7778. reg32_t _reserved34[3];
  7779. volatile hw_ocotp_srk3_t SRK3; //!< Shadow Register for OTP Bank3 Word3 (SRK Hash)
  7780. reg32_t _reserved35[3];
  7781. volatile hw_ocotp_srk4_t SRK4; //!< Shadow Register for OTP Bank3 Word4 (SRK Hash)
  7782. reg32_t _reserved36[3];
  7783. volatile hw_ocotp_srk5_t SRK5; //!< Shadow Register for OTP Bank3 Word5 (SRK Hash)
  7784. reg32_t _reserved37[3];
  7785. volatile hw_ocotp_srk6_t SRK6; //!< Shadow Register for OTP Bank3 Word6 (SRK Hash)
  7786. reg32_t _reserved38[3];
  7787. volatile hw_ocotp_srk7_t SRK7; //!< Shadow Register for OTP Bank3 Word7 (SRK Hash)
  7788. reg32_t _reserved39[3];
  7789. volatile hw_ocotp_resp0_t RESP0; //!< Value of OTP Bank4 Word0 (Secure JTAG Response Field)
  7790. reg32_t _reserved40[3];
  7791. volatile hw_ocotp_hsjc_resp1_t HSJC_RESP1; //!< Value of OTP Bank4 Word1 (Secure JTAG Response Field)
  7792. reg32_t _reserved41[3];
  7793. volatile hw_ocotp_mac0_t MAC0; //!< Value of OTP Bank4 Word2 (MAC Address)
  7794. reg32_t _reserved42[3];
  7795. volatile hw_ocotp_mac1_t MAC1; //!< Value of OTP Bank4 Word3 (MAC Address)
  7796. reg32_t _reserved43[3];
  7797. volatile hw_ocotp_hdcp_ksv0_t HDCP_KSV0; //!< Value of OTP Bank4 Word4 (HW Capabilities)
  7798. reg32_t _reserved44[3];
  7799. volatile hw_ocotp_hdcp_ksv1_t HDCP_KSV1; //!< Value of OTP Bank4 Word5 (HW Capabilities)
  7800. reg32_t _reserved45[3];
  7801. volatile hw_ocotp_gp1_t GP1; //!< Value of OTP Bank4 Word6 (HW Capabilities)
  7802. reg32_t _reserved46[3];
  7803. volatile hw_ocotp_gp2_t GP2; //!< Value of OTP Bank4 Word7 (HW Capabilities)
  7804. reg32_t _reserved47[3];
  7805. volatile hw_ocotp_dtcp_key0_t DTCP_KEY0; //!< Value of OTP Bank5 Word0 (HW Capabilities)
  7806. reg32_t _reserved48[3];
  7807. volatile hw_ocotp_dtcp_key1_t DTCP_KEY1; //!< Value of OTP Bank5 Word1 (HW Capabilities)
  7808. reg32_t _reserved49[3];
  7809. volatile hw_ocotp_dtcp_key2_t DTCP_KEY2; //!< Value of OTP Bank5 Word2 (HW Capabilities)
  7810. reg32_t _reserved50[3];
  7811. volatile hw_ocotp_dtcp_key3_t DTCP_KEY3; //!< Value of OTP Bank5 Word3 (HW Capabilities)
  7812. reg32_t _reserved51[3];
  7813. volatile hw_ocotp_dtcp_key4_t DTCP_KEY4; //!< Value of OTP Bank5 Word4 (HW Capabilities)
  7814. reg32_t _reserved52[3];
  7815. volatile hw_ocotp_misc_conf_t MISC_CONF; //!< Value of OTP Bank5 Word5 (HW Capabilities)
  7816. reg32_t _reserved53[3];
  7817. volatile hw_ocotp_field_return_t FIELD_RETURN; //!< Value of OTP Bank5 Word6 (HW Capabilities)
  7818. reg32_t _reserved54[3];
  7819. volatile hw_ocotp_srk_revoke_t SRK_REVOKE; //!< Value of OTP Bank5 Word7 (HW Capabilities)
  7820. reg32_t _reserved55[67];
  7821. volatile hw_ocotp_hdcp_key0_t HDCP_KEY0; //!< Value of OTP Bank6 Word0 (HW Capabilities)
  7822. reg32_t _reserved56[3];
  7823. volatile hw_ocotp_hdcp_key1_t HDCP_KEY1; //!< Value of OTP Bank6 Word1 (HW Capabilities)
  7824. reg32_t _reserved57[3];
  7825. volatile hw_ocotp_hdcp_key2_t HDCP_KEY2; //!< Value of OTP Bank6 Word2 (HW Capabilities)
  7826. reg32_t _reserved58[3];
  7827. volatile hw_ocotp_hdcp_key3_t HDCP_KEY3; //!< Value of OTP Bank6 Word3 (HW Capabilities)
  7828. reg32_t _reserved59[3];
  7829. volatile hw_ocotp_hdcp_key4_t HDCP_KEY4; //!< Value of OTP Bank6 Word4 (HW Capabilities)
  7830. reg32_t _reserved60[3];
  7831. volatile hw_ocotp_hdcp_key5_t HDCP_KEY5; //!< Value of OTP Bank6 Word5 (HW Capabilities)
  7832. reg32_t _reserved61[3];
  7833. volatile hw_ocotp_hdcp_key6_t HDCP_KEY6; //!< Value of OTP Bank6 Word6 (HW Capabilities)
  7834. reg32_t _reserved62[3];
  7835. volatile hw_ocotp_hdcp_key7_t HDCP_KEY7; //!< Value of OTP Bank6 Word7 (HW Capabilities)
  7836. reg32_t _reserved63[3];
  7837. volatile hw_ocotp_hdcp_key8_t HDCP_KEY8; //!< Value of OTP Bank7 Word0 (HW Capabilities)
  7838. reg32_t _reserved64[3];
  7839. volatile hw_ocotp_hdcp_key9_t HDCP_KEY9; //!< Value of OTP Bank7 Word1 (HW Capabilities)
  7840. reg32_t _reserved65[3];
  7841. volatile hw_ocotp_hdcp_key10_t HDCP_KEY10; //!< Value of OTP Bank7 Word2 (HW Capabilities)
  7842. reg32_t _reserved66[3];
  7843. volatile hw_ocotp_hdcp_key11_t HDCP_KEY11; //!< Value of OTP Bank7 Word3 (HW Capabilities)
  7844. reg32_t _reserved67[3];
  7845. volatile hw_ocotp_hdcp_key12_t HDCP_KEY12; //!< Value of OTP Bank7 Word4 (HW Capabilities)
  7846. reg32_t _reserved68[3];
  7847. volatile hw_ocotp_hdcp_key13_t HDCP_KEY13; //!< Value of OTP Bank7 Word5 (HW Capabilities)
  7848. reg32_t _reserved69[3];
  7849. volatile hw_ocotp_hdcp_key14_t HDCP_KEY14; //!< Value of OTP Bank7 Word6 (HW Capabilities)
  7850. reg32_t _reserved70[3];
  7851. volatile hw_ocotp_hdcp_key15_t HDCP_KEY15; //!< Value of OTP Bank7 Word7 (HW Capabilities)
  7852. reg32_t _reserved71[3];
  7853. volatile hw_ocotp_hdcp_key16_t HDCP_KEY16; //!< Value of OTP Bank8 Word0 (HW Capabilities)
  7854. reg32_t _reserved72[3];
  7855. volatile hw_ocotp_hdcp_key17_t HDCP_KEY17; //!< Value of OTP Bank8 Word1 (HW Capabilities)
  7856. reg32_t _reserved73[3];
  7857. volatile hw_ocotp_hdcp_key18_t HDCP_KEY18; //!< Value of OTP Bank8 Word2 (HW Capabilities)
  7858. reg32_t _reserved74[3];
  7859. volatile hw_ocotp_hdcp_key19_t HDCP_KEY19; //!< Value of OTP Bank8 Word3 (HW Capabilities)
  7860. reg32_t _reserved75[3];
  7861. volatile hw_ocotp_hdcp_key20_t HDCP_KEY20; //!< Value of OTP Bank8 Word4 (HW Capabilities)
  7862. reg32_t _reserved76[3];
  7863. volatile hw_ocotp_hdcp_key21_t HDCP_KEY21; //!< Value of OTP Bank8 Word5 (HW Capabilities)
  7864. reg32_t _reserved77[3];
  7865. volatile hw_ocotp_hdcp_key22_t HDCP_KEY22; //!< Value of OTP Bank8 Word6 (HW Capabilities)
  7866. reg32_t _reserved78[3];
  7867. volatile hw_ocotp_hdcp_key23_t HDCP_KEY23; //!< Value of OTP Bank8 Word7 (HW Capabilities)
  7868. reg32_t _reserved79[3];
  7869. volatile hw_ocotp_hdcp_key24_t HDCP_KEY24; //!< Value of OTP Bank9 Word0 (HW Capabilities)
  7870. reg32_t _reserved80[3];
  7871. volatile hw_ocotp_hdcp_key25_t HDCP_KEY25; //!< Value of OTP Bank9 Word1 (HW Capabilities)
  7872. reg32_t _reserved81[3];
  7873. volatile hw_ocotp_hdcp_key26_t HDCP_KEY26; //!< Value of OTP Bank9 Word2 (HW Capabilities)
  7874. reg32_t _reserved82[3];
  7875. volatile hw_ocotp_hdcp_key27_t HDCP_KEY27; //!< Value of OTP Bank9 Word3 (HW Capabilities)
  7876. reg32_t _reserved83[3];
  7877. volatile hw_ocotp_hdcp_key28_t HDCP_KEY28; //!< Value of OTP Bank9 Word4 (HW Capabilities)
  7878. reg32_t _reserved84[3];
  7879. volatile hw_ocotp_hdcp_key29_t HDCP_KEY29; //!< Value of OTP Bank9 Word5 (HW Capabilities)
  7880. reg32_t _reserved85[3];
  7881. volatile hw_ocotp_hdcp_key30_t HDCP_KEY30; //!< Value of OTP Bank9 Word6 (HW Capabilities)
  7882. reg32_t _reserved86[3];
  7883. volatile hw_ocotp_hdcp_key31_t HDCP_KEY31; //!< Value of OTP Bank9 Word7 (HW Capabilities)
  7884. reg32_t _reserved87[3];
  7885. volatile hw_ocotp_hdcp_key32_t HDCP_KEY32; //!< Value of OTP Bank10 Word0 (HW Capabilities)
  7886. reg32_t _reserved88[3];
  7887. volatile hw_ocotp_hdcp_key33_t HDCP_KEY33; //!< Value of OTP Bank10 Word1 (HW Capabilities)
  7888. reg32_t _reserved89[3];
  7889. volatile hw_ocotp_hdcp_key34_t HDCP_KEY34; //!< Value of OTP Bank10 Word2 (HW Capabilities)
  7890. reg32_t _reserved90[3];
  7891. volatile hw_ocotp_hdcp_key35_t HDCP_KEY35; //!< Value of OTP Bank10 Word3 (HW Capabilities)
  7892. reg32_t _reserved91[3];
  7893. volatile hw_ocotp_hdcp_key36_t HDCP_KEY36; //!< Value of OTP Bank10 Word4 (HW Capabilities)
  7894. reg32_t _reserved92[3];
  7895. volatile hw_ocotp_hdcp_key37_t HDCP_KEY37; //!< Value of OTP Bank10 Word5 (HW Capabilities)
  7896. reg32_t _reserved93[3];
  7897. volatile hw_ocotp_hdcp_key38_t HDCP_KEY38; //!< Value of OTP Bank10 Word6 (HW Capabilities)
  7898. reg32_t _reserved94[3];
  7899. volatile hw_ocotp_hdcp_key39_t HDCP_KEY39; //!< Value of OTP Bank10 Word7 (HW Capabilities)
  7900. reg32_t _reserved95[3];
  7901. volatile hw_ocotp_hdcp_key40_t HDCP_KEY40; //!< Value of OTP Bank11 Word0 (HW Capabilities)
  7902. reg32_t _reserved96[3];
  7903. volatile hw_ocotp_hdcp_key41_t HDCP_KEY41; //!< Value of OTP Bank11 Word1 (HW Capabilities)
  7904. reg32_t _reserved97[3];
  7905. volatile hw_ocotp_hdcp_key42_t HDCP_KEY42; //!< Value of OTP Bank11 Word2 (HW Capabilities)
  7906. reg32_t _reserved98[3];
  7907. volatile hw_ocotp_hdcp_key43_t HDCP_KEY43; //!< Value of OTP Bank11 Word3 (HW Capabilities)
  7908. reg32_t _reserved99[3];
  7909. volatile hw_ocotp_hdcp_key44_t HDCP_KEY44; //!< Value of OTP Bank11 Word4 (HW Capabilities)
  7910. reg32_t _reserved100[3];
  7911. volatile hw_ocotp_hdcp_key45_t HDCP_KEY45; //!< Value of OTP Bank11 Word5 (HW Capabilities)
  7912. reg32_t _reserved101[3];
  7913. volatile hw_ocotp_hdcp_key46_t HDCP_KEY46; //!< Value of OTP Bank11 Word6 (HW Capabilities)
  7914. reg32_t _reserved102[3];
  7915. volatile hw_ocotp_hdcp_key47_t HDCP_KEY47; //!< Value of OTP Bank11 Word7 (HW Capabilities)
  7916. reg32_t _reserved103[3];
  7917. volatile hw_ocotp_hdcp_key48_t HDCP_KEY48; //!< Value of OTP Bank12 Word0 (HW Capabilities)
  7918. reg32_t _reserved104[3];
  7919. volatile hw_ocotp_hdcp_key49_t HDCP_KEY49; //!< Value of OTP Bank12 Word1 (HW Capabilities)
  7920. reg32_t _reserved105[3];
  7921. volatile hw_ocotp_hdcp_key50_t HDCP_KEY50; //!< Value of OTP Bank12 Word2 (HW Capabilities)
  7922. reg32_t _reserved106[3];
  7923. volatile hw_ocotp_hdcp_key51_t HDCP_KEY51; //!< Value of OTP Bank12 Word3 (HW Capabilities)
  7924. reg32_t _reserved107[3];
  7925. volatile hw_ocotp_hdcp_key52_t HDCP_KEY52; //!< Value of OTP Bank12 Word4 (HW Capabilities)
  7926. reg32_t _reserved108[3];
  7927. volatile hw_ocotp_hdcp_key53_t HDCP_KEY53; //!< Value of OTP Bank12 Word5 (HW Capabilities)
  7928. reg32_t _reserved109[3];
  7929. volatile hw_ocotp_hdcp_key54_t HDCP_KEY54; //!< Value of OTP Bank12 Word6 (HW Capabilities)
  7930. reg32_t _reserved110[3];
  7931. volatile hw_ocotp_hdcp_key55_t HDCP_KEY55; //!< Value of OTP Bank12 Word7 (HW Capabilities)
  7932. reg32_t _reserved111[3];
  7933. volatile hw_ocotp_hdcp_key56_t HDCP_KEY56; //!< Value of OTP Bank13 Word0 (HW Capabilities)
  7934. reg32_t _reserved112[3];
  7935. volatile hw_ocotp_hdcp_key57_t HDCP_KEY57; //!< Value of OTP Bank13 Word1 (HW Capabilities)
  7936. reg32_t _reserved113[3];
  7937. volatile hw_ocotp_hdcp_key58_t HDCP_KEY58; //!< Value of OTP Bank13 Word2 (HW Capabilities)
  7938. reg32_t _reserved114[3];
  7939. volatile hw_ocotp_hdcp_key59_t HDCP_KEY59; //!< Value of OTP Bank13 Word3 (HW Capabilities)
  7940. reg32_t _reserved115[3];
  7941. volatile hw_ocotp_hdcp_key60_t HDCP_KEY60; //!< Value of OTP Bank13 Word4 (HW Capabilities)
  7942. reg32_t _reserved116[3];
  7943. volatile hw_ocotp_hdcp_key61_t HDCP_KEY61; //!< Value of OTP Bank13 Word5 (HW Capabilities)
  7944. reg32_t _reserved117[3];
  7945. volatile hw_ocotp_hdcp_key62_t HDCP_KEY62; //!< Value of OTP Bank13 Word6 (HW Capabilities)
  7946. reg32_t _reserved118[3];
  7947. volatile hw_ocotp_hdcp_key63_t HDCP_KEY63; //!< Value of OTP Bank13 Word7 (HW Capabilities)
  7948. reg32_t _reserved119[3];
  7949. volatile hw_ocotp_hdcp_key64_t HDCP_KEY64; //!< Value of OTP Bank14 Word0 (HW Capabilities)
  7950. reg32_t _reserved120[3];
  7951. volatile hw_ocotp_hdcp_key65_t HDCP_KEY65; //!< Value of OTP Bank14 Word1 (HW Capabilities)
  7952. reg32_t _reserved121[3];
  7953. volatile hw_ocotp_hdcp_key66_t HDCP_KEY66; //!< Value of OTP Bank14 Word2 (HW Capabilities)
  7954. reg32_t _reserved122[3];
  7955. volatile hw_ocotp_hdcp_key67_t HDCP_KEY67; //!< Value of OTP Bank14 Word3 (HW Capabilities)
  7956. reg32_t _reserved123[3];
  7957. volatile hw_ocotp_hdcp_key68_t HDCP_KEY68; //!< Value of OTP Bank14 Word4 (HW Capabilities)
  7958. reg32_t _reserved124[3];
  7959. volatile hw_ocotp_hdcp_key69_t HDCP_KEY69; //!< Value of OTP Bank14 Word5 (HW Capabilities)
  7960. reg32_t _reserved125[3];
  7961. volatile hw_ocotp_hdcp_key70_t HDCP_KEY70; //!< Value of OTP Bank14 Word6 (HW Capabilities)
  7962. reg32_t _reserved126[3];
  7963. volatile hw_ocotp_hdcp_key71_t HDCP_KEY71; //!< Value of OTP Bank14 Word7 (HW Capabilities)
  7964. reg32_t _reserved127[35];
  7965. volatile hw_ocotp_crc0_t CRC0; //!< Value of OTP Bank15 Word0 (HW Capabilities)
  7966. reg32_t _reserved128[3];
  7967. volatile hw_ocotp_crc1_t CRC1; //!< Value of OTP Bank15 Word1 (HW Capabilities)
  7968. reg32_t _reserved129[3];
  7969. volatile hw_ocotp_crc2_t CRC2; //!< Value of OTP Bank15 Word2 (HW Capabilities)
  7970. reg32_t _reserved130[3];
  7971. volatile hw_ocotp_crc3_t CRC3; //!< Value of OTP Bank15 Word3 (HW Capabilities)
  7972. reg32_t _reserved131[3];
  7973. volatile hw_ocotp_crc4_t CRC4; //!< Value of OTP Bank15 Word4 (HW Capabilities)
  7974. reg32_t _reserved132[3];
  7975. volatile hw_ocotp_crc5_t CRC5; //!< Value of OTP Bank15 Word5 (HW Capabilities)
  7976. reg32_t _reserved133[3];
  7977. volatile hw_ocotp_crc6_t CRC6; //!< Value of OTP Bank15 Word6 (HW Capabilities)
  7978. reg32_t _reserved134[3];
  7979. volatile hw_ocotp_crc7_t CRC7; //!< Value of OTP Bank15 Word5 (HW Capabilities)
  7980. } hw_ocotp_t;
  7981. #pragma pack()
  7982. //! @brief Macro to access all OCOTP registers.
  7983. //! @return Reference (not a pointer) to the registers struct. To get a pointer to the struct,
  7984. //! use the '&' operator, like <code>&HW_OCOTP(0)</code>.
  7985. #define HW_OCOTP (*(volatile hw_ocotp_t *) REGS_OCOTP_BASE)
  7986. #endif
  7987. #endif // __HW_OCOTP_REGISTERS_H__