iddet.h 91 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239
  1. /* Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
  2. * All rights reserved.
  3. *
  4. * This software is supplied "AS IS" without any warranties.
  5. * RDA assumes no responsibility or liability for the use of the software,
  6. * conveys no license or title under any patent, copyright, or mask work
  7. * right to the product. RDA reserves the right to make changes in the
  8. * software without notification. RDA also make no representation or
  9. * warranty that such application will be suitable for the specified use
  10. * without further testing or modification.
  11. */
  12. #ifndef _IDDET_H_
  13. #define _IDDET_H_
  14. // Auto generated by dtools(see dtools.txt for its version).
  15. // Don't edit it manually!
  16. #define REG_IDDET_BASE (0x18600000)
  17. typedef volatile struct
  18. {
  19. uint32_t iddet_start; // 0x00000000
  20. uint32_t pss1_ctrl; // 0x00000004
  21. uint32_t pss2_ctrl; // 0x00000008
  22. uint32_t sss_ctrl; // 0x0000000c
  23. uint32_t freqitm_idident_ctrl; // 0x00000010
  24. uint32_t resync_ctrl; // 0x00000014
  25. uint32_t shift_ctrl0; // 0x00000018
  26. uint32_t shift_ctrl1; // 0x0000001c
  27. uint32_t shift_ctrl2; // 0x00000020
  28. uint32_t int_ctrl; // 0x00000024
  29. uint32_t pos_offset; // 0x00000028
  30. uint32_t sam_num_ctrl1; // 0x0000002c
  31. uint32_t sam_num_ctrl2; // 0x00000030
  32. uint32_t sam_num_ctrl3; // 0x00000034
  33. uint32_t sam_num_ctrl4; // 0x00000038
  34. uint32_t sam_num_ctrl5; // 0x0000003c
  35. uint32_t sam_num_ctrl6; // 0x00000040
  36. uint32_t sam_num_ctrl7; // 0x00000044
  37. uint32_t sam_num_ctrl8; // 0x00000048
  38. uint32_t sam_num_ctrl9; // 0x0000004c
  39. uint32_t sam_num_ctrl10; // 0x00000050
  40. uint32_t end_threshold1; // 0x00000054
  41. uint32_t end_threshold2; // 0x00000058
  42. uint32_t end_threshold3; // 0x0000005c
  43. uint32_t end_threshold4; // 0x00000060
  44. uint32_t end_threshold5; // 0x00000064
  45. uint32_t end_threshold6; // 0x00000068
  46. uint32_t end_threshold7; // 0x0000006c
  47. uint32_t end_threshold8; // 0x00000070
  48. uint32_t end_threshold9; // 0x00000074
  49. uint32_t end_threshold10; // 0x00000078
  50. uint32_t pssitm_id_para1; // 0x0000007c
  51. uint32_t pssitm_id_para2; // 0x00000080
  52. uint32_t pssitm_id_para3; // 0x00000084
  53. uint32_t pssitm_id_para4; // 0x00000088
  54. uint32_t pssitm_id_para5; // 0x0000008c
  55. uint32_t pssitm_id_para6; // 0x00000090
  56. uint32_t pssitm_id_para7; // 0x00000094
  57. uint32_t pssitm_id_para8; // 0x00000098
  58. uint32_t pssitm_id_para9; // 0x0000009c
  59. uint32_t pssitm_id_para10; // 0x000000a0
  60. uint32_t pssitm_id_para11; // 0x000000a4
  61. uint32_t pssitm_id_para12; // 0x000000a8
  62. uint32_t sss_id_para1; // 0x000000ac
  63. uint32_t sss_id_para2; // 0x000000b0
  64. uint32_t sss_id_para3; // 0x000000b4
  65. uint32_t sss_id_para4; // 0x000000b8
  66. uint32_t sss_id_para5; // 0x000000bc
  67. uint32_t sss_id_para6; // 0x000000c0
  68. uint32_t sss_id_para7; // 0x000000c4
  69. uint32_t sss_id_para8; // 0x000000c8
  70. uint32_t sss_id_para9; // 0x000000cc
  71. uint32_t sss_id_para10; // 0x000000d0
  72. uint32_t sss_id_para11; // 0x000000d4
  73. uint32_t sss_id_para12; // 0x000000d8
  74. uint32_t freqitm_idident_para1; // 0x000000dc
  75. uint32_t freqitm_idident_para2; // 0x000000e0
  76. uint32_t freqitm_idident_para3; // 0x000000e4
  77. uint32_t freqitm_idident_para4; // 0x000000e8
  78. uint32_t freqitm_idident_para5; // 0x000000ec
  79. uint32_t freqitm_idident_para6; // 0x000000f0
  80. uint32_t freqitm_idident_para7; // 0x000000f4
  81. uint32_t freqitm_idident_para8; // 0x000000f8
  82. uint32_t freqitm_idident_para9; // 0x000000fc
  83. uint32_t freqitm_idident_para10; // 0x00000100
  84. uint32_t freqitm_idident_para11; // 0x00000104
  85. uint32_t freqitm_idident_para12; // 0x00000108
  86. uint32_t id_postion1; // 0x0000010c
  87. uint32_t id_postion2; // 0x00000110
  88. uint32_t id_postion3; // 0x00000114
  89. uint32_t id_postion4; // 0x00000118
  90. uint32_t id_postion5; // 0x0000011c
  91. uint32_t id_postion6; // 0x00000120
  92. uint32_t id_postion7; // 0x00000124
  93. uint32_t id_postion8; // 0x00000128
  94. uint32_t id_postion9; // 0x0000012c
  95. uint32_t id_postion10; // 0x00000130
  96. uint32_t id_postion11; // 0x00000134
  97. uint32_t id_postion12; // 0x00000138
  98. uint32_t pss_sss_find; // 0x0000013c
  99. uint32_t freq_pssgru1; // 0x00000140
  100. uint32_t freq_pssgru2; // 0x00000144
  101. uint32_t freq_pssitm1; // 0x00000148
  102. uint32_t freq_pssitm2; // 0x0000014c
  103. uint32_t freq_pssitm3; // 0x00000150
  104. uint32_t freq_pssitm4; // 0x00000154
  105. uint32_t rssi_target; // 0x00000158
  106. uint32_t ppm_gru_cfg1; // 0x0000015c
  107. uint32_t ppm_gru_cfg2; // 0x00000160
  108. uint32_t ppm_gru_cfg3; // 0x00000164
  109. uint32_t ppm_gru_cfg4; // 0x00000168
  110. uint32_t ppm_gru_cfg5; // 0x0000016c
  111. uint32_t ppm_delt_cfg; // 0x00000170
  112. uint32_t fft_cut; // 0x00000174
  113. uint32_t ic_id_para; // 0x00000178
  114. uint32_t ic_cfg; // 0x0000017c
  115. uint32_t freqitm_out0; // 0x00000180
  116. uint32_t valid_node; // 0x00000184
  117. uint32_t sample_sum; // 0x00000188
  118. uint32_t rssi; // 0x0000018c
  119. uint32_t id_power_noise1; // 0x00000190
  120. uint32_t id_power_noise2; // 0x00000194
  121. uint32_t id_power_noise3; // 0x00000198
  122. uint32_t id_power_noise4; // 0x0000019c
  123. uint32_t id_power_noise5; // 0x000001a0
  124. uint32_t id_power_noise6; // 0x000001a4
  125. uint32_t id_power_noise7; // 0x000001a8
  126. uint32_t id_power_noise8; // 0x000001ac
  127. uint32_t id_power_noise9; // 0x000001b0
  128. uint32_t id_power_noise10; // 0x000001b4
  129. uint32_t id_power_noise11; // 0x000001b8
  130. uint32_t id_power_noise12; // 0x000001bc
  131. uint32_t id_position_freq1; // 0x000001c0
  132. uint32_t id_position_freq2; // 0x000001c4
  133. uint32_t id_position_freq3; // 0x000001c8
  134. uint32_t id_position_freq4; // 0x000001cc
  135. uint32_t id_position_freq5; // 0x000001d0
  136. uint32_t id_position_freq6; // 0x000001d4
  137. uint32_t id_position_freq7; // 0x000001d8
  138. uint32_t id_position_freq8; // 0x000001dc
  139. uint32_t id_position_freq9; // 0x000001e0
  140. uint32_t id_position_freq10; // 0x000001e4
  141. uint32_t id_position_freq11; // 0x000001e8
  142. uint32_t id_position_freq12; // 0x000001ec
  143. uint32_t id_info1; // 0x000001f0
  144. uint32_t id_info2; // 0x000001f4
  145. uint32_t id_info3; // 0x000001f8
  146. uint32_t id_info4; // 0x000001fc
  147. uint32_t id_info5; // 0x00000200
  148. uint32_t id_info6; // 0x00000204
  149. uint32_t id_info7; // 0x00000208
  150. uint32_t id_info8; // 0x0000020c
  151. uint32_t id_info9; // 0x00000210
  152. uint32_t id_info10; // 0x00000214
  153. uint32_t id_info11; // 0x00000218
  154. uint32_t id_info12; // 0x0000021c
  155. uint32_t assist_id_power_noise1; // 0x00000220
  156. uint32_t assist_id_power_noise2; // 0x00000224
  157. uint32_t assist_id_power_noise3; // 0x00000228
  158. uint32_t assist_id_power_noise4; // 0x0000022c
  159. uint32_t assist_id_position_freq1; // 0x00000230
  160. uint32_t assist_id_position_freq2; // 0x00000234
  161. uint32_t assist_id_position_freq3; // 0x00000238
  162. uint32_t assist_id_position_freq4; // 0x0000023c
  163. uint32_t assist_id_info1; // 0x00000240
  164. uint32_t assist_id_info2; // 0x00000244
  165. uint32_t assist_id_info3; // 0x00000248
  166. uint32_t assist_id_info4; // 0x0000024c
  167. uint32_t int_flag; // 0x00000250
  168. uint32_t sta_flag; // 0x00000254
  169. uint32_t soft_use; // 0x00000258
  170. uint32_t pre_sample_count; // 0x0000025c
  171. uint32_t freq_search_ctrl; // 0x00000260
  172. uint32_t freq_search_config1; // 0x00000264
  173. uint32_t freq_search_config2; // 0x00000268
  174. uint32_t band_win_start_conf1; // 0x0000026c
  175. uint32_t band_win_start_conf2; // 0x00000270
  176. uint32_t band_win_end_conf1; // 0x00000274
  177. uint32_t band_win_end_conf2; // 0x00000278
  178. uint32_t agc_conf; // 0x0000027c
  179. uint32_t sbi_sum__len; // 0x00000280
  180. uint32_t target_agc; // 0x00000284
  181. uint32_t freqitm_out1; // 0x00000288
  182. uint32_t pss1_resyn_rssi_range; // 0x0000028c
  183. uint32_t pss1_max_rssi0; // 0x00000290
  184. uint32_t pss1_max_rssi1; // 0x00000294
  185. uint32_t pss1_max_rssi2; // 0x00000298
  186. uint32_t pss1_max_rssi3; // 0x0000029c
  187. uint32_t pss1_max_rssi4; // 0x000002a0
  188. uint32_t pss1_max_rssi5; // 0x000002a4
  189. uint32_t pss1_max_rssi6; // 0x000002a8
  190. uint32_t pss1_max_rssi7; // 0x000002ac
  191. uint32_t pss1_max_rssi8; // 0x000002b0
  192. uint32_t pss1_max_rssi9; // 0x000002b4
  193. uint32_t pss1_max_rssi10; // 0x000002b8
  194. uint32_t pss1_max_rssi11; // 0x000002bc
  195. uint32_t __704[848]; // 0x000002c0
  196. uint32_t mem8_9_mem10_11; // 0x00001000
  197. uint32_t __4100[1023]; // 0x00001004
  198. uint32_t mem12; // 0x00002000
  199. uint32_t __8196[1023]; // 0x00002004
  200. uint32_t mem15; // 0x00003000
  201. uint32_t __12292[1023]; // 0x00003004
  202. uint32_t memqf; // 0x00004000
  203. uint32_t __16388[4095]; // 0x00004004
  204. uint32_t mem1_8_mem1_11; // 0x00008000
  205. uint32_t __32772[4095]; // 0x00008004
  206. uint32_t mem_freq_pwr_before_agc; // 0x0000c000
  207. uint32_t __49156[1023]; // 0x0000c004
  208. uint32_t mem_freq_len_agc; // 0x0000d000
  209. } HWP_IDDET_T;
  210. #define hwp_iddet ((HWP_IDDET_T *)REG_ACCESS_ADDRESS(REG_IDDET_BASE))
  211. // iddet_start
  212. typedef union {
  213. uint32_t v;
  214. struct
  215. {
  216. uint32_t iddet_start : 1; // [0]
  217. uint32_t iddet_stop : 1; // [1]
  218. uint32_t data_move_out : 1; // [2]
  219. uint32_t txrx_offset_en : 1; // [3]
  220. uint32_t flow_sel : 3; // [6:4]
  221. uint32_t rec_continuity : 1; // [7]
  222. uint32_t sample_num : 4; // [11:8]
  223. uint32_t sample_len : 14; // [25:12]
  224. uint32_t save_last_pwr : 1; // [26]
  225. uint32_t rd_pre_pwr : 1; // [27]
  226. uint32_t __31_28 : 4; // [31:28]
  227. } b;
  228. } REG_IDDET_IDDET_START_T;
  229. // pss1_ctrl
  230. typedef union {
  231. uint32_t v;
  232. struct
  233. {
  234. uint32_t dc_en : 1; // [0]
  235. uint32_t dagc_en : 1; // [1]
  236. uint32_t localpss_freq_en : 2; // [3:2]
  237. uint32_t id_mode_sel : 2; // [5:4]
  238. uint32_t ppm_en : 1; // [6]
  239. uint32_t flow_mode_sel : 1; // [7]
  240. uint32_t max_num : 3; // [10:8]
  241. uint32_t __11_11 : 1; // [11]
  242. uint32_t output_num : 4; // [15:12]
  243. uint32_t rssi_en : 1; // [16]
  244. uint32_t __31_17 : 15; // [31:17]
  245. } b;
  246. } REG_IDDET_PSS1_CTRL_T;
  247. // pss2_ctrl
  248. typedef union {
  249. uint32_t v;
  250. struct
  251. {
  252. uint32_t dc_en : 1; // [0]
  253. uint32_t dagc_en : 1; // [1]
  254. uint32_t localpss_freq_en : 1; // [2]
  255. uint32_t ppm_en : 1; // [3]
  256. uint32_t pos_num : 4; // [7:4]
  257. uint32_t rssi_en : 1; // [8]
  258. uint32_t __31_9 : 23; // [31:9]
  259. } b;
  260. } REG_IDDET_PSS2_CTRL_T;
  261. // sss_ctrl
  262. typedef union {
  263. uint32_t v;
  264. struct
  265. {
  266. uint32_t dc_en : 1; // [0]
  267. uint32_t dagc_en : 1; // [1]
  268. uint32_t freq_en : 1; // [2]
  269. uint32_t ic_en : 1; // [3]
  270. uint32_t fdd_tdd_sel : 1; // [4]
  271. uint32_t id_mode_sel : 1; // [5]
  272. uint32_t flow_mode_sel : 1; // [6]
  273. uint32_t ppm_en : 1; // [7]
  274. uint32_t pos_num : 4; // [11:8]
  275. uint32_t nid1 : 8; // [19:12]
  276. uint32_t normalsort_num : 4; // [23:20]
  277. uint32_t sort_sel : 1; // [24]
  278. uint32_t pos_slide_num : 2; // [26:25]
  279. uint32_t rssi_en : 1; // [27]
  280. uint32_t __31_28 : 4; // [31:28]
  281. } b;
  282. } REG_IDDET_SSS_CTRL_T;
  283. // freqitm_idident_ctrl
  284. typedef union {
  285. uint32_t v;
  286. struct
  287. {
  288. uint32_t dc_en : 1; // [0]
  289. uint32_t dagc_en : 1; // [1]
  290. uint32_t ppm_en : 1; // [2]
  291. uint32_t freqitm_en : 1; // [3]
  292. uint32_t freq_en : 1; // [4]
  293. uint32_t fdd_tdd_sel : 1; // [5]
  294. uint32_t __7_6 : 2; // [7:6]
  295. uint32_t slide_num : 3; // [10:8]
  296. uint32_t __11_11 : 1; // [11]
  297. uint32_t pos_num : 4; // [15:12]
  298. uint32_t pos_slide_num : 2; // [17:16]
  299. uint32_t rssi_en : 1; // [18]
  300. uint32_t __31_19 : 13; // [31:19]
  301. } b;
  302. } REG_IDDET_FREQITM_IDIDENT_CTRL_T;
  303. // resync_ctrl
  304. typedef union {
  305. uint32_t v;
  306. struct
  307. {
  308. uint32_t dc_en : 1; // [0]
  309. uint32_t dagc_en : 1; // [1]
  310. uint32_t id2 : 2; // [3:2]
  311. uint32_t id1 : 8; // [11:4]
  312. uint32_t max_num : 3; // [14:12]
  313. uint32_t __15_15 : 1; // [15]
  314. uint32_t sfnum : 2; // [17:16]
  315. uint32_t data_len : 3; // [20:18]
  316. uint32_t rssi_en : 1; // [21]
  317. uint32_t __31_22 : 10; // [31:22]
  318. } b;
  319. } REG_IDDET_RESYNC_CTRL_T;
  320. // shift_ctrl0
  321. typedef union {
  322. uint32_t v;
  323. struct
  324. {
  325. uint32_t rssi_s0 : 4; // [3:0]
  326. uint32_t pwr_acc_s0 : 4; // [7:4]
  327. uint32_t rssi_s1 : 4; // [11:8]
  328. uint32_t pwr_acc_s1 : 4; // [15:12]
  329. uint32_t rssi_s2 : 4; // [19:16]
  330. uint32_t pwr_acc_s2 : 4; // [23:20]
  331. uint32_t rssi_s3 : 4; // [27:24]
  332. uint32_t pwr_acc_s3 : 4; // [31:28]
  333. } b;
  334. } REG_IDDET_SHIFT_CTRL0_T;
  335. // shift_ctrl1
  336. typedef union {
  337. uint32_t v;
  338. struct
  339. {
  340. uint32_t rssi_s4 : 4; // [3:0]
  341. uint32_t pwr_acc_s4 : 4; // [7:4]
  342. uint32_t rssi_s5 : 4; // [11:8]
  343. uint32_t pwr_acc_s5 : 4; // [15:12]
  344. uint32_t rssi_s6 : 4; // [19:16]
  345. uint32_t pwr_acc_s6 : 4; // [23:20]
  346. uint32_t rssi_s7 : 4; // [27:24]
  347. uint32_t pwr_acc_s7 : 4; // [31:28]
  348. } b;
  349. } REG_IDDET_SHIFT_CTRL1_T;
  350. // shift_ctrl2
  351. typedef union {
  352. uint32_t v;
  353. struct
  354. {
  355. uint32_t rssi_s8 : 4; // [3:0]
  356. uint32_t pwr_acc_s8 : 4; // [7:4]
  357. uint32_t rssi_s9 : 4; // [11:8]
  358. uint32_t pwr_acc_s9 : 4; // [15:12]
  359. uint32_t __31_16 : 16; // [31:16]
  360. } b;
  361. } REG_IDDET_SHIFT_CTRL2_T;
  362. // int_ctrl
  363. typedef union {
  364. uint32_t v;
  365. struct
  366. {
  367. uint32_t pssgru_fin_irq_en : 1; // [0]
  368. uint32_t pssitm_fin_irq_en : 1; // [1]
  369. uint32_t sss_fin_irq_en : 1; // [2]
  370. uint32_t freq_idident_fin_irq_en : 1; // [3]
  371. uint32_t resync_fin_irq_en : 1; // [4]
  372. uint32_t txrx_suspend_irq_en : 1; // [5]
  373. uint32_t error_irq_en : 1; // [6]
  374. uint32_t stop : 1; // [7]
  375. uint32_t rssi_en : 1; // [8]
  376. uint32_t freq_search_irq_en : 1; // [9]
  377. uint32_t discon_section_fin_irq_en : 1; // [10]
  378. uint32_t __31_11 : 21; // [31:11]
  379. } b;
  380. } REG_IDDET_INT_CTRL_T;
  381. // pos_offset
  382. typedef union {
  383. uint32_t v;
  384. struct
  385. {
  386. uint32_t pssitm_sss_offset_pos : 15; // [14:0]
  387. uint32_t __15_15 : 1; // [15]
  388. uint32_t pss1_rssi_th : 16; // [31:16]
  389. } b;
  390. } REG_IDDET_POS_OFFSET_T;
  391. // sam_num_ctrl1
  392. typedef union {
  393. uint32_t v;
  394. struct
  395. {
  396. uint32_t sam_num : 8; // [7:0]
  397. uint32_t __31_8 : 24; // [31:8]
  398. } b;
  399. } REG_IDDET_SAM_NUM_CTRL1_T;
  400. // sam_num_ctrl2
  401. typedef union {
  402. uint32_t v;
  403. struct
  404. {
  405. uint32_t sam_num : 8; // [7:0]
  406. uint32_t __31_8 : 24; // [31:8]
  407. } b;
  408. } REG_IDDET_SAM_NUM_CTRL2_T;
  409. // sam_num_ctrl3
  410. typedef union {
  411. uint32_t v;
  412. struct
  413. {
  414. uint32_t sam_num : 8; // [7:0]
  415. uint32_t __31_8 : 24; // [31:8]
  416. } b;
  417. } REG_IDDET_SAM_NUM_CTRL3_T;
  418. // sam_num_ctrl4
  419. typedef union {
  420. uint32_t v;
  421. struct
  422. {
  423. uint32_t sam_num : 8; // [7:0]
  424. uint32_t __31_8 : 24; // [31:8]
  425. } b;
  426. } REG_IDDET_SAM_NUM_CTRL4_T;
  427. // sam_num_ctrl5
  428. typedef union {
  429. uint32_t v;
  430. struct
  431. {
  432. uint32_t sam_num : 8; // [7:0]
  433. uint32_t __31_8 : 24; // [31:8]
  434. } b;
  435. } REG_IDDET_SAM_NUM_CTRL5_T;
  436. // sam_num_ctrl6
  437. typedef union {
  438. uint32_t v;
  439. struct
  440. {
  441. uint32_t sam_num : 8; // [7:0]
  442. uint32_t __31_8 : 24; // [31:8]
  443. } b;
  444. } REG_IDDET_SAM_NUM_CTRL6_T;
  445. // sam_num_ctrl7
  446. typedef union {
  447. uint32_t v;
  448. struct
  449. {
  450. uint32_t sam_num : 8; // [7:0]
  451. uint32_t __31_8 : 24; // [31:8]
  452. } b;
  453. } REG_IDDET_SAM_NUM_CTRL7_T;
  454. // sam_num_ctrl8
  455. typedef union {
  456. uint32_t v;
  457. struct
  458. {
  459. uint32_t sam_num : 8; // [7:0]
  460. uint32_t __31_8 : 24; // [31:8]
  461. } b;
  462. } REG_IDDET_SAM_NUM_CTRL8_T;
  463. // sam_num_ctrl9
  464. typedef union {
  465. uint32_t v;
  466. struct
  467. {
  468. uint32_t sam_num : 8; // [7:0]
  469. uint32_t __31_8 : 24; // [31:8]
  470. } b;
  471. } REG_IDDET_SAM_NUM_CTRL9_T;
  472. // sam_num_ctrl10
  473. typedef union {
  474. uint32_t v;
  475. struct
  476. {
  477. uint32_t sam_num : 8; // [7:0]
  478. uint32_t __31_8 : 24; // [31:8]
  479. } b;
  480. } REG_IDDET_SAM_NUM_CTRL10_T;
  481. // end_threshold1
  482. typedef union {
  483. uint32_t v;
  484. struct
  485. {
  486. uint32_t end_threshold0 : 16; // [15:0]
  487. uint32_t end_threshold1 : 16; // [31:16]
  488. } b;
  489. } REG_IDDET_END_THRESHOLD1_T;
  490. // end_threshold2
  491. typedef union {
  492. uint32_t v;
  493. struct
  494. {
  495. uint32_t end_threshold0 : 16; // [15:0]
  496. uint32_t end_threshold1 : 16; // [31:16]
  497. } b;
  498. } REG_IDDET_END_THRESHOLD2_T;
  499. // end_threshold3
  500. typedef union {
  501. uint32_t v;
  502. struct
  503. {
  504. uint32_t end_threshold0 : 16; // [15:0]
  505. uint32_t end_threshold1 : 16; // [31:16]
  506. } b;
  507. } REG_IDDET_END_THRESHOLD3_T;
  508. // end_threshold4
  509. typedef union {
  510. uint32_t v;
  511. struct
  512. {
  513. uint32_t end_threshold0 : 16; // [15:0]
  514. uint32_t end_threshold1 : 16; // [31:16]
  515. } b;
  516. } REG_IDDET_END_THRESHOLD4_T;
  517. // end_threshold5
  518. typedef union {
  519. uint32_t v;
  520. struct
  521. {
  522. uint32_t end_threshold0 : 16; // [15:0]
  523. uint32_t end_threshold1 : 16; // [31:16]
  524. } b;
  525. } REG_IDDET_END_THRESHOLD5_T;
  526. // end_threshold6
  527. typedef union {
  528. uint32_t v;
  529. struct
  530. {
  531. uint32_t end_threshold0 : 16; // [15:0]
  532. uint32_t end_threshold1 : 16; // [31:16]
  533. } b;
  534. } REG_IDDET_END_THRESHOLD6_T;
  535. // end_threshold7
  536. typedef union {
  537. uint32_t v;
  538. struct
  539. {
  540. uint32_t end_threshold0 : 16; // [15:0]
  541. uint32_t end_threshold1 : 16; // [31:16]
  542. } b;
  543. } REG_IDDET_END_THRESHOLD7_T;
  544. // end_threshold8
  545. typedef union {
  546. uint32_t v;
  547. struct
  548. {
  549. uint32_t end_threshold0 : 16; // [15:0]
  550. uint32_t end_threshold1 : 16; // [31:16]
  551. } b;
  552. } REG_IDDET_END_THRESHOLD8_T;
  553. // end_threshold9
  554. typedef union {
  555. uint32_t v;
  556. struct
  557. {
  558. uint32_t end_threshold0 : 16; // [15:0]
  559. uint32_t end_threshold1 : 16; // [31:16]
  560. } b;
  561. } REG_IDDET_END_THRESHOLD9_T;
  562. // end_threshold10
  563. typedef union {
  564. uint32_t v;
  565. struct
  566. {
  567. uint32_t end_threshold0 : 16; // [15:0]
  568. uint32_t end_threshold1 : 16; // [31:16]
  569. } b;
  570. } REG_IDDET_END_THRESHOLD10_T;
  571. // pssitm_id_para1
  572. typedef union {
  573. uint32_t v;
  574. struct
  575. {
  576. uint32_t nid2 : 2; // [1:0]
  577. uint32_t __3_2 : 2; // [3:2]
  578. uint32_t pssgru_ppm : 6; // [9:4]
  579. uint32_t __11_10 : 2; // [11:10]
  580. uint32_t pssgru_freqoff : 16; // [27:12]
  581. uint32_t __31_28 : 4; // [31:28]
  582. } b;
  583. } REG_IDDET_PSSITM_ID_PARA1_T;
  584. // pssitm_id_para2
  585. typedef union {
  586. uint32_t v;
  587. struct
  588. {
  589. uint32_t nid2 : 2; // [1:0]
  590. uint32_t __3_2 : 2; // [3:2]
  591. uint32_t pssgru_ppm : 6; // [9:4]
  592. uint32_t __11_10 : 2; // [11:10]
  593. uint32_t pssgru_freqoff : 16; // [27:12]
  594. uint32_t __31_28 : 4; // [31:28]
  595. } b;
  596. } REG_IDDET_PSSITM_ID_PARA2_T;
  597. // pssitm_id_para3
  598. typedef union {
  599. uint32_t v;
  600. struct
  601. {
  602. uint32_t nid2 : 2; // [1:0]
  603. uint32_t __3_2 : 2; // [3:2]
  604. uint32_t pssgru_ppm : 6; // [9:4]
  605. uint32_t __11_10 : 2; // [11:10]
  606. uint32_t pssgru_freqoff : 16; // [27:12]
  607. uint32_t __31_28 : 4; // [31:28]
  608. } b;
  609. } REG_IDDET_PSSITM_ID_PARA3_T;
  610. // pssitm_id_para4
  611. typedef union {
  612. uint32_t v;
  613. struct
  614. {
  615. uint32_t nid2 : 2; // [1:0]
  616. uint32_t __3_2 : 2; // [3:2]
  617. uint32_t pssgru_ppm : 6; // [9:4]
  618. uint32_t __11_10 : 2; // [11:10]
  619. uint32_t pssgru_freqoff : 16; // [27:12]
  620. uint32_t __31_28 : 4; // [31:28]
  621. } b;
  622. } REG_IDDET_PSSITM_ID_PARA4_T;
  623. // pssitm_id_para5
  624. typedef union {
  625. uint32_t v;
  626. struct
  627. {
  628. uint32_t nid2 : 2; // [1:0]
  629. uint32_t __3_2 : 2; // [3:2]
  630. uint32_t pssgru_ppm : 6; // [9:4]
  631. uint32_t __11_10 : 2; // [11:10]
  632. uint32_t pssgru_freqoff : 16; // [27:12]
  633. uint32_t __31_28 : 4; // [31:28]
  634. } b;
  635. } REG_IDDET_PSSITM_ID_PARA5_T;
  636. // pssitm_id_para6
  637. typedef union {
  638. uint32_t v;
  639. struct
  640. {
  641. uint32_t nid2 : 2; // [1:0]
  642. uint32_t __3_2 : 2; // [3:2]
  643. uint32_t pssgru_ppm : 6; // [9:4]
  644. uint32_t __11_10 : 2; // [11:10]
  645. uint32_t pssgru_freqoff : 16; // [27:12]
  646. uint32_t __31_28 : 4; // [31:28]
  647. } b;
  648. } REG_IDDET_PSSITM_ID_PARA6_T;
  649. // pssitm_id_para7
  650. typedef union {
  651. uint32_t v;
  652. struct
  653. {
  654. uint32_t nid2 : 2; // [1:0]
  655. uint32_t __3_2 : 2; // [3:2]
  656. uint32_t pssgru_ppm : 6; // [9:4]
  657. uint32_t __11_10 : 2; // [11:10]
  658. uint32_t pssgru_freqoff : 16; // [27:12]
  659. uint32_t __31_28 : 4; // [31:28]
  660. } b;
  661. } REG_IDDET_PSSITM_ID_PARA7_T;
  662. // pssitm_id_para8
  663. typedef union {
  664. uint32_t v;
  665. struct
  666. {
  667. uint32_t nid2 : 2; // [1:0]
  668. uint32_t __3_2 : 2; // [3:2]
  669. uint32_t pssgru_ppm : 6; // [9:4]
  670. uint32_t __11_10 : 2; // [11:10]
  671. uint32_t pssgru_freqoff : 16; // [27:12]
  672. uint32_t __31_28 : 4; // [31:28]
  673. } b;
  674. } REG_IDDET_PSSITM_ID_PARA8_T;
  675. // pssitm_id_para9
  676. typedef union {
  677. uint32_t v;
  678. struct
  679. {
  680. uint32_t nid2 : 2; // [1:0]
  681. uint32_t __3_2 : 2; // [3:2]
  682. uint32_t pssgru_ppm : 6; // [9:4]
  683. uint32_t __11_10 : 2; // [11:10]
  684. uint32_t pssgru_freqoff : 16; // [27:12]
  685. uint32_t __31_28 : 4; // [31:28]
  686. } b;
  687. } REG_IDDET_PSSITM_ID_PARA9_T;
  688. // pssitm_id_para10
  689. typedef union {
  690. uint32_t v;
  691. struct
  692. {
  693. uint32_t nid2 : 2; // [1:0]
  694. uint32_t __3_2 : 2; // [3:2]
  695. uint32_t pssgru_ppm : 6; // [9:4]
  696. uint32_t __11_10 : 2; // [11:10]
  697. uint32_t pssgru_freqoff : 16; // [27:12]
  698. uint32_t __31_28 : 4; // [31:28]
  699. } b;
  700. } REG_IDDET_PSSITM_ID_PARA10_T;
  701. // pssitm_id_para11
  702. typedef union {
  703. uint32_t v;
  704. struct
  705. {
  706. uint32_t nid2 : 2; // [1:0]
  707. uint32_t __3_2 : 2; // [3:2]
  708. uint32_t pssgru_ppm : 6; // [9:4]
  709. uint32_t __11_10 : 2; // [11:10]
  710. uint32_t pssgru_freqoff : 16; // [27:12]
  711. uint32_t __31_28 : 4; // [31:28]
  712. } b;
  713. } REG_IDDET_PSSITM_ID_PARA11_T;
  714. // pssitm_id_para12
  715. typedef union {
  716. uint32_t v;
  717. struct
  718. {
  719. uint32_t nid2 : 2; // [1:0]
  720. uint32_t __3_2 : 2; // [3:2]
  721. uint32_t pssgru_ppm : 6; // [9:4]
  722. uint32_t __11_10 : 2; // [11:10]
  723. uint32_t pssgru_freqoff : 16; // [27:12]
  724. uint32_t __31_28 : 4; // [31:28]
  725. } b;
  726. } REG_IDDET_PSSITM_ID_PARA12_T;
  727. // sss_id_para1
  728. typedef union {
  729. uint32_t v;
  730. struct
  731. {
  732. uint32_t nid2 : 2; // [1:0]
  733. uint32_t sfnum : 1; // [2]
  734. uint32_t cptype : 1; // [3]
  735. uint32_t pssgru_ppm : 6; // [9:4]
  736. uint32_t __11_10 : 2; // [11:10]
  737. uint32_t pssgru_freqoff : 16; // [27:12]
  738. uint32_t __31_28 : 4; // [31:28]
  739. } b;
  740. } REG_IDDET_SSS_ID_PARA1_T;
  741. // sss_id_para2
  742. typedef union {
  743. uint32_t v;
  744. struct
  745. {
  746. uint32_t nid2 : 2; // [1:0]
  747. uint32_t sfnum : 1; // [2]
  748. uint32_t cptype : 1; // [3]
  749. uint32_t pssgru_ppm : 6; // [9:4]
  750. uint32_t __11_10 : 2; // [11:10]
  751. uint32_t pssgru_freqoff : 16; // [27:12]
  752. uint32_t __31_28 : 4; // [31:28]
  753. } b;
  754. } REG_IDDET_SSS_ID_PARA2_T;
  755. // sss_id_para3
  756. typedef union {
  757. uint32_t v;
  758. struct
  759. {
  760. uint32_t nid2 : 2; // [1:0]
  761. uint32_t sfnum : 1; // [2]
  762. uint32_t cptype : 1; // [3]
  763. uint32_t pssgru_ppm : 6; // [9:4]
  764. uint32_t __11_10 : 2; // [11:10]
  765. uint32_t pssgru_freqoff : 16; // [27:12]
  766. uint32_t __31_28 : 4; // [31:28]
  767. } b;
  768. } REG_IDDET_SSS_ID_PARA3_T;
  769. // sss_id_para4
  770. typedef union {
  771. uint32_t v;
  772. struct
  773. {
  774. uint32_t nid2 : 2; // [1:0]
  775. uint32_t sfnum : 1; // [2]
  776. uint32_t cptype : 1; // [3]
  777. uint32_t pssgru_ppm : 6; // [9:4]
  778. uint32_t __11_10 : 2; // [11:10]
  779. uint32_t pssgru_freqoff : 16; // [27:12]
  780. uint32_t __31_28 : 4; // [31:28]
  781. } b;
  782. } REG_IDDET_SSS_ID_PARA4_T;
  783. // sss_id_para5
  784. typedef union {
  785. uint32_t v;
  786. struct
  787. {
  788. uint32_t nid2 : 2; // [1:0]
  789. uint32_t sfnum : 1; // [2]
  790. uint32_t cptype : 1; // [3]
  791. uint32_t pssgru_ppm : 6; // [9:4]
  792. uint32_t __11_10 : 2; // [11:10]
  793. uint32_t pssgru_freqoff : 16; // [27:12]
  794. uint32_t __31_28 : 4; // [31:28]
  795. } b;
  796. } REG_IDDET_SSS_ID_PARA5_T;
  797. // sss_id_para6
  798. typedef union {
  799. uint32_t v;
  800. struct
  801. {
  802. uint32_t nid2 : 2; // [1:0]
  803. uint32_t sfnum : 1; // [2]
  804. uint32_t cptype : 1; // [3]
  805. uint32_t pssgru_ppm : 6; // [9:4]
  806. uint32_t __11_10 : 2; // [11:10]
  807. uint32_t pssgru_freqoff : 16; // [27:12]
  808. uint32_t __31_28 : 4; // [31:28]
  809. } b;
  810. } REG_IDDET_SSS_ID_PARA6_T;
  811. // sss_id_para7
  812. typedef union {
  813. uint32_t v;
  814. struct
  815. {
  816. uint32_t nid2 : 2; // [1:0]
  817. uint32_t sfnum : 1; // [2]
  818. uint32_t cptype : 1; // [3]
  819. uint32_t pssgru_ppm : 6; // [9:4]
  820. uint32_t __11_10 : 2; // [11:10]
  821. uint32_t pssgru_freqoff : 16; // [27:12]
  822. uint32_t __31_28 : 4; // [31:28]
  823. } b;
  824. } REG_IDDET_SSS_ID_PARA7_T;
  825. // sss_id_para8
  826. typedef union {
  827. uint32_t v;
  828. struct
  829. {
  830. uint32_t nid2 : 2; // [1:0]
  831. uint32_t sfnum : 1; // [2]
  832. uint32_t cptype : 1; // [3]
  833. uint32_t pssgru_ppm : 6; // [9:4]
  834. uint32_t __11_10 : 2; // [11:10]
  835. uint32_t pssgru_freqoff : 16; // [27:12]
  836. uint32_t __31_28 : 4; // [31:28]
  837. } b;
  838. } REG_IDDET_SSS_ID_PARA8_T;
  839. // sss_id_para9
  840. typedef union {
  841. uint32_t v;
  842. struct
  843. {
  844. uint32_t nid2 : 2; // [1:0]
  845. uint32_t sfnum : 1; // [2]
  846. uint32_t cptype : 1; // [3]
  847. uint32_t pssgru_ppm : 6; // [9:4]
  848. uint32_t __11_10 : 2; // [11:10]
  849. uint32_t pssgru_freqoff : 16; // [27:12]
  850. uint32_t __31_28 : 4; // [31:28]
  851. } b;
  852. } REG_IDDET_SSS_ID_PARA9_T;
  853. // sss_id_para10
  854. typedef union {
  855. uint32_t v;
  856. struct
  857. {
  858. uint32_t nid2 : 2; // [1:0]
  859. uint32_t sfnum : 1; // [2]
  860. uint32_t cptype : 1; // [3]
  861. uint32_t pssgru_ppm : 6; // [9:4]
  862. uint32_t __11_10 : 2; // [11:10]
  863. uint32_t pssgru_freqoff : 16; // [27:12]
  864. uint32_t __31_28 : 4; // [31:28]
  865. } b;
  866. } REG_IDDET_SSS_ID_PARA10_T;
  867. // sss_id_para11
  868. typedef union {
  869. uint32_t v;
  870. struct
  871. {
  872. uint32_t nid2 : 2; // [1:0]
  873. uint32_t sfnum : 1; // [2]
  874. uint32_t cptype : 1; // [3]
  875. uint32_t pssgru_ppm : 6; // [9:4]
  876. uint32_t __11_10 : 2; // [11:10]
  877. uint32_t pssgru_freqoff : 16; // [27:12]
  878. uint32_t __31_28 : 4; // [31:28]
  879. } b;
  880. } REG_IDDET_SSS_ID_PARA11_T;
  881. // sss_id_para12
  882. typedef union {
  883. uint32_t v;
  884. struct
  885. {
  886. uint32_t nid2 : 2; // [1:0]
  887. uint32_t sfnum : 1; // [2]
  888. uint32_t cptype : 1; // [3]
  889. uint32_t pssgru_ppm : 6; // [9:4]
  890. uint32_t __11_10 : 2; // [11:10]
  891. uint32_t pssgru_freqoff : 16; // [27:12]
  892. uint32_t __31_28 : 4; // [31:28]
  893. } b;
  894. } REG_IDDET_SSS_ID_PARA12_T;
  895. // freqitm_idident_para1
  896. typedef union {
  897. uint32_t v;
  898. struct
  899. {
  900. uint32_t nid1 : 8; // [7:0]
  901. uint32_t __31_8 : 24; // [31:8]
  902. } b;
  903. } REG_IDDET_FREQITM_IDIDENT_PARA1_T;
  904. // freqitm_idident_para2
  905. typedef union {
  906. uint32_t v;
  907. struct
  908. {
  909. uint32_t nid1 : 8; // [7:0]
  910. uint32_t __31_8 : 24; // [31:8]
  911. } b;
  912. } REG_IDDET_FREQITM_IDIDENT_PARA2_T;
  913. // freqitm_idident_para3
  914. typedef union {
  915. uint32_t v;
  916. struct
  917. {
  918. uint32_t nid1 : 8; // [7:0]
  919. uint32_t __31_8 : 24; // [31:8]
  920. } b;
  921. } REG_IDDET_FREQITM_IDIDENT_PARA3_T;
  922. // freqitm_idident_para4
  923. typedef union {
  924. uint32_t v;
  925. struct
  926. {
  927. uint32_t nid1 : 8; // [7:0]
  928. uint32_t __31_8 : 24; // [31:8]
  929. } b;
  930. } REG_IDDET_FREQITM_IDIDENT_PARA4_T;
  931. // freqitm_idident_para5
  932. typedef union {
  933. uint32_t v;
  934. struct
  935. {
  936. uint32_t nid1 : 8; // [7:0]
  937. uint32_t __31_8 : 24; // [31:8]
  938. } b;
  939. } REG_IDDET_FREQITM_IDIDENT_PARA5_T;
  940. // freqitm_idident_para6
  941. typedef union {
  942. uint32_t v;
  943. struct
  944. {
  945. uint32_t nid1 : 8; // [7:0]
  946. uint32_t __31_8 : 24; // [31:8]
  947. } b;
  948. } REG_IDDET_FREQITM_IDIDENT_PARA6_T;
  949. // freqitm_idident_para7
  950. typedef union {
  951. uint32_t v;
  952. struct
  953. {
  954. uint32_t nid1 : 8; // [7:0]
  955. uint32_t __31_8 : 24; // [31:8]
  956. } b;
  957. } REG_IDDET_FREQITM_IDIDENT_PARA7_T;
  958. // freqitm_idident_para8
  959. typedef union {
  960. uint32_t v;
  961. struct
  962. {
  963. uint32_t nid1 : 8; // [7:0]
  964. uint32_t __31_8 : 24; // [31:8]
  965. } b;
  966. } REG_IDDET_FREQITM_IDIDENT_PARA8_T;
  967. // freqitm_idident_para9
  968. typedef union {
  969. uint32_t v;
  970. struct
  971. {
  972. uint32_t nid1 : 8; // [7:0]
  973. uint32_t __31_8 : 24; // [31:8]
  974. } b;
  975. } REG_IDDET_FREQITM_IDIDENT_PARA9_T;
  976. // freqitm_idident_para10
  977. typedef union {
  978. uint32_t v;
  979. struct
  980. {
  981. uint32_t nid1 : 8; // [7:0]
  982. uint32_t __31_8 : 24; // [31:8]
  983. } b;
  984. } REG_IDDET_FREQITM_IDIDENT_PARA10_T;
  985. // freqitm_idident_para11
  986. typedef union {
  987. uint32_t v;
  988. struct
  989. {
  990. uint32_t nid1 : 8; // [7:0]
  991. uint32_t __31_8 : 24; // [31:8]
  992. } b;
  993. } REG_IDDET_FREQITM_IDIDENT_PARA11_T;
  994. // freqitm_idident_para12
  995. typedef union {
  996. uint32_t v;
  997. struct
  998. {
  999. uint32_t nid1 : 8; // [7:0]
  1000. uint32_t __31_8 : 24; // [31:8]
  1001. } b;
  1002. } REG_IDDET_FREQITM_IDIDENT_PARA12_T;
  1003. // id_postion1
  1004. typedef union {
  1005. uint32_t v;
  1006. struct
  1007. {
  1008. uint32_t id_pos : 14; // [13:0]
  1009. uint32_t __31_14 : 18; // [31:14]
  1010. } b;
  1011. } REG_IDDET_ID_POSTION1_T;
  1012. // id_postion2
  1013. typedef union {
  1014. uint32_t v;
  1015. struct
  1016. {
  1017. uint32_t id_pos : 14; // [13:0]
  1018. uint32_t __31_14 : 18; // [31:14]
  1019. } b;
  1020. } REG_IDDET_ID_POSTION2_T;
  1021. // id_postion3
  1022. typedef union {
  1023. uint32_t v;
  1024. struct
  1025. {
  1026. uint32_t id_pos : 14; // [13:0]
  1027. uint32_t __31_14 : 18; // [31:14]
  1028. } b;
  1029. } REG_IDDET_ID_POSTION3_T;
  1030. // id_postion4
  1031. typedef union {
  1032. uint32_t v;
  1033. struct
  1034. {
  1035. uint32_t id_pos : 14; // [13:0]
  1036. uint32_t __31_14 : 18; // [31:14]
  1037. } b;
  1038. } REG_IDDET_ID_POSTION4_T;
  1039. // id_postion5
  1040. typedef union {
  1041. uint32_t v;
  1042. struct
  1043. {
  1044. uint32_t id_pos : 14; // [13:0]
  1045. uint32_t __31_14 : 18; // [31:14]
  1046. } b;
  1047. } REG_IDDET_ID_POSTION5_T;
  1048. // id_postion6
  1049. typedef union {
  1050. uint32_t v;
  1051. struct
  1052. {
  1053. uint32_t id_pos : 14; // [13:0]
  1054. uint32_t __31_14 : 18; // [31:14]
  1055. } b;
  1056. } REG_IDDET_ID_POSTION6_T;
  1057. // id_postion7
  1058. typedef union {
  1059. uint32_t v;
  1060. struct
  1061. {
  1062. uint32_t id_pos : 14; // [13:0]
  1063. uint32_t __31_14 : 18; // [31:14]
  1064. } b;
  1065. } REG_IDDET_ID_POSTION7_T;
  1066. // id_postion8
  1067. typedef union {
  1068. uint32_t v;
  1069. struct
  1070. {
  1071. uint32_t id_pos : 14; // [13:0]
  1072. uint32_t __31_14 : 18; // [31:14]
  1073. } b;
  1074. } REG_IDDET_ID_POSTION8_T;
  1075. // id_postion9
  1076. typedef union {
  1077. uint32_t v;
  1078. struct
  1079. {
  1080. uint32_t id_pos : 14; // [13:0]
  1081. uint32_t __31_14 : 18; // [31:14]
  1082. } b;
  1083. } REG_IDDET_ID_POSTION9_T;
  1084. // id_postion10
  1085. typedef union {
  1086. uint32_t v;
  1087. struct
  1088. {
  1089. uint32_t id_pos : 14; // [13:0]
  1090. uint32_t __31_14 : 18; // [31:14]
  1091. } b;
  1092. } REG_IDDET_ID_POSTION10_T;
  1093. // id_postion11
  1094. typedef union {
  1095. uint32_t v;
  1096. struct
  1097. {
  1098. uint32_t id_pos : 14; // [13:0]
  1099. uint32_t __31_14 : 18; // [31:14]
  1100. } b;
  1101. } REG_IDDET_ID_POSTION11_T;
  1102. // id_postion12
  1103. typedef union {
  1104. uint32_t v;
  1105. struct
  1106. {
  1107. uint32_t id_pos : 14; // [13:0]
  1108. uint32_t __31_14 : 18; // [31:14]
  1109. } b;
  1110. } REG_IDDET_ID_POSTION12_T;
  1111. // pss_sss_find
  1112. typedef union {
  1113. uint32_t v;
  1114. struct
  1115. {
  1116. uint32_t nois_th : 8; // [7:0]
  1117. uint32_t noisth_en : 1; // [8]
  1118. uint32_t p2p_win : 7; // [15:9]
  1119. uint32_t wipe_win : 2; // [17:16]
  1120. uint32_t assist_win : 2; // [19:18]
  1121. uint32_t nois_win : 2; // [21:20]
  1122. uint32_t __23_22 : 2; // [23:22]
  1123. uint32_t find_win : 4; // [27:24]
  1124. uint32_t __31_28 : 4; // [31:28]
  1125. } b;
  1126. } REG_IDDET_PSS_SSS_FIND_T;
  1127. // freq_pssgru1
  1128. typedef union {
  1129. uint32_t v;
  1130. struct
  1131. {
  1132. uint32_t freq_pssgru0 : 10; // [9:0]
  1133. uint32_t freq_pssgru1 : 10; // [19:10]
  1134. uint32_t freq_pssgru2 : 10; // [29:20]
  1135. uint32_t __31_30 : 2; // [31:30]
  1136. } b;
  1137. } REG_IDDET_FREQ_PSSGRU1_T;
  1138. // freq_pssgru2
  1139. typedef union {
  1140. uint32_t v;
  1141. struct
  1142. {
  1143. uint32_t freq_pssgru3 : 10; // [9:0]
  1144. uint32_t freq_pssgru4 : 10; // [19:10]
  1145. uint32_t __31_20 : 12; // [31:20]
  1146. } b;
  1147. } REG_IDDET_FREQ_PSSGRU2_T;
  1148. // freq_pssitm1
  1149. typedef union {
  1150. uint32_t v;
  1151. struct
  1152. {
  1153. uint32_t freq_pssitm : 13; // [12:0]
  1154. uint32_t __31_13 : 19; // [31:13]
  1155. } b;
  1156. } REG_IDDET_FREQ_PSSITM1_T;
  1157. // freq_pssitm2
  1158. typedef union {
  1159. uint32_t v;
  1160. struct
  1161. {
  1162. uint32_t freq_pssitm : 13; // [12:0]
  1163. uint32_t __31_13 : 19; // [31:13]
  1164. } b;
  1165. } REG_IDDET_FREQ_PSSITM2_T;
  1166. // freq_pssitm3
  1167. typedef union {
  1168. uint32_t v;
  1169. struct
  1170. {
  1171. uint32_t freq_pssitm : 13; // [12:0]
  1172. uint32_t __31_13 : 19; // [31:13]
  1173. } b;
  1174. } REG_IDDET_FREQ_PSSITM3_T;
  1175. // freq_pssitm4
  1176. typedef union {
  1177. uint32_t v;
  1178. struct
  1179. {
  1180. uint32_t freq_pssitm : 13; // [12:0]
  1181. uint32_t __31_13 : 19; // [31:13]
  1182. } b;
  1183. } REG_IDDET_FREQ_PSSITM4_T;
  1184. // ppm_gru_cfg1
  1185. typedef union {
  1186. uint32_t v;
  1187. struct
  1188. {
  1189. uint32_t ppm0 : 6; // [5:0]
  1190. uint32_t __7_6 : 2; // [7:6]
  1191. uint32_t ppm1 : 6; // [13:8]
  1192. uint32_t __31_14 : 18; // [31:14]
  1193. } b;
  1194. } REG_IDDET_PPM_GRU_CFG1_T;
  1195. // ppm_gru_cfg2
  1196. typedef union {
  1197. uint32_t v;
  1198. struct
  1199. {
  1200. uint32_t ppm0 : 6; // [5:0]
  1201. uint32_t __7_6 : 2; // [7:6]
  1202. uint32_t ppm1 : 6; // [13:8]
  1203. uint32_t __31_14 : 18; // [31:14]
  1204. } b;
  1205. } REG_IDDET_PPM_GRU_CFG2_T;
  1206. // ppm_gru_cfg3
  1207. typedef union {
  1208. uint32_t v;
  1209. struct
  1210. {
  1211. uint32_t ppm0 : 6; // [5:0]
  1212. uint32_t __7_6 : 2; // [7:6]
  1213. uint32_t ppm1 : 6; // [13:8]
  1214. uint32_t __31_14 : 18; // [31:14]
  1215. } b;
  1216. } REG_IDDET_PPM_GRU_CFG3_T;
  1217. // ppm_gru_cfg4
  1218. typedef union {
  1219. uint32_t v;
  1220. struct
  1221. {
  1222. uint32_t ppm0 : 6; // [5:0]
  1223. uint32_t __7_6 : 2; // [7:6]
  1224. uint32_t ppm1 : 6; // [13:8]
  1225. uint32_t __31_14 : 18; // [31:14]
  1226. } b;
  1227. } REG_IDDET_PPM_GRU_CFG4_T;
  1228. // ppm_gru_cfg5
  1229. typedef union {
  1230. uint32_t v;
  1231. struct
  1232. {
  1233. uint32_t ppm0 : 6; // [5:0]
  1234. uint32_t __7_6 : 2; // [7:6]
  1235. uint32_t ppm1 : 6; // [13:8]
  1236. uint32_t __31_14 : 18; // [31:14]
  1237. } b;
  1238. } REG_IDDET_PPM_GRU_CFG5_T;
  1239. // ppm_delt_cfg
  1240. typedef union {
  1241. uint32_t v;
  1242. struct
  1243. {
  1244. uint32_t delt_ppm0 : 4; // [3:0]
  1245. uint32_t delt_ppm1 : 4; // [7:4]
  1246. uint32_t delt_ppm2 : 4; // [11:8]
  1247. uint32_t delt_ppm3 : 4; // [15:12]
  1248. uint32_t __31_16 : 16; // [31:16]
  1249. } b;
  1250. } REG_IDDET_PPM_DELT_CFG_T;
  1251. // fft_cut
  1252. typedef union {
  1253. uint32_t v;
  1254. struct
  1255. {
  1256. uint32_t lnum_mod1 : 4; // [3:0]
  1257. uint32_t lnum_mod2 : 4; // [7:4]
  1258. uint32_t __31_8 : 24; // [31:8]
  1259. } b;
  1260. } REG_IDDET_FFT_CUT_T;
  1261. // ic_id_para
  1262. typedef union {
  1263. uint32_t v;
  1264. struct
  1265. {
  1266. uint32_t nid1 : 8; // [7:0]
  1267. uint32_t nid2 : 2; // [9:8]
  1268. uint32_t sfnum : 1; // [10]
  1269. uint32_t cptype : 1; // [11]
  1270. uint32_t freq_off : 16; // [27:12]
  1271. uint32_t freq_off_en : 1; // [28]
  1272. uint32_t __31_29 : 3; // [31:29]
  1273. } b;
  1274. } REG_IDDET_IC_ID_PARA_T;
  1275. // ic_cfg
  1276. typedef union {
  1277. uint32_t v;
  1278. struct
  1279. {
  1280. uint32_t ic_shift : 4; // [3:0]
  1281. uint32_t sssic_pos : 14; // [17:4]
  1282. uint32_t ic_ppm : 6; // [23:18]
  1283. uint32_t __31_24 : 8; // [31:24]
  1284. } b;
  1285. } REG_IDDET_IC_CFG_T;
  1286. // freqitm_out0
  1287. typedef union {
  1288. uint32_t v;
  1289. struct
  1290. {
  1291. uint32_t freq_itm_out0 : 16; // [15:0], read only
  1292. uint32_t __31_16 : 16; // [31:16]
  1293. } b;
  1294. } REG_IDDET_FREQITM_OUT0_T;
  1295. // valid_node
  1296. typedef union {
  1297. uint32_t v;
  1298. struct
  1299. {
  1300. uint32_t valid_node0 : 4; // [3:0], read only
  1301. uint32_t valid_node1 : 4; // [7:4], read only
  1302. uint32_t __31_8 : 24; // [31:8]
  1303. } b;
  1304. } REG_IDDET_VALID_NODE_T;
  1305. // sample_sum
  1306. typedef union {
  1307. uint32_t v;
  1308. struct
  1309. {
  1310. uint32_t sample_sum : 8; // [7:0]
  1311. uint32_t __31_8 : 24; // [31:8]
  1312. } b;
  1313. } REG_IDDET_SAMPLE_SUM_T;
  1314. // rssi
  1315. typedef union {
  1316. uint32_t v;
  1317. struct
  1318. {
  1319. uint32_t rssi : 16; // [15:0], read only
  1320. uint32_t __31_16 : 16; // [31:16]
  1321. } b;
  1322. } REG_IDDET_RSSI_T;
  1323. // id_power_noise1
  1324. typedef union {
  1325. uint32_t v;
  1326. struct
  1327. {
  1328. uint32_t power : 16; // [15:0], read only
  1329. uint32_t noise : 16; // [31:16], read only
  1330. } b;
  1331. } REG_IDDET_ID_POWER_NOISE1_T;
  1332. // id_power_noise2
  1333. typedef union {
  1334. uint32_t v;
  1335. struct
  1336. {
  1337. uint32_t power : 16; // [15:0], read only
  1338. uint32_t noise : 16; // [31:16], read only
  1339. } b;
  1340. } REG_IDDET_ID_POWER_NOISE2_T;
  1341. // id_power_noise3
  1342. typedef union {
  1343. uint32_t v;
  1344. struct
  1345. {
  1346. uint32_t power : 16; // [15:0], read only
  1347. uint32_t noise : 16; // [31:16], read only
  1348. } b;
  1349. } REG_IDDET_ID_POWER_NOISE3_T;
  1350. // id_power_noise4
  1351. typedef union {
  1352. uint32_t v;
  1353. struct
  1354. {
  1355. uint32_t power : 16; // [15:0], read only
  1356. uint32_t noise : 16; // [31:16], read only
  1357. } b;
  1358. } REG_IDDET_ID_POWER_NOISE4_T;
  1359. // id_power_noise5
  1360. typedef union {
  1361. uint32_t v;
  1362. struct
  1363. {
  1364. uint32_t power : 16; // [15:0], read only
  1365. uint32_t noise : 16; // [31:16], read only
  1366. } b;
  1367. } REG_IDDET_ID_POWER_NOISE5_T;
  1368. // id_power_noise6
  1369. typedef union {
  1370. uint32_t v;
  1371. struct
  1372. {
  1373. uint32_t power : 16; // [15:0], read only
  1374. uint32_t noise : 16; // [31:16], read only
  1375. } b;
  1376. } REG_IDDET_ID_POWER_NOISE6_T;
  1377. // id_power_noise7
  1378. typedef union {
  1379. uint32_t v;
  1380. struct
  1381. {
  1382. uint32_t power : 16; // [15:0], read only
  1383. uint32_t noise : 16; // [31:16], read only
  1384. } b;
  1385. } REG_IDDET_ID_POWER_NOISE7_T;
  1386. // id_power_noise8
  1387. typedef union {
  1388. uint32_t v;
  1389. struct
  1390. {
  1391. uint32_t power : 16; // [15:0], read only
  1392. uint32_t noise : 16; // [31:16], read only
  1393. } b;
  1394. } REG_IDDET_ID_POWER_NOISE8_T;
  1395. // id_power_noise9
  1396. typedef union {
  1397. uint32_t v;
  1398. struct
  1399. {
  1400. uint32_t power : 16; // [15:0], read only
  1401. uint32_t noise : 16; // [31:16], read only
  1402. } b;
  1403. } REG_IDDET_ID_POWER_NOISE9_T;
  1404. // id_power_noise10
  1405. typedef union {
  1406. uint32_t v;
  1407. struct
  1408. {
  1409. uint32_t power : 16; // [15:0], read only
  1410. uint32_t noise : 16; // [31:16], read only
  1411. } b;
  1412. } REG_IDDET_ID_POWER_NOISE10_T;
  1413. // id_power_noise11
  1414. typedef union {
  1415. uint32_t v;
  1416. struct
  1417. {
  1418. uint32_t power : 16; // [15:0], read only
  1419. uint32_t noise : 16; // [31:16], read only
  1420. } b;
  1421. } REG_IDDET_ID_POWER_NOISE11_T;
  1422. // id_power_noise12
  1423. typedef union {
  1424. uint32_t v;
  1425. struct
  1426. {
  1427. uint32_t power : 16; // [15:0], read only
  1428. uint32_t noise : 16; // [31:16], read only
  1429. } b;
  1430. } REG_IDDET_ID_POWER_NOISE12_T;
  1431. // id_position_freq1
  1432. typedef union {
  1433. uint32_t v;
  1434. struct
  1435. {
  1436. uint32_t postion : 14; // [13:0], read only
  1437. uint32_t __15_14 : 2; // [15:14]
  1438. uint32_t freq_offset : 16; // [31:16], read only
  1439. } b;
  1440. } REG_IDDET_ID_POSITION_FREQ1_T;
  1441. // id_position_freq2
  1442. typedef union {
  1443. uint32_t v;
  1444. struct
  1445. {
  1446. uint32_t postion : 14; // [13:0], read only
  1447. uint32_t __15_14 : 2; // [15:14]
  1448. uint32_t freq_offset : 16; // [31:16], read only
  1449. } b;
  1450. } REG_IDDET_ID_POSITION_FREQ2_T;
  1451. // id_position_freq3
  1452. typedef union {
  1453. uint32_t v;
  1454. struct
  1455. {
  1456. uint32_t postion : 14; // [13:0], read only
  1457. uint32_t __15_14 : 2; // [15:14]
  1458. uint32_t freq_offset : 16; // [31:16], read only
  1459. } b;
  1460. } REG_IDDET_ID_POSITION_FREQ3_T;
  1461. // id_position_freq4
  1462. typedef union {
  1463. uint32_t v;
  1464. struct
  1465. {
  1466. uint32_t postion : 14; // [13:0], read only
  1467. uint32_t __15_14 : 2; // [15:14]
  1468. uint32_t freq_offset : 16; // [31:16], read only
  1469. } b;
  1470. } REG_IDDET_ID_POSITION_FREQ4_T;
  1471. // id_position_freq5
  1472. typedef union {
  1473. uint32_t v;
  1474. struct
  1475. {
  1476. uint32_t postion : 14; // [13:0], read only
  1477. uint32_t __15_14 : 2; // [15:14]
  1478. uint32_t freq_offset : 16; // [31:16], read only
  1479. } b;
  1480. } REG_IDDET_ID_POSITION_FREQ5_T;
  1481. // id_position_freq6
  1482. typedef union {
  1483. uint32_t v;
  1484. struct
  1485. {
  1486. uint32_t postion : 14; // [13:0], read only
  1487. uint32_t __15_14 : 2; // [15:14]
  1488. uint32_t freq_offset : 16; // [31:16], read only
  1489. } b;
  1490. } REG_IDDET_ID_POSITION_FREQ6_T;
  1491. // id_position_freq7
  1492. typedef union {
  1493. uint32_t v;
  1494. struct
  1495. {
  1496. uint32_t postion : 14; // [13:0], read only
  1497. uint32_t __15_14 : 2; // [15:14]
  1498. uint32_t freq_offset : 16; // [31:16], read only
  1499. } b;
  1500. } REG_IDDET_ID_POSITION_FREQ7_T;
  1501. // id_position_freq8
  1502. typedef union {
  1503. uint32_t v;
  1504. struct
  1505. {
  1506. uint32_t postion : 14; // [13:0], read only
  1507. uint32_t __15_14 : 2; // [15:14]
  1508. uint32_t freq_offset : 16; // [31:16], read only
  1509. } b;
  1510. } REG_IDDET_ID_POSITION_FREQ8_T;
  1511. // id_position_freq9
  1512. typedef union {
  1513. uint32_t v;
  1514. struct
  1515. {
  1516. uint32_t postion : 14; // [13:0], read only
  1517. uint32_t __15_14 : 2; // [15:14]
  1518. uint32_t freq_offset : 16; // [31:16], read only
  1519. } b;
  1520. } REG_IDDET_ID_POSITION_FREQ9_T;
  1521. // id_position_freq10
  1522. typedef union {
  1523. uint32_t v;
  1524. struct
  1525. {
  1526. uint32_t postion : 14; // [13:0], read only
  1527. uint32_t __15_14 : 2; // [15:14]
  1528. uint32_t freq_offset : 16; // [31:16], read only
  1529. } b;
  1530. } REG_IDDET_ID_POSITION_FREQ10_T;
  1531. // id_position_freq11
  1532. typedef union {
  1533. uint32_t v;
  1534. struct
  1535. {
  1536. uint32_t postion : 14; // [13:0], read only
  1537. uint32_t __15_14 : 2; // [15:14]
  1538. uint32_t freq_offset : 16; // [31:16], read only
  1539. } b;
  1540. } REG_IDDET_ID_POSITION_FREQ11_T;
  1541. // id_position_freq12
  1542. typedef union {
  1543. uint32_t v;
  1544. struct
  1545. {
  1546. uint32_t postion : 14; // [13:0], read only
  1547. uint32_t __15_14 : 2; // [15:14]
  1548. uint32_t freq_offset : 16; // [31:16], read only
  1549. } b;
  1550. } REG_IDDET_ID_POSITION_FREQ12_T;
  1551. // id_info1
  1552. typedef union {
  1553. uint32_t v;
  1554. struct
  1555. {
  1556. uint32_t nid2 : 2; // [1:0], read only
  1557. uint32_t sfnum : 1; // [2], read only
  1558. uint32_t cptype : 1; // [3], read only
  1559. uint32_t nid1 : 8; // [11:4], read only
  1560. uint32_t ppm : 6; // [17:12], read only
  1561. uint32_t pos_slide : 4; // [21:18], read only
  1562. uint32_t pos_index : 4; // [25:22], read only
  1563. uint32_t __31_26 : 6; // [31:26]
  1564. } b;
  1565. } REG_IDDET_ID_INFO1_T;
  1566. // id_info2
  1567. typedef union {
  1568. uint32_t v;
  1569. struct
  1570. {
  1571. uint32_t nid2 : 2; // [1:0], read only
  1572. uint32_t sfnum : 1; // [2], read only
  1573. uint32_t cptype : 1; // [3], read only
  1574. uint32_t nid1 : 8; // [11:4], read only
  1575. uint32_t ppm : 6; // [17:12], read only
  1576. uint32_t pos_slide : 4; // [21:18], read only
  1577. uint32_t pos_index : 4; // [25:22], read only
  1578. uint32_t __31_26 : 6; // [31:26]
  1579. } b;
  1580. } REG_IDDET_ID_INFO2_T;
  1581. // id_info3
  1582. typedef union {
  1583. uint32_t v;
  1584. struct
  1585. {
  1586. uint32_t nid2 : 2; // [1:0], read only
  1587. uint32_t sfnum : 1; // [2], read only
  1588. uint32_t cptype : 1; // [3], read only
  1589. uint32_t nid1 : 8; // [11:4], read only
  1590. uint32_t ppm : 6; // [17:12], read only
  1591. uint32_t pos_slide : 4; // [21:18], read only
  1592. uint32_t pos_index : 4; // [25:22], read only
  1593. uint32_t __31_26 : 6; // [31:26]
  1594. } b;
  1595. } REG_IDDET_ID_INFO3_T;
  1596. // id_info4
  1597. typedef union {
  1598. uint32_t v;
  1599. struct
  1600. {
  1601. uint32_t nid2 : 2; // [1:0], read only
  1602. uint32_t sfnum : 1; // [2], read only
  1603. uint32_t cptype : 1; // [3], read only
  1604. uint32_t nid1 : 8; // [11:4], read only
  1605. uint32_t ppm : 6; // [17:12], read only
  1606. uint32_t pos_slide : 4; // [21:18], read only
  1607. uint32_t pos_index : 4; // [25:22], read only
  1608. uint32_t __31_26 : 6; // [31:26]
  1609. } b;
  1610. } REG_IDDET_ID_INFO4_T;
  1611. // id_info5
  1612. typedef union {
  1613. uint32_t v;
  1614. struct
  1615. {
  1616. uint32_t nid2 : 2; // [1:0], read only
  1617. uint32_t sfnum : 1; // [2], read only
  1618. uint32_t cptype : 1; // [3], read only
  1619. uint32_t nid1 : 8; // [11:4], read only
  1620. uint32_t ppm : 6; // [17:12], read only
  1621. uint32_t pos_slide : 4; // [21:18], read only
  1622. uint32_t pos_index : 4; // [25:22], read only
  1623. uint32_t __31_26 : 6; // [31:26]
  1624. } b;
  1625. } REG_IDDET_ID_INFO5_T;
  1626. // id_info6
  1627. typedef union {
  1628. uint32_t v;
  1629. struct
  1630. {
  1631. uint32_t nid2 : 2; // [1:0], read only
  1632. uint32_t sfnum : 1; // [2], read only
  1633. uint32_t cptype : 1; // [3], read only
  1634. uint32_t nid1 : 8; // [11:4], read only
  1635. uint32_t ppm : 6; // [17:12], read only
  1636. uint32_t pos_slide : 4; // [21:18], read only
  1637. uint32_t pos_index : 4; // [25:22], read only
  1638. uint32_t __31_26 : 6; // [31:26]
  1639. } b;
  1640. } REG_IDDET_ID_INFO6_T;
  1641. // id_info7
  1642. typedef union {
  1643. uint32_t v;
  1644. struct
  1645. {
  1646. uint32_t nid2 : 2; // [1:0], read only
  1647. uint32_t sfnum : 1; // [2], read only
  1648. uint32_t cptype : 1; // [3], read only
  1649. uint32_t nid1 : 8; // [11:4], read only
  1650. uint32_t ppm : 6; // [17:12], read only
  1651. uint32_t pos_slide : 4; // [21:18], read only
  1652. uint32_t pos_index : 4; // [25:22], read only
  1653. uint32_t __31_26 : 6; // [31:26]
  1654. } b;
  1655. } REG_IDDET_ID_INFO7_T;
  1656. // id_info8
  1657. typedef union {
  1658. uint32_t v;
  1659. struct
  1660. {
  1661. uint32_t nid2 : 2; // [1:0], read only
  1662. uint32_t sfnum : 1; // [2], read only
  1663. uint32_t cptype : 1; // [3], read only
  1664. uint32_t nid1 : 8; // [11:4], read only
  1665. uint32_t ppm : 6; // [17:12], read only
  1666. uint32_t pos_slide : 4; // [21:18], read only
  1667. uint32_t pos_index : 4; // [25:22], read only
  1668. uint32_t __31_26 : 6; // [31:26]
  1669. } b;
  1670. } REG_IDDET_ID_INFO8_T;
  1671. // id_info9
  1672. typedef union {
  1673. uint32_t v;
  1674. struct
  1675. {
  1676. uint32_t nid2 : 2; // [1:0], read only
  1677. uint32_t sfnum : 1; // [2], read only
  1678. uint32_t cptype : 1; // [3], read only
  1679. uint32_t nid1 : 8; // [11:4], read only
  1680. uint32_t ppm : 6; // [17:12], read only
  1681. uint32_t pos_slide : 4; // [21:18], read only
  1682. uint32_t pos_index : 4; // [25:22], read only
  1683. uint32_t __31_26 : 6; // [31:26]
  1684. } b;
  1685. } REG_IDDET_ID_INFO9_T;
  1686. // id_info10
  1687. typedef union {
  1688. uint32_t v;
  1689. struct
  1690. {
  1691. uint32_t nid2 : 2; // [1:0], read only
  1692. uint32_t sfnum : 1; // [2], read only
  1693. uint32_t cptype : 1; // [3], read only
  1694. uint32_t nid1 : 8; // [11:4], read only
  1695. uint32_t ppm : 6; // [17:12], read only
  1696. uint32_t pos_slide : 4; // [21:18], read only
  1697. uint32_t pos_index : 4; // [25:22], read only
  1698. uint32_t __31_26 : 6; // [31:26]
  1699. } b;
  1700. } REG_IDDET_ID_INFO10_T;
  1701. // id_info11
  1702. typedef union {
  1703. uint32_t v;
  1704. struct
  1705. {
  1706. uint32_t nid2 : 2; // [1:0], read only
  1707. uint32_t sfnum : 1; // [2], read only
  1708. uint32_t cptype : 1; // [3], read only
  1709. uint32_t nid1 : 8; // [11:4], read only
  1710. uint32_t ppm : 6; // [17:12], read only
  1711. uint32_t pos_slide : 4; // [21:18], read only
  1712. uint32_t pos_index : 4; // [25:22], read only
  1713. uint32_t __31_26 : 6; // [31:26]
  1714. } b;
  1715. } REG_IDDET_ID_INFO11_T;
  1716. // id_info12
  1717. typedef union {
  1718. uint32_t v;
  1719. struct
  1720. {
  1721. uint32_t nid2 : 2; // [1:0], read only
  1722. uint32_t sfnum : 1; // [2], read only
  1723. uint32_t cptype : 1; // [3], read only
  1724. uint32_t nid1 : 8; // [11:4], read only
  1725. uint32_t ppm : 6; // [17:12], read only
  1726. uint32_t pos_slide : 4; // [21:18], read only
  1727. uint32_t pos_index : 4; // [25:22], read only
  1728. uint32_t __31_26 : 6; // [31:26]
  1729. } b;
  1730. } REG_IDDET_ID_INFO12_T;
  1731. // assist_id_power_noise1
  1732. typedef union {
  1733. uint32_t v;
  1734. struct
  1735. {
  1736. uint32_t power : 16; // [15:0], read only
  1737. uint32_t noise : 16; // [31:16], read only
  1738. } b;
  1739. } REG_IDDET_ASSIST_ID_POWER_NOISE1_T;
  1740. // assist_id_power_noise2
  1741. typedef union {
  1742. uint32_t v;
  1743. struct
  1744. {
  1745. uint32_t power : 16; // [15:0], read only
  1746. uint32_t noise : 16; // [31:16], read only
  1747. } b;
  1748. } REG_IDDET_ASSIST_ID_POWER_NOISE2_T;
  1749. // assist_id_power_noise3
  1750. typedef union {
  1751. uint32_t v;
  1752. struct
  1753. {
  1754. uint32_t power : 16; // [15:0], read only
  1755. uint32_t noise : 16; // [31:16], read only
  1756. } b;
  1757. } REG_IDDET_ASSIST_ID_POWER_NOISE3_T;
  1758. // assist_id_power_noise4
  1759. typedef union {
  1760. uint32_t v;
  1761. struct
  1762. {
  1763. uint32_t power : 16; // [15:0], read only
  1764. uint32_t noise : 16; // [31:16], read only
  1765. } b;
  1766. } REG_IDDET_ASSIST_ID_POWER_NOISE4_T;
  1767. // assist_id_position_freq1
  1768. typedef union {
  1769. uint32_t v;
  1770. struct
  1771. {
  1772. uint32_t postion : 14; // [13:0], read only
  1773. uint32_t __15_14 : 2; // [15:14]
  1774. uint32_t freq_offset : 16; // [31:16], read only
  1775. } b;
  1776. } REG_IDDET_ASSIST_ID_POSITION_FREQ1_T;
  1777. // assist_id_position_freq2
  1778. typedef union {
  1779. uint32_t v;
  1780. struct
  1781. {
  1782. uint32_t postion : 14; // [13:0], read only
  1783. uint32_t __15_14 : 2; // [15:14]
  1784. uint32_t freq_offset : 16; // [31:16], read only
  1785. } b;
  1786. } REG_IDDET_ASSIST_ID_POSITION_FREQ2_T;
  1787. // assist_id_position_freq3
  1788. typedef union {
  1789. uint32_t v;
  1790. struct
  1791. {
  1792. uint32_t postion : 14; // [13:0], read only
  1793. uint32_t __15_14 : 2; // [15:14]
  1794. uint32_t freq_offset : 16; // [31:16], read only
  1795. } b;
  1796. } REG_IDDET_ASSIST_ID_POSITION_FREQ3_T;
  1797. // assist_id_position_freq4
  1798. typedef union {
  1799. uint32_t v;
  1800. struct
  1801. {
  1802. uint32_t postion : 14; // [13:0], read only
  1803. uint32_t __15_14 : 2; // [15:14]
  1804. uint32_t freq_offset : 16; // [31:16], read only
  1805. } b;
  1806. } REG_IDDET_ASSIST_ID_POSITION_FREQ4_T;
  1807. // assist_id_info1
  1808. typedef union {
  1809. uint32_t v;
  1810. struct
  1811. {
  1812. uint32_t nid2 : 2; // [1:0], read only
  1813. uint32_t sfnum : 1; // [2], read only
  1814. uint32_t cptype : 1; // [3], read only
  1815. uint32_t nid1 : 8; // [11:4], read only
  1816. uint32_t ppm : 6; // [17:12], read only
  1817. uint32_t __31_18 : 14; // [31:18]
  1818. } b;
  1819. } REG_IDDET_ASSIST_ID_INFO1_T;
  1820. // assist_id_info2
  1821. typedef union {
  1822. uint32_t v;
  1823. struct
  1824. {
  1825. uint32_t nid2 : 2; // [1:0], read only
  1826. uint32_t sfnum : 1; // [2], read only
  1827. uint32_t cptype : 1; // [3], read only
  1828. uint32_t nid1 : 8; // [11:4], read only
  1829. uint32_t ppm : 6; // [17:12], read only
  1830. uint32_t __31_18 : 14; // [31:18]
  1831. } b;
  1832. } REG_IDDET_ASSIST_ID_INFO2_T;
  1833. // assist_id_info3
  1834. typedef union {
  1835. uint32_t v;
  1836. struct
  1837. {
  1838. uint32_t nid2 : 2; // [1:0], read only
  1839. uint32_t sfnum : 1; // [2], read only
  1840. uint32_t cptype : 1; // [3], read only
  1841. uint32_t nid1 : 8; // [11:4], read only
  1842. uint32_t ppm : 6; // [17:12], read only
  1843. uint32_t __31_18 : 14; // [31:18]
  1844. } b;
  1845. } REG_IDDET_ASSIST_ID_INFO3_T;
  1846. // assist_id_info4
  1847. typedef union {
  1848. uint32_t v;
  1849. struct
  1850. {
  1851. uint32_t nid2 : 2; // [1:0], read only
  1852. uint32_t sfnum : 1; // [2], read only
  1853. uint32_t cptype : 1; // [3], read only
  1854. uint32_t nid1 : 8; // [11:4], read only
  1855. uint32_t ppm : 6; // [17:12], read only
  1856. uint32_t __31_18 : 14; // [31:18]
  1857. } b;
  1858. } REG_IDDET_ASSIST_ID_INFO4_T;
  1859. // int_flag
  1860. typedef union {
  1861. uint32_t v;
  1862. struct
  1863. {
  1864. uint32_t pssgru_finish : 1; // [0], write clear
  1865. uint32_t pssitm_finish : 1; // [1], write clear
  1866. uint32_t sss_finish : 1; // [2], write clear
  1867. uint32_t freq_idident_finish : 1; // [3], write clear
  1868. uint32_t resync_finish : 1; // [4], write clear
  1869. uint32_t txrx_suspend : 1; // [5], write clear
  1870. uint32_t error_state : 1; // [6], write clear
  1871. uint32_t stop : 1; // [7], write clear
  1872. uint32_t rssi : 1; // [8], write clear
  1873. uint32_t freq_search_sbi : 1; // [9], write clear
  1874. uint32_t freq_search : 1; // [10], write clear
  1875. uint32_t discon_section_finish : 1; // [11], write clear
  1876. uint32_t __31_12 : 20; // [31:12]
  1877. } b;
  1878. } REG_IDDET_INT_FLAG_T;
  1879. // sta_flag
  1880. typedef union {
  1881. uint32_t v;
  1882. struct
  1883. {
  1884. uint32_t pss_gru_run : 1; // [0], read only
  1885. uint32_t pss_itm_run : 1; // [1], read only
  1886. uint32_t sss_run : 1; // [2], read only
  1887. uint32_t freqitm_idident_run : 1; // [3], read only
  1888. uint32_t resyn_run : 1; // [4], read only
  1889. uint32_t freq_search_run : 1; // [5], read only
  1890. uint32_t __31_6 : 26; // [31:6]
  1891. } b;
  1892. } REG_IDDET_STA_FLAG_T;
  1893. // pre_sample_count
  1894. typedef union {
  1895. uint32_t v;
  1896. struct
  1897. {
  1898. uint32_t pre_sample_count : 10; // [9:0]
  1899. uint32_t __31_10 : 22; // [31:10]
  1900. } b;
  1901. } REG_IDDET_PRE_SAMPLE_COUNT_T;
  1902. // freq_search_ctrl
  1903. typedef union {
  1904. uint32_t v;
  1905. struct
  1906. {
  1907. uint32_t first_5ms : 1; // [0]
  1908. uint32_t last_5ms : 1; // [1]
  1909. uint32_t freq_sel : 2; // [3:2]
  1910. uint32_t sort_start_addr : 10; // [13:4]
  1911. uint32_t sort_end_addr : 10; // [23:14]
  1912. uint32_t sort_en : 1; // [24]
  1913. uint32_t fft_en : 1; // [25]
  1914. uint32_t sort_mode : 1; // [26]
  1915. uint32_t __31_27 : 5; // [31:27]
  1916. } b;
  1917. } REG_IDDET_FREQ_SEARCH_CTRL_T;
  1918. // freq_search_config1
  1919. typedef union {
  1920. uint32_t v;
  1921. struct
  1922. {
  1923. uint32_t m : 4; // [3:0]
  1924. uint32_t freq_200k_en : 1; // [4]
  1925. uint32_t freq_1_4m_en : 1; // [5]
  1926. uint32_t freq_3m_en : 1; // [6]
  1927. uint32_t freq_5m_en : 1; // [7]
  1928. uint32_t freq_10m_en : 1; // [8]
  1929. uint32_t freq_15m_en : 1; // [9]
  1930. uint32_t freq_20m_en : 1; // [10]
  1931. uint32_t sbi_max : 6; // [16:11]
  1932. uint32_t cur_sbi_num : 6; // [22:17]
  1933. uint32_t pwr_32to16bitsel : 4; // [26:23]
  1934. uint32_t pwrwin_32to20bitsel : 4; // [30:27]
  1935. uint32_t __31_31 : 1; // [31]
  1936. } b;
  1937. } REG_IDDET_FREQ_SEARCH_CONFIG1_T;
  1938. // freq_search_config2
  1939. typedef union {
  1940. uint32_t v;
  1941. struct
  1942. {
  1943. uint32_t selectbinnum_left : 9; // [8:0]
  1944. uint32_t selectbinnum_right : 9; // [17:9]
  1945. uint32_t __31_18 : 14; // [31:18]
  1946. } b;
  1947. } REG_IDDET_FREQ_SEARCH_CONFIG2_T;
  1948. // band_win_start_conf1
  1949. typedef union {
  1950. uint32_t v;
  1951. struct
  1952. {
  1953. uint32_t band_200khz : 7; // [6:0]
  1954. uint32_t band_1_4mhz : 7; // [13:7]
  1955. uint32_t band_3mhz : 7; // [20:14]
  1956. uint32_t band_5mhz : 7; // [27:21]
  1957. uint32_t __31_28 : 4; // [31:28]
  1958. } b;
  1959. } REG_IDDET_BAND_WIN_START_CONF1_T;
  1960. // band_win_start_conf2
  1961. typedef union {
  1962. uint32_t v;
  1963. struct
  1964. {
  1965. uint32_t band_10mhz : 7; // [6:0]
  1966. uint32_t band_15mhz : 7; // [13:7]
  1967. uint32_t band_20mhz : 7; // [20:14]
  1968. uint32_t __31_21 : 11; // [31:21]
  1969. } b;
  1970. } REG_IDDET_BAND_WIN_START_CONF2_T;
  1971. // band_win_end_conf1
  1972. typedef union {
  1973. uint32_t v;
  1974. struct
  1975. {
  1976. uint32_t band_200khz : 4; // [3:0]
  1977. uint32_t band_1_4mhz : 4; // [7:4]
  1978. uint32_t band_3mhz : 4; // [11:8]
  1979. uint32_t band_5mhz : 4; // [15:12]
  1980. uint32_t band_10mhz : 4; // [19:16]
  1981. uint32_t band_15mhz : 4; // [23:20]
  1982. uint32_t band_20mhz : 4; // [27:24]
  1983. uint32_t __31_28 : 4; // [31:28]
  1984. } b;
  1985. } REG_IDDET_BAND_WIN_END_CONF1_T;
  1986. // agc_conf
  1987. typedef union {
  1988. uint32_t v;
  1989. struct
  1990. {
  1991. uint32_t agc : 7; // [6:0]
  1992. uint32_t __31_7 : 25; // [31:7]
  1993. } b;
  1994. } REG_IDDET_AGC_CONF_T;
  1995. // sbi_sum__len
  1996. typedef union {
  1997. uint32_t v;
  1998. struct
  1999. {
  2000. uint32_t sbi_sum_len : 10; // [9:0]
  2001. uint32_t __31_10 : 22; // [31:10]
  2002. } b;
  2003. } REG_IDDET_SBI_SUM__LEN_T;
  2004. // target_agc
  2005. typedef union {
  2006. uint32_t v;
  2007. struct
  2008. {
  2009. uint32_t target_agc : 10; // [9:0]
  2010. uint32_t __31_10 : 22; // [31:10]
  2011. } b;
  2012. } REG_IDDET_TARGET_AGC_T;
  2013. // freqitm_out1
  2014. typedef union {
  2015. uint32_t v;
  2016. struct
  2017. {
  2018. uint32_t freq_itm_out1 : 16; // [15:0], read only
  2019. uint32_t freq_itm_out2 : 16; // [31:16], read only
  2020. } b;
  2021. } REG_IDDET_FREQITM_OUT1_T;
  2022. // pss1_resyn_rssi_range
  2023. typedef union {
  2024. uint32_t v;
  2025. struct
  2026. {
  2027. uint32_t pss1_rssi_start : 14; // [13:0]
  2028. uint32_t __15_14 : 2; // [15:14]
  2029. uint32_t pss1_rssi_end : 14; // [29:16]
  2030. uint32_t __31_30 : 2; // [31:30]
  2031. } b;
  2032. } REG_IDDET_PSS1_RESYN_RSSI_RANGE_T;
  2033. // pss1_max_rssi0
  2034. typedef union {
  2035. uint32_t v;
  2036. struct
  2037. {
  2038. uint32_t pss1_max_rssi : 16; // [15:0], read only
  2039. uint32_t __31_16 : 16; // [31:16]
  2040. } b;
  2041. } REG_IDDET_PSS1_MAX_RSSI0_T;
  2042. // pss1_max_rssi1
  2043. typedef union {
  2044. uint32_t v;
  2045. struct
  2046. {
  2047. uint32_t pss1_max_rssi : 16; // [15:0], read only
  2048. uint32_t __31_16 : 16; // [31:16]
  2049. } b;
  2050. } REG_IDDET_PSS1_MAX_RSSI1_T;
  2051. // pss1_max_rssi2
  2052. typedef union {
  2053. uint32_t v;
  2054. struct
  2055. {
  2056. uint32_t pss1_max_rssi : 16; // [15:0], read only
  2057. uint32_t __31_16 : 16; // [31:16]
  2058. } b;
  2059. } REG_IDDET_PSS1_MAX_RSSI2_T;
  2060. // pss1_max_rssi3
  2061. typedef union {
  2062. uint32_t v;
  2063. struct
  2064. {
  2065. uint32_t pss1_max_rssi : 16; // [15:0], read only
  2066. uint32_t __31_16 : 16; // [31:16]
  2067. } b;
  2068. } REG_IDDET_PSS1_MAX_RSSI3_T;
  2069. // pss1_max_rssi4
  2070. typedef union {
  2071. uint32_t v;
  2072. struct
  2073. {
  2074. uint32_t pss1_max_rssi : 16; // [15:0], read only
  2075. uint32_t __31_16 : 16; // [31:16]
  2076. } b;
  2077. } REG_IDDET_PSS1_MAX_RSSI4_T;
  2078. // pss1_max_rssi5
  2079. typedef union {
  2080. uint32_t v;
  2081. struct
  2082. {
  2083. uint32_t pss1_max_rssi : 16; // [15:0], read only
  2084. uint32_t __31_16 : 16; // [31:16]
  2085. } b;
  2086. } REG_IDDET_PSS1_MAX_RSSI5_T;
  2087. // pss1_max_rssi6
  2088. typedef union {
  2089. uint32_t v;
  2090. struct
  2091. {
  2092. uint32_t pss1_max_rssi : 16; // [15:0], read only
  2093. uint32_t __31_16 : 16; // [31:16]
  2094. } b;
  2095. } REG_IDDET_PSS1_MAX_RSSI6_T;
  2096. // pss1_max_rssi7
  2097. typedef union {
  2098. uint32_t v;
  2099. struct
  2100. {
  2101. uint32_t pss1_max_rssi : 16; // [15:0], read only
  2102. uint32_t __31_16 : 16; // [31:16]
  2103. } b;
  2104. } REG_IDDET_PSS1_MAX_RSSI7_T;
  2105. // pss1_max_rssi8
  2106. typedef union {
  2107. uint32_t v;
  2108. struct
  2109. {
  2110. uint32_t pss1_max_rssi : 16; // [15:0], read only
  2111. uint32_t __31_16 : 16; // [31:16]
  2112. } b;
  2113. } REG_IDDET_PSS1_MAX_RSSI8_T;
  2114. // pss1_max_rssi9
  2115. typedef union {
  2116. uint32_t v;
  2117. struct
  2118. {
  2119. uint32_t pss1_max_rssi : 16; // [15:0], read only
  2120. uint32_t __31_16 : 16; // [31:16]
  2121. } b;
  2122. } REG_IDDET_PSS1_MAX_RSSI9_T;
  2123. // pss1_max_rssi10
  2124. typedef union {
  2125. uint32_t v;
  2126. struct
  2127. {
  2128. uint32_t pss1_max_rssi : 16; // [15:0], read only
  2129. uint32_t __31_16 : 16; // [31:16]
  2130. } b;
  2131. } REG_IDDET_PSS1_MAX_RSSI10_T;
  2132. // pss1_max_rssi11
  2133. typedef union {
  2134. uint32_t v;
  2135. struct
  2136. {
  2137. uint32_t pss1_max_rssi : 16; // [15:0], read only
  2138. uint32_t __31_16 : 16; // [31:16]
  2139. } b;
  2140. } REG_IDDET_PSS1_MAX_RSSI11_T;
  2141. // mem1_8_mem1_11
  2142. typedef union {
  2143. uint32_t v;
  2144. struct
  2145. {
  2146. uint32_t mem1_8_mem1_11_2 : 10; // [9:0]
  2147. uint32_t __15_10 : 6; // [15:10]
  2148. uint32_t mem1_8_mem1_11_1 : 10; // [25:16]
  2149. uint32_t __31_26 : 6; // [31:26]
  2150. } b;
  2151. } REG_IDDET_MEM1_8_MEM1_11_T;
  2152. // mem_freq_pwr_before_agc
  2153. typedef union {
  2154. uint32_t v;
  2155. struct
  2156. {
  2157. uint32_t mem_freq_pwr_before_agc_0 : 16; // [15:0]
  2158. uint32_t mem_freq_pwr_before_agc_1 : 16; // [31:16]
  2159. } b;
  2160. } REG_IDDET_MEM_FREQ_PWR_BEFORE_AGC_T;
  2161. // mem_freq_len_agc
  2162. typedef union {
  2163. uint32_t v;
  2164. struct
  2165. {
  2166. uint32_t mem_freq_len_agc_0 : 10; // [9:0]
  2167. uint32_t mem_freq_len_agc_1 : 9; // [18:10]
  2168. uint32_t __31_19 : 13; // [31:19]
  2169. } b;
  2170. } REG_IDDET_MEM_FREQ_LEN_AGC_T;
  2171. // iddet_start
  2172. #define IDDET_IDDET_START (1 << 0)
  2173. #define IDDET_IDDET_STOP (1 << 1)
  2174. #define IDDET_DATA_MOVE_OUT (1 << 2)
  2175. #define IDDET_TXRX_OFFSET_EN (1 << 3)
  2176. #define IDDET_FLOW_SEL(n) (((n)&0x7) << 4)
  2177. #define IDDET_REC_CONTINUITY (1 << 7)
  2178. #define IDDET_SAMPLE_NUM(n) (((n)&0xf) << 8)
  2179. #define IDDET_SAMPLE_LEN(n) (((n)&0x3fff) << 12)
  2180. #define IDDET_SAVE_LAST_PWR (1 << 26)
  2181. #define IDDET_RD_PRE_PWR (1 << 27)
  2182. // pss1_ctrl
  2183. #define IDDET_DC_EN (1 << 0)
  2184. #define IDDET_DAGC_EN (1 << 1)
  2185. #define IDDET_PSS1_CTRL_LOCALPSS_FREQ_EN(n) (((n)&0x3) << 2)
  2186. #define IDDET_PSS1_CTRL_ID_MODE_SEL(n) (((n)&0x3) << 4)
  2187. #define IDDET_PSS1_CTRL_PPM_EN (1 << 6)
  2188. #define IDDET_PSS1_CTRL_FLOW_MODE_SEL (1 << 7)
  2189. #define IDDET_PSS1_CTRL_MAX_NUM(n) (((n)&0x7) << 8)
  2190. #define IDDET_OUTPUT_NUM(n) (((n)&0xf) << 12)
  2191. #define IDDET_PSS1_CTRL_RSSI_EN (1 << 16)
  2192. // pss2_ctrl
  2193. #define IDDET_DC_EN (1 << 0)
  2194. #define IDDET_DAGC_EN (1 << 1)
  2195. #define IDDET_PSS2_CTRL_LOCALPSS_FREQ_EN (1 << 2)
  2196. #define IDDET_PSS2_CTRL_PPM_EN (1 << 3)
  2197. #define IDDET_PSS2_CTRL_POS_NUM(n) (((n)&0xf) << 4)
  2198. #define IDDET_PSS2_CTRL_RSSI_EN (1 << 8)
  2199. // sss_ctrl
  2200. #define IDDET_DC_EN (1 << 0)
  2201. #define IDDET_DAGC_EN (1 << 1)
  2202. #define IDDET_SSS_CTRL_FREQ_EN (1 << 2)
  2203. #define IDDET_IC_EN (1 << 3)
  2204. #define IDDET_SSS_CTRL_FDD_TDD_SEL (1 << 4)
  2205. #define IDDET_SSS_CTRL_ID_MODE_SEL (1 << 5)
  2206. #define IDDET_SSS_CTRL_FLOW_MODE_SEL (1 << 6)
  2207. #define IDDET_SSS_CTRL_PPM_EN (1 << 7)
  2208. #define IDDET_SSS_CTRL_POS_NUM(n) (((n)&0xf) << 8)
  2209. #define IDDET_SSS_CTRL_NID1(n) (((n)&0xff) << 12)
  2210. #define IDDET_NORMALSORT_NUM(n) (((n)&0xf) << 20)
  2211. #define IDDET_SORT_SEL (1 << 24)
  2212. #define IDDET_SSS_CTRL_POS_SLIDE_NUM(n) (((n)&0x3) << 25)
  2213. #define IDDET_SSS_CTRL_RSSI_EN (1 << 27)
  2214. // freqitm_idident_ctrl
  2215. #define IDDET_DC_EN (1 << 0)
  2216. #define IDDET_DAGC_EN (1 << 1)
  2217. #define IDDET_FREQITM_IDIDENT_CTRL_PPM_EN (1 << 2)
  2218. #define IDDET_FREQITM_EN (1 << 3)
  2219. #define IDDET_FREQITM_IDIDENT_CTRL_FREQ_EN (1 << 4)
  2220. #define IDDET_FREQITM_IDIDENT_CTRL_FDD_TDD_SEL (1 << 5)
  2221. #define IDDET_SLIDE_NUM(n) (((n)&0x7) << 8)
  2222. #define IDDET_FREQITM_IDIDENT_CTRL_POS_NUM(n) (((n)&0xf) << 12)
  2223. #define IDDET_FREQITM_IDIDENT_CTRL_POS_SLIDE_NUM(n) (((n)&0x3) << 16)
  2224. #define IDDET_FREQITM_IDIDENT_CTRL_RSSI_EN (1 << 18)
  2225. // resync_ctrl
  2226. #define IDDET_DC_EN (1 << 0)
  2227. #define IDDET_DAGC_EN (1 << 1)
  2228. #define IDDET_ID2(n) (((n)&0x3) << 2)
  2229. #define IDDET_ID1(n) (((n)&0xff) << 4)
  2230. #define IDDET_RESYNC_CTRL_MAX_NUM(n) (((n)&0x7) << 12)
  2231. #define IDDET_RESYNC_CTRL_SFNUM(n) (((n)&0x3) << 16)
  2232. #define IDDET_DATA_LEN(n) (((n)&0x7) << 18)
  2233. #define IDDET_RESYNC_CTRL_RSSI_EN (1 << 21)
  2234. // shift_ctrl0
  2235. #define IDDET_RSSI_S0(n) (((n)&0xf) << 0)
  2236. #define IDDET_PWR_ACC_S0(n) (((n)&0xf) << 4)
  2237. #define IDDET_RSSI_S1(n) (((n)&0xf) << 8)
  2238. #define IDDET_PWR_ACC_S1(n) (((n)&0xf) << 12)
  2239. #define IDDET_RSSI_S2(n) (((n)&0xf) << 16)
  2240. #define IDDET_PWR_ACC_S2(n) (((n)&0xf) << 20)
  2241. #define IDDET_RSSI_S3(n) (((n)&0xf) << 24)
  2242. #define IDDET_PWR_ACC_S3(n) (((n)&0xf) << 28)
  2243. // shift_ctrl1
  2244. #define IDDET_RSSI_S4(n) (((n)&0xf) << 0)
  2245. #define IDDET_PWR_ACC_S4(n) (((n)&0xf) << 4)
  2246. #define IDDET_RSSI_S5(n) (((n)&0xf) << 8)
  2247. #define IDDET_PWR_ACC_S5(n) (((n)&0xf) << 12)
  2248. #define IDDET_RSSI_S6(n) (((n)&0xf) << 16)
  2249. #define IDDET_PWR_ACC_S6(n) (((n)&0xf) << 20)
  2250. #define IDDET_RSSI_S7(n) (((n)&0xf) << 24)
  2251. #define IDDET_PWR_ACC_S7(n) (((n)&0xf) << 28)
  2252. // shift_ctrl2
  2253. #define IDDET_RSSI_S8(n) (((n)&0xf) << 0)
  2254. #define IDDET_PWR_ACC_S8(n) (((n)&0xf) << 4)
  2255. #define IDDET_RSSI_S9(n) (((n)&0xf) << 8)
  2256. #define IDDET_PWR_ACC_S9(n) (((n)&0xf) << 12)
  2257. // int_ctrl
  2258. #define IDDET_PSSGRU_FIN_IRQ_EN (1 << 0)
  2259. #define IDDET_PSSITM_FIN_IRQ_EN (1 << 1)
  2260. #define IDDET_SSS_FIN_IRQ_EN (1 << 2)
  2261. #define IDDET_FREQ_IDIDENT_FIN_IRQ_EN (1 << 3)
  2262. #define IDDET_RESYNC_FIN_IRQ_EN (1 << 4)
  2263. #define IDDET_TXRX_SUSPEND_IRQ_EN (1 << 5)
  2264. #define IDDET_ERROR_IRQ_EN (1 << 6)
  2265. #define IDDET_STOP (1 << 7)
  2266. #define IDDET_INT_CTRL_RSSI_EN (1 << 8)
  2267. #define IDDET_FREQ_SEARCH_IRQ_EN (1 << 9)
  2268. #define IDDET_DISCON_SECTION_FIN_IRQ_EN (1 << 10)
  2269. // pos_offset
  2270. #define IDDET_PSSITM_SSS_OFFSET_POS(n) (((n)&0x7fff) << 0)
  2271. #define IDDET_PSS1_RSSI_TH(n) (((n)&0xffff) << 16)
  2272. // sam_num_ctrl1
  2273. #define IDDET_SAM_NUM(n) (((n)&0xff) << 0)
  2274. // sam_num_ctrl2
  2275. #define IDDET_SAM_NUM(n) (((n)&0xff) << 0)
  2276. // sam_num_ctrl3
  2277. #define IDDET_SAM_NUM(n) (((n)&0xff) << 0)
  2278. // sam_num_ctrl4
  2279. #define IDDET_SAM_NUM(n) (((n)&0xff) << 0)
  2280. // sam_num_ctrl5
  2281. #define IDDET_SAM_NUM(n) (((n)&0xff) << 0)
  2282. // sam_num_ctrl6
  2283. #define IDDET_SAM_NUM(n) (((n)&0xff) << 0)
  2284. // sam_num_ctrl7
  2285. #define IDDET_SAM_NUM(n) (((n)&0xff) << 0)
  2286. // sam_num_ctrl8
  2287. #define IDDET_SAM_NUM(n) (((n)&0xff) << 0)
  2288. // sam_num_ctrl9
  2289. #define IDDET_SAM_NUM(n) (((n)&0xff) << 0)
  2290. // sam_num_ctrl10
  2291. #define IDDET_SAM_NUM(n) (((n)&0xff) << 0)
  2292. // end_threshold1
  2293. #define IDDET_END_THRESHOLD0(n) (((n)&0xffff) << 0)
  2294. #define IDDET_END_THRESHOLD1(n) (((n)&0xffff) << 16)
  2295. // end_threshold2
  2296. #define IDDET_END_THRESHOLD0(n) (((n)&0xffff) << 0)
  2297. #define IDDET_END_THRESHOLD1(n) (((n)&0xffff) << 16)
  2298. // end_threshold3
  2299. #define IDDET_END_THRESHOLD0(n) (((n)&0xffff) << 0)
  2300. #define IDDET_END_THRESHOLD1(n) (((n)&0xffff) << 16)
  2301. // end_threshold4
  2302. #define IDDET_END_THRESHOLD0(n) (((n)&0xffff) << 0)
  2303. #define IDDET_END_THRESHOLD1(n) (((n)&0xffff) << 16)
  2304. // end_threshold5
  2305. #define IDDET_END_THRESHOLD0(n) (((n)&0xffff) << 0)
  2306. #define IDDET_END_THRESHOLD1(n) (((n)&0xffff) << 16)
  2307. // end_threshold6
  2308. #define IDDET_END_THRESHOLD0(n) (((n)&0xffff) << 0)
  2309. #define IDDET_END_THRESHOLD1(n) (((n)&0xffff) << 16)
  2310. // end_threshold7
  2311. #define IDDET_END_THRESHOLD0(n) (((n)&0xffff) << 0)
  2312. #define IDDET_END_THRESHOLD1(n) (((n)&0xffff) << 16)
  2313. // end_threshold8
  2314. #define IDDET_END_THRESHOLD0(n) (((n)&0xffff) << 0)
  2315. #define IDDET_END_THRESHOLD1(n) (((n)&0xffff) << 16)
  2316. // end_threshold9
  2317. #define IDDET_END_THRESHOLD0(n) (((n)&0xffff) << 0)
  2318. #define IDDET_END_THRESHOLD1(n) (((n)&0xffff) << 16)
  2319. // end_threshold10
  2320. #define IDDET_END_THRESHOLD0(n) (((n)&0xffff) << 0)
  2321. #define IDDET_END_THRESHOLD1(n) (((n)&0xffff) << 16)
  2322. // pssitm_id_para1
  2323. #define IDDET_PSSITM_ID_PARA1_NID2(n) (((n)&0x3) << 0)
  2324. #define IDDET_PSSGRU_PPM(n) (((n)&0x3f) << 4)
  2325. #define IDDET_PSSGRU_FREQOFF(n) (((n)&0xffff) << 12)
  2326. // pssitm_id_para2
  2327. #define IDDET_PSSITM_ID_PARA2_NID2(n) (((n)&0x3) << 0)
  2328. #define IDDET_PSSGRU_PPM(n) (((n)&0x3f) << 4)
  2329. #define IDDET_PSSGRU_FREQOFF(n) (((n)&0xffff) << 12)
  2330. // pssitm_id_para3
  2331. #define IDDET_PSSITM_ID_PARA3_NID2(n) (((n)&0x3) << 0)
  2332. #define IDDET_PSSGRU_PPM(n) (((n)&0x3f) << 4)
  2333. #define IDDET_PSSGRU_FREQOFF(n) (((n)&0xffff) << 12)
  2334. // pssitm_id_para4
  2335. #define IDDET_PSSITM_ID_PARA4_NID2(n) (((n)&0x3) << 0)
  2336. #define IDDET_PSSGRU_PPM(n) (((n)&0x3f) << 4)
  2337. #define IDDET_PSSGRU_FREQOFF(n) (((n)&0xffff) << 12)
  2338. // pssitm_id_para5
  2339. #define IDDET_PSSITM_ID_PARA5_NID2(n) (((n)&0x3) << 0)
  2340. #define IDDET_PSSGRU_PPM(n) (((n)&0x3f) << 4)
  2341. #define IDDET_PSSGRU_FREQOFF(n) (((n)&0xffff) << 12)
  2342. // pssitm_id_para6
  2343. #define IDDET_PSSITM_ID_PARA6_NID2(n) (((n)&0x3) << 0)
  2344. #define IDDET_PSSGRU_PPM(n) (((n)&0x3f) << 4)
  2345. #define IDDET_PSSGRU_FREQOFF(n) (((n)&0xffff) << 12)
  2346. // pssitm_id_para7
  2347. #define IDDET_PSSITM_ID_PARA7_NID2(n) (((n)&0x3) << 0)
  2348. #define IDDET_PSSGRU_PPM(n) (((n)&0x3f) << 4)
  2349. #define IDDET_PSSGRU_FREQOFF(n) (((n)&0xffff) << 12)
  2350. // pssitm_id_para8
  2351. #define IDDET_PSSITM_ID_PARA8_NID2(n) (((n)&0x3) << 0)
  2352. #define IDDET_PSSGRU_PPM(n) (((n)&0x3f) << 4)
  2353. #define IDDET_PSSGRU_FREQOFF(n) (((n)&0xffff) << 12)
  2354. // pssitm_id_para9
  2355. #define IDDET_PSSITM_ID_PARA9_NID2(n) (((n)&0x3) << 0)
  2356. #define IDDET_PSSGRU_PPM(n) (((n)&0x3f) << 4)
  2357. #define IDDET_PSSGRU_FREQOFF(n) (((n)&0xffff) << 12)
  2358. // pssitm_id_para10
  2359. #define IDDET_PSSITM_ID_PARA10_NID2(n) (((n)&0x3) << 0)
  2360. #define IDDET_PSSGRU_PPM(n) (((n)&0x3f) << 4)
  2361. #define IDDET_PSSGRU_FREQOFF(n) (((n)&0xffff) << 12)
  2362. // pssitm_id_para11
  2363. #define IDDET_PSSITM_ID_PARA11_NID2(n) (((n)&0x3) << 0)
  2364. #define IDDET_PSSGRU_PPM(n) (((n)&0x3f) << 4)
  2365. #define IDDET_PSSGRU_FREQOFF(n) (((n)&0xffff) << 12)
  2366. // pssitm_id_para12
  2367. #define IDDET_PSSITM_ID_PARA12_NID2(n) (((n)&0x3) << 0)
  2368. #define IDDET_PSSGRU_PPM(n) (((n)&0x3f) << 4)
  2369. #define IDDET_PSSGRU_FREQOFF(n) (((n)&0xffff) << 12)
  2370. // sss_id_para1
  2371. #define IDDET_SSS_ID_PARA1_NID2(n) (((n)&0x3) << 0)
  2372. #define IDDET_SSS_ID_PARA1_SFNUM (1 << 2)
  2373. #define IDDET_SSS_ID_PARA1_CPTYPE (1 << 3)
  2374. #define IDDET_PSSGRU_PPM(n) (((n)&0x3f) << 4)
  2375. #define IDDET_PSSGRU_FREQOFF(n) (((n)&0xffff) << 12)
  2376. // sss_id_para2
  2377. #define IDDET_SSS_ID_PARA2_NID2(n) (((n)&0x3) << 0)
  2378. #define IDDET_SSS_ID_PARA2_SFNUM (1 << 2)
  2379. #define IDDET_SSS_ID_PARA2_CPTYPE (1 << 3)
  2380. #define IDDET_PSSGRU_PPM(n) (((n)&0x3f) << 4)
  2381. #define IDDET_PSSGRU_FREQOFF(n) (((n)&0xffff) << 12)
  2382. // sss_id_para3
  2383. #define IDDET_SSS_ID_PARA3_NID2(n) (((n)&0x3) << 0)
  2384. #define IDDET_SSS_ID_PARA3_SFNUM (1 << 2)
  2385. #define IDDET_SSS_ID_PARA3_CPTYPE (1 << 3)
  2386. #define IDDET_PSSGRU_PPM(n) (((n)&0x3f) << 4)
  2387. #define IDDET_PSSGRU_FREQOFF(n) (((n)&0xffff) << 12)
  2388. // sss_id_para4
  2389. #define IDDET_SSS_ID_PARA4_NID2(n) (((n)&0x3) << 0)
  2390. #define IDDET_SSS_ID_PARA4_SFNUM (1 << 2)
  2391. #define IDDET_SSS_ID_PARA4_CPTYPE (1 << 3)
  2392. #define IDDET_PSSGRU_PPM(n) (((n)&0x3f) << 4)
  2393. #define IDDET_PSSGRU_FREQOFF(n) (((n)&0xffff) << 12)
  2394. // sss_id_para5
  2395. #define IDDET_SSS_ID_PARA5_NID2(n) (((n)&0x3) << 0)
  2396. #define IDDET_SSS_ID_PARA5_SFNUM (1 << 2)
  2397. #define IDDET_SSS_ID_PARA5_CPTYPE (1 << 3)
  2398. #define IDDET_PSSGRU_PPM(n) (((n)&0x3f) << 4)
  2399. #define IDDET_PSSGRU_FREQOFF(n) (((n)&0xffff) << 12)
  2400. // sss_id_para6
  2401. #define IDDET_SSS_ID_PARA6_NID2(n) (((n)&0x3) << 0)
  2402. #define IDDET_SSS_ID_PARA6_SFNUM (1 << 2)
  2403. #define IDDET_SSS_ID_PARA6_CPTYPE (1 << 3)
  2404. #define IDDET_PSSGRU_PPM(n) (((n)&0x3f) << 4)
  2405. #define IDDET_PSSGRU_FREQOFF(n) (((n)&0xffff) << 12)
  2406. // sss_id_para7
  2407. #define IDDET_SSS_ID_PARA7_NID2(n) (((n)&0x3) << 0)
  2408. #define IDDET_SSS_ID_PARA7_SFNUM (1 << 2)
  2409. #define IDDET_SSS_ID_PARA7_CPTYPE (1 << 3)
  2410. #define IDDET_PSSGRU_PPM(n) (((n)&0x3f) << 4)
  2411. #define IDDET_PSSGRU_FREQOFF(n) (((n)&0xffff) << 12)
  2412. // sss_id_para8
  2413. #define IDDET_SSS_ID_PARA8_NID2(n) (((n)&0x3) << 0)
  2414. #define IDDET_SSS_ID_PARA8_SFNUM (1 << 2)
  2415. #define IDDET_SSS_ID_PARA8_CPTYPE (1 << 3)
  2416. #define IDDET_PSSGRU_PPM(n) (((n)&0x3f) << 4)
  2417. #define IDDET_PSSGRU_FREQOFF(n) (((n)&0xffff) << 12)
  2418. // sss_id_para9
  2419. #define IDDET_SSS_ID_PARA9_NID2(n) (((n)&0x3) << 0)
  2420. #define IDDET_SSS_ID_PARA9_SFNUM (1 << 2)
  2421. #define IDDET_SSS_ID_PARA9_CPTYPE (1 << 3)
  2422. #define IDDET_PSSGRU_PPM(n) (((n)&0x3f) << 4)
  2423. #define IDDET_PSSGRU_FREQOFF(n) (((n)&0xffff) << 12)
  2424. // sss_id_para10
  2425. #define IDDET_SSS_ID_PARA10_NID2(n) (((n)&0x3) << 0)
  2426. #define IDDET_SSS_ID_PARA10_SFNUM (1 << 2)
  2427. #define IDDET_SSS_ID_PARA10_CPTYPE (1 << 3)
  2428. #define IDDET_PSSGRU_PPM(n) (((n)&0x3f) << 4)
  2429. #define IDDET_PSSGRU_FREQOFF(n) (((n)&0xffff) << 12)
  2430. // sss_id_para11
  2431. #define IDDET_SSS_ID_PARA11_NID2(n) (((n)&0x3) << 0)
  2432. #define IDDET_SSS_ID_PARA11_SFNUM (1 << 2)
  2433. #define IDDET_SSS_ID_PARA11_CPTYPE (1 << 3)
  2434. #define IDDET_PSSGRU_PPM(n) (((n)&0x3f) << 4)
  2435. #define IDDET_PSSGRU_FREQOFF(n) (((n)&0xffff) << 12)
  2436. // sss_id_para12
  2437. #define IDDET_SSS_ID_PARA12_NID2(n) (((n)&0x3) << 0)
  2438. #define IDDET_SSS_ID_PARA12_SFNUM (1 << 2)
  2439. #define IDDET_SSS_ID_PARA12_CPTYPE (1 << 3)
  2440. #define IDDET_PSSGRU_PPM(n) (((n)&0x3f) << 4)
  2441. #define IDDET_PSSGRU_FREQOFF(n) (((n)&0xffff) << 12)
  2442. // freqitm_idident_para1
  2443. #define IDDET_FREQITM_IDIDENT_PARA1_NID1(n) (((n)&0xff) << 0)
  2444. // freqitm_idident_para2
  2445. #define IDDET_FREQITM_IDIDENT_PARA2_NID1(n) (((n)&0xff) << 0)
  2446. // freqitm_idident_para3
  2447. #define IDDET_FREQITM_IDIDENT_PARA3_NID1(n) (((n)&0xff) << 0)
  2448. // freqitm_idident_para4
  2449. #define IDDET_FREQITM_IDIDENT_PARA4_NID1(n) (((n)&0xff) << 0)
  2450. // freqitm_idident_para5
  2451. #define IDDET_FREQITM_IDIDENT_PARA5_NID1(n) (((n)&0xff) << 0)
  2452. // freqitm_idident_para6
  2453. #define IDDET_FREQITM_IDIDENT_PARA6_NID1(n) (((n)&0xff) << 0)
  2454. // freqitm_idident_para7
  2455. #define IDDET_FREQITM_IDIDENT_PARA7_NID1(n) (((n)&0xff) << 0)
  2456. // freqitm_idident_para8
  2457. #define IDDET_FREQITM_IDIDENT_PARA8_NID1(n) (((n)&0xff) << 0)
  2458. // freqitm_idident_para9
  2459. #define IDDET_FREQITM_IDIDENT_PARA9_NID1(n) (((n)&0xff) << 0)
  2460. // freqitm_idident_para10
  2461. #define IDDET_FREQITM_IDIDENT_PARA10_NID1(n) (((n)&0xff) << 0)
  2462. // freqitm_idident_para11
  2463. #define IDDET_FREQITM_IDIDENT_PARA11_NID1(n) (((n)&0xff) << 0)
  2464. // freqitm_idident_para12
  2465. #define IDDET_FREQITM_IDIDENT_PARA12_NID1(n) (((n)&0xff) << 0)
  2466. // id_postion1
  2467. #define IDDET_ID_POS(n) (((n)&0x3fff) << 0)
  2468. // id_postion2
  2469. #define IDDET_ID_POS(n) (((n)&0x3fff) << 0)
  2470. // id_postion3
  2471. #define IDDET_ID_POS(n) (((n)&0x3fff) << 0)
  2472. // id_postion4
  2473. #define IDDET_ID_POS(n) (((n)&0x3fff) << 0)
  2474. // id_postion5
  2475. #define IDDET_ID_POS(n) (((n)&0x3fff) << 0)
  2476. // id_postion6
  2477. #define IDDET_ID_POS(n) (((n)&0x3fff) << 0)
  2478. // id_postion7
  2479. #define IDDET_ID_POS(n) (((n)&0x3fff) << 0)
  2480. // id_postion8
  2481. #define IDDET_ID_POS(n) (((n)&0x3fff) << 0)
  2482. // id_postion9
  2483. #define IDDET_ID_POS(n) (((n)&0x3fff) << 0)
  2484. // id_postion10
  2485. #define IDDET_ID_POS(n) (((n)&0x3fff) << 0)
  2486. // id_postion11
  2487. #define IDDET_ID_POS(n) (((n)&0x3fff) << 0)
  2488. // id_postion12
  2489. #define IDDET_ID_POS(n) (((n)&0x3fff) << 0)
  2490. // pss_sss_find
  2491. #define IDDET_NOIS_TH(n) (((n)&0xff) << 0)
  2492. #define IDDET_NOISTH_EN (1 << 8)
  2493. #define IDDET_P2P_WIN(n) (((n)&0x7f) << 9)
  2494. #define IDDET_WIPE_WIN(n) (((n)&0x3) << 16)
  2495. #define IDDET_ASSIST_WIN(n) (((n)&0x3) << 18)
  2496. #define IDDET_NOIS_WIN(n) (((n)&0x3) << 20)
  2497. #define IDDET_FIND_WIN(n) (((n)&0xf) << 24)
  2498. // freq_pssgru1
  2499. #define IDDET_FREQ_PSSGRU0(n) (((n)&0x3ff) << 0)
  2500. #define IDDET_FREQ_PSSGRU1(n) (((n)&0x3ff) << 10)
  2501. #define IDDET_FREQ_PSSGRU2(n) (((n)&0x3ff) << 20)
  2502. // freq_pssgru2
  2503. #define IDDET_FREQ_PSSGRU3(n) (((n)&0x3ff) << 0)
  2504. #define IDDET_FREQ_PSSGRU4(n) (((n)&0x3ff) << 10)
  2505. // freq_pssitm1
  2506. #define IDDET_FREQ_PSSITM(n) (((n)&0x1fff) << 0)
  2507. // freq_pssitm2
  2508. #define IDDET_FREQ_PSSITM(n) (((n)&0x1fff) << 0)
  2509. // freq_pssitm3
  2510. #define IDDET_FREQ_PSSITM(n) (((n)&0x1fff) << 0)
  2511. // freq_pssitm4
  2512. #define IDDET_FREQ_PSSITM(n) (((n)&0x1fff) << 0)
  2513. // ppm_gru_cfg1
  2514. #define IDDET_PPM0(n) (((n)&0x3f) << 0)
  2515. #define IDDET_PPM1(n) (((n)&0x3f) << 8)
  2516. // ppm_gru_cfg2
  2517. #define IDDET_PPM0(n) (((n)&0x3f) << 0)
  2518. #define IDDET_PPM1(n) (((n)&0x3f) << 8)
  2519. // ppm_gru_cfg3
  2520. #define IDDET_PPM0(n) (((n)&0x3f) << 0)
  2521. #define IDDET_PPM1(n) (((n)&0x3f) << 8)
  2522. // ppm_gru_cfg4
  2523. #define IDDET_PPM0(n) (((n)&0x3f) << 0)
  2524. #define IDDET_PPM1(n) (((n)&0x3f) << 8)
  2525. // ppm_gru_cfg5
  2526. #define IDDET_PPM0(n) (((n)&0x3f) << 0)
  2527. #define IDDET_PPM1(n) (((n)&0x3f) << 8)
  2528. // ppm_delt_cfg
  2529. #define IDDET_DELT_PPM0(n) (((n)&0xf) << 0)
  2530. #define IDDET_DELT_PPM1(n) (((n)&0xf) << 4)
  2531. #define IDDET_DELT_PPM2(n) (((n)&0xf) << 8)
  2532. #define IDDET_DELT_PPM3(n) (((n)&0xf) << 12)
  2533. // fft_cut
  2534. #define IDDET_LNUM_MOD1(n) (((n)&0xf) << 0)
  2535. #define IDDET_LNUM_MOD2(n) (((n)&0xf) << 4)
  2536. // ic_id_para
  2537. #define IDDET_IC_ID_PARA_NID1(n) (((n)&0xff) << 0)
  2538. #define IDDET_IC_ID_PARA_NID2(n) (((n)&0x3) << 8)
  2539. #define IDDET_IC_ID_PARA_SFNUM (1 << 10)
  2540. #define IDDET_IC_ID_PARA_CPTYPE (1 << 11)
  2541. #define IDDET_FREQ_OFF(n) (((n)&0xffff) << 12)
  2542. #define IDDET_FREQ_OFF_EN (1 << 28)
  2543. // ic_cfg
  2544. #define IDDET_IC_SHIFT(n) (((n)&0xf) << 0)
  2545. #define IDDET_SSSIC_POS(n) (((n)&0x3fff) << 4)
  2546. #define IDDET_IC_PPM(n) (((n)&0x3f) << 18)
  2547. // freqitm_out0
  2548. #define IDDET_FREQ_ITM_OUT0(n) (((n)&0xffff) << 0)
  2549. // valid_node
  2550. #define IDDET_VALID_NODE0(n) (((n)&0xf) << 0)
  2551. #define IDDET_VALID_NODE1(n) (((n)&0xf) << 4)
  2552. // sample_sum
  2553. #define IDDET_SAMPLE_SUM(n) (((n)&0xff) << 0)
  2554. // rssi
  2555. #define IDDET_RSSI_RSSI(n) (((n)&0xffff) << 0)
  2556. // id_power_noise1
  2557. #define IDDET_POWER(n) (((n)&0xffff) << 0)
  2558. #define IDDET_NOISE(n) (((n)&0xffff) << 16)
  2559. // id_power_noise2
  2560. #define IDDET_POWER(n) (((n)&0xffff) << 0)
  2561. #define IDDET_NOISE(n) (((n)&0xffff) << 16)
  2562. // id_power_noise3
  2563. #define IDDET_POWER(n) (((n)&0xffff) << 0)
  2564. #define IDDET_NOISE(n) (((n)&0xffff) << 16)
  2565. // id_power_noise4
  2566. #define IDDET_POWER(n) (((n)&0xffff) << 0)
  2567. #define IDDET_NOISE(n) (((n)&0xffff) << 16)
  2568. // id_power_noise5
  2569. #define IDDET_POWER(n) (((n)&0xffff) << 0)
  2570. #define IDDET_NOISE(n) (((n)&0xffff) << 16)
  2571. // id_power_noise6
  2572. #define IDDET_POWER(n) (((n)&0xffff) << 0)
  2573. #define IDDET_NOISE(n) (((n)&0xffff) << 16)
  2574. // id_power_noise7
  2575. #define IDDET_POWER(n) (((n)&0xffff) << 0)
  2576. #define IDDET_NOISE(n) (((n)&0xffff) << 16)
  2577. // id_power_noise8
  2578. #define IDDET_POWER(n) (((n)&0xffff) << 0)
  2579. #define IDDET_NOISE(n) (((n)&0xffff) << 16)
  2580. // id_power_noise9
  2581. #define IDDET_POWER(n) (((n)&0xffff) << 0)
  2582. #define IDDET_NOISE(n) (((n)&0xffff) << 16)
  2583. // id_power_noise10
  2584. #define IDDET_POWER(n) (((n)&0xffff) << 0)
  2585. #define IDDET_NOISE(n) (((n)&0xffff) << 16)
  2586. // id_power_noise11
  2587. #define IDDET_POWER(n) (((n)&0xffff) << 0)
  2588. #define IDDET_NOISE(n) (((n)&0xffff) << 16)
  2589. // id_power_noise12
  2590. #define IDDET_POWER(n) (((n)&0xffff) << 0)
  2591. #define IDDET_NOISE(n) (((n)&0xffff) << 16)
  2592. // id_position_freq1
  2593. #define IDDET_POSTION(n) (((n)&0x3fff) << 0)
  2594. #define IDDET_FREQ_OFFSET(n) (((n)&0xffff) << 16)
  2595. // id_position_freq2
  2596. #define IDDET_POSTION(n) (((n)&0x3fff) << 0)
  2597. #define IDDET_FREQ_OFFSET(n) (((n)&0xffff) << 16)
  2598. // id_position_freq3
  2599. #define IDDET_POSTION(n) (((n)&0x3fff) << 0)
  2600. #define IDDET_FREQ_OFFSET(n) (((n)&0xffff) << 16)
  2601. // id_position_freq4
  2602. #define IDDET_POSTION(n) (((n)&0x3fff) << 0)
  2603. #define IDDET_FREQ_OFFSET(n) (((n)&0xffff) << 16)
  2604. // id_position_freq5
  2605. #define IDDET_POSTION(n) (((n)&0x3fff) << 0)
  2606. #define IDDET_FREQ_OFFSET(n) (((n)&0xffff) << 16)
  2607. // id_position_freq6
  2608. #define IDDET_POSTION(n) (((n)&0x3fff) << 0)
  2609. #define IDDET_FREQ_OFFSET(n) (((n)&0xffff) << 16)
  2610. // id_position_freq7
  2611. #define IDDET_POSTION(n) (((n)&0x3fff) << 0)
  2612. #define IDDET_FREQ_OFFSET(n) (((n)&0xffff) << 16)
  2613. // id_position_freq8
  2614. #define IDDET_POSTION(n) (((n)&0x3fff) << 0)
  2615. #define IDDET_FREQ_OFFSET(n) (((n)&0xffff) << 16)
  2616. // id_position_freq9
  2617. #define IDDET_POSTION(n) (((n)&0x3fff) << 0)
  2618. #define IDDET_FREQ_OFFSET(n) (((n)&0xffff) << 16)
  2619. // id_position_freq10
  2620. #define IDDET_POSTION(n) (((n)&0x3fff) << 0)
  2621. #define IDDET_FREQ_OFFSET(n) (((n)&0xffff) << 16)
  2622. // id_position_freq11
  2623. #define IDDET_POSTION(n) (((n)&0x3fff) << 0)
  2624. #define IDDET_FREQ_OFFSET(n) (((n)&0xffff) << 16)
  2625. // id_position_freq12
  2626. #define IDDET_POSTION(n) (((n)&0x3fff) << 0)
  2627. #define IDDET_FREQ_OFFSET(n) (((n)&0xffff) << 16)
  2628. // id_info1
  2629. #define IDDET_ID_INFO1_NID2(n) (((n)&0x3) << 0)
  2630. #define IDDET_ID_INFO1_SFNUM (1 << 2)
  2631. #define IDDET_ID_INFO1_CPTYPE (1 << 3)
  2632. #define IDDET_ID_INFO1_NID1(n) (((n)&0xff) << 4)
  2633. #define IDDET_PPM(n) (((n)&0x3f) << 12)
  2634. #define IDDET_POS_SLIDE(n) (((n)&0xf) << 18)
  2635. #define IDDET_POS_INDEX(n) (((n)&0xf) << 22)
  2636. // id_info2
  2637. #define IDDET_ID_INFO2_NID2(n) (((n)&0x3) << 0)
  2638. #define IDDET_ID_INFO2_SFNUM (1 << 2)
  2639. #define IDDET_ID_INFO2_CPTYPE (1 << 3)
  2640. #define IDDET_ID_INFO2_NID1(n) (((n)&0xff) << 4)
  2641. #define IDDET_PPM(n) (((n)&0x3f) << 12)
  2642. #define IDDET_POS_SLIDE(n) (((n)&0xf) << 18)
  2643. #define IDDET_POS_INDEX(n) (((n)&0xf) << 22)
  2644. // id_info3
  2645. #define IDDET_ID_INFO3_NID2(n) (((n)&0x3) << 0)
  2646. #define IDDET_ID_INFO3_SFNUM (1 << 2)
  2647. #define IDDET_ID_INFO3_CPTYPE (1 << 3)
  2648. #define IDDET_ID_INFO3_NID1(n) (((n)&0xff) << 4)
  2649. #define IDDET_PPM(n) (((n)&0x3f) << 12)
  2650. #define IDDET_POS_SLIDE(n) (((n)&0xf) << 18)
  2651. #define IDDET_POS_INDEX(n) (((n)&0xf) << 22)
  2652. // id_info4
  2653. #define IDDET_ID_INFO4_NID2(n) (((n)&0x3) << 0)
  2654. #define IDDET_ID_INFO4_SFNUM (1 << 2)
  2655. #define IDDET_ID_INFO4_CPTYPE (1 << 3)
  2656. #define IDDET_ID_INFO4_NID1(n) (((n)&0xff) << 4)
  2657. #define IDDET_PPM(n) (((n)&0x3f) << 12)
  2658. #define IDDET_POS_SLIDE(n) (((n)&0xf) << 18)
  2659. #define IDDET_POS_INDEX(n) (((n)&0xf) << 22)
  2660. // id_info5
  2661. #define IDDET_ID_INFO5_NID2(n) (((n)&0x3) << 0)
  2662. #define IDDET_ID_INFO5_SFNUM (1 << 2)
  2663. #define IDDET_ID_INFO5_CPTYPE (1 << 3)
  2664. #define IDDET_ID_INFO5_NID1(n) (((n)&0xff) << 4)
  2665. #define IDDET_PPM(n) (((n)&0x3f) << 12)
  2666. #define IDDET_POS_SLIDE(n) (((n)&0xf) << 18)
  2667. #define IDDET_POS_INDEX(n) (((n)&0xf) << 22)
  2668. // id_info6
  2669. #define IDDET_ID_INFO6_NID2(n) (((n)&0x3) << 0)
  2670. #define IDDET_ID_INFO6_SFNUM (1 << 2)
  2671. #define IDDET_ID_INFO6_CPTYPE (1 << 3)
  2672. #define IDDET_ID_INFO6_NID1(n) (((n)&0xff) << 4)
  2673. #define IDDET_PPM(n) (((n)&0x3f) << 12)
  2674. #define IDDET_POS_SLIDE(n) (((n)&0xf) << 18)
  2675. #define IDDET_POS_INDEX(n) (((n)&0xf) << 22)
  2676. // id_info7
  2677. #define IDDET_ID_INFO7_NID2(n) (((n)&0x3) << 0)
  2678. #define IDDET_ID_INFO7_SFNUM (1 << 2)
  2679. #define IDDET_ID_INFO7_CPTYPE (1 << 3)
  2680. #define IDDET_ID_INFO7_NID1(n) (((n)&0xff) << 4)
  2681. #define IDDET_PPM(n) (((n)&0x3f) << 12)
  2682. #define IDDET_POS_SLIDE(n) (((n)&0xf) << 18)
  2683. #define IDDET_POS_INDEX(n) (((n)&0xf) << 22)
  2684. // id_info8
  2685. #define IDDET_ID_INFO8_NID2(n) (((n)&0x3) << 0)
  2686. #define IDDET_ID_INFO8_SFNUM (1 << 2)
  2687. #define IDDET_ID_INFO8_CPTYPE (1 << 3)
  2688. #define IDDET_ID_INFO8_NID1(n) (((n)&0xff) << 4)
  2689. #define IDDET_PPM(n) (((n)&0x3f) << 12)
  2690. #define IDDET_POS_SLIDE(n) (((n)&0xf) << 18)
  2691. #define IDDET_POS_INDEX(n) (((n)&0xf) << 22)
  2692. // id_info9
  2693. #define IDDET_ID_INFO9_NID2(n) (((n)&0x3) << 0)
  2694. #define IDDET_ID_INFO9_SFNUM (1 << 2)
  2695. #define IDDET_ID_INFO9_CPTYPE (1 << 3)
  2696. #define IDDET_ID_INFO9_NID1(n) (((n)&0xff) << 4)
  2697. #define IDDET_PPM(n) (((n)&0x3f) << 12)
  2698. #define IDDET_POS_SLIDE(n) (((n)&0xf) << 18)
  2699. #define IDDET_POS_INDEX(n) (((n)&0xf) << 22)
  2700. // id_info10
  2701. #define IDDET_ID_INFO10_NID2(n) (((n)&0x3) << 0)
  2702. #define IDDET_ID_INFO10_SFNUM (1 << 2)
  2703. #define IDDET_ID_INFO10_CPTYPE (1 << 3)
  2704. #define IDDET_ID_INFO10_NID1(n) (((n)&0xff) << 4)
  2705. #define IDDET_PPM(n) (((n)&0x3f) << 12)
  2706. #define IDDET_POS_SLIDE(n) (((n)&0xf) << 18)
  2707. #define IDDET_POS_INDEX(n) (((n)&0xf) << 22)
  2708. // id_info11
  2709. #define IDDET_ID_INFO11_NID2(n) (((n)&0x3) << 0)
  2710. #define IDDET_ID_INFO11_SFNUM (1 << 2)
  2711. #define IDDET_ID_INFO11_CPTYPE (1 << 3)
  2712. #define IDDET_ID_INFO11_NID1(n) (((n)&0xff) << 4)
  2713. #define IDDET_PPM(n) (((n)&0x3f) << 12)
  2714. #define IDDET_POS_SLIDE(n) (((n)&0xf) << 18)
  2715. #define IDDET_POS_INDEX(n) (((n)&0xf) << 22)
  2716. // id_info12
  2717. #define IDDET_ID_INFO12_NID2(n) (((n)&0x3) << 0)
  2718. #define IDDET_ID_INFO12_SFNUM (1 << 2)
  2719. #define IDDET_ID_INFO12_CPTYPE (1 << 3)
  2720. #define IDDET_ID_INFO12_NID1(n) (((n)&0xff) << 4)
  2721. #define IDDET_PPM(n) (((n)&0x3f) << 12)
  2722. #define IDDET_POS_SLIDE(n) (((n)&0xf) << 18)
  2723. #define IDDET_POS_INDEX(n) (((n)&0xf) << 22)
  2724. // assist_id_power_noise1
  2725. #define IDDET_POWER(n) (((n)&0xffff) << 0)
  2726. #define IDDET_NOISE(n) (((n)&0xffff) << 16)
  2727. // assist_id_power_noise2
  2728. #define IDDET_POWER(n) (((n)&0xffff) << 0)
  2729. #define IDDET_NOISE(n) (((n)&0xffff) << 16)
  2730. // assist_id_power_noise3
  2731. #define IDDET_POWER(n) (((n)&0xffff) << 0)
  2732. #define IDDET_NOISE(n) (((n)&0xffff) << 16)
  2733. // assist_id_power_noise4
  2734. #define IDDET_POWER(n) (((n)&0xffff) << 0)
  2735. #define IDDET_NOISE(n) (((n)&0xffff) << 16)
  2736. // assist_id_position_freq1
  2737. #define IDDET_POSTION(n) (((n)&0x3fff) << 0)
  2738. #define IDDET_FREQ_OFFSET(n) (((n)&0xffff) << 16)
  2739. // assist_id_position_freq2
  2740. #define IDDET_POSTION(n) (((n)&0x3fff) << 0)
  2741. #define IDDET_FREQ_OFFSET(n) (((n)&0xffff) << 16)
  2742. // assist_id_position_freq3
  2743. #define IDDET_POSTION(n) (((n)&0x3fff) << 0)
  2744. #define IDDET_FREQ_OFFSET(n) (((n)&0xffff) << 16)
  2745. // assist_id_position_freq4
  2746. #define IDDET_POSTION(n) (((n)&0x3fff) << 0)
  2747. #define IDDET_FREQ_OFFSET(n) (((n)&0xffff) << 16)
  2748. // assist_id_info1
  2749. #define IDDET_ASSIST_ID_INFO1_NID2(n) (((n)&0x3) << 0)
  2750. #define IDDET_ASSIST_ID_INFO1_SFNUM (1 << 2)
  2751. #define IDDET_ASSIST_ID_INFO1_CPTYPE (1 << 3)
  2752. #define IDDET_ASSIST_ID_INFO1_NID1(n) (((n)&0xff) << 4)
  2753. #define IDDET_PPM(n) (((n)&0x3f) << 12)
  2754. // assist_id_info2
  2755. #define IDDET_ASSIST_ID_INFO2_NID2(n) (((n)&0x3) << 0)
  2756. #define IDDET_ASSIST_ID_INFO2_SFNUM (1 << 2)
  2757. #define IDDET_ASSIST_ID_INFO2_CPTYPE (1 << 3)
  2758. #define IDDET_ASSIST_ID_INFO2_NID1(n) (((n)&0xff) << 4)
  2759. #define IDDET_PPM(n) (((n)&0x3f) << 12)
  2760. // assist_id_info3
  2761. #define IDDET_ASSIST_ID_INFO3_NID2(n) (((n)&0x3) << 0)
  2762. #define IDDET_ASSIST_ID_INFO3_SFNUM (1 << 2)
  2763. #define IDDET_ASSIST_ID_INFO3_CPTYPE (1 << 3)
  2764. #define IDDET_ASSIST_ID_INFO3_NID1(n) (((n)&0xff) << 4)
  2765. #define IDDET_PPM(n) (((n)&0x3f) << 12)
  2766. // assist_id_info4
  2767. #define IDDET_ASSIST_ID_INFO4_NID2(n) (((n)&0x3) << 0)
  2768. #define IDDET_ASSIST_ID_INFO4_SFNUM (1 << 2)
  2769. #define IDDET_ASSIST_ID_INFO4_CPTYPE (1 << 3)
  2770. #define IDDET_ASSIST_ID_INFO4_NID1(n) (((n)&0xff) << 4)
  2771. #define IDDET_PPM(n) (((n)&0x3f) << 12)
  2772. // int_flag
  2773. #define IDDET_PSSGRU_FINISH (1 << 0)
  2774. #define IDDET_PSSITM_FINISH (1 << 1)
  2775. #define IDDET_SSS_FINISH (1 << 2)
  2776. #define IDDET_FREQ_IDIDENT_FINISH (1 << 3)
  2777. #define IDDET_RESYNC_FINISH (1 << 4)
  2778. #define IDDET_TXRX_SUSPEND (1 << 5)
  2779. #define IDDET_ERROR_STATE (1 << 6)
  2780. #define IDDET_STOP (1 << 7)
  2781. #define IDDET_INT_FLAG_RSSI (1 << 8)
  2782. #define IDDET_FREQ_SEARCH_SBI (1 << 9)
  2783. #define IDDET_FREQ_SEARCH (1 << 10)
  2784. #define IDDET_DISCON_SECTION_FINISH (1 << 11)
  2785. // sta_flag
  2786. #define IDDET_PSS_GRU_RUN (1 << 0)
  2787. #define IDDET_PSS_ITM_RUN (1 << 1)
  2788. #define IDDET_SSS_RUN (1 << 2)
  2789. #define IDDET_FREQITM_IDIDENT_RUN (1 << 3)
  2790. #define IDDET_RESYN_RUN (1 << 4)
  2791. #define IDDET_FREQ_SEARCH_RUN (1 << 5)
  2792. // pre_sample_count
  2793. #define IDDET_PRE_SAMPLE_COUNT(n) (((n)&0x3ff) << 0)
  2794. // freq_search_ctrl
  2795. #define IDDET_FIRST_5MS (1 << 0)
  2796. #define IDDET_LAST_5MS (1 << 1)
  2797. #define IDDET_FREQ_SEL(n) (((n)&0x3) << 2)
  2798. #define IDDET_SORT_START_ADDR(n) (((n)&0x3ff) << 4)
  2799. #define IDDET_SORT_END_ADDR(n) (((n)&0x3ff) << 14)
  2800. #define IDDET_SORT_EN (1 << 24)
  2801. #define IDDET_FFT_EN (1 << 25)
  2802. #define IDDET_SORT_MODE (1 << 26)
  2803. // freq_search_config1
  2804. #define IDDET_M(n) (((n)&0xf) << 0)
  2805. #define IDDET_FREQ_200K_EN (1 << 4)
  2806. #define IDDET_FREQ_1_4M_EN (1 << 5)
  2807. #define IDDET_FREQ_3M_EN (1 << 6)
  2808. #define IDDET_FREQ_5M_EN (1 << 7)
  2809. #define IDDET_FREQ_10M_EN (1 << 8)
  2810. #define IDDET_FREQ_15M_EN (1 << 9)
  2811. #define IDDET_FREQ_20M_EN (1 << 10)
  2812. #define IDDET_SBI_MAX(n) (((n)&0x3f) << 11)
  2813. #define IDDET_CUR_SBI_NUM(n) (((n)&0x3f) << 17)
  2814. #define IDDET_PWR_32TO16BITSEL(n) (((n)&0xf) << 23)
  2815. #define IDDET_PWRWIN_32TO20BITSEL(n) (((n)&0xf) << 27)
  2816. // freq_search_config2
  2817. #define IDDET_SELECTBINNUM_LEFT(n) (((n)&0x1ff) << 0)
  2818. #define IDDET_SELECTBINNUM_RIGHT(n) (((n)&0x1ff) << 9)
  2819. // band_win_start_conf1
  2820. #define IDDET_BAND_WIN_START_CONF1_BAND_200KHZ(n) (((n)&0x7f) << 0)
  2821. #define IDDET_BAND_WIN_START_CONF1_BAND_1_4MHZ(n) (((n)&0x7f) << 7)
  2822. #define IDDET_BAND_WIN_START_CONF1_BAND_3MHZ(n) (((n)&0x7f) << 14)
  2823. #define IDDET_BAND_WIN_START_CONF1_BAND_5MHZ(n) (((n)&0x7f) << 21)
  2824. // band_win_start_conf2
  2825. #define IDDET_BAND_WIN_START_CONF2_BAND_10MHZ(n) (((n)&0x7f) << 0)
  2826. #define IDDET_BAND_WIN_START_CONF2_BAND_15MHZ(n) (((n)&0x7f) << 7)
  2827. #define IDDET_BAND_WIN_START_CONF2_BAND_20MHZ(n) (((n)&0x7f) << 14)
  2828. // band_win_end_conf1
  2829. #define IDDET_BAND_WIN_END_CONF1_BAND_200KHZ(n) (((n)&0xf) << 0)
  2830. #define IDDET_BAND_WIN_END_CONF1_BAND_1_4MHZ(n) (((n)&0xf) << 4)
  2831. #define IDDET_BAND_WIN_END_CONF1_BAND_3MHZ(n) (((n)&0xf) << 8)
  2832. #define IDDET_BAND_WIN_END_CONF1_BAND_5MHZ(n) (((n)&0xf) << 12)
  2833. #define IDDET_BAND_WIN_END_CONF1_BAND_10MHZ(n) (((n)&0xf) << 16)
  2834. #define IDDET_BAND_WIN_END_CONF1_BAND_15MHZ(n) (((n)&0xf) << 20)
  2835. #define IDDET_BAND_WIN_END_CONF1_BAND_20MHZ(n) (((n)&0xf) << 24)
  2836. // agc_conf
  2837. #define IDDET_AGC(n) (((n)&0x7f) << 0)
  2838. // sbi_sum__len
  2839. #define IDDET_SBI_SUM_LEN(n) (((n)&0x3ff) << 0)
  2840. // target_agc
  2841. #define IDDET_TARGET_AGC(n) (((n)&0x3ff) << 0)
  2842. // freqitm_out1
  2843. #define IDDET_FREQ_ITM_OUT1(n) (((n)&0xffff) << 0)
  2844. #define IDDET_FREQ_ITM_OUT2(n) (((n)&0xffff) << 16)
  2845. // pss1_resyn_rssi_range
  2846. #define IDDET_PSS1_RSSI_START(n) (((n)&0x3fff) << 0)
  2847. #define IDDET_PSS1_RSSI_END(n) (((n)&0x3fff) << 16)
  2848. // pss1_max_rssi0
  2849. #define IDDET_PSS1_MAX_RSSI(n) (((n)&0xffff) << 0)
  2850. // pss1_max_rssi1
  2851. #define IDDET_PSS1_MAX_RSSI(n) (((n)&0xffff) << 0)
  2852. // pss1_max_rssi2
  2853. #define IDDET_PSS1_MAX_RSSI(n) (((n)&0xffff) << 0)
  2854. // pss1_max_rssi3
  2855. #define IDDET_PSS1_MAX_RSSI(n) (((n)&0xffff) << 0)
  2856. // pss1_max_rssi4
  2857. #define IDDET_PSS1_MAX_RSSI(n) (((n)&0xffff) << 0)
  2858. // pss1_max_rssi5
  2859. #define IDDET_PSS1_MAX_RSSI(n) (((n)&0xffff) << 0)
  2860. // pss1_max_rssi6
  2861. #define IDDET_PSS1_MAX_RSSI(n) (((n)&0xffff) << 0)
  2862. // pss1_max_rssi7
  2863. #define IDDET_PSS1_MAX_RSSI(n) (((n)&0xffff) << 0)
  2864. // pss1_max_rssi8
  2865. #define IDDET_PSS1_MAX_RSSI(n) (((n)&0xffff) << 0)
  2866. // pss1_max_rssi9
  2867. #define IDDET_PSS1_MAX_RSSI(n) (((n)&0xffff) << 0)
  2868. // pss1_max_rssi10
  2869. #define IDDET_PSS1_MAX_RSSI(n) (((n)&0xffff) << 0)
  2870. // pss1_max_rssi11
  2871. #define IDDET_PSS1_MAX_RSSI(n) (((n)&0xffff) << 0)
  2872. // mem1_8_mem1_11
  2873. #define IDDET_MEM1_8_MEM1_11_2(n) (((n)&0x3ff) << 0)
  2874. #define IDDET_MEM1_8_MEM1_11_1(n) (((n)&0x3ff) << 16)
  2875. // mem_freq_pwr_before_agc
  2876. #define IDDET_MEM_FREQ_PWR_BEFORE_AGC_0(n) (((n)&0xffff) << 0)
  2877. #define IDDET_MEM_FREQ_PWR_BEFORE_AGC_1(n) (((n)&0xffff) << 16)
  2878. // mem_freq_len_agc
  2879. #define IDDET_MEM_FREQ_LEN_AGC_0(n) (((n)&0x3ff) << 0)
  2880. #define IDDET_MEM_FREQ_LEN_AGC_1(n) (((n)&0x1ff) << 10)
  2881. #endif // _IDDET_H_