12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737 |
- /* Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
- * All rights reserved.
- *
- * This software is supplied "AS IS" without any warranties.
- * RDA assumes no responsibility or liability for the use of the software,
- * conveys no license or title under any patent, copyright, or mask work
- * right to the product. RDA reserves the right to make changes in the
- * software without notification. RDA also make no representation or
- * warranty that such application will be suitable for the specified use
- * without further testing or modification.
- */
- #ifndef _CAMERA_H_
- #define _CAMERA_H_
- // Auto generated by dtools(see dtools.txt for its version).
- // Don't edit it manually!
- #define FIFORAM_SIZE (80)
- #define REG_CAMERA_BASE (0x04404000)
- typedef volatile struct
- {
- uint32_t ctrl; // 0x00000000
- uint32_t status; // 0x00000004
- uint32_t data; // 0x00000008
- uint32_t irq_mask; // 0x0000000c
- uint32_t irq_clear; // 0x00000010
- uint32_t irq_cause; // 0x00000014
- uint32_t cmd_set; // 0x00000018
- uint32_t cmd_clr; // 0x0000001c
- uint32_t dstwincol; // 0x00000020
- uint32_t dstwinrow; // 0x00000024
- uint32_t scl_config; // 0x00000028
- uint32_t spi_camera_reg0; // 0x0000002c
- uint32_t spi_camera_reg1; // 0x00000030
- uint32_t spi_camera_reg2; // 0x00000034
- uint32_t spi_camera_reg3; // 0x00000038
- uint32_t spi_camera_reg4; // 0x0000003c
- uint32_t spi_camera_reg5; // 0x00000040
- uint32_t spi_camera_reg6; // 0x00000044
- uint32_t spi_camera_obs0; // 0x00000048
- uint32_t spi_camera_obs1; // 0x0000004c
- uint32_t csi_config_reg0; // 0x00000050
- uint32_t csi_config_reg1; // 0x00000054
- uint32_t csi_config_reg2; // 0x00000058
- uint32_t csi_config_reg3; // 0x0000005c
- uint32_t csi_config_reg4; // 0x00000060
- uint32_t csi_config_reg5; // 0x00000064
- uint32_t csi_config_reg6; // 0x00000068
- uint32_t csi_config_reg7; // 0x0000006c
- uint32_t csi_obs4; // 0x00000070
- uint32_t csi_obs5; // 0x00000074
- uint32_t csi_obs6; // 0x00000078
- uint32_t csi_obs7; // 0x0000007c
- uint32_t csi_enable; // 0x00000080
- uint32_t csi_config_reg8; // 0x00000084
- uint32_t __136[222]; // 0x00000088
- struct // 0x00000400
- { //
- uint32_t ramdata; // 0x00000000
- } fiforam[80]; //
- uint32_t __1344[176]; // 0x00000540
- uint32_t soft_reset; // 0x00000800
- uint32_t __2052[17]; // 0x00000804
- uint32_t awb_x1_min; // 0x00000848
- uint32_t awb_x1_max; // 0x0000084c
- uint32_t awb_y1_min; // 0x00000850
- uint32_t awb_y1_max; // 0x00000854
- uint32_t awb_x2_min; // 0x00000858
- uint32_t awb_x2_max; // 0x0000085c
- uint32_t awb_y2_min; // 0x00000860
- uint32_t awb_y2_max; // 0x00000864
- uint32_t awb_x3_min; // 0x00000868
- uint32_t awb_x3_max; // 0x0000086c
- uint32_t awb_y3_min; // 0x00000870
- uint32_t awb_y3_max; // 0x00000874
- uint32_t awb_x4_min; // 0x00000878
- uint32_t awb_x4_max; // 0x0000087c
- uint32_t awb_y4_min; // 0x00000880
- uint32_t awb_y4_max; // 0x00000884
- uint32_t awb_x5_min; // 0x00000888
- uint32_t awb_x5_max; // 0x0000088c
- uint32_t awb_y5_min; // 0x00000890
- uint32_t awb_y5_max; // 0x00000894
- uint32_t awb_skin_x1_min; // 0x00000898
- uint32_t awb_skin_x1_max; // 0x0000089c
- uint32_t awb_skin_y1_min; // 0x000008a0
- uint32_t awb_skin_y1_max; // 0x000008a4
- uint32_t awb_skin_x2_min; // 0x000008a8
- uint32_t awb_skin_x2_max; // 0x000008ac
- uint32_t awb_skin_y2_min; // 0x000008b0
- uint32_t awb_skin_y2_max; // 0x000008b4
- uint32_t awb_ctd_msb; // 0x000008b8
- uint32_t int_dif_thr_mid; // 0x000008bc
- uint32_t lb_soft_rstn; // 0x000008c0
- uint32_t vsync_end_high; // 0x000008c4
- uint32_t vsync_end_low; // 0x000008c8
- uint32_t line_numl; // 0x000008cc
- uint32_t pix_numl; // 0x000008d0
- uint32_t pix_line_numh; // 0x000008d4
- uint32_t lb_ctrl; // 0x000008d8
- uint32_t data_format; // 0x000008dc
- uint32_t lb_enable; // 0x000008e0
- uint32_t vh_inv; // 0x000008e4
- uint32_t line_cnt_l; // 0x000008e8
- uint32_t line_cnt_h; // 0x000008ec
- uint32_t num_check; // 0x000008f0
- uint32_t dci_ctrl_reg; // 0x000008f4
- uint32_t dci_ofst_reg; // 0x000008f8
- uint32_t dci_hist_reg; // 0x000008fc
- uint32_t ae_sw_ctrl_reg; // 0x00000900
- uint32_t ae_thr_reg; // 0x00000904
- uint32_t ae_misc_ctrl_reg; // 0x00000908
- uint32_t csup_xx_reg; // 0x0000090c
- uint32_t contr_ythr_reg; // 0x00000910
- uint32_t contr_yave_offset_reg; // 0x00000914
- uint32_t contr_ku_lo_reg; // 0x00000918
- uint32_t contr_kl_lo_reg; // 0x0000091c
- uint32_t contr_ku_mid_reg; // 0x00000920
- uint32_t contr_kl_mid_reg; // 0x00000924
- uint32_t contr_ku_hi_reg; // 0x00000928
- uint32_t contr_kl_hi_reg; // 0x0000092c
- uint32_t luma_offset_lo_reg; // 0x00000930
- uint32_t luma_offset_mid_reg; // 0x00000934
- uint32_t luma_offset_hi_reg; // 0x00000938
- uint32_t u_gain_lo_reg; // 0x0000093c
- uint32_t v_gain_lo_reg; // 0x00000940
- uint32_t u_gain_mid_reg; // 0x00000944
- uint32_t v_gain_mid_reg; // 0x00000948
- uint32_t u_gain_hi_reg; // 0x0000094c
- uint32_t v_gain_hi_reg; // 0x00000950
- uint32_t again_sel_th0_reg; // 0x00000954
- uint32_t awb_cc_type_ctrl_reg; // 0x00000958
- uint32_t awb_cc_type_th_reg; // 0x0000095c
- uint32_t isp_wrapper_ctrl_1; // 0x00000960
- uint32_t top_dummy; // 0x00000964
- uint32_t left_dummy; // 0x00000968
- uint32_t isp_wrapper_ctrl_2; // 0x0000096c
- uint32_t line_num_l_reg; // 0x00000970
- uint32_t pix_num_l_reg; // 0x00000974
- uint32_t v_dummy; // 0x00000978
- uint32_t scg; // 0x0000097c
- uint32_t y_gamma_b0; // 0x00000980
- uint32_t y_gamma_b1; // 0x00000984
- uint32_t y_gamma_b2; // 0x00000988
- uint32_t y_gamma_b4; // 0x0000098c
- uint32_t y_gamma_b6; // 0x00000990
- uint32_t y_gamma_b8; // 0x00000994
- uint32_t y_gamma_b10; // 0x00000998
- uint32_t y_gamma_b12; // 0x0000099c
- uint32_t y_gamma_b16; // 0x000009a0
- uint32_t y_gamma_b20; // 0x000009a4
- uint32_t y_gamma_b24; // 0x000009a8
- uint32_t y_gamma_b28; // 0x000009ac
- uint32_t y_gamma_b32; // 0x000009b0
- uint32_t r_awb_gain_in; // 0x000009b4
- uint32_t g_awb_gain_in; // 0x000009b8
- uint32_t b_awb_gain_in; // 0x000009bc
- uint32_t r_drc_gain_in; // 0x000009c0
- uint32_t gr_drc_gain_in; // 0x000009c4
- uint32_t gb_drc_gain_in; // 0x000009c8
- uint32_t b_drc_gain_in; // 0x000009cc
- uint32_t ae_ctrl; // 0x000009d0
- uint32_t ae_ctrl2; // 0x000009d4
- uint32_t ae_ctrl3; // 0x000009d8
- uint32_t ae_ctrl4; // 0x000009dc
- uint32_t ae_win_start; // 0x000009e0
- uint32_t ae_win_width; // 0x000009e4
- uint32_t ae_win_height; // 0x000009e8
- uint32_t exp_init; // 0x000009ec
- uint32_t exp_ceil_init; // 0x000009f0
- uint32_t ae_exp_1e; // 0x000009f4
- uint32_t ae_diff_thr; // 0x000009f8
- uint32_t ae_bh_sel; // 0x000009fc
- uint32_t awb_ctrl; // 0x00000a00
- uint32_t awb_ctrl2; // 0x00000a04
- uint32_t awb_y_max; // 0x00000a08
- uint32_t awb_stop; // 0x00000a0c
- uint32_t awb_algo; // 0x00000a10
- uint32_t awb_ctrl3; // 0x00000a14
- uint32_t awb_ctrl4; // 0x00000a18
- uint32_t dig_gain_in; // 0x00000a1c
- uint32_t y_init_thr; // 0x00000a20
- uint32_t y_ave_target; // 0x00000a24
- uint32_t y_lmt_offset; // 0x00000a28
- uint32_t again_sel_th2; // 0x00000a2c
- uint32_t yave_target_chg1; // 0x00000a30
- uint32_t image_eff_reg; // 0x00000a34
- uint32_t ywave_out; // 0x00000a38
- uint32_t ae_bright_hist; // 0x00000a3c
- uint32_t yave_out; // 0x00000a40
- uint32_t exp_out; // 0x00000a44
- uint32_t misc_out; // 0x00000a48
- uint32_t awb_debug_out; // 0x00000a4c
- uint32_t mono_color; // 0x00000a50
- uint32_t r_awb_gain; // 0x00000a54
- uint32_t b_awb_gain; // 0x00000a58
- uint32_t misc_status; // 0x00000a5c
- uint32_t yave_contr; // 0x00000a60
- uint32_t gamma_type; // 0x00000a64
- uint32_t blc_line; // 0x00000a68
- uint32_t lsc_xx; // 0x00000a6c
- uint32_t lsc_blc_gain_th; // 0x00000a70
- uint32_t blc_ctrl; // 0x00000a74
- uint32_t blc_init; // 0x00000a78
- uint32_t blc_offset; // 0x00000a7c
- uint32_t blc_thr; // 0x00000a80
- uint32_t lsc_xy_cent; // 0x00000a84
- uint32_t cnr_dif_thr; // 0x00000a88
- uint32_t cnr_thr; // 0x00000a8c
- uint32_t gamma_ctrl; // 0x00000a90
- uint32_t bayer_gamma_b0; // 0x00000a94
- uint32_t bayer_gamma_b1; // 0x00000a98
- uint32_t bayer_gamma_b2; // 0x00000a9c
- uint32_t bayer_gamma_b3; // 0x00000aa0
- uint32_t bayer_gamma_b4; // 0x00000aa4
- uint32_t bayer_gamma_b6; // 0x00000aa8
- uint32_t bayer_gamma_b8; // 0x00000aac
- uint32_t bayer_gamma_b10; // 0x00000ab0
- uint32_t bayer_gamma_b12; // 0x00000ab4
- uint32_t bayer_gamma_b16; // 0x00000ab8
- uint32_t bayer_gamma_b20; // 0x00000abc
- uint32_t bayer_gamma_b24; // 0x00000ac0
- uint32_t bayer_gamma_b28; // 0x00000ac4
- uint32_t bayer_gamma_b32; // 0x00000ac8
- uint32_t bayer_gamma_b36; // 0x00000acc
- uint32_t bayer_gamma_b40; // 0x00000ad0
- uint32_t bayer_gamma_b48; // 0x00000ad4
- uint32_t bayer_gamma_b56; // 0x00000ad8
- uint32_t bayer_gamma_b64; // 0x00000adc
- uint32_t blc_out0; // 0x00000ae0
- uint32_t blc_out1; // 0x00000ae4
- uint32_t dpc_ctrl_0; // 0x00000ae8
- uint32_t dpc_ctrl_1; // 0x00000aec
- uint32_t y_thr_lo; // 0x00000af0
- uint32_t y_thr_mid; // 0x00000af4
- uint32_t y_thr_hi; // 0x00000af8
- uint32_t intp_cfa_hv; // 0x00000afc
- uint32_t manual_adj; // 0x00000b00
- uint32_t dpc_int_thr_lo; // 0x00000b04
- uint32_t dpc_int_thr_hi; // 0x00000b08
- uint32_t again_sel_th1; // 0x00000b0c
- uint32_t dpc_nr_lf_str_lo; // 0x00000b10
- uint32_t dpc_nr_hf_str_lo; // 0x00000b14
- uint32_t dpc_nr_area_thr_lo; // 0x00000b18
- uint32_t dpc_nr_lf_str_mid; // 0x00000b1c
- uint32_t dpc_nr_hf_str_mid; // 0x00000b20
- uint32_t dpc_nr_area_thr_mid; // 0x00000b24
- uint32_t dpc_nr_lf_str_hi; // 0x00000b28
- uint32_t dpc_nr_hf_str_hi; // 0x00000b2c
- uint32_t dpc_nr_area_thr_hi; // 0x00000b30
- uint32_t intp_ctrl; // 0x00000b34
- uint32_t intp_cfa_h_thr; // 0x00000b38
- uint32_t intp_cfa_v_thr; // 0x00000b3c
- uint32_t intp_grgb_sel_lmt; // 0x00000b40
- uint32_t intp_gf_lmt_thr; // 0x00000b44
- uint32_t cc_r_offset; // 0x00000b48
- uint32_t cc_g_offset; // 0x00000b4c
- uint32_t cc_b_offset; // 0x00000b50
- uint32_t cc_00; // 0x00000b54
- uint32_t cc_01; // 0x00000b58
- uint32_t cc_10; // 0x00000b5c
- uint32_t cc_11; // 0x00000b60
- uint32_t cc_20; // 0x00000b64
- uint32_t cc_21; // 0x00000b68
- uint32_t cc_r_offset_post; // 0x00000b6c
- uint32_t cc_g_offset_post; // 0x00000b70
- uint32_t cc_b_offset_post; // 0x00000b74
- uint32_t cc2_r_offset; // 0x00000b78
- uint32_t cc2_g_offset; // 0x00000b7c
- uint32_t cc2_b_offset; // 0x00000b80
- uint32_t cc2_00; // 0x00000b84
- uint32_t cc2_01; // 0x00000b88
- uint32_t cc2_10; // 0x00000b8c
- uint32_t cc2_11; // 0x00000b90
- uint32_t cc2_20; // 0x00000b94
- uint32_t cc2_21; // 0x00000b98
- uint32_t sharp_lmt; // 0x00000b9c
- uint32_t sharp_mode; // 0x00000ba0
- uint32_t sharp_gain_str_lo; // 0x00000ba4
- uint32_t sharp_nr_area_thr_lo; // 0x00000ba8
- uint32_t sharp_gain_str_mid; // 0x00000bac
- uint32_t sharp_nr_area_thr_mid; // 0x00000bb0
- uint32_t sharp_gain_str_hi; // 0x00000bb4
- uint32_t sharp_nr_area_thr_hi; // 0x00000bb8
- uint32_t ynr_ctrl_reg; // 0x00000bbc
- uint32_t ynr_lf_method_str; // 0x00000bc0
- uint32_t ynr_lf_str_lo; // 0x00000bc4
- uint32_t ynr_hf_str_lo; // 0x00000bc8
- uint32_t ynr_area_thr_lo; // 0x00000bcc
- uint32_t ynr_lf_str_mid; // 0x00000bd0
- uint32_t ynr_hf_str_mid; // 0x00000bd4
- uint32_t ynr_area_thr_mid; // 0x00000bd8
- uint32_t ynr_lf_str_hi; // 0x00000bdc
- uint32_t ynr_hf_str_hi; // 0x00000be0
- uint32_t ynr_area_thr_hi; // 0x00000be4
- uint32_t hue_sin_reg; // 0x00000be8
- uint32_t hue_cos_reg; // 0x00000bec
- uint32_t cnr_1d_ctrl_reg; // 0x00000bf0
- uint32_t cnr_xx_reg; // 0x00000bf4
- uint32_t in5_low_th_reg; // 0x00000bf8
- uint32_t in5_high_th_reg; // 0x00000bfc
- uint32_t __3072[72]; // 0x00000c00
- uint32_t p2_up_r_reg; // 0x00000d20
- uint32_t p2_up_g_reg; // 0x00000d24
- uint32_t p2_up_b_reg; // 0x00000d28
- uint32_t p2_down_r_reg; // 0x00000d2c
- uint32_t p2_down_g_reg; // 0x00000d30
- uint32_t p2_down_b_reg; // 0x00000d34
- uint32_t p2_left_r_reg; // 0x00000d38
- uint32_t p2_left_g_reg; // 0x00000d3c
- uint32_t p2_left_b_reg; // 0x00000d40
- uint32_t p2_right_r_reg; // 0x00000d44
- uint32_t p2_right_g_reg; // 0x00000d48
- uint32_t p2_right_b_reg; // 0x00000d4c
- uint32_t p4_q1_r_reg; // 0x00000d50
- uint32_t p4_q1_g_reg; // 0x00000d54
- uint32_t p4_q1_b_reg; // 0x00000d58
- uint32_t p4_q2_r_reg; // 0x00000d5c
- uint32_t p4_q2_g_reg; // 0x00000d60
- uint32_t p4_q2_b_reg; // 0x00000d64
- uint32_t p4_q3_r_reg; // 0x00000d68
- uint32_t p4_q3_g_reg; // 0x00000d6c
- uint32_t p4_q3_b_reg; // 0x00000d70
- uint32_t p4_q4_r_reg; // 0x00000d74
- uint32_t p4_q4_g_reg; // 0x00000d78
- uint32_t p4_q4_b_reg; // 0x00000d7c
- uint32_t ae_e00_sta_reg; // 0x00000d80
- uint32_t ae_e00_num_reg; // 0x00000d84
- uint32_t ae_e01_sta_reg; // 0x00000d88
- uint32_t ae_e01_num_reg; // 0x00000d8c
- uint32_t ae_e02_sta_reg; // 0x00000d90
- uint32_t ae_e02_num_reg; // 0x00000d94
- uint32_t ae_e1_sta_reg; // 0x00000d98
- uint32_t ae_e1_num_reg; // 0x00000d9c
- uint32_t ae_e2_sta_reg; // 0x00000da0
- uint32_t ae_e2_num_reg; // 0x00000da4
- uint32_t ae_e3_sta_reg; // 0x00000da8
- uint32_t ae_e3_num_reg; // 0x00000dac
- uint32_t ae_e4_sta_reg; // 0x00000db0
- uint32_t ae_e4_num_reg; // 0x00000db4
- uint32_t ae_e5_sta_reg; // 0x00000db8
- uint32_t ae_e5_num_reg; // 0x00000dbc
- uint32_t ae_e6_sta_reg; // 0x00000dc0
- uint32_t ae_e6_num_reg; // 0x00000dc4
- uint32_t ae_e7_sta_reg; // 0x00000dc8
- uint32_t ae_e7_num_reg; // 0x00000dcc
- uint32_t ae_e8_sta_reg; // 0x00000dd0
- uint32_t ae_e8_num_reg; // 0x00000dd4
- uint32_t ae_e9_sta_reg; // 0x00000dd8
- uint32_t ae_e9_num_reg; // 0x00000ddc
- uint32_t ae_ea_sta_reg; // 0x00000de0
- uint32_t ae_ea_num_reg; // 0x00000de4
- uint32_t ae_eb_sta_reg; // 0x00000de8
- uint32_t ae_eb_num_reg; // 0x00000dec
- uint32_t ae_ec_sta_reg; // 0x00000df0
- uint32_t ae_ec_num_reg; // 0x00000df4
- uint32_t ae_ed_sta_reg; // 0x00000df8
- uint32_t ae_ed_num_reg; // 0x00000dfc
- uint32_t bayer_gamma2_b0; // 0x00000e00
- uint32_t bayer_gamma2_b1; // 0x00000e04
- uint32_t bayer_gamma2_b2; // 0x00000e08
- uint32_t bayer_gamma2_b3; // 0x00000e0c
- uint32_t bayer_gamma2_b4; // 0x00000e10
- uint32_t bayer_gamma2_b6; // 0x00000e14
- uint32_t bayer_gamma2_b8; // 0x00000e18
- uint32_t bayer_gamma2_b10; // 0x00000e1c
- uint32_t bayer_gamma2_b12; // 0x00000e20
- uint32_t bayer_gamma2_b16; // 0x00000e24
- uint32_t bayer_gamma2_b20; // 0x00000e28
- uint32_t bayer_gamma2_b24; // 0x00000e2c
- uint32_t bayer_gamma2_b28; // 0x00000e30
- uint32_t bayer_gamma2_b32; // 0x00000e34
- uint32_t bayer_gamma2_b36; // 0x00000e38
- uint32_t bayer_gamma2_b40; // 0x00000e3c
- uint32_t bayer_gamma2_b48; // 0x00000e40
- uint32_t bayer_gamma2_b56; // 0x00000e44
- uint32_t bayer_gamma2_b64; // 0x00000e48
- uint32_t y_thr7_lo_reg; // 0x00000e4c
- uint32_t y_thr7_mid_reg; // 0x00000e50
- uint32_t y_thr7_hi_reg; // 0x00000e54
- uint32_t dpa_new_ctrl_reg; // 0x00000e58
- uint32_t dpa_new_ctrl_hi_reg; // 0x00000e5c
- uint32_t ae_index_gap; // 0x00000e60
- uint32_t awb_calc_height_reg; // 0x00000e64
- uint32_t drc_r_clp_value_reg; // 0x00000e68
- uint32_t drc_gr_clp_value_reg; // 0x00000e6c
- uint32_t drc_gb_clp_value_reg; // 0x00000e70
- uint32_t drc_b_clp_value_reg; // 0x00000e74
- uint32_t sepia_cr_reg; // 0x00000e78
- uint32_t sepia_cb_reg; // 0x00000e7c
- uint32_t csup_y_min_hi_reg; // 0x00000e80
- uint32_t csup_gain_hi_reg; // 0x00000e84
- uint32_t csup_y_max_low_reg; // 0x00000e88
- uint32_t csup_gain_low_reg; // 0x00000e8c
- uint32_t ae_dk_hist_thr_reg; // 0x00000e90
- uint32_t ae_br_hist_thr_reg; // 0x00000e94
- uint32_t hist_bp_level_reg; // 0x00000e98
- uint32_t outdoor_th_reg; // 0x00000e9c
- uint32_t awb_rgain_low_reg; // 0x00000ea0
- uint32_t awb_rgain_high_reg; // 0x00000ea4
- uint32_t awb_bgain_low_reg; // 0x00000ea8
- uint32_t awb_bgain_high_reg; // 0x00000eac
- uint32_t awb_calc_start_reg; // 0x00000eb0
- uint32_t awb_calc_width_reg; // 0x00000eb4
- uint32_t hist_dp_level_reg; // 0x00000eb8
- uint32_t awb_y_fmin; // 0x00000ebc
- uint32_t awb_y_fmax; // 0x00000ec0
- uint32_t awb_cb_fmin; // 0x00000ec4
- uint32_t awb_cb_fmax; // 0x00000ec8
- uint32_t awb_cr_fmin; // 0x00000ecc
- uint32_t awb_cr_fmax; // 0x00000ed0
- uint32_t awb_y_fmin2; // 0x00000ed4
- uint32_t awb_y_fmax2; // 0x00000ed8
- uint32_t awb_cb_fmin2; // 0x00000edc
- uint32_t awb_cb_fmax2; // 0x00000ee0
- uint32_t awb_cr_fmin2; // 0x00000ee4
- uint32_t awb_cr_fmax2; // 0x00000ee8
- uint32_t ae_use_mean; // 0x00000eec
- uint32_t ae_weight_sta; // 0x00000ef0
- uint32_t ae_qwidth; // 0x00000ef4
- uint32_t ae_qheight; // 0x00000ef8
- uint32_t ae_win_sta; // 0x00000efc
- uint32_t ae_width; // 0x00000f00
- uint32_t ae_height; // 0x00000f04
- uint32_t sw_update; // 0x00000f08
- uint32_t awb_ctrl5; // 0x00000f0c
- uint32_t awb_ctrl6; // 0x00000f10
- uint32_t sca_reg; // 0x00000f14
- uint32_t ae_ee_sta_reg; // 0x00000f18
- uint32_t ae_ee_num_reg; // 0x00000f1c
- uint32_t ae_ef_sta_reg; // 0x00000f20
- uint32_t ae_ef_num_reg; // 0x00000f24
- uint32_t ae_thr_big_reg; // 0x00000f28
- uint32_t sharp_gain_minus_low; // 0x00000f2c
- uint32_t sharp_gain_minus_mid; // 0x00000f30
- uint32_t sharp_gain_minus_hi; // 0x00000f34
- uint32_t sharp_mode_mid_hi; // 0x00000f38
- uint32_t fw_version_reg; // 0x00000f3c
- uint32_t awb_y_min_reg; // 0x00000f40
- uint32_t y_red_coef_reg; // 0x00000f44
- uint32_t y_blue_coef_reg; // 0x00000f48
- uint32_t cb_red_coef_reg; // 0x00000f4c
- uint32_t cr_blue_coef_reg; // 0x00000f50
- uint32_t hist_vbp_level_reg; // 0x00000f54
- uint32_t hist_vdp_level_reg; // 0x00000f58
- uint32_t __3932[40]; // 0x00000f5c
- } HWP_CAMERA_T;
- #define hwp_camera ((HWP_CAMERA_T *)REG_ACCESS_ADDRESS(REG_CAMERA_BASE))
- // ctrl
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t enable : 1; // [0]
- uint32_t dctenable : 1; // [1]
- uint32_t buf_enable : 1; // [2]
- uint32_t rgb_rfirst : 1; // [3]
- uint32_t dataformat : 2; // [5:4]
- uint32_t cfg_cam_c2cse : 2; // [7:6]
- uint32_t reset_pol : 1; // [8]
- uint32_t pwdn_pol : 1; // [9]
- uint32_t vsync_pol : 1; // [10]
- uint32_t href_pol : 1; // [11]
- uint32_t pixclk_pol : 1; // [12]
- uint32_t __13_13 : 1; // [13]
- uint32_t vsync_drop : 1; // [14]
- uint32_t __15_15 : 1; // [15]
- uint32_t decimfrm : 2; // [17:16]
- uint32_t decimcol : 2; // [19:18]
- uint32_t decimrow : 2; // [21:20]
- uint32_t __23_22 : 2; // [23:22]
- uint32_t reorder : 3; // [26:24]
- uint32_t __27_27 : 1; // [27]
- uint32_t cropen : 1; // [28]
- uint32_t __29_29 : 1; // [29]
- uint32_t bist_mode : 1; // [30]
- uint32_t test : 1; // [31]
- } b;
- } REG_CAMERA_CTRL_T;
- // status
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ovfl : 1; // [0], read only
- uint32_t vsync_r : 1; // [1], read only
- uint32_t vsync_f : 1; // [2], read only
- uint32_t dma_done : 1; // [3], read only
- uint32_t fifo_empty : 1; // [4], read only
- uint32_t spi_ovfl : 1; // [5], read only
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_CAMERA_STATUS_T;
- // irq_mask
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ovfl : 1; // [0]
- uint32_t vsync_r : 1; // [1]
- uint32_t vsync_f : 1; // [2]
- uint32_t dma_done : 1; // [3]
- uint32_t __31_4 : 28; // [31:4]
- } b;
- } REG_CAMERA_IRQ_MASK_T;
- // irq_clear
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ovfl : 1; // [0]
- uint32_t vsync_r : 1; // [1]
- uint32_t vsync_f : 1; // [2]
- uint32_t dma_done : 1; // [3]
- uint32_t __31_4 : 28; // [31:4]
- } b;
- } REG_CAMERA_IRQ_CLEAR_T;
- // irq_cause
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ovfl : 1; // [0], read only
- uint32_t vsync_r : 1; // [1], read only
- uint32_t vsync_f : 1; // [2], read only
- uint32_t dma_done : 1; // [3], read only
- uint32_t __31_4 : 28; // [31:4]
- } b;
- } REG_CAMERA_IRQ_CAUSE_T;
- // cmd_set
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t pwdn : 1; // [0], write set
- uint32_t __3_1 : 3; // [3:1]
- uint32_t reset : 1; // [4], write set
- uint32_t __7_5 : 3; // [7:5]
- uint32_t fifo_reset : 1; // [8], write set
- uint32_t __31_9 : 23; // [31:9]
- } b;
- } REG_CAMERA_CMD_SET_T;
- // cmd_clr
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t pwdn : 1; // [0], write clear
- uint32_t __3_1 : 3; // [3:1]
- uint32_t reset : 1; // [4], write clear
- uint32_t __31_5 : 27; // [31:5]
- } b;
- } REG_CAMERA_CMD_CLR_T;
- // dstwincol
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t dstwincolstart : 12; // [11:0]
- uint32_t __15_12 : 4; // [15:12]
- uint32_t dstwincolend : 12; // [27:16]
- uint32_t __31_28 : 4; // [31:28]
- } b;
- } REG_CAMERA_DSTWINCOL_T;
- // dstwinrow
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t dstwinrowstart : 12; // [11:0]
- uint32_t __15_12 : 4; // [15:12]
- uint32_t dstwinrowend : 12; // [27:16]
- uint32_t __31_28 : 4; // [31:28]
- } b;
- } REG_CAMERA_DSTWINROW_T;
- // scl_config
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t scale_en : 1; // [0]
- uint32_t __3_1 : 3; // [3:1]
- uint32_t data_out_swap : 1; // [4]
- uint32_t __7_5 : 3; // [7:5]
- uint32_t scale_col : 2; // [9:8]
- uint32_t __15_10 : 6; // [15:10]
- uint32_t scale_row : 2; // [17:16]
- uint32_t __31_18 : 14; // [31:18]
- } b;
- } REG_CAMERA_SCL_CONFIG_T;
- // spi_camera_reg0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t camera_spi_slave_en : 1; // [0]
- uint32_t camera_spi_master_en : 1; // [1]
- uint32_t yuv_out_format : 3; // [4:2]
- uint32_t overflow_rstn_only_vsync_low : 1; // [5]
- uint32_t overflow_observe_only_vsync_low : 1; // [6]
- uint32_t overflow_rstn_en : 1; // [7]
- uint32_t big_end_dis : 1; // [8]
- uint32_t overflow_inv : 1; // [9]
- uint32_t href_inv : 1; // [10]
- uint32_t vsync_inv : 1; // [11]
- uint32_t block_num_per_line : 10; // [21:12]
- uint32_t line_num_per_frame : 10; // [31:22]
- } b;
- } REG_CAMERA_SPI_CAMERA_REG0_T;
- // spi_camera_reg1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t camera_clk_div_num : 16; // [15:0]
- uint32_t cts_spi_master_reg : 1; // [16]
- uint32_t ssn_cm_inv : 1; // [17]
- uint32_t sck_cm_inv : 1; // [18]
- uint32_t ssn_spi_oenb_dr : 1; // [19]
- uint32_t ssn_spi_oenb_reg : 1; // [20]
- uint32_t sck_spi_oenb_dr : 1; // [21]
- uint32_t sck_spi_oenb_reg : 1; // [22]
- uint32_t __28_23 : 6; // [28:23]
- uint32_t sdo_spi_swap : 1; // [29]
- uint32_t clk_inv : 1; // [30]
- uint32_t sck_ddr_en : 1; // [31]
- } b;
- } REG_CAMERA_SPI_CAMERA_REG1_T;
- // spi_camera_reg2
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ssn_wait_length : 8; // [7:0]
- uint32_t init_wait_length : 8; // [15:8]
- uint32_t word_num_per_block : 8; // [23:16]
- uint32_t ssn_cs_delay : 2; // [25:24]
- uint32_t data_receive_choose_bit : 2; // [27:26]
- uint32_t ready_cs_inv : 1; // [28]
- uint32_t ssn_cs_inv : 1; // [29]
- uint32_t __30_30 : 1; // [30]
- uint32_t eco_bypass_isp : 1; // [31]
- } b;
- } REG_CAMERA_SPI_CAMERA_REG2_T;
- // spi_camera_reg3
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t line_wait_length : 16; // [15:0]
- uint32_t block_wait_length : 8; // [23:16]
- uint32_t ssn_high_length : 8; // [31:24]
- } b;
- } REG_CAMERA_SPI_CAMERA_REG3_T;
- // spi_camera_reg4
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t camera_spi_master_en_2 : 1; // [0]
- uint32_t sdo_line_choose_bit : 2; // [2:1]
- uint32_t data_size_choose_bit : 1; // [3]
- uint32_t image_height_choose_bit : 1; // [4]
- uint32_t image_width_choose_bit : 1; // [5]
- uint32_t block_num_per_packet : 10; // [15:6]
- uint32_t spi_data0_phase_sel : 2; // [17:16]
- uint32_t spi_data1_phase_sel : 2; // [19:18]
- uint32_t __31_20 : 12; // [31:20]
- } b;
- } REG_CAMERA_SPI_CAMERA_REG4_T;
- // spi_camera_reg5
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t sync_code : 24; // [23:0]
- uint32_t __31_24 : 8; // [31:24]
- } b;
- } REG_CAMERA_SPI_CAMERA_REG5_T;
- // spi_camera_reg6
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t packet_id_data_start : 8; // [7:0]
- uint32_t packet_id_line_start : 8; // [15:8]
- uint32_t packet_id_frame_end : 8; // [23:16]
- uint32_t packet_id_frame_start : 8; // [31:24]
- } b;
- } REG_CAMERA_SPI_CAMERA_REG6_T;
- // spi_camera_obs0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t line_id_15_0_ : 16; // [15:0], read only
- uint32_t data_id_7_0_ : 8; // [23:16], read only
- uint32_t observe_data_size_wrong : 1; // [24], read only
- uint32_t observe_image_height_wrong : 1; // [25], read only
- uint32_t observe_image_width_wrong : 1; // [26], read only
- uint32_t observe_line_num_wrong : 1; // [27], read only
- uint32_t observe_data_id_wrong : 1; // [28], read only
- uint32_t __31_29 : 3; // [31:29]
- } b;
- } REG_CAMERA_SPI_CAMERA_OBS0_T;
- // spi_camera_obs1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t image_height : 16; // [15:0], read only
- uint32_t image_width : 16; // [31:16], read only
- } b;
- } REG_CAMERA_SPI_CAMERA_OBS1_T;
- // csi_config_reg0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t num_d_term_en : 8; // [7:0]
- uint32_t cur_frame_line_num : 13; // [20:8]
- uint32_t data_lp_in_choose_bit : 2; // [22:21]
- uint32_t clk_lp_inv : 1; // [23]
- uint32_t trail_data_wrong_choose_bit : 1; // [24]
- uint32_t sync_bypass : 1; // [25]
- uint32_t rdata_bit_inv_en : 1; // [26]
- uint32_t hs_sync_find_en : 1; // [27]
- uint32_t line_packet_enable : 1; // [28]
- uint32_t ecc_bypass : 1; // [29]
- uint32_t data_lane_choose_bit : 1; // [30]
- uint32_t csi_module_enable : 1; // [31]
- } b;
- } REG_CAMERA_CSI_CONFIG_REG0_T;
- // csi_config_reg1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t num_hs_settle : 8; // [7:0]
- uint32_t lp_data_length_choose_bit : 3; // [10:8]
- uint32_t data_clk_lp_posedge_choose : 3; // [13:11]
- uint32_t clk_lp_ck_inv : 1; // [14]
- uint32_t rclr_mask_en : 1; // [15]
- uint32_t rinc_mask_en : 1; // [16]
- uint32_t hs_enable_mask_en : 1; // [17]
- uint32_t den_csi_inv_bit : 1; // [18]
- uint32_t hsync_csi_inv_bit : 1; // [19]
- uint32_t vsync_csi_inv_bit : 1; // [20]
- uint32_t hs_data2_enable_reg : 1; // [21]
- uint32_t hs_data1_enable_reg : 1; // [22]
- uint32_t hs_data1_enable_choose_bit : 1; // [23]
- uint32_t hs_data1_enable_dr : 1; // [24]
- uint32_t data2_terminal_enable_reg : 1; // [25]
- uint32_t data1_terminal_enable_reg : 1; // [26]
- uint32_t data1_terminal_enable_dr : 1; // [27]
- uint32_t lp_data_interrupt_clr : 1; // [28]
- uint32_t lp_cmd_interrupt_clr : 1; // [29]
- uint32_t lp_data_clr : 1; // [30]
- uint32_t lp_cmd_clr : 1; // [31]
- } b;
- } REG_CAMERA_CSI_CONFIG_REG1_T;
- // csi_config_reg2
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t num_hs_settle_clk : 16; // [15:0]
- uint32_t num_c_term_en : 16; // [31:16]
- } b;
- } REG_CAMERA_CSI_CONFIG_REG2_T;
- // csi_config_reg3
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t __5_0 : 6; // [5:0]
- uint32_t clk_lp_in_choose_bit : 2; // [7:6]
- uint32_t pu_lprx_reg : 1; // [8]
- uint32_t pu_hsrx_reg : 1; // [9]
- uint32_t pu_dr : 1; // [10]
- uint32_t data_pnsw_reg : 1; // [11]
- uint32_t hs_clk_enable_reg : 1; // [12]
- uint32_t hs_clk_enable_choose_bit : 1; // [13]
- uint32_t hs_clk_enable_dr : 1; // [14]
- uint32_t clk_terminal_enable_reg : 1; // [15]
- uint32_t clk_terminal_enable_dr : 1; // [16]
- uint32_t observe_reg_5_low8_choose : 1; // [17]
- uint32_t ecc_error_flag_reg : 1; // [18]
- uint32_t ecc_error_dr : 1; // [19]
- uint32_t csi_channel_sel : 1; // [20]
- uint32_t two_lane_bit_reverse : 1; // [21]
- uint32_t data2_lane_bit_reverse : 1; // [22]
- uint32_t data1_lane_bit_reverse : 1; // [23]
- uint32_t data2_hs_no_mask : 1; // [24]
- uint32_t data1_hs_no_mask : 1; // [25]
- uint32_t pu_lprx_d2_reg : 1; // [26]
- uint32_t pu_lprx_d1_reg : 1; // [27]
- uint32_t __28_28 : 1; // [28]
- uint32_t clk_edge_sel : 1; // [29]
- uint32_t clk_x2_sel : 1; // [30]
- uint32_t single_data_lane_en : 1; // [31]
- } b;
- } REG_CAMERA_CSI_CONFIG_REG3_T;
- // csi_config_reg4
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t num_hs_clk_useful : 31; // [30:0]
- uint32_t num_hs_clk_useful_en : 1; // [31]
- } b;
- } REG_CAMERA_CSI_CONFIG_REG4_T;
- // csi_config_reg5
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t vc_id_set : 2; // [1:0]
- uint32_t data_lp_inv : 1; // [2]
- uint32_t fifo_rclr_8809p_reg : 1; // [3]
- uint32_t fifo_wclr_8809p_reg : 1; // [4]
- uint32_t hs_sync_16bit_8809p_mode : 1; // [5]
- uint32_t d_term_small_8809p_en : 1; // [6]
- uint32_t data_line_inv_8809p_en : 1; // [7]
- uint32_t hs_enable_8809p_mode : 1; // [8]
- uint32_t sp_to_trail_8809p_en : 1; // [9]
- uint32_t trail_wrong_8809p_bypass : 1; // [10]
- uint32_t rinc_trail_8809p_bypass : 1; // [11]
- uint32_t hs_data_enable_8809p_mode : 1; // [12]
- uint32_t hs_clk_enable_8809p_mode : 1; // [13]
- uint32_t data_type_re_check_en : 1; // [14]
- uint32_t sync_id_reg : 8; // [22:15]
- uint32_t sync_id_dr : 1; // [23]
- uint32_t csi_observe_choose_bit : 5; // [28:24]
- uint32_t crc_error_flag_reg : 1; // [29]
- uint32_t crc_error_flag_dr : 1; // [30]
- uint32_t csi_rinc_new_mode_dis : 1; // [31]
- } b;
- } REG_CAMERA_CSI_CONFIG_REG5_T;
- // csi_config_reg6
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t data_type_dp_reg : 6; // [5:0]
- uint32_t data_type_le_reg : 6; // [11:6]
- uint32_t data_type_ls_reg : 6; // [17:12]
- uint32_t data_type_fe_reg : 6; // [23:18]
- uint32_t data_type_fs_reg : 6; // [29:24]
- uint32_t data_type_dp_dr : 1; // [30]
- uint32_t data_type_dr : 1; // [31]
- } b;
- } REG_CAMERA_CSI_CONFIG_REG6_T;
- // csi_config_reg7
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t __1_0 : 2; // [1:0]
- uint32_t data_lane_16bits_mode : 1; // [2]
- uint32_t terminal_2_hs_exchage_8809p : 1; // [3]
- uint32_t terminal_1_hs_exchage_8809p : 1; // [4]
- uint32_t data2_terminal_enable_8809p_dr : 1; // [5]
- uint32_t hs_data2_enable_8809p_dr : 1; // [6]
- uint32_t csi_dout_test_8809p_en : 1; // [7]
- uint32_t csi_dout_test_8809p : 8; // [15:8]
- uint32_t num_d_term_en : 8; // [23:16]
- uint32_t num_hs_settle : 8; // [31:24]
- } b;
- } REG_CAMERA_CSI_CONFIG_REG7_T;
- // csi_obs4
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t hs_data_state : 14; // [13:0]
- uint32_t phy_data_state : 15; // [28:14]
- uint32_t fifo_wfull_almost : 1; // [29]
- uint32_t fifo_wfull : 1; // [30]
- uint32_t fifo_wempty : 1; // [31]
- } b;
- } REG_CAMERA_CSI_OBS4_T;
- // csi_obs5
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t csi_observe_reg_5_low : 8; // [7:0], read only
- uint32_t lp_data_interrupt_flag : 1; // [8], read only
- uint32_t lp_cmd_interrupt_flag : 1; // [9], read only
- uint32_t phy_clk_state : 9; // [18:10], read only
- uint32_t fifo_rcount : 9; // [27:19], read only
- uint32_t crc_error : 1; // [28], read only
- uint32_t err_ecc_corrected_flag : 1; // [29], read only
- uint32_t err_data_corrected_flag : 1; // [30], read only
- uint32_t err_data_zero_flag : 1; // [31], read only
- } b;
- } REG_CAMERA_CSI_OBS5_T;
- // csi_enable
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t csi_enable : 1; // [0]
- uint32_t __31_1 : 31; // [31:1]
- } b;
- } REG_CAMERA_CSI_ENABLE_T;
- // csi_config_reg8
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t dly_sel_clkn_reg : 4; // [3:0]
- uint32_t dly_sel_clkp_reg : 4; // [7:4]
- uint32_t dly_sel_data2_reg : 4; // [11:8]
- uint32_t dly_sel_data1_reg : 4; // [15:12]
- uint32_t vth_sel : 1; // [16]
- uint32_t __31_17 : 15; // [31:17]
- } b;
- } REG_CAMERA_CSI_CONFIG_REG8_T;
- // soft_reset
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t dsp_reset : 1; // [0]
- uint32_t __31_1 : 31; // [31:1]
- } b;
- } REG_CAMERA_SOFT_RESET_T;
- // awb_x1_min
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_x1_min : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_X1_MIN_T;
- // awb_x1_max
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_x1_max : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_X1_MAX_T;
- // awb_y1_min
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_y1_min : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_Y1_MIN_T;
- // awb_y1_max
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_y1_max : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_Y1_MAX_T;
- // awb_x2_min
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_x2_min : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_X2_MIN_T;
- // awb_x2_max
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_x2_max : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_X2_MAX_T;
- // awb_y2_min
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_y2_min : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_Y2_MIN_T;
- // awb_y2_max
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_y2_max : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_Y2_MAX_T;
- // awb_x3_min
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_x3_min : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_X3_MIN_T;
- // awb_x3_max
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_x3_max : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_X3_MAX_T;
- // awb_y3_min
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_y3_min : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_Y3_MIN_T;
- // awb_y3_max
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_y3_max : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_Y3_MAX_T;
- // awb_x4_min
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_x4_min : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_X4_MIN_T;
- // awb_x4_max
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_x4_max : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_X4_MAX_T;
- // awb_y4_min
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_y4_min : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_Y4_MIN_T;
- // awb_y4_max
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_y4_max : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_Y4_MAX_T;
- // awb_x5_min
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_x5_min : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_X5_MIN_T;
- // awb_x5_max
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_x5_max : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_X5_MAX_T;
- // awb_y5_min
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_y5_min : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_Y5_MIN_T;
- // awb_y5_max
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_y5_max : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_Y5_MAX_T;
- // awb_skin_x1_min
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_skin_x1_min : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_SKIN_X1_MIN_T;
- // awb_skin_x1_max
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_skin_x1_max : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_SKIN_X1_MAX_T;
- // awb_skin_y1_min
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_skin_y1_min : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_SKIN_Y1_MIN_T;
- // awb_skin_y1_max
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_skin_y1_max : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_SKIN_Y1_MAX_T;
- // awb_skin_x2_min
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_skin_x2_min : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_SKIN_X2_MIN_T;
- // awb_skin_x2_max
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_skin_x2_max : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_SKIN_X2_MAX_T;
- // awb_skin_y2_min
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_skin_y2_min : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_SKIN_Y2_MIN_T;
- // awb_skin_y2_max
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_skin_y2_max : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_SKIN_Y2_MAX_T;
- // awb_ctd_msb
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_x1_min_msb : 1; // [0]
- uint32_t awb_x1_max_msb : 1; // [1]
- uint32_t awb_y5_min_msb : 1; // [2]
- uint32_t awb_y5_max_msb : 1; // [3]
- uint32_t awb_adj_mode : 2; // [5:4]
- uint32_t awb_ratio_mode : 2; // [7:6]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_CTD_MSB_T;
- // int_dif_thr_mid
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t int_dif_thr_mid : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_INT_DIF_THR_MID_T;
- // lb_soft_rstn
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t lb_soft_rstn : 1; // [0]
- uint32_t __31_1 : 31; // [31:1]
- } b;
- } REG_CAMERA_LB_SOFT_RSTN_T;
- // vsync_end_high
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t vsync_end_high : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_VSYNC_END_HIGH_T;
- // vsync_end_low
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t vsync_end_low : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_VSYNC_END_LOW_T;
- // line_numl
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t line_numl : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_LINE_NUML_T;
- // pix_numl
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t pix_numl : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_PIX_NUML_T;
- // pix_line_numh
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t line_numh : 1; // [0]
- uint32_t pix_numh_rsvd : 3; // [3:1]
- uint32_t pix_numh : 2; // [5:4]
- uint32_t line_numh_rsvd : 2; // [7:6]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_PIX_LINE_NUMH_T;
- // lb_ctrl
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t low_order : 1; // [0]
- uint32_t use_fb_reg : 1; // [1]
- uint32_t not_cvp_reg : 1; // [2]
- uint32_t first_byte_reg : 3; // [5:3]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_CAMERA_LB_CTRL_T;
- // data_format
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t data_format : 2; // [1:0]
- uint32_t __31_2 : 30; // [31:2]
- } b;
- } REG_CAMERA_DATA_FORMAT_T;
- // lb_enable
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t lb_enable : 1; // [0]
- uint32_t __31_1 : 31; // [31:1]
- } b;
- } REG_CAMERA_LB_ENABLE_T;
- // vh_inv
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t hsync_inv : 1; // [0]
- uint32_t vsync_inv : 1; // [1]
- uint32_t __31_2 : 30; // [31:2]
- } b;
- } REG_CAMERA_VH_INV_T;
- // line_cnt_l
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t line_cnt_l : 8; // [7:0], read only
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_LINE_CNT_L_T;
- // line_cnt_h
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t line_cnt_h : 2; // [1:0], read only
- uint32_t __31_2 : 30; // [31:2]
- } b;
- } REG_CAMERA_LINE_CNT_H_T;
- // num_check
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t line_num_check : 1; // [0], read only
- uint32_t byte_num_check : 1; // [1], read only
- uint32_t __3_2 : 2; // [3:2]
- uint32_t line_num_clear : 1; // [4]
- uint32_t byte_num_clear : 1; // [5]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_CAMERA_NUM_CHECK_T;
- // dci_ctrl_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t kl_low_light_fix : 1; // [0]
- uint32_t kl_reg_fix : 1; // [1]
- uint32_t ku_low_light_fix : 1; // [2]
- uint32_t ku_reg_fix : 1; // [3]
- uint32_t hofst : 2; // [5:4]
- uint32_t vbh_sel : 2; // [7:6]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_DCI_CTRL_REG_T;
- // dci_ofst_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t kl_ofstx1 : 4; // [3:0]
- uint32_t ku_ofstx1 : 4; // [7:4]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_DCI_OFST_REG_T;
- // dci_hist_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t dk_histx1 : 4; // [3:0]
- uint32_t br_histx1 : 4; // [7:4]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_DCI_HIST_REG_T;
- // ae_sw_ctrl_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t nexp_sw_in : 4; // [3:0]
- uint32_t __6_4 : 3; // [6:4]
- uint32_t ae_ext_adj_start : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AE_SW_CTRL_REG_T;
- // ae_thr_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t thr_dark : 4; // [3:0]
- uint32_t thr_bright : 4; // [7:4]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AE_THR_REG_T;
- // ae_misc_ctrl_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ofst_dec_low_sel : 2; // [1:0]
- uint32_t ofst_dec_high_sel : 2; // [3:2]
- uint32_t force_adj1 : 1; // [4]
- uint32_t force_adj2 : 1; // [5]
- uint32_t force_adj3 : 1; // [6]
- uint32_t index_ofst_no_step : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AE_MISC_CTRL_REG_T;
- // csup_xx_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t x_low : 4; // [3:0]
- uint32_t x_high : 4; // [7:4]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CSUP_XX_REG_T;
- // contr_ythr_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t csup_gain_low_th_h : 1; // [0]
- uint32_t csup_gain_high_th : 3; // [3:1]
- uint32_t fixed_contr_ythr : 4; // [7:4]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CONTR_YTHR_REG_T;
- // contr_yave_offset_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t yave_offset_reg : 6; // [5:0]
- uint32_t ythr_sel : 1; // [6]
- uint32_t yave_offset_sign : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CONTR_YAVE_OFFSET_REG_T;
- // contr_ku_lo_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ku : 7; // [6:0]
- uint32_t ku_sign : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CONTR_KU_LO_REG_T;
- // contr_kl_lo_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t kl : 7; // [6:0]
- uint32_t kl_sign : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CONTR_KL_LO_REG_T;
- // contr_ku_mid_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ku : 7; // [6:0]
- uint32_t ku_sign : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CONTR_KU_MID_REG_T;
- // contr_kl_mid_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t kl : 7; // [6:0]
- uint32_t kl_sign : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CONTR_KL_MID_REG_T;
- // contr_ku_hi_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ku : 7; // [6:0]
- uint32_t ku_sign : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CONTR_KU_HI_REG_T;
- // contr_kl_hi_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t kl : 7; // [6:0]
- uint32_t kl_sign : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CONTR_KL_HI_REG_T;
- // luma_offset_lo_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t offset : 6; // [5:0]
- uint32_t algo_sel : 1; // [6]
- uint32_t offset_sign : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_LUMA_OFFSET_LO_REG_T;
- // luma_offset_mid_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t offset : 6; // [5:0]
- uint32_t algo_sel : 1; // [6]
- uint32_t offset_sign : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_LUMA_OFFSET_MID_REG_T;
- // luma_offset_hi_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t offset : 6; // [5:0]
- uint32_t algo_sel : 1; // [6]
- uint32_t offset_sign : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_LUMA_OFFSET_HI_REG_T;
- // u_gain_lo_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t u_gain_lo_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_U_GAIN_LO_REG_T;
- // v_gain_lo_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t v_gain_lo_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_V_GAIN_LO_REG_T;
- // u_gain_mid_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t u_gain_mid_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_U_GAIN_MID_REG_T;
- // v_gain_mid_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t v_gain_mid_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_V_GAIN_MID_REG_T;
- // u_gain_hi_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t u_gain_hi_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_U_GAIN_HI_REG_T;
- // v_gain_hi_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t v_gain_hi_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_V_GAIN_HI_REG_T;
- // again_sel_th0_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t contr_gain_low_th : 3; // [2:0]
- uint32_t again_sel_th0_rsvd : 1; // [3]
- uint32_t contr_gain_hi_th : 3; // [6:4]
- uint32_t __31_7 : 25; // [31:7]
- } b;
- } REG_CAMERA_AGAIN_SEL_TH0_REG_T;
- // awb_cc_type_ctrl_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t cc_type_mode : 4; // [3:0]
- uint32_t cc_gain_hi_th : 3; // [6:4]
- uint32_t luma_first : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_CC_TYPE_CTRL_REG_T;
- // awb_cc_type_th_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t r_big_th : 4; // [3:0]
- uint32_t b_big_th : 4; // [7:4]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_CC_TYPE_TH_REG_T;
- // isp_wrapper_ctrl_1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t pout_mode : 2; // [1:0]
- uint32_t yuv_mode : 2; // [3:2]
- uint32_t vsync_toggle : 1; // [4]
- uint32_t mipi_rstn : 1; // [5]
- uint32_t hsync_fix : 1; // [6]
- uint32_t __31_7 : 25; // [31:7]
- } b;
- } REG_CAMERA_ISP_WRAPPER_CTRL_1_T;
- // top_dummy
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t top_dummy : 7; // [6:0]
- uint32_t __31_7 : 25; // [31:7]
- } b;
- } REG_CAMERA_TOP_DUMMY_T;
- // left_dummy
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t left_dummy : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_LEFT_DUMMY_T;
- // isp_wrapper_ctrl_2
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t rgb_mode_reg : 3; // [2:0]
- uint32_t sub_mode : 1; // [3]
- uint32_t mon_mode_reg : 1; // [4]
- uint32_t oclk_inv_reg : 1; // [5]
- uint32_t isp_out_en : 1; // [6]
- uint32_t __31_7 : 25; // [31:7]
- } b;
- } REG_CAMERA_ISP_WRAPPER_CTRL_2_T;
- // line_num_l_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t line_num_l_reg : 6; // [5:0]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_CAMERA_LINE_NUM_L_REG_T;
- // pix_num_l_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t pix_num_l_reg : 7; // [6:0]
- uint32_t csi_mon_reg : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_PIX_NUM_L_REG_T;
- // v_dummy
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t vbot_dummy_reg : 4; // [3:0]
- uint32_t vtop_dummy_reg : 4; // [7:4]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_V_DUMMY_T;
- // scg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t kukl_sel : 1; // [0]
- uint32_t reg94_rd_sel : 1; // [1]
- uint32_t bayer_out_sel : 1; // [2]
- uint32_t csup_en : 1; // [3]
- uint32_t y_gamma_en : 2; // [5:4]
- uint32_t yuv_sdi_en : 1; // [6]
- uint32_t reg92_rd_sel : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_SCG_T;
- // y_gamma_b0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t y_gamma_b0 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_Y_GAMMA_B0_T;
- // y_gamma_b1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t y_gamma_b1 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_Y_GAMMA_B1_T;
- // y_gamma_b2
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t y_gamma_b2 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_Y_GAMMA_B2_T;
- // y_gamma_b4
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t y_gamma_b4 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_Y_GAMMA_B4_T;
- // y_gamma_b6
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t y_gamma_b6 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_Y_GAMMA_B6_T;
- // y_gamma_b8
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t y_gamma_b8 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_Y_GAMMA_B8_T;
- // y_gamma_b10
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t y_gamma_b10 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_Y_GAMMA_B10_T;
- // y_gamma_b12
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t y_gamma_b12 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_Y_GAMMA_B12_T;
- // y_gamma_b16
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t y_gamma_b16 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_Y_GAMMA_B16_T;
- // y_gamma_b20
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t y_gamma_b20 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_Y_GAMMA_B20_T;
- // y_gamma_b24
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t y_gamma_b24 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_Y_GAMMA_B24_T;
- // y_gamma_b28
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t y_gamma_b28 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_Y_GAMMA_B28_T;
- // y_gamma_b32
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t y_gamma_b32 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_Y_GAMMA_B32_T;
- // r_awb_gain_in
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t r_awb_gain_in : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_R_AWB_GAIN_IN_T;
- // g_awb_gain_in
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t g_awb_gain_in : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_G_AWB_GAIN_IN_T;
- // b_awb_gain_in
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t b_awb_gain_in : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_B_AWB_GAIN_IN_T;
- // r_drc_gain_in
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t r_drc_gain_in : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_R_DRC_GAIN_IN_T;
- // gr_drc_gain_in
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t gr_drc_gain_in : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_GR_DRC_GAIN_IN_T;
- // gb_drc_gain_in
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t gb_drc_gain_in : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_GB_DRC_GAIN_IN_T;
- // b_drc_gain_in
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t b_drc_gain_in : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_B_DRC_GAIN_IN_T;
- // ae_ctrl
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ana_gain_in : 6; // [5:0]
- uint32_t ae_update_en : 1; // [6]
- uint32_t ae_en : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AE_CTRL_T;
- // ae_ctrl2
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_adj_sel : 2; // [1:0]
- uint32_t gap_ae : 1; // [2]
- uint32_t gap_be : 1; // [3]
- uint32_t ae_action_period : 3; // [6:4]
- uint32_t yave_mon_sel : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AE_CTRL2_T;
- // ae_ctrl3
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t yave_use_mean : 2; // [1:0]
- uint32_t yave_diff_thr_reg : 2; // [3:2]
- uint32_t yave_sel : 2; // [5:4]
- uint32_t yave_plus_bh_mode : 1; // [6]
- uint32_t ywave_plus_bh_mode : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AE_CTRL3_T;
- // ae_ctrl4
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_hist_big_en : 1; // [0]
- uint32_t ae_hist_too_big_en : 1; // [1]
- uint32_t hist_ofst0 : 2; // [3:2]
- uint32_t index_ofst0 : 2; // [5:4]
- uint32_t index_ofst1 : 2; // [7:6]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AE_CTRL4_T;
- // ae_win_start
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t pcnt_left : 4; // [3:0]
- uint32_t lcnt_top : 4; // [7:4]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AE_WIN_START_T;
- // ae_win_width
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_win_width : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AE_WIN_WIDTH_T;
- // ae_win_height
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_win_height : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AE_WIN_HEIGHT_T;
- // exp_init
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t exp_init : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_EXP_INIT_T;
- // exp_ceil_init
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t exp_ceil_init : 4; // [3:0]
- uint32_t __31_4 : 28; // [31:4]
- } b;
- } REG_CAMERA_EXP_CEIL_INIT_T;
- // ae_exp_1e
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_exp_1e : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AE_EXP_1E_T;
- // ae_diff_thr
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t thr2_dark : 4; // [3:0]
- uint32_t thr2_bright : 4; // [7:4]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AE_DIFF_THR_T;
- // ae_bh_sel
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bh_factor_indoor : 3; // [2:0]
- uint32_t bh_factor_outdoor : 3; // [5:3]
- uint32_t bh_mean_sel : 2; // [7:6]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AE_BH_SEL_T;
- // awb_ctrl
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_sw_mon_en : 1; // [0]
- uint32_t fast_2x : 1; // [1]
- uint32_t fast_4x : 1; // [2]
- uint32_t awb_action_period : 3; // [5:3]
- uint32_t awb_update_en : 1; // [6]
- uint32_t awb_en : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_CTRL_T;
- // awb_ctrl2
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_mon_sel : 3; // [2:0]
- uint32_t awb_vld_sel : 1; // [3]
- uint32_t awb_vld_mode : 3; // [6:4]
- uint32_t awb_adj : 1; // [7], read only
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_CTRL2_T;
- // awb_y_max
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_y_max : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_Y_MAX_T;
- // awb_stop
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_stop_cb_neg_level : 2; // [1:0]
- uint32_t awb_stop_cb_pos_level : 2; // [3:2]
- uint32_t awb_stop_cr_neg_level : 2; // [5:4]
- uint32_t awb_stop_cr_pos_level : 2; // [7:6]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_STOP_T;
- // awb_algo
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_algo : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_ALGO_T;
- // awb_ctrl3
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t cr_ofst_lt1x : 1; // [0]
- uint32_t cr_ofst_gt1x : 1; // [1]
- uint32_t cb_ofst_lt1x : 1; // [2]
- uint32_t cb_ofst_gt1x : 1; // [3]
- uint32_t awb_sum_vld_sel : 1; // [4]
- uint32_t awb_stop_sel_reg : 1; // [5]
- uint32_t awb_skin_sel : 1; // [6]
- uint32_t awb_algo_mode : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_CTRL3_T;
- // awb_ctrl4
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_ctrl4 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_CTRL4_T;
- // dig_gain_in
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t dig_gain_in : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_DIG_GAIN_IN_T;
- // y_init_thr
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t y_init_mode : 1; // [0]
- uint32_t y_low_en : 1; // [1]
- uint32_t y_high_en : 1; // [2]
- uint32_t y_low_thr : 5; // [7:3]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_Y_INIT_THR_T;
- // y_ave_target
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t y_ave_target : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_Y_AVE_TARGET_T;
- // y_lmt_offset
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t y_low_limit : 3; // [2:0]
- uint32_t y_lmt_ofst : 1; // [3]
- uint32_t y_high_limit : 3; // [6:4]
- uint32_t __31_7 : 25; // [31:7]
- } b;
- } REG_CAMERA_Y_LMT_OFFSET_T;
- // again_sel_th2
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ynr_gain_low_th : 3; // [2:0]
- uint32_t again_sel_th2 : 1; // [3]
- uint32_t ynr_gain_hi_th : 3; // [6:4]
- uint32_t __31_7 : 25; // [31:7]
- } b;
- } REG_CAMERA_AGAIN_SEL_TH2_T;
- // yave_target_chg1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t yave_target_ofst_l : 4; // [3:0]
- uint32_t yave_target_ofst_h : 4; // [7:4]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_YAVE_TARGET_CHG1_T;
- // image_eff_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t grey_en : 1; // [0]
- uint32_t sepia_en : 1; // [1]
- uint32_t negative_en : 1; // [2]
- uint32_t color_bar_en : 1; // [3]
- uint32_t image_eff_rsvd : 1; // [4]
- uint32_t reg93_sel : 1; // [5]
- uint32_t reg94_sel : 1; // [6]
- uint32_t sharp_mon : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_IMAGE_EFF_REG_T;
- // ywave_out
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ywave_out : 8; // [7:0], read only
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_YWAVE_OUT_T;
- // ae_bright_hist
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_bright_hist : 8; // [7:0], read only
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AE_BRIGHT_HIST_T;
- // yave_out
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t yave_out : 8; // [7:0], read only
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_YAVE_OUT_T;
- // exp_out
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t exp_out : 8; // [7:0], read only
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_EXP_OUT_T;
- // misc_out
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t exp_out_h : 3; // [2:0], read only
- uint32_t awb_ok : 1; // [3], read only
- uint32_t nexp_sel : 2; // [5:4], read only
- uint32_t fixed_0 : 1; // [6], read only
- uint32_t ae_ok : 1; // [7], read only
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_MISC_OUT_T;
- // awb_debug_out
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_crgt : 2; // [1:0], read only
- uint32_t awb_cbgt : 2; // [3:2], read only
- uint32_t awb_crsum_sign : 1; // [4], read only
- uint32_t awb_cbsum_sign : 1; // [5], read only
- uint32_t awb_cbcr : 1; // [6], read only
- uint32_t awb_sum_vld : 1; // [7], read only
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_DEBUG_OUT_T;
- // mono_color
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t mono_color : 8; // [7:0], read only
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_MONO_COLOR_T;
- // r_awb_gain
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t r_awb_gain : 8; // [7:0], read only
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_R_AWB_GAIN_T;
- // b_awb_gain
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t b_awb_gain : 8; // [7:0], read only
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_B_AWB_GAIN_T;
- // misc_status
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ana_gain_out : 6; // [5:0], read only
- uint32_t cc_type : 1; // [6], read only
- uint32_t is_outdoor : 1; // [7], read only
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_MISC_STATUS_T;
- // yave_contr
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t yave_contr : 8; // [7:0], read only
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_YAVE_CONTR_T;
- // gamma_type
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t gamma_type_mode : 3; // [2:0]
- uint32_t gamma_gain_hi_th : 3; // [5:3]
- uint32_t vgas : 2; // [7:6]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_GAMMA_TYPE_T;
- // blc_line
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t blc_line : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BLC_LINE_T;
- // lsc_xx
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t x_low : 4; // [3:0]
- uint32_t x_high : 4; // [7:4]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_LSC_XX_T;
- // lsc_blc_gain_th
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t lsc_gain_low_th : 3; // [2:0]
- uint32_t lsc_gain_hi_th : 3; // [5:3]
- uint32_t csup_gain_low_th : 2; // [7:6]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_LSC_BLC_GAIN_TH_T;
- // blc_ctrl
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t blc_out_mode : 2; // [1:0]
- uint32_t line_init_h : 1; // [2]
- uint32_t blc_ofst_sign : 1; // [3]
- uint32_t blc_mode : 2; // [5:4]
- uint32_t blc_sel : 1; // [6]
- uint32_t blc_en : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BLC_CTRL_T;
- // blc_init
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t blc00_ofst : 4; // [3:0]
- uint32_t blc01_ofst : 4; // [7:4]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BLC_INIT_T;
- // blc_offset
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t blc10_ofst : 4; // [3:0]
- uint32_t blc11_ofst : 4; // [7:4]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BLC_OFFSET_T;
- // blc_thr
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t blc_thr : 6; // [5:0]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_CAMERA_BLC_THR_T;
- // lsc_xy_cent
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t y_cent : 4; // [3:0]
- uint32_t x_cent : 4; // [7:4]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_LSC_XY_CENT_T;
- // cnr_dif_thr
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t cnr_v_en : 1; // [0]
- uint32_t cnr_h_en : 1; // [1]
- uint32_t vcnr_sel : 1; // [2]
- uint32_t edge_mon : 1; // [3]
- uint32_t awb_skin_mode : 3; // [6:4]
- uint32_t gamma_type : 1; // [7], read only
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CNR_DIF_THR_T;
- // cnr_thr
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t cnr_thr_v : 3; // [2:0]
- uint32_t edge_en_v : 1; // [3]
- uint32_t cnr_thr_h : 3; // [6:4]
- uint32_t edge_en_h : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CNR_THR_T;
- // gamma_ctrl
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t gamma_p_id : 1; // [0]
- uint32_t gamma_l_id : 1; // [1]
- uint32_t gamma_en_non_outdoor : 1; // [2]
- uint32_t gamma_en_outdoor : 1; // [3]
- uint32_t lsc_p_id : 1; // [4]
- uint32_t lsc_l_id : 1; // [5]
- uint32_t lsc_en_non_outdoor : 1; // [6]
- uint32_t lsc_en_outdoor : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_GAMMA_CTRL_T;
- // bayer_gamma_b0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma_b0 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA_B0_T;
- // bayer_gamma_b1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma_b1 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA_B1_T;
- // bayer_gamma_b2
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma_b2 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA_B2_T;
- // bayer_gamma_b3
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma_b3 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA_B3_T;
- // bayer_gamma_b4
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma_b4 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA_B4_T;
- // bayer_gamma_b6
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma_b6 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA_B6_T;
- // bayer_gamma_b8
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma_b8 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA_B8_T;
- // bayer_gamma_b10
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma_b10 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA_B10_T;
- // bayer_gamma_b12
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma_b12 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA_B12_T;
- // bayer_gamma_b16
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma_b16 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA_B16_T;
- // bayer_gamma_b20
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma_b20 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA_B20_T;
- // bayer_gamma_b24
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma_b24 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA_B24_T;
- // bayer_gamma_b28
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma_b28 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA_B28_T;
- // bayer_gamma_b32
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma_b32 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA_B32_T;
- // bayer_gamma_b36
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma_b36 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA_B36_T;
- // bayer_gamma_b40
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma_b40 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA_B40_T;
- // bayer_gamma_b48
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma_b48 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA_B48_T;
- // bayer_gamma_b56
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma_b56 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA_B56_T;
- // bayer_gamma_b64
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma_b64 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA_B64_T;
- // blc_out0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t blc_out0 : 8; // [7:0], read only
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BLC_OUT0_T;
- // blc_out1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t blc_out1 : 8; // [7:0], read only
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BLC_OUT1_T;
- // dpc_ctrl_0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t dpc_on : 1; // [0]
- uint32_t adp_med_sel : 1; // [1]
- uint32_t ana_gain_cmp : 2; // [3:2]
- uint32_t rsvd : 1; // [4]
- uint32_t nrf_gaus_sel : 1; // [5]
- uint32_t bayer_nr_on : 1; // [6]
- uint32_t cc_on : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_DPC_CTRL_0_T;
- // dpc_ctrl_1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t int_flg_cmp : 2; // [1:0]
- uint32_t abs_sign_all_cmp : 2; // [3:2]
- uint32_t int_dif_sel : 1; // [4]
- uint32_t __31_5 : 27; // [31:5]
- } b;
- } REG_CAMERA_DPC_CTRL_1_T;
- // y_thr_lo
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t y_thr_lo : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_Y_THR_LO_T;
- // y_thr_mid
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t y_thr_mid : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_Y_THR_MID_T;
- // y_thr_hi
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t y_thr_hi : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_Y_THR_HI_T;
- // intp_cfa_hv
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t cfa_v_thr_l : 3; // [2:0]
- uint32_t rsvd1 : 1; // [3]
- uint32_t cfa_h_thr_l : 3; // [6:4]
- uint32_t rsvd2 : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_INTP_CFA_HV_T;
- // manual_adj
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t b_gain_adj : 1; // [0]
- uint32_t g_gain_adj : 1; // [1]
- uint32_t r_gain_adj : 1; // [2]
- uint32_t ana_gain_adj : 1; // [3]
- uint32_t adj_direction : 1; // [4]
- uint32_t index_manual_adj : 1; // [5]
- uint32_t in_capture_awb : 1; // [6]
- uint32_t in_capture_ae : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_MANUAL_ADJ_T;
- // dpc_int_thr_lo
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t dpc_int_thr_lo : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_DPC_INT_THR_LO_T;
- // dpc_int_thr_hi
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t dpc_int_thr_hi : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_DPC_INT_THR_HI_T;
- // again_sel_th1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bnr_gain_low_th : 3; // [2:0]
- uint32_t again_sel_th1_rsvd : 1; // [3]
- uint32_t bnr_gain_hi_th : 3; // [6:4]
- uint32_t __31_7 : 25; // [31:7]
- } b;
- } REG_CAMERA_AGAIN_SEL_TH1_T;
- // dpc_nr_lf_str_lo
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t dpc_nr_lf_str_lo : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_DPC_NR_LF_STR_LO_T;
- // dpc_nr_hf_str_lo
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t dpc_nr_hf_str_lo : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_DPC_NR_HF_STR_LO_T;
- // dpc_nr_area_thr_lo
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t dpc_nr_area_thr_lo : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_DPC_NR_AREA_THR_LO_T;
- // dpc_nr_lf_str_mid
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t dpc_nr_lf_str_mid : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_DPC_NR_LF_STR_MID_T;
- // dpc_nr_hf_str_mid
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t dpc_nr_hf_str_mid : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_DPC_NR_HF_STR_MID_T;
- // dpc_nr_area_thr_mid
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t dpc_nr_area_thr_mid : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_DPC_NR_AREA_THR_MID_T;
- // dpc_nr_lf_str_hi
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t dpc_nr_lf_str_hi : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_DPC_NR_LF_STR_HI_T;
- // dpc_nr_hf_str_hi
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t dpc_nr_hf_str_hi : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_DPC_NR_HF_STR_HI_T;
- // dpc_nr_area_thr_hi
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t dpc_nr_area_thr_hi : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_DPC_NR_AREA_THR_HI_T;
- // intp_ctrl
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t pid_inv_en : 1; // [0]
- uint32_t lid_inv_en : 1; // [1]
- uint32_t gfilter_en : 1; // [2]
- uint32_t gfilter3_en : 1; // [3]
- uint32_t gfliter5_en : 1; // [4]
- uint32_t sort_sel : 3; // [7:5]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_INTP_CTRL_T;
- // intp_cfa_h_thr
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t intp_cfa_h_thr : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_INTP_CFA_H_THR_T;
- // intp_cfa_v_thr
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t intp_cfa_v_thr : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_INTP_CFA_V_THR_T;
- // intp_grgb_sel_lmt
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t intp_grgb_sel_lmt : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_INTP_GRGB_SEL_LMT_T;
- // intp_gf_lmt_thr
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t intp_gf_lmt_thr : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_INTP_GF_LMT_THR_T;
- // cc_r_offset
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t cc_r_offset : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CC_R_OFFSET_T;
- // cc_g_offset
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t cc_g_offset : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CC_G_OFFSET_T;
- // cc_b_offset
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t cc_b_offset : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CC_B_OFFSET_T;
- // cc_00
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t cc_00 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CC_00_T;
- // cc_01
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t cc_01 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CC_01_T;
- // cc_10
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t cc_10 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CC_10_T;
- // cc_11
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t cc_11 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CC_11_T;
- // cc_20
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t cc_20 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CC_20_T;
- // cc_21
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t cc_21 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CC_21_T;
- // cc_r_offset_post
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t cc_r_offset_post : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CC_R_OFFSET_POST_T;
- // cc_g_offset_post
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t cc_g_offset_post : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CC_G_OFFSET_POST_T;
- // cc_b_offset_post
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t cc_b_offset_post : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CC_B_OFFSET_POST_T;
- // cc2_r_offset
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t cc2_r_offset : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CC2_R_OFFSET_T;
- // cc2_g_offset
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t cc2_g_offset : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CC2_G_OFFSET_T;
- // cc2_b_offset
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t cc2_b_offset : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CC2_B_OFFSET_T;
- // cc2_00
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t cc2_00 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CC2_00_T;
- // cc2_01
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t cc2_01 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CC2_01_T;
- // cc2_10
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t cc2_10 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CC2_10_T;
- // cc2_11
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t cc2_11 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CC2_11_T;
- // cc2_20
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t cc2_20 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CC2_20_T;
- // cc2_21
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t cc2_21 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CC2_21_T;
- // sharp_lmt
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t sharp_lmt : 7; // [6:0]
- uint32_t sharp_final_h : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_SHARP_LMT_T;
- // sharp_mode
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t sharp_cmp_gap_lo : 4; // [3:0]
- uint32_t sharp_final : 2; // [5:4]
- uint32_t sharp_sel : 1; // [6]
- uint32_t rgb_test_pattern : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_SHARP_MODE_T;
- // sharp_gain_str_lo
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t sharp_gain_str_lo : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_SHARP_GAIN_STR_LO_T;
- // sharp_nr_area_thr_lo
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t sharp_nr_area_thr_lo : 7; // [6:0]
- uint32_t __31_7 : 25; // [31:7]
- } b;
- } REG_CAMERA_SHARP_NR_AREA_THR_LO_T;
- // sharp_gain_str_mid
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t sharp_gain_str_mid : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_SHARP_GAIN_STR_MID_T;
- // sharp_nr_area_thr_mid
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t sharp_nr_area_thr_mid : 7; // [6:0]
- uint32_t __31_7 : 25; // [31:7]
- } b;
- } REG_CAMERA_SHARP_NR_AREA_THR_MID_T;
- // sharp_gain_str_hi
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t sharp_gain_str_hi : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_SHARP_GAIN_STR_HI_T;
- // sharp_nr_area_thr_hi
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t sharp_nr_area_thr_hi : 7; // [6:0]
- uint32_t __31_7 : 25; // [31:7]
- } b;
- } REG_CAMERA_SHARP_NR_AREA_THR_HI_T;
- // ynr_ctrl_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ynr_on : 1; // [0]
- uint32_t ynr_edge_methode : 2; // [2:1]
- uint32_t sharp_on : 1; // [3]
- uint32_t sharp_plus_mode : 2; // [5:4]
- uint32_t y_ae_sel : 2; // [7:6]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_YNR_CTRL_REG_T;
- // ynr_lf_method_str
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ynr_lf_method_str : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_YNR_LF_METHOD_STR_T;
- // ynr_lf_str_lo
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ynr_lf_str_lo : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_YNR_LF_STR_LO_T;
- // ynr_hf_str_lo
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ynr_hf_str_lo : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_YNR_HF_STR_LO_T;
- // ynr_area_thr_lo
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ynr_area_thr_lo : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_YNR_AREA_THR_LO_T;
- // ynr_lf_str_mid
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ynr_lf_str_mid : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_YNR_LF_STR_MID_T;
- // ynr_hf_str_mid
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ynr_hf_str_mid : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_YNR_HF_STR_MID_T;
- // ynr_area_thr_mid
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ynr_area_thr_mid : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_YNR_AREA_THR_MID_T;
- // ynr_lf_str_hi
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ynr_lf_str_hi : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_YNR_LF_STR_HI_T;
- // ynr_hf_str_hi
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ynr_hf_str_hi : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_YNR_HF_STR_HI_T;
- // ynr_area_thr_hi
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ynr_area_thr_hi : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_YNR_AREA_THR_HI_T;
- // hue_sin_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t hue_sin_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_HUE_SIN_REG_T;
- // hue_cos_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t hue_cosx_reg : 7; // [6:0]
- uint32_t sin_sign_reg : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_HUE_COS_REG_T;
- // cnr_1d_ctrl_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t cnr_dif_thr_mid : 4; // [3:0]
- uint32_t cnr_1d_on : 1; // [4]
- uint32_t satur_on : 1; // [5]
- uint32_t hue_on : 1; // [6]
- uint32_t __31_7 : 25; // [31:7]
- } b;
- } REG_CAMERA_CNR_1D_CTRL_REG_T;
- // cnr_xx_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t cnr_dif_thr_low : 4; // [3:0]
- uint32_t cnr_dif_thr_high : 4; // [7:4]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CNR_XX_REG_T;
- // in5_low_th_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t in5_low_th_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_IN5_LOW_TH_REG_T;
- // in5_high_th_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t in5_high_th_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_IN5_HIGH_TH_REG_T;
- // p2_up_r_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t p2_up_r_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_P2_UP_R_REG_T;
- // p2_up_g_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t p2_up_g_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_P2_UP_G_REG_T;
- // p2_up_b_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t p2_up_b_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_P2_UP_B_REG_T;
- // p2_down_r_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t p2_down_r_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_P2_DOWN_R_REG_T;
- // p2_down_g_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t p2_down_g_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_P2_DOWN_G_REG_T;
- // p2_down_b_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t p2_down_b_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_P2_DOWN_B_REG_T;
- // p2_left_r_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t p2_left_r_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_P2_LEFT_R_REG_T;
- // p2_left_g_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t p2_left_g_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_P2_LEFT_G_REG_T;
- // p2_left_b_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t p2_left_b_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_P2_LEFT_B_REG_T;
- // p2_right_r_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t p2_right_r_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_P2_RIGHT_R_REG_T;
- // p2_right_g_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t p2_right_g_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_P2_RIGHT_G_REG_T;
- // p2_right_b_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t p2_right_b_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_P2_RIGHT_B_REG_T;
- // p4_q1_r_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t p4_q1_r_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_P4_Q1_R_REG_T;
- // p4_q1_g_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t p4_q1_g_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_P4_Q1_G_REG_T;
- // p4_q1_b_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t p4_q1_b_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_P4_Q1_B_REG_T;
- // p4_q2_r_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t p4_q2_r_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_P4_Q2_R_REG_T;
- // p4_q2_g_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t p4_q2_g_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_P4_Q2_G_REG_T;
- // p4_q2_b_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t p4_q2_b_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_P4_Q2_B_REG_T;
- // p4_q3_r_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t p4_q3_r_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_P4_Q3_R_REG_T;
- // p4_q3_g_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t p4_q3_g_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_P4_Q3_G_REG_T;
- // p4_q3_b_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t p4_q3_b_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_P4_Q3_B_REG_T;
- // p4_q4_r_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t p4_q4_r_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_P4_Q4_R_REG_T;
- // p4_q4_g_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t p4_q4_g_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_P4_Q4_G_REG_T;
- // p4_q4_b_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t p4_q4_b_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_P4_Q4_B_REG_T;
- // ae_e00_sta_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_e00_sta_line : 6; // [5:0]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_CAMERA_AE_E00_STA_REG_T;
- // ae_e00_num_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_e00_num : 4; // [3:0]
- uint32_t ae_e00_interval : 2; // [5:4]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_CAMERA_AE_E00_NUM_REG_T;
- // ae_e01_sta_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_e01_sta_line : 6; // [5:0]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_CAMERA_AE_E01_STA_REG_T;
- // ae_e01_num_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_e01_num : 4; // [3:0]
- uint32_t ae_e01_interval : 3; // [6:4]
- uint32_t __31_7 : 25; // [31:7]
- } b;
- } REG_CAMERA_AE_E01_NUM_REG_T;
- // ae_e02_sta_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_e02_sta_line : 7; // [6:0]
- uint32_t __31_7 : 25; // [31:7]
- } b;
- } REG_CAMERA_AE_E02_STA_REG_T;
- // ae_e02_num_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_e02_num : 4; // [3:0]
- uint32_t ae_e02_interval : 4; // [7:4]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AE_E02_NUM_REG_T;
- // ae_e1_sta_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_e1_sta_gain : 6; // [5:0]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_CAMERA_AE_E1_STA_REG_T;
- // ae_e1_num_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_e1_num_reg : 4; // [3:0]
- uint32_t __31_4 : 28; // [31:4]
- } b;
- } REG_CAMERA_AE_E1_NUM_REG_T;
- // ae_e2_sta_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_e2_sta_gain : 6; // [5:0]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_CAMERA_AE_E2_STA_REG_T;
- // ae_e2_num_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_e2_num_reg : 4; // [3:0]
- uint32_t __31_4 : 28; // [31:4]
- } b;
- } REG_CAMERA_AE_E2_NUM_REG_T;
- // ae_e3_sta_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_e3_sta_gain : 6; // [5:0]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_CAMERA_AE_E3_STA_REG_T;
- // ae_e3_num_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_e3_num_reg : 4; // [3:0]
- uint32_t __31_4 : 28; // [31:4]
- } b;
- } REG_CAMERA_AE_E3_NUM_REG_T;
- // ae_e4_sta_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_e4_sta_gain : 6; // [5:0]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_CAMERA_AE_E4_STA_REG_T;
- // ae_e4_num_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_e4_num_reg : 5; // [4:0]
- uint32_t __31_5 : 27; // [31:5]
- } b;
- } REG_CAMERA_AE_E4_NUM_REG_T;
- // ae_e5_sta_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_e5_sta_gain : 6; // [5:0]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_CAMERA_AE_E5_STA_REG_T;
- // ae_e5_num_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_e5_num_reg : 5; // [4:0]
- uint32_t __31_5 : 27; // [31:5]
- } b;
- } REG_CAMERA_AE_E5_NUM_REG_T;
- // ae_e6_sta_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_e6_sta_gain : 6; // [5:0]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_CAMERA_AE_E6_STA_REG_T;
- // ae_e6_num_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_e6_num_reg : 4; // [3:0]
- uint32_t __31_4 : 28; // [31:4]
- } b;
- } REG_CAMERA_AE_E6_NUM_REG_T;
- // ae_e7_sta_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_e7_sta_gain : 6; // [5:0]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_CAMERA_AE_E7_STA_REG_T;
- // ae_e7_num_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_e7_num_reg : 4; // [3:0]
- uint32_t __31_4 : 28; // [31:4]
- } b;
- } REG_CAMERA_AE_E7_NUM_REG_T;
- // ae_e8_sta_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_e8_sta_gain : 6; // [5:0]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_CAMERA_AE_E8_STA_REG_T;
- // ae_e8_num_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_e8_num_reg : 4; // [3:0]
- uint32_t __31_4 : 28; // [31:4]
- } b;
- } REG_CAMERA_AE_E8_NUM_REG_T;
- // ae_e9_sta_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_e9_sta_gain : 6; // [5:0]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_CAMERA_AE_E9_STA_REG_T;
- // ae_e9_num_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_e9_num_reg : 4; // [3:0]
- uint32_t __31_4 : 28; // [31:4]
- } b;
- } REG_CAMERA_AE_E9_NUM_REG_T;
- // ae_ea_sta_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_ea_sta_gain : 6; // [5:0]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_CAMERA_AE_EA_STA_REG_T;
- // ae_ea_num_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_ea_num_reg : 4; // [3:0]
- uint32_t __31_4 : 28; // [31:4]
- } b;
- } REG_CAMERA_AE_EA_NUM_REG_T;
- // ae_eb_sta_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_eb_sta_gain : 6; // [5:0]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_CAMERA_AE_EB_STA_REG_T;
- // ae_eb_num_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_eb_num_reg : 4; // [3:0]
- uint32_t __31_4 : 28; // [31:4]
- } b;
- } REG_CAMERA_AE_EB_NUM_REG_T;
- // ae_ec_sta_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_ec_sta_gain : 6; // [5:0]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_CAMERA_AE_EC_STA_REG_T;
- // ae_ec_num_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_ec_num_reg : 4; // [3:0]
- uint32_t __31_4 : 28; // [31:4]
- } b;
- } REG_CAMERA_AE_EC_NUM_REG_T;
- // ae_ed_sta_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_ed_sta_gain : 6; // [5:0]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_CAMERA_AE_ED_STA_REG_T;
- // ae_ed_num_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_ed_num_reg : 4; // [3:0]
- uint32_t __31_4 : 28; // [31:4]
- } b;
- } REG_CAMERA_AE_ED_NUM_REG_T;
- // bayer_gamma2_b0
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma2_b0 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA2_B0_T;
- // bayer_gamma2_b1
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma2_b1 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA2_B1_T;
- // bayer_gamma2_b2
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma2_b2 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA2_B2_T;
- // bayer_gamma2_b3
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma2_b3 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA2_B3_T;
- // bayer_gamma2_b4
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma2_b4 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA2_B4_T;
- // bayer_gamma2_b6
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma2_b6 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA2_B6_T;
- // bayer_gamma2_b8
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma2_b8 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA2_B8_T;
- // bayer_gamma2_b10
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma2_b10 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA2_B10_T;
- // bayer_gamma2_b12
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma2_b12 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA2_B12_T;
- // bayer_gamma2_b16
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma2_b16 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA2_B16_T;
- // bayer_gamma2_b20
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma2_b20 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA2_B20_T;
- // bayer_gamma2_b24
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma2_b24 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA2_B24_T;
- // bayer_gamma2_b28
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma2_b28 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA2_B28_T;
- // bayer_gamma2_b32
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma2_b32 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA2_B32_T;
- // bayer_gamma2_b36
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma2_b36 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA2_B36_T;
- // bayer_gamma2_b40
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma2_b40 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA2_B40_T;
- // bayer_gamma2_b48
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma2_b48 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA2_B48_T;
- // bayer_gamma2_b56
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma2_b56 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA2_B56_T;
- // bayer_gamma2_b64
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t bayer_gamma2_b64 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_BAYER_GAMMA2_B64_T;
- // y_thr7_lo_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t y_thr7_lo_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_Y_THR7_LO_REG_T;
- // y_thr7_mid_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t y_thr7_mid_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_Y_THR7_MID_REG_T;
- // y_thr7_hi_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t y_thr7_hi_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_Y_THR7_HI_REG_T;
- // dpa_new_ctrl_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t inflg_ctrl_reg_0 : 1; // [0]
- uint32_t inflg_ctrl_reg_1 : 1; // [1]
- uint32_t inflg_ctrl_reg_2 : 1; // [2]
- uint32_t __31_3 : 29; // [31:3]
- } b;
- } REG_CAMERA_DPA_NEW_CTRL_REG_T;
- // dpa_new_ctrl_hi_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t inflg_ctrl_reg0_h : 1; // [0]
- uint32_t inflg_ctrl_reg1_h : 1; // [1]
- uint32_t inflg_ctrl_reg2_h : 1; // [2]
- uint32_t threshold_rsvd : 2; // [4:3]
- uint32_t __31_5 : 27; // [31:5]
- } b;
- } REG_CAMERA_DPA_NEW_CTRL_HI_REG_T;
- // ae_index_gap
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t gap_2e : 1; // [0]
- uint32_t gap_3e : 1; // [1]
- uint32_t gap_4e : 1; // [2]
- uint32_t gap_5e : 1; // [3]
- uint32_t gap_6e : 1; // [4]
- uint32_t gap_7e : 1; // [5]
- uint32_t gap_8e : 1; // [6]
- uint32_t gap_9e : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AE_INDEX_GAP_T;
- // awb_calc_height_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_calc_height_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_CALC_HEIGHT_REG_T;
- // drc_r_clp_value_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drc_r_clp_value_reg : 6; // [5:0]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_CAMERA_DRC_R_CLP_VALUE_REG_T;
- // drc_gr_clp_value_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drc_gr_clp_value_reg : 6; // [5:0]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_CAMERA_DRC_GR_CLP_VALUE_REG_T;
- // drc_gb_clp_value_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drc_gb_clp_value_reg : 6; // [5:0]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_CAMERA_DRC_GB_CLP_VALUE_REG_T;
- // drc_b_clp_value_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t drc_b_clp_value_reg : 6; // [5:0]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_CAMERA_DRC_B_CLP_VALUE_REG_T;
- // sepia_cr_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t sepia_cr_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_SEPIA_CR_REG_T;
- // sepia_cb_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t sepia_cb_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_SEPIA_CB_REG_T;
- // csup_y_min_hi_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t csup_y_min_hi_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CSUP_Y_MIN_HI_REG_T;
- // csup_gain_hi_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t csup_gain_hi_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CSUP_GAIN_HI_REG_T;
- // csup_y_max_low_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t csup_y_max_low_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CSUP_Y_MAX_LOW_REG_T;
- // csup_gain_low_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t csup_gain_low_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CSUP_GAIN_LOW_REG_T;
- // ae_dk_hist_thr_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_dk_hist_thr_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AE_DK_HIST_THR_REG_T;
- // ae_br_hist_thr_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_br_hist_thr_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AE_BR_HIST_THR_REG_T;
- // hist_bp_level_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t hist_bp_level_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_HIST_BP_LEVEL_REG_T;
- // outdoor_th_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t outdoor_th : 4; // [3:0]
- uint32_t non_outdoor_th : 4; // [7:4]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_OUTDOOR_TH_REG_T;
- // awb_rgain_low_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t __1_0 : 2; // [1:0]
- uint32_t awb_rgain_low_reg : 6; // [7:2]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_RGAIN_LOW_REG_T;
- // awb_rgain_high_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t __1_0 : 2; // [1:0]
- uint32_t awb_rgain_high_reg : 6; // [7:2]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_RGAIN_HIGH_REG_T;
- // awb_bgain_low_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t __1_0 : 2; // [1:0]
- uint32_t awb_bgain_low_reg : 6; // [7:2]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_BGAIN_LOW_REG_T;
- // awb_bgain_high_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t __1_0 : 2; // [1:0]
- uint32_t awb_bgain_high_reg : 6; // [7:2]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_BGAIN_HIGH_REG_T;
- // awb_calc_start_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_win_y_start : 4; // [3:0]
- uint32_t awb_win_x_start : 4; // [7:4]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_CALC_START_REG_T;
- // awb_calc_width_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_calc_width_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_CALC_WIDTH_REG_T;
- // hist_dp_level_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t hist_dp_level_reg : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_HIST_DP_LEVEL_REG_T;
- // awb_y_fmin
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_y_fmin : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_Y_FMIN_T;
- // awb_y_fmax
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_y_fmax : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_Y_FMAX_T;
- // awb_cb_fmin
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_cb_fmin : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_CB_FMIN_T;
- // awb_cb_fmax
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_cb_fmax : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_CB_FMAX_T;
- // awb_cr_fmin
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_cr_fmin : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_CR_FMIN_T;
- // awb_cr_fmax
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_cr_fmax : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_CR_FMAX_T;
- // awb_y_fmin2
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_y_fmin2 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_Y_FMIN2_T;
- // awb_y_fmax2
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_y_fmax2 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_Y_FMAX2_T;
- // awb_cb_fmin2
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_cb_fmin2 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_CB_FMIN2_T;
- // awb_cb_fmax2
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_cb_fmax2 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_CB_FMAX2_T;
- // awb_cr_fmin2
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_cr_fmin2 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_CR_FMIN2_T;
- // awb_cr_fmax2
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_cr_fmax2 : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_CR_FMAX2_T;
- // ae_use_mean
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ycave_use_mean : 2; // [1:0]
- uint32_t ywave_use_mean : 2; // [3:2]
- uint32_t yave_weight_mode : 1; // [4]
- uint32_t nexp_out_sel_reg : 1; // [5]
- uint32_t ae_ext_adj_val_reg : 1; // [6]
- uint32_t ae_ext_adj_on_reg : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AE_USE_MEAN_T;
- // ae_weight_sta
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ywave_pcnt_left : 4; // [3:0]
- uint32_t ywave_lcnt_top : 4; // [7:4]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AE_WEIGHT_STA_T;
- // ae_qwidth
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t qwidth : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AE_QWIDTH_T;
- // ae_qheight
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t qheight : 7; // [6:0]
- uint32_t ywave_sel : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AE_QHEIGHT_T;
- // ae_win_sta
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t yave_pcnt_sta : 4; // [3:0]
- uint32_t yave_lcnt_sta : 4; // [7:4]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AE_WIN_STA_T;
- // ae_width
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t width : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AE_WIDTH_T;
- // ae_height
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t height : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AE_HEIGHT_T;
- // sw_update
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t cc_type_sw : 1; // [0]
- uint32_t is_outdoor_sw : 1; // [1]
- uint32_t gamma_type_sw : 1; // [2]
- uint32_t sw_update_rsvd : 1; // [3]
- uint32_t is_outdoor_mode : 3; // [6:4]
- uint32_t awb_outdoor_en : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_SW_UPDATE_T;
- // awb_ctrl5
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t r_low_non_a : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_CTRL5_T;
- // awb_ctrl6
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_stop_h : 4; // [3:0]
- uint32_t awb_adj_again : 2; // [5:4]
- uint32_t awb_algo_en : 1; // [6]
- uint32_t check_r_low : 1; // [7]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_CTRL6_T;
- // sca_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t sca_mode : 3; // [2:0]
- uint32_t __31_3 : 29; // [31:3]
- } b;
- } REG_CAMERA_SCA_REG_T;
- // ae_ee_sta_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_ee_sta_gain : 6; // [5:0]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_CAMERA_AE_EE_STA_REG_T;
- // ae_ee_num_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_ee_num_reg : 4; // [3:0]
- uint32_t __31_4 : 28; // [31:4]
- } b;
- } REG_CAMERA_AE_EE_NUM_REG_T;
- // ae_ef_sta_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_ef_sta_gain : 6; // [5:0]
- uint32_t __31_6 : 26; // [31:6]
- } b;
- } REG_CAMERA_AE_EF_STA_REG_T;
- // ae_ef_num_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_ef_num_reg : 4; // [3:0]
- uint32_t __31_4 : 28; // [31:4]
- } b;
- } REG_CAMERA_AE_EF_NUM_REG_T;
- // ae_thr_big_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t ae_thr_big_dark : 4; // [3:0]
- uint32_t ae_thr_big_bright : 4; // [7:4]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AE_THR_BIG_REG_T;
- // sharp_gain_minus_low
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t sharp_gain_minus_low : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_SHARP_GAIN_MINUS_LOW_T;
- // sharp_gain_minus_mid
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t sharp_gain_minus_mid : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_SHARP_GAIN_MINUS_MID_T;
- // sharp_gain_minus_hi
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t sharp_gain_minus_hi : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_SHARP_GAIN_MINUS_HI_T;
- // sharp_mode_mid_hi
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t sharp_cmp_gap_mid : 4; // [3:0]
- uint32_t sharp_cmp_gap_hi : 4; // [7:4]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_SHARP_MODE_MID_HI_T;
- // fw_version_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t fw_version : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_FW_VERSION_REG_T;
- // awb_y_min_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t awb_y_min : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_AWB_Y_MIN_REG_T;
- // y_red_coef_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t y_red_coef : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_Y_RED_COEF_REG_T;
- // y_blue_coef_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t y_blue_coef : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_Y_BLUE_COEF_REG_T;
- // cb_red_coef_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t cb_red_coef : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CB_RED_COEF_REG_T;
- // cr_blue_coef_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t cr_blue_coef : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_CR_BLUE_COEF_REG_T;
- // hist_vbp_level_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t hist_vbp_level : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_HIST_VBP_LEVEL_REG_T;
- // hist_vdp_level_reg
- typedef union {
- uint32_t v;
- struct
- {
- uint32_t hist_vdp_level : 8; // [7:0]
- uint32_t __31_8 : 24; // [31:8]
- } b;
- } REG_CAMERA_HIST_VDP_LEVEL_REG_T;
- // ctrl
- #define CAMERA_ENABLE_ENABLE (1 << 0)
- #define CAMERA_ENABLE_DISABLE (0 << 0)
- #define CAMERA_DCTENABLE (1 << 1)
- #define CAMERA_BUF_ENABLE (1 << 2)
- #define CAMERA_RGB_RFIRST (1 << 3)
- #define CAMERA_DATAFORMAT(n) (((n)&0x3) << 4)
- #define CAMERA_DATAFORMAT_RGB565 (0 << 4)
- #define CAMERA_DATAFORMAT_YUV422 (1 << 4)
- #define CAMERA_DATAFORMAT_JPEG (2 << 4)
- #define CAMERA_DATAFORMAT_RESERVE (3 << 4)
- #define CAMERA_CFG_CAM_C2CSE(n) (((n)&0x3) << 6)
- #define CAMERA_RESET_POL_INVERT (1 << 8)
- #define CAMERA_RESET_POL_NORMAL (0 << 8)
- #define CAMERA_PWDN_POL_INVERT (1 << 9)
- #define CAMERA_PWDN_POL_NORMAL (0 << 9)
- #define CAMERA_VSYNC_POL_INVERT (1 << 10)
- #define CAMERA_VSYNC_POL_NORMAL (0 << 10)
- #define CAMERA_HREF_POL_INVERT (1 << 11)
- #define CAMERA_HREF_POL_NORMAL (0 << 11)
- #define CAMERA_PIXCLK_POL_INVERT (1 << 12)
- #define CAMERA_PIXCLK_POL_NORMAL (0 << 12)
- #define CAMERA_VSYNC_DROP_DROP (1 << 14)
- #define CAMERA_VSYNC_DROP_NORMAL (0 << 14)
- #define CAMERA_DECIMFRM(n) (((n)&0x3) << 16)
- #define CAMERA_DECIMFRM_ORIGINAL (0 << 16)
- #define CAMERA_DECIMFRM_DIV_2 (1 << 16)
- #define CAMERA_DECIMFRM_DIV_3 (2 << 16)
- #define CAMERA_DECIMFRM_DIV_4 (3 << 16)
- #define CAMERA_DECIMCOL(n) (((n)&0x3) << 18)
- #define CAMERA_DECIMCOL_ORIGINAL (0 << 18)
- #define CAMERA_DECIMCOL_DIV_2 (1 << 18)
- #define CAMERA_DECIMCOL_DIV_3 (2 << 18)
- #define CAMERA_DECIMCOL_DIV_4 (3 << 18)
- #define CAMERA_DECIMROW(n) (((n)&0x3) << 20)
- #define CAMERA_DECIMROW_ORIGINAL (0 << 20)
- #define CAMERA_DECIMROW_DIV_2 (1 << 20)
- #define CAMERA_DECIMROW_DIV_3 (2 << 20)
- #define CAMERA_DECIMROW_DIV_4 (3 << 20)
- #define CAMERA_REORDER(n) (((n)&0x7) << 24)
- #define CAMERA_CROPEN_ENABLE (1 << 28)
- #define CAMERA_CROPEN_DISABLE (0 << 28)
- #define CAMERA_BIST_MODE_BIST (1 << 30)
- #define CAMERA_BIST_MODE_NORMAL (0 << 30)
- #define CAMERA_TEST_TEST (1 << 31)
- #define CAMERA_TEST_NORMAL (0 << 31)
- #define CAMERA_ENABLE_V_ENABLE (1)
- #define CAMERA_ENABLE_V_DISABLE (0)
- #define CAMERA_DATAFORMAT_V_RGB565 (0)
- #define CAMERA_DATAFORMAT_V_YUV422 (1)
- #define CAMERA_DATAFORMAT_V_JPEG (2)
- #define CAMERA_DATAFORMAT_V_RESERVE (3)
- #define CAMERA_RESET_POL_V_INVERT (1)
- #define CAMERA_RESET_POL_V_NORMAL (0)
- #define CAMERA_PWDN_POL_V_INVERT (1)
- #define CAMERA_PWDN_POL_V_NORMAL (0)
- #define CAMERA_VSYNC_POL_V_INVERT (1)
- #define CAMERA_VSYNC_POL_V_NORMAL (0)
- #define CAMERA_HREF_POL_V_INVERT (1)
- #define CAMERA_HREF_POL_V_NORMAL (0)
- #define CAMERA_PIXCLK_POL_V_INVERT (1)
- #define CAMERA_PIXCLK_POL_V_NORMAL (0)
- #define CAMERA_VSYNC_DROP_V_DROP (1)
- #define CAMERA_VSYNC_DROP_V_NORMAL (0)
- #define CAMERA_DECIMFRM_V_ORIGINAL (0)
- #define CAMERA_DECIMFRM_V_DIV_2 (1)
- #define CAMERA_DECIMFRM_V_DIV_3 (2)
- #define CAMERA_DECIMFRM_V_DIV_4 (3)
- #define CAMERA_DECIMCOL_V_ORIGINAL (0)
- #define CAMERA_DECIMCOL_V_DIV_2 (1)
- #define CAMERA_DECIMCOL_V_DIV_3 (2)
- #define CAMERA_DECIMCOL_V_DIV_4 (3)
- #define CAMERA_DECIMROW_V_ORIGINAL (0)
- #define CAMERA_DECIMROW_V_DIV_2 (1)
- #define CAMERA_DECIMROW_V_DIV_3 (2)
- #define CAMERA_DECIMROW_V_DIV_4 (3)
- #define CAMERA_CROPEN_V_ENABLE (1)
- #define CAMERA_CROPEN_V_DISABLE (0)
- #define CAMERA_BIST_MODE_V_BIST (1)
- #define CAMERA_BIST_MODE_V_NORMAL (0)
- #define CAMERA_TEST_V_TEST (1)
- #define CAMERA_TEST_V_NORMAL (0)
- // status
- #define CAMERA_OVFL (1 << 0)
- #define CAMERA_VSYNC_R (1 << 1)
- #define CAMERA_VSYNC_F (1 << 2)
- #define CAMERA_DMA_DONE (1 << 3)
- #define CAMERA_FIFO_EMPTY (1 << 4)
- #define CAMERA_SPI_OVFL (1 << 5)
- // irq_mask
- #define CAMERA_OVFL (1 << 0)
- #define CAMERA_VSYNC_R (1 << 1)
- #define CAMERA_VSYNC_F (1 << 2)
- #define CAMERA_DMA_DONE (1 << 3)
- // irq_clear
- #define CAMERA_OVFL (1 << 0)
- #define CAMERA_VSYNC_R (1 << 1)
- #define CAMERA_VSYNC_F (1 << 2)
- #define CAMERA_DMA_DONE (1 << 3)
- // irq_cause
- #define CAMERA_OVFL (1 << 0)
- #define CAMERA_VSYNC_R (1 << 1)
- #define CAMERA_VSYNC_F (1 << 2)
- #define CAMERA_DMA_DONE (1 << 3)
- // cmd_set
- #define CAMERA_PWDN (1 << 0)
- #define CAMERA_RESET (1 << 4)
- #define CAMERA_FIFO_RESET (1 << 8)
- // cmd_clr
- #define CAMERA_PWDN (1 << 0)
- #define CAMERA_RESET (1 << 4)
- // dstwincol
- #define CAMERA_DSTWINCOLSTART(n) (((n)&0xfff) << 0)
- #define CAMERA_DSTWINCOLEND(n) (((n)&0xfff) << 16)
- // dstwinrow
- #define CAMERA_DSTWINROWSTART(n) (((n)&0xfff) << 0)
- #define CAMERA_DSTWINROWEND(n) (((n)&0xfff) << 16)
- // scl_config
- #define CAMERA_SCALE_EN (1 << 0)
- #define CAMERA_DATA_OUT_SWAP (1 << 4)
- #define CAMERA_SCALE_COL(n) (((n)&0x3) << 8)
- #define CAMERA_SCALE_ROW(n) (((n)&0x3) << 16)
- // spi_camera_reg0
- #define CAMERA_CAMERA_SPI_SLAVE_EN (1 << 0)
- #define CAMERA_CAMERA_SPI_MASTER_EN (1 << 1)
- #define CAMERA_YUV_OUT_FORMAT(n) (((n)&0x7) << 2)
- #define CAMERA_OVERFLOW_RSTN_ONLY_VSYNC_LOW (1 << 5)
- #define CAMERA_OVERFLOW_OBSERVE_ONLY_VSYNC_LOW (1 << 6)
- #define CAMERA_OVERFLOW_RSTN_EN (1 << 7)
- #define CAMERA_BIG_END_DIS (1 << 8)
- #define CAMERA_OVERFLOW_INV (1 << 9)
- #define CAMERA_HREF_INV (1 << 10)
- #define CAMERA_SPI_CAMERA_REG0_VSYNC_INV (1 << 11)
- #define CAMERA_BLOCK_NUM_PER_LINE(n) (((n)&0x3ff) << 12)
- #define CAMERA_LINE_NUM_PER_FRAME(n) (((n)&0x3ff) << 22)
- // spi_camera_reg1
- #define CAMERA_CAMERA_CLK_DIV_NUM(n) (((n)&0xffff) << 0)
- #define CAMERA_CTS_SPI_MASTER_REG (1 << 16)
- #define CAMERA_SSN_CM_INV (1 << 17)
- #define CAMERA_SCK_CM_INV (1 << 18)
- #define CAMERA_SSN_SPI_OENB_DR (1 << 19)
- #define CAMERA_SSN_SPI_OENB_REG (1 << 20)
- #define CAMERA_SCK_SPI_OENB_DR (1 << 21)
- #define CAMERA_SCK_SPI_OENB_REG (1 << 22)
- #define CAMERA_SDO_SPI_SWAP (1 << 29)
- #define CAMERA_CLK_INV (1 << 30)
- #define CAMERA_SCK_DDR_EN (1 << 31)
- // spi_camera_reg2
- #define CAMERA_SSN_WAIT_LENGTH(n) (((n)&0xff) << 0)
- #define CAMERA_INIT_WAIT_LENGTH(n) (((n)&0xff) << 8)
- #define CAMERA_WORD_NUM_PER_BLOCK(n) (((n)&0xff) << 16)
- #define CAMERA_SSN_CS_DELAY(n) (((n)&0x3) << 24)
- #define CAMERA_DATA_RECEIVE_CHOOSE_BIT(n) (((n)&0x3) << 26)
- #define CAMERA_READY_CS_INV (1 << 28)
- #define CAMERA_SSN_CS_INV (1 << 29)
- #define CAMERA_ECO_BYPASS_ISP (1 << 31)
- // spi_camera_reg3
- #define CAMERA_LINE_WAIT_LENGTH(n) (((n)&0xffff) << 0)
- #define CAMERA_BLOCK_WAIT_LENGTH(n) (((n)&0xff) << 16)
- #define CAMERA_SSN_HIGH_LENGTH(n) (((n)&0xff) << 24)
- // spi_camera_reg4
- #define CAMERA_CAMERA_SPI_MASTER_EN_2 (1 << 0)
- #define CAMERA_SDO_LINE_CHOOSE_BIT(n) (((n)&0x3) << 1)
- #define CAMERA_DATA_SIZE_CHOOSE_BIT (1 << 3)
- #define CAMERA_IMAGE_HEIGHT_CHOOSE_BIT (1 << 4)
- #define CAMERA_IMAGE_WIDTH_CHOOSE_BIT (1 << 5)
- #define CAMERA_BLOCK_NUM_PER_PACKET(n) (((n)&0x3ff) << 6)
- #define CAMERA_SPI_DATA0_PHASE_SEL(n) (((n)&0x3) << 16)
- #define CAMERA_SPI_DATA1_PHASE_SEL(n) (((n)&0x3) << 18)
- // spi_camera_reg5
- #define CAMERA_SYNC_CODE(n) (((n)&0xffffff) << 0)
- // spi_camera_reg6
- #define CAMERA_PACKET_ID_DATA_START(n) (((n)&0xff) << 0)
- #define CAMERA_PACKET_ID_LINE_START(n) (((n)&0xff) << 8)
- #define CAMERA_PACKET_ID_FRAME_END(n) (((n)&0xff) << 16)
- #define CAMERA_PACKET_ID_FRAME_START(n) (((n)&0xff) << 24)
- // spi_camera_obs0
- #define CAMERA_LINE_ID_15_0_(n) (((n)&0xffff) << 0)
- #define CAMERA_DATA_ID_7_0_(n) (((n)&0xff) << 16)
- #define CAMERA_OBSERVE_DATA_SIZE_WRONG (1 << 24)
- #define CAMERA_OBSERVE_IMAGE_HEIGHT_WRONG (1 << 25)
- #define CAMERA_OBSERVE_IMAGE_WIDTH_WRONG (1 << 26)
- #define CAMERA_OBSERVE_LINE_NUM_WRONG (1 << 27)
- #define CAMERA_OBSERVE_DATA_ID_WRONG (1 << 28)
- // spi_camera_obs1
- #define CAMERA_IMAGE_HEIGHT(n) (((n)&0xffff) << 0)
- #define CAMERA_IMAGE_WIDTH(n) (((n)&0xffff) << 16)
- // csi_config_reg0
- #define CAMERA_CSI_CONFIG_REG0_NUM_D_TERM_EN(n) (((n)&0xff) << 0)
- #define CAMERA_CUR_FRAME_LINE_NUM(n) (((n)&0x1fff) << 8)
- #define CAMERA_DATA_LP_IN_CHOOSE_BIT(n) (((n)&0x3) << 21)
- #define CAMERA_CLK_LP_INV (1 << 23)
- #define CAMERA_TRAIL_DATA_WRONG_CHOOSE_BIT (1 << 24)
- #define CAMERA_SYNC_BYPASS (1 << 25)
- #define CAMERA_RDATA_BIT_INV_EN (1 << 26)
- #define CAMERA_HS_SYNC_FIND_EN (1 << 27)
- #define CAMERA_LINE_PACKET_ENABLE (1 << 28)
- #define CAMERA_ECC_BYPASS (1 << 29)
- #define CAMERA_DATA_LANE_CHOOSE_BIT (1 << 30)
- #define CAMERA_CSI_MODULE_ENABLE (1 << 31)
- // csi_config_reg1
- #define CAMERA_CSI_CONFIG_REG1_NUM_HS_SETTLE(n) (((n)&0xff) << 0)
- #define CAMERA_LP_DATA_LENGTH_CHOOSE_BIT(n) (((n)&0x7) << 8)
- #define CAMERA_DATA_CLK_LP_POSEDGE_CHOOSE(n) (((n)&0x7) << 11)
- #define CAMERA_CLK_LP_CK_INV (1 << 14)
- #define CAMERA_RCLR_MASK_EN (1 << 15)
- #define CAMERA_RINC_MASK_EN (1 << 16)
- #define CAMERA_HS_ENABLE_MASK_EN (1 << 17)
- #define CAMERA_DEN_CSI_INV_BIT (1 << 18)
- #define CAMERA_HSYNC_CSI_INV_BIT (1 << 19)
- #define CAMERA_VSYNC_CSI_INV_BIT (1 << 20)
- #define CAMERA_HS_DATA2_ENABLE_REG (1 << 21)
- #define CAMERA_HS_DATA1_ENABLE_REG (1 << 22)
- #define CAMERA_HS_DATA1_ENABLE_CHOOSE_BIT (1 << 23)
- #define CAMERA_HS_DATA1_ENABLE_DR (1 << 24)
- #define CAMERA_DATA2_TERMINAL_ENABLE_REG (1 << 25)
- #define CAMERA_DATA1_TERMINAL_ENABLE_REG (1 << 26)
- #define CAMERA_DATA1_TERMINAL_ENABLE_DR (1 << 27)
- #define CAMERA_LP_DATA_INTERRUPT_CLR (1 << 28)
- #define CAMERA_LP_CMD_INTERRUPT_CLR (1 << 29)
- #define CAMERA_LP_DATA_CLR (1 << 30)
- #define CAMERA_LP_CMD_CLR (1 << 31)
- // csi_config_reg2
- #define CAMERA_NUM_HS_SETTLE_CLK(n) (((n)&0xffff) << 0)
- #define CAMERA_NUM_C_TERM_EN(n) (((n)&0xffff) << 16)
- // csi_config_reg3
- #define CAMERA_CLK_LP_IN_CHOOSE_BIT(n) (((n)&0x3) << 6)
- #define CAMERA_PU_LPRX_REG (1 << 8)
- #define CAMERA_PU_HSRX_REG (1 << 9)
- #define CAMERA_PU_DR (1 << 10)
- #define CAMERA_DATA_PNSW_REG (1 << 11)
- #define CAMERA_HS_CLK_ENABLE_REG (1 << 12)
- #define CAMERA_HS_CLK_ENABLE_CHOOSE_BIT (1 << 13)
- #define CAMERA_HS_CLK_ENABLE_DR (1 << 14)
- #define CAMERA_CLK_TERMINAL_ENABLE_REG (1 << 15)
- #define CAMERA_CLK_TERMINAL_ENABLE_DR (1 << 16)
- #define CAMERA_OBSERVE_REG_5_LOW8_CHOOSE (1 << 17)
- #define CAMERA_ECC_ERROR_FLAG_REG (1 << 18)
- #define CAMERA_ECC_ERROR_DR (1 << 19)
- #define CAMERA_CSI_CHANNEL_SEL (1 << 20)
- #define CAMERA_TWO_LANE_BIT_REVERSE (1 << 21)
- #define CAMERA_DATA2_LANE_BIT_REVERSE (1 << 22)
- #define CAMERA_DATA1_LANE_BIT_REVERSE (1 << 23)
- #define CAMERA_DATA2_HS_NO_MASK (1 << 24)
- #define CAMERA_DATA1_HS_NO_MASK (1 << 25)
- #define CAMERA_PU_LPRX_D2_REG (1 << 26)
- #define CAMERA_PU_LPRX_D1_REG (1 << 27)
- #define CAMERA_CLK_EDGE_SEL (1 << 29)
- #define CAMERA_CLK_X2_SEL (1 << 30)
- #define CAMERA_SINGLE_DATA_LANE_EN (1 << 31)
- // csi_config_reg4
- #define CAMERA_NUM_HS_CLK_USEFUL(n) (((n)&0x7fffffff) << 0)
- #define CAMERA_NUM_HS_CLK_USEFUL_EN (1 << 31)
- // csi_config_reg5
- #define CAMERA_VC_ID_SET(n) (((n)&0x3) << 0)
- #define CAMERA_DATA_LP_INV (1 << 2)
- #define CAMERA_FIFO_RCLR_8809P_REG (1 << 3)
- #define CAMERA_FIFO_WCLR_8809P_REG (1 << 4)
- #define CAMERA_HS_SYNC_16BIT_8809P_MODE (1 << 5)
- #define CAMERA_D_TERM_SMALL_8809P_EN (1 << 6)
- #define CAMERA_DATA_LINE_INV_8809P_EN (1 << 7)
- #define CAMERA_HS_ENABLE_8809P_MODE (1 << 8)
- #define CAMERA_SP_TO_TRAIL_8809P_EN (1 << 9)
- #define CAMERA_TRAIL_WRONG_8809P_BYPASS (1 << 10)
- #define CAMERA_RINC_TRAIL_8809P_BYPASS (1 << 11)
- #define CAMERA_HS_DATA_ENABLE_8809P_MODE (1 << 12)
- #define CAMERA_HS_CLK_ENABLE_8809P_MODE (1 << 13)
- #define CAMERA_DATA_TYPE_RE_CHECK_EN (1 << 14)
- #define CAMERA_SYNC_ID_REG(n) (((n)&0xff) << 15)
- #define CAMERA_SYNC_ID_DR (1 << 23)
- #define CAMERA_CSI_OBSERVE_CHOOSE_BIT(n) (((n)&0x1f) << 24)
- #define CAMERA_CRC_ERROR_FLAG_REG (1 << 29)
- #define CAMERA_CRC_ERROR_FLAG_DR (1 << 30)
- #define CAMERA_CSI_RINC_NEW_MODE_DIS (1 << 31)
- // csi_config_reg6
- #define CAMERA_DATA_TYPE_DP_REG(n) (((n)&0x3f) << 0)
- #define CAMERA_DATA_TYPE_LE_REG(n) (((n)&0x3f) << 6)
- #define CAMERA_DATA_TYPE_LS_REG(n) (((n)&0x3f) << 12)
- #define CAMERA_DATA_TYPE_FE_REG(n) (((n)&0x3f) << 18)
- #define CAMERA_DATA_TYPE_FS_REG(n) (((n)&0x3f) << 24)
- #define CAMERA_DATA_TYPE_DP_DR (1 << 30)
- #define CAMERA_DATA_TYPE_DR (1 << 31)
- // csi_config_reg7
- #define CAMERA_DATA_LANE_16BITS_MODE (1 << 2)
- #define CAMERA_TERMINAL_2_HS_EXCHAGE_8809P (1 << 3)
- #define CAMERA_TERMINAL_1_HS_EXCHAGE_8809P (1 << 4)
- #define CAMERA_DATA2_TERMINAL_ENABLE_8809P_DR (1 << 5)
- #define CAMERA_HS_DATA2_ENABLE_8809P_DR (1 << 6)
- #define CAMERA_CSI_DOUT_TEST_8809P_EN (1 << 7)
- #define CAMERA_CSI_DOUT_TEST_8809P(n) (((n)&0xff) << 8)
- #define CAMERA_CSI_CONFIG_REG7_NUM_D_TERM_EN(n) (((n)&0xff) << 16)
- #define CAMERA_CSI_CONFIG_REG7_NUM_HS_SETTLE(n) (((n)&0xff) << 24)
- // csi_obs4
- #define CAMERA_HS_DATA_STATE(n) (((n)&0x3fff) << 0)
- #define CAMERA_PHY_DATA_STATE(n) (((n)&0x7fff) << 14)
- #define CAMERA_FIFO_WFULL_ALMOST (1 << 29)
- #define CAMERA_FIFO_WFULL (1 << 30)
- #define CAMERA_FIFO_WEMPTY (1 << 31)
- // csi_obs5
- #define CAMERA_CSI_OBSERVE_REG_5_LOW(n) (((n)&0xff) << 0)
- #define CAMERA_LP_DATA_INTERRUPT_FLAG (1 << 8)
- #define CAMERA_LP_CMD_INTERRUPT_FLAG (1 << 9)
- #define CAMERA_PHY_CLK_STATE(n) (((n)&0x1ff) << 10)
- #define CAMERA_FIFO_RCOUNT(n) (((n)&0x1ff) << 19)
- #define CAMERA_CRC_ERROR (1 << 28)
- #define CAMERA_ERR_ECC_CORRECTED_FLAG (1 << 29)
- #define CAMERA_ERR_DATA_CORRECTED_FLAG (1 << 30)
- #define CAMERA_ERR_DATA_ZERO_FLAG (1 << 31)
- // csi_enable
- #define CAMERA_CSI_ENABLE (1 << 0)
- // csi_config_reg8
- #define CAMERA_DLY_SEL_CLKN_REG(n) (((n)&0xf) << 0)
- #define CAMERA_DLY_SEL_CLKP_REG(n) (((n)&0xf) << 4)
- #define CAMERA_DLY_SEL_DATA2_REG(n) (((n)&0xf) << 8)
- #define CAMERA_DLY_SEL_DATA1_REG(n) (((n)&0xf) << 12)
- #define CAMERA_VTH_SEL (1 << 16)
- // soft_reset
- #define CAMERA_DSP_RESET (1 << 0)
- // awb_x1_min
- #define CAMERA_AWB_X1_MIN(n) (((n)&0xff) << 0)
- // awb_x1_max
- #define CAMERA_AWB_X1_MAX(n) (((n)&0xff) << 0)
- // awb_y1_min
- #define CAMERA_AWB_Y1_MIN(n) (((n)&0xff) << 0)
- // awb_y1_max
- #define CAMERA_AWB_Y1_MAX(n) (((n)&0xff) << 0)
- // awb_x2_min
- #define CAMERA_AWB_X2_MIN(n) (((n)&0xff) << 0)
- // awb_x2_max
- #define CAMERA_AWB_X2_MAX(n) (((n)&0xff) << 0)
- // awb_y2_min
- #define CAMERA_AWB_Y2_MIN(n) (((n)&0xff) << 0)
- // awb_y2_max
- #define CAMERA_AWB_Y2_MAX(n) (((n)&0xff) << 0)
- // awb_x3_min
- #define CAMERA_AWB_X3_MIN(n) (((n)&0xff) << 0)
- // awb_x3_max
- #define CAMERA_AWB_X3_MAX(n) (((n)&0xff) << 0)
- // awb_y3_min
- #define CAMERA_AWB_Y3_MIN(n) (((n)&0xff) << 0)
- // awb_y3_max
- #define CAMERA_AWB_Y3_MAX(n) (((n)&0xff) << 0)
- // awb_x4_min
- #define CAMERA_AWB_X4_MIN(n) (((n)&0xff) << 0)
- // awb_x4_max
- #define CAMERA_AWB_X4_MAX(n) (((n)&0xff) << 0)
- // awb_y4_min
- #define CAMERA_AWB_Y4_MIN(n) (((n)&0xff) << 0)
- // awb_y4_max
- #define CAMERA_AWB_Y4_MAX(n) (((n)&0xff) << 0)
- // awb_x5_min
- #define CAMERA_AWB_X5_MIN(n) (((n)&0xff) << 0)
- // awb_x5_max
- #define CAMERA_AWB_X5_MAX(n) (((n)&0xff) << 0)
- // awb_y5_min
- #define CAMERA_AWB_Y5_MIN(n) (((n)&0xff) << 0)
- // awb_y5_max
- #define CAMERA_AWB_Y5_MAX(n) (((n)&0xff) << 0)
- // awb_skin_x1_min
- #define CAMERA_AWB_SKIN_X1_MIN(n) (((n)&0xff) << 0)
- // awb_skin_x1_max
- #define CAMERA_AWB_SKIN_X1_MAX(n) (((n)&0xff) << 0)
- // awb_skin_y1_min
- #define CAMERA_AWB_SKIN_Y1_MIN(n) (((n)&0xff) << 0)
- // awb_skin_y1_max
- #define CAMERA_AWB_SKIN_Y1_MAX(n) (((n)&0xff) << 0)
- // awb_skin_x2_min
- #define CAMERA_AWB_SKIN_X2_MIN(n) (((n)&0xff) << 0)
- // awb_skin_x2_max
- #define CAMERA_AWB_SKIN_X2_MAX(n) (((n)&0xff) << 0)
- // awb_skin_y2_min
- #define CAMERA_AWB_SKIN_Y2_MIN(n) (((n)&0xff) << 0)
- // awb_skin_y2_max
- #define CAMERA_AWB_SKIN_Y2_MAX(n) (((n)&0xff) << 0)
- // awb_ctd_msb
- #define CAMERA_AWB_X1_MIN_MSB (1 << 0)
- #define CAMERA_AWB_X1_MAX_MSB (1 << 1)
- #define CAMERA_AWB_Y5_MIN_MSB (1 << 2)
- #define CAMERA_AWB_Y5_MAX_MSB (1 << 3)
- #define CAMERA_AWB_ADJ_MODE(n) (((n)&0x3) << 4)
- #define CAMERA_AWB_RATIO_MODE(n) (((n)&0x3) << 6)
- // int_dif_thr_mid
- #define CAMERA_INT_DIF_THR_MID(n) (((n)&0xff) << 0)
- // lb_soft_rstn
- #define CAMERA_LB_SOFT_RSTN (1 << 0)
- // vsync_end_high
- #define CAMERA_VSYNC_END_HIGH(n) (((n)&0xff) << 0)
- // vsync_end_low
- #define CAMERA_VSYNC_END_LOW(n) (((n)&0xff) << 0)
- // line_numl
- #define CAMERA_LINE_NUML(n) (((n)&0xff) << 0)
- // pix_numl
- #define CAMERA_PIX_NUML(n) (((n)&0xff) << 0)
- // pix_line_numh
- #define CAMERA_LINE_NUMH (1 << 0)
- #define CAMERA_PIX_NUMH_RSVD(n) (((n)&0x7) << 1)
- #define CAMERA_PIX_NUMH(n) (((n)&0x3) << 4)
- #define CAMERA_LINE_NUMH_RSVD(n) (((n)&0x3) << 6)
- // lb_ctrl
- #define CAMERA_LOW_ORDER (1 << 0)
- #define CAMERA_USE_FB_REG (1 << 1)
- #define CAMERA_NOT_CVP_REG (1 << 2)
- #define CAMERA_FIRST_BYTE_REG(n) (((n)&0x7) << 3)
- // data_format
- #define CAMERA_DATA_FORMAT(n) (((n)&0x3) << 0)
- // lb_enable
- #define CAMERA_LB_ENABLE (1 << 0)
- // vh_inv
- #define CAMERA_HSYNC_INV (1 << 0)
- #define CAMERA_VH_INV_VSYNC_INV (1 << 1)
- // line_cnt_l
- #define CAMERA_LINE_CNT_L(n) (((n)&0xff) << 0)
- // line_cnt_h
- #define CAMERA_LINE_CNT_H(n) (((n)&0x3) << 0)
- // num_check
- #define CAMERA_LINE_NUM_CHECK (1 << 0)
- #define CAMERA_BYTE_NUM_CHECK (1 << 1)
- #define CAMERA_LINE_NUM_CLEAR (1 << 4)
- #define CAMERA_BYTE_NUM_CLEAR (1 << 5)
- // dci_ctrl_reg
- #define CAMERA_KL_LOW_LIGHT_FIX (1 << 0)
- #define CAMERA_KL_REG_FIX (1 << 1)
- #define CAMERA_KU_LOW_LIGHT_FIX (1 << 2)
- #define CAMERA_KU_REG_FIX (1 << 3)
- #define CAMERA_HOFST(n) (((n)&0x3) << 4)
- #define CAMERA_VBH_SEL(n) (((n)&0x3) << 6)
- // dci_ofst_reg
- #define CAMERA_KL_OFSTX1(n) (((n)&0xf) << 0)
- #define CAMERA_KU_OFSTX1(n) (((n)&0xf) << 4)
- // dci_hist_reg
- #define CAMERA_DK_HISTX1(n) (((n)&0xf) << 0)
- #define CAMERA_BR_HISTX1(n) (((n)&0xf) << 4)
- // ae_sw_ctrl_reg
- #define CAMERA_NEXP_SW_IN(n) (((n)&0xf) << 0)
- #define CAMERA_AE_EXT_ADJ_START (1 << 7)
- // ae_thr_reg
- #define CAMERA_THR_DARK(n) (((n)&0xf) << 0)
- #define CAMERA_THR_BRIGHT(n) (((n)&0xf) << 4)
- // ae_misc_ctrl_reg
- #define CAMERA_OFST_DEC_LOW_SEL(n) (((n)&0x3) << 0)
- #define CAMERA_OFST_DEC_HIGH_SEL(n) (((n)&0x3) << 2)
- #define CAMERA_FORCE_ADJ1 (1 << 4)
- #define CAMERA_FORCE_ADJ2 (1 << 5)
- #define CAMERA_FORCE_ADJ3 (1 << 6)
- #define CAMERA_INDEX_OFST_NO_STEP (1 << 7)
- // csup_xx_reg
- #define CAMERA_X_LOW(n) (((n)&0xf) << 0)
- #define CAMERA_X_HIGH(n) (((n)&0xf) << 4)
- // contr_ythr_reg
- #define CAMERA_CSUP_GAIN_LOW_TH_H (1 << 0)
- #define CAMERA_CSUP_GAIN_HIGH_TH(n) (((n)&0x7) << 1)
- #define CAMERA_FIXED_CONTR_YTHR(n) (((n)&0xf) << 4)
- // contr_yave_offset_reg
- #define CAMERA_YAVE_OFFSET_REG(n) (((n)&0x3f) << 0)
- #define CAMERA_YTHR_SEL (1 << 6)
- #define CAMERA_YAVE_OFFSET_SIGN (1 << 7)
- // contr_ku_lo_reg
- #define CAMERA_KU(n) (((n)&0x7f) << 0)
- #define CAMERA_KU_SIGN (1 << 7)
- // contr_kl_lo_reg
- #define CAMERA_KL(n) (((n)&0x7f) << 0)
- #define CAMERA_KL_SIGN (1 << 7)
- // contr_ku_mid_reg
- #define CAMERA_KU(n) (((n)&0x7f) << 0)
- #define CAMERA_KU_SIGN (1 << 7)
- // contr_kl_mid_reg
- #define CAMERA_KL(n) (((n)&0x7f) << 0)
- #define CAMERA_KL_SIGN (1 << 7)
- // contr_ku_hi_reg
- #define CAMERA_KU(n) (((n)&0x7f) << 0)
- #define CAMERA_KU_SIGN (1 << 7)
- // contr_kl_hi_reg
- #define CAMERA_KL(n) (((n)&0x7f) << 0)
- #define CAMERA_KL_SIGN (1 << 7)
- // luma_offset_lo_reg
- #define CAMERA_OFFSET(n) (((n)&0x3f) << 0)
- #define CAMERA_ALGO_SEL (1 << 6)
- #define CAMERA_OFFSET_SIGN (1 << 7)
- // luma_offset_mid_reg
- #define CAMERA_OFFSET(n) (((n)&0x3f) << 0)
- #define CAMERA_ALGO_SEL (1 << 6)
- #define CAMERA_OFFSET_SIGN (1 << 7)
- // luma_offset_hi_reg
- #define CAMERA_OFFSET(n) (((n)&0x3f) << 0)
- #define CAMERA_ALGO_SEL (1 << 6)
- #define CAMERA_OFFSET_SIGN (1 << 7)
- // u_gain_lo_reg
- #define CAMERA_U_GAIN_LO_REG(n) (((n)&0xff) << 0)
- // v_gain_lo_reg
- #define CAMERA_V_GAIN_LO_REG(n) (((n)&0xff) << 0)
- // u_gain_mid_reg
- #define CAMERA_U_GAIN_MID_REG(n) (((n)&0xff) << 0)
- // v_gain_mid_reg
- #define CAMERA_V_GAIN_MID_REG(n) (((n)&0xff) << 0)
- // u_gain_hi_reg
- #define CAMERA_U_GAIN_HI_REG(n) (((n)&0xff) << 0)
- // v_gain_hi_reg
- #define CAMERA_V_GAIN_HI_REG(n) (((n)&0xff) << 0)
- // again_sel_th0_reg
- #define CAMERA_CONTR_GAIN_LOW_TH(n) (((n)&0x7) << 0)
- #define CAMERA_AGAIN_SEL_TH0_RSVD (1 << 3)
- #define CAMERA_CONTR_GAIN_HI_TH(n) (((n)&0x7) << 4)
- // awb_cc_type_ctrl_reg
- #define CAMERA_CC_TYPE_MODE(n) (((n)&0xf) << 0)
- #define CAMERA_CC_GAIN_HI_TH(n) (((n)&0x7) << 4)
- #define CAMERA_LUMA_FIRST (1 << 7)
- // awb_cc_type_th_reg
- #define CAMERA_R_BIG_TH(n) (((n)&0xf) << 0)
- #define CAMERA_B_BIG_TH(n) (((n)&0xf) << 4)
- // isp_wrapper_ctrl_1
- #define CAMERA_POUT_MODE(n) (((n)&0x3) << 0)
- #define CAMERA_YUV_MODE(n) (((n)&0x3) << 2)
- #define CAMERA_VSYNC_TOGGLE (1 << 4)
- #define CAMERA_MIPI_RSTN (1 << 5)
- #define CAMERA_HSYNC_FIX (1 << 6)
- // top_dummy
- #define CAMERA_TOP_DUMMY(n) (((n)&0x7f) << 0)
- // left_dummy
- #define CAMERA_LEFT_DUMMY(n) (((n)&0xff) << 0)
- // isp_wrapper_ctrl_2
- #define CAMERA_RGB_MODE_REG(n) (((n)&0x7) << 0)
- #define CAMERA_SUB_MODE (1 << 3)
- #define CAMERA_MON_MODE_REG (1 << 4)
- #define CAMERA_OCLK_INV_REG (1 << 5)
- #define CAMERA_ISP_OUT_EN (1 << 6)
- // line_num_l_reg
- #define CAMERA_LINE_NUM_L_REG(n) (((n)&0x3f) << 0)
- // pix_num_l_reg
- #define CAMERA_PIX_NUM_L_REG(n) (((n)&0x7f) << 0)
- #define CAMERA_CSI_MON_REG (1 << 7)
- // v_dummy
- #define CAMERA_VBOT_DUMMY_REG(n) (((n)&0xf) << 0)
- #define CAMERA_VTOP_DUMMY_REG(n) (((n)&0xf) << 4)
- // scg
- #define CAMERA_KUKL_SEL (1 << 0)
- #define CAMERA_REG94_RD_SEL (1 << 1)
- #define CAMERA_BAYER_OUT_SEL (1 << 2)
- #define CAMERA_CSUP_EN (1 << 3)
- #define CAMERA_Y_GAMMA_EN(n) (((n)&0x3) << 4)
- #define CAMERA_YUV_SDI_EN (1 << 6)
- #define CAMERA_REG92_RD_SEL (1 << 7)
- // y_gamma_b0
- #define CAMERA_Y_GAMMA_B0(n) (((n)&0xff) << 0)
- // y_gamma_b1
- #define CAMERA_Y_GAMMA_B1(n) (((n)&0xff) << 0)
- // y_gamma_b2
- #define CAMERA_Y_GAMMA_B2(n) (((n)&0xff) << 0)
- // y_gamma_b4
- #define CAMERA_Y_GAMMA_B4(n) (((n)&0xff) << 0)
- // y_gamma_b6
- #define CAMERA_Y_GAMMA_B6(n) (((n)&0xff) << 0)
- // y_gamma_b8
- #define CAMERA_Y_GAMMA_B8(n) (((n)&0xff) << 0)
- // y_gamma_b10
- #define CAMERA_Y_GAMMA_B10(n) (((n)&0xff) << 0)
- // y_gamma_b12
- #define CAMERA_Y_GAMMA_B12(n) (((n)&0xff) << 0)
- // y_gamma_b16
- #define CAMERA_Y_GAMMA_B16(n) (((n)&0xff) << 0)
- // y_gamma_b20
- #define CAMERA_Y_GAMMA_B20(n) (((n)&0xff) << 0)
- // y_gamma_b24
- #define CAMERA_Y_GAMMA_B24(n) (((n)&0xff) << 0)
- // y_gamma_b28
- #define CAMERA_Y_GAMMA_B28(n) (((n)&0xff) << 0)
- // y_gamma_b32
- #define CAMERA_Y_GAMMA_B32(n) (((n)&0xff) << 0)
- // r_awb_gain_in
- #define CAMERA_R_AWB_GAIN_IN(n) (((n)&0xff) << 0)
- // g_awb_gain_in
- #define CAMERA_G_AWB_GAIN_IN(n) (((n)&0xff) << 0)
- // b_awb_gain_in
- #define CAMERA_B_AWB_GAIN_IN(n) (((n)&0xff) << 0)
- // r_drc_gain_in
- #define CAMERA_R_DRC_GAIN_IN(n) (((n)&0xff) << 0)
- // gr_drc_gain_in
- #define CAMERA_GR_DRC_GAIN_IN(n) (((n)&0xff) << 0)
- // gb_drc_gain_in
- #define CAMERA_GB_DRC_GAIN_IN(n) (((n)&0xff) << 0)
- // b_drc_gain_in
- #define CAMERA_B_DRC_GAIN_IN(n) (((n)&0xff) << 0)
- // ae_ctrl
- #define CAMERA_ANA_GAIN_IN(n) (((n)&0x3f) << 0)
- #define CAMERA_AE_UPDATE_EN (1 << 6)
- #define CAMERA_AE_EN (1 << 7)
- // ae_ctrl2
- #define CAMERA_AWB_ADJ_SEL(n) (((n)&0x3) << 0)
- #define CAMERA_GAP_AE (1 << 2)
- #define CAMERA_GAP_BE (1 << 3)
- #define CAMERA_AE_ACTION_PERIOD(n) (((n)&0x7) << 4)
- #define CAMERA_YAVE_MON_SEL (1 << 7)
- // ae_ctrl3
- #define CAMERA_YAVE_USE_MEAN(n) (((n)&0x3) << 0)
- #define CAMERA_YAVE_DIFF_THR_REG(n) (((n)&0x3) << 2)
- #define CAMERA_YAVE_SEL(n) (((n)&0x3) << 4)
- #define CAMERA_YAVE_PLUS_BH_MODE (1 << 6)
- #define CAMERA_YWAVE_PLUS_BH_MODE (1 << 7)
- // ae_ctrl4
- #define CAMERA_AE_HIST_BIG_EN (1 << 0)
- #define CAMERA_AE_HIST_TOO_BIG_EN (1 << 1)
- #define CAMERA_HIST_OFST0(n) (((n)&0x3) << 2)
- #define CAMERA_INDEX_OFST0(n) (((n)&0x3) << 4)
- #define CAMERA_INDEX_OFST1(n) (((n)&0x3) << 6)
- // ae_win_start
- #define CAMERA_PCNT_LEFT(n) (((n)&0xf) << 0)
- #define CAMERA_LCNT_TOP(n) (((n)&0xf) << 4)
- // ae_win_width
- #define CAMERA_AE_WIN_WIDTH(n) (((n)&0xff) << 0)
- // ae_win_height
- #define CAMERA_AE_WIN_HEIGHT(n) (((n)&0xff) << 0)
- // exp_init
- #define CAMERA_EXP_INIT(n) (((n)&0xff) << 0)
- // exp_ceil_init
- #define CAMERA_EXP_CEIL_INIT(n) (((n)&0xf) << 0)
- // ae_exp_1e
- #define CAMERA_AE_EXP_1E(n) (((n)&0xff) << 0)
- // ae_diff_thr
- #define CAMERA_THR2_DARK(n) (((n)&0xf) << 0)
- #define CAMERA_THR2_BRIGHT(n) (((n)&0xf) << 4)
- // ae_bh_sel
- #define CAMERA_BH_FACTOR_INDOOR(n) (((n)&0x7) << 0)
- #define CAMERA_BH_FACTOR_OUTDOOR(n) (((n)&0x7) << 3)
- #define CAMERA_BH_MEAN_SEL(n) (((n)&0x3) << 6)
- // awb_ctrl
- #define CAMERA_AWB_SW_MON_EN (1 << 0)
- #define CAMERA_FAST_2X (1 << 1)
- #define CAMERA_FAST_4X (1 << 2)
- #define CAMERA_AWB_ACTION_PERIOD(n) (((n)&0x7) << 3)
- #define CAMERA_AWB_UPDATE_EN (1 << 6)
- #define CAMERA_AWB_EN (1 << 7)
- // awb_ctrl2
- #define CAMERA_AWB_MON_SEL(n) (((n)&0x7) << 0)
- #define CAMERA_AWB_VLD_SEL (1 << 3)
- #define CAMERA_AWB_VLD_MODE(n) (((n)&0x7) << 4)
- #define CAMERA_AWB_ADJ (1 << 7)
- // awb_y_max
- #define CAMERA_AWB_Y_MAX(n) (((n)&0xff) << 0)
- // awb_stop
- #define CAMERA_AWB_STOP_CB_NEG_LEVEL(n) (((n)&0x3) << 0)
- #define CAMERA_AWB_STOP_CB_POS_LEVEL(n) (((n)&0x3) << 2)
- #define CAMERA_AWB_STOP_CR_NEG_LEVEL(n) (((n)&0x3) << 4)
- #define CAMERA_AWB_STOP_CR_POS_LEVEL(n) (((n)&0x3) << 6)
- // awb_algo
- #define CAMERA_AWB_ALGO(n) (((n)&0xff) << 0)
- // awb_ctrl3
- #define CAMERA_CR_OFST_LT1X (1 << 0)
- #define CAMERA_CR_OFST_GT1X (1 << 1)
- #define CAMERA_CB_OFST_LT1X (1 << 2)
- #define CAMERA_CB_OFST_GT1X (1 << 3)
- #define CAMERA_AWB_SUM_VLD_SEL (1 << 4)
- #define CAMERA_AWB_STOP_SEL_REG (1 << 5)
- #define CAMERA_AWB_SKIN_SEL (1 << 6)
- #define CAMERA_AWB_ALGO_MODE (1 << 7)
- // awb_ctrl4
- #define CAMERA_AWB_CTRL4(n) (((n)&0xff) << 0)
- // dig_gain_in
- #define CAMERA_DIG_GAIN_IN(n) (((n)&0xff) << 0)
- // y_init_thr
- #define CAMERA_Y_INIT_MODE (1 << 0)
- #define CAMERA_Y_LOW_EN (1 << 1)
- #define CAMERA_Y_HIGH_EN (1 << 2)
- #define CAMERA_Y_LOW_THR(n) (((n)&0x1f) << 3)
- // y_ave_target
- #define CAMERA_Y_AVE_TARGET(n) (((n)&0xff) << 0)
- // y_lmt_offset
- #define CAMERA_Y_LOW_LIMIT(n) (((n)&0x7) << 0)
- #define CAMERA_Y_LMT_OFST (1 << 3)
- #define CAMERA_Y_HIGH_LIMIT(n) (((n)&0x7) << 4)
- // again_sel_th2
- #define CAMERA_YNR_GAIN_LOW_TH(n) (((n)&0x7) << 0)
- #define CAMERA_AGAIN_SEL_TH2 (1 << 3)
- #define CAMERA_YNR_GAIN_HI_TH(n) (((n)&0x7) << 4)
- // yave_target_chg1
- #define CAMERA_YAVE_TARGET_OFST_L(n) (((n)&0xf) << 0)
- #define CAMERA_YAVE_TARGET_OFST_H(n) (((n)&0xf) << 4)
- // image_eff_reg
- #define CAMERA_GREY_EN (1 << 0)
- #define CAMERA_SEPIA_EN (1 << 1)
- #define CAMERA_NEGATIVE_EN (1 << 2)
- #define CAMERA_COLOR_BAR_EN (1 << 3)
- #define CAMERA_IMAGE_EFF_RSVD (1 << 4)
- #define CAMERA_REG93_SEL (1 << 5)
- #define CAMERA_REG94_SEL (1 << 6)
- #define CAMERA_SHARP_MON (1 << 7)
- // ywave_out
- #define CAMERA_YWAVE_OUT(n) (((n)&0xff) << 0)
- // ae_bright_hist
- #define CAMERA_AE_BRIGHT_HIST(n) (((n)&0xff) << 0)
- // yave_out
- #define CAMERA_YAVE_OUT(n) (((n)&0xff) << 0)
- // exp_out
- #define CAMERA_EXP_OUT(n) (((n)&0xff) << 0)
- // misc_out
- #define CAMERA_EXP_OUT_H(n) (((n)&0x7) << 0)
- #define CAMERA_AWB_OK (1 << 3)
- #define CAMERA_NEXP_SEL(n) (((n)&0x3) << 4)
- #define CAMERA_FIXED_0 (1 << 6)
- #define CAMERA_AE_OK (1 << 7)
- // awb_debug_out
- #define CAMERA_AWB_CRGT(n) (((n)&0x3) << 0)
- #define CAMERA_AWB_CBGT(n) (((n)&0x3) << 2)
- #define CAMERA_AWB_CRSUM_SIGN (1 << 4)
- #define CAMERA_AWB_CBSUM_SIGN (1 << 5)
- #define CAMERA_AWB_CBCR (1 << 6)
- #define CAMERA_AWB_SUM_VLD (1 << 7)
- // mono_color
- #define CAMERA_MONO_COLOR(n) (((n)&0xff) << 0)
- // r_awb_gain
- #define CAMERA_R_AWB_GAIN(n) (((n)&0xff) << 0)
- // b_awb_gain
- #define CAMERA_B_AWB_GAIN(n) (((n)&0xff) << 0)
- // misc_status
- #define CAMERA_ANA_GAIN_OUT(n) (((n)&0x3f) << 0)
- #define CAMERA_CC_TYPE (1 << 6)
- #define CAMERA_IS_OUTDOOR (1 << 7)
- // yave_contr
- #define CAMERA_YAVE_CONTR(n) (((n)&0xff) << 0)
- // gamma_type
- #define CAMERA_GAMMA_TYPE_MODE(n) (((n)&0x7) << 0)
- #define CAMERA_GAMMA_GAIN_HI_TH(n) (((n)&0x7) << 3)
- #define CAMERA_VGAS(n) (((n)&0x3) << 6)
- // blc_line
- #define CAMERA_BLC_LINE(n) (((n)&0xff) << 0)
- // lsc_xx
- #define CAMERA_X_LOW(n) (((n)&0xf) << 0)
- #define CAMERA_X_HIGH(n) (((n)&0xf) << 4)
- // lsc_blc_gain_th
- #define CAMERA_LSC_GAIN_LOW_TH(n) (((n)&0x7) << 0)
- #define CAMERA_LSC_GAIN_HI_TH(n) (((n)&0x7) << 3)
- #define CAMERA_CSUP_GAIN_LOW_TH(n) (((n)&0x3) << 6)
- // blc_ctrl
- #define CAMERA_BLC_OUT_MODE(n) (((n)&0x3) << 0)
- #define CAMERA_LINE_INIT_H (1 << 2)
- #define CAMERA_BLC_OFST_SIGN (1 << 3)
- #define CAMERA_BLC_MODE(n) (((n)&0x3) << 4)
- #define CAMERA_BLC_SEL (1 << 6)
- #define CAMERA_BLC_EN (1 << 7)
- // blc_init
- #define CAMERA_BLC00_OFST(n) (((n)&0xf) << 0)
- #define CAMERA_BLC01_OFST(n) (((n)&0xf) << 4)
- // blc_offset
- #define CAMERA_BLC10_OFST(n) (((n)&0xf) << 0)
- #define CAMERA_BLC11_OFST(n) (((n)&0xf) << 4)
- // blc_thr
- #define CAMERA_BLC_THR(n) (((n)&0x3f) << 0)
- // lsc_xy_cent
- #define CAMERA_Y_CENT(n) (((n)&0xf) << 0)
- #define CAMERA_X_CENT(n) (((n)&0xf) << 4)
- // cnr_dif_thr
- #define CAMERA_CNR_V_EN (1 << 0)
- #define CAMERA_CNR_H_EN (1 << 1)
- #define CAMERA_VCNR_SEL (1 << 2)
- #define CAMERA_EDGE_MON (1 << 3)
- #define CAMERA_AWB_SKIN_MODE(n) (((n)&0x7) << 4)
- #define CAMERA_GAMMA_TYPE (1 << 7)
- // cnr_thr
- #define CAMERA_CNR_THR_V(n) (((n)&0x7) << 0)
- #define CAMERA_EDGE_EN_V (1 << 3)
- #define CAMERA_CNR_THR_H(n) (((n)&0x7) << 4)
- #define CAMERA_EDGE_EN_H (1 << 7)
- // gamma_ctrl
- #define CAMERA_GAMMA_P_ID (1 << 0)
- #define CAMERA_GAMMA_L_ID (1 << 1)
- #define CAMERA_GAMMA_EN_NON_OUTDOOR (1 << 2)
- #define CAMERA_GAMMA_EN_OUTDOOR (1 << 3)
- #define CAMERA_LSC_P_ID (1 << 4)
- #define CAMERA_LSC_L_ID (1 << 5)
- #define CAMERA_LSC_EN_NON_OUTDOOR (1 << 6)
- #define CAMERA_LSC_EN_OUTDOOR (1 << 7)
- // bayer_gamma_b0
- #define CAMERA_BAYER_GAMMA_B0(n) (((n)&0xff) << 0)
- // bayer_gamma_b1
- #define CAMERA_BAYER_GAMMA_B1(n) (((n)&0xff) << 0)
- // bayer_gamma_b2
- #define CAMERA_BAYER_GAMMA_B2(n) (((n)&0xff) << 0)
- // bayer_gamma_b3
- #define CAMERA_BAYER_GAMMA_B3(n) (((n)&0xff) << 0)
- // bayer_gamma_b4
- #define CAMERA_BAYER_GAMMA_B4(n) (((n)&0xff) << 0)
- // bayer_gamma_b6
- #define CAMERA_BAYER_GAMMA_B6(n) (((n)&0xff) << 0)
- // bayer_gamma_b8
- #define CAMERA_BAYER_GAMMA_B8(n) (((n)&0xff) << 0)
- // bayer_gamma_b10
- #define CAMERA_BAYER_GAMMA_B10(n) (((n)&0xff) << 0)
- // bayer_gamma_b12
- #define CAMERA_BAYER_GAMMA_B12(n) (((n)&0xff) << 0)
- // bayer_gamma_b16
- #define CAMERA_BAYER_GAMMA_B16(n) (((n)&0xff) << 0)
- // bayer_gamma_b20
- #define CAMERA_BAYER_GAMMA_B20(n) (((n)&0xff) << 0)
- // bayer_gamma_b24
- #define CAMERA_BAYER_GAMMA_B24(n) (((n)&0xff) << 0)
- // bayer_gamma_b28
- #define CAMERA_BAYER_GAMMA_B28(n) (((n)&0xff) << 0)
- // bayer_gamma_b32
- #define CAMERA_BAYER_GAMMA_B32(n) (((n)&0xff) << 0)
- // bayer_gamma_b36
- #define CAMERA_BAYER_GAMMA_B36(n) (((n)&0xff) << 0)
- // bayer_gamma_b40
- #define CAMERA_BAYER_GAMMA_B40(n) (((n)&0xff) << 0)
- // bayer_gamma_b48
- #define CAMERA_BAYER_GAMMA_B48(n) (((n)&0xff) << 0)
- // bayer_gamma_b56
- #define CAMERA_BAYER_GAMMA_B56(n) (((n)&0xff) << 0)
- // bayer_gamma_b64
- #define CAMERA_BAYER_GAMMA_B64(n) (((n)&0xff) << 0)
- // blc_out0
- #define CAMERA_BLC_OUT0(n) (((n)&0xff) << 0)
- // blc_out1
- #define CAMERA_BLC_OUT1(n) (((n)&0xff) << 0)
- // dpc_ctrl_0
- #define CAMERA_DPC_ON (1 << 0)
- #define CAMERA_ADP_MED_SEL (1 << 1)
- #define CAMERA_ANA_GAIN_CMP(n) (((n)&0x3) << 2)
- #define CAMERA_RSVD (1 << 4)
- #define CAMERA_NRF_GAUS_SEL (1 << 5)
- #define CAMERA_BAYER_NR_ON (1 << 6)
- #define CAMERA_CC_ON (1 << 7)
- // dpc_ctrl_1
- #define CAMERA_INT_FLG_CMP(n) (((n)&0x3) << 0)
- #define CAMERA_ABS_SIGN_ALL_CMP(n) (((n)&0x3) << 2)
- #define CAMERA_INT_DIF_SEL (1 << 4)
- // y_thr_lo
- #define CAMERA_Y_THR_LO(n) (((n)&0xff) << 0)
- // y_thr_mid
- #define CAMERA_Y_THR_MID(n) (((n)&0xff) << 0)
- // y_thr_hi
- #define CAMERA_Y_THR_HI(n) (((n)&0xff) << 0)
- // intp_cfa_hv
- #define CAMERA_CFA_V_THR_L(n) (((n)&0x7) << 0)
- #define CAMERA_RSVD1 (1 << 3)
- #define CAMERA_CFA_H_THR_L(n) (((n)&0x7) << 4)
- #define CAMERA_RSVD2 (1 << 7)
- // manual_adj
- #define CAMERA_B_GAIN_ADJ (1 << 0)
- #define CAMERA_G_GAIN_ADJ (1 << 1)
- #define CAMERA_R_GAIN_ADJ (1 << 2)
- #define CAMERA_ANA_GAIN_ADJ (1 << 3)
- #define CAMERA_ADJ_DIRECTION (1 << 4)
- #define CAMERA_INDEX_MANUAL_ADJ (1 << 5)
- #define CAMERA_IN_CAPTURE_AWB (1 << 6)
- #define CAMERA_IN_CAPTURE_AE (1 << 7)
- // dpc_int_thr_lo
- #define CAMERA_DPC_INT_THR_LO(n) (((n)&0xff) << 0)
- // dpc_int_thr_hi
- #define CAMERA_DPC_INT_THR_HI(n) (((n)&0xff) << 0)
- // again_sel_th1
- #define CAMERA_BNR_GAIN_LOW_TH(n) (((n)&0x7) << 0)
- #define CAMERA_AGAIN_SEL_TH1_RSVD (1 << 3)
- #define CAMERA_BNR_GAIN_HI_TH(n) (((n)&0x7) << 4)
- // dpc_nr_lf_str_lo
- #define CAMERA_DPC_NR_LF_STR_LO(n) (((n)&0xff) << 0)
- // dpc_nr_hf_str_lo
- #define CAMERA_DPC_NR_HF_STR_LO(n) (((n)&0xff) << 0)
- // dpc_nr_area_thr_lo
- #define CAMERA_DPC_NR_AREA_THR_LO(n) (((n)&0xff) << 0)
- // dpc_nr_lf_str_mid
- #define CAMERA_DPC_NR_LF_STR_MID(n) (((n)&0xff) << 0)
- // dpc_nr_hf_str_mid
- #define CAMERA_DPC_NR_HF_STR_MID(n) (((n)&0xff) << 0)
- // dpc_nr_area_thr_mid
- #define CAMERA_DPC_NR_AREA_THR_MID(n) (((n)&0xff) << 0)
- // dpc_nr_lf_str_hi
- #define CAMERA_DPC_NR_LF_STR_HI(n) (((n)&0xff) << 0)
- // dpc_nr_hf_str_hi
- #define CAMERA_DPC_NR_HF_STR_HI(n) (((n)&0xff) << 0)
- // dpc_nr_area_thr_hi
- #define CAMERA_DPC_NR_AREA_THR_HI(n) (((n)&0xff) << 0)
- // intp_ctrl
- #define CAMERA_PID_INV_EN (1 << 0)
- #define CAMERA_LID_INV_EN (1 << 1)
- #define CAMERA_GFILTER_EN (1 << 2)
- #define CAMERA_GFILTER3_EN (1 << 3)
- #define CAMERA_GFLITER5_EN (1 << 4)
- #define CAMERA_SORT_SEL(n) (((n)&0x7) << 5)
- // intp_cfa_h_thr
- #define CAMERA_INTP_CFA_H_THR(n) (((n)&0xff) << 0)
- // intp_cfa_v_thr
- #define CAMERA_INTP_CFA_V_THR(n) (((n)&0xff) << 0)
- // intp_grgb_sel_lmt
- #define CAMERA_INTP_GRGB_SEL_LMT(n) (((n)&0xff) << 0)
- // intp_gf_lmt_thr
- #define CAMERA_INTP_GF_LMT_THR(n) (((n)&0xff) << 0)
- // cc_r_offset
- #define CAMERA_CC_R_OFFSET(n) (((n)&0xff) << 0)
- // cc_g_offset
- #define CAMERA_CC_G_OFFSET(n) (((n)&0xff) << 0)
- // cc_b_offset
- #define CAMERA_CC_B_OFFSET(n) (((n)&0xff) << 0)
- // cc_00
- #define CAMERA_CC_00(n) (((n)&0xff) << 0)
- // cc_01
- #define CAMERA_CC_01(n) (((n)&0xff) << 0)
- // cc_10
- #define CAMERA_CC_10(n) (((n)&0xff) << 0)
- // cc_11
- #define CAMERA_CC_11(n) (((n)&0xff) << 0)
- // cc_20
- #define CAMERA_CC_20(n) (((n)&0xff) << 0)
- // cc_21
- #define CAMERA_CC_21(n) (((n)&0xff) << 0)
- // cc_r_offset_post
- #define CAMERA_CC_R_OFFSET_POST(n) (((n)&0xff) << 0)
- // cc_g_offset_post
- #define CAMERA_CC_G_OFFSET_POST(n) (((n)&0xff) << 0)
- // cc_b_offset_post
- #define CAMERA_CC_B_OFFSET_POST(n) (((n)&0xff) << 0)
- // cc2_r_offset
- #define CAMERA_CC2_R_OFFSET(n) (((n)&0xff) << 0)
- // cc2_g_offset
- #define CAMERA_CC2_G_OFFSET(n) (((n)&0xff) << 0)
- // cc2_b_offset
- #define CAMERA_CC2_B_OFFSET(n) (((n)&0xff) << 0)
- // cc2_00
- #define CAMERA_CC2_00(n) (((n)&0xff) << 0)
- // cc2_01
- #define CAMERA_CC2_01(n) (((n)&0xff) << 0)
- // cc2_10
- #define CAMERA_CC2_10(n) (((n)&0xff) << 0)
- // cc2_11
- #define CAMERA_CC2_11(n) (((n)&0xff) << 0)
- // cc2_20
- #define CAMERA_CC2_20(n) (((n)&0xff) << 0)
- // cc2_21
- #define CAMERA_CC2_21(n) (((n)&0xff) << 0)
- // sharp_lmt
- #define CAMERA_SHARP_LMT(n) (((n)&0x7f) << 0)
- #define CAMERA_SHARP_FINAL_H (1 << 7)
- // sharp_mode
- #define CAMERA_SHARP_CMP_GAP_LO(n) (((n)&0xf) << 0)
- #define CAMERA_SHARP_FINAL(n) (((n)&0x3) << 4)
- #define CAMERA_SHARP_SEL (1 << 6)
- #define CAMERA_RGB_TEST_PATTERN (1 << 7)
- // sharp_gain_str_lo
- #define CAMERA_SHARP_GAIN_STR_LO(n) (((n)&0xff) << 0)
- // sharp_nr_area_thr_lo
- #define CAMERA_SHARP_NR_AREA_THR_LO(n) (((n)&0x7f) << 0)
- // sharp_gain_str_mid
- #define CAMERA_SHARP_GAIN_STR_MID(n) (((n)&0xff) << 0)
- // sharp_nr_area_thr_mid
- #define CAMERA_SHARP_NR_AREA_THR_MID(n) (((n)&0x7f) << 0)
- // sharp_gain_str_hi
- #define CAMERA_SHARP_GAIN_STR_HI(n) (((n)&0xff) << 0)
- // sharp_nr_area_thr_hi
- #define CAMERA_SHARP_NR_AREA_THR_HI(n) (((n)&0x7f) << 0)
- // ynr_ctrl_reg
- #define CAMERA_YNR_ON (1 << 0)
- #define CAMERA_YNR_EDGE_METHODE(n) (((n)&0x3) << 1)
- #define CAMERA_SHARP_ON (1 << 3)
- #define CAMERA_SHARP_PLUS_MODE(n) (((n)&0x3) << 4)
- #define CAMERA_Y_AE_SEL(n) (((n)&0x3) << 6)
- // ynr_lf_method_str
- #define CAMERA_YNR_LF_METHOD_STR(n) (((n)&0xff) << 0)
- // ynr_lf_str_lo
- #define CAMERA_YNR_LF_STR_LO(n) (((n)&0xff) << 0)
- // ynr_hf_str_lo
- #define CAMERA_YNR_HF_STR_LO(n) (((n)&0xff) << 0)
- // ynr_area_thr_lo
- #define CAMERA_YNR_AREA_THR_LO(n) (((n)&0xff) << 0)
- // ynr_lf_str_mid
- #define CAMERA_YNR_LF_STR_MID(n) (((n)&0xff) << 0)
- // ynr_hf_str_mid
- #define CAMERA_YNR_HF_STR_MID(n) (((n)&0xff) << 0)
- // ynr_area_thr_mid
- #define CAMERA_YNR_AREA_THR_MID(n) (((n)&0xff) << 0)
- // ynr_lf_str_hi
- #define CAMERA_YNR_LF_STR_HI(n) (((n)&0xff) << 0)
- // ynr_hf_str_hi
- #define CAMERA_YNR_HF_STR_HI(n) (((n)&0xff) << 0)
- // ynr_area_thr_hi
- #define CAMERA_YNR_AREA_THR_HI(n) (((n)&0xff) << 0)
- // hue_sin_reg
- #define CAMERA_HUE_SIN_REG(n) (((n)&0xff) << 0)
- // hue_cos_reg
- #define CAMERA_HUE_COSX_REG(n) (((n)&0x7f) << 0)
- #define CAMERA_SIN_SIGN_REG (1 << 7)
- // cnr_1d_ctrl_reg
- #define CAMERA_CNR_DIF_THR_MID(n) (((n)&0xf) << 0)
- #define CAMERA_CNR_1D_ON (1 << 4)
- #define CAMERA_SATUR_ON (1 << 5)
- #define CAMERA_HUE_ON (1 << 6)
- // cnr_xx_reg
- #define CAMERA_CNR_DIF_THR_LOW(n) (((n)&0xf) << 0)
- #define CAMERA_CNR_DIF_THR_HIGH(n) (((n)&0xf) << 4)
- // in5_low_th_reg
- #define CAMERA_IN5_LOW_TH_REG(n) (((n)&0xff) << 0)
- // in5_high_th_reg
- #define CAMERA_IN5_HIGH_TH_REG(n) (((n)&0xff) << 0)
- // p2_up_r_reg
- #define CAMERA_P2_UP_R_REG(n) (((n)&0xff) << 0)
- // p2_up_g_reg
- #define CAMERA_P2_UP_G_REG(n) (((n)&0xff) << 0)
- // p2_up_b_reg
- #define CAMERA_P2_UP_B_REG(n) (((n)&0xff) << 0)
- // p2_down_r_reg
- #define CAMERA_P2_DOWN_R_REG(n) (((n)&0xff) << 0)
- // p2_down_g_reg
- #define CAMERA_P2_DOWN_G_REG(n) (((n)&0xff) << 0)
- // p2_down_b_reg
- #define CAMERA_P2_DOWN_B_REG(n) (((n)&0xff) << 0)
- // p2_left_r_reg
- #define CAMERA_P2_LEFT_R_REG(n) (((n)&0xff) << 0)
- // p2_left_g_reg
- #define CAMERA_P2_LEFT_G_REG(n) (((n)&0xff) << 0)
- // p2_left_b_reg
- #define CAMERA_P2_LEFT_B_REG(n) (((n)&0xff) << 0)
- // p2_right_r_reg
- #define CAMERA_P2_RIGHT_R_REG(n) (((n)&0xff) << 0)
- // p2_right_g_reg
- #define CAMERA_P2_RIGHT_G_REG(n) (((n)&0xff) << 0)
- // p2_right_b_reg
- #define CAMERA_P2_RIGHT_B_REG(n) (((n)&0xff) << 0)
- // p4_q1_r_reg
- #define CAMERA_P4_Q1_R_REG(n) (((n)&0xff) << 0)
- // p4_q1_g_reg
- #define CAMERA_P4_Q1_G_REG(n) (((n)&0xff) << 0)
- // p4_q1_b_reg
- #define CAMERA_P4_Q1_B_REG(n) (((n)&0xff) << 0)
- // p4_q2_r_reg
- #define CAMERA_P4_Q2_R_REG(n) (((n)&0xff) << 0)
- // p4_q2_g_reg
- #define CAMERA_P4_Q2_G_REG(n) (((n)&0xff) << 0)
- // p4_q2_b_reg
- #define CAMERA_P4_Q2_B_REG(n) (((n)&0xff) << 0)
- // p4_q3_r_reg
- #define CAMERA_P4_Q3_R_REG(n) (((n)&0xff) << 0)
- // p4_q3_g_reg
- #define CAMERA_P4_Q3_G_REG(n) (((n)&0xff) << 0)
- // p4_q3_b_reg
- #define CAMERA_P4_Q3_B_REG(n) (((n)&0xff) << 0)
- // p4_q4_r_reg
- #define CAMERA_P4_Q4_R_REG(n) (((n)&0xff) << 0)
- // p4_q4_g_reg
- #define CAMERA_P4_Q4_G_REG(n) (((n)&0xff) << 0)
- // p4_q4_b_reg
- #define CAMERA_P4_Q4_B_REG(n) (((n)&0xff) << 0)
- // ae_e00_sta_reg
- #define CAMERA_AE_E00_STA_LINE(n) (((n)&0x3f) << 0)
- // ae_e00_num_reg
- #define CAMERA_AE_E00_NUM(n) (((n)&0xf) << 0)
- #define CAMERA_AE_E00_INTERVAL(n) (((n)&0x3) << 4)
- // ae_e01_sta_reg
- #define CAMERA_AE_E01_STA_LINE(n) (((n)&0x3f) << 0)
- // ae_e01_num_reg
- #define CAMERA_AE_E01_NUM(n) (((n)&0xf) << 0)
- #define CAMERA_AE_E01_INTERVAL(n) (((n)&0x7) << 4)
- // ae_e02_sta_reg
- #define CAMERA_AE_E02_STA_LINE(n) (((n)&0x7f) << 0)
- // ae_e02_num_reg
- #define CAMERA_AE_E02_NUM(n) (((n)&0xf) << 0)
- #define CAMERA_AE_E02_INTERVAL(n) (((n)&0xf) << 4)
- // ae_e1_sta_reg
- #define CAMERA_AE_E1_STA_GAIN(n) (((n)&0x3f) << 0)
- // ae_e1_num_reg
- #define CAMERA_AE_E1_NUM_REG(n) (((n)&0xf) << 0)
- // ae_e2_sta_reg
- #define CAMERA_AE_E2_STA_GAIN(n) (((n)&0x3f) << 0)
- // ae_e2_num_reg
- #define CAMERA_AE_E2_NUM_REG(n) (((n)&0xf) << 0)
- // ae_e3_sta_reg
- #define CAMERA_AE_E3_STA_GAIN(n) (((n)&0x3f) << 0)
- // ae_e3_num_reg
- #define CAMERA_AE_E3_NUM_REG(n) (((n)&0xf) << 0)
- // ae_e4_sta_reg
- #define CAMERA_AE_E4_STA_GAIN(n) (((n)&0x3f) << 0)
- // ae_e4_num_reg
- #define CAMERA_AE_E4_NUM_REG(n) (((n)&0x1f) << 0)
- // ae_e5_sta_reg
- #define CAMERA_AE_E5_STA_GAIN(n) (((n)&0x3f) << 0)
- // ae_e5_num_reg
- #define CAMERA_AE_E5_NUM_REG(n) (((n)&0x1f) << 0)
- // ae_e6_sta_reg
- #define CAMERA_AE_E6_STA_GAIN(n) (((n)&0x3f) << 0)
- // ae_e6_num_reg
- #define CAMERA_AE_E6_NUM_REG(n) (((n)&0xf) << 0)
- // ae_e7_sta_reg
- #define CAMERA_AE_E7_STA_GAIN(n) (((n)&0x3f) << 0)
- // ae_e7_num_reg
- #define CAMERA_AE_E7_NUM_REG(n) (((n)&0xf) << 0)
- // ae_e8_sta_reg
- #define CAMERA_AE_E8_STA_GAIN(n) (((n)&0x3f) << 0)
- // ae_e8_num_reg
- #define CAMERA_AE_E8_NUM_REG(n) (((n)&0xf) << 0)
- // ae_e9_sta_reg
- #define CAMERA_AE_E9_STA_GAIN(n) (((n)&0x3f) << 0)
- // ae_e9_num_reg
- #define CAMERA_AE_E9_NUM_REG(n) (((n)&0xf) << 0)
- // ae_ea_sta_reg
- #define CAMERA_AE_EA_STA_GAIN(n) (((n)&0x3f) << 0)
- // ae_ea_num_reg
- #define CAMERA_AE_EA_NUM_REG(n) (((n)&0xf) << 0)
- // ae_eb_sta_reg
- #define CAMERA_AE_EB_STA_GAIN(n) (((n)&0x3f) << 0)
- // ae_eb_num_reg
- #define CAMERA_AE_EB_NUM_REG(n) (((n)&0xf) << 0)
- // ae_ec_sta_reg
- #define CAMERA_AE_EC_STA_GAIN(n) (((n)&0x3f) << 0)
- // ae_ec_num_reg
- #define CAMERA_AE_EC_NUM_REG(n) (((n)&0xf) << 0)
- // ae_ed_sta_reg
- #define CAMERA_AE_ED_STA_GAIN(n) (((n)&0x3f) << 0)
- // ae_ed_num_reg
- #define CAMERA_AE_ED_NUM_REG(n) (((n)&0xf) << 0)
- // bayer_gamma2_b0
- #define CAMERA_BAYER_GAMMA2_B0(n) (((n)&0xff) << 0)
- // bayer_gamma2_b1
- #define CAMERA_BAYER_GAMMA2_B1(n) (((n)&0xff) << 0)
- // bayer_gamma2_b2
- #define CAMERA_BAYER_GAMMA2_B2(n) (((n)&0xff) << 0)
- // bayer_gamma2_b3
- #define CAMERA_BAYER_GAMMA2_B3(n) (((n)&0xff) << 0)
- // bayer_gamma2_b4
- #define CAMERA_BAYER_GAMMA2_B4(n) (((n)&0xff) << 0)
- // bayer_gamma2_b6
- #define CAMERA_BAYER_GAMMA2_B6(n) (((n)&0xff) << 0)
- // bayer_gamma2_b8
- #define CAMERA_BAYER_GAMMA2_B8(n) (((n)&0xff) << 0)
- // bayer_gamma2_b10
- #define CAMERA_BAYER_GAMMA2_B10(n) (((n)&0xff) << 0)
- // bayer_gamma2_b12
- #define CAMERA_BAYER_GAMMA2_B12(n) (((n)&0xff) << 0)
- // bayer_gamma2_b16
- #define CAMERA_BAYER_GAMMA2_B16(n) (((n)&0xff) << 0)
- // bayer_gamma2_b20
- #define CAMERA_BAYER_GAMMA2_B20(n) (((n)&0xff) << 0)
- // bayer_gamma2_b24
- #define CAMERA_BAYER_GAMMA2_B24(n) (((n)&0xff) << 0)
- // bayer_gamma2_b28
- #define CAMERA_BAYER_GAMMA2_B28(n) (((n)&0xff) << 0)
- // bayer_gamma2_b32
- #define CAMERA_BAYER_GAMMA2_B32(n) (((n)&0xff) << 0)
- // bayer_gamma2_b36
- #define CAMERA_BAYER_GAMMA2_B36(n) (((n)&0xff) << 0)
- // bayer_gamma2_b40
- #define CAMERA_BAYER_GAMMA2_B40(n) (((n)&0xff) << 0)
- // bayer_gamma2_b48
- #define CAMERA_BAYER_GAMMA2_B48(n) (((n)&0xff) << 0)
- // bayer_gamma2_b56
- #define CAMERA_BAYER_GAMMA2_B56(n) (((n)&0xff) << 0)
- // bayer_gamma2_b64
- #define CAMERA_BAYER_GAMMA2_B64(n) (((n)&0xff) << 0)
- // y_thr7_lo_reg
- #define CAMERA_Y_THR7_LO_REG(n) (((n)&0xff) << 0)
- // y_thr7_mid_reg
- #define CAMERA_Y_THR7_MID_REG(n) (((n)&0xff) << 0)
- // y_thr7_hi_reg
- #define CAMERA_Y_THR7_HI_REG(n) (((n)&0xff) << 0)
- // dpa_new_ctrl_reg
- #define CAMERA_INFLG_CTRL_REG_0 (1 << 0)
- #define CAMERA_INFLG_CTRL_REG_1 (1 << 1)
- #define CAMERA_INFLG_CTRL_REG_2 (1 << 2)
- // dpa_new_ctrl_hi_reg
- #define CAMERA_INFLG_CTRL_REG0_H (1 << 0)
- #define CAMERA_INFLG_CTRL_REG1_H (1 << 1)
- #define CAMERA_INFLG_CTRL_REG2_H (1 << 2)
- #define CAMERA_THRESHOLD_RSVD(n) (((n)&0x3) << 3)
- // ae_index_gap
- #define CAMERA_GAP_2E (1 << 0)
- #define CAMERA_GAP_3E (1 << 1)
- #define CAMERA_GAP_4E (1 << 2)
- #define CAMERA_GAP_5E (1 << 3)
- #define CAMERA_GAP_6E (1 << 4)
- #define CAMERA_GAP_7E (1 << 5)
- #define CAMERA_GAP_8E (1 << 6)
- #define CAMERA_GAP_9E (1 << 7)
- // awb_calc_height_reg
- #define CAMERA_AWB_CALC_HEIGHT_REG(n) (((n)&0xff) << 0)
- // drc_r_clp_value_reg
- #define CAMERA_DRC_R_CLP_VALUE_REG(n) (((n)&0x3f) << 0)
- // drc_gr_clp_value_reg
- #define CAMERA_DRC_GR_CLP_VALUE_REG(n) (((n)&0x3f) << 0)
- // drc_gb_clp_value_reg
- #define CAMERA_DRC_GB_CLP_VALUE_REG(n) (((n)&0x3f) << 0)
- // drc_b_clp_value_reg
- #define CAMERA_DRC_B_CLP_VALUE_REG(n) (((n)&0x3f) << 0)
- // sepia_cr_reg
- #define CAMERA_SEPIA_CR_REG(n) (((n)&0xff) << 0)
- // sepia_cb_reg
- #define CAMERA_SEPIA_CB_REG(n) (((n)&0xff) << 0)
- // csup_y_min_hi_reg
- #define CAMERA_CSUP_Y_MIN_HI_REG(n) (((n)&0xff) << 0)
- // csup_gain_hi_reg
- #define CAMERA_CSUP_GAIN_HI_REG(n) (((n)&0xff) << 0)
- // csup_y_max_low_reg
- #define CAMERA_CSUP_Y_MAX_LOW_REG(n) (((n)&0xff) << 0)
- // csup_gain_low_reg
- #define CAMERA_CSUP_GAIN_LOW_REG(n) (((n)&0xff) << 0)
- // ae_dk_hist_thr_reg
- #define CAMERA_AE_DK_HIST_THR_REG(n) (((n)&0xff) << 0)
- // ae_br_hist_thr_reg
- #define CAMERA_AE_BR_HIST_THR_REG(n) (((n)&0xff) << 0)
- // hist_bp_level_reg
- #define CAMERA_HIST_BP_LEVEL_REG(n) (((n)&0xff) << 0)
- // outdoor_th_reg
- #define CAMERA_OUTDOOR_TH(n) (((n)&0xf) << 0)
- #define CAMERA_NON_OUTDOOR_TH(n) (((n)&0xf) << 4)
- // awb_rgain_low_reg
- #define CAMERA_AWB_RGAIN_LOW_REG(n) (((n)&0x3f) << 2)
- // awb_rgain_high_reg
- #define CAMERA_AWB_RGAIN_HIGH_REG(n) (((n)&0x3f) << 2)
- // awb_bgain_low_reg
- #define CAMERA_AWB_BGAIN_LOW_REG(n) (((n)&0x3f) << 2)
- // awb_bgain_high_reg
- #define CAMERA_AWB_BGAIN_HIGH_REG(n) (((n)&0x3f) << 2)
- // awb_calc_start_reg
- #define CAMERA_AWB_WIN_Y_START(n) (((n)&0xf) << 0)
- #define CAMERA_AWB_WIN_X_START(n) (((n)&0xf) << 4)
- // awb_calc_width_reg
- #define CAMERA_AWB_CALC_WIDTH_REG(n) (((n)&0xff) << 0)
- // hist_dp_level_reg
- #define CAMERA_HIST_DP_LEVEL_REG(n) (((n)&0xff) << 0)
- // awb_y_fmin
- #define CAMERA_AWB_Y_FMIN(n) (((n)&0xff) << 0)
- // awb_y_fmax
- #define CAMERA_AWB_Y_FMAX(n) (((n)&0xff) << 0)
- // awb_cb_fmin
- #define CAMERA_AWB_CB_FMIN(n) (((n)&0xff) << 0)
- // awb_cb_fmax
- #define CAMERA_AWB_CB_FMAX(n) (((n)&0xff) << 0)
- // awb_cr_fmin
- #define CAMERA_AWB_CR_FMIN(n) (((n)&0xff) << 0)
- // awb_cr_fmax
- #define CAMERA_AWB_CR_FMAX(n) (((n)&0xff) << 0)
- // awb_y_fmin2
- #define CAMERA_AWB_Y_FMIN2(n) (((n)&0xff) << 0)
- // awb_y_fmax2
- #define CAMERA_AWB_Y_FMAX2(n) (((n)&0xff) << 0)
- // awb_cb_fmin2
- #define CAMERA_AWB_CB_FMIN2(n) (((n)&0xff) << 0)
- // awb_cb_fmax2
- #define CAMERA_AWB_CB_FMAX2(n) (((n)&0xff) << 0)
- // awb_cr_fmin2
- #define CAMERA_AWB_CR_FMIN2(n) (((n)&0xff) << 0)
- // awb_cr_fmax2
- #define CAMERA_AWB_CR_FMAX2(n) (((n)&0xff) << 0)
- // ae_use_mean
- #define CAMERA_YCAVE_USE_MEAN(n) (((n)&0x3) << 0)
- #define CAMERA_YWAVE_USE_MEAN(n) (((n)&0x3) << 2)
- #define CAMERA_YAVE_WEIGHT_MODE (1 << 4)
- #define CAMERA_NEXP_OUT_SEL_REG (1 << 5)
- #define CAMERA_AE_EXT_ADJ_VAL_REG (1 << 6)
- #define CAMERA_AE_EXT_ADJ_ON_REG (1 << 7)
- // ae_weight_sta
- #define CAMERA_YWAVE_PCNT_LEFT(n) (((n)&0xf) << 0)
- #define CAMERA_YWAVE_LCNT_TOP(n) (((n)&0xf) << 4)
- // ae_qwidth
- #define CAMERA_QWIDTH(n) (((n)&0xff) << 0)
- // ae_qheight
- #define CAMERA_QHEIGHT(n) (((n)&0x7f) << 0)
- #define CAMERA_YWAVE_SEL (1 << 7)
- // ae_win_sta
- #define CAMERA_YAVE_PCNT_STA(n) (((n)&0xf) << 0)
- #define CAMERA_YAVE_LCNT_STA(n) (((n)&0xf) << 4)
- // ae_width
- #define CAMERA_WIDTH(n) (((n)&0xff) << 0)
- // ae_height
- #define CAMERA_HEIGHT(n) (((n)&0xff) << 0)
- // sw_update
- #define CAMERA_CC_TYPE_SW (1 << 0)
- #define CAMERA_IS_OUTDOOR_SW (1 << 1)
- #define CAMERA_GAMMA_TYPE_SW (1 << 2)
- #define CAMERA_SW_UPDATE_RSVD (1 << 3)
- #define CAMERA_IS_OUTDOOR_MODE(n) (((n)&0x7) << 4)
- #define CAMERA_AWB_OUTDOOR_EN (1 << 7)
- // awb_ctrl5
- #define CAMERA_R_LOW_NON_A(n) (((n)&0xff) << 0)
- // awb_ctrl6
- #define CAMERA_AWB_STOP_H(n) (((n)&0xf) << 0)
- #define CAMERA_AWB_ADJ_AGAIN(n) (((n)&0x3) << 4)
- #define CAMERA_AWB_ALGO_EN (1 << 6)
- #define CAMERA_CHECK_R_LOW (1 << 7)
- // sca_reg
- #define CAMERA_SCA_MODE(n) (((n)&0x7) << 0)
- // ae_ee_sta_reg
- #define CAMERA_AE_EE_STA_GAIN(n) (((n)&0x3f) << 0)
- // ae_ee_num_reg
- #define CAMERA_AE_EE_NUM_REG(n) (((n)&0xf) << 0)
- // ae_ef_sta_reg
- #define CAMERA_AE_EF_STA_GAIN(n) (((n)&0x3f) << 0)
- // ae_ef_num_reg
- #define CAMERA_AE_EF_NUM_REG(n) (((n)&0xf) << 0)
- // ae_thr_big_reg
- #define CAMERA_AE_THR_BIG_DARK(n) (((n)&0xf) << 0)
- #define CAMERA_AE_THR_BIG_BRIGHT(n) (((n)&0xf) << 4)
- // sharp_gain_minus_low
- #define CAMERA_SHARP_GAIN_MINUS_LOW(n) (((n)&0xff) << 0)
- // sharp_gain_minus_mid
- #define CAMERA_SHARP_GAIN_MINUS_MID(n) (((n)&0xff) << 0)
- // sharp_gain_minus_hi
- #define CAMERA_SHARP_GAIN_MINUS_HI(n) (((n)&0xff) << 0)
- // sharp_mode_mid_hi
- #define CAMERA_SHARP_CMP_GAP_MID(n) (((n)&0xf) << 0)
- #define CAMERA_SHARP_CMP_GAP_HI(n) (((n)&0xf) << 4)
- // fw_version_reg
- #define CAMERA_FW_VERSION(n) (((n)&0xff) << 0)
- // awb_y_min_reg
- #define CAMERA_AWB_Y_MIN(n) (((n)&0xff) << 0)
- // y_red_coef_reg
- #define CAMERA_Y_RED_COEF(n) (((n)&0xff) << 0)
- // y_blue_coef_reg
- #define CAMERA_Y_BLUE_COEF(n) (((n)&0xff) << 0)
- // cb_red_coef_reg
- #define CAMERA_CB_RED_COEF(n) (((n)&0xff) << 0)
- // cr_blue_coef_reg
- #define CAMERA_CR_BLUE_COEF(n) (((n)&0xff) << 0)
- // hist_vbp_level_reg
- #define CAMERA_HIST_VBP_LEVEL(n) (((n)&0xff) << 0)
- // hist_vdp_level_reg
- #define CAMERA_HIST_VDP_LEVEL(n) (((n)&0xff) << 0)
- #endif // _CAMERA_H_
|