ril.pp 434 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 2008 Free Pascal development team.
  4. See the file COPYING.FPC, included in this distribution,
  5. for details about the copyright.
  6. This program is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  9. ********************************************************************** }
  10. //-----------------------------------------------------------------------------
  11. //
  12. // RIL.H - Radio Interface Layer
  13. //
  14. //-----------------------------------------------------------------------------
  15. //
  16. // Microsoft Windows Mobile 6.0 Platform Builder.
  17. //
  18. unit RIL;
  19. {$CALLING cdecl}
  20. {$INLINE ON}
  21. interface
  22. uses Windows;
  23. const
  24. RILDLL = 'ril.dll';
  25. const
  26. RIL_DRIVER_VERSION = $00020000;
  27. // -----------------------------------------------------------------------------
  28. //
  29. // @doc EXTERNAL
  30. //
  31. // @constants Error Class | Each RIL error falls into a general error class bucket
  32. //
  33. // @comm In RIL, the low order 16 bits are divided into an 8-bit error class and
  34. // an 8-bit error value. Use the RILERRORCLASS macro to obtain the error
  35. // class from a RIL HRESULT.
  36. //
  37. // -----------------------------------------------------------------------------
  38. const
  39. RIL_ERRORCLASS_NONE = $00; // @constdefine Misc error
  40. RIL_ERRORCLASS_PASSWORD = $01; // @constdefine Unspecified phone failure
  41. RIL_ERRORCLASS_SIM = $02; // @constdefine Problem with the SIM
  42. RIL_ERRORCLASS_NETWORKACCESS = $03; // @constdefine Can't access the network
  43. RIL_ERRORCLASS_NETWORK = $04; // @constdefine Error in the network
  44. RIL_ERRORCLASS_MOBILE = $05; // @constdefine Error in the mobile
  45. RIL_ERRORCLASS_NETWORKUNSUPPORTED = $06; // @constdefine Unsupported by the network
  46. RIL_ERRORCLASS_MOBILEUNSUPPORTED = $07; // @constdefine Unsupported by the mobile
  47. RIL_ERRORCLASS_BADPARAM = $08; // @constdefine An invalid parameter was supplied
  48. RIL_ERRORCLASS_STORAGE = $09; // @constdefine Error relating to storage
  49. RIL_ERRORCLASS_SMSC = $0A; // @constdefine Error relates to the SMSC
  50. RIL_ERRORCLASS_DESTINATION = $0B; // @constdefine Error in the destination mobile
  51. RIL_ERRORCLASS_DESTINATIONUNSUPPORTED = $0C; // @constdefine Unsupported by destination mobile
  52. RIL_ERRORCLASS_RADIOUNAVAILABLE = $0D; // @constdefine The Radio Module is Off or a radio module may not be present
  53. RIL_ERRORCLASS_GPRS = $0E; // @constdefine GPRS related failures
  54. function MAKE_RILERROR(errclass:byte; code:byte):ULONG; inline;
  55. function RILERRORCLASS(rilerror:ULONG):byte; inline;
  56. function ISRILERROR(rilerror:ULONG):BOOL; inline;
  57. // -----------------------------------------------------------------------------
  58. //
  59. // @doc EXTERNAL
  60. //
  61. // @constants Error | Error codes
  62. //
  63. // @comm None
  64. //
  65. // -----------------------------------------------------------------------------
  66. const
  67. FACILITY_RIL = $0100;
  68. RIL_E_PHONEFAILURE = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_MOBILE shl 8) or $01); // @constdefine Unspecified phone failure
  69. RIL_E_NOCONNECTION = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_MOBILE shl 8) or $02); // @constdefine RIL has no connection to the phone
  70. RIL_E_LINKRESERVED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_MOBILE shl 8) or $03); // @constdefine RIL's link to the phone is reserved
  71. RIL_E_OPNOTALLOWED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_MOBILEUNSUPPORTED shl 8) or $04); // @constdefine Attempted operation isn't allowed
  72. RIL_E_OPNOTSUPPORTED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_MOBILEUNSUPPORTED shl 8) or $05); // @constdefine Attempted operation isn't supported
  73. RIL_E_PHSIMPINREQUIRED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_PASSWORD shl 8) or $06); // @constdefine PH-SIM PIN is required to perform this operation
  74. RIL_E_PHFSIMPINREQUIRED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_PASSWORD shl 8) or $07); // @constdefine PH-FSIM PIN is required to perform this operation
  75. RIL_E_PHFSIMPUKREQUIRED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_PASSWORD shl 8) or $08); // @constdefine PH-FSIM PUK is required to perform this operation
  76. RIL_E_SIMNOTINSERTED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_SIM shl 8) or $09); // @constdefine SIM isn't inserted into the phone
  77. RIL_E_SIMPINREQUIRED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_PASSWORD shl 8) or $0A); // @constdefine SIM PIN is required to perform this operation
  78. RIL_E_SIMPUKREQUIRED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_PASSWORD shl 8) or $0B); // @constdefine SIM PUK is required to perform this operation
  79. RIL_E_SIMFAILURE = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_SIM shl 8) or $0C); // @constdefine SIM failure was detected
  80. RIL_E_SIMBUSY = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_SIM shl 8) or $0D); // @constdefine SIM is busy
  81. RIL_E_SIMWRONG = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_SIM shl 8) or $0E); // @constdefine Inorrect SIM was inserted
  82. RIL_E_INCORRECTPASSWORD = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_PASSWORD shl 8) or $0F); // @constdefine Incorrect password was supplied
  83. RIL_E_SIMPIN2REQUIRED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_PASSWORD shl 8) or $10); // @constdefine SIM PIN2 is required to perform this operation
  84. RIL_E_SIMPUK2REQUIRED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_PASSWORD shl 8) or $11); // @constdefine SIM PUK2 is required to perform this operation
  85. RIL_E_MEMORYFULL = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_STORAGE shl 8) or $12); // @constdefine Storage memory is full
  86. RIL_E_INVALIDINDEX = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_STORAGE shl 8) or $13); // @constdefine Invalid storage index was supplied
  87. RIL_E_NOTFOUND = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_STORAGE shl 8) or $14); // @constdefine A requested storage entry was not found
  88. RIL_E_MEMORYFAILURE = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_STORAGE shl 8) or $15); // @constdefine Storage memory failure
  89. RIL_E_TEXTSTRINGTOOLONG = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_BADPARAM shl 8) or $16); // @constdefine Supplied text string is too long
  90. RIL_E_INVALIDTEXTSTRING = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_BADPARAM shl 8) or $17); // @constdefine Supplied text string contains invalid characters
  91. RIL_E_DIALSTRINGTOOLONG = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_BADPARAM shl 8) or $18); // @constdefine Supplied dial string is too long
  92. RIL_E_INVALIDDIALSTRING = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_BADPARAM shl 8) or $19); // @constdefine Supplied dial string contains invalid characters
  93. RIL_E_NONETWORKSVC = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NETWORKACCESS shl 8) or $1A); // @constdefine Network service isn't available
  94. RIL_E_NETWORKTIMEOUT = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NETWORK shl 8) or $1B); // @constdefine Network operation timed out
  95. RIL_E_EMERGENCYONLY = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NETWORKACCESS shl 8) or $1C); // @constdefine Network can only be used for emergency calls
  96. RIL_E_NETWKPINREQUIRED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_PASSWORD shl 8) or $1D); // @constdefine Network Personalization PIN is required to perform this operation
  97. RIL_E_NETWKPUKREQUIRED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_PASSWORD shl 8) or $1E); // @constdefine Network Personalization PUK is required to perform this operation
  98. RIL_E_SUBSETPINREQUIRED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_PASSWORD shl 8) or $1F); // @constdefine Network Subset Personalization PIN is required to perform this operation
  99. RIL_E_SUBSETPUKREQUIRED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_PASSWORD shl 8) or $20); // @constdefine Network Subset Personalization PUK is required to perform this operation
  100. RIL_E_SVCPINREQUIRED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_PASSWORD shl 8) or $21); // @constdefine Service Provider Personalization PIN is required to perform this operation
  101. RIL_E_SVCPUKREQUIRED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_PASSWORD shl 8) or $22); // @constdefine Service Provider Personalization PUK is required to perform this operation
  102. RIL_E_CORPPINREQUIRED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_PASSWORD shl 8) or $23); // @constdefine Corporate Personalization PIN is required to perform this operation
  103. RIL_E_CORPPUKREQUIRED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_PASSWORD shl 8) or $24); // @constdefine Corporate Personalization PUK is required to perform this operation
  104. RIL_E_TELEMATICIWUNSUPPORTED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NETWORKUNSUPPORTED shl 8) or $25); // @constdefine Telematic interworking isn't supported
  105. RIL_E_SMTYPE0UNSUPPORTED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_SMSC shl 8) or $26); // @constdefine Type 0 messages aren't supported
  106. RIL_E_CANTREPLACEMSG = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_SMSC shl 8) or $27); // @constdefine Existing message cannot be replaced
  107. RIL_E_PROTOCOLIDERROR = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_SMSC shl 8) or $28); // @constdefine Uspecified error related to the message Protocol ID
  108. RIL_E_DCSUNSUPPORTED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_SMSC shl 8) or $29); // @constdefine Specified message Data Coding Scheme isn't supported
  109. RIL_E_MSGCLASSUNSUPPORTED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_SMSC shl 8) or $2A); // @constdefine Specified message class isn't supported
  110. RIL_E_DCSERROR = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_SMSC shl 8) or $2B); // @constdefine Unspecified error related to the message Data Coding Scheme
  111. RIL_E_CMDCANTBEACTIONED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_SMSC shl 8) or $2C); // @constdefine Specified message Command cannot be executed
  112. RIL_E_CMDUNSUPPORTED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_SMSC shl 8) or $2D); // @constdefine Specified message Command isn't supported
  113. RIL_E_CMDERROR = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_SMSC shl 8) or $2E); // @constdefine Unspecified error related to the message Command
  114. RIL_E_MSGBODYHEADERERROR = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_SMSC shl 8) or $2F); // @constdefine Unspecified error related to the message Body or Header
  115. RIL_E_SCBUSY = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_SMSC shl 8) or $30); // @constdefine Message Service Center is busy
  116. RIL_E_NOSCSUBSCRIPTION = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_SMSC shl 8) or $31); // @constdefine No message Service Center subscription
  117. RIL_E_SCSYSTEMFAILURE = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_SMSC shl 8) or $32); // @constdefine Message service Center system failure occurred
  118. RIL_E_INVALIDADDRESS = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_SMSC shl 8) or $33); // @constdefine Specified address is invalid
  119. RIL_E_DESTINATIONBARRED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_SMSC shl 8) or $34); // @constdefine Message destination is barred
  120. RIL_E_REJECTEDDUPLICATE = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_SMSC shl 8) or $35); // @constdefine Duplicate message was rejected
  121. RIL_E_VPFUNSUPPORTED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_SMSC shl 8) or $36); // @constdefine Specified message Validity Period Format isn't supported
  122. RIL_E_VPUNSUPPORTED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_SMSC shl 8) or $37); // @constdefine Specified message Validity Period isn't supported
  123. RIL_E_SIMMSGSTORAGEFULL = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_STORAGE shl 8) or $38); // @constdefine Message storage on the SIM is full
  124. RIL_E_NOSIMMSGSTORAGE = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_SIM shl 8) or $39); // @constdefine SIM isn't capable of storing messages
  125. RIL_E_SIMTOOLKITBUSY = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_SIM shl 8) or $3A); // @constdefine SIM Application Toolkit is busy
  126. RIL_E_SIMDOWNLOADERROR = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_SIM shl 8) or $3B); // @constdefine SIM data download error
  127. RIL_E_MSGSVCRESERVED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NETWORKUNSUPPORTED shl 8) or $3C); // @constdefine Messaging service is reserved
  128. RIL_E_INVALIDMSGPARAM = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_BADPARAM shl 8) or $3D); // @constdefine One of the message parameters is invalid
  129. RIL_E_UNKNOWNSCADDRESS = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_SMSC shl 8) or $3E); // @constdefine Unknown message Service Center address was specified
  130. RIL_E_UNASSIGNEDNUMBER = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_DESTINATION shl 8) or $3F); // @constdefine Specified message destination address is a currently unassigned phone number
  131. RIL_E_MSGBARREDBYOPERATOR = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NETWORKACCESS shl 8) or $40); // @constdefine Message sending was barred by an operator
  132. RIL_E_MSGCALLBARRED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NETWORKACCESS shl 8) or $41); // @constdefine Message sending was prevented by outgoing calls barring
  133. RIL_E_MSGXFERREJECTED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_DESTINATION shl 8) or $42); // @constdefine Sent message has been rejected by the receiving equipment
  134. RIL_E_DESTINATIONOUTOFSVC = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_DESTINATION shl 8) or $43); // @constdefine Message could not be delivered because destination equipment is out of service
  135. RIL_E_UNIDENTIFIEDSUBCRIBER = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NETWORKACCESS shl 8) or $44); // @constdefine Sender's mobile ID isn't registered
  136. RIL_E_SVCUNSUPPORTED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NETWORKUNSUPPORTED shl 8) or $45); // @constdefine Requested messaging service isn't supported
  137. RIL_E_UNKNOWNSUBSCRIBER = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NETWORKACCESS shl 8) or $46); // @constdefine Sender isn't recognized by the network
  138. RIL_E_NETWKOUTOFORDER = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NETWORK shl 8) or $47); // @constdefine Long-term network failure
  139. RIL_E_NETWKTEMPFAILURE = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NETWORK shl 8) or $48); // @constdefine Short-term network failure
  140. RIL_E_CONGESTION = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NETWORK shl 8) or $49); // @constdefine Operation failed because of the high network traffic
  141. RIL_E_RESOURCESUNAVAILABLE = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NONE shl 8) or $4A); // @constdefine Unspecified resources weren't available
  142. RIL_E_SVCNOTSUBSCRIBED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NETWORKUNSUPPORTED shl 8) or $4B); // @constdefine Sender isn't subscribed for the requested messaging service
  143. RIL_E_SVCNOTIMPLEMENTED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NETWORKUNSUPPORTED shl 8) or $4C); // @constdefine Requested messaging service isn't implemented on the network
  144. RIL_E_INVALIDMSGREFERENCE = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_BADPARAM shl 8) or $4D); // @constdefine Imvalid message reference value was used
  145. RIL_E_INVALIDMSG = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_BADPARAM shl 8) or $4E); // @constdefine Message was determined to be invalid for unspecified reasons
  146. RIL_E_INVALIDMANDATORYINFO = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_BADPARAM shl 8) or $4F); // @constdefine Mandatory message information is invalid or missing
  147. RIL_E_MSGTYPEUNSUPPORTED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NETWORKUNSUPPORTED shl 8) or $50); // @constdefine The message type is unsupported
  148. RIL_E_ICOMPATIBLEMSG = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NETWORKUNSUPPORTED shl 8) or $51); // @constdefine Sent message isn't compatible with the network
  149. RIL_E_INFOELEMENTUNSUPPORTED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NETWORKUNSUPPORTED shl 8) or $52); // @constdefine An information element specified in the message isn't supported
  150. RIL_E_PROTOCOLERROR = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NETWORK shl 8) or $53); // @constdefine Unspefied protocol error
  151. RIL_E_NETWORKERROR = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NETWORK shl 8) or $54); // @constdefine Unspecified network error
  152. RIL_E_MESSAGINGERROR = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NETWORK shl 8) or $55); // @constdefine Unspecified messaging error
  153. RIL_E_NOTREADY = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NONE shl 8) or $56); // @constdefine RIL isn't yet ready to perform the requested operation
  154. RIL_E_TIMEDOUT = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NONE shl 8) or $57); // @constdefine Operation timed out
  155. RIL_E_CANCELLED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NONE shl 8) or $58); // @constdefine Operation was cancelled
  156. RIL_E_NONOTIFYCALLBACK = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NONE shl 8) or $59); // @constdefine Requested operation requires an RIL notification callback, which wasn't provided
  157. RIL_E_OPFMTUNAVAILABLE = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NETWORKUNSUPPORTED shl 8) or $5A); // @constdefine Operator format isn't available
  158. RIL_E_NORESPONSETODIAL = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NETWORKACCESS shl 8) or $5B); // @constdefine Dial operation hasn't received a response for a long time
  159. RIL_E_SECURITYFAILURE = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NONE shl 8) or $5C); // @constdefine Security failure
  160. RIL_E_RADIOFAILEDINIT = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NONE shl 8) or $5D); // @constdefine Radio failed to initialize correctly
  161. RIL_E_DRIVERINITFAILED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_RADIOUNAVAILABLE shl 8) or $5E); // @constdefine There was a problem initializing the radio driver
  162. RIL_E_RADIONOTPRESENT = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_RADIOUNAVAILABLE shl 8) or $5F); // @constdefine The Radio is not present
  163. RIL_E_RADIOOFF = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_RADIOUNAVAILABLE shl 8) or $60); // @constdefine The Radio is in Off mode
  164. RIL_E_ILLEGALMS = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_GPRS shl 8) or $61); // @constdefine Illegal MS
  165. RIL_E_ILLEGALME = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_GPRS shl 8) or $62); // @constdefine Illegal ME
  166. RIL_E_GPRSSERVICENOTALLOWED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_GPRS shl 8) or $63); // @constdefine GPRS Service not allowed
  167. RIL_E_PLMNNOTALLOWED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_GPRS shl 8) or $64); // @constdefine PLMN not allowed
  168. RIL_E_LOCATIONAREANOTALLOWED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_GPRS shl 8) or $65); // @constdefine Location area not allowed
  169. RIL_E_ROAMINGNOTALLOWEDINTHISLOCATIONAREA = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_GPRS shl 8) or $66); // @constdefine Roaming not allowed in this location area
  170. RIL_E_SERVICEOPTIONNOTSUPPORTED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_GPRS shl 8) or $67); // @constdefine Service option not supported
  171. RIL_E_REQUESTEDSERVICEOPTIONNOTSUBSCRIBED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_GPRS shl 8) or $68); // @constdefine Requested service option not subscribed
  172. RIL_E_SERVICEOPTIONTEMPORARILYOUTOFORDER = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_GPRS shl 8) or $69); // @constdefine Service option temporarily out of order
  173. RIL_E_PDPAUTHENTICATIONFAILURE = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_GPRS shl 8) or $6A); // @constdefine PDP authentication failure
  174. RIL_E_INVALIDMOBILECLASS = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_GPRS shl 8) or $6B); // @constdefine invalid mobile class
  175. RIL_E_UNSPECIFIEDGPRSERROR = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_GPRS shl 8) or $6C); // @constdefine unspecific GPRS error
  176. RIL_E_RADIOREBOOTED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NONE shl 8) or $6D); // @constdefine the command failed because the radio reset itself unexpectedly
  177. RIL_E_INVALIDCONTEXTSTATE = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NONE shl 8) or $6E); // @constdefine the command failed because the requested context state is invalid
  178. RIL_E_MAXCONTEXTS = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NONE shl 8) or $6F); // @constdefine the command failed because there are no more radio contexts.
  179. RIL_E_SYNCHRONOUS_DATA_UNAVAILABLE = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NONE shl 8) or $70); // @constdefine the cached notification data is not present
  180. RIL_E_INVALIDASYNCCOMMANDRESPONSE = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NONE shl 8) or $71); // @constdefine The RIL driver has issued an invalid asynchronous command response (hr == 0)
  181. // -----------------------------------------------------------------------------
  182. //
  183. // @doc EXTERNAL
  184. //
  185. // @constants Notification Class | Notification classes
  186. //
  187. // @comm None
  188. //
  189. // -----------------------------------------------------------------------------
  190. const
  191. RIL_NCLASS_FUNCRESULT = $00000000; // @constdefine API call results
  192. RIL_NCLASS_CALLCTRL = $00010000; // @constdefine Call control notifications
  193. RIL_NCLASS_MESSAGE = $00020000; // @constdefine Messaging notifications
  194. RIL_NCLASS_NETWORK = $00040000; // @constdefine Network-related notifications
  195. RIL_NCLASS_SUPSERVICE = $00080000; // @constdefine Supplementary service notifications
  196. RIL_NCLASS_PHONEBOOK = $00100000; // @constdefine Phonebook notifications
  197. RIL_NCLASS_SIMTOOLKIT = $00200000; // @constdefine SIM Toolkit notifications
  198. RIL_NCLASS_MISC = $00400000; // @constdefine Miscellaneous notifications
  199. RIL_NCLASS_RADIOSTATE = $00800000; // @constdefine Notifications Pertaining to changes in Radio State
  200. RIL_NCLASS_POLLING = $01000000; // @constdefine polling related APIs
  201. RIL_NCLASS_NDIS = $40000000; // @constdefine Nofitifcations that won't be picked up by all.
  202. RIL_NCLASS_DEVSPECIFIC = $80000000; // @constdefine Reserved for device specific notifications
  203. RIL_NCLASS_ALL = $01FF0000; // @constdefine All notification classes (except DevSpecifc)
  204. // -----------------------------------------------------------------------------
  205. //
  206. // @doc EXTERNAL
  207. //
  208. // @constants API Result | API call results (RIL_NCLASS_FUNCRESULT)
  209. //
  210. // @comm None
  211. //
  212. // -----------------------------------------------------------------------------
  213. const
  214. RIL_RESULT_OK = $00000001 or RIL_NCLASS_FUNCRESULT; // @constdefine RIL API call succeded; lpData is NULL
  215. RIL_RESULT_NOCARRIER = $00000002 or RIL_NCLASS_FUNCRESULT; // @constdefine RIL API failed because no carrier was detected; lpData is NULL
  216. RIL_RESULT_ERROR = $00000003 or RIL_NCLASS_FUNCRESULT; // @constdefine RIL API failed; lpData points to RIL_E_* constant
  217. RIL_RESULT_NODIALTONE = $00000004 or RIL_NCLASS_FUNCRESULT; // @constdefine RIL API failed because no dialtone was detected; lpData is NULL
  218. RIL_RESULT_BUSY = $00000005 or RIL_NCLASS_FUNCRESULT; // @constdefine RIL API failed because the line was busy; lpData is NULL
  219. RIL_RESULT_NOANSWER = $00000006 or RIL_NCLASS_FUNCRESULT; // @constdefine RIL API failed because of the lack of answer; lpData is NULL
  220. RIL_RESULT_CALLABORTED = $00000007 or RIL_NCLASS_FUNCRESULT; // @constdefine RIL API failed because it was cancelled prior to completion; lpData is NULL
  221. RIL_RESULT_CALLDROPPED = $00000008 or RIL_NCLASS_FUNCRESULT; // @constdefine RIL API failed because the network dropped the call; lpData is NULL
  222. RIL_RESULT_RADIOOFF = $00000009 or RIL_NCLASS_FUNCRESULT; // @constdefine RIL API failed because the radio was shut offl; lpData is NULL
  223. // -----------------------------------------------------------------------------
  224. //
  225. // @doc EXTERNAL
  226. //
  227. // @constants Notification Call Control | Call control notifications (RIL_NCLASS_CALLCTRL)
  228. //
  229. // @comm None
  230. //
  231. // -----------------------------------------------------------------------------
  232. const
  233. RIL_NOTIFY_RING = $00000001 or RIL_NCLASS_CALLCTRL; // @constdefine Incoming call; lpData points to RILRINGINFO
  234. RIL_NOTIFY_CONNECT = $00000002 or RIL_NCLASS_CALLCTRL; // @constdefine Data/voice connection has been established; lpData points to RILCONNECTINFO
  235. RIL_NOTIFY_DISCONNECT = $00000003 or RIL_NCLASS_CALLCTRL; // @constdefine Data/voice connection has been terminated; lpData points to RIL_DISCINIT_* constant
  236. RIL_NOTIFY_DATASVCNEGOTIATED = $00000004 or RIL_NCLASS_CALLCTRL; // @constdefine Data connection service has been negotiated; lpData points to RILSERVICEINFO
  237. RIL_NOTIFY_CALLSTATECHANGED = $00000005 or RIL_NCLASS_CALLCTRL; // @constdefine RIL has performed an operation that may have changed state of existing calls; lpData is NULL
  238. RIL_NOTIFY_EMERGENCYMODEENTERED = $00000006 or RIL_NCLASS_CALLCTRL; // @constdefine RIL has enetered emergency mode; lpData is NULL
  239. RIL_NOTIFY_EMERGENCYMODEEXITED = $00000007 or RIL_NCLASS_CALLCTRL; // @constdefine RIL has exited emergency mode; lpData is NULL
  240. RIL_NOTIFY_EMERGENCYHANGUP = $00000008 or RIL_NCLASS_CALLCTRL; // @constdefine Existsing calls (if any) were hung up in RIL emergency mode; lpData is NULL
  241. RIL_NOTIFY_HSCSDPARAMSNEGOTIATED = $00000009 or RIL_NCLASS_CALLCTRL; // @constdefine HSCSD parameters for a call has been negotiated; lpData points to RILCALLHSCSDINFO
  242. RIL_NOTIFY_DIAL = $0000000A or RIL_NCLASS_CALLCTRL; // @constdefine Outgoing call; lpData points to RILDIALINFO
  243. RIL_NOTIFY_CALLPROGRESSINFO = $0000000B or RIL_NCLASS_CALLCTRL; // @constdefine CPI notification; lpData points to RILCALLINFO
  244. RIL_NOTIFY_CURRENTLINECHANGED = $0000000C or RIL_NCLASS_CALLCTRL; // @constdefine Current line has changed notification; lpData points to DWORD with new current address id
  245. RIL_NOTIFY_GPRS_DISCONNECT = $0000000D or RIL_NCLASS_CALLCTRL; // @constdefine GPRS connection has been terminated; lpData points to RILGPRSCONTEXTACTIVATED sturct
  246. // -----------------------------------------------------------------------------
  247. //
  248. // @doc EXTERNAL
  249. //
  250. // @constants Notification Messaging | Messaging notifications (RIL_MCLASS_MESSAGE)
  251. //
  252. // @comm None
  253. //
  254. // -----------------------------------------------------------------------------
  255. const
  256. RIL_NOTIFY_MESSAGE = $00000001 or RIL_NCLASS_MESSAGE; // @constdefine Incoming message; lpData points to RILMESSAGE
  257. RIL_NOTIFY_BCMESSAGE = $00000002 or RIL_NCLASS_MESSAGE; // @constdefine Incoming broadcast message; lpData points to RILMESSAGE
  258. RIL_NOTIFY_STATUSMESSAGE = $00000003 or RIL_NCLASS_MESSAGE; // @constdefine Incoming status-report message; lpData points to RILMESSAGE
  259. RIL_NOTIFY_MSGSTORED = $00000004 or RIL_NCLASS_MESSAGE; // @constdefine A message has been added to storage; lpData points to the storage index assigned to the new message
  260. RIL_NOTIFY_MSGDELETED = $00000005 or RIL_NCLASS_MESSAGE; // @constdefine A message has been deleted from storage; lpData points to the storage index occupied by the deleted message
  261. RIL_NOTIFY_MSGSTORAGECHANGED = $00000006 or RIL_NCLASS_MESSAGE; // @constdefine One of the message storage locations has been changed; lpData points to RILMSGSTORAGEINFO
  262. RIL_NOTIFY_MESSAGE_IN_SIM = $00000007 or RIL_NCLASS_MESSAGE; // @constdefine Incoming message stored to SIM; lpData points to the storage RILMESSAGE_IN_SIM
  263. RIL_NOTIFY_BCMESSAGE_IN_SIM = $00000008 or RIL_NCLASS_MESSAGE; // @constdefine Incoming broadcast message stored to SIM; lpData points to RILMESSAGE_IN_SIM
  264. RIL_NOTIFY_STATUSMESSAGE_IN_SIM = $00000009 or RIL_NCLASS_MESSAGE; // @constdefine Incoming status-report message stored to SIM; lpData points to RILMESSAGE_IN_SIM
  265. // -----------------------------------------------------------------------------
  266. //
  267. // @doc EXTERNAL
  268. //
  269. // @constants Notification Network | Network-related notifications (RIL_NCLASS_NETWORK)
  270. //
  271. // @comm None
  272. //
  273. // -----------------------------------------------------------------------------
  274. const
  275. RIL_NOTIFY_REGSTATUSCHANGED = $00000001 or RIL_NCLASS_NETWORK; // @constdefine Network registration status has changed; lpData points to the new status (RIL_REGSTAT_* constant)
  276. RIL_NOTIFY_CALLMETER = $00000002 or RIL_NCLASS_NETWORK; // @constdefine Call meter has changed; lpData points to a DWORD containing new current call meter value
  277. RIL_NOTIFY_CALLMETERMAXREACHED = $00000003 or RIL_NCLASS_NETWORK; // @constdefine Call meter maximum has been reached; lpData is NULL
  278. RIL_NOTIFY_GPRSREGSTATUSCHANGED = $00000004 or RIL_NCLASS_NETWORK; // @constdefine Network registration status has changed; lpData points to the new status (RIL_REGSTAT_* constant)
  279. RIL_NOTIFY_SYSTEMCHANGED = $00000005 or RIL_NCLASS_NETWORK; // @constdefine This indicates that the type of coverage which is available has changed. Typically one would expect IS-95A or 1xRTT, however CDMA does allow overlay systems; lpData is <t DWORD> of type RIL_SYSTEMTYPE_ flags
  280. RIL_NOTIFY_GPRSCONNECTIONSTATUS = $00000006 or RIL_NCLASS_NETWORK; // @constdefine This indicates the pdp context state has changed. lpData points to RILGPRSCONTEXTACTIVATED
  281. RIL_NOTIFY_SYSTEMCAPSCHANGED = $00000007 or RIL_NCLASS_NETWORK; // @constdefine This indicates the system capability has changed. lpData points to the new system capability (RIL_SYSTEMCAPS_* constant)
  282. RIL_NOTIFY_LOCATIONUPDATE = $00000008 or RIL_NCLASS_NETWORK; // @constdefine This indicates the location data has changed. lpData points to RILLOCATIONINFO
  283. // -----------------------------------------------------------------------------
  284. //
  285. // @doc EXTERNAL
  286. //
  287. // @constants Notification Supplementary Service | Supplementary service notifications (RIL_NCLASS_SUPSERVICE)
  288. //
  289. // @comm None
  290. //
  291. // -----------------------------------------------------------------------------
  292. const
  293. RIL_NOTIFY_CALLERID = $00000001 or RIL_NCLASS_SUPSERVICE; // @constdefine Incoming call CallerID information; lpData points to RILREMOTEPARTYINFO
  294. RIL_NOTIFY_DIALEDID = $00000002 or RIL_NCLASS_SUPSERVICE; // @constdefine Initiated call DialedID information; lpData points to RILREMOTEPARTYINFO
  295. RIL_NOTIFY_CALLWAITING = $00000003 or RIL_NCLASS_SUPSERVICE; // @constdefine Call Waiting information; lpData points to RILCALLWAITINGINFO
  296. RIL_NOTIFY_SUPSERVICEDATA = $00000004 or RIL_NCLASS_SUPSERVICE; // @constdefine Ustructured supplementary service data; lpData points to RILSUPSERVICEDATA
  297. RIL_NOTIFY_INTERMEDIATESS = $00000005 or RIL_NCLASS_SUPSERVICE; // @constdefine Ustructured supplementary service data; lpData points to RILINTERMEDIATESSINFO
  298. RIL_NOTIFY_UNSOLICITEDSS = $00000006 or RIL_NCLASS_SUPSERVICE; // @constdefine Ustructured supplementary service data; lpData points to RILUNSOLICITEDSSINFO
  299. // -----------------------------------------------------------------------------
  300. //
  301. // @doc EXTERNAL
  302. //
  303. // @constants Notification Phonebook | Phonebook notifications (RIL_NCLASS_PHONEBOOK)
  304. //
  305. // @comm None
  306. //
  307. // -----------------------------------------------------------------------------
  308. const
  309. RIL_NOTIFY_PHONEBOOKENTRYSTORED = $00000001 or RIL_NCLASS_PHONEBOOK; // @constdefine A phonebook entry has been added to storage; lpData points to the storage
  310. // index assigned to the new entry (ifdwIndex is RIL_PBINDEX_FIRSTAVAILABLE, the new entry was stored in the first available location)
  311. RIL_NOTIFY_PHONEBOOKENTRYDELETED = $00000002 or RIL_NCLASS_PHONEBOOK; // @constdefine A phonebook entry has been deleted from storage; lpData points to the storage index occupied by the deleted entry
  312. RIL_NOTIFY_PHONEBOOKSTORAGECHANGED = $00000003 or RIL_NCLASS_PHONEBOOK; // @constdefine Phonebook storage location has been changed; lpData points to RIL_PBLOC_* constant
  313. // -----------------------------------------------------------------------------
  314. //
  315. // @doc EXTERNAL
  316. //
  317. // @constants Notification Toolkit | SIM Toolkit notifications (RIL_NCLASS_SIMTOOLKIT)
  318. //
  319. // @comm None
  320. //
  321. // -----------------------------------------------------------------------------
  322. const
  323. RIL_NOTIFY_SIMTOOLKITCMD = $00000001 or RIL_NCLASS_SIMTOOLKIT; // @constdefine A SIM Toolkit command was not handled by the radio; lpData points to array of bytes containing the command
  324. RIL_NOTIFY_SIMTOOLKITCALLSETUP = $00000002 or RIL_NCLASS_SIMTOOLKIT; // @constdefine SIM Toolkit is trying to set up a call and call conditions were successfully checked by the radio;
  325. // lpData points to a DWORD containing the redial timeout for the call (in milliseconds)
  326. RIL_NOTIFY_SIMTOOLKITEVENT = $00000003 or RIL_NCLASS_SIMTOOLKIT; // @constdefine A SIM Toolkit command was handled by the radio or the radio sent a SIm Toolkit command response to the SIM;
  327. // lpData points to array of bytes containing the command or response sent
  328. RIL_NOTIFY_SIMTOOLKITSESSIONEND = $00000004 or RIL_NCLASS_SIMTOOLKIT; // @constdefine A SIM Toolkit command session is ending
  329. // -----------------------------------------------------------------------------
  330. //
  331. // @doc EXTERNAL
  332. //
  333. // @constants Notification Radio State Change | Radio State Change notifications (RIL_NCLASS_RADIOSTATE)
  334. //
  335. // @comm None
  336. //
  337. // -----------------------------------------------------------------------------
  338. const
  339. RIL_NOTIFY_RADIOEQUIPMENTSTATECHANGED = $00000001 or RIL_NCLASS_RADIOSTATE; // @constdefine Carries a STRUCT (RILEQUIPMENTSTATE) stating The Radio equiptmentstate has changed, also notifies a driver defined Radio ON or OFF state
  340. RIL_NOTIFY_RADIOPRESENCECHANGED = $00000002 or RIL_NCLASS_RADIOSTATE; // @constdefine Carries a dword (RIL_RADIOPRESENCE_*) stating that a Radio Module/Driver has been changed (removed, inserted, etc)
  341. RIL_NOTIFY_RADIORESET = $00000003 or RIL_NCLASS_RADIOSTATE; // @constdefine The driver has detected that the radio reset itself. lpData points to NULL
  342. // -----------------------------------------------------------------------------
  343. //
  344. // @doc EXTERNAL
  345. //
  346. // @constants Notification Misc | Miscellaneous notifications (RIL_NCLASS_MISC)
  347. //
  348. // @comm None
  349. //
  350. // -----------------------------------------------------------------------------
  351. const
  352. RIL_NOTIFY_SIMNOTACCESSIBLE = $00000001 or RIL_NCLASS_MISC; // @constdefine SIM card has been removed or has failed to respond; lpData is NULL
  353. RIL_NOTIFY_DTMFSIGNAL = $00000002 or RIL_NCLASS_MISC; // @constdefine A DTMF signal has been detected; lpData points to char
  354. RIL_NOTIFY_GPRSCLASS_NETWORKCHANGED = $00000003 or RIL_NCLASS_MISC; // @constdefine Network has indicated a change in GPRS class
  355. // lpData points to a DWORD containing the new RIL_GPRSCLASS_* value
  356. RIL_NOTIFY_GPRSCLASS_RADIOCHANGED = $00000004 or RIL_NCLASS_MISC; // @constdefine The radio has indicated a change in GPRS class
  357. // lpData points to a DWORD containing the new RIL_GPRSCLASS_* value
  358. RIL_NOTIFY_SIGNALQUALITY = $00000005 or RIL_NCLASS_MISC; // @constdefine Signal Quality Notification
  359. // lpData points to a RILSIGNALQUALITY structure
  360. RIL_NOTIFY_MAINTREQUIRED = $00000006 or RIL_NCLASS_MISC; // @constdefine BS notification that MS requires servicing; lpdata is NULL
  361. RIL_NOTIFY_PRIVACYCHANGED = $00000007 or RIL_NCLASS_MISC; // @constdefine Call Privacy Status; lpData points to DWORD of value RIL_CALLPRIVACY_*
  362. RIL_NOTIFY_SIM_DATACHANGE = $00000008 or RIL_NCLASS_MISC; // @constdefine data change notification; lpData points to DWORD of value RIL_SIMDATACHANGE_*
  363. RIL_NOTIFY_ATLOGGING = $00000009 or RIL_NCLASS_MISC; // @constdefine at command log data present
  364. RIL_NOTIFY_SIMSTATUSCHANGED = $0000000A or RIL_NCLASS_MISC; // @constdefine SIM card state has changed. Carries a DWORD (RIL_SIMSTATUSCHANGED_*) with the current state.
  365. // Notification is sent only when encountering error conditions from the radio.
  366. RIL_NOTIFY_EONS = $0000000B or RIL_NCLASS_MISC; // @constdefine EONS information ready or updated; lpData is NULL
  367. RIL_NOTIFY_SIMSECURITYSTATUS = $0000000C or RIL_NCLASS_MISC; // @constdefine SIM security status change; lpData points to LPRILSIMSECURITYSTATUS
  368. RIL_NOTIFY_LINESTATE = $0000000D or RIL_NCLASS_MISC; // @constdefine line state; lpData points to a DWORD of value RIL_LINESTAT_*
  369. RIL_NOTIFY_BEARERSVCINFO = $0000000E or RIL_NCLASS_MISC; // @constdefine bearer service information; lpData points to LPRILBEARERSVCINFO
  370. RIL_NOTIFY_DATACOMPINFO = $0000000F or RIL_NCLASS_MISC; // @constdefine data compression information; lpData points to LPRILDATACOMPINFO
  371. RIL_NOTIFY_EQUIPMENTINFO = $00000010 or RIL_NCLASS_MISC; // @constdefine equipment information; lpData points to LPRILEQUIPMENTINFO
  372. RIL_NOTIFY_ERRORCORRECTIONINFO = $00000011 or RIL_NCLASS_MISC; // @constdefine error correction information; lpData points to LPRILERRORCORRECTIONINFO
  373. RIL_NOTIFY_GPRSADDRESS = $00000012 or RIL_NCLASS_MISC; // @constdefine GPRS address; lpData points to an array of WCHAR values that indicate the address
  374. RIL_NOTIFY_GPRSATTACHED = $00000013 or RIL_NCLASS_MISC; // @constdefine GPRS attach state; lpData points to a BOOL that indicates attach state
  375. RIL_NOTIFY_GPRSCONTEXT = $00000014 or RIL_NCLASS_MISC; // @constdefine GPRS context list; lpData points to LPRILGPRSCONTEXT
  376. RIL_NOTIFY_GPRSCONTEXTACTIVATED = $00000015 or RIL_NCLASS_MISC; // @constdefine GPRS context activated list; lpData points to LPRILGPRSCONTEXTACTIVATED
  377. RIL_NOTIFY_QOSMIN = $00000016 or RIL_NCLASS_MISC; // @constdefine minimum quality of service profile ; lpData points to LPRILGPRSQOSPROFILE
  378. RIL_NOTIFY_QOSREQ = $00000017 or RIL_NCLASS_MISC; // @constdefine requested quality of service profile ; lpData points to LPRILGPRSQOSPROFILE
  379. RIL_NOTIFY_RLPOPTIONS = $00000018 or RIL_NCLASS_MISC; // @constdefine requested quality of service profile ; lpData points to LPRILRLPINFO
  380. RIL_NOTIFY_NITZ = $00000019 or RIL_NCLASS_MISC; // @constdefine NITZ Date/Time notification. lpData points to a RILNITZINFO structure.
  381. // -----------------------------------------------------------------------------
  382. //
  383. // @doc EXTERNAL
  384. //
  385. // @constants Notification Device Specific | Device Specific notifications (RIL_NCLASS_DEVSPECIFIC)
  386. //
  387. // @comm None
  388. //
  389. // -----------------------------------------------------------------------------
  390. const
  391. RIL_NOTIFY_LOCATION = $00008000 or RIL_NCLASS_DEVSPECIFIC; // @constdefine Location Services; lpData points to DWORD of value RIL_LOCATION_*
  392. RIL_NOTIFY_ROAMSTATUS = $00008001 or RIL_NCLASS_DEVSPECIFIC; // @constdefine Roaming Status; lpData points to DWORD of value RIL_ROAMSTATUS_*
  393. // lpData ponts to DWORD of [ RIL_NDIS_XON |RIL_NDIS_XOFF ]
  394. //
  395. // Macro to extract notification class from notification code
  396. //
  397. function NCLASS_FROM_NOTIFICATION(code:ULONG):ULONG; inline;
  398. //
  399. // Structure parameter flags
  400. //
  401. // -----------------------------------------------------------------------------
  402. //
  403. // @doc EXTERNAL
  404. //
  405. // @params RILNDISIPCONFIG
  406. //
  407. // @comm None
  408. //
  409. // -----------------------------------------------------------------------------
  410. //
  411. const
  412. RIL_PARAM_NDISIPCONFIG_PROTOCOL_IPV4 = $00000001; // @paramdefine
  413. RIL_PARAM_NDISIPCONFIG_PROTOCOL_IPV6 = $00000002; // @paramdefine
  414. //
  415. // ipv4 defines
  416. RIL_PARAM_NDISIPCONFIG_IPADDR = $00000001; // @paramdefine
  417. RIL_PARAM_NDISIPCONFIG_PRIMARYDNS = $00000002; // @paramdefine
  418. RIL_PARAM_NDISIPCONFIG_SECONDARYDNS = $00000004; // @paramdefine
  419. RIL_PARAM_NDISIPCONFIG_DEFAULTGATEWAY = $00000008; // @paramdefine
  420. RIL_PARAM_NDISIPCONFIG_SUBNETMASK = $00000010; // @paramdefine
  421. RIL_PARAM_NDISIPCONFIG_ALL = $0000001f; // @paramdefine
  422. //
  423. // ipv6 defines
  424. RIL_PARAM_NDISIPCONFIG_IPV6_IPADDR = $00000001; // @paramdefine
  425. RIL_PARAM_NDISIPCONFIG_IPV6_PRIMARYDNS = $00000002; // @paramdefine
  426. RIL_PARAM_NDISIPCONFIG_IPV6_SECONDARYDNS = $00000004; // @paramdefine
  427. RIL_PARAM_NDISIPCONFIG_IPV6_DEFAULTGATEWAY = $00000008; // @paramdefine
  428. RIL_PARAM_NDISIPCONFIG_IPV6_SUBNETMASK = $00000010; // @paramdefine
  429. RIL_PARAM_NDISIPCONFIG_IPV6_FLOWINFO = $00000020; // @paramdefine
  430. RIL_PARAM_NDISIPCONFIG_IPV6_SCOPEID = $00000040; // @paramdefine
  431. RIL_PARAM_NDISIPCONFIG_IPV6_ALL = $0000007f; // @paramdefine
  432. // -----------------------------------------------------------------------------
  433. //
  434. // @doc EXTERNAL
  435. //
  436. // @params RILNDISGPRSCONTEXT
  437. //
  438. // @comm None
  439. //
  440. // -----------------------------------------------------------------------------
  441. const
  442. RIL_PARAM_RILNDISGPRSCONTEXT_USERNAME = $00000001; // @paramdefine
  443. RIL_PARAM_RILNDISGPRSCONTEXT_PASSWORD = $00000002; // @paramdefine
  444. RIL_PARAM_RILNDISGPRSCONTEXT_DNS1 = $00000004; // @paramdefine
  445. RIL_PARAM_RILNDISGPRSCONTEXT_DNS2 = $00000008; // @paramdefine
  446. // -----------------------------------------------------------------------------
  447. //
  448. // @doc EXTERNAL
  449. //
  450. // @params RILNDISGPRSCONTEXTRESPONSE
  451. //
  452. // @comm None
  453. //
  454. // -----------------------------------------------------------------------------
  455. const
  456. RIL_PARAM_RILNDISGPRSCONTEXTRESPONSE_IPCONFIG = $00000001; // @paramdefine
  457. RIL_PARAM_RILNDISGPRSCONTEXTRESPONSE_FUNCTIONS = $00000002; // @paramdefine
  458. // -----------------------------------------------------------------------------
  459. //
  460. // @doc EXTERNAL
  461. //
  462. // @params RILNDISSTATUS
  463. //
  464. // @comm None
  465. //
  466. // -----------------------------------------------------------------------------
  467. const
  468. RIL_PARAM_RILNDISSTATUS_IPCONFIG = $00000001; // @paramdefine
  469. RIL_PARAM_RILNDISSTATUS_FLOWCONTROL = $00000002; // @paramdefine
  470. // -----------------------------------------------------------------------------
  471. //
  472. // @doc EXTERNAL
  473. //
  474. // @params RILADDRESS
  475. //
  476. // @comm None
  477. //
  478. // -----------------------------------------------------------------------------
  479. const
  480. RIL_PARAM_A_TYPE = $00000001; // @paramdefine
  481. RIL_PARAM_A_NUMPLAN = $00000002; // @paramdefine
  482. RIL_PARAM_A_ADDRESS = $00000004; // @paramdefine
  483. RIL_PARAM_A_ALL = $00000007; // @paramdefine
  484. // -----------------------------------------------------------------------------
  485. //
  486. // @doc EXTERNAL
  487. //
  488. // @params RILSUBADDRESS
  489. //
  490. // @comm None
  491. //
  492. // -----------------------------------------------------------------------------
  493. const
  494. RIL_PARAM_SA_TYPE = $00000001; // @paramdefine
  495. RIL_PARAM_SA_SUBADDRESS = $00000002; // @paramdefine
  496. RIL_PARAM_SA_ALL = $00000003; // @paramdefine
  497. // -----------------------------------------------------------------------------
  498. //
  499. // @doc EXTERNAL
  500. //
  501. // @params RILSERIALPORTSTATS
  502. //
  503. // @comm None
  504. //
  505. // -----------------------------------------------------------------------------
  506. const
  507. RIL_PARAM_SPS_READBITSPERSECOND = $00000001; // @paramdefine
  508. RIL_PARAM_SPS_WRITTENBITSPERSECOND = $00000002; // @paramdefine
  509. RIL_PARAM_SPS_ALL = $00000003; // @paramdefine
  510. // -----------------------------------------------------------------------------
  511. //
  512. // @doc EXTERNAL
  513. //
  514. // @params RILSUBSCRIBERINFO
  515. //
  516. // @comm None
  517. //
  518. // -----------------------------------------------------------------------------
  519. const
  520. RIL_PARAM_SI_ADDRESS = $00000001; // @paramdefine
  521. RIL_PARAM_SI_DESCRIPTION = $00000002; // @paramdefine
  522. RIL_PARAM_SI_SPEED = $00000004; // @paramdefine
  523. RIL_PARAM_SI_SERVICE = $00000008; // @paramdefine
  524. RIL_PARAM_SI_ITC = $00000010; // @paramdefine
  525. RIL_PARAM_SI_ADDRESSID = $00000020; // @paramdefine
  526. RIL_PARAM_SI_ALL = $0000003f; // @paramdefine
  527. // -----------------------------------------------------------------------------
  528. //
  529. // @doc EXTERNAL
  530. //
  531. // @params RILOPERATORNAMES
  532. //
  533. // @comm None
  534. //
  535. // -----------------------------------------------------------------------------
  536. const
  537. RIL_PARAM_ON_LONGNAME = $00000001; // @paramdefine
  538. RIL_PARAM_ON_SHORTNAME = $00000002; // @paramdefine
  539. RIL_PARAM_ON_NUMNAME = $00000004; // @paramdefine
  540. RIL_PARAM_ON_COUNTRY_CODE = $00000008; // @paramdefine
  541. RIL_PARAM_ON_GSM_ACT = $00000010; // @paramdefine
  542. RIL_PARAM_ON_GSMCOMPACT_ACT = $00000020; // @paramdefine
  543. RIL_PARAM_ON_UMTS_ACT = $00000040; // @paramdefine
  544. RIL_PARAM_ON_ALL = $0000007F; // @paramdefine
  545. // -----------------------------------------------------------------------------
  546. //
  547. // @doc EXTERNAL
  548. //
  549. // @params RILOPERATORINFO
  550. //
  551. // @comm None
  552. //
  553. // -----------------------------------------------------------------------------
  554. const
  555. RIL_PARAM_OI_INDEX = $00000001; // @paramdefine
  556. RIL_PARAM_OI_STATUS = $00000002; // @paramdefine
  557. RIL_PARAM_OI_NAMES = $00000004; // @paramdefine
  558. RIL_PARAM_OI_ALL = $00000007; // @paramdefine
  559. // -----------------------------------------------------------------------------
  560. //
  561. // @doc EXTERNAL
  562. //
  563. // @params RILCALLERIDSETTINGS
  564. //
  565. // @comm None
  566. //
  567. // -----------------------------------------------------------------------------
  568. const
  569. RIL_PARAM_CIDS_PROVISIONING = $00000001; // @paramdefine
  570. RIL_PARAM_CIDS_STATUS = $00000002; // @paramdefine
  571. RIL_PARAM_CIDS_ALL = $00000003; // @paramdefine
  572. // -----------------------------------------------------------------------------
  573. //
  574. // @doc EXTERNAL
  575. //
  576. // @params RILHIDEIDSETTINGS
  577. //
  578. // @comm None
  579. //
  580. // -----------------------------------------------------------------------------
  581. const
  582. RIL_PARAM_HIDS_STATUS = $00000001; // @paramdefine
  583. RIL_PARAM_HIDS_PROVISIONING = $00000002; // @paramdefine
  584. RIL_PARAM_HIDS_ALL = $00000003; // @paramdefine
  585. // -----------------------------------------------------------------------------
  586. //
  587. // @doc EXTERNAL
  588. //
  589. // @params RILDIALEDIDSETTINGS
  590. //
  591. // @comm None
  592. //
  593. // -----------------------------------------------------------------------------
  594. const
  595. RIL_PARAM_DIDS_PROVISIONING = $00000001; // @paramdefine
  596. RIL_PARAM_DIDS_STATUS = $00000002; // @paramdefine
  597. RIL_PARAM_DIDS_ALL = $00000003; // @paramdefine
  598. // -----------------------------------------------------------------------------
  599. //
  600. // @doc EXTERNAL
  601. //
  602. // @params RILHIDECONNECTEDIDSETTINGS
  603. //
  604. // @comm None
  605. //
  606. // -----------------------------------------------------------------------------
  607. const
  608. RIL_PARAM_HCIDS_PROVISIONING = $00000001; // @paramdefine
  609. RIL_PARAM_HCIDS_STATUS = $00000002; // @paramdefine
  610. RIL_PARAM_HCIDS_ALL = $00000003; // @paramdefine
  611. // -----------------------------------------------------------------------------
  612. //
  613. // @doc EXTERNAL
  614. //
  615. // @params RILCLOSEDGROUPSETTINGS
  616. //
  617. // @comm None
  618. //
  619. // -----------------------------------------------------------------------------
  620. const
  621. RIL_PARAM_CGS_STATUS = $00000001; // @paramdefine
  622. RIL_PARAM_CGS_INDEX = $00000002; // @paramdefine
  623. RIL_PARAM_CGS_INFO = $00000004; // @paramdefine
  624. RIL_PARAM_CGS_ALL = $00000007; // @paramdefine
  625. // -----------------------------------------------------------------------------
  626. //
  627. // @doc EXTERNAL
  628. //
  629. // @params RILCALLFORWARDINGSETTINGS
  630. //
  631. // @comm None
  632. //
  633. // -----------------------------------------------------------------------------
  634. const
  635. RIL_PARAM_CFS_STATUS = $00000001; // @paramdefine
  636. RIL_PARAM_CFS_INFOCLASSES = $00000002; // @paramdefine
  637. RIL_PARAM_CFS_ADDRESS = $00000004; // @paramdefine
  638. RIL_PARAM_CFS_SUBADDRESS = $00000008; // @paramdefine
  639. RIL_PARAM_CFS_DELAYTIME = $00000010; // @paramdefine
  640. RIL_PARAM_CFS_ALL = $0000001f; // @paramdefine
  641. // -----------------------------------------------------------------------------
  642. //
  643. // @doc EXTERNAL
  644. //
  645. // @params RILCALLINFO
  646. //
  647. // @comm None
  648. //
  649. // -----------------------------------------------------------------------------
  650. const
  651. RIL_PARAM_CI_ID = $00000001; // @paramdefine
  652. RIL_PARAM_CI_DIRECTION = $00000002; // @paramdefine
  653. RIL_PARAM_CI_STATUS = $00000004; // @paramdefine
  654. RIL_PARAM_CI_TYPE = $00000008; // @paramdefine
  655. RIL_PARAM_CI_MULTIPARTY = $00000010; // @paramdefine
  656. RIL_PARAM_CI_ADDRESS = $00000020; // @paramdefine
  657. RIL_PARAM_CI_DESCRIPTION = $00000040; // @paramdefine
  658. RIL_PARAM_CI_CPISTATUS = $00000080; // @paramdefine
  659. RIL_PARAM_CI_DISCONNECTCODE = $00000100; // @paramdefine
  660. //Note: RIL_PARAM_CI_STATUS and RIL_PARAM_CI_CPISTATUS are mutually exclusive
  661. // parameters because they define how the dwStatus variable is used.
  662. // Therefore, there is no RIL_PARAM_CI_ALL to avoid any ambiguity.
  663. // -----------------------------------------------------------------------------
  664. //
  665. // @doc EXTERNAL
  666. //
  667. // @params RILGAININFO
  668. //
  669. // @comm None
  670. //
  671. // -----------------------------------------------------------------------------
  672. const
  673. RIL_PARAM_GI_TXGAIN = $00000001; // @paramdefine
  674. RIL_PARAM_GI_RXGAIN = $00000002; // @paramdefine
  675. RIL_PARAM_GI_ALL = $00000003; // @paramdefine
  676. // -----------------------------------------------------------------------------
  677. //
  678. // @doc EXTERNAL
  679. //
  680. // @params RILAUDIODEVICEINFO
  681. //
  682. // @comm None
  683. //
  684. // -----------------------------------------------------------------------------
  685. const
  686. RIL_PARAM_ADI_TXDEVICE = $00000001; // @paramdefine
  687. RIL_PARAM_ADI_RXDEVICE = $00000002; // @paramdefine
  688. RIL_PARAM_ADI_ALL = $00000003; // @paramdefine
  689. // -----------------------------------------------------------------------------
  690. //
  691. // @doc EXTERNAL
  692. //
  693. // @params RILHSCSDINFO
  694. //
  695. // @comm None
  696. //
  697. // -----------------------------------------------------------------------------
  698. const
  699. RIL_PARAM_HSCSDI_TRANSPRXTIMESLOTS = $00000001; // @paramdefine
  700. RIL_PARAM_HSCSDI_TRANSPCHANNELCODINGS = $00000002; // @paramdefine
  701. RIL_PARAM_HSCSDI_NONTRANSPRXTIMESLOTS = $00000004; // @paramdefine
  702. RIL_PARAM_HSCSDI_NONTRANSPCHANNELCODINGS = $00000008; // @paramdefine
  703. RIL_PARAM_HSCSDI_AIRINTERFACEUSERRATE = $00000010; // @paramdefine
  704. RIL_PARAM_HSCSDI_RXTIMESLOTSLIMIT = $00000020; // @paramdefine
  705. RIL_PARAM_HSCSDI_AUTOSVCLEVELUPGRADING = $00000040; // @paramdefine
  706. RIL_PARAM_HSCSDI_ALL = $0000007f; // @paramdefine
  707. // -----------------------------------------------------------------------------
  708. //
  709. // @doc EXTERNAL
  710. //
  711. // @params RILCALLHSCSDINFO
  712. //
  713. // @comm None
  714. //
  715. // -----------------------------------------------------------------------------
  716. const
  717. RIL_PARAM_CHSCSDI_RXTIMESLOTS = $00000001; // @paramdefine
  718. RIL_PARAM_CHSCSDI_TXTIMESLOTS = $00000002; // @paramdefine
  719. RIL_PARAM_CHSCSDI_AIRINTERFACEUSERRATE = $00000004; // @paramdefine
  720. RIL_PARAM_CHSCSDI_CHANNELCODING = $00000008; // @paramdefine
  721. RIL_PARAM_CHSCSDI_ALL = $0000000f; // @paramdefine
  722. // -----------------------------------------------------------------------------
  723. //
  724. // @doc EXTERNAL
  725. //
  726. // @params RILDATACOMPINFO
  727. //
  728. // @comm None
  729. //
  730. // -----------------------------------------------------------------------------
  731. const
  732. RIL_PARAM_DCI_DIRECTION = $00000001; // @paramdefine
  733. RIL_PARAM_DCI_NEGOTIATION = $00000002; // @paramdefine
  734. RIL_PARAM_DCI_MAXDICTENTRIES = $00000004; // @paramdefine
  735. RIL_PARAM_DCI_MAXSTRING = $00000008; // @paramdefine
  736. RIL_PARAM_DCI_ALL = $0000000f; // @paramdefine
  737. // -----------------------------------------------------------------------------
  738. //
  739. // @doc EXTERNAL
  740. //
  741. // @params RILERRORCORRECTIONINFO
  742. //
  743. // @comm None
  744. //
  745. // -----------------------------------------------------------------------------
  746. const
  747. RIL_PARAM_ECI_ORIGINALREQUEST = $00000001; // @paramdefine
  748. RIL_PARAM_ECI_ORIGINALFALLBACK = $00000002; // @paramdefine
  749. RIL_PARAM_ECI_ANSWERERFALLBACK = $00000004; // @paramdefine
  750. RIL_PARAM_ECI_ALL = $00000007; // @paramdefine
  751. // -----------------------------------------------------------------------------
  752. //
  753. // @doc EXTERNAL
  754. //
  755. // @params RILBEARERSVCINFO
  756. //
  757. // @comm None
  758. //
  759. // -----------------------------------------------------------------------------
  760. const
  761. RIL_PARAM_BSI_SPEED = $00000001; // @paramdefine
  762. RIL_PARAM_BSI_SERVICENAME = $00000002; // @paramdefine
  763. RIL_PARAM_BSI_CONNECTIONELEMENT = $00000004; // @paramdefine
  764. RIL_PARAM_BSI_ALL = $00000007; // @paramdefine
  765. // -----------------------------------------------------------------------------
  766. //
  767. // @doc EXTERNAL
  768. //
  769. // @params RILRLPINFO
  770. //
  771. // @comm None
  772. //
  773. // -----------------------------------------------------------------------------
  774. const
  775. RIL_PARAM_RLPI_IWS = $00000001; // @paramdefine
  776. RIL_PARAM_RLPI_MWS = $00000002; // @paramdefine
  777. RIL_PARAM_RLPI_ACKTIMER = $00000004; // @paramdefine
  778. RIL_PARAM_RLPI_RETRANSMISSIONATTEMPTS = $00000008; // @paramdefine
  779. RIL_PARAM_RLPI_VERSION = $00000010; // @paramdefine
  780. RIL_PARAM_RPLI_RESEQUENCINGPERIOD = $00000020; // @paramdefine
  781. RIL_PARAM_RPLI_ALL = $0000003f; // @paramdefine
  782. // -----------------------------------------------------------------------------
  783. //
  784. // @doc EXTERNAL
  785. //
  786. // @params RILMSGSERVICEINFO
  787. //
  788. // @comm None
  789. //
  790. // -----------------------------------------------------------------------------
  791. const
  792. RIL_PARAM_MSI_SERVICE = $00000001; // @paramdefine
  793. RIL_PARAM_MSI_MSGCLASSES = $00000002; // @paramdefine
  794. RIL_PARAM_MSI_READLOCATION = $00000004; // @paramdefine
  795. RIL_PARAM_MSI_READUSED = $00000008; // @paramdefine
  796. RIL_PARAM_MSI_READTOTAL = $00000010; // @paramdefine
  797. RIL_PARAM_MSI_WRITELOCATION = $00000020; // @paramdefine
  798. RIL_PARAM_MSI_WRITEUSED = $00000040; // @paramdefine
  799. RIL_PARAM_MSI_WRITETOTAL = $00000080; // @paramdefine
  800. RIL_PARAM_MSI_STORELOCATION = $00000100; // @paramdefine
  801. RIL_PARAM_MSI_STOREUSED = $00000200; // @paramdefine
  802. RIL_PARAM_MSI_STORETOTAL = $00000400; // @paramdefine
  803. RIL_PARAM_MSI_ALL = $000007ff; // @paramdefine
  804. // -----------------------------------------------------------------------------
  805. //
  806. // @doc EXTERNAL
  807. //
  808. // @params RILMSGDCS
  809. //
  810. // @comm None
  811. //
  812. // -----------------------------------------------------------------------------
  813. const
  814. RIL_PARAM_MDCS_TYPE = $00000001; // @paramdefine
  815. RIL_PARAM_MDCS_FLAGS = $00000002; // @paramdefine
  816. RIL_PARAM_MDCS_MSGCLASS = $00000004; // @paramdefine
  817. RIL_PARAM_MDCS_ALPHABET = $00000008; // @paramdefine
  818. RIL_PARAM_MDCS_INDICATION = $00000010; // @paramdefine
  819. RIL_PARAM_MDCS_LANGUAGE = $00000020; // @paramdefine
  820. RIL_PARAM_MDCS_ALL = $0000003f; // @paramdefine
  821. // -----------------------------------------------------------------------------
  822. //
  823. // @doc EXTERNAL
  824. //
  825. // @params RILMSGCONFIG
  826. //
  827. // @comm None
  828. //
  829. // -----------------------------------------------------------------------------
  830. const
  831. RIL_PARAM_MC_SVCCTRADDRESS = $00000001; // @paramdefine
  832. RIL_PARAM_MC_ALL = $00000001; // @paramdefine
  833. // -----------------------------------------------------------------------------
  834. //
  835. // @doc EXTERNAL
  836. //
  837. // @params RILCBMSGCONFIG
  838. //
  839. // @comm None
  840. //
  841. // -----------------------------------------------------------------------------
  842. const
  843. RIL_PARAM_CBMC_BROADCASTMSGIDS = $00000001; // @paramdefine
  844. RIL_PARAM_CBMC_BROADCASTMSGLANGS = $00000002; // @paramdefine
  845. RIL_PARAM_CBMC_ACCEPTIDS = $00000004; // @paramdefine
  846. RIL_PARAM_CBMC_ALL = $00000007; // @paramdefine
  847. // -----------------------------------------------------------------------------
  848. //
  849. // @doc EXTERNAL
  850. //
  851. // @params RILMESSAGE
  852. //
  853. // @comm None
  854. //
  855. // -----------------------------------------------------------------------------
  856. { List of Unions Labeled
  857. GSM
  858. ID=RIL_MSGTYPE_IN_DELIVER
  859. ISt=RIL_MSGTYPE_IN_STATUS
  860. OS=RIL_MSGTYPE_OUT_SUBMIT
  861. OC=RIL_MSGTYPE_OUT_COMMAND
  862. OR=RIL_MSGTYPE_OUT_RAW
  863. BC=RIL_MSGTYPE_BC_GENERAL
  864. CDMA
  865. ID=RIL_MSGTYPE_IN_IS637DELIVER
  866. ISt=RIL_MSGTYPE_IN_IS637STATUS
  867. OS=RIL_MSGTYPE_OUT_IS637SUBMIT
  868. OSt=RIL_MSGTYPE_OUT_IS637STATUS
  869. }
  870. // -------This block is the GSM Params for RILMESSAGE (These values may have been recycled;
  871. // U = This value for the field has been reused in CDMA, and if the RILMESSAGE structure
  872. // is expanded, developer must careful not to use two recycled fields in the same union.)
  873. const
  874. RIL_PARAM_M_SVCCTRADDRESS = $00000001; // @paramdefine GSM=[ID,ISt,OS,OC,OR,BC] CDMA=[ID,ISt,OS,OSt]
  875. RIL_PARAM_M_TYPE = $00000002; // @paramdefine GSM=[ID,ISt,OS,OC,OR,BC] CDMA=[ID,ISt,OS,OSt]
  876. RIL_PARAM_M_FLAGS = $00000004; // @paramdefine GSM=[ID,ISt,OS,OC,OR,BC] CDMA=[ID,ISt,OS,OSt]
  877. RIL_PARAM_M_ORIGADDRESS = $00000008; // @paramdefine GSM=[ID] CDMA=[ID,ISt]
  878. RIL_PARAM_M_TGTRECIPADDRESS = $00000010; // @paramdefine U GSM=[ISt]
  879. RIL_PARAM_M_DESTADDRESS = $00000020; // @paramdefine GSM=[OS,OC] CDMA=[OSt,OS]
  880. RIL_PARAM_M_SCRECEIVETIME = $00000040; // @paramdefine GSM=[ID] CDMA=[ID,Ist]
  881. RIL_PARAM_M_TGTSCRECEIVETIME = $00000080; // @paramdefine U GSM=[ISt]
  882. RIL_PARAM_M_TGTDISCHARGETIME = $00000100; // @paramdefine U GSM=[ISt]
  883. RIL_PARAM_M_PROTOCOLID = $00000200; // @paramdefine U GSM=[ISt]
  884. RIL_PARAM_M_DATACODING = $00000800; // @paramdefine U GSM=[ID,ISt,OS,BC]
  885. RIL_PARAM_M_TGTDLVSTATUS = $00001000; // @paramdefine U GSM=[ISt]
  886. RIL_PARAM_M_TGTMSGREFERENCE = $00002000; // @paramdefine U GSM=[OC]
  887. RIL_PARAM_M_VPFORMAT = $00004000; // @paramdefine U GSM=[OS]
  888. RIL_PARAM_M_VP = $00008000; // @paramdefine U GSM=[OS]
  889. RIL_PARAM_M_COMMANDTYPE = $00010000; // @paramdefine U GSM=[OC]
  890. RIL_PARAM_M_GEOSCOPE = $00020000; // @paramdefine U GSM=[BC]
  891. RIL_PARAM_M_MSGCODE = $00040000; // @paramdefine U GSM=[BC]
  892. RIL_PARAM_M_UPDATENUMBER = $00080000; // @paramdefine U GSM=[BC]
  893. RIL_PARAM_M_ID = $00100000; // @paramdefine U GSM=[BC]
  894. RIL_PARAM_M_TOTALPAGES = $00200000; // @paramdefine U GSM=[BC]
  895. RIL_PARAM_M_PAGENUMBER = $00400000; // @paramdefine U GSM=[BC]
  896. RIL_PARAM_M_HDRLENGTH = $00800000; // @paramdefine U GSM=[ID,ISt,OS]
  897. RIL_PARAM_M_MSGLENGTH = $01000000; // @paramdefine GSM=[ID,ISt,OS,OR,BC] CDMA=[ID,ISt,OS,OSt]
  898. RIL_PARAM_M_CMDLENGTH = $02000000; // @paramdefine GSM=[OC]
  899. RIL_PARAM_M_HDR = $04000000; // @paramdefine GSM=[ID,ISt,OS]
  900. RIL_PARAM_M_MSG = $08000000; // @paramdefine GSM=[ID,ISt,OS,OR,BC] CDMA=[ID,ISt,OS,OSt]
  901. RIL_PARAM_M_CMD = $10000000; // @paramdefine U GSM=[OC]
  902. // CDMA Message parameter definitions
  903. const
  904. RIL_PARAM_M_MSGID = $20000000; // @paramdefine CDMA=[ID,ISt,OS,OSt]
  905. RIL_PARAM_M_ORIGSUBADDRESS = $40000000; // @paramdefine CDMA=[ID,ISt]
  906. RIL_PARAM_M_DESTSUBADDRESS = $80000000; // @paramdefine CDMA=[OS,OSt]
  907. RIL_PARAM_M_DIGIT = $00010000; // @paramdefine CDMA=[OS,OSt]
  908. RIL_PARAM_M_PRIVACY = $00000100; // @paramdefine CDMA=[ID,OS]
  909. RIL_PARAM_M_PRIORITY = $00000200; // @paramdefine CDMA=[ID,OS]
  910. RIL_PARAM_M_TELESERVICE = $00000400; // @paramdefine CDMA=[ID,OS]
  911. RIL_PARAM_M_LANG = $00000800; // @paramdefine CDMA=[ID,ISt,OS,OSt]
  912. RIL_PARAM_M_VALIDITYPERIODABS = $00001000; // @paramdefine CDMA=[ID,OS]
  913. RIL_PARAM_M_VALIDITYPERIODREL = $00002000; // @paramdefine CDMA=[OS]
  914. RIL_PARAM_M_DEFERREDDELTIMEABS = $00004000; // @paramdefine CDMA=[OS]
  915. RIL_PARAM_M_DEFERREDDELTIMEREL = $00008000; // @paramdefine CDMA=[OS]
  916. RIL_PARAM_M_ENCODING = $00020000; // @paramdefine CDMA=[ID,ISt,OS,OSt]
  917. RIL_PARAM_M_USERRESPONSECODE = $00040000; // @paramdefine CDMA=[ISt,OSt]
  918. RIL_PARAM_M_DISPLAYMODE = $00080000; // @paramdefine CDMA=[ID,OS]
  919. RIL_PARAM_M_CALLBACKNUM = $00000010; // @paramdefine CDMA=[ID,OS]
  920. RIL_PARAM_M_NUMMSGS = $00000080; // @paramdefine CDMA=[ID]
  921. RIL_PARAM_M_CAUSECODE = $00100000; // @paramdefine CDMA=[ISt]
  922. RIL_PARAM_M_REPLYSEQNUMBER = $00200000; // @paramdefine CDMA=[ISt,OSt]
  923. RIL_PARAM_M_BEARERREPLYACK = $00200000; // @paramdefine CDMA=[OS]
  924. RIL_PARAM_M_USERACK = $00400000; // @paramdefine CDMA=[ID,OS]
  925. RIL_PARAM_M_DELIVERYACK = $00800000; // @paramdefine CDMA=[OS]
  926. RIL_PARAM_M_MSGSTATUSTYPE = $10000000; // @paramdefine CDMA=[ISt]
  927. RIL_PARAM_M_ALL_IN_DELIVER = RIL_PARAM_M_TYPE or
  928. RIL_PARAM_M_FLAGS or
  929. RIL_PARAM_M_ORIGADDRESS or
  930. RIL_PARAM_M_PROTOCOLID or
  931. RIL_PARAM_M_DATACODING or
  932. RIL_PARAM_M_SCRECEIVETIME or
  933. RIL_PARAM_M_HDRLENGTH or
  934. RIL_PARAM_M_MSGLENGTH or
  935. RIL_PARAM_M_HDR or
  936. RIL_PARAM_M_MSG; // @paramdefine
  937. RIL_PARAM_M_ALL_IN_STATUS = RIL_PARAM_M_TYPE or
  938. RIL_PARAM_M_FLAGS or
  939. RIL_PARAM_M_TGTMSGREFERENCE or
  940. RIL_PARAM_M_TGTRECIPADDRESS or
  941. RIL_PARAM_M_TGTSCRECEIVETIME or
  942. RIL_PARAM_M_TGTDISCHARGETIME or
  943. RIL_PARAM_M_TGTDLVSTATUS or
  944. RIL_PARAM_M_PROTOCOLID or
  945. RIL_PARAM_M_DATACODING or
  946. RIL_PARAM_M_HDRLENGTH or
  947. RIL_PARAM_M_MSGLENGTH or
  948. RIL_PARAM_M_HDR or
  949. RIL_PARAM_M_MSG; // @paramdefine
  950. RIL_PARAM_M_ALL_OUT_SUBMIT = RIL_PARAM_M_TYPE or
  951. RIL_PARAM_M_FLAGS or
  952. RIL_PARAM_M_DESTADDRESS or
  953. RIL_PARAM_M_PROTOCOLID or
  954. RIL_PARAM_M_DATACODING or
  955. RIL_PARAM_M_VPFORMAT or
  956. RIL_PARAM_M_VP or
  957. RIL_PARAM_M_HDRLENGTH or
  958. RIL_PARAM_M_MSGLENGTH or
  959. RIL_PARAM_M_HDR or
  960. RIL_PARAM_M_MSG; // @paramdefine
  961. RIL_PARAM_M_ALL_OUT_COMMAND = RIL_PARAM_M_TYPE or
  962. RIL_PARAM_M_FLAGS or
  963. RIL_PARAM_M_PROTOCOLID or
  964. RIL_PARAM_M_COMMANDTYPE or
  965. RIL_PARAM_M_TGTMSGREFERENCE or
  966. RIL_PARAM_M_DESTADDRESS or
  967. RIL_PARAM_M_CMDLENGTH or
  968. RIL_PARAM_M_CMD; // @paramdefine
  969. RIL_PARAM_M_ALL_BC_GENERAL = RIL_PARAM_M_TYPE or
  970. RIL_PARAM_M_GEOSCOPE or
  971. RIL_PARAM_M_MSGCODE or
  972. RIL_PARAM_M_UPDATENUMBER or
  973. RIL_PARAM_M_ID or
  974. RIL_PARAM_M_DATACODING or
  975. RIL_PARAM_M_TOTALPAGES or
  976. RIL_PARAM_M_PAGENUMBER or
  977. RIL_PARAM_M_MSGLENGTH or
  978. RIL_PARAM_M_MSG; // @paramdefine
  979. RIL_PARAM_M_ALL_OUT_RAW = RIL_PARAM_M_TYPE or
  980. RIL_PARAM_M_FLAGS or
  981. RIL_PARAM_M_MSGLENGTH or
  982. RIL_PARAM_M_MSG; // @paramdefine
  983. RIL_PARAM_M_ALL_IN_IS637DELIVER = RIL_PARAM_M_TYPE or
  984. RIL_PARAM_M_MSGID or
  985. RIL_PARAM_M_TELESERVICE or
  986. RIL_PARAM_M_DISPLAYMODE or
  987. RIL_PARAM_M_USERACK or
  988. RIL_PARAM_M_ORIGADDRESS or
  989. RIL_PARAM_M_ORIGSUBADDRESS or
  990. RIL_PARAM_M_SCRECEIVETIME or
  991. RIL_PARAM_M_PRIORITY or
  992. RIL_PARAM_M_PRIVACY or
  993. RIL_PARAM_M_CALLBACKNUM or
  994. RIL_PARAM_M_NUMMSGS or
  995. RIL_PARAM_M_VALIDITYPERIODABS or
  996. RIL_PARAM_M_LANG or
  997. RIL_PARAM_M_ENCODING or
  998. RIL_PARAM_M_MSGLENGTH or
  999. RIL_PARAM_M_MSG; // @paramdefine
  1000. RIL_PARAM_M_ALL_OUT_IS637SUBMIT = RIL_PARAM_M_TYPE or
  1001. RIL_PARAM_M_MSGID or
  1002. RIL_PARAM_M_TELESERVICE or
  1003. RIL_PARAM_M_DISPLAYMODE or
  1004. RIL_PARAM_M_DESTADDRESS or
  1005. RIL_PARAM_M_DESTSUBADDRESS or
  1006. RIL_PARAM_M_DIGIT or
  1007. RIL_PARAM_M_BEARERREPLYACK or
  1008. RIL_PARAM_M_PRIORITY or
  1009. RIL_PARAM_M_PRIVACY or
  1010. RIL_PARAM_M_CALLBACKNUM or
  1011. RIL_PARAM_M_USERACK or
  1012. RIL_PARAM_M_DELIVERYACK or
  1013. RIL_PARAM_M_VALIDITYPERIODABS or
  1014. RIL_PARAM_M_VALIDITYPERIODREL or
  1015. RIL_PARAM_M_DEFERREDDELTIMEABS or
  1016. RIL_PARAM_M_DEFERREDDELTIMEREL or
  1017. RIL_PARAM_M_LANG or
  1018. RIL_PARAM_M_ENCODING or
  1019. RIL_PARAM_M_MSGLENGTH or
  1020. RIL_PARAM_M_MSG; // @paramdefine
  1021. RIL_PARAM_M_ALL_IN_IS637STATUS = RIL_PARAM_M_TYPE or
  1022. RIL_PARAM_M_MSGID or
  1023. RIL_PARAM_M_ORIGADDRESS or
  1024. RIL_PARAM_M_ORIGSUBADDRESS or
  1025. RIL_PARAM_M_SCRECEIVETIME or
  1026. RIL_PARAM_M_CAUSECODE or
  1027. RIL_PARAM_M_REPLYSEQNUMBER or
  1028. RIL_PARAM_M_LANG or
  1029. RIL_PARAM_M_ENCODING or
  1030. RIL_PARAM_M_MSGLENGTH or
  1031. RIL_PARAM_M_MSG or
  1032. RIL_PARAM_M_USERRESPONSECODE or
  1033. RIL_PARAM_M_MSGSTATUSTYPE; // @paramdefine
  1034. RIL_PARAM_M_ALL_OUT_IS637STATUS = RIL_PARAM_M_TYPE or
  1035. RIL_PARAM_M_MSGID or
  1036. RIL_PARAM_M_DESTADDRESS or
  1037. RIL_PARAM_M_DESTSUBADDRESS or
  1038. RIL_PARAM_M_REPLYSEQNUMBER or
  1039. RIL_PARAM_M_LANG or
  1040. RIL_PARAM_M_ENCODING or
  1041. RIL_PARAM_M_MSGLENGTH or
  1042. RIL_PARAM_M_MSG or
  1043. RIL_PARAM_M_USERRESPONSECODE or
  1044. RIL_PARAM_M_DIGIT; // @paramdefine
  1045. // -----------------------------------------------------------------------------
  1046. //
  1047. // @doc EXTERNAL
  1048. //
  1049. // @params RILMESSAGE_IN_SIM
  1050. //
  1051. // @comm None
  1052. //
  1053. // -----------------------------------------------------------------------------
  1054. const
  1055. RIL_PARAM_MIS_LOCATION = $00000001; // @paramdefine
  1056. RIL_PARAM_MIS_INDEX = $00000002; // @paramdefine
  1057. // -----------------------------------------------------------------------------
  1058. //
  1059. // @doc EXTERNAL
  1060. //
  1061. // @params RILMESSAGEINFO
  1062. //
  1063. // @comm None
  1064. //
  1065. // -----------------------------------------------------------------------------
  1066. const
  1067. RIL_PARAM_MI_INDEX = $00000001; // @paramdefine
  1068. RIL_PARAM_MI_STATUS = $00000002; // @paramdefine
  1069. RIL_PARAM_MI_MESSAGE = $00000004; // @paramdefine
  1070. // -----------------------------------------------------------------------------
  1071. //
  1072. // @doc EXTERNAL
  1073. //
  1074. // @params RILEQUIPMENTINFO
  1075. //
  1076. // @comm None
  1077. //
  1078. // -----------------------------------------------------------------------------
  1079. const
  1080. RIL_PARAM_EI_MANUFACTURER = $00000001; // @paramdefine
  1081. RIL_PARAM_EI_MODEL = $00000002; // @paramdefine
  1082. RIL_PARAM_EI_REVISION = $00000004; // @paramdefine
  1083. RIL_PARAM_EI_SERIALNUMBER = $00000008; // @paramdefine
  1084. RIL_PARAM_EI_ALL = $0000000f; // @paramdefine
  1085. // -----------------------------------------------------------------------------
  1086. //
  1087. // @doc EXTERNAL
  1088. //
  1089. // @params RILPHONEBOOKINFO
  1090. //
  1091. // @comm None
  1092. //
  1093. // -----------------------------------------------------------------------------
  1094. const
  1095. RIL_PARAM_PBI_STORELOCATION = $00000001; // @paramdefine
  1096. RIL_PARAM_PBI_USED = $00000002; // @paramdefine
  1097. RIL_PARAM_PBI_TOTAL = $00000004; // @paramdefine
  1098. RIL_PARAM_PBI_ALL = $00000007; // @paramdefine
  1099. // -----------------------------------------------------------------------------
  1100. //
  1101. // @doc EXTERNAL
  1102. //
  1103. // @params RILPHONEBOOKENTRY
  1104. //
  1105. // @comm None
  1106. //
  1107. // -----------------------------------------------------------------------------
  1108. const
  1109. RIL_PARAM_PBE_INDEX = $00000001; // @paramdefine
  1110. RIL_PARAM_PBE_ADDRESS = $00000002; // @paramdefine
  1111. RIL_PARAM_PBE_TEXT = $00000004; // @paramdefine
  1112. RIL_PARAM_PBE_ALL = $00000007; // @paramdefine
  1113. // -----------------------------------------------------------------------------
  1114. //
  1115. // @doc EXTERNAL
  1116. //
  1117. // @params RILATRINFO
  1118. //
  1119. // @comm None
  1120. //
  1121. // -----------------------------------------------------------------------------
  1122. const
  1123. RIL_PARAM_ATR_PHASE = $00000001; // @paramdefine
  1124. RIL_PARAM_ATR_SIZE = $00000002; // @paramdefine
  1125. RIL_PARAM_ATR_ATR = $00000004; // @paramdefine
  1126. RIL_PARAM_ATR_ALL = $00000007; // @paramdefine
  1127. // -----------------------------------------------------------------------------
  1128. //
  1129. // @doc EXTERNAL
  1130. //
  1131. // @params RILSIMTOOLKITNOTIFYCAPS
  1132. //
  1133. // @comm Parameters for LPRILSIMTOOLKITNOTIFYCAPS -> dwParams
  1134. //
  1135. // -----------------------------------------------------------------------------
  1136. const
  1137. RIL_PARAM_SIMTKN_REFRESH = $00000001; // @paramdefine
  1138. RIL_PARAM_SIMTKN_MORETIME = $00000002; // @paramdefine
  1139. RIL_PARAM_SIMTKN_POLLINTERVAL = $00000004; // @paramdefine
  1140. RIL_PARAM_SIMTKN_POLLINGOFF = $00000008; // @paramdefine
  1141. RIL_PARAM_SIMTKN_SETUPCALL = $00000010; // @paramdefine
  1142. RIL_PARAM_SIMTKN_SENDSS = $00000020; // @paramdefine
  1143. RIL_PARAM_SIMTKN_SENDSMS = $00000040; // @paramdefine
  1144. RIL_PARAM_SIMTKN_PLAYTONE = $00000080; // @paramdefine
  1145. RIL_PARAM_SIMTKN_DISPLAYTEXT = $00000100; // @paramdefine
  1146. RIL_PARAM_SIMTKN_GETINKEY = $00000200; // @paramdefine
  1147. RIL_PARAM_SIMTKN_GETINPUT = $00000400; // @paramdefine
  1148. RIL_PARAM_SIMTKN_SELECTITEM = $00000800; // @paramdefine
  1149. RIL_PARAM_SIMTKN_SETUPMENU = $00001000; // @paramdefine
  1150. RIL_PARAM_SIMTKN_LOCALINFO = $00002000; // @paramdefine
  1151. RIL_PARAM_SIMTKN_NOTIFYFLAGS = $00004000; // @paramdefine
  1152. RIL_PARAM_SIMTKN_SENDUSSD = $00008000; // @paramdefine
  1153. RIL_PARAM_SIMTKN_SETUPIDLEMODETEXT = $00010000; // @paramdefine
  1154. RIL_PARAM_SIMTKN_SETUPEVENTLIST = $00020000; // @paramdefine
  1155. RIL_PARAM_SIMTKN_SENDDTMF = $00040000; // @paramdefine
  1156. RIL_PARAM_SIMTKN_LAUNCHBROWSER = $00080000; // @paramdefine
  1157. RIL_PARAM_SIMTKN_OPENCHANNEL = $00100000; // @paramdefine
  1158. RIL_PARAM_SIMTKN_CLOSECHANNEL = $00200000; // @paramdefine
  1159. RIL_PARAM_SIMTKN_RECEIVEDATA = $00400000; // @paramdefine
  1160. RIL_PARAM_SIMTKN_SENDDATA = $00800000; // @paramdefine
  1161. RIL_PARAM_SIMTKN_TIMERMANAGEMENT = $01000000; // @paramdefine
  1162. RIL_PARAM_SIMTKN_EVENTS = $02000000; // @paramdefine
  1163. RIL_PARAM_SIMTKN_RUNATCMD = $04000000; // @paramdefine
  1164. RIL_PARAM_SIMTKN_ALL = $07ffffff; // @paramdefine
  1165. // -----------------------------------------------------------------------------
  1166. //
  1167. // @doc EXTERNAL
  1168. //
  1169. // @params RILSIMTOOLKITEVENTCAPS
  1170. //
  1171. // @comm Parameters for LPRILSIMTOOLKITEVENTCAPS -> dwParams
  1172. //
  1173. // -----------------------------------------------------------------------------
  1174. const
  1175. RIL_PARAM_SIMTKE_MTCALL = $00000001; // @paramdefine
  1176. RIL_PARAM_SIMTKE_CALLCONNECTED = $00000002; // @paramdefine
  1177. RIL_PARAM_SIMTKE_CALLDISCONNECTED = $00000004; // @paramdefine
  1178. RIL_PARAM_SIMTKE_LOCATIONSTATUS = $00000008; // @paramdefine
  1179. RIL_PARAM_SIMTKE_USERACTIVITY = $00000010; // @paramdefine
  1180. RIL_PARAM_SIMTKE_IDLESCREEN = $00000020; // @paramdefine
  1181. RIL_PARAM_SIMTKE_LANGUAGESELECTION = $00000040; // @paramdefine
  1182. RIL_PARAM_SIMTKE_BROWSERTERMINATION = $00000080; // @paramdefine
  1183. RIL_PARAM_SIMTKE_DATAAVAILABLE = $00000100; // @paramdefine
  1184. RIL_PARAM_SIMTKE_CHANNELSTATUS = $00000200; // @paramdefine
  1185. RIL_PARAM_SIMTKE_DISPLAYCHANGE = $00000400; // @paramdefine
  1186. RIL_PARAM_SIMTKE_ALL = $000007FF; // @paramdefine
  1187. // -----------------------------------------------------------------------------
  1188. //
  1189. // @doc EXTERNAL
  1190. //
  1191. // @params RILSIMTOOLKITCMD
  1192. //
  1193. // @comm None
  1194. //
  1195. // -----------------------------------------------------------------------------
  1196. const
  1197. RIL_PARAM_SIMTKIT_CMD_ID = $00000001; // @paramdefine
  1198. RIL_PARAM_SIMTKIT_CMD_TAG = $00000002; // @paramdefine
  1199. RIL_PARAM_SIMTKIT_CMD_TYPE = $00000004; // @paramdefine
  1200. RIL_PARAM_SIMTKIT_CMD_QUALIFIER = $00000008; // @paramdefine
  1201. RIL_PARAM_SIMTKIT_CMD_ERROR = $00000010; // @paramdefine
  1202. RIL_PARAM_SIMTKIT_CMD_DETAILS_OFFSET = $00000020; // @paramdefine
  1203. RIL_PARAM_SIMTKIT_CMD_DETAILS_SIZE = $00000040; // @paramdefine
  1204. RIL_PARAM_SIMTKIT_CMD_ALL = $0000007F; // @paramdefine
  1205. // -----------------------------------------------------------------------------
  1206. //
  1207. // @doc EXTERNAL
  1208. //
  1209. // @params RILSIMTOOLKITRSP
  1210. //
  1211. // @comm None
  1212. //
  1213. // -----------------------------------------------------------------------------
  1214. const
  1215. RIL_PARAM_SIMTKIT_RSP_ID = $00000001; // @paramdefine
  1216. RIL_PARAM_SIMTKIT_RSP_TAG = $00000002; // @paramdefine
  1217. RIL_PARAM_SIMTKIT_RSP_TYPE = $00000004; // @paramdefine
  1218. RIL_PARAM_SIMTKIT_RSP_QUALIFIER = $00000008; // @paramdefine
  1219. RIL_PARAM_SIMTKIT_RSP_RESPONSE = $00000010; // @paramdefine
  1220. RIL_PARAM_SIMTKIT_RSP_ADDITIONALINFO = $00000020; // @paramdefine
  1221. RIL_PARAM_SIMTKIT_RSP_ALL = $0000003F; // @paramdefine
  1222. // -----------------------------------------------------------------------------
  1223. //
  1224. // @doc EXTERNAL
  1225. //
  1226. // @params RILSIMCMDPARAMETERS
  1227. //
  1228. // @comm None
  1229. //
  1230. // -----------------------------------------------------------------------------
  1231. const
  1232. RIL_PARAM_SCP_FILEID = $00000001; // @paramdefine
  1233. RIL_PARAM_SCP_PARAM1 = $00000002; // @paramdefine
  1234. RIL_PARAM_SCP_PARAM2 = $00000004; // @paramdefine
  1235. RIL_PARAM_SCP_PARAM3 = $00000008; // @paramdefine
  1236. RIL_PARAM_SCP_ALL = $0000000f; // @paramdefine
  1237. // -----------------------------------------------------------------------------
  1238. //
  1239. // @doc EXTERNAL
  1240. //
  1241. // @params RILSIMRESPONSE
  1242. //
  1243. // @comm None
  1244. //
  1245. // -----------------------------------------------------------------------------
  1246. const
  1247. RIL_PARAM_SR_STATUSWORD1 = $00000001; // @paramdefine
  1248. RIL_PARAM_SR_STATUSWORD2 = $00000002; // @paramdefine
  1249. RIL_PARAM_SR_RESPONSE = $00000004; // @paramdefine
  1250. RIL_PARAM_SR_ALL = $00000007; // @paramdefine
  1251. // -----------------------------------------------------------------------------
  1252. //
  1253. // @doc EXTERNAL
  1254. //
  1255. // @params RILSIMRECORDSTATUS
  1256. //
  1257. // @comm None
  1258. //
  1259. // -----------------------------------------------------------------------------
  1260. const
  1261. RIL_PARAM_SRS_RECORDTYPE = $00000001; // @paramdefine
  1262. RIL_PARAM_SRS_ITEMCOUNT = $00000002; // @paramdefine
  1263. RIL_PARAM_SRS_SIZE = $00000004; // @paramdefine
  1264. RIL_PARAM_SRS_ALL = $00000007; // @paramdefine
  1265. // -----------------------------------------------------------------------------
  1266. //
  1267. // @doc EXTERNAL
  1268. //
  1269. // @params RILCOSTINFO
  1270. //
  1271. // @comm None
  1272. //
  1273. // -----------------------------------------------------------------------------
  1274. const
  1275. RIL_PARAM_CSTI_CCM = $00000001; // @paramdefine
  1276. RIL_PARAM_CSTI_ACM = $00000002; // @paramdefine
  1277. RIL_PARAM_CSTI_MAXACM = $00000004; // @paramdefine
  1278. RIL_PARAM_CSTI_COSTPERUNIT = $00000008; // @paramdefine
  1279. RIL_PARAM_CSTI_CURRENCY = $00000010; // @paramdefine
  1280. RIL_PARAM_CSTI_ALL = $0000001f; // @paramdefine
  1281. // -----------------------------------------------------------------------------
  1282. //
  1283. // @doc EXTERNAL
  1284. //
  1285. // @params RILSIGNALQUALITY
  1286. //
  1287. // @comm None
  1288. //
  1289. // -----------------------------------------------------------------------------
  1290. const
  1291. RIL_PARAM_SQ_SIGNALSTRENGTH = $00000001; // @paramdefine
  1292. RIL_PARAM_SQ_MINSIGNALSTRENGTH = $00000002; // @paramdefine
  1293. RIL_PARAM_SQ_MAXSIGNALSTRENGTH = $00000004; // @paramdefine
  1294. RIL_PARAM_SQ_BITERRORRATE = $00000008; // @paramdefine
  1295. RIL_PARAM_SQ_LOWSIGNALSTRENGTH = $00000010; // @paramdefine
  1296. RIL_PARAM_SQ_HIGHSIGNALSTRENGTH = $00000020; // @paramdefine
  1297. RIL_PARAM_SQ_ALL = $0000003f; // @paramdefine
  1298. // -----------------------------------------------------------------------------
  1299. //
  1300. // @doc EXTERNAL
  1301. //
  1302. // @params RILCELLTOWERINFO
  1303. //
  1304. // @comm None
  1305. //
  1306. // -----------------------------------------------------------------------------
  1307. const
  1308. RIL_PARAM_CTI_MOBILECOUNTRYCODE = $00000001; // @paramdefine
  1309. RIL_PARAM_CTI_MOBILENETWORKCODE = $00000002; // @paramdefine
  1310. RIL_PARAM_CTI_LOCATIONAREACODE = $00000004; // @paramdefine
  1311. RIL_PARAM_CTI_CELLID = $00000008; // @paramdefine
  1312. RIL_PARAM_CTI_BASESTATIONID = $00000010; // @paramdefine
  1313. RIL_PARAM_CTI_BROADCASTCONTROLCHANNEL = $00000020; // @paramdefine
  1314. RIL_PARAM_CTI_RXLEVEL = $00000040; // @paramdefine
  1315. RIL_PARAM_CTI_RXLEVELFULL = $00000080; // @paramdefine
  1316. RIL_PARAM_CTI_RXLEVELSUB = $00000100; // @paramdefine
  1317. RIL_PARAM_CTI_RXQUALITY = $00000200; // @paramdefine
  1318. RIL_PARAM_CTI_RXQUALITYFULL = $00000400; // @paramdefine
  1319. RIL_PARAM_CTI_RXQUALITYSUB = $00000800; // @paramdefine
  1320. RIL_PARAM_CTI_IDLETIMESLOT = $00001000; // @paramdefine
  1321. RIL_PARAM_CTI_TIMINGADVANCE = $00002000; // @paramdefine
  1322. RIL_PARAM_CTI_GPRSCELLID = $00004000; // @paramdefine
  1323. RIL_PARAM_CTI_GPRSBASESTATIONID = $00008000; // @paramdefine
  1324. RIL_PARAM_CTI_NUMBCCH = $00010000; // @paramdefine
  1325. RIL_PARAM_CTI_NMR = $00020000; // @paramdefine
  1326. RIL_PARAM_CTI_BCCH = $00040000; // @paramdefine
  1327. RIL_PARAM_CTI_ALL = $0007ffff; // @paramdefine
  1328. // -----------------------------------------------------------------------------
  1329. //
  1330. // @doc EXTERNAL
  1331. //
  1332. // @params RILEQUIPMENTSTATE
  1333. //
  1334. // @comm None
  1335. //
  1336. // -----------------------------------------------------------------------------
  1337. const
  1338. RIL_PARAM_EQUIPMENTSTATE_RADIOSUPPORT = $00000001; // @paramdefine
  1339. RIL_PARAM_EQUIPMENTSTATE_EQSTATE = $00000002; // @paramdefine
  1340. RIL_PARAM_EQUIPMENTSTATE_READYSTATE = $00000004; // @paramdefine
  1341. RIL_PARAM_EQUIPMENTSTATE_ALL = $00000007; // @paramdefine
  1342. // -----------------------------------------------------------------------------
  1343. //
  1344. // @doc EXTERNAL
  1345. //
  1346. // @params RILREMOTEPARTYINFO
  1347. //
  1348. // @comm None
  1349. //
  1350. // -----------------------------------------------------------------------------
  1351. const
  1352. RIL_PARAM_RPI_ADDRESS = $00000001; // @paramdefine
  1353. RIL_PARAM_RPI_SUBADDRESS = $00000002; // @paramdefine
  1354. RIL_PARAM_RPI_DESCRIPTION = $00000004; // @paramdefine
  1355. RIL_PARAM_RPI_VALIDITY = $00000008; // @paramdefine
  1356. RIL_PARAM_RPI_ALL = $0000000f; // @paramdefine
  1357. // -----------------------------------------------------------------------------
  1358. //
  1359. // @doc EXTERNAL
  1360. //
  1361. // @params RILCALLWAITINGINFO
  1362. //
  1363. // @comm None
  1364. //
  1365. // -----------------------------------------------------------------------------
  1366. const
  1367. RIL_PARAM_CWI_CALLTYPE = $00000001; // @paramdefine
  1368. RIL_PARAM_CWI_CALLERINFO = $00000002; // @paramdefine
  1369. RIL_PARAM_CWI_ADDRESSID = $00000004; // @paramdefine
  1370. RIL_PARAM_CWI_ALL = $00000007; // @paramdefine
  1371. // -----------------------------------------------------------------------------
  1372. //
  1373. // @doc EXTERNAL
  1374. //
  1375. // @params RILINTERMEDIATESSINFO
  1376. //
  1377. // @comm None
  1378. //
  1379. // -----------------------------------------------------------------------------
  1380. const
  1381. RIL_PARAM_INTSS_NOTIFICATIONCODE = $00000001; // @paramdefine
  1382. RIL_PARAM_INTSS_CUGINDEX = $00000002; // @paramdefine
  1383. RIL_PARAM_INTSS_ALL = $00000003; // @paramdefine
  1384. // -----------------------------------------------------------------------------
  1385. //
  1386. // @doc EXTERNAL
  1387. //
  1388. // @params RILUNSOLICITEDSSINFO
  1389. //
  1390. // @comm None
  1391. //
  1392. // -----------------------------------------------------------------------------
  1393. const
  1394. RIL_PARAM_UNSSS_NOTIFICATIONCODE = $00000001; // @paramdefine
  1395. RIL_PARAM_UNSSS_CUGINDEX = $00000002; // @paramdefine
  1396. RIL_PARAM_UNSSS_ADDRESS = $00000004; // @paramdefine
  1397. RIL_PARAM_UNSSS_SUBADDR = $00000008; // @paramdefine
  1398. RIL_PARAM_UNSSS_ALL = $0000000f; // @paramdefine
  1399. // -----------------------------------------------------------------------------
  1400. //
  1401. // @doc EXTERNAL
  1402. //
  1403. // @params RILRINGINFO
  1404. //
  1405. // @comm None
  1406. //
  1407. // -----------------------------------------------------------------------------
  1408. const
  1409. RIL_PARAM_RI_CALLTYPE = $00000001; // @paramdefine
  1410. RIL_PARAM_RI_SERVICEINFO = $00000002; // @paramdefine
  1411. RIL_PARAM_RI_ADDRESSID = $00000004; // @paramdefine
  1412. RIL_PARAM_RI_ALL = $00000007; // @paramdefine
  1413. // -----------------------------------------------------------------------------
  1414. //
  1415. // @doc EXTERNAL
  1416. //
  1417. // @params RILDIALINFO
  1418. //
  1419. // @comm None
  1420. //
  1421. // -----------------------------------------------------------------------------
  1422. const
  1423. RIL_PARAM_DI_CMDID = $00000001; // @paramdefine
  1424. RIL_PARAM_DI_CALLID = $00000002; // @paramdefine
  1425. RIL_PARAM_DI_ALL = $00000003; // @paramdefine
  1426. // -----------------------------------------------------------------------------
  1427. //
  1428. // @doc EXTERNAL
  1429. //
  1430. // @params RILCONNECTINFO
  1431. //
  1432. // @comm None
  1433. //
  1434. // -----------------------------------------------------------------------------
  1435. const
  1436. RIL_PARAM_CNI_CALLTYPE = $00000001; // @paramdefine
  1437. RIL_PARAM_CNI_BAUDRATE = $00000002; // @paramdefine
  1438. RIL_PARAM_CNI_ALL = $00000003; // @paramdefine
  1439. // -----------------------------------------------------------------------------
  1440. //
  1441. // @doc EXTERNAL
  1442. //
  1443. // @params RILSERVICEINFO
  1444. //
  1445. // @comm None
  1446. //
  1447. // -----------------------------------------------------------------------------
  1448. const
  1449. RIL_PARAM_SVCI_SYNCHRONOUS = $00000001; // @paramdefine
  1450. RIL_PARAM_SVCI_TRANSPARENT = $00000002; // @paramdefine
  1451. RIL_PARAM_SVCI_ALL = $00000003; // @paramdefine
  1452. // -----------------------------------------------------------------------------
  1453. //
  1454. // @doc EXTERNAL
  1455. //
  1456. // @params RILMSGSTORAGEINFO
  1457. //
  1458. // @comm None
  1459. //
  1460. // -----------------------------------------------------------------------------
  1461. const
  1462. RIL_PARAM_MSTI_READLOCATION = $00000001; // @paramdefine
  1463. RIL_PARAM_MSTI_WRITELOCATION = $00000002; // @paramdefine
  1464. RIL_PARAM_MSTI_STORELOCATION = $00000004; // @paramdefine
  1465. RIL_PARAM_MSTI_ALL = $00000007; // @paramdefine
  1466. // -----------------------------------------------------------------------------
  1467. //
  1468. // @doc EXTERNAL
  1469. //
  1470. // @params RILSUPSERVICEDATA
  1471. //
  1472. // @comm None
  1473. //
  1474. // -----------------------------------------------------------------------------
  1475. const
  1476. RIL_PARAM_SSDI_STATUS = $00000001; // @paramdefine
  1477. RIL_PARAM_SSDI_DATA = $00000002; // @paramdefine
  1478. // -----------------------------------------------------------------------------
  1479. //
  1480. // @doc EXTERNAL
  1481. //
  1482. // @params RILCAPSDIAL
  1483. //
  1484. // @comm None
  1485. //
  1486. // -----------------------------------------------------------------------------
  1487. const
  1488. RIL_PARAM_CD_CALLTYPES = $00000001; // @paramdefine
  1489. RIL_PARAM_CD_OPTIONS = $00000002; // @paramdefine
  1490. RIL_PARAM_CD_ALL = $00000003; // @paramdefine
  1491. // -----------------------------------------------------------------------------
  1492. //
  1493. // @doc EXTERNAL
  1494. //
  1495. // @params RILCAPSBEARERSVC
  1496. //
  1497. // @comm None
  1498. //
  1499. // -----------------------------------------------------------------------------
  1500. const
  1501. RIL_PARAM_CBS_SPEEDS1 = $00000001; // @paramdefine
  1502. RIL_PARAM_CBS_SPEEDS2 = $00000002; // @paramdefine
  1503. RIL_PARAM_CBS_SERVICENAMES = $00000004; // @paramdefine
  1504. RIL_PARAM_CBS_CONNECTIONELEMENTS = $00000008; // @paramdefine
  1505. RIL_PARAM_CBS_ALL = $0000000f; // @paramdefine
  1506. // -----------------------------------------------------------------------------
  1507. //
  1508. // @doc EXTERNAL
  1509. //
  1510. // @params RILCAPSRLP
  1511. //
  1512. // @comm None
  1513. //
  1514. // -----------------------------------------------------------------------------
  1515. const
  1516. RIL_PARAM_CRLP_VERSION = $00000001; // @paramdefine
  1517. RIL_PARAM_CRLP_IWSRANGE = $00000002; // @paramdefine
  1518. RIL_PARAM_CRLP_MWSRANGE = $00000004; // @paramdefine
  1519. RIL_PARAM_CRLP_ACKTIMERRANGE = $00000008; // @paramdefine
  1520. RIL_PARAM_CRLP_RETRANSMISSIONATTSRANGE = $00000010; // @paramdefine
  1521. RIL_PARAM_CRLP_RESEQPERIODRANGE = $00000020; // @paramdefine
  1522. RIL_PARAM_CRLP_ALL = $0000003f; // @paramdefine
  1523. // -----------------------------------------------------------------------------
  1524. //
  1525. // @doc EXTERNAL
  1526. //
  1527. // @params RILCAPSMSGMEMORYLOCATIONS
  1528. //
  1529. // @comm None
  1530. //
  1531. // -----------------------------------------------------------------------------
  1532. const
  1533. RIL_PARAM_CMML_READLOCATIONS = $00000001; // @paramdefine
  1534. RIL_PARAM_CMML_WRITELOCATIONS = $00000002; // @paramdefine
  1535. RIL_PARAM_CMML_STORELOCATIONS = $00000004; // @paramdefine
  1536. RIL_PARAM_CMML_ALL = $00000007; // @paramdefine
  1537. // -----------------------------------------------------------------------------
  1538. //
  1539. // @doc EXTERNAL
  1540. //
  1541. // @params RILCAPSLOCKINGPWDLENGTH
  1542. //
  1543. // @comm None
  1544. //
  1545. // -----------------------------------------------------------------------------
  1546. const
  1547. RIL_PARAM_CLPL_FACILITY = $00000001; // @paramdefine
  1548. RIL_PARAM_CLPL_PASSWORDLENGTH = $00000002; // @paramdefine
  1549. RIL_PARAM_CLPL_ALL = $00000003; // @paramdefine
  1550. // -----------------------------------------------------------------------------
  1551. //
  1552. // @doc EXTERNAL
  1553. //
  1554. // @params RILCAPSBARRINGPWDLENGTH
  1555. //
  1556. // @comm None
  1557. //
  1558. // -----------------------------------------------------------------------------
  1559. const
  1560. RIL_PARAM_CBPL_TYPE = $00000001; // @paramdefine
  1561. RIL_PARAM_CBPL_PASSWORDLENGTH = $00000002; // @paramdefine
  1562. RIL_PARAM_CBPL_ALL = $00000003; // @paramdefine
  1563. // -----------------------------------------------------------------------------
  1564. //
  1565. // @doc EXTERNAL
  1566. //
  1567. // @params RILCAPSDATACOMPRESSION
  1568. //
  1569. // @comm None
  1570. //
  1571. // -----------------------------------------------------------------------------
  1572. const
  1573. RIL_PARAM_CDC_DIRECTION = $00000001; // @paramdefine
  1574. RIL_PARAM_CDC_NEGOTIATION = $00000002; // @paramdefine
  1575. RIL_PARAM_CDC_MAXDICT = $00000004; // @paramdefine
  1576. RIL_PARAM_CDC_MAXSTRING = $00000008; // @paramdefine
  1577. RIL_PARAM_CDC_ALL = $0000000f; // @paramdefine
  1578. // -----------------------------------------------------------------------------
  1579. //
  1580. // @doc EXTERNAL
  1581. //
  1582. // @params RILCAPSERRORCORRECTION
  1583. //
  1584. // @comm None
  1585. //
  1586. // -----------------------------------------------------------------------------
  1587. const
  1588. RIL_PARAM_CEC_ORIGINALREQUEST = $00000001; // @paramdefine
  1589. RIL_PARAM_CEC_ORIGINALFALLBACK = $00000002; // @paramdefine
  1590. RIL_PARAM_CEC_ANSWERERFALLBACK = $00000004; // @paramdefine
  1591. RIL_PARAM_CEC_ALL = $00000007; // @paramdefine
  1592. // -----------------------------------------------------------------------------
  1593. //
  1594. // @doc EXTERNAL
  1595. //
  1596. // @params RILCAPSHSCSD
  1597. //
  1598. // @comm None
  1599. //
  1600. // -----------------------------------------------------------------------------
  1601. const
  1602. RIL_PARAM_CHSCSD_MULTISLOTCLASS = $00000001; // @paramdefine
  1603. RIL_PARAM_CHSCSD_MAXRXTIMESLOTS = $00000002; // @paramdefine
  1604. RIL_PARAM_CHSCSD_MAXTXTIMESLOTS = $00000004; // @paramdefine
  1605. RIL_PARAM_CHSCSD_MAXTOTALTIMESLOTS = $00000008; // @paramdefine
  1606. RIL_PARAM_CHSCSD_CHANNELCODINGS = $00000010; // @paramdefine
  1607. RIL_PARAM_CHSCSD_AIRINTERFACEUSERRATES = $00000020; // @paramdefine
  1608. RIL_PARAM_CHSCSD_TOPRXTIMESLOTRANGE = $00000040; // @paramdefine
  1609. RIL_PARAM_CHSCSD_ALL = $0000007f; // @paramdefine
  1610. // -----------------------------------------------------------------------------
  1611. //
  1612. // @doc EXTERNAL
  1613. //
  1614. // @params RILCAPSPBENTRYLENGTH
  1615. //
  1616. // @comm None
  1617. //
  1618. // -----------------------------------------------------------------------------
  1619. const
  1620. RIL_PARAM_CPBEL_MAXADDRESSLENGTH = $00000001; // @paramdefine
  1621. RIL_PARAM_CPBEL_MAXTEXTLENGTH = $00000002; // @paramdefine
  1622. RIL_PARAM_CPBEL_ALL = $00000003; // @paramdefine
  1623. // -----------------------------------------------------------------------------
  1624. //
  1625. // @doc EXTERNAL
  1626. //
  1627. // @params RILGPRSCONTEXT
  1628. //
  1629. // @comm None
  1630. //
  1631. // -----------------------------------------------------------------------------
  1632. const
  1633. RIL_PARAM_GCONT_CONTEXTID = $00000001; // @paramdefine
  1634. RIL_PARAM_GCONT_PROTOCOLTYPE = $00000002; // @paramdefine
  1635. RIL_PARAM_GCONT_ACCESSPOINTNAME = $00000004; // @paramdefine
  1636. RIL_PARAM_GCONT_ADDRESS = $00000008; // @paramdefine
  1637. RIL_PARAM_GCONT_DATACOMPRESSION = $00000010; // @paramdefine
  1638. RIL_PARAM_GCONT_HEADERCOMPRESSION = $00000020; // @paramdefine
  1639. RIL_PARAM_GCONT_PARAMETERLENGTH = $00000040; // @paramdefine
  1640. RIL_PARAM_GCONT_PARAMETERS = $00000080; // @paramdefine
  1641. RIL_PARAM_GCONT_ALL = $000000ff; // @paramdefine
  1642. // -----------------------------------------------------------------------------
  1643. //
  1644. // @doc EXTERNAL
  1645. //
  1646. // @params RILGPRSQOSPROFILE
  1647. //
  1648. // @comm None
  1649. //
  1650. // -----------------------------------------------------------------------------
  1651. const
  1652. RIL_PARAM_GQOSP_CONTEXTID = $00000001; // @paramdefine
  1653. RIL_PARAM_GQOSP_PRECEDENCECLASS = $00000002; // @paramdefine
  1654. RIL_PARAM_GQOSP_DELAYCLASS = $00000004; // @paramdefine
  1655. RIL_PARAM_GQOSP_RELIABILITYCLASS = $00000008; // @paramdefine
  1656. RIL_PARAM_GQOSP_PEAKTHRUCLASS = $00000010; // @paramdefine
  1657. RIL_PARAM_GQOSP_MEANTHRUCLASS = $00000020; // @paramdefine
  1658. RIL_PARAM_GQOSP_ALL = $0000003F; // @paramdefine
  1659. // -----------------------------------------------------------------------------
  1660. //
  1661. // @doc EXTERNAL
  1662. //
  1663. // @params RILNITZINFO
  1664. //
  1665. // @comm None
  1666. //
  1667. // -----------------------------------------------------------------------------
  1668. const
  1669. RIL_PARAM_NITZ_SYSTEMTIME = $00000001; // @paramdefine
  1670. RIL_PARAM_NITZ_TIMEZONEOFFSET = $00000002; // @paramdefine
  1671. RIL_PARAM_NITZ_DAYLIGHTSAVINGOFFSET = $00000004; // @paramdefine
  1672. //
  1673. // Other constants
  1674. //
  1675. // -----------------------------------------------------------------------------
  1676. //
  1677. // @doc EXTERNAL
  1678. //
  1679. // @constants RILNDISSTATUS
  1680. //
  1681. // @comm None
  1682. //
  1683. // -----------------------------------------------------------------------------
  1684. const
  1685. RIL_NDIS_XON = BOOL(true);
  1686. RIL_NDIS_XOFF = BOOL(false);
  1687. // -----------------------------------------------------------------------------
  1688. //
  1689. // @doc EXTERNAL
  1690. //
  1691. // @constants RILGPRSCONTEXTACTIVATED
  1692. //
  1693. // @comm None
  1694. //
  1695. // -----------------------------------------------------------------------------
  1696. const
  1697. RIL_RILGPRSCONTEXTACTIVATED_NWDEACT = $00000001; // @constdefine
  1698. RIL_RILGPRSCONTEXTACTIVATED_NWDETACH = $00000002; // @constdefine
  1699. RIL_RILGPRSCONTEXTACTIVATED_MEDEACT = $00000003; // @constdefine
  1700. RIL_RILGPRSCONTEXTACTIVATED_MEDETACH = $00000004; // @constdefine
  1701. RIL_RILGPRSCONTEXTACTIVATED_MEACT = $00000005; // @constdefine
  1702. RIL_RILGPRSCONTEXTACTIVATED_RADIOOFF = $00000006; // @constdefine
  1703. // -----------------------------------------------------------------------------
  1704. //
  1705. // @doc EXTERNAL
  1706. //
  1707. // @constants Address Type | Different phone number representations
  1708. //
  1709. // @comm None
  1710. //
  1711. // -----------------------------------------------------------------------------
  1712. const
  1713. RIL_ADDRTYPE_UNKNOWN = $00000000; // @constdefine Unknown type
  1714. RIL_ADDRTYPE_INTERNATIONAL = $00000001; // @constdefine International number
  1715. RIL_ADDRTYPE_NATIONAL = $00000002; // @constdefine National number
  1716. RIL_ADDRTYPE_NETWKSPECIFIC = $00000003; // @constdefine Network specific number
  1717. RIL_ADDRTYPE_SUBSCRIBER = $00000004; // @constdefine Subscriber number (protocol-specific)
  1718. RIL_ADDRTYPE_ALPHANUM = $00000005; // @constdefine Alphanumeric address
  1719. RIL_ADDRTYPE_ABBREV = $00000006; // @constdefine Abbreviated number
  1720. // additional CDMA ADDRTYPE definitions
  1721. // See IS-2000.5-A-1 page 509 table 2.7.1.3.2.4-2
  1722. RIL_ADDRTYPE_IP = $00000007; // @constdefine IP Address (RFC 791)
  1723. RIL_ADDRTYPE_EMAIL = $00000008; // @constdefine Internet Email addresss (RFC 822)
  1724. // -----------------------------------------------------------------------------
  1725. //
  1726. // @doc EXTERNAL
  1727. //
  1728. // @constants Numbering Plan | Different numbering shcemes
  1729. //
  1730. // @comm Used for <def RIL_ADDRTYPE_UNKNOWN>, <def RIL_ADDRTYPE_INTERNATIONAL>,
  1731. // and <def RIL_ADDRTYPE_NATIONAL>
  1732. //
  1733. // -----------------------------------------------------------------------------
  1734. const
  1735. RIL_NUMPLAN_UNKNOWN = $00000000; // @constdefine Unknown numbering plan
  1736. RIL_NUMPLAN_TELEPHONE = $00000001; // @constdefine ISDN/telephone numbering plan (E.164/E.163)
  1737. RIL_NUMPLAN_DATA = $00000002; // @constdefine Data numbering plan (X.121)
  1738. RIL_NUMPLAN_TELEX = $00000003; // @constdefine Telex numbering plan
  1739. RIL_NUMPLAN_NATIONAL = $00000004; // @constdefine National numbering plan
  1740. RIL_NUMPLAN_PRIVATE = $00000005; // @constdefine Private numbering plan
  1741. RIL_NUMPLAN_ERMES = $00000006; // @constdefine ERMES numbering plan (ETSI DE/PS 3 01-3)
  1742. // -----------------------------------------------------------------------------
  1743. //
  1744. // @doc EXTERNAL
  1745. //
  1746. // @constants Subaddress Type | Different subaddress types
  1747. //
  1748. // @comm None
  1749. //
  1750. // -----------------------------------------------------------------------------
  1751. const
  1752. RIL_SUBADDRTYPE_NSAP = $00000001; // @constdefine NSAP subaddress (CCITT Recommendation X.213 or ISO 8348 AD2)
  1753. RIL_SUBADDRTYPE_USER = $00000002; // @constdefine User defined subaddress
  1754. // -----------------------------------------------------------------------------
  1755. //
  1756. // @doc EXTERNAL
  1757. //
  1758. // @constants Data Rate | Defines different protocol dependant data rates
  1759. //
  1760. // @comm None
  1761. //
  1762. // -----------------------------------------------------------------------------
  1763. const
  1764. RIL_SPEED_UNKNOWN = $00000000; // @constdefine Unknown speed
  1765. RIL_SPEED_AUTO = $00000001; // @constdefine Automatic selection of speed
  1766. RIL_SPEED_300_V21 = $00000002; // @constdefine 300 bps (V.21)
  1767. RIL_SPEED_300_V110 = $00000003; // @constdefine 300 bps (V.100)
  1768. RIL_SPEED_1200_V22 = $00000004; // @constdefine 1200 bps (V.22)
  1769. RIL_SPEED_1200_75_V23 = $00000005; // @constdefine 1200/75 bps (V.23)
  1770. RIL_SPEED_1200_V110 = $00000006; // @constdefine 1200 bps (V.100)
  1771. RIL_SPEED_1200_V120 = $00000007; // @constdefine 1200 bps (V.120)
  1772. RIL_SPEED_2400_V22BIS = $00000008; // @constdefine 2400 bps (V.22bis)
  1773. RIL_SPEED_2400_V26TER = $00000009; // @constdefine 2400 bps (V.26ter)
  1774. RIL_SPEED_2400_V110 = $0000000a; // @constdefine 2400 bps (V.110 or X.31 flag stuffing)
  1775. RIL_SPEED_2400_V120 = $0000000b; // @constdefine 2400 bps (V.120)
  1776. RIL_SPEED_4800_V32 = $0000000c; // @constdefine 4800 bps (V.32)
  1777. RIL_SPEED_4800_V110 = $0000000d; // @constdefine 4800 bps (V.110 or X.31 flag stuffing)
  1778. RIL_SPEED_4800_V120 = $0000000e; // @constdefine 4800 bps (V.120)
  1779. RIL_SPEED_9600_V32 = $0000000f; // @constdefine 9600 bps (V.32)
  1780. RIL_SPEED_9600_V34 = $00000010; // @constdefine 9600 bps (V.34)
  1781. RIL_SPEED_9600_V110 = $00000011; // @constdefine 9600 bps (V.110 or X.31 flag stuffing)
  1782. RIL_SPEED_9600_V120 = $00000012; // @constdefine 9600 bps (V.120)
  1783. RIL_SPEED_14400_V34 = $00000013; // @constdefine 14400 bps (V.34)
  1784. RIL_SPEED_14400_V110 = $00000014; // @constdefine 14400 bps (V.100 or X.31 flag stuffing)
  1785. RIL_SPEED_14400_V120 = $00000015; // @constdefine 14400 bps (V.120)
  1786. RIL_SPEED_19200_V34 = $00000016; // @constdefine 19200 bps (V.34)
  1787. RIL_SPEED_19200_V110 = $00000017; // @constdefine 19200 bps (V.110 or X.31 flag stuffing)
  1788. RIL_SPEED_19200_V120 = $00000018; // @constdefine 19200 bps (V.120)
  1789. RIL_SPEED_28800_V34 = $00000019; // @constdefine 28800 bps (V.34)
  1790. RIL_SPEED_28800_V110 = $0000001a; // @constdefine 28800 bps (V.110 or X.31 flag stuffing)
  1791. RIL_SPEED_28800_V120 = $0000001b; // @constdefine 28800 bps (V.120)
  1792. RIL_SPEED_38400_V110 = $0000001c; // @constdefine 38400 bps (V.110 or X.31 flag stuffing)
  1793. RIL_SPEED_38400_V120 = $0000001d; // @constdefine 38400 bps (V.120)
  1794. RIL_SPEED_48000_V110 = $0000001e; // @constdefine 48000 bps (V.110 or X.31 flag stuffing)
  1795. RIL_SPEED_48000_V120 = $0000001f; // @constdefine 48000 bps (V.120)
  1796. RIL_SPEED_56000_V110 = $00000020; // @constdefine 56000 bps (V.110 or X.31 flag stuffing)
  1797. RIL_SPEED_56000_V120 = $00000021; // @constdefine 56000 bps (V.120)
  1798. RIL_SPEED_56000_TRANSP = $00000022; // @constdefine 56000 bps (bit transparent)
  1799. RIL_SPEED_64000_TRANSP = $00000023; // @constdefine 64000 bps (bit transparent)
  1800. RIL_SPEED_32000_PIAFS32K = $00000024; // @constdefine 32000 bps (PIAFS32k;
  1801. RIL_SPEED_64000_PIAFS64K = $00000025; // @constdefine 64000 bps (PIAFS64k;
  1802. RIL_SPEED_28800_MULTIMEDIA = $00000026; // @constdefine 28800 bps (MultiMedia;
  1803. RIL_SPEED_32000_MULTIMEDIA = $00000027; // @constdefine 32000 bps (MultiMedia;
  1804. RIL_SPEED_33600_MULTIMEDIA = $00000028; // @constdefine 33600 bps (MultiMedia;
  1805. RIL_SPEED_56000_MULTIMEDIA = $00000029; // @constdefine 56000 bps (MultiMedia;
  1806. RIL_SPEED_64000_MULTIMEDIA = $0000002a; // @constdefine 64000 bps (MultiMedia;
  1807. // -----------------------------------------------------------------------------
  1808. //
  1809. // @doc EXTERNAL
  1810. //
  1811. // @constants Telephony Service | Telephony service types
  1812. //
  1813. // @comm None
  1814. //
  1815. // -----------------------------------------------------------------------------
  1816. const
  1817. RIL_SERVICE_UNKNOWN = $00000000; // @constdefine Unknown service
  1818. RIL_SERVICE_MODEM_ASYNC = $00000001; // @constdefine Asynchronous modem
  1819. RIL_SERVICE_MODEM_SYNC = $00000002; // @constdefine Synchronous modem
  1820. RIL_SERVICE_PADACCESS_ASYNC = $00000003; // @constdefine PAD Access (asynchronous)
  1821. RIL_SERVICE_PACKETACCESS_SYNC = $00000004; // @constdefine Packet Access (synchronous)
  1822. RIL_SERVICE_VOICE = $00000005; // @constdefine Voice
  1823. RIL_SERVICE_FAX = $00000006; // @constdefine Fax
  1824. // -----------------------------------------------------------------------------
  1825. //
  1826. // @doc EXTERNAL
  1827. //
  1828. // @constants ITC | Information trasnfer capability types
  1829. //
  1830. // @comm None
  1831. //
  1832. // -----------------------------------------------------------------------------
  1833. const
  1834. RIL_ITC_31KHZ = $00000001; // @constdefine 3.1 kHz
  1835. RIL_ITC_UDI = $00000002; // @constdefine Unrestricted Digital Information
  1836. // -----------------------------------------------------------------------------
  1837. //
  1838. // @doc EXTERNAL
  1839. //
  1840. // @constants Operator Name | Operator name formats
  1841. //
  1842. // @comm None
  1843. //
  1844. // -----------------------------------------------------------------------------
  1845. const
  1846. RIL_OPFORMAT_LONG = $00000001; // @constdefine Long alphanumeric name
  1847. RIL_OPFORMAT_SHORT = $00000002; // @constdefine Short alphanumeric name
  1848. RIL_OPFORMAT_NUM = $00000003; // @constdefine Numeric name
  1849. // -----------------------------------------------------------------------------
  1850. //
  1851. // @doc EXTERNAL
  1852. //
  1853. // @constants Operator Status | Operator status values
  1854. //
  1855. // @comm None
  1856. //
  1857. // -----------------------------------------------------------------------------
  1858. const
  1859. RIL_OPSTATUS_UNKNOWN = $00000000; // @constdefine Unknown status
  1860. RIL_OPSTATUS_AVAILABLE = $00000001; // @constdefine Operator is available
  1861. RIL_OPSTATUS_CURRENT = $00000002; // @constdefine Operator is current
  1862. RIL_OPSTATUS_FORBIDDEN = $00000003; // @constdefine Operator is forbidden
  1863. // -----------------------------------------------------------------------------
  1864. //
  1865. // @doc EXTERNAL
  1866. //
  1867. // @constants Operator Selection | Operator selection modes
  1868. //
  1869. // @comm None
  1870. //
  1871. // -----------------------------------------------------------------------------
  1872. const
  1873. RIL_OPSELMODE_AUTOMATIC = $00000001; // @constdefine Automatic operator selection
  1874. RIL_OPSELMODE_MANUAL = $00000002; // @constdefine Manual operator selection
  1875. RIL_OPSELMODE_MANUALAUTOMATIC = $00000003; // @constdefine Manual/automatic operator selection
  1876. // (if manual selection fails, automatic selection mode is entered)
  1877. // -----------------------------------------------------------------------------
  1878. //
  1879. // @doc EXTERNAL
  1880. //
  1881. // @constants Operator Special | Special preferred operator index value
  1882. //
  1883. // @comm None
  1884. //
  1885. // -----------------------------------------------------------------------------
  1886. const
  1887. RIL_PREFOPINDEX_FIRSTAVAILABLE = $ffffffff; // @constdefine Used to specify that a preferred operator is
  1888. // to be stored at the first available index
  1889. // -----------------------------------------------------------------------------
  1890. //
  1891. // @doc EXTERNAL
  1892. //
  1893. // @constants Information Class | Telephony information classes
  1894. //
  1895. // @comm None
  1896. //
  1897. // -----------------------------------------------------------------------------
  1898. const
  1899. RIL_INFOCLASS_NONE = $00000000; // @constdefine None
  1900. RIL_INFOCLASS_VOICE = $00000001; // @constdefine Voice
  1901. RIL_INFOCLASS_DATA = $00000002; // @constdefine Data
  1902. RIL_INFOCLASS_FAX = $00000004; // @constdefine Fax
  1903. RIL_INFOCLASS_SMS = $00000008; // @constdefine SMS
  1904. RIL_INFOCLASS_DATACIRCUITSYNC = $00000010; // @constdefine Data Circuit synchronous
  1905. RIL_INFOCLASS_DATACIRCUITASYNC = $00000020; // @constdefine Data Circuit asynchronous
  1906. RIL_INFOCLASS_PACKETACCESS = $00000040; // @constdefine Dedicated Packet Access
  1907. RIL_INFOCLASS_PADACCESS = $00000080; // @constdefine Dedicated PAD Access
  1908. RIL_INFOCLASS_ALL = $000000ff; // @constdefine All information classes
  1909. // -----------------------------------------------------------------------------
  1910. //
  1911. // @doc EXTERNAL
  1912. //
  1913. // @constants Supplemental Activation | Supplementary service status values
  1914. //
  1915. // @comm None
  1916. //
  1917. // -----------------------------------------------------------------------------
  1918. const
  1919. RIL_SVCSTAT_UNKNOWN = $00000000; // @constdefine Unknown status
  1920. RIL_SVCSTAT_DISABLED = $00000001; // @constdefine Service is disabled
  1921. RIL_SVCSTAT_ENABLED = $00000002; // @constdefine Service is enabled
  1922. RIL_SVCSTAT_DEFAULT = $00000003; // @constdefine Default status
  1923. // -----------------------------------------------------------------------------
  1924. //
  1925. // @doc EXTERNAL
  1926. //
  1927. // @constants Supplementary Service Provisioning | Supplementary service provisioning values
  1928. //
  1929. // @comm None
  1930. //
  1931. // -----------------------------------------------------------------------------
  1932. const
  1933. RIL_SVCPROV_UNKNOWN = $00000000; // @constdefine Unknown provisioning
  1934. RIL_SVCPROV_NOTPROVISIONED = $00000001; // @constdefine Service isn't provisioned
  1935. RIL_SVCPROV_PROVISIONED = $00000002; // @constdefine Service is provisioned
  1936. RIL_SVCPROV_TEMPMODERESTRICTED = $00000003; // @constdefine Service temporary mode is restricted
  1937. RIL_SVCPROV_TEMPMODEALLOWED = $00000004; // @constdefine Service temporary mode is allowed
  1938. // -----------------------------------------------------------------------------
  1939. //
  1940. // @doc EXTERNAL
  1941. //
  1942. // @constants CUG Special | Closed User Group special index value
  1943. //
  1944. // @comm None
  1945. //
  1946. // -----------------------------------------------------------------------------
  1947. const
  1948. RIL_CUGINDEX_NONE = $ffffffff; // @constdefine Used to identify the absence of CUG index
  1949. // -----------------------------------------------------------------------------
  1950. //
  1951. // @doc EXTERNAL
  1952. //
  1953. // @constants CUG Info Level | Closed User Group information levels
  1954. //
  1955. // @comm This feature is not used and is untested.
  1956. //
  1957. // -----------------------------------------------------------------------------
  1958. const
  1959. RIL_CUGINFO_NONE = $00000000; // @constdefine TBD
  1960. RIL_CUGINFO_SUPPRESSOA = $00000001; // @constdefine TBD
  1961. RIL_CUGINFO_SUPRESSPREF = $00000002; // @constdefine TBD
  1962. RIL_CUGINFO_SUPPRESSOAANDPREF = $00000003; // @constdefine TBD
  1963. // -----------------------------------------------------------------------------
  1964. //
  1965. // @doc EXTERNAL
  1966. //
  1967. // @constants Forwarding Reason | Forwarding reasons
  1968. //
  1969. // @comm None
  1970. //
  1971. // -----------------------------------------------------------------------------
  1972. const
  1973. RIL_FWDREASON_UNCONDITIONAL = $00000001; // @constdefine Always forward
  1974. RIL_FWDREASON_MOBILEBUSY = $00000002; // @constdefine Forward when device busy
  1975. RIL_FWDREASON_NOREPLY = $00000003; // @constdefine Forward when no answer
  1976. RIL_FWDREASON_UNREACHABLE = $00000004; // @constdefine Forward device out of service
  1977. RIL_FWDREASON_ALLFORWARDING = $00000005; // @constdefine TBD
  1978. RIL_FWDREASON_ALLCONDITIONAL = $00000006; // @constdefine TBD
  1979. // -----------------------------------------------------------------------------
  1980. //
  1981. // @doc EXTERNAL
  1982. //
  1983. // @constants Call Type | Call types
  1984. //
  1985. // @comm None
  1986. //
  1987. // -----------------------------------------------------------------------------
  1988. const
  1989. RIL_CALLTYPE_UNKNOWN = $00000000; // @constdefine Unknown
  1990. RIL_CALLTYPE_VOICE = $00000001; // @constdefine Voice call
  1991. RIL_CALLTYPE_DATA = $00000002; // @constdefine Data call
  1992. RIL_CALLTYPE_FAX = $00000003; // @constdefine Fax call
  1993. RIL_CALLTYPE_PTT = $00000004; // @constdefine Push-To-Talk call
  1994. RIL_CALLTYPE_VT = $00000005; // @constdefine Video Telephony call
  1995. RIL_CALLTYPE_LAST = RIL_CALLTYPE_VT; // @constdefine last valid call
  1996. // -----------------------------------------------------------------------------
  1997. //
  1998. // @doc EXTERNAL
  1999. //
  2000. // @constants Dialing Option | Dialing options
  2001. //
  2002. // @comm None
  2003. //
  2004. // -----------------------------------------------------------------------------
  2005. const
  2006. RIL_DIALOPT_NONE = $00000000; // @constdefine No options
  2007. RIL_DIALOPT_RESTRICTID = $00000001; // @constdefine Restrict CLI presentation
  2008. RIL_DIALOPT_PRESENTID = $00000002; // @constdefine Allow CLI presentation
  2009. RIL_DIALOPT_CLOSEDGROUP = $00000004; // @constdefine Closed User Group dialing
  2010. RIL_DIALOPT_ALL = $00000007; // @constdefine All options
  2011. // -----------------------------------------------------------------------------
  2012. //
  2013. // @doc EXTERNAL
  2014. //
  2015. // @constants Call Option | Call options defaults
  2016. //
  2017. // @comm None
  2018. //
  2019. // -----------------------------------------------------------------------------
  2020. const
  2021. RIL_DIALTONEWAIT_DEFAULT = $00000000; // @constdefine TBD
  2022. RIL_DIALTIMEOUT_DEFAULT = $00000000; // @constdefine TBD
  2023. RIL_COMMAPAUSE_DEFAULT = $00000000; // @constdefine TBD
  2024. RIL_DISCONNECTTIMEOUT_DEFAULT = $00000000; // @constdefine TBD
  2025. // -----------------------------------------------------------------------------
  2026. //
  2027. // @doc EXTERNAL
  2028. //
  2029. // @constants DTMF Duration | DTMF tone duration default
  2030. //
  2031. // @comm None
  2032. //
  2033. // -----------------------------------------------------------------------------
  2034. const
  2035. RIL_DTMFDURATION_DEFAULT = $00000000; // @constdefine TBD
  2036. // -----------------------------------------------------------------------------
  2037. //
  2038. // @doc EXTERNAL
  2039. //
  2040. // @constants Number of Calls to Track | Number of Calls to Track
  2041. //
  2042. // @comm None
  2043. //
  2044. // -----------------------------------------------------------------------------
  2045. const
  2046. RIL_MAX_TRACKED_CALL_ID = 10;
  2047. // -----------------------------------------------------------------------------
  2048. //
  2049. // @doc EXTERNAL
  2050. //
  2051. // @constants Call Direction | Call direction
  2052. //
  2053. // @comm None
  2054. //
  2055. // -----------------------------------------------------------------------------
  2056. const
  2057. RIL_CALLDIR_INCOMING = $00000001; // @constdefine Incoming call
  2058. RIL_CALLDIR_OUTGOING = $00000002; // @constdefine Outgoing call
  2059. // -----------------------------------------------------------------------------
  2060. //
  2061. // @doc EXTERNAL
  2062. //
  2063. // @constants Call Status | Call status values
  2064. //
  2065. // @comm None
  2066. //
  2067. // -----------------------------------------------------------------------------
  2068. const
  2069. RIL_CALLSTAT_ACTIVE = $00000001; // @constdefine Active call
  2070. RIL_CALLSTAT_ONHOLD = $00000002; // @constdefine Call on hold
  2071. RIL_CALLSTAT_DIALING = $00000003; // @constdefine In the process of dialing
  2072. RIL_CALLSTAT_ALERTING = $00000004; // @constdefine In the process of ringing
  2073. RIL_CALLSTAT_INCOMING = $00000005; // @constdefine Incoming (unanswered) call
  2074. RIL_CALLSTAT_WAITING = $00000006; // @constdefine Incoming call waiting call
  2075. // -----------------------------------------------------------------------------
  2076. //
  2077. // @doc EXTERNAL
  2078. //
  2079. // @constants CPI Status | CPI status values
  2080. //
  2081. // @comm None
  2082. //
  2083. // -----------------------------------------------------------------------------
  2084. const
  2085. RIL_CPISTAT_UNKNOWN = $00000000; // @constdefine
  2086. RIL_CPISTAT_NEW_OUTGOING = $00000001; // @constdefine
  2087. RIL_CPISTAT_NEW_INCOMING = $00000002; // @constdefine
  2088. RIL_CPISTAT_CONNECTED = $00000003; // @constdefine
  2089. RIL_CPISTAT_DISCONNECTED = $00000004; // @constdefine
  2090. RIL_CPISTAT_ONHOLD = $00000005; // @constdefine
  2091. // -----------------------------------------------------------------------------
  2092. //
  2093. // @doc EXTERNAL
  2094. //
  2095. // @constants Intermediate Supplementary Service | Intermediate Supplementary Service Codes
  2096. //
  2097. // @comm None
  2098. //
  2099. // -----------------------------------------------------------------------------
  2100. const
  2101. RIL_INTSSCODE_UNCONDITIONALCFACTIVE = $00000000; // @constdefine Unconditional call forwarding is active
  2102. RIL_INTSSCODE_SOMECONDITIONALCFACTIVE = $00000001; // @constdefine Some of the conditional call forwarding settings are active
  2103. RIL_INTSSCODE_CALLWASFORWARDED = $00000002; // @constdefine Call has been forwarded
  2104. RIL_INTSSCODE_CALLISWAITING = $00000003; // @constdefine Call is waiting
  2105. RIL_INTSSCODE_CUGCALL = $00000004; // @constdefine This is a CUG call (also <index> present;
  2106. RIL_INTSSCODE_OUTGOINGCALLSBARRED = $00000005; // @constdefine Outgoing calls are barred
  2107. RIL_INTSSCODE_INCOMINGCALLSBARRED = $00000006; // @constdefine Incoming calls are barred
  2108. RIL_INTSSCODE_CLIRSUPPRESSREJECT = $00000007; // @constdefine CLIR suppression rejected
  2109. RIL_INTSSCODE_CALLWASDEFLECTED = $00000008; // @constdefine Call has been deflected
  2110. RIL_INTSSCODE_MAX = RIL_INTSSCODE_CALLWASDEFLECTED; // @constdefine Maximum valid value
  2111. // -----------------------------------------------------------------------------
  2112. //
  2113. // @doc EXTERNAL
  2114. //
  2115. // @constants Unsolicited Supplementary Service | Unsolicited Supplementary Service Codes
  2116. //
  2117. // @comm None
  2118. //
  2119. // -----------------------------------------------------------------------------
  2120. const
  2121. RIL_UNSSSCODE_FORWARDEDCALL = $00000000; // @constdefine This is a forwarded call (MT call setup;
  2122. RIL_UNSSSCODE_CUGCALL = $00000001; // @constdefine This is a CUG call (also <index> present; (MT call setup;
  2123. RIL_UNSSSCODE_CALLPUTONHOLD = $00000002; // @constdefine Call has been put on hold (during a voice call;
  2124. RIL_UNSSSCODE_CALLRETRIEVED = $00000003; // @constdefine Call has been retrieved (during a voice call;
  2125. RIL_UNSSSCODE_ENTEREDMULTIPARTY = $00000004; // @constdefine Multiparty call entered (during a voice call;
  2126. RIL_UNSSSCODE_HELDCALLRELEASED = $00000005; // @constdefine Call on hold has been released (this is not a SS notification; (during a voice call;
  2127. RIL_UNSSSCODE_FORWARDCHECKSS = $00000006; // @constdefine Forward check SS message received (can be received whenever;
  2128. RIL_UNSSSCODE_ALERTINGEXPLICITCALLXFER = $00000007; // @constdefine Call is being connected (alerting; with the remote party in alerting state in explicit call transfer operation (during a voice call;
  2129. RIL_UNSSSCODE_CONNECTEDEXPLICITCALLXFER = $00000008; // @constdefine Call has been connected with the other remote party in explicit call transfer operation (also number and subaddress parameters may be present; (during a voice call or MT call setup;
  2130. RIL_UNSSSCODE_DEFLECTEDCALL = $00000009; // @constdefine This is a deflected call (MT call setup;
  2131. RIL_UNSSSCODE_ADDITIONALINCOMINGCF = $0000000a; // @constdefine Additional incoming call forwarded
  2132. RIL_UNSSSCODE_MAX = RIL_UNSSSCODE_ADDITIONALINCOMINGCF; // @constdefine Maximum valid value
  2133. // -----------------------------------------------------------------------------
  2134. //
  2135. // @doc EXTERNAL
  2136. //
  2137. // @constants Call Multiparty | Call multiparty status values
  2138. //
  2139. // @comm None
  2140. //
  2141. // -----------------------------------------------------------------------------
  2142. const
  2143. RIL_CALL_SINGLEPARTY = $00000000; // @constdefine Not in a conference
  2144. RIL_CALL_MULTIPARTY = $00000001; // @constdefine Participating in a conference
  2145. // -----------------------------------------------------------------------------
  2146. //
  2147. // @doc EXTERNAL
  2148. //
  2149. // @constants Call Management | Call management commands
  2150. //
  2151. // @comm None
  2152. //
  2153. // -----------------------------------------------------------------------------
  2154. const
  2155. RIL_CALLCMD_RELEASEHELD = $00000001; // @constdefine Release all held calls, send "busy" to waiting call
  2156. RIL_CALLCMD_RELEASEACTIVE_ACCEPTHELD = $00000002; // @constdefine Release all active calls, accept waiting/held call
  2157. RIL_CALLCMD_RELEASECALL = $00000003; // @constdefine Release the specified call
  2158. RIL_CALLCMD_HOLDACTIVE_ACCEPTHELD = $00000004; // @constdefine Hold all active calls, accept waiting/held call
  2159. RIL_CALLCMD_HOLDALLBUTONE = $00000005; // @constdefine Hold all active calls, except for the specified call
  2160. RIL_CALLCMD_ADDHELDTOCONF = $00000006; // @constdefine Add all held calls to a conference
  2161. RIL_CALLCMD_ADDHELDTOCONF_DISCONNECT = $00000007; // @constdefine Connect held calls to a conference, disconnect the user
  2162. RIL_CALLCMD_INVOKECCBS = $00000008; // @constdefine Invokes completion of calls to busy subscribers
  2163. // -----------------------------------------------------------------------------
  2164. //
  2165. // @doc EXTERNAL
  2166. //
  2167. // @constants Line Status | Line status values
  2168. //
  2169. // @comm None
  2170. //
  2171. // -----------------------------------------------------------------------------
  2172. const
  2173. RIL_LINESTAT_UNKNOWN = $00000000; // @constdefine Unknown
  2174. RIL_LINESTAT_READY = $00000001; // @constdefine Line is ready
  2175. RIL_LINESTAT_UNAVAILABLE = $00000002; // @constdefine Line is unavailable
  2176. RIL_LINESTAT_RINGING = $00000003; // @constdefine Incoming call on the line
  2177. RIL_LINESTAT_CALLINPROGRESS = $00000004; // @constdefine Call in progress
  2178. RIL_LINESTAT_ASLEEP = $00000005; // @constdefine Line is asleep
  2179. RIL_LINESTAT_CONNECTING = $00000006; // @constdefine The phone is connecting to a call, but the call is not in progress yet
  2180. // -----------------------------------------------------------------------------
  2181. //
  2182. // @doc EXTERNAL
  2183. //
  2184. // @constants Line Registration | Line registration status values
  2185. //
  2186. // @comm None
  2187. //
  2188. // -----------------------------------------------------------------------------
  2189. const
  2190. RIL_REGSTAT_UNKNOWN = $00000000; // @constdefine Registration unknown
  2191. RIL_REGSTAT_UNREGISTERED = $00000001; // @constdefine Unregistered
  2192. RIL_REGSTAT_HOME = $00000002; // @constdefine Registered on home network
  2193. RIL_REGSTAT_ATTEMPTING = $00000003; // @constdefine Attempting to register
  2194. RIL_REGSTAT_DENIED = $00000004; // @constdefine Registration denied
  2195. RIL_REGSTAT_ROAMING = $00000005; // @constdefine Registered on roaming network
  2196. // -----------------------------------------------------------------------------
  2197. //
  2198. // @doc EXTERNAL
  2199. //
  2200. // @constants Audio Device | Audio devices
  2201. //
  2202. // @comm None
  2203. //
  2204. // -----------------------------------------------------------------------------
  2205. const
  2206. RIL_AUDIO_NONE = $00000000; // @constdefine No audio devices
  2207. RIL_AUDIO_HANDSET = $00000001; // @constdefine Handset
  2208. RIL_AUDIO_SPEAKERPHONE = $00000002; // @constdefine Speakerphone
  2209. RIL_AUDIO_HEADSET = $00000003; // @constdefine Headset
  2210. RIL_AUDIO_CARKIT = $00000004; // @constdefine Carkit
  2211. // -----------------------------------------------------------------------------
  2212. //
  2213. // @doc EXTERNAL
  2214. //
  2215. // @constants HSCSD Traffic Channel | HSCSD traffic channel codings
  2216. //
  2217. // @comm None
  2218. //
  2219. // -----------------------------------------------------------------------------
  2220. const
  2221. RIL_HSCSDCODING_UNKNOWN = $00000000; // @constdefine Unknown channel coding
  2222. RIL_HSCSDCODING_4800_FULLRATE = $00000001; // @constdefine 4800 bits per second
  2223. RIL_HSCSDCODING_9600_FULLRATE = $00000002; // @constdefine 9600 bits per second
  2224. RIL_HSCSDCODING_14400_FULLRATE = $00000004; // @constdefine 14400 bits per second
  2225. RIL_HSCSDCODING_ALL = $00000007; // @constdefine All channel codings valid
  2226. // -----------------------------------------------------------------------------
  2227. //
  2228. // @doc EXTERNAL
  2229. //
  2230. // @constants HSCSD Air Interface | HSCSD air interface user rates
  2231. //
  2232. // @comm None
  2233. //
  2234. // -----------------------------------------------------------------------------
  2235. const
  2236. RIL_HSCSDAIURATE_UNKNOWN = $00000000; // @constdefine Air interface rate
  2237. RIL_HSCSDAIURATE_9600 = $00000001; // @constdefine 9600 bits per second
  2238. RIL_HSCSDAIURATE_14400 = $00000002; // @constdefine 14400 bits per second
  2239. RIL_HSCSDAIURATE_19200 = $00000003; // @constdefine 19200 bits per second
  2240. RIL_HSCSDAIURATE_28800 = $00000004; // @constdefine 28800 bits per second
  2241. RIL_HSCSDAIURATE_38400 = $00000005; // @constdefine 38400 bits per second
  2242. RIL_HSCSDAIURATE_43200 = $00000006; // @constdefine 43200 bits per second
  2243. RIL_HSCSDAIURATE_57600 = $00000007; // @constdefine 57600 bits per second
  2244. RIL_HSCSDAIURATE_DEFAULT = $ffffffff; // @constdefine A special value that indicates the radio stack
  2245. // should calculate the appropriate number of
  2246. // receive timeslots based on other paramaters
  2247. // -----------------------------------------------------------------------------
  2248. //
  2249. // @doc EXTERNAL
  2250. //
  2251. // @constants HSCSD Special | Special HSCSD receive timeslots value
  2252. //
  2253. // @comm None
  2254. //
  2255. // -----------------------------------------------------------------------------
  2256. const
  2257. RIL_HSCSDTIMESLOTS_DEFAULT = $00000000; // @constdefine Indicates that the radio stack should
  2258. // calculate apropriate number of timeslots
  2259. RIL_HSCSDTIMESLOTSLIMIT_NONE = $00000000; // @constdefine Indicates that number of receive numeslots will not
  2260. // be altered during the next non-transparent HSCSD call
  2261. // -----------------------------------------------------------------------------
  2262. //
  2263. // @doc EXTERNAL
  2264. //
  2265. // @constants Data Compression | Data compression directions
  2266. //
  2267. // @comm None
  2268. //
  2269. // -----------------------------------------------------------------------------
  2270. const
  2271. RIL_DATACOMPDIR_NONE = $00000001; // @constdefine No data compression
  2272. RIL_DATACOMPDIR_TRANSMIT = $00000002; // @constdefine Data compession when sending
  2273. RIL_DATACOMPDIR_RECEIVE = $00000004; // @constdefine Data compession when receiving
  2274. RIL_DATACOMPDIR_BOTH = $00000008; // @constdefine Bi-directional data compession
  2275. // -----------------------------------------------------------------------------
  2276. //
  2277. // @doc EXTERNAL
  2278. //
  2279. // @constants Data Compression Negotiation | Data compression negotiation options
  2280. //
  2281. // @comm None
  2282. //
  2283. // -----------------------------------------------------------------------------
  2284. const
  2285. RIL_DATACOMP_OPTIONAL = $00000001; // @constdefine Data compression optional
  2286. RIL_DATACOMP_REQUIRED = $00000002; // @constdefine Terminal will disconnect if no negotiation
  2287. // -----------------------------------------------------------------------------
  2288. //
  2289. // @doc EXTERNAL
  2290. //
  2291. // @constants Error Correction | Error correction modes
  2292. //
  2293. // @comm None
  2294. //
  2295. // -----------------------------------------------------------------------------
  2296. const
  2297. RIL_ECMODE_UNKNOWN = $00000000; // @constdefine TBD
  2298. RIL_ECMODE_DIRECT = $00000001; // @constdefine TBD
  2299. RIL_ECMODE_BUFFERED = $00000002; // @constdefine TBD
  2300. RIL_ECMODE_NODETECT = $00000004; // @constdefine TBD
  2301. RIL_ECMODE_DETECT = $00000008; // @constdefine TBD
  2302. RIL_ECMODE_ALTERNATIVE = $00000010; // @constdefine TBD
  2303. RIL_ECMODE_OPTIONAL_USEBUFFERED = $00000020; // @constdefine TBD
  2304. RIL_ECMODE_OPTIONAL_USEDIRECT = $00000040; // @constdefine TBD
  2305. RIL_ECMODE_REQUIRED = $00000080; // @constdefine TBD
  2306. RIL_ECMODE_REQUIRED_LAPMONLY = $00000100; // @constdefine TBD
  2307. RIL_ECMODE_REQUIRED_ALTERNATIVEONLY = $00000200; // @constdefine TBD
  2308. // -----------------------------------------------------------------------------
  2309. //
  2310. // @doc EXTERNAL
  2311. //
  2312. // @constants Bearer Service | Bearer service names
  2313. //
  2314. // @comm None
  2315. //
  2316. // -----------------------------------------------------------------------------
  2317. const
  2318. RIL_BSVCNAME_UNKNOWN = $00000000; // @constdefine TBD
  2319. RIL_BSVCNAME_DATACIRCUIT_ASYNC_UDI_MODEM = $00000001; // @constdefine TBD
  2320. RIL_BSVCNAME_DATACIRCUIT_SYNC_UDI_MODEM = $00000002; // @constdefine TBD
  2321. RIL_BSVCNAME_PADACCESS_ASYNC_UDI = $00000003; // @constdefine TBD
  2322. RIL_BSVCNAME_PACKETACCESS_SYNC_UDI = $00000004; // @constdefine TBD
  2323. RIL_BSVCNAME_DATACIRCUIT_ASYNC_RDI = $00000005; // @constdefine TBD
  2324. RIL_BSVCNAME_DATACIRCUIT_SYNC_RDI = $00000006; // @constdefine TBD
  2325. RIL_BSVCNAME_PADACCESS_ASYNC_RDI = $00000007; // @constdefine TBD
  2326. RIL_BSVCNAME_PACKETACCESS_SYNC_RDI = $00000008; // @constdefine TBD
  2327. // -----------------------------------------------------------------------------
  2328. //
  2329. // @doc EXTERNAL
  2330. //
  2331. // @constants Bearer Service CE | Bearer service connection elements
  2332. //
  2333. // @comm None
  2334. //
  2335. // -----------------------------------------------------------------------------
  2336. const
  2337. RIL_BSVCCE_UNKNOWN = $00000000; // @constdefine Bearer service unknown
  2338. RIL_BSVCCE_TRANSPARENT = $00000001; // @constdefine Link layer correction enabled
  2339. RIL_BSVCCE_NONTRANSPARENT = $00000002; // @constdefine No link layer correction present
  2340. RIL_BSVCCE_BOTH_TRANSPARENT = $00000003; // @constdefine Both available, transparent preferred
  2341. RIL_BSVCCE_BOTH_NONTRANSPARENT = $00000004; // @constdefine Both available, non-transparent preferred
  2342. // -----------------------------------------------------------------------------
  2343. //
  2344. // @doc EXTERNAL
  2345. //
  2346. // @constants Message Service | Messaging service types
  2347. //
  2348. // @comm None
  2349. //
  2350. // -----------------------------------------------------------------------------
  2351. const
  2352. RIL_MSGSVCTYPE_UNKNOWN = $00000000; // @constdefine Unknown
  2353. RIL_MSGSVCTYPE_PHASE2 = $00000001; // @constdefine GSM 07.05 Phase 2 ver. 4.7.0 messaging service
  2354. RIL_MSGSVCTYPE_PHASE2PLUS = $00000002; // @constdefine GSM 07.05 Pahse 2+ messaging service
  2355. // -----------------------------------------------------------------------------
  2356. //
  2357. // @doc EXTERNAL
  2358. //
  2359. // @constants Message Storage | Message storage locations
  2360. //
  2361. // @comm None
  2362. //
  2363. // -----------------------------------------------------------------------------
  2364. const
  2365. RIL_MSGLOC_UNKNOWN = $00000000; // @constdefine Unknown
  2366. RIL_MSGLOC_BROADCAST = $00000001; // @constdefine Broadcast message storage location
  2367. RIL_MSGLOC_SIM = $00000002; // @constdefine SIM storage location
  2368. RIL_MSGLOC_STATUSREPORT = $00000003; // @constdefine Status report storage location
  2369. // -----------------------------------------------------------------------------
  2370. //
  2371. // @doc EXTERNAL
  2372. //
  2373. // @constants IS637 Teleservices | Message Teleservice types
  2374. //
  2375. // @comm TIA/EIA-41-D Supported Teleservices
  2376. //
  2377. // -----------------------------------------------------------------------------
  2378. const
  2379. RIL_MSGTELESERVICE_PAGING = $00000001; // @constdefine Wireless Paging Teleservice CPT-95 //@ Only callback number
  2380. RIL_MSGTELESERVICE_MESSAGING = $00000002; // @constdefine Wireless Messaging Teleservice CMT-95 //@ Text Message
  2381. RIL_MSGTELESERVICE_VOICEMAIL = $00000003; // @constdefine Voice Mail Notification VMN-95 //@ Voice Mail
  2382. RIL_MSGTELESERVICE_WAP = $00000004; // @constdefine Wireless Application Protocol WAP //@ To be investigated (Test message??)
  2383. // -----------------------------------------------------------------------------
  2384. //
  2385. // @doc EXTERNAL
  2386. //
  2387. // @constants Message Privacy Class | Message Privacy types
  2388. //
  2389. // @comm IS-637 Message Privacy Classes
  2390. //
  2391. // -----------------------------------------------------------------------------
  2392. const
  2393. RIL_MSGPRIVACYCLASS_NOTRESTRICTED = $00000001; // @constdefine Not restricted (Level 0)
  2394. RIL_MSGPRIVACYCLASS_RESTRICTED = $00000002; // @constdefine Restricted (Level 1)
  2395. RIL_MSGPRIVACYCLASS_CONFIDENTIAL = $00000003; // @constdefine Confidential (Level 2)
  2396. RIL_MSGPRIVACYCLASS_SECRET = $00000004; // @constdefine Secret (Level 3)
  2397. // -----------------------------------------------------------------------------
  2398. //
  2399. // @doc EXTERNAL
  2400. //
  2401. // @constants Message Priority Class | Message Priority types
  2402. //
  2403. // @comm IS-637 Message Priority Classes
  2404. //
  2405. // -----------------------------------------------------------------------------
  2406. const
  2407. RIL_MSGPRIORITY_NORMAL = $00000001; // @constdefine Message Urgency Normal
  2408. RIL_MSGPRIORITY_HIGH = $00000002; // @constdefine Message Urgency Interactive (S N/A)
  2409. RIL_MSGPRIORITY_URGENT = $00000003; // @constdefine Message Urgency Urgent
  2410. RIL_MSGPRIORITY_EMERGENCY = $00000004; // @constdefine Message Urgency Emergency (S N/A)
  2411. // -----------------------------------------------------------------------------
  2412. //
  2413. // @doc EXTERNAL
  2414. //
  2415. // @constants Status Message Class | Message Statustypes
  2416. //
  2417. // @comm IS-637 Message Priority Classes
  2418. //
  2419. // -----------------------------------------------------------------------------
  2420. const
  2421. RIL_MSGSTATUSTYPE_BEARERACK = $00000001; // @constdefine The Acknowledgement Message is a Bearer Ack
  2422. RIL_MSGSTATUSTYPE_DELIVERYACK = $00000002; // @constdefine The Acknowledgement Message is a Delivery Ack
  2423. RIL_MSGSTATUSTYPE_USERACK = $00000003; // @constdefine The Acknowledgement Message is a User Ack
  2424. // -----------------------------------------------------------------------------
  2425. //
  2426. // @doc EXTERNAL
  2427. //
  2428. // @constants Message Display Modes | Message Display Modes
  2429. //
  2430. // @comm Message Display Modes - Determines if the message is shown immediately or in the inbox (Ask Carrier if this feature is implemented)
  2431. //
  2432. // -----------------------------------------------------------------------------
  2433. const
  2434. RIL_MSGDISPLAYMODE_IMMEDIATE = $00000001; // @constdefine The message must be show immediately.
  2435. //In the UI, Mobile Default and User Default should be treated as the same.
  2436. RIL_MSGDISPLAYMODE_MOBILEDEFAULT = $00000002; // @constdefine The message is to be displayed depending on a predefined mobile setting.
  2437. RIL_MSGDISPLAYMODE_USERDEFAULT = $00000003; // @constdefine The message is to be displayed depending on the user's mode.
  2438. // -----------------------------------------------------------------------------
  2439. //
  2440. // @doc EXTERNAL
  2441. //
  2442. // @constants Message Encoding | Message Encoding types
  2443. //
  2444. // @comm Message Encoding - Determines the format of the incoming message body
  2445. //
  2446. // -----------------------------------------------------------------------------
  2447. const
  2448. //Analog Only - RIL_MSGCODING_IS91EPP = $00000001; // @constdefine IS-91 Character Format
  2449. RIL_MSGCODING_7BITASCII = $00000002; // @constdefine This the the verizon default
  2450. RIL_MSGCODING_UNICODE = $00000003; // @constdefine Unicode (double byte) format
  2451. RIL_MSGCODING_7BITGSM = $00000004; // @constdefine 7-bit GSM Alphabet
  2452. RIL_MSGCODING_8BITGSM = $00000005; // @constdefine 8-bit GSM Alphabet
  2453. // -----------------------------------------------------------------------------
  2454. //
  2455. // @doc EXTERNAL
  2456. //
  2457. // @constants Message DCS | Message data coding scheme types
  2458. //
  2459. // @comm None
  2460. //
  2461. // -----------------------------------------------------------------------------
  2462. const
  2463. RIL_DCSTYPE_GENERAL = $00000001; // @constdefine TBD
  2464. RIL_DCSTYPE_MSGWAIT = $00000002; // @constdefine TBD
  2465. RIL_DCSTYPE_MSGCLASS = $00000003; // @constdefine TBD
  2466. RIL_DCSTYPE_LANGUAGE = $00000004; // @constdefine TBD
  2467. // -----------------------------------------------------------------------------
  2468. //
  2469. // @doc EXTERNAL
  2470. //
  2471. // @constants Message DCS Flags | Message data coding scheme flags
  2472. //
  2473. // @comm None
  2474. //
  2475. // -----------------------------------------------------------------------------
  2476. const
  2477. RIL_DCSFLAG_NONE = $00000000; // @constdefine TBD
  2478. RIL_DCSFLAG_COMPRESSED = $00000001; // @constdefine TBD
  2479. RIL_DCSFLAG_INDICATIONACTIVE = $00000002; // @constdefine TBD
  2480. RIL_DCSFLAG_DISCARD = $00000004; // @constdefine Only for RIL_DCSTYPE_MSGWAIT
  2481. RIL_DCSFLAG_ALL = $00000007; // @constdefine TBD
  2482. // -----------------------------------------------------------------------------
  2483. //
  2484. // @doc EXTERNAL
  2485. //
  2486. // @constants Message DCS Classes | Message data coding scheme message classes
  2487. //
  2488. // @comm None
  2489. //
  2490. // -----------------------------------------------------------------------------
  2491. const
  2492. RIL_DCSMSGCLASS_0 = $00000001; // @constdefine TBD
  2493. RIL_DCSMSGCLASS_1 = $00000002; // @constdefine TBD
  2494. RIL_DCSMSGCLASS_2 = $00000003; // @constdefine TBD
  2495. RIL_DCSMSGCLASS_3 = $00000004; // @constdefine TBD
  2496. // -----------------------------------------------------------------------------
  2497. //
  2498. // @doc EXTERNAL
  2499. //
  2500. // @constants Message DCS Alphabets | Message data coding scheme alphabets
  2501. //
  2502. // @comm None
  2503. //
  2504. // -----------------------------------------------------------------------------
  2505. const
  2506. RIL_DCSALPHABET_DEFAULT = $00000001; // @constdefine TBD
  2507. RIL_DCSALPHABET_8BIT = $00000002; // @constdefine TBD
  2508. RIL_DCSALPHABET_UCS2 = $00000003; // @constdefine TBD
  2509. // -----------------------------------------------------------------------------
  2510. //
  2511. // @doc EXTERNAL
  2512. //
  2513. // @constants Message DCS Indication | Message data coding scheme indication types
  2514. //
  2515. // @comm None
  2516. //
  2517. // -----------------------------------------------------------------------------
  2518. const
  2519. RIL_DCSINDICATION_VOICEMAIL = $00000001; // @constdefine Voicemail indication
  2520. RIL_DCSINDICATION_FAX = $00000002; // @constdefine Fax indication
  2521. RIL_DCSINDICATION_EMAIL = $00000003; // @constdefine E-Mail indication
  2522. RIL_DCSINDICATION_OTHER = $00000004; // @constdefine Other indication
  2523. // -----------------------------------------------------------------------------
  2524. //
  2525. // @doc EXTERNAL
  2526. //
  2527. // @constants Message DCS Broadcast| Message broadcast data coding scheme languages
  2528. //
  2529. // @comm None
  2530. //
  2531. // -----------------------------------------------------------------------------
  2532. const
  2533. RIL_DCSLANG_UNKNOWN = $00000001; // @constdefine TBD
  2534. RIL_DCSLANG_GERMAN = $00000002; // @constdefine TBD
  2535. RIL_DCSLANG_ENGLISH = $00000004; // @constdefine TBD
  2536. RIL_DCSLANG_ITALIAN = $00000008; // @constdefine TBD
  2537. RIL_DCSLANG_FRENCH = $00000010; // @constdefine TBD
  2538. RIL_DCSLANG_SPANISH = $00000020; // @constdefine TBD
  2539. RIL_DCSLANG_DUTCH = $00000040; // @constdefine TBD
  2540. RIL_DCSLANG_SWEDISH = $00000080; // @constdefine TBD
  2541. RIL_DCSLANG_DANISH = $00000100; // @constdefine TBD
  2542. RIL_DCSLANG_PORTUGUESE = $00000200; // @constdefine TBD
  2543. RIL_DCSLANG_FINNISH = $00000400; // @constdefine TBD
  2544. RIL_DCSLANG_NORWEGIAN = $00000800; // @constdefine TBD
  2545. RIL_DCSLANG_GREEK = $00001000; // @constdefine TBD
  2546. RIL_DCSLANG_TURKISH = $00002000; // @constdefine TBD
  2547. RIL_DCSLANG_HUNGARIAN = $00004000; // @constdefine TBD
  2548. RIL_DCSLANG_POLISH = $00008000; // @constdefine TBD
  2549. RIL_DCSLANG_CZECH = $00010000; // @constdefine TBD
  2550. RIL_DCSLANG_HEBREW = $00020000; // @constdefine TBD
  2551. RIL_DCSLANG_ARABIC = $00040000; // @constdefine TBD
  2552. RIL_DCSLANG_RUSSIAN = $00080000; // @constdefine TBD
  2553. RIL_DCSLANG_ICELANDIC = $00100000; // @constdefine TBD
  2554. RIL_DCSLANG_ALL = $001fffff; // @constdefine TBD
  2555. // -----------------------------------------------------------------------------
  2556. //
  2557. // @doc EXTERNAL
  2558. //
  2559. // @constants Message Class | Message classes
  2560. //
  2561. // @comm None
  2562. //
  2563. // -----------------------------------------------------------------------------
  2564. const
  2565. RIL_MSGCLASS_NONE = $00000000; // @constdefine TBD
  2566. RIL_MSGCLASS_INCOMING = $00010000; // @constdefine TBD
  2567. RIL_MSGCLASS_OUTGOING = $00020000; // @constdefine TBD
  2568. RIL_MSGCLASS_BROADCAST = $00040000; // @constdefine TBD
  2569. RIL_MSGCLASS_ALL = $00070000; // @constdefine TBD
  2570. // -----------------------------------------------------------------------------
  2571. //
  2572. // @doc EXTERNAL
  2573. //
  2574. // @constants Message Type | Message types
  2575. //
  2576. // @comm None
  2577. //
  2578. // -----------------------------------------------------------------------------
  2579. const
  2580. RIL_MSGTYPE_IN_DELIVER = $00000001 or RIL_MSGCLASS_INCOMING; // @constdefine Incoming message
  2581. RIL_MSGTYPE_IN_STATUS = $00000002 or RIL_MSGCLASS_INCOMING; // @constdefine Incoming status message
  2582. RIL_MSGTYPE_OUT_SUBMIT = $00000001 or RIL_MSGCLASS_OUTGOING; // @constdefine Outgoing message
  2583. RIL_MSGTYPE_OUT_COMMAND = $00000002 or RIL_MSGCLASS_OUTGOING; // @constdefine Outgoing command message
  2584. RIL_MSGTYPE_OUT_RAW = $00000004 or RIL_MSGCLASS_OUTGOING;
  2585. RIL_MSGTYPE_BC_GENERAL = $00000001 or RIL_MSGCLASS_BROADCAST; // @constdefine Broadcast message (incoming only)
  2586. // Macro to extract message class from message type
  2587. function MSGCLASS_FROM_MSGTYPE(itype:ULONG):ULONG; inline;
  2588. // -----------------------------------------------------------------------------
  2589. //
  2590. // @doc EXTERNAL
  2591. //
  2592. // @constants Message Flag | Message flags
  2593. //
  2594. // @comm None
  2595. //
  2596. // -----------------------------------------------------------------------------
  2597. const
  2598. RIL_MSGFLAG_NONE = $00000000; // @constdefine None
  2599. RIL_MSGFLAG_MORETOSEND = $00000001; // @constdefine More messages to send (valid for <def RIL_MSGTYPE_IN_DELIVER> and <def RIL_MSGTYPE_IN_STATUS>)
  2600. RIL_MSGFLAG_REPLYPATH = $00000002; // @constdefine Message contains a reply path (valid for <def RIL_MSGTYPE_IN_DELIVER> and <def RIL_MSGTYPE_OUT_SUBMIT>)
  2601. RIL_MSGFLAG_HEADER = $00000004; // @constdefine TBD (valid for <def RIL_MSGTYPE_IN_DELIVER>, <def RIL_MSGTYPE_OUT_SUBMIT>,
  2602. // <def RIL_MSGTYPE_IN_STATUS>, and <def RIL_MSGTYPE_OUT_COMMAND>)
  2603. RIL_MSGFLAG_REJECTDUPS = $00000008; // @constdefine TBD (valid for <def RIL_MSGTYPE_OUT_SUBMIT> only)
  2604. RIL_MSGFLAG_STATUSREPORTRETURNED = $00000010; // @constdefine (valid for <def RIL_MSGTYPE_IN_DELIVER> only)
  2605. RIL_MSGFLAG_STATUSREPORTREQUESTED = $00000020; // @constdefine (valid for <def RIL_MSGTYPE_OUT_SUBMIT> and <def RIL_MSGTYPE_OUT_COMMAND>)
  2606. RIL_MSGFLAG_CAUSEDBYCOMMAND = $00000040; // @constdefine (valid for <def RIL_MSGTYPE_IN_STATUS> only)
  2607. RIL_MSGFLAG_ALL = $0000007f; // @constdefine All flags are on
  2608. // -----------------------------------------------------------------------------
  2609. //
  2610. // @doc EXTERNAL
  2611. //
  2612. // @constants Message Protocol | Message protocol IDs
  2613. //
  2614. // @comm None
  2615. //
  2616. // -----------------------------------------------------------------------------
  2617. const
  2618. RIL_MSGPROTOCOL_UNKNOWN = $00000000; // @constdefine TBD
  2619. RIL_MSGPROTOCOL_SMETOSME = $00000001; // @constdefine TBD
  2620. RIL_MSGPROTOCOL_IMPLICIT = $00000002; // @constdefine TBD
  2621. RIL_MSGPROTOCOL_TELEX = $00000003; // @constdefine TBD
  2622. RIL_MSGPROTOCOL_TELEFAX_GROUP3 = $00000004; // @constdefine TBD
  2623. RIL_MSGPROTOCOL_TELEFAX_GROUP4 = $00000005; // @constdefine TBD
  2624. RIL_MSGPROTOCOL_VOICEPHONE = $00000006; // @constdefine TBD
  2625. RIL_MSGPROTOCOL_ERMES = $00000007; // @constdefine TBD
  2626. RIL_MSGPROTOCOL_PAGING = $00000008; // @constdefine TBD
  2627. RIL_MSGPROTOCOL_VIDEOTEX = $00000009; // @constdefine TBD
  2628. RIL_MSGPROTOCOL_TELETEX = $0000000a; // @constdefine TBD
  2629. RIL_MSGPROTOCOL_TELETEX_PSPDN = $0000000b; // @constdefine TBD
  2630. RIL_MSGPROTOCOL_TELETEX_CSPDN = $0000000c; // @constdefine TBD
  2631. RIL_MSGPROTOCOL_TELETEX_PSTN = $0000000d; // @constdefine TBD
  2632. RIL_MSGPROTOCOL_TELETEX_ISDN = $0000000e; // @constdefine TBD
  2633. RIL_MSGPROTOCOL_UCI = $0000000f; // @constdefine TBD
  2634. RIL_MSGPROTOCOL_MSGHANDLING = $00000010; // @constdefine TBD
  2635. RIL_MSGPROTOCOL_X400 = $00000011; // @constdefine TBD
  2636. RIL_MSGPROTOCOL_EMAIL = $00000012; // @constdefine TBD
  2637. RIL_MSGPROTOCOL_SCSPECIFIC1 = $00000013; // @constdefine TBD
  2638. RIL_MSGPROTOCOL_SCSPECIFIC2 = $00000014; // @constdefine TBD
  2639. RIL_MSGPROTOCOL_SCSPECIFIC3 = $00000015; // @constdefine TBD
  2640. RIL_MSGPROTOCOL_SCSPECIFIC4 = $00000016; // @constdefine TBD
  2641. RIL_MSGPROTOCOL_SCSPECIFIC5 = $00000017; // @constdefine TBD
  2642. RIL_MSGPROTOCOL_SCSPECIFIC6 = $00000018; // @constdefine TBD
  2643. RIL_MSGPROTOCOL_SCSPECIFIC7 = $00000019; // @constdefine TBD
  2644. RIL_MSGPROTOCOL_GSMSTATION = $0000001a; // @constdefine TBD
  2645. RIL_MSGPROTOCOL_SM_TYPE0 = $0000001b; // @constdefine TBD
  2646. RIL_MSGPROTOCOL_RSM_TYPE1 = $0000001c; // @constdefine TBD
  2647. RIL_MSGPROTOCOL_RSM_TYPE2 = $0000001d; // @constdefine TBD
  2648. RIL_MSGPROTOCOL_RSM_TYPE3 = $0000001e; // @constdefine TBD
  2649. RIL_MSGPROTOCOL_RSM_TYPE4 = $0000001f; // @constdefine TBD
  2650. RIL_MSGPROTOCOL_RSM_TYPE5 = $00000020; // @constdefine TBD
  2651. RIL_MSGPROTOCOL_RSM_TYPE6 = $00000021; // @constdefine TBD
  2652. RIL_MSGPROTOCOL_RSM_TYPE7 = $00000022; // @constdefine TBD
  2653. RIL_MSGPROTOCOL_RETURNCALL = $00000023; // @constdefine TBD
  2654. RIL_MSGPROTOCOL_ME_DOWNLOAD = $00000024; // @constdefine TBD
  2655. RIL_MSGPROTOCOL_DEPERSONALIZATION = $00000025; // @constdefine TBD
  2656. RIL_MSGPROTOCOL_SIM_DOWNLOAD = $00000026; // @constdefine TBD
  2657. // -----------------------------------------------------------------------------
  2658. //
  2659. // @doc EXTERNAL
  2660. //
  2661. // @constants Message Delivery | Message delivery status values
  2662. //
  2663. // @comm None
  2664. //
  2665. // -----------------------------------------------------------------------------
  2666. const
  2667. RIL_MSGDLVSTATUS_RECEIVEDBYSME = $00000001; // @constdefine TBD
  2668. RIL_MSGDLVSTATUS_FORWARDEDTOSME = $00000002; // @constdefine TBD
  2669. RIL_MSGDLVSTATUS_REPLACEDBYSC = $00000003; // @constdefine TBD
  2670. RIL_MSGDLVSTATUS_CONGESTION_TRYING = $00000004; // @constdefine TBD
  2671. RIL_MSGDLVSTATUS_SMEBUSY_TRYING = $00000005; // @constdefine TBD
  2672. RIL_MSGDLVSTATUS_SMENOTRESPONDING_TRYING = $00000006; // @constdefine TBD
  2673. RIL_MSGDLVSTATUS_SVCREJECTED_TRYING = $00000007; // @constdefine TBD
  2674. RIL_MSGDLVSTATUS_QUALITYUNAVAIL_TRYING = $00000008; // @constdefine TBD
  2675. RIL_MSGDLVSTATUS_SMEERROR_TRYING = $00000009; // @constdefine TBD
  2676. RIL_MSGDLVSTATUS_CONGESTION = $0000000a; // @constdefine TBD
  2677. RIL_MSGDLVSTATUS_SMEBUSY = $0000000b; // @constdefine TBD
  2678. RIL_MSGDLVSTATUS_SMENOTRESPONDING = $0000000c; // @constdefine TBD
  2679. RIL_MSGDLVSTATUS_SVCREJECTED = $0000000d; // @constdefine TBD
  2680. RIL_MSGDLVSTATUS_QUALITYUNAVAIL_TEMP = $0000000e; // @constdefine TBD
  2681. RIL_MSGDLVSTATUS_SMEERROR = $0000000f; // @constdefine TBD
  2682. RIL_MSGDLVSTATUS_REMOTEPROCERROR = $00000010; // @constdefine TBD
  2683. RIL_MSGDLVSTATUS_INCOMPATIBLEDEST = $00000011; // @constdefine TBD
  2684. RIL_MSGDLVSTATUS_CONNECTIONREJECTED = $00000012; // @constdefine TBD
  2685. RIL_MSGDLVSTATUS_NOTOBTAINABLE = $00000013; // @constdefine TBD
  2686. RIL_MSGDLVSTATUS_NOINTERNETWORKING = $00000014; // @constdefine TBD
  2687. RIL_MSGDLVSTATUS_VPEXPIRED = $00000015; // @constdefine TBD
  2688. RIL_MSGDLVSTATUS_DELETEDBYORIGSME = $00000016; // @constdefine TBD
  2689. RIL_MSGDLVSTATUS_DELETEDBYSC = $00000017; // @constdefine TBD
  2690. RIL_MSGDLVSTATUS_NOLONGEREXISTS = $00000018; // @constdefine TBD
  2691. RIL_MSGDLVSTATUS_QUALITYUNAVAIL = $00000019; // @constdefine TBD
  2692. RIL_MSGDLVSTATUS_RESERVED_COMPLETED = $0000001a; // @constdefine TBD
  2693. RIL_MSGDLVSTATUS_RESERVED_TRYING = $0000001b; // @constdefine TBD
  2694. RIL_MSGDLVSTATUS_RESERVED_ERROR = $0000001c; // @constdefine TBD
  2695. RIL_MSGDLVSTATUS_RESERVED_TMPERROR = $0000001d; // @constdefine TBD
  2696. RIL_MSGDLVSTATUS_SCSPECIFIC_COMPLETED = $0000001e; // @constdefine TBD
  2697. RIL_MSGDLVSTATUS_SCSPECIFIC_TRYING = $0000001f; // @constdefine TBD
  2698. RIL_MSGDLVSTATUS_SCSPECIFIC_ERROR = $00000020; // @constdefine TBD
  2699. RIL_MSGDLVSTATUS_SCSPECIFIC_TMPERROR = $00000021; // @constdefine TBD
  2700. // -----------------------------------------------------------------------------
  2701. //
  2702. // @doc EXTERNAL
  2703. //
  2704. // @constants Message Validity | Message validity period formats
  2705. //
  2706. // @comm None
  2707. //
  2708. // -----------------------------------------------------------------------------
  2709. const
  2710. RIL_MSGVP_NONE = $00000000; // @constdefine TBD
  2711. RIL_MSGVP_RELATIVE = $00000001; // @constdefine TBD
  2712. RIL_MSGVP_ENHANCED = $00000002; // @constdefine TBD
  2713. RIL_MSGVP_ABSOLUTE = $00000003; // @constdefine TBD
  2714. // -----------------------------------------------------------------------------
  2715. //
  2716. // @doc EXTERNAL
  2717. //
  2718. // @constants Message Command | Message command types
  2719. //
  2720. // @comm None
  2721. //
  2722. // -----------------------------------------------------------------------------
  2723. const
  2724. RIL_MSGCMDTYPE_STATUSREQ = $00000001; // @constdefine TBD
  2725. RIL_MSGCMDTYPE_CANCELSTATUSREQ = $00000002; // @constdefine TBD
  2726. RIL_MSGCMDTYPE_DELETEMESSAGE = $00000003; // @constdefine TBD
  2727. RIL_MSGCMDTYPE_ENABLESTATUSREQ = $00000004; // @constdefine TBD
  2728. // -----------------------------------------------------------------------------
  2729. //
  2730. // @doc EXTERNAL
  2731. //
  2732. // @constants Message Geographic | Message geographic scopes
  2733. //
  2734. // @comm None
  2735. //
  2736. // -----------------------------------------------------------------------------
  2737. const
  2738. RIL_GEOSCOPE_CELL_IMMEDIATE = $00000001; // @constdefine TBD
  2739. RIL_GEOSCOPE_CELL = $00000002; // @constdefine TBD
  2740. RIL_GEOSCOPE_PLMN = $00000003; // @constdefine TBD
  2741. RIL_GEOSCOPE_LOCATIONAREA = $00000004; // @constdefine TBD
  2742. // -----------------------------------------------------------------------------
  2743. //
  2744. // @doc EXTERNAL
  2745. //
  2746. // @constants Message Status | Message status values
  2747. //
  2748. // @comm None
  2749. //
  2750. // -----------------------------------------------------------------------------
  2751. const
  2752. RIL_MSGSTATUS_UNKNOWN = $00000000; // @constdefine TBD
  2753. RIL_MSGSTATUS_RECUNREAD = $00000001; // @constdefine TBD
  2754. RIL_MSGSTATUS_RECREAD = $00000002; // @constdefine TBD
  2755. RIL_MSGSTATUS_STOUNSENT = $00000003; // @constdefine TBD
  2756. RIL_MSGSTATUS_STOSENT = $00000004; // @constdefine TBD
  2757. // -----------------------------------------------------------------------------
  2758. //
  2759. // @doc EXTERNAL
  2760. //
  2761. // @constants Message Send | Send message options
  2762. //
  2763. // @comm None
  2764. //
  2765. // -----------------------------------------------------------------------------
  2766. const
  2767. RIL_SENDOPT_NONE = $00000000; // @constdefine TBD
  2768. RIL_SENDOPT_PERSISTLINK = $00000001; // @constdefine TBD
  2769. // -----------------------------------------------------------------------------
  2770. //
  2771. // @doc EXTERNAL
  2772. //
  2773. // @constants Phone Locked | Phone locked states
  2774. //
  2775. // @comm None
  2776. //
  2777. // -----------------------------------------------------------------------------
  2778. const
  2779. RIL_LOCKEDSTATE_UNKNOWN = $00000000; // @constdefine Locking state unknown
  2780. RIL_LOCKEDSTATE_READY = $00000001; // @constdefine ME not locked
  2781. RIL_LOCKEDSTATE_SIM_PIN = $00000002; // @constdefine ME awaiting PIN
  2782. RIL_LOCKEDSTATE_SIM_PUK = $00000003; // @constdefine ME awaiting PUK
  2783. RIL_LOCKEDSTATE_PH_SIM_PIN = $00000004; // @constdefine ME awaiting phone-to-sim password
  2784. RIL_LOCKEDSTATE_PH_FSIM_PIN = $00000005; // @constdefine ME awaiting phone-to-first-sim password
  2785. RIL_LOCKEDSTATE_PH_FSIM_PUK = $00000006; // @constdefine ME awaiting phone-to-first-sim PUK
  2786. RIL_LOCKEDSTATE_SIM_PIN2 = $00000007; // @constdefine ME awaiting PIN2/CHV2
  2787. RIL_LOCKEDSTATE_SIM_PUK2 = $00000008; // @constdefine ME awaiting PUK2
  2788. RIL_LOCKEDSTATE_PH_NET_PIN = $00000009; // @constdefine ME awaiting network personilzation PIN
  2789. RIL_LOCKEDSTATE_PH_NET_PUK = $0000000a; // @constdefine ME awaiting network personilzation PUK
  2790. RIL_LOCKEDSTATE_PH_NETSUB_PIN = $0000000b; // @constdefine ME awaiting network subset personilzation PIN
  2791. RIL_LOCKEDSTATE_PH_NETSUB_PUK = $0000000c; // @constdefine ME awaiting network subset personilzation PUK
  2792. RIL_LOCKEDSTATE_PH_SP_PIN = $0000000d; // @constdefine ME awaiting service provider PIN
  2793. RIL_LOCKEDSTATE_PH_SP_PUK = $0000000e; // @constdefine ME awaiting service provider PUK
  2794. RIL_LOCKEDSTATE_PH_CORP_PIN = $0000000f; // @constdefine ME awaiting corporate personilzation PIN
  2795. RIL_LOCKEDSTATE_PH_CORP_PUK = $00000010; // @constdefine ME awaiting corporate personilzation PUK
  2796. // -----------------------------------------------------------------------------
  2797. //
  2798. // @doc EXTERNAL
  2799. //
  2800. // @constants Lock Facility | Facilities for phone locking
  2801. //
  2802. // @comm None
  2803. //
  2804. // -----------------------------------------------------------------------------
  2805. const
  2806. RIL_LOCKFACILITY_CNTRL = $00000001; // @constdefine Lock control curface
  2807. RIL_LOCKFACILITY_PH_SIM = $00000002; // @constdefine Lock phone to SIM card
  2808. RIL_LOCKFACILITY_PH_FSIM = $00000003; // @constdefine Lock phone to first SIM card
  2809. RIL_LOCKFACILITY_SIM = $00000004; // @constdefine Lock SIM card
  2810. RIL_LOCKFACILITY_SIM_PIN2 = $00000005; // @constdefine SIM PIN2 (only for RIL_ChangeLockingPassword())
  2811. RIL_LOCKFACILITY_SIM_FIXEDIALING = $00000006; // @constdefine SIM fixed dialing memory
  2812. RIL_LOCKFACILITY_NETWORKPERS = $00000007; // @constdefine Network personalization
  2813. RIL_LOCKFACILITY_NETWORKSUBPERS = $00000008; // @constdefine Network subset personalization
  2814. RIL_LOCKFACILITY_SERVICEPROVPERS = $00000009; // @constdefine Service provider personalization
  2815. RIL_LOCKFACILITY_CORPPERS = $0000000a; // @constdefine Corporate personalization
  2816. // -----------------------------------------------------------------------------
  2817. //
  2818. // @doc EXTERNAL
  2819. //
  2820. // @constants Lock Status | Locking status values
  2821. //
  2822. // @comm None
  2823. //
  2824. // -----------------------------------------------------------------------------
  2825. const
  2826. RIL_LOCKINGSTATUS_DISABLED = $00000001; // @constdefine Disable
  2827. RIL_LOCKINGSTATUS_ENABLED = $00000002; // @constdefine Enabled
  2828. // -----------------------------------------------------------------------------
  2829. //
  2830. // @doc EXTERNAL
  2831. //
  2832. // @constants SIM Security | SIM Security states
  2833. //
  2834. // @comm None
  2835. //
  2836. // -----------------------------------------------------------------------------
  2837. const
  2838. RIL_SIMSECURITYSTATE_UNKNOWN = $00000000; // @constdefine SIM security state unknown
  2839. RIL_SIMSECURITYSTATE_PINREQUESTED = $00000001; // @constdefine SIM security state requested PIN
  2840. RIL_SIMSECURITYSTATE_PINRECEIVED = $00000002; // @constdefine SIM security state received PIN
  2841. // -----------------------------------------------------------------------------
  2842. //
  2843. // @doc EXTERNAL
  2844. //
  2845. // @constants Call Barr Facility | Types of call barring
  2846. //
  2847. // @comm None
  2848. //
  2849. // -----------------------------------------------------------------------------
  2850. const
  2851. RIL_BARRTYPE_ALLOUTGOING = $00000001; // @constdefine Barr all outgoing calls
  2852. RIL_BARRTYPE_OUTGOINGINT = $00000002; // @constdefine Barr outgoing international calls
  2853. RIL_BARRTYPE_OUTGOINGINTEXTOHOME = $00000003; // @constdefine Barr outgoing international calls except to home country
  2854. RIL_BARRTYPE_ALLINCOMING = $00000004; // @constdefine Barr all incoming calls
  2855. RIL_BARRTYPE_INCOMINGROAMING = $00000005; // @constdefine Barr incoming calls when roaming outside of home country
  2856. RIL_BARRTYPE_INCOMINGNOTINSIM = $00000006; // @constdefine Barr incoming calls from numbers not stored to SIM memory
  2857. RIL_BARRTYPE_ALLBARRING = $00000007; // @constdefine All barring services
  2858. RIL_BARRTYPE_ALLOUTGOINGBARRING = $00000008; // @constdefine All outgoing barring services
  2859. RIL_BARRTYPE_ALLINCOMINGBARRING = $00000009; // @constdefine All incoming barring services
  2860. // -----------------------------------------------------------------------------
  2861. //
  2862. // @doc EXTERNAL
  2863. //
  2864. // @constants Call Barr Status | Status values for call barring
  2865. //
  2866. // @comm None
  2867. //
  2868. // -----------------------------------------------------------------------------
  2869. const
  2870. RIL_BARRINGSTATUS_DISABLED = $00000001; // @constdefine Disable
  2871. RIL_BARRINGSTATUS_ENABLED = $00000002; // @constdefine Disable
  2872. // -----------------------------------------------------------------------------
  2873. //
  2874. // @doc EXTERNAL
  2875. //
  2876. // @constants Equipment State | Equipment states
  2877. //
  2878. // @comm None
  2879. //
  2880. // -----------------------------------------------------------------------------
  2881. const
  2882. RIL_EQSTATE_UNKNOWN = $00000000; // @constdefine Unknown
  2883. RIL_EQSTATE_MINIMUM = $00000001; // @constdefine Minimum power state
  2884. RIL_EQSTATE_FULL = $00000002; // @constdefine Full functionality
  2885. RIL_EQSTATE_DISABLETX = $00000003; // @constdefine Transmitter disabled
  2886. RIL_EQSTATE_DISABLERX = $00000004; // @constdefine Receiver disabled
  2887. RIL_EQSTATE_DISABLETXANDRX = $00000005; // @constdefine Transmitter & receiver disabled
  2888. // -----------------------------------------------------------------------------
  2889. //
  2890. // @doc EXTERNAL
  2891. //
  2892. // @constants Radio Presence States | Radio Presence States
  2893. //
  2894. // @comm These states are determined by whether the driver is loaded or not
  2895. //
  2896. // -----------------------------------------------------------------------------
  2897. const
  2898. RIL_RADIOPRESENCE_NOTPRESENT = $00000000; // @constdefine There is not radio module present in the device
  2899. RIL_RADIOPRESENCE_PRESENT = $00000001; // @constdefine There is a radio module present that RIL can use
  2900. // -----------------------------------------------------------------------------
  2901. //
  2902. // @doc EXTERNAL
  2903. //
  2904. // @constants Driver defined Radio ON vs OFF State | Radio ON/OFF states
  2905. //
  2906. // @comm These values normally depend on the Equiptment state
  2907. //
  2908. // -----------------------------------------------------------------------------
  2909. const
  2910. RIL_RADIOSUPPORT_UNKNOWN = $00000000; // @constdefine The Radio Functionality is in an intermediate state
  2911. RIL_RADIOSUPPORT_OFF = $00000001; // @constdefine The Radio Functionality is OFF (DOES NOT Neccessarily mean safe for flight)
  2912. RIL_RADIOSUPPORT_ON = $00000002; // @constdefine The Radio Functionality is ON
  2913. // -----------------------------------------------------------------------------
  2914. //
  2915. // @doc EXTERNAL
  2916. //
  2917. // @constants Various components of the Radio are ready for external usage
  2918. //
  2919. // @comm This will be a mask of the below values
  2920. //
  2921. // -----------------------------------------------------------------------------
  2922. const
  2923. RIL_READYSTATE_NONE = $00000000; // @constdefine Nothing is ready yet
  2924. RIL_READYSTATE_INITIALIZED = $00000001; // @constdefine The Radio has been initialized (but may not be ready)
  2925. RIL_READYSTATE_SIM = $00000002; // @constdefine The Radio is ready for SIM Access
  2926. RIL_READYSTATE_SMS = $00000004; // @constdefine The Radio is ready for SMS messages
  2927. RIL_READYSTATE_UNLOCKED = $00000008; // @constdefine The SIM is unlocked
  2928. RIL_READYSTATE_SIM_PB = $00000010; // @constdefine The SIM PB has been fully copied to volatile memory and is ready for access
  2929. // -----------------------------------------------------------------------------
  2930. //
  2931. // @doc EXTERNAL
  2932. //
  2933. // @constants Various SIM card states.
  2934. //
  2935. // @comm NONE
  2936. //
  2937. // -----------------------------------------------------------------------------
  2938. const
  2939. RIL_SIMSTATUSCHANGED_NONE = $00000000; // @constdefine No status yet
  2940. RIL_SIMSTATUSCHANGED_FULL = $00000001; // @constdefine SIM card memory is full
  2941. RIL_SIMSTATUSCHANGED_NO_SIM = $00000002; // @constdefine No SIM card available
  2942. RIL_SIMSTATUSCHANGED_INVALID = $00000004; // @constdefine SIM card is invalid
  2943. RIL_SIMSTATUSCHANGED_BLOCKED = $00000008; // @constdefine SIM card is blocked
  2944. // -----------------------------------------------------------------------------
  2945. //
  2946. // @doc EXTERNAL
  2947. //
  2948. // @constants Phonebook Storage | Phonebook storage locations
  2949. //
  2950. // @comm None
  2951. //
  2952. // -----------------------------------------------------------------------------
  2953. const
  2954. RIL_PBLOC_UNKNOWN = $00000000; // @constdefine Unknown
  2955. RIL_PBLOC_SIMEMERGENCY = $00000001; // @constdefine Emergency numbers
  2956. RIL_PBLOC_SIMFIXDIALING = $00000002; // @constdefine Fixed dialing
  2957. RIL_PBLOC_SIMLASTDIALING = $00000003; // @constdefine Recent calls list
  2958. RIL_PBLOC_OWNNUMBERS = $00000004; // @constdefine TBD
  2959. RIL_PBLOC_SIMPHONEBOOK = $00000005; // @constdefine SIM phonebook
  2960. // -----------------------------------------------------------------------------
  2961. //
  2962. // @doc EXTERNAL
  2963. //
  2964. // @constants Special Phonebook | Special phonebook index value
  2965. //
  2966. // @comm None
  2967. //
  2968. // -----------------------------------------------------------------------------
  2969. const
  2970. RIL_PBINDEX_FIRSTAVAILABLE = $ffffffff; // @constdefine User first available entry
  2971. // -----------------------------------------------------------------------------
  2972. //
  2973. // @doc EXTERNAL
  2974. //
  2975. // @constants SIM Command | SIM commands
  2976. //
  2977. // @comm None
  2978. //
  2979. // -----------------------------------------------------------------------------
  2980. const
  2981. RIL_SIMCMD_READBINARY = $00000001; // @constdefine Read a binary
  2982. RIL_SIMCMD_READRECORD = $00000002; // @constdefine Read contents of a record
  2983. RIL_SIMCMD_GETRESPONSE = $00000003; // @constdefine Required to get output data for some commands
  2984. RIL_SIMCMD_UPDATEBINARY = $00000004; // @constdefine Update a transparent file
  2985. RIL_SIMCMD_UPDATERECORD = $00000005; // @constdefine Update a linear fixed or cyclic file
  2986. RIL_SIMCMD_STATUS = $00000006; // @constdefine Get status on a file
  2987. // -----------------------------------------------------------------------------
  2988. //
  2989. // @doc EXTERNAL
  2990. //
  2991. // @constants SIM Record | Different SIM file types
  2992. //
  2993. // @comm None
  2994. //
  2995. // -----------------------------------------------------------------------------
  2996. const
  2997. RIL_SIMRECORDTYPE_UNKNOWN = $00000000; // @constdefine An unknown file type
  2998. RIL_SIMRECORDTYPE_TRANSPARENT = $00000001; // @constdefine A single veriable lengthed record
  2999. RIL_SIMRECORDTYPE_CYCLIC = $00000002; // @constdefine A cyclic set of records, each of the same length
  3000. RIL_SIMRECORDTYPE_LINEAR = $00000003; // @constdefine A linear set of records, each of the same length
  3001. RIL_SIMRECORDTYPE_MASTER = $00000004; // @constdefine Every SIM has a single master record, effectively the head node
  3002. RIL_SIMRECORDTYPE_DEDICATED = $00000005; // @constdefine Effectively a "directory" file which is a parent of other records
  3003. // -----------------------------------------------------------------------------
  3004. //
  3005. // @doc EXTERNAL
  3006. //
  3007. // @constants SIM Toolkit Terminate | SIM Toolkit session termination causes
  3008. //
  3009. // @comm None
  3010. //
  3011. // -----------------------------------------------------------------------------
  3012. const
  3013. RIL_SIMTKITTERMCAUSE_USERSTOPPEDREDIAL = $00000001; // @constdefine User stopped redial attempts
  3014. RIL_SIMTKITTERMCAUSE_ENDOFREDIAL = $00000002; // @constdefine End of redial period
  3015. RIL_SIMTKITTERMCAUSE_USERENDEDSESSION = $00000003; // @constdefine Session terminated by user
  3016. // -----------------------------------------------------------------------------
  3017. //
  3018. // @doc EXTERNAL
  3019. //
  3020. // @params RILSIMTOOLKITNOTIFYCAPS
  3021. //
  3022. // @constants Unavailable | Detailed reason for support of toolkit functions
  3023. //
  3024. // @comm Values that variables information variables in RILSIMTOOLKITNOTIFYCAPS can take on
  3025. //
  3026. // -----------------------------------------------------------------------------
  3027. const
  3028. RIL_SIMTKN_MEIMPLEMENTS = $00000001; // @constdefine The ME must implement this notification
  3029. RIL_SIMTKN_RADIOIMPLEMENTS_NONOTIFICATION = $00000002; // @constdefine The radio will implement and not give a notification to the ME
  3030. RIL_SIMTKN_RADIOIMPLEMENTS_NOTIFICATION = $00000003; // @constdefine The radio will implement and give a notification to the ME that it was done
  3031. RIL_SIMTKN_RADIOIMPLEMENTS_REQUESTMEINPUT = $00000004; // @constdefine The radio will implement, but requests information from the ME first
  3032. RIL_SIMTKN_NOSUPPORT = $FFFFFFFF; // @constdefine RIL knows of this type of command but does not support.
  3033. // -----------------------------------------------------------------------------
  3034. //
  3035. // @doc EXTERNAL
  3036. //
  3037. // @constants Signal Strength | Special signal strength value
  3038. //
  3039. // @comm None
  3040. //
  3041. // -----------------------------------------------------------------------------
  3042. const
  3043. RIL_SIGNALSTRENGTH_UNKNOWN = $ffffffff; // @constdefine Unknown signal strength
  3044. // -----------------------------------------------------------------------------
  3045. //
  3046. // @doc EXTERNAL
  3047. //
  3048. // @constants Bit Error Rate | Special bit error rate value
  3049. //
  3050. // @comm None
  3051. //
  3052. // -----------------------------------------------------------------------------
  3053. const
  3054. RIL_BITERRORRATE_UNKNOWN = $ffffffff; // @constdefine Unknown signal strength
  3055. // -----------------------------------------------------------------------------
  3056. //
  3057. // @doc EXTERNAL
  3058. //
  3059. // @constants Remote Party | Remote party information validity types
  3060. //
  3061. // @comm None
  3062. //
  3063. // -----------------------------------------------------------------------------
  3064. const
  3065. RIL_REMOTEPARTYINFO_VALID = $00000001; // @constdefine Information valid
  3066. RIL_REMOTEPARTYINFO_WITHHELD = $00000002; // @constdefine Information withheld by other user
  3067. RIL_REMOTEPARTYINFO_UNAVAILABLE = $00000003; // @constdefine Network unable to send info
  3068. // -----------------------------------------------------------------------------
  3069. //
  3070. // @doc EXTERNAL
  3071. //
  3072. // @constants Disconnect Initiation | Disconnect initiation values
  3073. //
  3074. // @comm None
  3075. //
  3076. // -----------------------------------------------------------------------------
  3077. const
  3078. RIL_DISCINIT_NULL = $00000000; // @constdefine Nothing
  3079. RIL_DISCINIT_LOCAL = $00000001; // @constdefine Local party initiated
  3080. RIL_DISCINIT_REMOTE = $00000002; // @constdefine Remote party initiated
  3081. RIL_DISCINIT_NETWORKERROR = $00000003; // @constdefine The call was disconnected due to a network error condition
  3082. RIL_DISCINIT_BUSY = $00000004; // @constdefine Busy
  3083. // -----------------------------------------------------------------------------
  3084. //
  3085. // @doc EXTERNAL
  3086. //
  3087. // @constants Subaddress Type | Supplementary service data status values
  3088. //
  3089. // @comm None
  3090. //
  3091. // -----------------------------------------------------------------------------
  3092. const
  3093. RIL_SUPSVCDATASTATUS_NOINFOREQUIRED = $00000001; // @constdefine TBD
  3094. RIL_SUPSVCDATASTATUS_FURTHERINFOREQUIRED = $00000002; // @constdefine TBD
  3095. RIL_SUPSVCDATASTATUS_TERMINATED = $00000003; // @constdefine TBD
  3096. RIL_SUPSVCDATASTATUS_OTHERCLIENTRESPONDED = $00000004; // @constdefine TBD
  3097. RIL_SUPSVCDATASTATUS_UNSUPPORTED = $00000005; // @constdefine TBD
  3098. RIL_SUPSVCDATASTATUS_TIMEOUT = $00000006; // @constdefine TBD
  3099. RIL_SUPSVCDATASTATUS_ERROR = $00000007; // @constdefine TBD
  3100. // -----------------------------------------------------------------------------
  3101. //
  3102. // @doc EXTERNAL
  3103. //
  3104. // @constants GPRS Protocol | GPRS Packet Protocols
  3105. //
  3106. // @comm None
  3107. //
  3108. // -----------------------------------------------------------------------------
  3109. const
  3110. RIL_GPRSPROTOCOL_UNKNOWN = $00000000; // @constdefine Unknown
  3111. RIL_GPRSPROTOCOL_X25 = $00000001; // @constdefine ITU-T/CCITT X.25 Layer 4
  3112. RIL_GPRSPROTOCOL_IP = $00000002; // @constdefine Internet Protocol (IETF STD 5)
  3113. RIL_GPRSPROTOCOL_IHOSP = $00000004; // @constdefine Internet Hosted Octet Stream Protocol
  3114. RIL_GPRSPROTOCOL_PPP = $00000008; // @constdefine Point to Point Protocol
  3115. RIL_GPRSPROTOCOL_ALL = $0000000f;
  3116. // -----------------------------------------------------------------------------
  3117. //
  3118. // @doc EXTERNAL
  3119. //
  3120. // @constants GPRS Protocol | GPRS L2 Protocols
  3121. //
  3122. // @comm None
  3123. //
  3124. // See GSM 07.07 10.1.6 for definitions
  3125. // -----------------------------------------------------------------------------
  3126. const
  3127. RIL_GPRSL2PROTOCOL_UNKNOWN = $00000000; // @constdefine
  3128. RIL_GPRSL2PROTOCOL_NULL = $00000001; // @constdefine none, for PDP type OSP:IHOSS
  3129. RIL_GPRSL2PROTOCOL_PPP = $00000002; // @constdefine Point-to-point protocol for a PDP such as IP
  3130. RIL_GPRSL2PROTOCOL_PAD = $00000004; // @constdefine character stream for X.25 character (triple X PAD) mode
  3131. RIL_GPRSL2PROTOCOL_X25 = $00000008; // @constdefine X.25 L2 (LAPB) for X.25 packet mode
  3132. RIL_GPRSL2PROTOCOL_ALL = $0000000f;
  3133. // -----------------------------------------------------------------------------
  3134. //
  3135. // @doc EXTERNAL
  3136. //
  3137. // @constants GPRS Data Comp | GPRS Data Compression
  3138. //
  3139. // @comm None
  3140. //
  3141. // -----------------------------------------------------------------------------
  3142. const
  3143. RIL_GPRSDATACOMP_OFF = $00000001; // @constdefine compression off
  3144. RIL_GPRSDATACOMP_ON = $00000002; // @constdefine compression off
  3145. RIL_GPRSDATACOMP_ALL = $00000003;
  3146. // -----------------------------------------------------------------------------
  3147. //
  3148. // @doc EXTERNAL
  3149. //
  3150. // @constants GPRS Header Comp | GPRS Header Compression
  3151. //
  3152. // @comm None
  3153. //
  3154. // -----------------------------------------------------------------------------
  3155. const
  3156. RIL_GPRSHEADERCOMP_OFF = $00000001; // @constdefine compression off
  3157. RIL_GPRSHEADERCOMP_ON = $00000002; // @constdefine compression off
  3158. RIL_GPRSHEADERCOMP_ALL = $00000003;
  3159. // -----------------------------------------------------------------------------
  3160. //
  3161. // @doc EXTERNAL
  3162. //
  3163. // @constants GPRS Precedence Class | GPRS Precedence Class
  3164. //
  3165. // @comm None
  3166. //
  3167. // -----------------------------------------------------------------------------
  3168. const
  3169. RIL_GPRSPRECEDENCECLASS_SUBSCRIBED = $00000001; // @constdefine subscribed value stored in network
  3170. RIL_GPRSPRECEDENCECLASS_HIGH = $00000002; // @constdefine high priority
  3171. RIL_GPRSPRECEDENCECLASS_NORMAL = $00000004; // @constdefine normal priority
  3172. RIL_GPRSPRECEDENCECLASS_LOW = $00000008; // @constdefine low priority
  3173. RIL_GPRSPRECEDENCECLASS_ALL = $0000000f;
  3174. // -----------------------------------------------------------------------------
  3175. //
  3176. // @doc EXTERNAL
  3177. //
  3178. // @constants GPRS Delay Class | GPRS Delay Class
  3179. //
  3180. // @comm None
  3181. //
  3182. // -----------------------------------------------------------------------------
  3183. const
  3184. RIL_GPRSDELAYCLASS_SUBSCRIBED = $00000001; // @constdefine subscribed value stored in network
  3185. RIL_GPRSDELAYCLASS_PREDICTIVE1 = $00000002; // @constdefine see gsm 02.60
  3186. RIL_GPRSDELAYCLASS_PREDICTIVE2 = $00000004; // @constdefine see gsm 02.60
  3187. RIL_GPRSDELAYCLASS_PREDICTIVE3 = $00000008; // @constdefine see gsm 02.60
  3188. RIL_GPRSDELAYCLASS_BESTEFFORT = $00000010; // @constdefine see gsm 02.60
  3189. RIL_GPRSDELAYCLASS_ALL = $0000001f;
  3190. // -----------------------------------------------------------------------------
  3191. //
  3192. // @doc EXTERNAL
  3193. //
  3194. // @constants GPRS Reliability Class | GPRS Reliability Class
  3195. //
  3196. // @comm None
  3197. //
  3198. // -----------------------------------------------------------------------------
  3199. const
  3200. RIL_GPRSRELIABILITYCLASS_SUBSCRIBED = $00000001; // @constdefine subscribed value stored in network
  3201. RIL_GPRSRELIABILITYCLASS_1 = $00000002; // @constdefine see gsm 03.60
  3202. RIL_GPRSRELIABILITYCLASS_2 = $00000004; // @constdefine see gsm 03.60
  3203. RIL_GPRSRELIABILITYCLASS_3 = $00000008; // @constdefine see gsm 03.60
  3204. RIL_GPRSRELIABILITYCLASS_4 = $00000010; // @constdefine see gsm 03.60
  3205. RIL_GPRSRELIABILITYCLASS_5 = $00000020; // @constdefine see gsm 03.60
  3206. RIL_GPRSRELIABILITYCLASS_ALL = $0000003f;
  3207. // -----------------------------------------------------------------------------
  3208. //
  3209. // @doc EXTERNAL
  3210. //
  3211. // @constants GPRS Class | GPRS Class
  3212. //
  3213. // @comm None
  3214. //
  3215. // -----------------------------------------------------------------------------
  3216. const
  3217. RIL_GPRSCLASS_UNKNOWN = $00000000; // @constdefine GPRS class unknown
  3218. RIL_GPRSCLASS_GSMANDGPRS = $00000001; // @constdefine Simultaneous voice and GPRS data
  3219. RIL_GPRSCLASS_GSMORGPRS = $00000002; // @constdefine Simultaneous voice and GPRS traffic channel, one or other data
  3220. RIL_GPRSCLASS_GSMORGPRS_EXCLUSIVE = $00000004; // @constdefine Either all voice or all GPRS, both traffic channels unmonitored
  3221. RIL_GPRSCLASS_GPRSONLY = $00000008; // @constdefine Only GPRS
  3222. RIL_GPRSCLASS_GSMONLY = $00000010; // @constdefine Only circuit switched voice and data
  3223. RIL_GPRSCLASS_ALL = $0000001f;
  3224. // -----------------------------------------------------------------------------
  3225. //
  3226. // @doc EXTERNAL
  3227. //
  3228. // @constants GPRS Peak Throughput Class | GPRS Peak Throughput Class
  3229. //
  3230. // @comm Constants represent bits per second
  3231. //
  3232. // -----------------------------------------------------------------------------
  3233. const
  3234. RIL_PEAKTHRUCLASS_SUBSCRIBED = $00000001; // @constdefine subscribed value stored in network
  3235. RIL_PEAKTHRUCLASS_8000 = $00000002; // @constdefine bits per second
  3236. RIL_PEAKTHRUCLASS_16000 = $00000004; // @constdefine bits per second
  3237. RIL_PEAKTHRUCLASS_32000 = $00000008; // @constdefine bits per second
  3238. RIL_PEAKTHRUCLASS_64000 = $00000010; // @constdefine bits per second
  3239. RIL_PEAKTHRUCLASS_128000 = $00000020; // @constdefine bits per second
  3240. RIL_PEAKTHRUCLASS_256000 = $00000040; // @constdefine bits per second
  3241. RIL_PEAKTHRUCLASS_512000 = $00000080; // @constdefine bits per second
  3242. RIL_PEAKTHRUCLASS_1024000 = $00000100; // @constdefine bits per second
  3243. RIL_PEAKTHRUCLASS_2048000 = $00000200; // @constdefine bits per second
  3244. RIL_PEAKTHRUCLASS_ALL = $000003ff;
  3245. // -----------------------------------------------------------------------------
  3246. //
  3247. // @doc EXTERNAL
  3248. //
  3249. // @constants GPRS Mean Throughput Class | GPRS Mean Throughput Class
  3250. //
  3251. // @comm Constants represent octets per hour
  3252. //
  3253. // -----------------------------------------------------------------------------
  3254. const
  3255. RIL_MEANTHRUCLASS_SUBSCRIBED = $00000001; // @constdefine subscribed value stored in network
  3256. RIL_MEANTHRUCLASS_100 = $00000002; // @constdefine 0.22 bits/second
  3257. RIL_MEANTHRUCLASS_200 = $00000004; // @constdefine 0.44 bits/second
  3258. RIL_MEANTHRUCLASS_500 = $00000008; // @constdefine 1.11 bits/second
  3259. RIL_MEANTHRUCLASS_1000 = $00000010; // @constdefine 2.2 bits/second
  3260. RIL_MEANTHRUCLASS_2000 = $00000020; // @constdefine 4.4 bits/second
  3261. RIL_MEANTHRUCLASS_5000 = $00000040; // @constdefine 11.1 bits/second
  3262. RIL_MEANTHRUCLASS_10000 = $00000080; // @constdefine 22 bits/second
  3263. RIL_MEANTHRUCLASS_20000 = $00000100; // @constdefine 44 bits/second
  3264. RIL_MEANTHRUCLASS_50000 = $00000200; // @constdefine 111 bits/second
  3265. RIL_MEANTHRUCLASS_100000 = $00000400; // @constdefine 220 bits/second
  3266. RIL_MEANTHRUCLASS_200000 = $00000800; // @constdefine 440 bits/second
  3267. RIL_MEANTHRUCLASS_500000 = $00001000; // @constdefine 1,110 bits/second
  3268. RIL_MEANTHRUCLASS_1000000 = $00002000; // @constdefine 2,200 bits/second
  3269. RIL_MEANTHRUCLASS_2000000 = $00004000; // @constdefine 4,400 bits/second
  3270. RIL_MEANTHRUCLASS_5000000 = $00008000; // @constdefine 11,100 bits/second
  3271. RIL_MEANTHRUCLASS_10000000 = $00010000; // @constdefine 22,000 bits/second
  3272. RIL_MEANTHRUCLASS_20000000 = $00020000; // @constdefine 44,000 bits/second
  3273. RIL_MEANTHRUCLASS_50000000 = $00040000; // @constdefine 111,000 bits/second
  3274. RIL_MEANTHRUCLASS_DONTCARE = $80000000; // @constdefine best effort
  3275. RIL_MEANTHRUCLASS_ALL = $8007ffff;
  3276. // -----------------------------------------------------------------------------
  3277. //
  3278. // @doc EXTERNAL
  3279. //
  3280. // @constants Complete Call Busy | Special value for all CCBS
  3281. //
  3282. // @comm None
  3283. //
  3284. // -----------------------------------------------------------------------------
  3285. const
  3286. RIL_CCBS_ALL = $ffffffff; // @constdefine All CCBS
  3287. // -----------------------------------------------------------------------------
  3288. //
  3289. // @doc EXTERNAL
  3290. //
  3291. // @constants GPRS SMS | Mobile Originated SMS Service Constants
  3292. //
  3293. // @comm None
  3294. //
  3295. // -----------------------------------------------------------------------------
  3296. const
  3297. RIL_MOSMSSERVICE_CIRCUIT = $00000001; // @constdefine circuit switched
  3298. RIL_MOSMSSERVICE_GPRS = $00000002; // @constdefine GPRS
  3299. RIL_MOSMSSERVICE_CIRCUITPREFERRED = $00000004; // @constdefine use both, circuit switched preferred
  3300. RIL_MOSMSSERVICE_GPRSPREFERRED = $00000008; // @constdefine use both, GPRS preferred
  3301. RIL_MOSMSSERVICE_ALL = $0000000f;
  3302. // -----------------------------------------------------------------------------
  3303. //
  3304. // @doc EXTERNAL
  3305. //
  3306. // @constants Password type | PIN or PUK password
  3307. //
  3308. // @comm Used to distiguish between a password that is a PIN vs PUK for RIL_ChangeLockingPassword
  3309. //
  3310. // -----------------------------------------------------------------------------
  3311. const
  3312. RIL_PASSWORDTYPE_PIN = $00000001; //@ The password type is a SIM PIN (editable password)
  3313. RIL_PASSWORDTYPE_PUK = $00000002; //@ The password type is a SIM PUK (Non-user editable)
  3314. // -----------------------------------------------------------------------------
  3315. //
  3316. // @doc EXTERNAL
  3317. //
  3318. // @constants System Capabilities
  3319. //
  3320. // @comm None
  3321. //
  3322. // -----------------------------------------------------------------------------
  3323. const
  3324. RIL_SYSTEMCAPS_NONE = $00000000; // @constdefine The system does not support any special capabilities.
  3325. RIL_SYSTEMCAPS_VOICEDATA = $00000001; // @constdefine The system supports simultaneous voice+Data
  3326. RIL_SYSTEMCAPS_ALL = $00000001; // @constdefine The system supports all special capabilities.
  3327. // -----------------------------------------------------------------------------
  3328. //
  3329. // @doc EXTERNAL
  3330. //
  3331. // @constants Caps Type | Capability types
  3332. //
  3333. // @comm None
  3334. //
  3335. // -----------------------------------------------------------------------------
  3336. const
  3337. RIL_CAPSTYPE_DIAL = $00000001; // @constdefine TBD
  3338. RIL_CAPSTYPE_DTMFDURATIONRANGE = $00000002; // @constdefine TBD
  3339. RIL_CAPSTYPE_CALLMGTCMDS = $00000003; // @constdefine TBD
  3340. RIL_CAPSTYPE_BEARERSERVICE = $00000004; // @constdefine TBD
  3341. RIL_CAPSTYPE_RLP = $00000005; // @constdefine TBD
  3342. RIL_CAPSTYPE_EQUIPMENTSTATES = $00000006; // @constdefine TBD
  3343. RIL_CAPSTYPE_PBSTORELOCATIONS = $00000007; // @constdefine TBD
  3344. RIL_CAPSTYPE_PBINDEXRANGE = $00000008; // @constdefine TBD
  3345. RIL_CAPSTYPE_PBENTRYLENGTH = $00000009; // @constdefine TBD
  3346. RIL_CAPSTYPE_MSGSERVICETYPES = $0000000a; // @constdefine TBD
  3347. RIL_CAPSTYPE_MSGMEMORYLOCATIONS = $0000000b; // @constdefine TBD
  3348. RIL_CAPSTYPE_BROADCASTMSGLANGS = $0000000c; // @constdefine TBD
  3349. RIL_CAPSTYPE_MSGCONFIGINDEXRANGE = $0000000d; // @constdefine TBD
  3350. RIL_CAPSTYPE_MSGSTATUSVALUES = $0000000e; // @constdefine TBD
  3351. RIL_CAPSTYPE_PREFOPINDEXRANGE = $0000000f; // @constdefine TBD
  3352. RIL_CAPSTYPE_LOCKFACILITIES = $00000010; // @constdefine TBD
  3353. RIL_CAPSTYPE_LOCKINGPWDLENGTHS = $00000011; // @constdefine TBD
  3354. RIL_CAPSTYPE_BARRTYPES = $00000012; // @constdefine TBD
  3355. RIL_CAPSTYPE_BARRINGPWDLENGTHS = $00000013; // @constdefine TBD
  3356. RIL_CAPSTYPE_FORWARDINGREASONS = $00000014; // @constdefine TBD
  3357. RIL_CAPSTYPE_INFOCLASSES = $00000015; // @constdefine TBD
  3358. RIL_CAPSTYPE_HSCSD = $00000016; // @constdefine TBD
  3359. RIL_CAPSTYPE_SIMTOOLKITNOTIFICATIONS = $00000017; // @constdefine TBD
  3360. RIL_CAPSTYPE_GPRSCLASS = $00000018; // @constdefine TBD
  3361. RIL_CAPSTYPE_GPRSCONTEXT = $00000019; // @constdefine TBD
  3362. RIL_CAPSTYPE_GPRSQOS = $0000001a; // @constdefine TBD
  3363. RIL_CAPSTYPE_GPRSQOSMIN = $0000001b; // @constdefine TBD
  3364. RIL_CAPSTYPE_GPRSMOSMS = $0000001c; // @constdefine TBD
  3365. RIL_CAPSTYPE_DATACOMPRESSION = $0000001d; // @constdefine TBD
  3366. RIL_CAPSTYPE_ERRORCORRECTION = $0000001e; // @constdefine TBD
  3367. RIL_CAPSTYPE_SIGNALQUALITYIMPLEMENTATION = $0000001f; // @constdefine TBD
  3368. RIL_CAPSTYPE_SIMSUPPORT = $00000020; // @constdefine TBD
  3369. RIL_CAPSTYPE_CALLPROGRESSNOTIFICATION = $00000021; // @constdefine TBD
  3370. RIL_CAPSTYPE_NOTIFICATIONIMPLEMENTATION = $00000022; // @constdefine TBD
  3371. RIL_CAPSTYPE_NITZNOTIFICATION = $00000023; // @constdefine TBD
  3372. RIL_CAPSTYPE_ARG_SMALLEST = RIL_CAPSTYPE_DIAL;
  3373. RIL_CAPSTYPE_ARG_LARGEST = RIL_CAPSTYPE_NITZNOTIFICATION;
  3374. // -----------------------------------------------------------------------------
  3375. //
  3376. // @doc EXTERNAL
  3377. //
  3378. // @constants Caps Call Type | NITZ type capabilities
  3379. //
  3380. // @comm None
  3381. //
  3382. // -----------------------------------------------------------------------------
  3383. const
  3384. RIL_CAPS_NITZ_DISABLED = $00000001; // @constdefine TBD
  3385. RIL_CAPS_NITZ_ENABLED = $00000002; // @constdefine TBD
  3386. // -----------------------------------------------------------------------------
  3387. //
  3388. // @doc EXTERNAL
  3389. //
  3390. // @constants Caps Call Type | Call type capabilities
  3391. //
  3392. // @comm None
  3393. //
  3394. // -----------------------------------------------------------------------------
  3395. const
  3396. RIL_CAPS_CALLTYPE_VOICE = $00000001; // @constdefine TBD
  3397. RIL_CAPS_CALLTYPE_DATA = $00000002; // @constdefine TBD
  3398. RIL_CAPS_CALLTYPE_FAX = $00000004; // @constdefine TBD
  3399. RIL_CAPS_CALLTYPE_PTT = $00000008; // @constdefine TBD
  3400. RIL_CAPS_CALLTYPE_VT = $00000010; // @constdefine TBD
  3401. // -----------------------------------------------------------------------------
  3402. //
  3403. // @doc EXTERNAL
  3404. //
  3405. // @constants Caps Dialing Option | Dialing options capabilities
  3406. //
  3407. // @comm None
  3408. //
  3409. // -----------------------------------------------------------------------------
  3410. const
  3411. RIL_CAPS_DIALOPT_RESTRICTID = RIL_DIALOPT_RESTRICTID; // @constdefine TBD
  3412. RIL_CAPS_DIALOPT_PRESENTID = RIL_DIALOPT_PRESENTID; // @constdefine TBD
  3413. RIL_CAPS_DIALOPT_CLOSEDGROUP = RIL_DIALOPT_CLOSEDGROUP; // @constdefine TBD
  3414. // -----------------------------------------------------------------------------
  3415. //
  3416. // @doc EXTERNAL
  3417. //
  3418. // @constants Caps Call Mgmt | Call management command capabilities
  3419. //
  3420. // @comm None
  3421. //
  3422. // -----------------------------------------------------------------------------
  3423. const
  3424. RIL_CAPS_CALLCMD_RELEASEHELD = $00000001; // @constdefine TBD
  3425. RIL_CAPS_CALLCMD_RELEASEACTIVE_ACCEPTHELD = $00000002; // @constdefine TBD
  3426. RIL_CAPS_CALLCMD_RELEASECALL = $00000004; // @constdefine TBD
  3427. RIL_CAPS_CALLCMD_HOLDACTIVE_ACCEPTHELD = $00000008; // @constdefine TBD
  3428. RIL_CAPS_CALLCMD_HOLDALLBUTONE = $00000010; // @constdefine TBD
  3429. RIL_CAPS_CALLCMD_ADDHELDTOCONF = $00000020; // @constdefine TBD
  3430. RIL_CAPS_CALLCMD_ADDHELDTOCONF_DISCONNECT = $00000040; // @constdefine TBD
  3431. RIL_CAPS_CALLCMD_INVOKECCBS = $00000080; // @constdefine TBD
  3432. // -----------------------------------------------------------------------------
  3433. //
  3434. // @doc EXTERNAL
  3435. //
  3436. // @constants Caps Bearer Speed1 | Bearer service speed capabilities (first set)
  3437. //
  3438. // @comm None
  3439. //
  3440. // -----------------------------------------------------------------------------
  3441. const
  3442. RIL_CAPS_SPEED1_AUTO = $00000001; // @constdefine TBD
  3443. RIL_CAPS_SPEED1_300_V21 = $00000002; // @constdefine TBD
  3444. RIL_CAPS_SPEED1_300_V110 = $00000004; // @constdefine TBD
  3445. RIL_CAPS_SPEED1_1200_V22 = $00000008; // @constdefine TBD
  3446. RIL_CAPS_SPEED1_1200_75_V23 = $00000010; // @constdefine TBD
  3447. RIL_CAPS_SPEED1_1200_V110 = $00000020; // @constdefine TBD
  3448. RIL_CAPS_SPEED1_1200_V120 = $00000040; // @constdefine TBD
  3449. RIL_CAPS_SPEED1_2400_V22BIS = $00000080; // @constdefine TBD
  3450. RIL_CAPS_SPEED1_2400_V26TER = $00000100; // @constdefine TBD
  3451. RIL_CAPS_SPEED1_2400_V110 = $00000200; // @constdefine TBD
  3452. RIL_CAPS_SPEED1_2400_V120 = $00000400; // @constdefine TBD
  3453. RIL_CAPS_SPEED1_4800_V32 = $00000800; // @constdefine TBD
  3454. RIL_CAPS_SPEED1_4800_V110 = $00001000; // @constdefine TBD
  3455. RIL_CAPS_SPEED1_4800_V120 = $00002000; // @constdefine TBD
  3456. RIL_CAPS_SPEED1_9600_V32 = $00004000; // @constdefine TBD
  3457. RIL_CAPS_SPEED1_9600_V34 = $00008000; // @constdefine TBD
  3458. RIL_CAPS_SPEED1_9600_V110 = $00010000; // @constdefine TBD
  3459. RIL_CAPS_SPEED1_9600_V120 = $00020000; // @constdefine TBD
  3460. RIL_CAPS_SPEED1_14400_V34 = $00040000; // @constdefine TBD
  3461. RIL_CAPS_SPEED1_14400_V110 = $00080000; // @constdefine TBD
  3462. RIL_CAPS_SPEED1_14400_V120 = $00100000; // @constdefine TBD
  3463. RIL_CAPS_SPEED1_19200_V34 = $00200000; // @constdefine TBD
  3464. RIL_CAPS_SPEED1_19200_V110 = $00400000; // @constdefine TBD
  3465. RIL_CAPS_SPEED1_19200_V120 = $00800000; // @constdefine TBD
  3466. RIL_CAPS_SPEED1_28800_V34 = $01000000; // @constdefine TBD
  3467. RIL_CAPS_SPEED1_28800_V110 = $02000000; // @constdefine TBD
  3468. RIL_CAPS_SPEED1_28800_V120 = $04000000; // @constdefine TBD
  3469. RIL_CAPS_SPEED1_38400_V110 = $08000000; // @constdefine TBD
  3470. RIL_CAPS_SPEED1_38400_V120 = $10000000; // @constdefine TBD
  3471. RIL_CAPS_SPEED1_48000_V110 = $20000000; // @constdefine TBD
  3472. RIL_CAPS_SPEED1_48000_V120 = $40000000; // @constdefine TBD
  3473. RIL_CAPS_SPEED1_56000_V110 = $80000000; // @constdefine TBD
  3474. // -----------------------------------------------------------------------------
  3475. //
  3476. // @doc EXTERNAL
  3477. //
  3478. // @constants Caps Bearer Speed2 | Bearer service speed capabilities (second set)
  3479. //
  3480. // @comm None
  3481. //
  3482. // -----------------------------------------------------------------------------
  3483. const
  3484. RIL_CAPS_SPEED2_56000_V120 = $00000001; // @constdefine TBD
  3485. RIL_CAPS_SPEED2_56000_TRANSP = $00000002; // @constdefine TBD
  3486. RIL_CAPS_SPEED2_64000_TRANSP = $00000004; // @constdefine TBD
  3487. RIL_CAPS_SPEED2_32000_PIAFS32K = $00000008; // @constdefine TBD
  3488. RIL_CAPS_SPEED2_64000_PIAFS64K = $00000010; // @constdefine TBD
  3489. RIL_CAPS_SPEED2_28800_MULTIMEDIA = $00000020; // @constdefine TBD
  3490. RIL_CAPS_SPEED2_32000_MULTIMEDIA = $00000040; // @constdefine TBD
  3491. RIL_CAPS_SPEED2_33600_MULTIMEDIA = $00000080; // @constdefine TBD
  3492. RIL_CAPS_SPEED2_56000_MULTIMEDIA = $00000100; // @constdefine TBD
  3493. RIL_CAPS_SPEED2_64000_MULTIMEDIA = $00000200; // @constdefine TBD
  3494. // -----------------------------------------------------------------------------
  3495. //
  3496. // @doc EXTERNAL
  3497. //
  3498. // @constants Caps Bearer Name | Bearer service name capabilities
  3499. //
  3500. // @comm None
  3501. //
  3502. // -----------------------------------------------------------------------------
  3503. const
  3504. RIL_CAPS_BSVCNAME_DATACIRCUIT_ASYNC_UDI_MODEM = $00000001; // @constdefine TBD
  3505. RIL_CAPS_BSVCNAME_DATACIRCUIT_SYNC_UDI_MODEM = $00000002; // @constdefine TBD
  3506. RIL_CAPS_BSVCNAME_PADACCESS_ASYNC_UDI = $00000004; // @constdefine TBD
  3507. RIL_CAPS_BSVCNAME_PACKETACCESS_SYNC_UDI = $00000008; // @constdefine TBD
  3508. RIL_CAPS_BSVCNAME_DATACIRCUIT_ASYNC_RDI = $00000010; // @constdefine TBD
  3509. RIL_CAPS_BSVCNAME_DATACIRCUIT_SYNC_RDI = $00000020; // @constdefine TBD
  3510. RIL_CAPS_BSVCNAME_PADACCESS_ASYNC_RDI = $00000040; // @constdefine TBD
  3511. RIL_CAPS_BSVCNAME_PACKETACCESS_SYNC_RDI = $00000080; // @constdefine TBD
  3512. // -----------------------------------------------------------------------------
  3513. //
  3514. // @doc EXTERNAL
  3515. //
  3516. // @constants Bearer CE | Bearer service connection element capabilities
  3517. //
  3518. // @comm None
  3519. //
  3520. // -----------------------------------------------------------------------------
  3521. const
  3522. RIL_CAPS_BSVCCE_TRANSPARENT = $00000001; // @constdefine TBD
  3523. RIL_CAPS_BSVCCE_NONTRANSPARENT = $00000002; // @constdefine TBD
  3524. RIL_CAPS_BSVCCE_BOTH_TRANSPARENT = $00000004; // @constdefine TBD
  3525. RIL_CAPS_BSVCCE_BOTH_NONTRANSPARENT = $00000008; // @constdefine TBD
  3526. // -----------------------------------------------------------------------------
  3527. //
  3528. // @doc EXTERNAL
  3529. //
  3530. // @constants Caps Equipment | Equipment state capabilities
  3531. //
  3532. // @comm None
  3533. //
  3534. // -----------------------------------------------------------------------------
  3535. const
  3536. RIL_CAPS_EQSTATE_MINIMUM = $00000001; // @constdefine TBD
  3537. RIL_CAPS_EQSTATE_FULL = $00000002; // @constdefine TBD
  3538. RIL_CAPS_EQSTATE_DISABLETX = $00000004; // @constdefine TBD
  3539. RIL_CAPS_EQSTATE_DISABLERX = $00000008; // @constdefine TBD
  3540. RIL_CAPS_EQSTATE_DISABLETXANDRX = $00000010; // @constdefine TBD
  3541. // -----------------------------------------------------------------------------
  3542. //
  3543. // @doc EXTERNAL
  3544. //
  3545. // @constants Caps Phonebook | Phonebook storage location capabilities
  3546. //
  3547. // @comm None
  3548. //
  3549. // -----------------------------------------------------------------------------
  3550. const
  3551. RIL_CAPS_PBLOC_SIMEMERGENCY = $00000001; // @constdefine TBD
  3552. RIL_CAPS_PBLOC_SIMFIXDIALING = $00000002; // @constdefine TBD
  3553. RIL_CAPS_PBLOC_SIMLASTDIALING = $00000004; // @constdefine TBD
  3554. RIL_CAPS_PBLOC_OWNNUMBERS = $00000008; // @constdefine TBD
  3555. RIL_CAPS_PBLOC_SIMPHONEBOOK = $00000010; // @constdefine TBD
  3556. // -----------------------------------------------------------------------------
  3557. //
  3558. // @doc EXTERNAL
  3559. //
  3560. // @constants Caps Message Service | Message service type capabilities
  3561. //
  3562. // @comm None
  3563. //
  3564. // -----------------------------------------------------------------------------
  3565. const
  3566. RIL_CAPS_MSGSVCTYPE_PHASE2 = $00000001; // @constdefine TBD
  3567. RIL_CAPS_MSGSVCTYPE_PHASE2PLUS = $00000002; // @constdefine TBD
  3568. // -----------------------------------------------------------------------------
  3569. //
  3570. // @doc EXTERNAL
  3571. //
  3572. // @constants Caps Message Storage | Message storage location capabilities
  3573. //
  3574. // @comm None
  3575. //
  3576. // -----------------------------------------------------------------------------
  3577. const
  3578. RIL_CAPS_MSGLOC_BROADCAST = $00000001; // @constdefine TBD
  3579. RIL_CAPS_MSGLOC_SIM = $00000002; // @constdefine TBD
  3580. RIL_CAPS_MSGLOC_STATUSREPORT = $00000004; // @constdefine TBD
  3581. // -----------------------------------------------------------------------------
  3582. //
  3583. // @doc EXTERNAL
  3584. //
  3585. // @constants Caps DCS Language | Message broadcast data coding scheme language capabilities
  3586. //
  3587. // @comm None
  3588. //
  3589. // -----------------------------------------------------------------------------
  3590. const
  3591. RIL_CAPS_DCSLANG_GERMAN = RIL_DCSLANG_GERMAN; // @constdefine TBD
  3592. RIL_CAPS_DCSLANG_ENGLISH = RIL_DCSLANG_ENGLISH; // @constdefine TBD
  3593. RIL_CAPS_DCSLANG_ITALIAN = RIL_DCSLANG_ITALIAN; // @constdefine TBD
  3594. RIL_CAPS_DCSLANG_FRENCH = RIL_DCSLANG_FRENCH; // @constdefine TBD
  3595. RIL_CAPS_DCSLANG_SPANISH = RIL_DCSLANG_SPANISH; // @constdefine TBD
  3596. RIL_CAPS_DCSLANG_DUTCH = RIL_DCSLANG_DUTCH; // @constdefine TBD
  3597. RIL_CAPS_DCSLANG_SWEDISH = RIL_DCSLANG_SWEDISH; // @constdefine TBD
  3598. RIL_CAPS_DCSLANG_DANISH = RIL_DCSLANG_DANISH; // @constdefine TBD
  3599. RIL_CAPS_DCSLANG_PORTUGUESE = RIL_DCSLANG_PORTUGUESE; // @constdefine TBD
  3600. RIL_CAPS_DCSLANG_FINNISH = RIL_DCSLANG_FINNISH; // @constdefine TBD
  3601. RIL_CAPS_DCSLANG_NORWEGIAN = RIL_DCSLANG_NORWEGIAN; // @constdefine TBD
  3602. RIL_CAPS_DCSLANG_GREEK = RIL_DCSLANG_GREEK; // @constdefine TBD
  3603. RIL_CAPS_DCSLANG_TURKISH = RIL_DCSLANG_TURKISH; // @constdefine TBD
  3604. RIL_CAPS_DCSLANG_HUNGARIAN = RIL_DCSLANG_HUNGARIAN; // @constdefine TBD
  3605. RIL_CAPS_DCSLANG_POLISH = RIL_DCSLANG_POLISH; // @constdefine TBD
  3606. RIL_CAPS_DCSLANG_CZECH = RIL_DCSLANG_CZECH; // @constdefine TBD
  3607. // -----------------------------------------------------------------------------
  3608. //
  3609. // @doc EXTERNAL
  3610. //
  3611. // @constants Caps Message Status | Message status capabilities
  3612. //
  3613. // @comm None
  3614. //
  3615. // -----------------------------------------------------------------------------
  3616. const
  3617. RIL_CAPS_MSGSTATUS_RECUNREAD = $00000001; // @constdefine TBD
  3618. RIL_CAPS_MSGSTATUS_RECREAD = $00000002; // @constdefine TBD
  3619. RIL_CAPS_MSGSTATUS_STOUNSENT = $00000004; // @constdefine TBD
  3620. RIL_CAPS_MSGSTATUS_STOSENT = $00000008; // @constdefine TBD
  3621. // -----------------------------------------------------------------------------
  3622. //
  3623. // @doc EXTERNAL
  3624. //
  3625. // @constants Caps SIM | SIM capabilities
  3626. //
  3627. // @comm None
  3628. //
  3629. // -----------------------------------------------------------------------------
  3630. const
  3631. RIL_CAPS_SIM_NONE = $00000000; // @constdefine TBD
  3632. RIL_CAPS_SIM_BASIC = $00000001; // @constdefine TBD
  3633. // -----------------------------------------------------------------------------
  3634. //
  3635. // @doc EXTERNAL
  3636. //
  3637. // @constants Caps Phone Lock | Locking faciliy capabilities
  3638. //
  3639. // @comm None
  3640. //
  3641. // -----------------------------------------------------------------------------
  3642. const
  3643. RIL_CAPS_LOCKFACILITY_NONE = $00000000; // @constdefine TBD
  3644. RIL_CAPS_LOCKFACILITY_CNTRL = $00000001; // @constdefine TBD
  3645. RIL_CAPS_LOCKFACILITY_PH_SIM = $00000002; // @constdefine TBD
  3646. RIL_CAPS_LOCKFACILITY_PH_FSIM = $00000004; // @constdefine TBD
  3647. RIL_CAPS_LOCKFACILITY_SIM = $00000008; // @constdefine TBD
  3648. RIL_CAPS_LOCKFACILITY_SIM_PIN2 = $00000010; // @constdefine TBD
  3649. RIL_CAPS_LOCKFACILITY_SIM_FIXEDIALING = $00000020; // @constdefine TBD
  3650. RIL_CAPS_LOCKFACILITY_NETWORKPERS = $00000040; // @constdefine TBD
  3651. RIL_CAPS_LOCKFACILITY_NETWORKSUBPERS = $00000080; // @constdefine TBD
  3652. RIL_CAPS_LOCKFACILITY_SERVICEPROVPERS = $00000100; // @constdefine TBD
  3653. RIL_CAPS_LOCKFACILITY_CORPPERS = $00000200; // @constdefine TBD
  3654. // -----------------------------------------------------------------------------
  3655. //
  3656. // @doc EXTERNAL
  3657. //
  3658. // @constants Caps Call Barr | Call barring capabilities
  3659. //
  3660. // @comm None
  3661. //
  3662. // -----------------------------------------------------------------------------
  3663. const
  3664. RIL_CAPS_BARRTYPE_ALLOUTGOING = $00000001; // @constdefine TBD
  3665. RIL_CAPS_BARRTYPE_OUTGOINGINT = $00000002; // @constdefine TBD
  3666. RIL_CAPS_BARRTYPE_OUTGOINGINTEXTOHOME = $00000004; // @constdefine TBD
  3667. RIL_CAPS_BARRTYPE_ALLINCOMING = $00000008; // @constdefine TBD
  3668. RIL_CAPS_BARRTYPE_INCOMINGROAMING = $00000010; // @constdefine TBD
  3669. RIL_CAPS_BARRTYPE_INCOMINGNOTINSIM = $00000020; // @constdefine TBD
  3670. RIL_CAPS_BARRTYPE_ALLBARRING = $00000040; // @constdefine TBD
  3671. RIL_CAPS_BARRTYPE_ALLOUTGOINGBARRING = $00000080; // @constdefine TBD
  3672. RIL_CAPS_BARRTYPE_ALLINCOMINGBARRING = $00000100; // @constdefine TBD
  3673. // -----------------------------------------------------------------------------
  3674. //
  3675. // @doc EXTERNAL
  3676. //
  3677. // @constants Caps Forwarding | Forwarding reason capabilities
  3678. //
  3679. // @comm None
  3680. //
  3681. // -----------------------------------------------------------------------------
  3682. const
  3683. RIL_CAPS_FWDREASON_UNCONDITIONAL = $00000001; // @constdefine TBD
  3684. RIL_CAPS_FWDREASON_MOBILEBUSY = $00000002; // @constdefine TBD
  3685. RIL_CAPS_FWDREASON_NOREPLY = $00000004; // @constdefine TBD
  3686. RIL_CAPS_FWDREASON_UNREACHABLE = $00000008; // @constdefine TBD
  3687. RIL_CAPS_FWDREASON_ALLFORWARDING = $00000010; // @constdefine TBD
  3688. RIL_CAPS_FWDREASON_ALLCONDITIONAL = $00000020; // @constdefine TBD
  3689. // -----------------------------------------------------------------------------
  3690. //
  3691. // @doc EXTERNAL
  3692. //
  3693. // @constants Caps Info Class | Telephony information class capabilities
  3694. //
  3695. // @comm None
  3696. //
  3697. // -----------------------------------------------------------------------------
  3698. const
  3699. RIL_CAPS_INFOCLASS_VOICE = RIL_INFOCLASS_VOICE; // @constdefine TBD
  3700. RIL_CAPS_INFOCLASS_DATA = RIL_INFOCLASS_DATA; // @constdefine TBD
  3701. RIL_CAPS_INFOCLASS_FAX = RIL_INFOCLASS_FAX; // @constdefine TBD
  3702. RIL_CAPS_INFOCLASS_SMS = RIL_INFOCLASS_SMS; // @constdefine TBD
  3703. RIL_CAPS_INFOCLASS_DATACIRCUITSYNC = RIL_INFOCLASS_DATACIRCUITSYNC; // @constdefine TBD
  3704. RIL_CAPS_INFOCLASS_DATACIRCUITASYNC = RIL_INFOCLASS_DATACIRCUITASYNC; // @constdefine TBD
  3705. RIL_CAPS_INFOCLASS_PACKETACCESS = RIL_INFOCLASS_PACKETACCESS; // @constdefine TBD
  3706. RIL_CAPS_INFOCLASS_PADACCESS = RIL_INFOCLASS_PADACCESS; // @constdefine TBD
  3707. // -----------------------------------------------------------------------------
  3708. //
  3709. // @doc EXTERNAL
  3710. //
  3711. // @constants Caps HSCSD Traffic Channel | HSCSD traffic channel coding capabilities
  3712. //
  3713. // @comm None
  3714. //
  3715. // -----------------------------------------------------------------------------
  3716. const
  3717. RIL_CAPS_HSCSDCODING_4800_FULLRATE = RIL_HSCSDCODING_4800_FULLRATE; // @constdefine TBD
  3718. RIL_CAPS_HSCSDCODING_9600_FULLRATE = RIL_HSCSDCODING_9600_FULLRATE; // @constdefine TBD
  3719. RIL_CAPS_HSCSDCODING_14400_FULLRATE = RIL_HSCSDCODING_14400_FULLRATE; // @constdefine TBD
  3720. // -----------------------------------------------------------------------------
  3721. //
  3722. // @doc EXTERNAL
  3723. //
  3724. // @constants Caps HSCSD Air Interface | HSCSD air interface user rate capabilities
  3725. //
  3726. // @comm None
  3727. //
  3728. // -----------------------------------------------------------------------------
  3729. const
  3730. RIL_CAPS_HSCSDAIURATE_9600 = $00000001; // @constdefine TBD
  3731. RIL_CAPS_HSCSDAIURATE_14400 = $00000002; // @constdefine TBD
  3732. RIL_CAPS_HSCSDAIURATE_19200 = $00000004; // @constdefine TBD
  3733. RIL_CAPS_HSCSDAIURATE_28800 = $00000008; // @constdefine TBD
  3734. RIL_CAPS_HSCSDAIURATE_38400 = $00000010; // @constdefine TBD
  3735. RIL_CAPS_HSCSDAIURATE_43200 = $00000020; // @constdefine TBD
  3736. RIL_CAPS_HSCSDAIURATE_57600 = $00000040; // @constdefine TBD
  3737. // -----------------------------------------------------------------------------
  3738. //
  3739. // @doc EXTERNAL
  3740. //
  3741. // @constants Caps SIM Toolkit | SIM Toolkit notification capabilities
  3742. //
  3743. // @comm None
  3744. //
  3745. // -----------------------------------------------------------------------------
  3746. const
  3747. RIL_CAPS_NOTIFY_SIMTOOLKITCMD = $00000001; // @constdefine TBD
  3748. RIL_CAPS_NOTIFY_SIMTOOLKITCALLSETUP = $00000002; // @constdefine TBD
  3749. RIL_CAPS_NOTIFY_SIMTOOLKITEVENT = $00000004; // @constdefine TBD
  3750. // -----------------------------------------------------------------------------
  3751. //
  3752. // @doc EXTERNAL
  3753. //
  3754. // @constants Caps Signal Implemetation Quality | Signal Quality Implemetation Capabilities
  3755. //
  3756. // @comm None
  3757. //
  3758. // -----------------------------------------------------------------------------
  3759. const
  3760. RIL_CAPS_SIGNALQUALITY_NOTIFICATION = $00000001; // @constdefine The Radio Module can deliver unsolicited Signal Quality Notifications
  3761. RIL_CAPS_SIGNALQUALITY_POLLING = $00000002; // @constdefine The Higher layers can poll the radio module in order to get the Signal Quality
  3762. // -----------------------------------------------------------------------------
  3763. //
  3764. // @doc EXTERNAL
  3765. //
  3766. // @constants Caps Radio Notificaiton Implemetation | Radio Notificaiton Implemetation Capabilities
  3767. //
  3768. // @comm None
  3769. //
  3770. // -----------------------------------------------------------------------------
  3771. const
  3772. RIL_CAPS_NOTIFICATION_CALLLIST = $00000001; // @constdefine The Radio Module can deliver unsolicited notifications of call list information
  3773. RIL_CAPS_NOTIFICATION_LINESTATUS = $00000002; // @constdefine The Radio Module can deliver unsolicited notifications of line status
  3774. RIL_CAPS_NOTIFICATION_SIGNALQUALITY = $00000004; // @constdefine The Radio Module can deliver unsolicited notifications of signal quality
  3775. RIL_CAPS_NOTIFICATION_BEARERSERVICEOPTIONS = $00000008; // @constdefine The Radio Module can deliver unsolicited notifications of bearer service options
  3776. RIL_CAPS_NOTIFICATION_DATACOMPRESSION = $00000010; // @constdefine The Radio Module can deliver unsolicited notifications of data compression
  3777. RIL_CAPS_NOTIFICATION_EQUIPMENTSTATE = $00000020; // @constdefine The Radio Module can deliver unsolicited notifications of equipment state
  3778. RIL_CAPS_NOTIFICATION_ERRORCORRECTION = $00000040; // @constdefine The Radio Module can deliver unsolicited notifications of error correction
  3779. RIL_CAPS_NOTIFICATION_GPRSADDRESS = $00000080; // @constdefine The Radio Module can deliver unsolicited notifications of GPRS address
  3780. RIL_CAPS_NOTIFICATION_GPRSATTACHED = $00000100; // @constdefine The Radio Module can deliver unsolicited notifications of GPRS attached status
  3781. RIL_CAPS_NOTIFICATION_GPRSCONTEXTLIST = $00000200; // @constdefine The Radio Module can deliver unsolicited notifications of GPRS context list
  3782. RIL_CAPS_NOTIFICATION_GPRSCONTEXTACTIVATEDLIST = $00000400; // @constdefine The Radio Module can deliver unsolicited notifications of GPRS context activated list
  3783. RIL_CAPS_NOTIFICATION_GPRSREGISTRATIONSTATUS = $00000800; // @constdefine The Radio Module can deliver unsolicited notifications of GPRS registration status
  3784. RIL_CAPS_NOTIFICATION_MINIMUMQUALITYOFSERVICELIST = $00001000; // @constdefine The Radio Module can deliver unsolicited notifications of minimum QoS list
  3785. RIL_CAPS_NOTIFICATION_REGISTRATIONSTATUS = $00002000; // @constdefine The Radio Module can deliver unsolicited notifications of registration status
  3786. RIL_CAPS_NOTIFICATION_REQUESTEDQUALITYOFSERVICELIST = $00004000; // @constdefine The Radio Module can deliver unsolicited notifications of requested QoS list
  3787. RIL_CAPS_NOTIFICATION_RLPOPTIONS = $00008000; // @constdefine The Radio Module can deliver unsolicited notifications of RLP options
  3788. // -----------------------------------------------------------------------------
  3789. //
  3790. // @doc EXTERNAL
  3791. //
  3792. // @constants Caps Radio Notificaiton Implemetation Registry Key | Radio Notificaiton Implemetation Capabilities Registry Key
  3793. //
  3794. // @comm None
  3795. //
  3796. // -----------------------------------------------------------------------------
  3797. const
  3798. RIL_CAPS_NOTIFICATION_KEY = 'Comm\Cellular\RIL';
  3799. RIL_CAPS_NOTIFICATION_IMPL_PARAMS = 'CapsNotificationImplParams';
  3800. // -----------------------------------------------------------------------------
  3801. //
  3802. // @doc EXTERNAL
  3803. //
  3804. // @constants Maximum size | Maximum size for a call list returned from radio
  3805. //
  3806. // @comm None
  3807. //
  3808. // -----------------------------------------------------------------------------
  3809. const
  3810. RIL_CALLLIST_MAXSIZE = 10;
  3811. // -----------------------------------------------------------------------------
  3812. //
  3813. // @doc EXTERNAL
  3814. //
  3815. // @constants Maximum size | Maximum size for a GPRS context list returned from radio
  3816. //
  3817. // @comm None
  3818. //
  3819. // -----------------------------------------------------------------------------
  3820. const
  3821. RIL_GPRSCONTEXTLIST_MAXSIZE = 10;
  3822. // -----------------------------------------------------------------------------
  3823. //
  3824. // @doc EXTERNAL
  3825. //
  3826. // @constants Maximum size | Maximum size for a GPRS context activated list returned from radio
  3827. //
  3828. // @comm None
  3829. //
  3830. // -----------------------------------------------------------------------------
  3831. const
  3832. RIL_GPRSCONTEXTACTIVATEDLIST_MAXSIZE = 10;
  3833. // -----------------------------------------------------------------------------
  3834. //
  3835. // @doc EXTERNAL
  3836. //
  3837. // @constants Maximum size | Maximum size for a QoS list returned from radio
  3838. //
  3839. // @comm None
  3840. //
  3841. // -----------------------------------------------------------------------------
  3842. const
  3843. RIL_QOSLIST_MAXSIZE = 10;
  3844. // -----------------------------------------------------------------------------
  3845. //
  3846. // @doc EXTERNAL
  3847. //
  3848. // @constants Maximum lengths | Maximum lengths for string parameters
  3849. //
  3850. // @comm None
  3851. //
  3852. // -----------------------------------------------------------------------------
  3853. const
  3854. MAXLENGTH_ADDRESS = 256; // @constdefine 256
  3855. MAXLENGTH_SUBADDR = 256; // @constdefine 256
  3856. MAXLENGTH_DESCRIPTION = 256; // @constdefine 256
  3857. MAXLENGTH_OPERATOR = 32; // @constdefine 32
  3858. MAXLENGTH_OPERATOR_LONG = 32; // @constdefine 32
  3859. MAXLENGTH_OPERATOR_SHORT = 16; // @constdefine 16
  3860. MAXLENGTH_OPERATOR_NUMERIC = 16; // @constdefine 16
  3861. MAXLENGTH_OPERATOR_COUNTRY_CODE = 8; // @constdefine 8
  3862. MAXLENGTH_SERVCTR = 256; // @constdefine 256
  3863. MAXLENGTH_PASSWORD = 256; // @constdefine 256
  3864. MAXLENGTH_ERRSHORT = 256; // @constdefine 256
  3865. MAXLENGTH_ERRLONG = 256; // @constdefine 256
  3866. MAXLENGTH_EQUIPINFO = 128; // @constdefine 128
  3867. MAXLENGTH_PHONEBOOKADDR = 256; // @constdefine 256
  3868. MAXLENGTH_PHONEBOOKTEXT = 256; // @constdefine 256
  3869. MAXLENGTH_CURRENCY = 256; // @constdefine 256
  3870. MAXLENGTH_AREAID = 256; // @constdefine 256
  3871. MAXLENGTH_CELLID = 256; // @constdefine 256
  3872. MAXLENGTH_HDR = 256; // @constdefine 256
  3873. MAXLENGTH_MSG = 256; // @constdefine 256
  3874. MAXLENGTH_CMD = 256; // @constdefine 256
  3875. MAXLENGTH_MSGIDS = 256; // @constdefine 256
  3876. MAXLENGTH_USERID = 256; // @constdefine 256
  3877. MAXLENGTH_DTMF = 256; // @constdefine 256
  3878. MAXLENGTH_GPRSADDRESS = 64; // @constdefine 64
  3879. MAXLENGTH_GPRSACCESSPOINTNAME = 64; // @constdefine 64
  3880. MAXLENGTH_BCCH = 48; // @constdefine 48
  3881. MAXLENGTH_NMR = 16; // @constdefine 16
  3882. MAXLENGTH_ATR = 33; // @constdefine 33
  3883. MAXLENGTH_RADIOLOG = 128; // @constdefine 128
  3884. MAXLENGTH_CALLTYPEKEY = 128; // @constdefine 128
  3885. MAXLENGTH_MMISTRING = 256; // @constdefine 256
  3886. //
  3887. // Registry path and variable defintions
  3888. //
  3889. const
  3890. RIL_REGISTRY_ROOT = HKEY_LOCAL_MACHINE;
  3891. RIL_SECURE_REGISTRY_KEY = 'Comm\Cellular\Ril';
  3892. RIL_REGISTRY_VALUE_PDPCONTEXTS = 'Contexts';
  3893. RIL_REGISTRY_VALUE_PACKETIO = 'Packet';
  3894. RIL_REGISTRY_VALUE_WAITFORGPRSDEACTRESPONSE = 'WaitForDeactRsp';
  3895. RIL_REGISTRY_VALUE_EONSENABLED = 'EONSEnabled';
  3896. //
  3897. // Event logging registry definitions
  3898. //
  3899. const
  3900. CELLULAR_REGISTRYKEY_EVENTLOGGING = 'Comm\Cellular\EventLogging';
  3901. CELLULAR_REGISTRYVALUE_EVENTLOGGING_ENABLED = 'Enabled';
  3902. CELLULAR_REGISTRYVALUE_EVENTLOGGING_SOURCENAME = 'Source';
  3903. //
  3904. // Data types
  3905. //
  3906. // -----------------------------------------------------------------------------
  3907. //
  3908. // @doc EXTERNAL
  3909. //
  3910. // @struct RILADDRESS | Represents a phone number
  3911. //
  3912. // @comm None
  3913. //
  3914. // -----------------------------------------------------------------------------
  3915. type
  3916. riladdress_tag = record
  3917. cbSize:DWORD; // @field structure size in bytes
  3918. dwParams:DWORD; // @field indicates valid parameters
  3919. dwType:DWORD; // @field type of number
  3920. dwNumPlan:DWORD; // @field numbering plan
  3921. wszAddress:array[0..MAXLENGTH_ADDRESS-1] of WCHAR; // @field address (min 3, max 43)
  3922. end;
  3923. RILADDRESS = riladdress_tag;
  3924. LPRILADDRESS = ^riladdress_tag;
  3925. // -----------------------------------------------------------------------------
  3926. //
  3927. // @doc EXTERNAL
  3928. //
  3929. // @struct RILSUBADDRESS | The subaddress of a called party
  3930. //
  3931. // @comm None
  3932. //
  3933. // -----------------------------------------------------------------------------
  3934. type
  3935. rilsubaddress_tag = record
  3936. cbSize:DWORD; // @field structure size in bytes
  3937. dwParams:DWORD; // @field indicates valid parameters
  3938. dwType:DWORD; // @field type of subaddress
  3939. wszSubAddress:array[0..MAXLENGTH_SUBADDR-1] of WCHAR; // @field subaddress (min 2, max 23)
  3940. end;
  3941. RILSUBADDRESS = rilsubaddress_tag;
  3942. LPRILSUBADDRESS = ^rilsubaddress_tag;
  3943. // -----------------------------------------------------------------------------
  3944. //
  3945. // @doc EXTERNAL
  3946. //
  3947. // @struct RILSERIALPORTSTATS | Statistics of the virtual serial port
  3948. //
  3949. // @comm None
  3950. //
  3951. // -----------------------------------------------------------------------------
  3952. type
  3953. rilserialportstats_tag = record
  3954. cbSize:DWORD; // @field structure size in bytes
  3955. dwParams:DWORD; // @field indicates valid parameters
  3956. dwReadBitsPerSecond:DWORD; // @field bit rate for reading data
  3957. dwWrittenBitsPerSecond:DWORD; // @field bit rate for writing data
  3958. end;
  3959. RILSERIALPORTSTATS = rilserialportstats_tag;
  3960. LPRILSERIALPORTSTATS = ^rilserialportstats_tag;
  3961. // -----------------------------------------------------------------------------
  3962. //
  3963. // @doc EXTERNAL
  3964. //
  3965. // @struct RILSUBSCRIBERINFO | A phone number assigned to the user
  3966. //
  3967. // @comm None
  3968. //
  3969. // -----------------------------------------------------------------------------
  3970. type
  3971. rilsubscriberinfo_tag = record
  3972. cbSize:DWORD; // @field structure size in bytes
  3973. dwParams:DWORD; // @field indicates valid parameters
  3974. raAddress:RILADDRESS; // @field the assigned address
  3975. wszDescription:array[0..MAXLENGTH_DESCRIPTION-1] of WCHAR; // @field text relating to this subscriber
  3976. dwSpeed:DWORD; // @field data rate related to this number
  3977. dwService:DWORD; // @field the service related to this number
  3978. dwITC:DWORD; // @field information transfer capability
  3979. dwAddressId:DWORD; // @field the address ID of this number
  3980. end;
  3981. RILSUBSCRIBERINFO = rilsubscriberinfo_tag;
  3982. LPRILSUBSCRIBERINFO = ^rilsubscriberinfo_tag;
  3983. // -----------------------------------------------------------------------------
  3984. //
  3985. // @doc EXTERNAL
  3986. //
  3987. // @struct RILOPERATORNAMES | The different representations of an operator
  3988. //
  3989. // @comm None
  3990. //
  3991. // -----------------------------------------------------------------------------
  3992. type
  3993. riloperatornames_tag = record
  3994. cbSize:DWORD; // @field structure size in bytes
  3995. dwParams:DWORD; // @field indicates valid parameters
  3996. szLongName:array[0..MAXLENGTH_OPERATOR_LONG-1] of AnsiChar; // @field long representation (max 16 characters)
  3997. szShortName:array[0..MAXLENGTH_OPERATOR_SHORT-1] of AnsiChar; // @field short representation (max 8 characters)
  3998. szNumName:array[0..MAXLENGTH_OPERATOR_NUMERIC-1] of AnsiChar; // @field numeric representation (3 digit country code & 2 digit network code)
  3999. szCountryCode:array[0..MAXLENGTH_OPERATOR_COUNTRY_CODE-1] of AnsiChar; // @field 2 character ISO 3166 country repesentation of the MCC
  4000. end;
  4001. RILOPERATORNAMES = riloperatornames_tag;
  4002. LPRILOPERATORNAMES = ^riloperatornames_tag;
  4003. // -----------------------------------------------------------------------------
  4004. //
  4005. // @doc EXTERNAL
  4006. //
  4007. // @struct RILOPERATORINFO | Indicates status of a particular operator
  4008. //
  4009. // @comm None
  4010. //
  4011. // -----------------------------------------------------------------------------
  4012. type
  4013. riloperatorinfo_tag = record
  4014. cbSize:DWORD; // @field structure size in bytes
  4015. dwParams:DWORD; // @field indicates valid parameters
  4016. dwIndex:DWORD; // @field index, if applicable
  4017. dwStatus:DWORD; // @field registration status, if applicable
  4018. ronNames:RILOPERATORNAMES; // @field representations of an operator
  4019. end;
  4020. RILOPERATORINFO = riloperatorinfo_tag;
  4021. LPRILOPERATORINFO = ^riloperatorinfo_tag;
  4022. // -----------------------------------------------------------------------------
  4023. //
  4024. // @doc EXTERNAL
  4025. //
  4026. // @struct RILCALLERIDSETTINGS | Caller ID settings
  4027. //
  4028. // @comm None
  4029. //
  4030. // -----------------------------------------------------------------------------
  4031. type
  4032. rilcalleridsettings_tag = record
  4033. cbSize:DWORD; // @field structure size in bytes
  4034. dwParams:DWORD; // @field indicates valid parameters
  4035. dwStatus:DWORD; // @field activation status
  4036. dwProvisioning:DWORD; // @field network provisioning status
  4037. end;
  4038. RILCALLERIDSETTINGS = rilcalleridsettings_tag;
  4039. LPRILCALLERIDSETTINGS = ^rilcalleridsettings_tag;
  4040. // -----------------------------------------------------------------------------
  4041. //
  4042. // @doc EXTERNAL
  4043. //
  4044. // @struct RILHIDEIDSETTINGS | Hide ID settings
  4045. //
  4046. // @comm None
  4047. //
  4048. // -----------------------------------------------------------------------------
  4049. type
  4050. rilhideidsettings_tag = record
  4051. cbSize:DWORD; // @field structure size in bytes
  4052. dwParams:DWORD; // @field indicates valid parameters
  4053. dwStatus:DWORD; // @field activation status
  4054. dwProvisioning:DWORD; // @field network provisioning status
  4055. end;
  4056. RILHIDEIDSETTINGS = rilhideidsettings_tag;
  4057. LPRILHIDEIDSETTINGS = ^rilhideidsettings_tag;
  4058. // -----------------------------------------------------------------------------
  4059. //
  4060. // @doc EXTERNAL
  4061. //
  4062. // @struct RILDIALEDIDSETTINGS | Dialed ID settings
  4063. //
  4064. // @comm None
  4065. //
  4066. // -----------------------------------------------------------------------------
  4067. type
  4068. rildialedidsettings_tag = record
  4069. cbSize:DWORD; // @field structure size in bytes
  4070. dwParams:DWORD; // @field indicates valid parameters
  4071. dwStatus:DWORD; // @field activation status
  4072. dwProvisioning:DWORD; // @field network provisioning status
  4073. end;
  4074. RILDIALEDIDSETTINGS = rildialedidsettings_tag;
  4075. LPRILDIALEDIDSETTINGS = ^rildialedidsettings_tag;
  4076. // -----------------------------------------------------------------------------
  4077. //
  4078. // @doc EXTERNAL
  4079. //
  4080. // @struct RILHIDECONNECTEDIDSETTINGS | Hide Connected ID settings
  4081. //
  4082. // @comm None
  4083. //
  4084. // -----------------------------------------------------------------------------
  4085. type
  4086. rilhideconnectedidsettings_tag = record
  4087. cbSize:DWORD; // @field structure size in bytes
  4088. dwParams:DWORD; // @field indicates valid parameters
  4089. dwStatus:DWORD; // @field activation status
  4090. dwProvisioning:DWORD; // @field network provisioning status
  4091. end;
  4092. RILHIDECONNECTEDIDSETTINGS = rilhideconnectedidsettings_tag;
  4093. LPRILHIDECONNECTEDIDSETTINGS = ^rilhideconnectedidsettings_tag;
  4094. // -----------------------------------------------------------------------------
  4095. //
  4096. // @doc EXTERNAL
  4097. //
  4098. // @struct RILCLOSEDGROUPSETTINGS | Close user group settings
  4099. //
  4100. // @comm This feature is not used and is untested.
  4101. //
  4102. // -----------------------------------------------------------------------------
  4103. type
  4104. rilclosedgroupsettings_tag = record
  4105. cbSize:DWORD; // @field structure size in bytes
  4106. dwParams:DWORD; // @field indicates valid parameters
  4107. dwStatus:DWORD; // @field activation status
  4108. dwIndex:DWORD; // @field CUG index
  4109. dwInfo:DWORD; // @field additional CUG flags
  4110. end;
  4111. RILCLOSEDGROUPSETTINGS = rilclosedgroupsettings_tag;
  4112. LPRILCLOSEDGROUPSETTINGS = ^rilclosedgroupsettings_tag;
  4113. // -----------------------------------------------------------------------------
  4114. //
  4115. // @doc EXTERNAL
  4116. //
  4117. // @struct RILCALLFORWARDINGSETTING | Call forwarding service settings
  4118. //
  4119. // @comm None
  4120. //
  4121. // -----------------------------------------------------------------------------
  4122. type
  4123. rilcallforwardingsettings_tag = record
  4124. cbSize:DWORD; // @field structure size in bytes
  4125. dwParams:DWORD; // @field indicates valid parameters
  4126. dwStatus:DWORD; // @field activation status
  4127. dwInfoClasses:DWORD; // @field indicates which classes of calls to forward
  4128. raAddress:RILADDRESS; // @field forwarding address
  4129. rsaSubAddress:RILSUBADDRESS; // @field forwarding subaddress
  4130. dwDelayTime:DWORD; // @field seconds to wait in <def RIL_FWDREASON_NOREPLY> case
  4131. end;
  4132. RILCALLFORWARDINGSETTINGS = rilcallforwardingsettings_tag;
  4133. LPRILCALLFORWARDINGSETTINGS = ^rilcallforwardingsettings_tag;
  4134. // -----------------------------------------------------------------------------
  4135. //
  4136. // @doc EXTERNAL
  4137. //
  4138. // @struct RILCALLINFO | Information about a specific call
  4139. //
  4140. // @comm None
  4141. //
  4142. // -----------------------------------------------------------------------------
  4143. type
  4144. rilcallinfo_tag = record
  4145. cbSize:DWORD; // @field structure size in bytes
  4146. dwParams:DWORD; // @field indicates valid parameters
  4147. dwID:DWORD; // @field identifies each call
  4148. dwDirection:DWORD; // @field incoming or outgoing
  4149. dwStatus:DWORD; // @field properties of the call
  4150. dwType:DWORD; // @field voice or data or fax
  4151. dwMultiparty:DWORD; // @field conference call status
  4152. raAddress:RILADDRESS; // @field call address
  4153. wszDescription:array[0..MAXLENGTH_DESCRIPTION-1] of WCHAR; // @field any associated text
  4154. dwDisconnectCode:DWORD; // if dwStatus is disconnected - this contains the reason
  4155. end;
  4156. RILCALLINFO = rilcallinfo_tag;
  4157. LPRILCALLINFO = ^rilcallinfo_tag;
  4158. // -----------------------------------------------------------------------------
  4159. //
  4160. // @doc EXTERNAL
  4161. //
  4162. // @struct RILGAININFO | Audio gain information
  4163. //
  4164. // @comm The minimum and maximum values for both dwTxGain and dwRxGain
  4165. // are 0 and ULONG_MAX (that is, 0xFFFFFFFFUL; see limits.h).
  4166. // Values between these extremes scale linearly.
  4167. //
  4168. // It is the RIL Driver's responsibility to scale these values
  4169. // to match whatever is appropriate for the corresponding radio.
  4170. // So for example, if a radio's gain range is from 0 to 0x1F,
  4171. // the RIL Driver should interpret 0xFFFFFFFF as 0x1F, and map
  4172. // intermediate values proportionately.
  4173. //
  4174. // -----------------------------------------------------------------------------
  4175. type
  4176. rilgaininfo_tag = record
  4177. cbSize:DWORD; // @field structure size in bytes
  4178. dwParams:DWORD; // @field indicates valid parameters
  4179. dwTxGain:DWORD; // @field transmit gain level (128 nominal, 0 automatic)
  4180. dwRxGain:DWORD; // @field receive gain level (128 nominal, 0 automatic)
  4181. end;
  4182. RILGAININFO = rilgaininfo_tag;
  4183. LPRILGAININFO = ^rilgaininfo_tag;
  4184. // -----------------------------------------------------------------------------
  4185. //
  4186. // @doc EXTERNAL
  4187. //
  4188. // @struct RILAUDIODEVICEINFO | Audio device information
  4189. //
  4190. // @comm None
  4191. //
  4192. // -----------------------------------------------------------------------------
  4193. type
  4194. rilaudiodeviceinfo_tag = record
  4195. cbSize:DWORD; // @field structure size in bytes
  4196. dwParams:DWORD; // @field indicates valid parameters
  4197. dwTxDevice:DWORD; // @field transmit device
  4198. dwRxDevice:DWORD; // @field receive device
  4199. end;
  4200. RILAUDIODEVICEINFO = rilaudiodeviceinfo_tag;
  4201. LPRILAUDIODEVICEINFO = ^rilaudiodeviceinfo_tag;
  4202. // -----------------------------------------------------------------------------
  4203. //
  4204. // @doc EXTERNAL
  4205. //
  4206. // @struct RILHSCSDINFO | High speed circuit switched data settings
  4207. //
  4208. // @comm None
  4209. //
  4210. // -----------------------------------------------------------------------------
  4211. type
  4212. rilhscsdinfo_tag = record
  4213. cbSize:DWORD; // @field structure size in bytes
  4214. dwParams:DWORD; // @field indicates valid parameters
  4215. dwTranspRxTimeslots:DWORD; // @field number of receive timeslots for transparent HSCSD calls
  4216. dwTranspChannelCodings:DWORD; // @field accepted channel codings for transparent HSCSD calls
  4217. dwNonTranspRxTimeslots:DWORD; // @field number of receive timeslots for non-transparent HSCSD calls
  4218. dwNonTranspChannelCodings:DWORD; // @field accepted channel codings for non-transparent HSCSD calls
  4219. dwAirInterfaceUserRate:DWORD; // @field air interface user rate for non-transparent HSCSD calls
  4220. dwRxTimeslotsLimit:DWORD; // @field maximum number of receive timeslots to be used during the next non-transparent HSCSD call
  4221. fAutoSvcLevelUpgrading:BOOL; // @field TRUE if automatic user-initiated service level upgrading for non-transparent HSCSD calls is enabled, FALSE otherwise
  4222. end;
  4223. RILHSCSDINFO = rilhscsdinfo_tag;
  4224. LPRILHSCSDINFO = ^rilhscsdinfo_tag;
  4225. // -----------------------------------------------------------------------------
  4226. //
  4227. // @doc EXTERNAL
  4228. //
  4229. // @struct RILCALLHSCSDINFO | High speed circuit switched data information for the current call
  4230. //
  4231. // @comm None
  4232. //
  4233. // -----------------------------------------------------------------------------
  4234. type
  4235. rilcallhscsdinfo_tag = record
  4236. cbSize:DWORD; // @field structure size in bytes
  4237. dwParams:DWORD; // @field indicates valid parameters
  4238. dwRxTimeslots:DWORD; // @field number of receive timeslots currently in use
  4239. dwTxTimeslots:DWORD; // @field number of transmit timeslots currently in use
  4240. dwAirInterfaceUserRate:DWORD; // @field air interface user rate currently in use
  4241. dwChannelCoding:DWORD; // @field current channel coding
  4242. end;
  4243. RILCALLHSCSDINFO = rilcallhscsdinfo_tag;
  4244. LPRILCALLHSCSDINFO = ^rilcallhscsdinfo_tag;
  4245. // -----------------------------------------------------------------------------
  4246. //
  4247. // @doc EXTERNAL
  4248. //
  4249. // @struct RILDATACOMPINFO | Data compression settings
  4250. //
  4251. // @comm None
  4252. //
  4253. // -----------------------------------------------------------------------------
  4254. type
  4255. rildatacompinfo_tag = record
  4256. cbSize:DWORD; // @field structure size in bytes
  4257. dwParams:DWORD; // @field indicates valid parameters
  4258. dwDirection:DWORD; // @field compression in transmit and/or receive direcitons
  4259. dwNegotiation:DWORD; // @field compression is required or optional
  4260. dwMaxDictEntries:DWORD; // @field maximum number of dictionary entries
  4261. dwMaxStringLength:DWORD; // @field maximum string length
  4262. end;
  4263. RILDATACOMPINFO = rildatacompinfo_tag;
  4264. LPRILDATACOMPINFO = ^rildatacompinfo_tag;
  4265. // -----------------------------------------------------------------------------
  4266. //
  4267. // @doc EXTERNAL
  4268. //
  4269. // @struct RILERRORCORRECTIONINFO | Error correction settings
  4270. //
  4271. // @comm None
  4272. //
  4273. // -----------------------------------------------------------------------------
  4274. type
  4275. rilerrorcorrectioninfo_tag = record
  4276. cbSize:DWORD; // @field structure size in bytes
  4277. dwParams:DWORD; // @field indicates valid parameters
  4278. dwOriginalRequest:DWORD; // @field TBD
  4279. dwOriginalFallback:DWORD; // @field TBD
  4280. dwAnswererFallback:DWORD; // @field TBD
  4281. end;
  4282. RILERRORCORRECTIONINFO = rilerrorcorrectioninfo_tag;
  4283. LPRILERRORCORRECTIONINFO = ^rilerrorcorrectioninfo_tag;
  4284. // -----------------------------------------------------------------------------
  4285. //
  4286. // @doc EXTERNAL
  4287. //
  4288. // @struct RILBEARERSVCINFO | Bearer service settings
  4289. //
  4290. // @comm For <def RIL_BSVCCE_BOTH_> constants, the subsequent text indicates the
  4291. // preferred connection element. For instance, <def RIL_BSVCCE_BOTH_TRANSPARENT>
  4292. // means that both transparent and non transparent are supported, but transparent
  4293. // is preferred.
  4294. //
  4295. // -----------------------------------------------------------------------------
  4296. type
  4297. rilbearersvcinfo_tag = record
  4298. cbSize:DWORD; // @field structure size in bytes
  4299. dwParams:DWORD; // @field indicates valid parameters
  4300. dwSpeed:DWORD; // @field offered data speed (protocol dependant)
  4301. dwServiceName:DWORD; // @field type of data service
  4302. dwConnectionElement:DWORD; // @field indicates transparent or non-transparent connection
  4303. end;
  4304. RILBEARERSVCINFO = rilbearersvcinfo_tag;
  4305. LPRILBEARERSVCINFO = ^rilbearersvcinfo_tag;
  4306. // -----------------------------------------------------------------------------
  4307. //
  4308. // @doc EXTERNAL
  4309. //
  4310. // @struct RILRLPINFO | Radio link protocol settings
  4311. //
  4312. // @comm None
  4313. //
  4314. // -----------------------------------------------------------------------------
  4315. //
  4316. type
  4317. rilrlpinfo_tag = record
  4318. cbSize:DWORD; // @field structure size in bytes
  4319. dwParams:DWORD; // @field indicates valid parameters
  4320. dwIWS:DWORD; // @field IWF-to-MS window size
  4321. dwMWS:DWORD; // @field MS-to-IWF window size
  4322. dwAckTimer:DWORD; // @field acknowledgement timer in 10s of milliseconds (T1)
  4323. dwRetransmissionAttempts:DWORD; // @field number of retransmission attempts (N2)
  4324. dwVersion:DWORD; // @field RLP version number
  4325. dwResequencingPeriod:DWORD; // @field resequencing period (T4)
  4326. end;
  4327. RILRLPINFO = rilrlpinfo_tag;
  4328. LPRILRLPINFO = ^rilrlpinfo_tag;
  4329. // -----------------------------------------------------------------------------
  4330. //
  4331. // @doc EXTERNAL
  4332. //
  4333. // @struct RILMSGSERVICEINFO | Messaging service settings
  4334. //
  4335. // @comm None
  4336. //
  4337. // -----------------------------------------------------------------------------
  4338. type
  4339. rilmsgserviceinfo_tag = record
  4340. cbSize:DWORD; // @field structure size in bytes
  4341. dwParams:DWORD; // @field indicates valid parameters
  4342. dwService:DWORD; // @field supported service types
  4343. dwMsgClasses:DWORD; // @field supported message classes
  4344. dwReadLocation:DWORD; // @field currect read location
  4345. dwReadUsed:DWORD; // @field number of fields used
  4346. dwReadTotal:DWORD; // @field total number of fields
  4347. dwWriteLocation:DWORD; // @field currect read location
  4348. dwWriteUsed:DWORD; // @field number of fields used
  4349. dwWriteTotal:DWORD; // @field total number of fields
  4350. dwStoreLocation:DWORD; // @field currect read location
  4351. dwStoreUsed:DWORD; // @field number of fields used
  4352. dwStoreTotal:DWORD; // @field total number of fields
  4353. end;
  4354. RILMSGSERVICEINFO = rilmsgserviceinfo_tag;
  4355. LPRILMSGSERVICEINFO = ^rilmsgserviceinfo_tag;
  4356. // -----------------------------------------------------------------------------
  4357. //
  4358. // @doc EXTERNAL
  4359. //
  4360. // @struct RILMSGDCS | Message data coding scheme
  4361. //
  4362. // @comm None
  4363. //
  4364. // -----------------------------------------------------------------------------
  4365. type
  4366. rilmsgdcs_tag = record
  4367. cbSize:DWORD; // @field structure size in bytes
  4368. dwParams:DWORD; // @field indicates valid parameters
  4369. dwType:DWORD; // @field DCS type
  4370. dwFlags:DWORD; // @field DCS flags
  4371. dwMsgClass:DWORD; // @field message class (Only for RIL_DCSTYPE_GENERAL and RIL_DCSTYPE_MSGCLASS)
  4372. dwAlphabet:DWORD; // @field DCS alphabet
  4373. dwIndication:DWORD; // @field indication (Only for RIL_DCSTYPE_MSGWAIT)
  4374. dwLanguage:DWORD; // @field indication (Only for RIL_DCSTYPE_LANGUAGE)
  4375. end;
  4376. RILMSGDCS = rilmsgdcs_tag;
  4377. LPRILMSGDCS = ^rilmsgdcs_tag;
  4378. // -----------------------------------------------------------------------------
  4379. //
  4380. // @doc EXTERNAL
  4381. //
  4382. // @struct RILRANGE | Range of values
  4383. //
  4384. // @comm None
  4385. //
  4386. // -----------------------------------------------------------------------------
  4387. type
  4388. rilrange_tag = record
  4389. dwMinValue:DWORD; // @field minimum value
  4390. dwMaxValue:DWORD; // @field maximum value
  4391. end;
  4392. RILRANGE = rilrange_tag;
  4393. LPRILRANGE = ^rilrange_tag;
  4394. // -----------------------------------------------------------------------------
  4395. //
  4396. // @doc EXTERNAL
  4397. //
  4398. // @struct RILMSGCONFIG | Messaging configuration
  4399. //
  4400. // @comm None
  4401. //
  4402. // -----------------------------------------------------------------------------
  4403. type
  4404. rilmsgconfig_tag = record
  4405. cbSize:DWORD; // @field structure size in bytes
  4406. dwParams:DWORD; // @field indicates valid parameters
  4407. raSvcCtrAddress:RILADDRESS; // @field service center address
  4408. end;
  4409. RILMSGCONFIG = rilmsgconfig_tag;
  4410. LPRILMSGCONFIG = ^rilmsgconfig_tag;
  4411. // -----------------------------------------------------------------------------
  4412. //
  4413. // @doc EXTERNAL
  4414. //
  4415. // @struct RILCBMSGCONFIG | Cell broadcast messaging configuration
  4416. //
  4417. // @comm None
  4418. //
  4419. // -----------------------------------------------------------------------------
  4420. //#pragma warning(disable : 4200) // Disable "C4200: nonstandard extension used : zero-sized array in struct/union"
  4421. type
  4422. rilcbmsgconfig_tag = record
  4423. cbSize:DWORD; // @field structure size in bytes
  4424. dwParams:DWORD; // @field indicates valid parameters
  4425. dwBroadcastMsgLangs:DWORD; // @field broadcast message languages
  4426. fAccept:BOOL; // @field TRUE if broadcast message ranges are accepted (vs. rejected)
  4427. rgrrBroadcastMsgIDs:array[0..0] of RILRANGE; // @field an array of RILRANGE IDs to set, a same min/max value specifies a single ID
  4428. end;
  4429. RILCBMSGCONFIG = rilcbmsgconfig_tag;
  4430. LPRILCBMSGCONFIG = ^rilcbmsgconfig_tag;
  4431. //#pragma warning(default : 4200)
  4432. // -----------------------------------------------------------------------------
  4433. //
  4434. // @doc EXTERNAL
  4435. //
  4436. // @struct RILMESSAGE | Message data
  4437. //
  4438. // @comm None
  4439. //
  4440. // -----------------------------------------------------------------------------
  4441. type
  4442. // @field RIL_MSGTYPE_IN_DELIVER
  4443. TmsgInDeliver = record
  4444. raOrigAddress:RILADDRESS; // @field originating address
  4445. dwProtocolID:DWORD; // @field message protocol
  4446. rmdDataCoding:RILMSGDCS; // @field data coding scheme
  4447. stSCReceiveTime:SYSTEMTIME; // @field receive time (UTC)
  4448. cbHdrLength:DWORD; // @field length of header in bytes
  4449. cchMsgLength:DWORD; // @field length of body in bytes
  4450. rgbHdr:array[0..MAXLENGTH_HDR-1] of byte; // @field header buffer
  4451. rgbMsg:array[0..MAXLENGTH_MSG-1] of byte; // @field body buffer
  4452. end;
  4453. // @field RIL_MSGTYPE_IN_STATUS
  4454. TmsgInStatus = record
  4455. dwTgtMsgReference:DWORD; // @field target message reference
  4456. raTgtRecipAddress:RILADDRESS; // @field receipient address
  4457. stTgtSCReceiveTime:SYSTEMTIME; // @field receipient receive time (UTC)
  4458. stTgtDischargeTime:SYSTEMTIME; // @field receipient dischage time (UTC)
  4459. dwTgtDlvStatus:DWORD; // @field delivery status
  4460. dwProtocolID:DWORD; // @field message protocol
  4461. rmdDataCoding:RILMSGDCS; // @field data coding scheme
  4462. cbHdrLength:DWORD; // @field length of header in bytes
  4463. cchMsgLength:DWORD; // @field length of body in bytes
  4464. rgbHdr:array[0..MAXLENGTH_HDR-1] of byte; // @field header buffer
  4465. rgbMsg:array[0..MAXLENGTH_MSG-1] of byte; // @field body buffer
  4466. end;
  4467. // @field RIL_MSGTYPE_OUT_SUBMIT
  4468. TmsgOutSubmit = record
  4469. raDestAddress:RILADDRESS; // @field destination address
  4470. dwProtocolID:DWORD; // @field message protocol
  4471. rmdDataCoding:RILMSGDCS; // @field data coding scheme
  4472. dwVPFormat:DWORD; // @field TBD
  4473. stVP:SYSTEMTIME; // @field relative validity period (values are expressed relative to the current time)
  4474. cbHdrLength:DWORD; // @field length of header in bytes
  4475. cchMsgLength:DWORD; // @field length of body in bytes
  4476. rgbHdr:array[0..MAXLENGTH_HDR-1] of byte; // @field header buffer
  4477. rgbMsg:array[0..MAXLENGTH_MSG-1] of byte; // @field body buffer
  4478. end;
  4479. // @field RIL_MSGTYPE_OUT_COMMAND
  4480. TmsgOutCommand = record
  4481. dwProtocolID:DWORD; // @field message protocol
  4482. dwCommandType:DWORD; // @field command type
  4483. dwTgtMsgReference:DWORD; // @field target message reference
  4484. raDestAddress:RILADDRESS; // @field destination address
  4485. cbCmdLength:DWORD; // @field length of command in bytes
  4486. rgbCmd:array[0..MAXLENGTH_CMD-1] of byte; // @field command buffer
  4487. end;
  4488. // @field RIL_MSGTYPE_BC_GENERAL
  4489. TmsgBcGeneral = record
  4490. dwGeoScope:DWORD; // @field message protocol
  4491. dwMsgCode:DWORD; // @field message code
  4492. dwUpdateNumber:DWORD; // @field update number
  4493. dwID:DWORD; // @field identity
  4494. rmdDataCoding:RILMSGDCS; // @field data coding scheme
  4495. dwTotalPages:DWORD; // @field total number of pages
  4496. dwPageNumber:DWORD; // @field current page number
  4497. cchMsgLength:DWORD; // @field length of message in bytes
  4498. rgbMsg:array[0..MAXLENGTH_MSG-1] of byte; // @field message buffer
  4499. end;
  4500. // @field RIL_MSGTYPE_OUT_RAW
  4501. TmsgOutRaw = record
  4502. cchMsgLength:DWORD; // @field length of body in bytes
  4503. rgbMsg:array[0..MAXLENGTH_MSG-1] of byte; // @field message buffer
  4504. end;
  4505. // @field RIL_MSGTYPE_IN_IS637DELIVER
  4506. TmsgIS637InDeliver = record
  4507. raOrigAddress:RILADDRESS; // @field originating address
  4508. rsaOrigSubaddr:RILSUBADDRESS; // @field
  4509. // There is no digit-mode in incoming message because the driver can convert both of them to ASCII
  4510. stSCReceiveTime:SYSTEMTIME; // @field (SMSC Timestamp) receive time (UTC)
  4511. stValidityPeriodAbs:SYSTEMTIME; // @field UTC time
  4512. stValidityPeriodRel:SYSTEMTIME; // @field Relative time
  4513. stDeferredDelTimeAbs:SYSTEMTIME; // @field UTC time
  4514. stDeferredDelTimeRel:SYSTEMTIME; // @field Relative time
  4515. dwNumMsgs:DWORD; // @field Used for Voicemail only. Indicates the number of Messages on Vmail
  4516. raCallBackNumber:RILADDRESS; // @field (Only paging and Text -s) user can give a callback number in certain messages
  4517. dwMsgPriority:DWORD; // @field RIL_MSGPRIORITY_ constant
  4518. dwMsgPrivacy:DWORD; // @field RIL_MSGPRIVACYCLASS_ constant
  4519. bUserAckRequest:BOOL; // @field 0 = Not Requested; 1 = Requested ; This is an ack from the end user
  4520. dwMsgDisplayMode:DWORD; // @field RIL_MSGDISPLAYMODE_ constant
  4521. dwTeleservice:DWORD; // @field RIL_MSGTELESERVICE_* Constant[Mandatory]
  4522. dwMsgID:DWORD; // @field [Mandatory] Message ID. (0-65535) (In the WAP architecture each part of a multipart message share the same MsgID)
  4523. dwMsgLang:DWORD; // @field Under Investigation
  4524. dwMsgEncoding:DWORD; // @field RIL_MSGCODING_* constant [5 bits] under Investigation
  4525. cchMsgLength:DWORD; // @field length of body in bytes
  4526. rgbMsg:array[0..MAXLENGTH_MSG-1] of byte; // @field body buffer
  4527. end;
  4528. // @field RIL_MSGTYPE_OUT_IS637SUBMIT
  4529. TmsgIS637OutSubmit = record
  4530. raDestAddress:RILADDRESS; // @field destination address
  4531. rsaDestSubaddr:RILSUBADDRESS; // @field destination subaddress
  4532. bDigit:BOOL; // @field specifies if the address in RILADDRESS is 4bit mode (=0) or in 8 bit mode (=1) (should be set to 1 by default)
  4533. stValidityPeriodAbs:SYSTEMTIME; // @field UTC time
  4534. stValidityPeriodRel:SYSTEMTIME; // @field Relative time
  4535. stDeferredDelTimeAbs:SYSTEMTIME; // @field UTC time
  4536. stDeferredDelTimeRel:SYSTEMTIME; // @field Relative time
  4537. bDeliveryAckRequest:BOOL; // @field 0 = Not Requested; 1 = Requested ; This is an delivery ack (no user confirmation)
  4538. bUserAckRequest:BOOL; // @field 0 = Not Requested; 1 = Requested ; This is an ack from the end user
  4539. bBearerReplyRequest:BOOL; // @field specifies the bearer reply field is set (technically this can be set, but it should not be) ; Boolean (0=not set, 1=set)
  4540. dwReplySeqNumber:DWORD; // @field the Seuqence number of the message bing replied to; (typically the MSGID)
  4541. dwMsgDisplayMode:DWORD; // @field RIL_MSGDISPLAYMODE_* constant
  4542. raCallBackNumber:RILADDRESS; // @field (Only paging and Text -s) user can give a callback number in certain messages
  4543. dwMsgPriority:DWORD; // @field RIL_MSGPRIORITY_ constant
  4544. dwMsgPrivacy:DWORD; // @field RIL_MSGPRIVACYCLASS_ constant
  4545. dwTeleservice:DWORD; // @field RIL_MSGTELESERVICE_* Constant[Mandatory]
  4546. dwMsgID:DWORD; // @field [Mandatory] Message ID. (0-65535) (In the WAP architecture each part of a multipart message share the same MsgID)
  4547. dwMsgLang:DWORD; // @field Under Investigation
  4548. dwMsgEncoding:DWORD; // @field RIL_MSGCODING_* constant [5 bits] under Investigation
  4549. cchMsgLength:DWORD; // @field length of body in bytes
  4550. rgbMsg:array[0..MAXLENGTH_MSG-1] of byte; // @field body buffer
  4551. end;
  4552. // @field RIL_MSGTYPE_IN_IS637STATUS
  4553. TmsgIS637InStatus = record
  4554. raOrigAddress:RILADDRESS; // @field originating address
  4555. rsaOrigSubaddr:RILSUBADDRESS; // @field
  4556. // There is no digit-mode in incoming message because the driver can convert both of them to ASCII
  4557. stSCReceiveTime:SYSTEMTIME; // @field (SMSC Timestamp) receive time (UTC)
  4558. dwCauseCode:DWORD; // @field Cause_Codes Under Investigation, most likely these will be implemented as RIL errors
  4559. dwReplySeqNumber:DWORD; // @field The Sequence number of the message bing replied to; (typically the MSGID)
  4560. dwUserResponseCode:DWORD; // @field User Response Code (Carrier Specific Element when responding giving a User Ack)
  4561. dwMsgStatusType:DWORD; // @field type of status message RIL_MSGSTATUSTYPE_* constant
  4562. dwMsgID:DWORD; // @field [Mandatory] Message ID. (0-65535) (In the WAP architecture each part of a multipart message share the same MsgID)
  4563. dwMsgLang:DWORD; // @field Under Investigation
  4564. dwMsgEncoding:DWORD; // @field RIL_MSGCODING_* constant [5 bits] under Investigation
  4565. cchMsgLength:DWORD; // @field length of body in bytes
  4566. rgbMsg:array[0..MAXLENGTH_MSG-1] of byte; // @field body buffer
  4567. end;
  4568. // @field RIL_MSGTYPE_OUT_IS637STATUS
  4569. TmsgIS637OutStatus = record
  4570. raDestAddress:RILADDRESS; // @field destination address
  4571. rsaDestSubaddr:RILSUBADDRESS; // @field destination subaddress
  4572. bDigit:BOOL; // @field specifies if the address in RILADDRESS is 4bit mode (=0) or in 8 bit mode (=1) (should be set to 1 by default)
  4573. dwReplySeqNumber:DWORD; // @field The Sequence number of the message bing replied to; (typically the MSGID)
  4574. dwUserResponseCode:DWORD; // @field User Response Code (Carrier Specific Element when responding giving a User Ack)
  4575. dwMsgID:DWORD; // @field [Mandatory] Message ID. (0-65535) (In the WAP architecture each part of a multipart message share the same MsgID)
  4576. dwMsgLang:DWORD; // @field Under Investigation
  4577. dwMsgEncoding:DWORD; // @field RIL_MSGCODING_* constant [5 bits] under Investigation
  4578. cchMsgLength:DWORD; // @field length of body in bytes
  4579. rgbMsg:array[0..MAXLENGTH_MSG-1] of byte; // @field body buffer
  4580. end;
  4581. rilmessage_tag = record
  4582. cbSize:DWORD; // @field structure size in bytes
  4583. dwParams:DWORD; // @field indicates valid parameters
  4584. raSvcCtrAddress:RILADDRESS; // @field service center address
  4585. dwType:DWORD; // @field type of message
  4586. dwFlags:DWORD; // @field message flags
  4587. case longint of
  4588. 0: (msgInDeliver:TmsgInDeliver); // @field RIL_MSGTYPE_IN_DELIVER
  4589. 1: (msgInStatus:TmsgInStatus); // @field RIL_MSGTYPE_IN_STATUS
  4590. 2: (msgOutSubmit:TmsgOutSubmit); // @field RIL_MSGTYPE_OUT_SUBMIT
  4591. 3: (msgOutCommand:TmsgOutCommand); // @field RIL_MSGTYPE_OUT_COMMAND
  4592. 4: (msgBcGeneral:TmsgBcGeneral); // @field RIL_MSGTYPE_BC_GENERAL
  4593. 5: (msgOutRaw:TmsgOutRaw); // @field RIL_MSGTYPE_OUT_RAW
  4594. 6: (msgIS637InDeliver:TmsgIS637InDeliver); // @field RIL_MSGTYPE_IN_IS637DELIVER
  4595. 7: (msgIS637OutSubmit:TmsgIS637OutSubmit); // @field RIL_MSGTYPE_OUT_IS637SUBMIT
  4596. 8: (msgIS637InStatus:TmsgIS637InStatus); // @field RIL_MSGTYPE_IN_IS637STATUS
  4597. 9: (msgIS637OutStatus:TmsgIS637OutStatus); // @field End RIL_MSGTYPE_OUT_IS637STATUS
  4598. end;
  4599. RILMESSAGE = rilmessage_tag;
  4600. LPRILMESSAGE = ^rilmessage_tag;
  4601. // -----------------------------------------------------------------------------
  4602. //
  4603. // @doc EXTERNAL
  4604. //
  4605. // @struct RILMESSAGE_IN_SIM | Message data in sim info
  4606. //
  4607. // @comm None
  4608. //
  4609. // -----------------------------------------------------------------------------
  4610. type
  4611. rilmessage_in_sim_tag = record
  4612. cbSize:DWORD; // @field structure size in bytes
  4613. dwParams:DWORD;
  4614. dwLocation:DWORD; // @field storage area (one of RIL_MSGLOC_xxxx)
  4615. dwIndex:DWORD; // @field storage index occupied by the message
  4616. end;
  4617. RILMESSAGE_IN_SIM = rilmessage_in_sim_tag;
  4618. LPRILMESSAGE_IN_SIM = ^rilmessage_in_sim_tag;
  4619. // -----------------------------------------------------------------------------
  4620. //
  4621. // @doc EXTERNAL
  4622. //
  4623. // @struct RILMESSAGEINFO | Message data with additional info
  4624. //
  4625. // @comm None
  4626. //
  4627. // -----------------------------------------------------------------------------
  4628. type
  4629. rilmessageinfo_tag = record
  4630. cbSize:DWORD; // @field structure size in bytes
  4631. dwParams:DWORD; // @field indicates valid parameters
  4632. dwIndex:DWORD; // @field storage index occupied by the message
  4633. dwStatus:DWORD; // @field message status
  4634. rmMessage:RILMESSAGE; // @field the message itself
  4635. end;
  4636. RILMESSAGEINFO = rilmessageinfo_tag;
  4637. LPRILMESSAGEINFO = ^rilmessageinfo_tag;
  4638. // -----------------------------------------------------------------------------
  4639. //
  4640. // @doc EXTERNAL
  4641. //
  4642. // @struct RILEQUIPMENTINFO | Equipment info
  4643. //
  4644. // @comm None
  4645. //
  4646. // -----------------------------------------------------------------------------
  4647. type
  4648. rilequipmentinfo_tag = record
  4649. cbSize:DWORD; // @field structure size in bytes
  4650. dwParams:DWORD; // @field indicates valid parameters
  4651. szManufacturer:array[0..MAXLENGTH_EQUIPINFO-1] of AnsiChar; // @field manufacturer of the radio hardware
  4652. szModel:array[0..MAXLENGTH_EQUIPINFO-1] of AnsiChar; // @field model of the radio hardware
  4653. szRevision:array[0..MAXLENGTH_EQUIPINFO-1] of AnsiChar; // @field software version of the radio stack
  4654. szSerialNumber:array[0..MAXLENGTH_EQUIPINFO-1] of AnsiChar; // @field equipment identity (IMEI)
  4655. end;
  4656. RILEQUIPMENTINFO = rilequipmentinfo_tag;
  4657. LPRILEQUIPMENTINFO = ^rilequipmentinfo_tag;
  4658. // -----------------------------------------------------------------------------
  4659. //
  4660. // @doc EXTERNAL
  4661. //
  4662. // @struct RILEQUIPMENTSTATE | Equipment state
  4663. //
  4664. // @comm None
  4665. //
  4666. // -----------------------------------------------------------------------------
  4667. type
  4668. rilequipmentstate_tag = record
  4669. cbSize:DWORD; // @field structure size in bytes
  4670. dwParams:DWORD; // @field indicates valid parameters
  4671. dwRadioSupport:DWORD; // @field RIL_RADIOSUPPORT_* Parameter
  4672. dwEqState:DWORD; // @field RIL_EQSTATE_* Parameter
  4673. dwReadyState:DWORD; // @field RIL_READYSTATE_* Parameter
  4674. end;
  4675. RILEQUIPMENTSTATE = rilequipmentstate_tag;
  4676. LPRILEQUIPMENTSTATE = ^rilequipmentstate_tag;
  4677. // -----------------------------------------------------------------------------
  4678. //
  4679. // @doc EXTERNAL
  4680. //
  4681. // @struct RILPHONEBOOKINFO | Phonebook settings
  4682. //
  4683. // @comm None
  4684. //
  4685. // -----------------------------------------------------------------------------
  4686. type
  4687. rilphonebookinfo_tag = record
  4688. cbSize:DWORD; // @field structure size in bytes
  4689. dwParams:DWORD; // @field indicates valid parameters
  4690. dwStoreLocation:DWORD; // @field location of phonebook memory
  4691. dwUsed:DWORD; // @field number of locations used
  4692. dwTotal:DWORD; // @field total number of phonebook locations
  4693. end;
  4694. RILPHONEBOOKINFO = rilphonebookinfo_tag;
  4695. LPRILPHONEBOOKINFO = ^rilphonebookinfo_tag;
  4696. // -----------------------------------------------------------------------------
  4697. //
  4698. // @doc EXTERNAL
  4699. //
  4700. // @struct RILPHONEBOOKENTRY | A single phonebook entry
  4701. //
  4702. // @comm None
  4703. //
  4704. // -----------------------------------------------------------------------------
  4705. type
  4706. rilphonebookentry_tag = record
  4707. cbSize:DWORD; // @field structure size in bytes
  4708. dwParams:DWORD; // @field indicates valid parameters
  4709. dwIndex:DWORD; // @field index of the entry
  4710. raAddress:RILADDRESS; // @field the stored address
  4711. wszText:array[0..MAXLENGTH_PHONEBOOKTEXT-1] of WCHAR; // @field assciated text
  4712. end;
  4713. RILPHONEBOOKENTRY = rilphonebookentry_tag;
  4714. LPRILPHONEBOOKENTRY = ^rilphonebookentry_tag;
  4715. // -----------------------------------------------------------------------------
  4716. //
  4717. // @doc EXTERNAL
  4718. //
  4719. // @struct RILATRINFO | Answer to Reset information
  4720. //
  4721. // @comm None
  4722. //
  4723. // -----------------------------------------------------------------------------
  4724. type
  4725. rilatrinfo_tag = record
  4726. cbSize:DWORD;
  4727. dwParams:DWORD;
  4728. dwPhase:DWORD;
  4729. cbATRSize:DWORD;
  4730. rgbATR:array[0..MAXLENGTH_ATR-1] of byte;
  4731. end;
  4732. RILATRINFO = rilatrinfo_tag;
  4733. LPRILATRINFO = ^rilatrinfo_tag;
  4734. // -----------------------------------------------------------------------------
  4735. //
  4736. // @doc EXTERNAL
  4737. //
  4738. // @struct RILSIMTOOLKITEVENTCAPS | SIM TOOLKIT EVENT LIST CAPABILITIES
  4739. //
  4740. // @comm This structure indicates who implements the various SIM ToolKit Events
  4741. //
  4742. // -----------------------------------------------------------------------------
  4743. type
  4744. rilsimtoolkiteventcaps_tag =record
  4745. cbSize:DWORD; // @field structure size in bytes
  4746. dwParams:DWORD; // @field indicates valid parameters
  4747. dwMTCall:DWORD; // @constdefine TBD
  4748. dwCallConnected:DWORD; // @constdefine TBD
  4749. dwCallDisconnected:DWORD; // @constdefine TBD
  4750. dwLocationStatus:DWORD; // @constdefine TBD
  4751. dwUserActivity:DWORD; // @constdefine TBD
  4752. dwIdleScreen:DWORD; // @constdefine TBD
  4753. dwLanguageSelection:DWORD; // @constdefine TBD
  4754. dwBrowserTermination:DWORD; // @constdefine TBD
  4755. dwDataAvailable:DWORD; // @constdefine TBD
  4756. dwChannelStatus:DWORD; // @constdefine TBD
  4757. dwDisplayChange:DWORD; // @constdefine TBD
  4758. end;
  4759. RILSIMTOOLKITEVENTCAPS = rilsimtoolkiteventcaps_tag;
  4760. LPRILSIMTOOLKITEVENTCAPS = ^rilsimtoolkiteventcaps_tag;
  4761. // -----------------------------------------------------------------------------
  4762. //
  4763. // @doc EXTERNAL
  4764. //
  4765. // @struct RILSIMTOOLKITNOTIFYCAPS | SIM TOOLKIT NOTIFY CAPABILITIES
  4766. //
  4767. // @comm This structure indicates who implements the various SIM ToolKit Notifications
  4768. //
  4769. // -----------------------------------------------------------------------------
  4770. type
  4771. rilsimtoolkitnotifycaps_tag = record
  4772. cbSize:DWORD; // @field structure size in bytes
  4773. dwParams:DWORD; // @field indicates valid parameters
  4774. dwRefresh:DWORD; // @constdefine TBD
  4775. dwMoreTime:DWORD; // @constdefine TBD
  4776. dwPollInterval:DWORD; // @constdefine TBD
  4777. dwPollingOff:DWORD; // @constdefine TBD
  4778. dwSetUpCall:DWORD; // @constdefine TBD
  4779. dwSendSS:DWORD; // @constdefine TBD
  4780. dwSendUSSD:DWORD; // @constdefine TBD
  4781. dwSendSMS:DWORD; // @constdefine TBD
  4782. dwPlayTone:DWORD; // @constdefine TBD
  4783. dwDisplayText:DWORD; // @constdefine TBD
  4784. dwGetInkey:DWORD; // @constdefine TBD
  4785. dwGetInput:DWORD; // @constdefine TBD
  4786. dwSelectItem:DWORD; // @constdefine TBD
  4787. dwSetupMenu:DWORD; // @constdefine TBD
  4788. dwSetupIdleModeText:DWORD; // @constdefine TBD
  4789. dwLocalInfo:DWORD; // @constdefine TBD
  4790. dwNotifyFlags:DWORD; // @combination of RIL_CAPS_NOTIFY_* flags
  4791. dwSetupEventList:DWORD; // @constdefine TBD
  4792. dwSendDTMF:DWORD; // @constdefine TBD
  4793. dwLaunchBrowser:DWORD; // @constdefine TBD
  4794. dwOpenChannel:DWORD; // @constdefine TBD
  4795. dwCloseChannel:DWORD; // @constdefine TBD
  4796. dwReceiveData:DWORD; // @constdefine TBD
  4797. dwSendData:DWORD; // @constdefine TBD
  4798. dwTimerManagement:DWORD; // @constdefine TBD
  4799. dwRunAtCmd:DWORD; // @constdefine TBD
  4800. rstecEvents:RILSIMTOOLKITEVENTCAPS; // @constdefine TBD
  4801. end;
  4802. RILSIMTOOLKITNOTIFYCAPS = rilsimtoolkitnotifycaps_tag;
  4803. LPRILSIMTOOLKITNOTIFYCAPS = ^rilsimtoolkitnotifycaps_tag;
  4804. // -----------------------------------------------------------------------------
  4805. //
  4806. // @doc EXTERNAL
  4807. //
  4808. // @struct RILSIMTOOLKITCMD | SIM toolkit command details.
  4809. //
  4810. // @comm None
  4811. //
  4812. // -----------------------------------------------------------------------------
  4813. type
  4814. rilsimtoolkitcmd_tag = record
  4815. cbSize:DWORD;
  4816. dwParams:DWORD;
  4817. dwId:DWORD;
  4818. dwTag:DWORD;
  4819. dwType:DWORD;
  4820. dwQualifier:DWORD;
  4821. dwError:DWORD;
  4822. dwDetailsOffset:DWORD;
  4823. dwDetailsSize:DWORD;
  4824. end;
  4825. RILSIMTOOLKITCMD = rilsimtoolkitcmd_tag;
  4826. // -----------------------------------------------------------------------------
  4827. //
  4828. // @doc EXTERNAL
  4829. //
  4830. // @struct RILSIMTOOLKITRSP | Response to a SIM toolkit command.
  4831. //
  4832. // @comm None
  4833. //
  4834. // -----------------------------------------------------------------------------
  4835. type
  4836. rilsimtoolkitrsp_tag = record
  4837. cbSize:DWORD;
  4838. dwParams:DWORD;
  4839. dwId:DWORD;
  4840. dwTag:DWORD;
  4841. dwType:DWORD;
  4842. dwQualifier:DWORD;
  4843. dwResponse:DWORD;
  4844. dwAdditionalInfo:DWORD;
  4845. end;
  4846. RILSIMTOOLKITRSP = rilsimtoolkitrsp_tag;
  4847. LPRILSIMTOOLKITRSP = rilsimtoolkitrsp_tag;
  4848. // -----------------------------------------------------------------------------
  4849. //
  4850. // @doc EXTERNAL
  4851. //
  4852. // @struct RILSIMCMDPARAMETERS | Parameters for a restricted SIM command
  4853. //
  4854. // @comm None
  4855. //
  4856. // -----------------------------------------------------------------------------
  4857. type
  4858. rilsimcmdparameters_tag = record
  4859. cbSize:DWORD; // @field structure size in bytes
  4860. dwParams:DWORD; // @field indicates valid parameters
  4861. dwFileID:DWORD; // @field SIM file ID
  4862. dwParameter1:DWORD; // @field parameter specific to SIM command
  4863. dwParameter2:DWORD; // @field parameter specific to SIM command
  4864. dwParameter3:DWORD; // @field parameter specific to SIM command
  4865. end;
  4866. RILSIMCMDPARAMETERS = rilsimcmdparameters_tag;
  4867. LPRILSIMCMDPARAMETERS = ^rilsimcmdparameters_tag;
  4868. // -----------------------------------------------------------------------------
  4869. //
  4870. // @doc EXTERNAL
  4871. //
  4872. // @struct RILSIMRESPONSE | Response to a restrcited SIM command
  4873. //
  4874. // @comm None
  4875. //
  4876. // -----------------------------------------------------------------------------
  4877. //#pragma warning(disable : 4200) // Disable "C4200: nonstandard extension used : zero-sized array in struct/union"
  4878. type
  4879. rilsimresponse_tag = record
  4880. cbSize:DWORD; // @field structure size in bytes
  4881. dwParams:DWORD; // @field indicates valid parameters
  4882. dwStatusWord1:DWORD; // @field return parameter specific to SIM command
  4883. dwStatusWord2:DWORD; // @field return parameter specific to SIM command
  4884. pbResponse:array[0..0] of byte; // @field additional bytes of response data
  4885. end;
  4886. RILSIMRESPONSE = rilsimresponse_tag;
  4887. LPRILSIMRESPONSE = ^rilsimresponse_tag;
  4888. //#pragma warning(default : 4200)
  4889. // -----------------------------------------------------------------------------
  4890. //
  4891. // @doc EXTERNAL
  4892. //
  4893. // @struct RILSIMRECORDSTATUS | Response to a restrcited SIM command
  4894. //
  4895. // @comm None
  4896. //
  4897. // -----------------------------------------------------------------------------
  4898. type
  4899. rilsimrecordstatus_tag = record
  4900. cbSize:DWORD; // @field Size of the structure in bytes
  4901. dwParams:DWORD; // @field Indicates valid parameter values
  4902. dwRecordType:DWORD; // @field RIL_SIMRECORDTYPE_* Constant
  4903. dwItemCount:DWORD; // @field Number of items in the record
  4904. dwSize:DWORD; // @field Size in bytes of each item
  4905. end;
  4906. RILSIMRECORDSTATUS = rilsimrecordstatus_tag;
  4907. LPRILSIMRECORDSTATUS = ^rilsimrecordstatus_tag;
  4908. // -----------------------------------------------------------------------------
  4909. //
  4910. // @doc EXTERNAL
  4911. //
  4912. // @struct RILCOSTINFO | Service cost info
  4913. //
  4914. // @comm None
  4915. //
  4916. // -----------------------------------------------------------------------------
  4917. type
  4918. rilcostinfo_tag = record
  4919. cbSize:DWORD; // @field structure size in bytes
  4920. dwParams:DWORD; // @field indicates valid parameters
  4921. dwCCM:DWORD; // @field current call meter
  4922. dwACM:DWORD; // @field accumulated call meter
  4923. dwMaxACM:DWORD; // @field maximum accumulated call meter
  4924. dwCostPerUnit:DWORD; // @field cost per unit, in 16.16 fixed point
  4925. wszCurrency:array[0..MAXLENGTH_CURRENCY-1] of WCHAR; // @field current currency
  4926. end;
  4927. RILCOSTINFO = rilcostinfo_tag;
  4928. LPRILCOSTINFO = ^rilcostinfo_tag;
  4929. // -----------------------------------------------------------------------------
  4930. //
  4931. // @doc EXTERNAL
  4932. //
  4933. // @struct RILSIGNALQUALITY | Signal quality info
  4934. //
  4935. // @comm None
  4936. //
  4937. // -----------------------------------------------------------------------------
  4938. type
  4939. rilsignalquality_tag = record
  4940. cbSize:DWORD; // @field structure size in bytes
  4941. dwParams:DWORD; // @field indicates valid parameters
  4942. nSignalStrength:longint; // @field TBD
  4943. nMinSignalStrength:longint; // @field TBD
  4944. nMaxSignalStrength:longint; // @field TBD
  4945. dwBitErrorRate:DWORD; // @field bit error rate in 1/100 of a percent
  4946. nLowSignalStrength:longint; // @field TBD
  4947. nHighSignalStrength:longint; // @field TBD
  4948. end;
  4949. RILSIGNALQUALITY = rilsignalquality_tag;
  4950. LPRILSIGNALQUALITY = ^rilsignalquality_tag;
  4951. // -----------------------------------------------------------------------------
  4952. //
  4953. // @doc EXTERNAL
  4954. //
  4955. // @struct RILCELLTOWERINFO | Cell tower info
  4956. //
  4957. // @comm None
  4958. //
  4959. // -----------------------------------------------------------------------------
  4960. type
  4961. rilcelltowerinfo_tag = record
  4962. cbSize:DWORD; // @field structure size in bytes
  4963. dwParams:DWORD; // @field indicates valid parameters
  4964. dwMobileCountryCode:DWORD; // @field TBD
  4965. dwMobileNetworkCode:DWORD; // @field TBD
  4966. dwLocationAreaCode:DWORD; // @field TBD
  4967. dwCellID:DWORD; // @field TBD
  4968. dwBaseStationID:DWORD; // @field TBD
  4969. dwBroadcastControlChannel:DWORD; // @field TBD
  4970. dwRxLevel:DWORD; // @field Value from 0-63 (see GSM 05.08, 8.1.4)
  4971. dwRxLevelFull:DWORD; // @field Value from 0-63 (see GSM 05.08, 8.1.4)
  4972. dwRxLevelSub:DWORD; // @field Value from 0-63 (see GSM 05.08, 8.1.4)
  4973. dwRxQuality:DWORD; // @field Value from 0-7 (see GSM 05.08, 8.2.4)
  4974. dwRxQualityFull:DWORD; // @field Value from 0-7 (see GSM 05.08, 8.2.4)
  4975. dwRxQualitySub:DWORD; // @field Value from 0-7 (see GSM 05.08, 8.2.4)
  4976. dwIdleTimeSlot:DWORD; // @field TBD
  4977. dwTimingAdvance:DWORD; // @field TBD
  4978. dwGPRSCellID:DWORD; // @field TBD
  4979. dwGPRSBaseStationID:DWORD; // @field TBD
  4980. dwNumBCCH:DWORD; // @field TBD
  4981. rgbBCCH:array[0..MAXLENGTH_BCCH-1] of byte; // @field TBD
  4982. rgbNMR:array[0..MAXLENGTH_NMR-1] of byte; // @field TBD
  4983. end;
  4984. RILCELLTOWERINFO = rilcelltowerinfo_tag;
  4985. LPRILCELLTOWERINFO = ^rilcelltowerinfo_tag;
  4986. // -----------------------------------------------------------------------------
  4987. //
  4988. // @doc EXTERNAL
  4989. //
  4990. // @struct RILREMOTEPARTYINFO | Incoming call info
  4991. //
  4992. // @comm None
  4993. //
  4994. // -----------------------------------------------------------------------------
  4995. type
  4996. rilremotepartyinfo_tag = record
  4997. cbSize:DWORD; // @field structure size in bytes
  4998. dwParams:DWORD; // @field indicates valid parameters
  4999. raAddress:RILADDRESS; // @field address of caller
  5000. rsaSubAddress:RILSUBADDRESS; // @field subaddress of caller
  5001. wszDescription:array[0..MAXLENGTH_DESCRIPTION-1] of WCHAR; // @field text associated with caller
  5002. dwValidity:DWORD; // @field indicates validity of caller info
  5003. end;
  5004. RILREMOTEPARTYINFO = rilremotepartyinfo_tag;
  5005. LPRILREMOTEPARTYINFO = ^rilremotepartyinfo_tag;
  5006. // -----------------------------------------------------------------------------
  5007. //
  5008. // @doc EXTERNAL
  5009. //
  5010. // @struct RILCALLWAITINGINFO | Call waiting info
  5011. //
  5012. // @comm None
  5013. //
  5014. // -----------------------------------------------------------------------------
  5015. type
  5016. rilcallwaitinginfo_tag = record
  5017. cbSize:DWORD; // @field structure size in bytes
  5018. dwParams:DWORD; // @field indicates valid parameters
  5019. dwCallType:DWORD; // @field type of call
  5020. dwAddressId:DWORD; // @field indicates address ID on which the incoming call arrived (if available)
  5021. rrpiCallerInfo:RILREMOTEPARTYINFO; // @field caller information
  5022. end;
  5023. RILCALLWAITINGINFO = rilcallwaitinginfo_tag;
  5024. LPRILCALLWAITINGINFO = ^rilcallwaitinginfo_tag;
  5025. // -----------------------------------------------------------------------------
  5026. //
  5027. // @doc EXTERNAL
  5028. //
  5029. // @struct RILINTERMEDIATESSINFO | Intermediate Supplemenary Service Info
  5030. //
  5031. // @comm None
  5032. //
  5033. // -----------------------------------------------------------------------------
  5034. type
  5035. rilintermediatessinfo_tag = record
  5036. cbSize:DWORD; // @field structure size in bytes
  5037. dwParams:DWORD; // @field indicates valid parameters
  5038. dwNotificationCode:DWORD; // @field indicates type of notification
  5039. dwCallUserGroupIndex:DWORD; // @field indicates the CUG Index
  5040. end;
  5041. RILINTERMEDIATESSINFO = rilintermediatessinfo_tag;
  5042. LPRILINTERMEDIATESSINFO = ^rilintermediatessinfo_tag;
  5043. // -----------------------------------------------------------------------------
  5044. //
  5045. // @doc EXTERNAL
  5046. //
  5047. // @struct RILUNSOLICITEDSSINFO | Unsolicited Supplemenary Service Info
  5048. //
  5049. // @comm None
  5050. //
  5051. // -----------------------------------------------------------------------------
  5052. type
  5053. rilunsolicitedssinfo_tag = record
  5054. cbSize:DWORD; // @field structure size in bytes
  5055. dwParams:DWORD; // @field indicates valid parameters
  5056. dwNotificationCode:DWORD; // @field indicates type of notification
  5057. dwCallUserGroupIndex:DWORD; // @field indicates the CUG Index
  5058. raAddress:RILADDRESS; // @field call address
  5059. rsaSubAddress:RILSUBADDRESS; // @field subaddress
  5060. end;
  5061. RILUNSOLICITEDSSINFO = rilunsolicitedssinfo_tag;
  5062. LPRILUNSOLICITEDSSINFO = ^rilunsolicitedssinfo_tag;
  5063. // -----------------------------------------------------------------------------
  5064. //
  5065. // @doc EXTERNAL
  5066. //
  5067. // @struct RILSERVICEINFO | Connection service information
  5068. //
  5069. // @comm None
  5070. //
  5071. // -----------------------------------------------------------------------------
  5072. type
  5073. rilserviceinfo_tag = record
  5074. cbSize:DWORD; // @field structure size in bytes
  5075. dwParams:DWORD; // @field indicates valid parameters
  5076. fSynchronous:BOOL; // @field TRUE if connection service is synchronous, FALSE if asynchronous
  5077. fTransparent:BOOL; // @field TRUE if connection service is transparent, FALSE if non-transparent
  5078. end;
  5079. RILSERVICEINFO = rilserviceinfo_tag;
  5080. LPRILSERVICEINFO = ^rilserviceinfo_tag;
  5081. // -----------------------------------------------------------------------------
  5082. //
  5083. // @doc EXTERNAL
  5084. //
  5085. // @struct RILRINGINFO | Ring information
  5086. //
  5087. // @comm None
  5088. //
  5089. // -----------------------------------------------------------------------------
  5090. type
  5091. rilringinfo_tag = record
  5092. cbSize:DWORD; // @field structure size in bytes
  5093. dwParams:DWORD; // @field indicates valid parameters
  5094. dwCallType:DWORD; // @field type of the offered call (<def RIL_CALLTYPE_> constant)
  5095. dwAddressId:DWORD; // @field indicates address ID on which the incoming call arrived (if available)
  5096. rsiServiceInfo:RILSERVICEINFO; // @field data connection service information (set only for <def RIL_CALLTYPE_DATA>)
  5097. end;
  5098. RILRINGINFO = rilringinfo_tag;
  5099. LPRILRINGINFO = ^rilringinfo_tag;
  5100. // -----------------------------------------------------------------------------
  5101. //
  5102. // @doc EXTERNAL
  5103. //
  5104. // @struct RILDIALINFO | Ring information
  5105. //
  5106. // @comm None
  5107. //
  5108. // -----------------------------------------------------------------------------
  5109. type
  5110. rildialinfo_tag = record
  5111. cbSize:DWORD; // @field structure size in bytes
  5112. dwParams:DWORD; // @field indicates valid parameters
  5113. hrCmdId:HRESULT; // @field handle of call being dialed
  5114. dwCallId:DWORD; // @field id of call being dialed
  5115. end;
  5116. RILDIALINFO = rildialinfo_tag;
  5117. LPRILDIALINFO = ^rildialinfo_tag;
  5118. // -----------------------------------------------------------------------------
  5119. //
  5120. // @doc EXTERNAL
  5121. //
  5122. // @struct RILCONNECTINFO | Connection info
  5123. //
  5124. // @comm None
  5125. //
  5126. // -----------------------------------------------------------------------------
  5127. type
  5128. rilconnectinfo_tag = record
  5129. cbSize:DWORD; // @field structure size in bytes
  5130. dwParams:DWORD; // @field indicates valid parameters
  5131. dwCallType:DWORD; // @field type of the established connection (<def RIL_CALLTYPE_> constant)
  5132. dwBaudRate:DWORD; // @field Baud rate of the established connection (set only for <def RIL_CALLTYPE_DATA>)
  5133. end;
  5134. RILCONNECTINFO = rilconnectinfo_tag;
  5135. LPRILCONNECTINFO = ^rilconnectinfo_tag;
  5136. // -----------------------------------------------------------------------------
  5137. //
  5138. // @doc EXTERNAL
  5139. //
  5140. // @struct RILMSGSTORAGEINFO | Message storage locations
  5141. //
  5142. // @comm None
  5143. //
  5144. // -----------------------------------------------------------------------------
  5145. type
  5146. rilmsgstorageinfo_tag = record
  5147. cbSize:DWORD; // @field structure size in bytes
  5148. dwParams:DWORD; // @field indicates valid parameters
  5149. dwReadLocation:DWORD; // @field current read location
  5150. dwWriteLocation:DWORD; // @field current write location
  5151. dwStoreLocation:DWORD; // @field current store location
  5152. end;
  5153. RILMSGSTORAGEINFO = rilmsgstorageinfo_tag;
  5154. LPRILMSGSTORAGEINFO = ^rilmsgstorageinfo_tag;
  5155. // -----------------------------------------------------------------------------
  5156. //
  5157. // @doc EXTERNAL
  5158. //
  5159. // @struct RILSUPSERVICEDATA | Supplementary service data
  5160. //
  5161. // @comm None
  5162. //
  5163. // -----------------------------------------------------------------------------
  5164. //#pragma warning(disable : 4200) // Disable "C4200: nonstandard extension used : zero-sized array in struct/union"
  5165. type
  5166. rilsupservicedata_tag = record
  5167. cbSize:DWORD; // @field structure size in bytes
  5168. dwParams:DWORD; // @field indicates valid parameters
  5169. dwStatus:DWORD; // @field additional status for message
  5170. pbData:array[0..0] of byte; // @field message itself
  5171. end;
  5172. RILSUPSERVICEDATA = rilmsgstorageinfo_tag;
  5173. LPRILSUPSERVICEDATA = ^rilmsgstorageinfo_tag;
  5174. //#pragma warning(default : 4200)
  5175. // -----------------------------------------------------------------------------
  5176. //
  5177. // @doc EXTERNAL
  5178. //
  5179. // @struct RILCAPSDIAL | Dialing capabilities
  5180. //
  5181. // @comm None
  5182. //
  5183. // -----------------------------------------------------------------------------
  5184. type
  5185. rilcapsdial_tag = record
  5186. cbSize:DWORD; // @field structure size in bytes
  5187. dwParams:DWORD; // @field indicates valid parameters
  5188. dwCallTypes:DWORD; // @field type of call being placed
  5189. dwOptions:DWORD; // @field dialing options
  5190. end;
  5191. RILCAPSDIAL = rilcapsdial_tag;
  5192. LPRILCAPSDIAL = ^rilcapsdial_tag;
  5193. // -----------------------------------------------------------------------------
  5194. //
  5195. // @doc EXTERNAL
  5196. //
  5197. // @struct RILCAPSBEARERSVC | Bearer service capabilities
  5198. //
  5199. // @comm None
  5200. //
  5201. // -----------------------------------------------------------------------------
  5202. type
  5203. rilcapsbearersvc_tag = record
  5204. cbSize:DWORD; // @field structure size in bytes
  5205. dwParams:DWORD; // @field indicates valid parameters
  5206. dwSpeeds1:DWORD; // @field TBD
  5207. dwSpeeds2:DWORD; // @field TBD
  5208. dwServiceNames:DWORD; // @field TBD
  5209. dwConnectionElements:DWORD; // @field TBD
  5210. end;
  5211. RILCAPSBEARERSVC = rilcapsbearersvc_tag;
  5212. LPRILCAPSBEARERSVC = ^rilcapsbearersvc_tag;
  5213. // -----------------------------------------------------------------------------
  5214. //
  5215. // @doc EXTERNAL
  5216. //
  5217. // @struct RILCAPSRLP | Radio Link Protocol capabilities
  5218. //
  5219. // @comm None
  5220. //
  5221. // -----------------------------------------------------------------------------
  5222. type
  5223. rilcapsrlp_tag = record
  5224. cbSize:DWORD; // @field structure size in bytes
  5225. dwParams:DWORD; // @field indicates valid parameters
  5226. dwVersion:DWORD; // @field TBD
  5227. rrIWSRange:RILRANGE; // @field TBD
  5228. rrMWSRange:RILRANGE; // @field TBD
  5229. rrAckTimerRange:RILRANGE; // @field TBD
  5230. rrRetransmissionAttsRange:RILRANGE; // @field TBD
  5231. rrReseqPeriodRange:RILRANGE; // @field TBD
  5232. end;
  5233. RILCAPSRLP = rilcapsrlp_tag;
  5234. LPRILCAPSRLP = ^rilcapsrlp_tag;
  5235. // -----------------------------------------------------------------------------
  5236. //
  5237. // @doc EXTERNAL
  5238. //
  5239. // @struct RILCAPSMSGMEMORYLOCATIONS | Message memory location capabilities
  5240. //
  5241. // @comm None
  5242. //
  5243. // -----------------------------------------------------------------------------
  5244. type
  5245. rilcapsmsgmemorylocations_tag = record
  5246. cbSize:DWORD; // @field structure size in bytes
  5247. dwParams:DWORD; // @field indicates valid parameters
  5248. dwReadLocations:DWORD; // @field supported read locations
  5249. dwWriteLocations:DWORD; // @field supported write locations
  5250. dwStoreLocations:DWORD; // @field supported store locations
  5251. end;
  5252. RILCAPSMSGMEMORYLOCATIONS = rilcapsmsgmemorylocations_tag;
  5253. LPRILCAPSMSGMEMORYLOCATIONS = ^rilcapsmsgmemorylocations_tag;
  5254. // -----------------------------------------------------------------------------
  5255. //
  5256. // @doc EXTERNAL
  5257. //
  5258. // @struct RILCAPSLOCKINGPWDLENGTH | Locking password length capabilities
  5259. //
  5260. // @comm None
  5261. //
  5262. // -----------------------------------------------------------------------------
  5263. type
  5264. rilcapslockingpwdlength_tag = record
  5265. cbSize:DWORD; // @field structure size in bytes
  5266. dwParams:DWORD; // @field indicates valid parameters
  5267. dwFacility:DWORD; // @field the locking facility
  5268. dwPasswordLength:DWORD; // @field maximum password length
  5269. end;
  5270. RILCAPSLOCKINGPWDLENGTH = rilcapslockingpwdlength_tag;
  5271. LPRILCAPSLOCKINGPWDLENGTH = ^rilcapslockingpwdlength_tag;
  5272. // -----------------------------------------------------------------------------
  5273. //
  5274. // @doc EXTERNAL
  5275. //
  5276. // @struct RILCAPSBARRINGPWDLENGTH | Call barring password length capabilities
  5277. //
  5278. // @comm None
  5279. //
  5280. // -----------------------------------------------------------------------------
  5281. type
  5282. rilcapsbarringpwdlength_tag = record
  5283. cbSize:DWORD; // @field structure size in bytes
  5284. dwParams:DWORD; // @field indicates valid parameters
  5285. dwType:DWORD; // @field type of call barring
  5286. dwPasswordLength:DWORD; // @field maximum password length
  5287. end;
  5288. RILCAPSBARRINGPWDLENGTH = rilcapsbarringpwdlength_tag;
  5289. LPRILCAPSBARRINGPWDLENGTH = ^rilcapsbarringpwdlength_tag;
  5290. // -----------------------------------------------------------------------------
  5291. //
  5292. // @doc EXTERNAL
  5293. //
  5294. // @struct RILCAPSDATACOMPRESSION | Data compression capabilities
  5295. //
  5296. // @comm None
  5297. //
  5298. // -----------------------------------------------------------------------------
  5299. type
  5300. rilcapsdatacompression_tag = record
  5301. cbSize:DWORD; // @field structure size in bytes
  5302. dwParams:DWORD; // @field indicates valid parameters
  5303. dwDirection:DWORD; // @field indicates supported direction values
  5304. dwNegotiation:DWORD; // @field indicates supported negotiation values
  5305. rrMaxDict:RILRANGE; // @field range of supported max_dict values
  5306. rrMaxString:RILRANGE; // @field range of supported max_string values
  5307. end;
  5308. RILCAPSDATACOMPRESSION = rilcapsdatacompression_tag;
  5309. LPRILCAPSDATACOMPRESSION = ^rilcapsdatacompression_tag;
  5310. // -----------------------------------------------------------------------------
  5311. //
  5312. // @doc EXTERNAL
  5313. //
  5314. // @struct RILERRORCORRECTIONINFO | Error correction settings
  5315. //
  5316. // @comm None
  5317. //
  5318. // -----------------------------------------------------------------------------
  5319. type
  5320. rilcapserrorcorrection_tag = record
  5321. cbSize:DWORD; // @field structure size in bytes
  5322. dwParams:DWORD; // @field indicates valid parameters
  5323. dwOriginalRequest:DWORD; // @field indicates supported originator request values
  5324. dwOriginalFallback:DWORD; // @field indicates supported originator fallback values
  5325. dwAnswererFallback:DWORD; // @field indicates supported answerer fallback values
  5326. end;
  5327. RILCAPSERRORCORRECTION = rilcapserrorcorrection_tag;
  5328. LPRILCAPSERRORCORRECTION = ^rilcapserrorcorrection_tag;
  5329. // -----------------------------------------------------------------------------
  5330. //
  5331. // @doc EXTERNAL
  5332. //
  5333. // @struct RILCAPSHSCSD | High Speed Circuit Switched Data capabilities
  5334. //
  5335. // @comm None
  5336. //
  5337. // -----------------------------------------------------------------------------
  5338. type
  5339. rilcapshscsd_tag = record
  5340. cbSize:DWORD; // @field structure size in bytes
  5341. dwParams:DWORD; // @field indicates valid parameters
  5342. dwMultislotClass:DWORD; // @field multislot class supported
  5343. dwMaxRxTimeslots:DWORD; // @field maximum number of receive timeslots
  5344. dwMaxTxTimeslots:DWORD; // @field maximum number of transmit timeslots
  5345. dwMaxTotalTimeslots:DWORD; // @field maximum number of total timeslots
  5346. dwChannelCodings:DWORD; // @field supported channel codings
  5347. dwAirInterfaceUserRates:DWORD; // @field supported air interfacerates
  5348. rrTopRxTimeslotRange:RILRANGE; // @field TBD
  5349. end;
  5350. RILCAPSHSCSD = rilcapshscsd_tag;
  5351. LPRILCAPSHSCSD = ^rilcapshscsd_tag;
  5352. // -----------------------------------------------------------------------------
  5353. //
  5354. // @doc EXTERNAL
  5355. //
  5356. // @struct RILCAPSPBENTRYLENGTH | Phone book entry length maximum values
  5357. //
  5358. // @comm None
  5359. //
  5360. // -----------------------------------------------------------------------------
  5361. type
  5362. rilcapspbentrylength_tag = record
  5363. cbSize:DWORD; // @field structure size in bytes
  5364. dwParams:DWORD; // @field indicates valid parameters
  5365. dwMaxAddressLength:DWORD; // @field maximum length of the phone number portion
  5366. dwMaxTextLength:DWORD; // @field maximum length of the text portion
  5367. end;
  5368. RILCAPSPBENTRYLENGTH = rilcapspbentrylength_tag;
  5369. LPRILCAPSPBENTRYLENGTH = ^rilcapspbentrylength_tag;
  5370. // -----------------------------------------------------------------------------
  5371. //
  5372. // @doc EXTERNAL
  5373. //
  5374. // @struct RILGPRSPROTOCOLCAPS | General Packet Radio Service capabilities
  5375. //
  5376. // @comm TBDTBD
  5377. //
  5378. // -----------------------------------------------------------------------------
  5379. //#pragma warning(disable : 4200) // Disable "C4200: nonstandard extension used : zero-sized array in struct/union"
  5380. type
  5381. rilgprscontextcaps_tag = record
  5382. cbSize:DWORD; // @field structure size in bytes (padded to DWORD)
  5383. dwParams:DWORD; // @field indicates valid parameters
  5384. dwProtocolType:DWORD; // @field a RIL_GPRSPROTOCOL_* constant
  5385. ContextIDRange:RILRANGE; // @field min/max context ids
  5386. dwDataCompression:DWORD; // @field valid data compression values
  5387. dwHeaderCompression:DWORD; // @field valid header compression values
  5388. dwParameterLength:DWORD; // @field length of parameters list in bytes
  5389. szParameters:array[0..0] of AnsiChar; // @field valid string parameters of this prococol type, delimited by \0, with final param terminated by \0\0
  5390. end;
  5391. RILGPRSCONTEXTCAPS = rilgprscontextcaps_tag;
  5392. LPRILGPRSCONTEXTCAPS = ^rilgprscontextcaps_tag;
  5393. //#pragma warning(default : 4200)
  5394. // -----------------------------------------------------------------------------
  5395. //
  5396. // @doc EXTERNAL
  5397. //
  5398. // @struct RILGPRSCONTEXT | A PDP Context represents a certain configuration for
  5399. // packet data communication.
  5400. //
  5401. // @comm None
  5402. //
  5403. // -----------------------------------------------------------------------------
  5404. //#pragma warning(disable : 4200) // Disable "C4200: nonstandard extension used : zero-sized array in struct/union"
  5405. type
  5406. rilgprscontext_tag = record
  5407. cbSize:DWORD; // @field structure size in bytes
  5408. dwParams:DWORD; // @field indicates valid parameters
  5409. dwContextID:DWORD; // @field the context number
  5410. dwProtocolType:DWORD; // @field a RIL_GPRSPROTOCOL_*constant
  5411. wszAccessPointName:array[0..MAXLENGTH_GPRSACCESSPOINTNAME-1] of WCHAR; // @field a logical name to select the gateway gprs
  5412. // (which defines the external packet data network to use)
  5413. wszAddress:array[0..MAXLENGTH_GPRSADDRESS-1] of WCHAR; // @field the packet address to use (if null, request dynamic)
  5414. dwDataCompression:DWORD; // @field a RIL_GPRSDATACOMP_*
  5415. dwHeaderCompression:DWORD; // @field a RIL_GPRSHEADERCOMP_*
  5416. dwParameterLength:DWORD; // @field length of parameters list
  5417. szParameters:array[0..0] of AnsiChar; // @field parameters specific to the prococol type
  5418. end;
  5419. RILGPRSCONTEXT = rilgprscontext_tag;
  5420. LPRILGPRSCONTEXT = ^rilgprscontext_tag;
  5421. //#pragma warning(default : 4200)
  5422. // -----------------------------------------------------------------------------
  5423. //
  5424. // @doc EXTERNAL
  5425. //
  5426. // @struct RILGPRSPROTOCOLCAPS | General Packet Radio Service capabilities
  5427. //
  5428. // @comm TBDTBD
  5429. //
  5430. // -----------------------------------------------------------------------------
  5431. //#pragma warning(disable : 4200) // Disable "C4200: nonstandard extension used : zero-sized array in struct/union"
  5432. type
  5433. rilgprsqosprofilecaps_tag = record
  5434. cbSize:DWORD; // @field structure size in bytes (padded to DWORD)
  5435. dwParams:DWORD; // @field indicates valid parameters
  5436. dwProtocolType:DWORD; // @field a RIL_GPRSPROTOCOL_* constant
  5437. dwPrecedenceClass:DWORD; // @field valid RIL_GPRSPRECEDENCECLASS_* constants
  5438. dwDelayClass:DWORD; // @field valid RIL_GPRSDELAYCLASS_* constants
  5439. dwReliabilityClass:DWORD; // @field valid RIL_GPRSRELIABILITYCLASS_* constants
  5440. dwPeakThruClass:DWORD; // @field valid RIL_GPRSPEAKTHRUCLASS_* constants
  5441. dwMeanThruClass:DWORD; // @field valid RIL_GPRSMEANTHRUCLASS_* constants
  5442. end;
  5443. RILGPRSQOSPROFILECAPS = rilgprsqosprofilecaps_tag;
  5444. LPRILGPRSQOSPROFILECAPS = ^rilgprsqosprofilecaps_tag;
  5445. //#pragma warning(default : 4200)
  5446. // -----------------------------------------------------------------------------
  5447. //
  5448. // @doc EXTERNAL
  5449. //
  5450. // @struct RILGPRSQOSPROFILE | A quality of service profile
  5451. //
  5452. // @comm None
  5453. //
  5454. // -----------------------------------------------------------------------------
  5455. type
  5456. rilgprsqosprofile_tag = record
  5457. cbSize:DWORD; // @field structure size in bytes
  5458. dwParams:DWORD; // @field indicates valid parameters
  5459. dwContextID:DWORD; // @field the context number
  5460. dwPrecedenceClass:DWORD; // @field a RIL_GPRSPRECEDENCECLASS_* constant
  5461. dwDelayClass:DWORD; // @field a RIL_GPRSDELAYCLASS_* constant
  5462. dwReliabilityClass:DWORD; // @field a RIL_GPRSRELIABILITYCLASS_* constant
  5463. dwPeakThruClass:DWORD; // @field a RIL_GPRSPEAKTHRUCLASS_* constant
  5464. dwMeanThruClass:DWORD; // @field a RIL_GPRSMEANTHRUCLASS_* constant
  5465. end;
  5466. RILGPRSQOSPROFILE = rilgprsqosprofile_tag;
  5467. LPRILGPRSQOSPROFILE = ^rilgprsqosprofile_tag;
  5468. // -----------------------------------------------------------------------------
  5469. //
  5470. // @doc EXTERNAL
  5471. //
  5472. // @struct RILGPRSANSWER | A quality of service profile
  5473. //
  5474. // @comm None
  5475. //
  5476. // -----------------------------------------------------------------------------
  5477. //#pragma warning(disable : 4200) // Disable "C4200: nonstandard extension used : zero-sized array in struct/union"
  5478. type
  5479. rilgprsanswer_tag = record
  5480. cbSize:DWORD; // @field structure size in bytes
  5481. fAnswer:BOOL; // @parm TRUE: accept, FALSE: reject
  5482. dwL2Protocol:DWORD; // @parm an optional RILL2PROTOCOL_* constant
  5483. dwNumContexts:DWORD; // @parm number of contexts which follow
  5484. dwContextID:array[0..0] of DWORD; // @parm identifies the context(s) to enter data state
  5485. end;
  5486. RILGPRSANSWER = rilgprsanswer_tag;
  5487. LPRILGPRSANSWER = ^rilgprsanswer_tag;
  5488. //#pragma warning(default : 4200)
  5489. // -----------------------------------------------------------------------------
  5490. //
  5491. // @doc EXTERNAL
  5492. //
  5493. // @struct RILENTERGPRSDATAMODE | A quality of service profile
  5494. //
  5495. // @comm None
  5496. //
  5497. // -----------------------------------------------------------------------------
  5498. //#pragma warning(disable : 4200) // Disable "C4200: nonstandard extension used : zero-sized array in struct/union"
  5499. type
  5500. rilentergprsdatamode_tag = record
  5501. cbSize:DWORD; // @field structure size in bytes
  5502. dwL2Protocol:DWORD; // @parm an optional RILL2PROTOCOL_* constant
  5503. dwNumContexts:DWORD; // @parm number of contexts which follow
  5504. dwContextID:array[0..0] of DWORD; // @parm identifies the context(s) to enter data state
  5505. end;
  5506. RILENTERGPRSDATAMODE = rilentergprsdatamode_tag;
  5507. LPRILENTERGPRSDATAMODE = ^rilentergprsdatamode_tag;
  5508. //#pragma warning(default : 4200)
  5509. // -----------------------------------------------------------------------------
  5510. //
  5511. // @doc EXTERNAL
  5512. //
  5513. // @struct RILLOCATIONINFO | Contains network location information
  5514. //
  5515. // @comm None
  5516. //
  5517. // -----------------------------------------------------------------------------
  5518. type
  5519. rillocationinfo_tag = record
  5520. cbSize:DWORD; // @field structure size in bytes
  5521. dwLocationAreaCode:DWORD; // @field the context number
  5522. dwCellID:DWORD; // @field the context number
  5523. end;
  5524. RILLOCATIONINFO = rillocationinfo_tag;
  5525. LPRILLOCATIONINFO = ^rillocationinfo_tag;
  5526. // -----------------------------------------------------------------------------
  5527. //
  5528. // @doc EXTERNAL
  5529. //
  5530. // @struct RILGPRSCONTEXTACTIVATED | Shows which contexts are active
  5531. //
  5532. // @comm None
  5533. //
  5534. // -----------------------------------------------------------------------------
  5535. type
  5536. rilgprscontextactivated_tag = record
  5537. cbSize:DWORD; // @field structure size in bytes
  5538. dwEvent:DWORD; // @field the disconnection event type: RIL_PARAM_RILGPRSCONTEXTACTIVATED_ (applies to deactivation)
  5539. dwContextID:DWORD; // @field the context number
  5540. fActivated:BOOL; // @field whether the context is activated
  5541. end;
  5542. RILGPRSCONTEXTACTIVATED = rilgprscontextactivated_tag;
  5543. LPRILGPRSCONTEXTACTIVATED = ^rilgprscontextactivated_tag;
  5544. // -----------------------------------------------------------------------------
  5545. //
  5546. // @doc EXTERNAL
  5547. //
  5548. // @struct RILLOGATCOMMAND | Contains inbound and outbound AT commands/responses
  5549. //
  5550. // @comm None
  5551. //
  5552. // -----------------------------------------------------------------------------
  5553. type
  5554. rillogatinfo_tag = record
  5555. cbSize:DWORD; // @field structure size in bytes
  5556. cbLength:DWORD; // @field command buffer length
  5557. szRsp:array[0..MAXLENGTH_CMD-1] of byte; // @field command buffer
  5558. fResponse:BOOL; // @field TRUE if szRsp contains a response; FALSE if szRsp contains a command
  5559. end;
  5560. RILLOGATINFO = rillogatinfo_tag;
  5561. LPRILLOGATINFO = ^rillogatinfo_tag;
  5562. // -----------------------------------------------------------------------------
  5563. //
  5564. // @doc EXTERNAL
  5565. //
  5566. // @struct RILNDISIPV6ADDR | Encapsulates an IPv6 address.
  5567. //
  5568. // @comm None
  5569. //
  5570. // -----------------------------------------------------------------------------
  5571. const
  5572. IPV6_ADDRESS_LENGTH = 16;
  5573. IPV6_ADDRESS_LENGTH_IN_UCHAR = IPV6_ADDRESS_LENGTH;
  5574. IPV6_ADDRESS_LENGTH_IN_USHORT = IPV6_ADDRESS_LENGTH div 2;
  5575. type
  5576. rilndisipv6addr_tag = record
  5577. case USHORT of
  5578. 0: (_Byte:array[0..IPV6_ADDRESS_LENGTH_IN_UCHAR-1] of UCHAR);
  5579. 1: (_Word:array[0..IPV6_ADDRESS_LENGTH_IN_USHORT-1] of USHORT);
  5580. end;
  5581. RILNDISIPV6ADDR = rilndisipv6addr_tag;
  5582. LPRILNDISIPV6ADDR = ^rilndisipv6addr_tag;
  5583. // -----------------------------------------------------------------------------
  5584. //
  5585. // @doc EXTERNAL
  5586. //
  5587. // @struct RILNDISIPCONFIG | returned in association with RIL_NOTIFY_NDIS_IPCONFIG
  5588. //
  5589. // @comm None
  5590. //
  5591. // -----------------------------------------------------------------------------
  5592. type
  5593. Tipv4 = record
  5594. dwFlags:DWORD; // @field bitfield of valid in_addr parameters defined by RIL_PARAM_NDISIPCONFIG_xxx
  5595. inIPAddress:DWORD;
  5596. inPrimaryDNS:DWORD;
  5597. inSecondaryDNS:DWORD;
  5598. inDefaultGateway:DWORD;
  5599. inSubnetMask:DWORD;
  5600. end;
  5601. Tipv6 = record
  5602. dwFlags:DWORD; // @field bitfield of valid in_addr parameters defined by RIL_PARAM_NDISIPCONFIG_IPV6_xxx
  5603. inIPAddress:RILNDISIPV6ADDR;
  5604. inPrimaryDNS:RILNDISIPV6ADDR;
  5605. inSecondaryDNS:RILNDISIPV6ADDR;
  5606. inDefaultGateway:RILNDISIPV6ADDR;
  5607. inSubnetMask:RILNDISIPV6ADDR;
  5608. dwFlowInfo:DWORD;
  5609. dwScopeId:DWORD;
  5610. end;
  5611. rilndisipconfig_tag = record
  5612. cbSize:DWORD; // @field structure size in bytes
  5613. dwContextId:DWORD;
  5614. dwProtocol:DWORD; // @field discriminator for the union field; defined by RIL_PARAM_NDISIPCONFIG_PROTOCOL_*
  5615. case DWORD of
  5616. 0: (ipv4:Tipv4);
  5617. 1: (ipv6:Tipv6);
  5618. end;
  5619. RILNDISIPCONFIG = rilndisipconfig_tag;
  5620. LPRILNDISIPCONFIG = ^rilndisipconfig_tag;
  5621. // -----------------------------------------------------------------------------
  5622. //
  5623. // @doc EXTERNAL
  5624. //
  5625. // @struct RILNDISBUFFER | Buffer defintion for use in rildndispacket_tag below.
  5626. //
  5627. // @comm None
  5628. //
  5629. // -----------------------------------------------------------------------------
  5630. type
  5631. rilndisbuffer_tag = record
  5632. pbyBytes:LPBYTE; // @field Pointer to the buffer
  5633. cByteCount:DWORD; // @field Number of bytes pointed to by pbyBytes.
  5634. end;
  5635. RILNDISBUFFER = rilndisbuffer_tag;
  5636. LPRILNDISBUFFER = ^rilndisbuffer_tag;
  5637. // -----------------------------------------------------------------------------
  5638. //
  5639. // @doc EXTERNAL
  5640. //
  5641. // @struct RILNDISPACKET |
  5642. //
  5643. // @comm None
  5644. //
  5645. // -----------------------------------------------------------------------------
  5646. type
  5647. rilndispacket_tag = record
  5648. dwContextId:DWORD;
  5649. dwSize:DWORD;
  5650. cBufferCount:DWORD;
  5651. NDISBuffer:array[0..0] of RILNDISBUFFER;
  5652. end;
  5653. RILNDISPACKET = rilndispacket_tag;
  5654. LPRILNDISPACKET = ^rilndispacket_tag;
  5655. // -----------------------------------------------------------------------------
  5656. //
  5657. // @doc EXTERNAL
  5658. //
  5659. // @struct RILNDISSTATUS |
  5660. //
  5661. // @comm None
  5662. //
  5663. // -----------------------------------------------------------------------------
  5664. type
  5665. rilndisstatus_tag = record
  5666. dwContextId:DWORD; // @parm GPRS context identifier reporting status
  5667. dwSize:DWORD; // @parm size of this struct.
  5668. dwStatusType:DWORD; // @parm RIL_PARAM_RILNDISSTATUS_ type
  5669. case longint of
  5670. 0: (pRilNdisIpConfig:LPRILNDISIPCONFIG); // @parm points to data
  5671. 1: (dwFlowControl:DWORD); // @parm flow control RIL_NDIS_XON or RIL_NDIS_XOFF
  5672. end;
  5673. RILNDISSTATUS = rilndisstatus_tag;
  5674. LPRILNDISSTATUS = ^rilndisstatus_tag;
  5675. // -----------------------------------------------------------------------------
  5676. //
  5677. // @doc EXTERNAL
  5678. //
  5679. // @func RIL NDIS receive packet callback
  5680. //
  5681. // @comm This function is called to when an IP packet is received by the
  5682. // RIL driver.
  5683. //
  5684. // -----------------------------------------------------------------------------
  5685. type
  5686. RILNDISRECEIVECALLBACK = procedure(pCallbackContext:PVOID; // @parm parameter passed to <f RIL_NDIS_SetGPRSContextActivated>
  5687. pRilPacket:LPRILNDISPACKET // @parm ponter to received packet
  5688. ); cdecl;
  5689. // -----------------------------------------------------------------------------
  5690. //
  5691. // @doc EXTERNAL
  5692. //
  5693. // @func RIL NDIS transmit packet callback
  5694. //
  5695. // @comm This function is called to when an IP packet is sent by the
  5696. // RIL driver.
  5697. //
  5698. // -----------------------------------------------------------------------------
  5699. type
  5700. RILNDISTRANSMITCALLBACK = procedure(pCallbackContext:PVOID; // @parm parameter passed to <f RIL_NDIS_SetGPRSContextActivated>
  5701. pRilPacket:LPRILNDISPACKET // @parm ponter to received packet
  5702. ); cdecl;
  5703. // -----------------------------------------------------------------------------
  5704. //
  5705. // @doc EXTERNAL
  5706. //
  5707. // @func RIL NDIS status callback
  5708. //
  5709. // @comm This function is called to when a NDIS packet IO status change occurred in the
  5710. // RIL driver.
  5711. //
  5712. // -----------------------------------------------------------------------------
  5713. type
  5714. RILNDISSTATUSCALLBACK = procedure(pCallbackContext:PVOID; // @parm parameter passed to <f RIL_NDIS_SetGPRSContextActivated>
  5715. pRilStatus:LPRILNDISSTATUS // @parm ponter to received packet
  5716. ); cdecl;
  5717. // -----------------------------------------------------------------------------
  5718. //
  5719. // @doc EXTERNAL
  5720. //
  5721. // @func RIL NDIS Receive Packet Done callback
  5722. //
  5723. // @comm This function may optionally be used to release packets from the WWAN interface.
  5724. //
  5725. // -----------------------------------------------------------------------------
  5726. type
  5727. PFNRILNDISRECEIVEPACKETDONE = procedure(lpPacketReceived:LPRILNDISPACKET); cdecl;
  5728. // -----------------------------------------------------------------------------
  5729. //
  5730. // @doc EXTERNAL
  5731. //
  5732. // @func RIL NDIS Send Packet callback
  5733. //
  5734. // @comm This function may optionally be used to send NDIS packets from the WWAN interface.
  5735. //
  5736. // -----------------------------------------------------------------------------
  5737. type
  5738. PFNRILNDISSENDPACKET = procedure(lpPacketToSend:LPRILNDISPACKET); cdecl;
  5739. const
  5740. NDIS_GPRS_PASSWORD_MAX_LENGTH = 64;
  5741. NDIS_GPRS_USERNAME_MAX_LENGTH = 64;
  5742. NDIS_GRPS_DNS_MAX_LENGTH = 64;
  5743. // -----------------------------------------------------------------------------
  5744. //
  5745. // @doc EXTERNAL
  5746. //
  5747. // @struct RILNDISGPRSCONTEXT |
  5748. //
  5749. // @comm None
  5750. //
  5751. // -----------------------------------------------------------------------------
  5752. type
  5753. rilndisgprscontext_tag = record
  5754. cbSize:DWORD; // @field structure size in bytes
  5755. dwParams:DWORD; // @field indicates valid parameters
  5756. dwContextID:DWORD; // @field identifies the context
  5757. fContextActivation:BOOL; // @field TRUE: activated, FALSE: deactivated
  5758. tszUserName:array[0..NDIS_GPRS_USERNAME_MAX_LENGTH-1] of TCHAR; // @field Context activation user name
  5759. tszPassword:array[0..NDIS_GPRS_PASSWORD_MAX_LENGTH-1] of TCHAR; // @field Context activation password
  5760. tszDNS1:array[0..NDIS_GRPS_DNS_MAX_LENGTH-1] of TCHAR; // @field Context activation DNS1
  5761. tszDNS2:array[0..NDIS_GRPS_DNS_MAX_LENGTH-1] of TCHAR; // @fielf Context activation DNS2
  5762. pfnNdisReceive:RILNDISRECEIVECALLBACK; // @parm function NDIS Rx packet callback
  5763. pfnNdisTransmit:RILNDISTRANSMITCALLBACK; // @parm function NDIS Tx packet callback
  5764. pfnNdisStatus:RILNDISSTATUSCALLBACK; // @parm function NDIS status callback
  5765. pCallbackContext:PVOID; // @parm custom parameter passed to NDIS Rx packet callback
  5766. end;
  5767. RILNDISGPRSCONTEXT = rilndisgprscontext_tag;
  5768. LPRILNDISGPRSCONTEXT = ^rilndisgprscontext_tag;
  5769. // -----------------------------------------------------------------------------
  5770. //
  5771. // @doc EXTERNAL
  5772. //
  5773. // @struct RILNDISGPRSCONTEXTRESPONSE |
  5774. //
  5775. // @comm None
  5776. //
  5777. // -----------------------------------------------------------------------------
  5778. type
  5779. rilndisgprscontextresponse_tag = record
  5780. cbSize:DWORD; // @field structure size in bytes
  5781. dwParams:DWORD; // @field RIL_PARAM_RILNDISGPRSCONTEXTRESPONSE_
  5782. dwContextID:DWORD; // @field identifies the context
  5783. dwError:DWORD; // @field error during activation.
  5784. pfnNdisSendPacket:PFNRILNDISSENDPACKET; // @parm function NDIS Send Packet
  5785. pfnNdisReceivePacketDone:PFNRILNDISRECEIVEPACKETDONE; // @parm function NDIS Receive Packet Done.
  5786. RilNdisIPConfig:RILNDISIPCONFIG; //@parm IP configuration data obtained during activation.
  5787. end;
  5788. RILNDISGPRSCONTEXTRESPONSE = rilndisgprscontextresponse_tag;
  5789. LPRILNDISGPRSCONTEXTRESPONSE = ^rilndisgprscontextresponse_tag;
  5790. type
  5791. RILNDISSETGPRSCONTEXTACTIVATED = RILNDISGPRSCONTEXT;
  5792. LPRILNDISSETGPRSCONTEXTACTIVATED = LPRILNDISGPRSCONTEXT;
  5793. // -----------------------------------------------------------------------------
  5794. //
  5795. // @doc EXTERNAL
  5796. //
  5797. // @struct RILNITZINFO |
  5798. //
  5799. // @comm None
  5800. //
  5801. // -----------------------------------------------------------------------------
  5802. type
  5803. rilnitzinfo_tag = record
  5804. cbSize:DWORD; // size of this struct.
  5805. dwParams:DWORD; // valid fields RIL_PARAM_NITZ_
  5806. dwNotificationCode:DWORD; // type of notifcation RIL_NOTIFY_NITZ
  5807. TimeZoneOffsetMinutes:longint;// Indicates the time zone offset +/-
  5808. DaylightSavingOffsetMinutes:longint; // Indicates the daylight saving offset in minutes
  5809. SysTime:SYSTEMTIME; // If available from network
  5810. end;
  5811. RILNITZINFO = rilnitzinfo_tag;
  5812. LPRILNITZINFO = ^rilnitzinfo_tag;
  5813. // -----------------------------------------------------------------------------
  5814. //
  5815. // @doc EXTERNAL
  5816. //
  5817. // @struct RILSIMSECURITYSTATUS | SIM security status struct
  5818. //
  5819. // @comm None
  5820. //
  5821. // -----------------------------------------------------------------------------
  5822. type
  5823. rilsimsecuritystatus_tag = record
  5824. cbSize:DWORD; // @field structure size in bytes
  5825. dwLockedState:DWORD; // @field one of RIL_LOCKEDSTATE_*
  5826. dwSimSecurityState:DWORD; // @field one of RIL_SIMSECURITYSTATE_*
  5827. end;
  5828. RILSIMSECURITYSTATUS = rilsimsecuritystatus_tag;
  5829. LPRILSIMSECURITYSTATUS = ^rilsimsecuritystatus_tag;
  5830. //
  5831. // RIL handle type
  5832. //
  5833. type
  5834. HRIL = HANDLE;
  5835. LPHRIL = ^HRIL;
  5836. // -----------------------------------------------------------------------------
  5837. //
  5838. // @doc EXTERNAL
  5839. //
  5840. // @func RIL function result callback
  5841. //
  5842. // @comm This function is called to send a return value after and asynchronous
  5843. // RIL function call
  5844. //
  5845. // -----------------------------------------------------------------------------
  5846. type
  5847. RILRESULTCALLBACK = procedure(dwCode:DWORD; // @parm result code
  5848. hrCmdID:HRESULT; // @parm ID returned by the command that originated this response
  5849. lpData:pointer; // @parm data associated with the notification
  5850. cbData:DWORD; // @parm size of the strcuture pointed to lpData
  5851. dwParam:DWORD // @parm parameter passed to <f RIL_Initialize>
  5852. ); cdecl;
  5853. // -----------------------------------------------------------------------------
  5854. //
  5855. // @doc EXTERNAL
  5856. //
  5857. // @func RIL notification callback
  5858. //
  5859. // @comm This function is called when the radio sends an unsolicited notifiation
  5860. //
  5861. // -----------------------------------------------------------------------------
  5862. type
  5863. RILNOTIFYCALLBACK = procedure(dwCode:DWORD; // @parm notification code
  5864. lpData:pointer; // @parm data associated with the notification
  5865. cbData:DWORD; // @parm size of the strcuture pointed to lpData
  5866. dwParam:DWORD // @parm parameter passed to <f RIL_Initialize>
  5867. ); cdecl;
  5868. // -----------------------------------------------------------------------------
  5869. //
  5870. // @doc EXTERNAL
  5871. //
  5872. // @func RIL call type determination callback
  5873. //
  5874. // @comm This function is called to determine the call type when the
  5875. // following is present in the registry:
  5876. //
  5877. // [HKEY_LOCAL_MACHINE\Comm\Cellular\RIL\RemoteCalltype]
  5878. // "CalltypeDLL"="<libraryName>.dll"
  5879. // "CalltypeFunction"="<functionName>"
  5880. //
  5881. // -----------------------------------------------------------------------------
  5882. type
  5883. RILCALLTYPECALLBACK = function(pRemotePartyInfo:LPRILREMOTEPARTYINFO // @param remote party info used to determine the call type
  5884. ):DWORD; cdecl;
  5885. //
  5886. // RIL Functions
  5887. //
  5888. // Comment: contains 132 functions.
  5889. // -----------------------------------------------------------------------------
  5890. //
  5891. // @doc EXTERNAL
  5892. //
  5893. // @func Initializes RIL for use by this client
  5894. //
  5895. // @comm Synchronous
  5896. // RIL only supports single threaded RIL handles.
  5897. // The RIL validates the application's RIL handle before using it.
  5898. // No application can use/close a RIL handle that it does not own.
  5899. //
  5900. // -----------------------------------------------------------------------------
  5901. function RIL_Initialize(dwIndex:DWORD; // @parm index of the RIL port to use (e.g., 1 for RIL1:)
  5902. pfnResult:RILRESULTCALLBACK; // @parm function result callback
  5903. pfnNotify:RILNOTIFYCALLBACK; // @parm notification callback
  5904. dwNotificationClasses:DWORD; // @parm classes of notifications to be enabled for this client
  5905. dwParam:DWORD; // @parm custom parameter passed to result and notififcation callbacks
  5906. _lphRil:LPHRIL // @parm returned handle to RIL instance
  5907. ):HRESULT; external RILDLL name 'RIL_Initialize';
  5908. // -----------------------------------------------------------------------------
  5909. //
  5910. // @doc EXTERNAL
  5911. //
  5912. // @func Initializes RIL for use by this emergency call module
  5913. //
  5914. // @comm Synchronous
  5915. //
  5916. // -----------------------------------------------------------------------------
  5917. function RIL_InitializeEmergency(dwIndex:DWORD; // @parm index of the RIL port to use (e.g., 1 for RIL1:)
  5918. pfnResult:RILRESULTCALLBACK; // @parm function result callback
  5919. pfnNotify:RILNOTIFYCALLBACK; // @parm notification callback
  5920. dwNotificationClasses:DWORD; // @parm classes of notifications to be enabled for this client
  5921. dwParam:DWORD; // @parm custom parameter passed to result and notififcation callbacks
  5922. _lphRil:LPHRIL // @parm returned handle to RIL instance
  5923. ):HRESULT; external RILDLL name 'RIL_InitializeEmergency';
  5924. // -----------------------------------------------------------------------------
  5925. //
  5926. // @doc EXTERNAL
  5927. //
  5928. // @func Deinitializes RIL
  5929. //
  5930. // @comm Synchronous
  5931. //
  5932. // -----------------------------------------------------------------------------
  5933. function RIL_Deinitialize(
  5934. _hRil:HRIL // @parm handle to an RIL instance returned by <f RIL_Initialize>
  5935. ):HRESULT; external RILDLL name 'RIL_Deinitialize';
  5936. // -----------------------------------------------------------------------------
  5937. //
  5938. // @doc EXTERNAL
  5939. //
  5940. // @func Enables additional classes of notifications for this client
  5941. //
  5942. // @comm Synchronous
  5943. //
  5944. // -----------------------------------------------------------------------------
  5945. function RIL_EnableNotifications(
  5946. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  5947. dwNotificationClasses:DWORD // @parm classes of notifications to enable
  5948. ):HRESULT; external RILDLL name 'RIL_EnableNotifications';
  5949. // -----------------------------------------------------------------------------
  5950. //
  5951. // @doc EXTERNAL
  5952. //
  5953. // @func Disables classes of notifications for this client
  5954. //
  5955. // @comm Synchronous
  5956. //
  5957. // -----------------------------------------------------------------------------
  5958. function RIL_DisableNotifications(
  5959. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  5960. dwNotificationClasses:DWORD // @parm classes of notifications to disable
  5961. ):HRESULT; external RILDLL name 'RIL_DisableNotifications';
  5962. // -----------------------------------------------------------------------------
  5963. //
  5964. // @doc EXTERNAL
  5965. //
  5966. // @func Disables classes of notifications for this client
  5967. //
  5968. // @comm Synchronous
  5969. //
  5970. // -----------------------------------------------------------------------------
  5971. function RIL_RegisterATCommandLogging(_hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  5972. fEnable:BOOL // @parm flag to turn feature on or off.
  5973. ):HRESULT; external RILDLL name 'RIL_RegisterATCommandLogging';
  5974. // -----------------------------------------------------------------------------
  5975. //
  5976. // @doc EXTERNAL
  5977. //
  5978. // @func Creates a log file of recent AT commands
  5979. //
  5980. // @comm Asynchronous.
  5981. // For Microsoft Test only. This will not be fully implemented on every
  5982. // platform. A return response of E_NOTIMPL will be returned in the
  5983. // default case.
  5984. //
  5985. // DO NOT IMPLEMENT THIS.
  5986. //
  5987. // -----------------------------------------------------------------------------
  5988. function RIL_ATCommandLogFile(_hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  5989. pszFilename:LPCTSTR // @parm String containing the filename for the log.
  5990. ):HRESULT; external RILDLL name 'RIL_ATCommandLogFile';
  5991. // -----------------------------------------------------------------------------
  5992. //
  5993. // @doc EXTERNAL
  5994. //
  5995. // @func Retrieves a serial port handle to be used for data communications
  5996. //
  5997. // @comm Synchronous. Client is responsible for closing the handle returned in <p lphSerial>.
  5998. //
  5999. // -----------------------------------------------------------------------------
  6000. function RIL_GetSerialPortHandle(
  6001. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6002. lphSerial:LPHANDLE // @parm pointer to the serial port handle
  6003. ):HRESULT; external RILDLL name 'RIL_GetSerialPortHandle';
  6004. // -----------------------------------------------------------------------------
  6005. //
  6006. // @doc EXTERNAL
  6007. //
  6008. // @func Retrieves a serial port handle to be used for video telephony
  6009. //
  6010. // @comm Synchronous. Client is responsible for closing the handle returned in <p lphSerial>.
  6011. //
  6012. // -----------------------------------------------------------------------------
  6013. function RIL_GetVTSerialPortHandle(_hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6014. lphSerial:LPHANDLE // @parm pointer to the serial port handle
  6015. ):HRESULT; external RILDLL name 'RIL_GetVTSerialPortHandle';
  6016. // -----------------------------------------------------------------------------
  6017. //
  6018. // @doc EXTERNAL
  6019. //
  6020. // @func Retrieves a serial port handle to be used for data communications
  6021. //
  6022. // @comm Synchronous. Client is responsible for closing the handle returned in <p lphSerial>.
  6023. //
  6024. // -----------------------------------------------------------------------------
  6025. function RIL_GetSerialPortHandleFromContextID(_hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6026. dwContextID:DWORD; // @parm PDP context identifier.
  6027. lphSerial:LPHANDLE // @parm pointer to the serial port handle
  6028. ):HRESULT; external RILDLL name 'RIL_GetSerialPortHandleFromContextID';
  6029. // -----------------------------------------------------------------------------
  6030. //
  6031. // @doc EXTERNAL
  6032. //
  6033. // @func Retrieves a serial port handle statistics
  6034. //
  6035. // @comm Synchronous
  6036. //
  6037. // -----------------------------------------------------------------------------
  6038. function RIL_GetSerialPortStatistics(
  6039. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6040. lpSerialPortStats:LPRILSERIALPORTSTATS // @parm pointer to the statistics structure
  6041. ):HRESULT; external RILDLL name 'RIL_GetSerialPortStatistics';
  6042. // -----------------------------------------------------------------------------
  6043. //
  6044. // @doc EXTERNAL
  6045. //
  6046. // @func Restrieves the driver version
  6047. //
  6048. // @comm Synchronous
  6049. //
  6050. // -----------------------------------------------------------------------------
  6051. function RIL_GetDriverVersion(
  6052. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6053. pdwVersion:LPDWORD // @parm pointer to version. HIWORD is major version, LOWORD is minor version
  6054. ):HRESULT; external RILDLL name 'RIL_GetDriverVersion';
  6055. // -----------------------------------------------------------------------------
  6056. //
  6057. // @doc EXTERNAL
  6058. //
  6059. // @func Restrieves information about subscriber numbers
  6060. //
  6061. // @comm Asynchronous. <p lpData> points to an array of <t RILSUBSCRIBERINFO> structures.
  6062. //
  6063. // -----------------------------------------------------------------------------
  6064. function RIL_GetSubscriberNumbers(
  6065. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6066. ):HRESULT; external RILDLL name 'RIL_GetSubscriberNumbers';
  6067. // -----------------------------------------------------------------------------
  6068. //
  6069. // @doc EXTERNAL
  6070. //
  6071. // @func Retrieves the list of available operators
  6072. //
  6073. // @comm Asynchronous. <p lpData> points to an array of <t RILOPERATORINFO> structures.
  6074. //
  6075. // -----------------------------------------------------------------------------
  6076. function RIL_GetOperatorList(
  6077. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6078. ):HRESULT; external RILDLL name 'RIL_GetOperatorList';
  6079. // -----------------------------------------------------------------------------
  6080. //
  6081. // @doc EXTERNAL
  6082. //
  6083. // @func Retrieves the built-in list of all known operators.
  6084. // This is not the list of operators available, for that see RIL_GetOperatorList.
  6085. //
  6086. // @comm Asynchronous. <p lpData> points to an array of <t RILOPERATORNAMES> structures.
  6087. //
  6088. // -----------------------------------------------------------------------------
  6089. function RIL_GetAllOperatorsList(_hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6090. ):HRESULT; external RILDLL name 'RIL_GetAllOperatorsList';
  6091. // -----------------------------------------------------------------------------
  6092. //
  6093. // @doc EXTERNAL
  6094. //
  6095. // @func Retrieves the list of preferred operators
  6096. //
  6097. // @comm Asynchronous. <p lpData> points to an array of <t RILOPERATORINFO> structures.
  6098. //
  6099. // -----------------------------------------------------------------------------
  6100. function RIL_GetPreferredOperatorList(
  6101. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6102. dwFormat:DWORD // @parm format to use for the operator names in the list
  6103. ):HRESULT; external RILDLL name 'RIL_GetPreferredOperatorList';
  6104. // -----------------------------------------------------------------------------
  6105. //
  6106. // @doc EXTERNAL
  6107. //
  6108. // @func Adds a specified operator to the list of preferred operators
  6109. //
  6110. // @comm Asynchronous. <p lpData> is <def NULL>
  6111. //
  6112. // -----------------------------------------------------------------------------
  6113. function RIL_AddPreferredOperator(
  6114. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6115. dwIndex:DWORD; // @parm storage index to use for the added operator
  6116. lpOperatorNames:LPRILOPERATORNAMES // @parm operator name
  6117. ):HRESULT; external RILDLL name 'RIL_AddPreferredOperator';
  6118. // -----------------------------------------------------------------------------
  6119. //
  6120. // @doc EXTERNAL
  6121. //
  6122. // @func Removes a specified operator from the list of preferred operators
  6123. //
  6124. // @comm Asynchronous. <p lpData> is <def NULL>.
  6125. //
  6126. // -----------------------------------------------------------------------------
  6127. function RIL_RemovePreferredOperator(
  6128. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6129. dwIndex:DWORD // @parm storage index of the preferred operator to remove
  6130. ):HRESULT; external RILDLL name 'RIL_RemovePreferredOperator';
  6131. // -----------------------------------------------------------------------------
  6132. //
  6133. // @doc EXTERNAL
  6134. //
  6135. // @func Retrieves the operator the ME is currently registered with
  6136. //
  6137. // @comm Asynchronous. <p lpData> points to an <t RILOPERATORNAMES> structure.
  6138. //
  6139. // -----------------------------------------------------------------------------
  6140. function RIL_GetCurrentOperator(
  6141. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize()>
  6142. dwFormat:DWORD // @parm format of the operator name to return (<def RIL_OPFORMAT_> constant)
  6143. ):HRESULT; external RILDLL name 'RIL_GetCurrentOperator';
  6144. // -----------------------------------------------------------------------------
  6145. //
  6146. // @doc EXTERNAL
  6147. //
  6148. // @func Registers the ME with a network operator
  6149. //
  6150. // @comm Asynchronous. <p lpData> is <def NULL>.
  6151. //
  6152. // -----------------------------------------------------------------------------
  6153. function RIL_RegisterOnNetwork(
  6154. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6155. dwMode:DWORD; // @parm operator selection mode (<def RIL_OPSELMODE_> constant)
  6156. lpOperatorNames:LPRILOPERATORNAMES // @parm operator to be selected (can be <def NULL> if <p dwMode> is <def RIL_OPSELMODE_AUTOMATIC>)
  6157. ):HRESULT; external RILDLL name 'RIL_RegisterOnNetwork';
  6158. // -----------------------------------------------------------------------------
  6159. //
  6160. // @doc EXTERNAL
  6161. //
  6162. // @func Unregisters the ME from the current newtwork operator
  6163. //
  6164. // @comm Asynchronous. <p lpData> is <def NULL>.
  6165. //
  6166. // -----------------------------------------------------------------------------
  6167. function RIL_UnregisterFromNetwork(
  6168. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6169. ):HRESULT; external RILDLL name 'RIL_UnregisterFromNetwork';
  6170. // -----------------------------------------------------------------------------
  6171. //
  6172. // @doc EXTERNAL
  6173. //
  6174. // @func Retrieves the current phone registration status
  6175. //
  6176. // @comm Asynchronous. <p lpData> points to a <def RIL_REGSTAT_> constant.
  6177. //
  6178. // -----------------------------------------------------------------------------
  6179. function RIL_GetRegistrationStatus(
  6180. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6181. pdwRegStatus:LPDWORD // @parm points to returned <def RIL_REGSTAT_> constant
  6182. ):HRESULT; external RILDLL name 'RIL_GetRegistrationStatus';
  6183. // -----------------------------------------------------------------------------
  6184. //
  6185. // @doc EXTERNAL
  6186. //
  6187. // @func Retrieves the current CallerID settings
  6188. //
  6189. // @comm Asynchronous. <p lpData> points to an <t RILCALLERIDSETTINGS> structure.
  6190. //
  6191. // -----------------------------------------------------------------------------
  6192. function RIL_GetCallerIdSettings(
  6193. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6194. ):HRESULT; external RILDLL name 'RIL_GetCallerIdSettings';
  6195. // -----------------------------------------------------------------------------
  6196. //
  6197. // @doc EXTERNAL
  6198. //
  6199. // @func Sets the current CallerID status
  6200. //
  6201. // @comm Asynchronous. <p lpData> is <def NULL>.
  6202. //
  6203. // -----------------------------------------------------------------------------
  6204. function RIL_SetCallerIdStatus(
  6205. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6206. dwStatus:DWORD // @parm status to be set (<def RIL_SVCSTAT_> constant)
  6207. ):HRESULT; external RILDLL name 'RIL_SetCallerIdStatus';
  6208. // -----------------------------------------------------------------------------
  6209. //
  6210. // @doc EXTERNAL
  6211. //
  6212. // @func Retrieves the current HideID settings
  6213. //
  6214. // @comm Asynchronous. <p lpData> points to an <t RILHIDEIDSETTINGS> structure.
  6215. //
  6216. // -----------------------------------------------------------------------------
  6217. function RIL_GetHideIdSettings(
  6218. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6219. ):HRESULT; external RILDLL name 'RIL_GetHideIdSettings';
  6220. // -----------------------------------------------------------------------------
  6221. //
  6222. // @doc EXTERNAL
  6223. //
  6224. // @func Enables or disables HideID service
  6225. //
  6226. // @comm Asynchronous. <p lpData> is <def NULL>.
  6227. //
  6228. // -----------------------------------------------------------------------------
  6229. function RIL_SetHideIdStatus(
  6230. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6231. dwStatus:DWORD // @parm status to be set (<def RIL_SVCSTAT_> constant)
  6232. ):HRESULT; external RILDLL name 'RIL_SetHideIdStatus';
  6233. // -----------------------------------------------------------------------------
  6234. //
  6235. // @doc EXTERNAL
  6236. //
  6237. // @func Retrieves the current DialedID settings
  6238. //
  6239. // @comm Asynchronous. <p lpData> points to an <t RILDIALEDIDSETTINGS> structure.
  6240. //
  6241. // -----------------------------------------------------------------------------
  6242. function RIL_GetDialedIdSettings(
  6243. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6244. ):HRESULT; external RILDLL name 'RIL_GetDialedIdSettings';
  6245. // -----------------------------------------------------------------------------
  6246. //
  6247. // @doc EXTERNAL
  6248. //
  6249. // @func Sets the current DialedID settings
  6250. //
  6251. // @comm Asynchronous. <p lpData> is <def NULL>.
  6252. //
  6253. // -----------------------------------------------------------------------------
  6254. function RIL_SetDialedIdStatus(
  6255. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6256. dwStatus:DWORD // @parm status to be set (<def RIL_SVCSTAT_> constant)
  6257. ):HRESULT; external RILDLL name 'RIL_SetDialedIdStatus';
  6258. // -----------------------------------------------------------------------------
  6259. //
  6260. // @doc EXTERNAL
  6261. //
  6262. // @func Retrieves the current HideConnectedID settings
  6263. //
  6264. // @comm Asynchronous. <p lpData> points to an <t RILHIDECONNECTEDIDSETTINGS> structure.
  6265. //
  6266. // -----------------------------------------------------------------------------
  6267. function RIL_GetHideConnectedIdSettings(
  6268. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6269. ):HRESULT; external RILDLL name 'RIL_GetHideConnectedIdSettings';
  6270. // -----------------------------------------------------------------------------
  6271. //
  6272. // @doc EXTERNAL
  6273. //
  6274. // @func Sets the current HideConnectedID settings
  6275. //
  6276. // @comm Asynchronous. <p lpData> is <def NULL>.
  6277. //
  6278. // -----------------------------------------------------------------------------
  6279. function RIL_SetHideConnectedIdStatus(
  6280. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6281. dwStatus:DWORD // @parm status to be set (<def RIL_SVCSTAT_> constant)
  6282. ):HRESULT; external RILDLL name 'RIL_SetHideConnectedIdStatus';
  6283. // -----------------------------------------------------------------------------
  6284. //
  6285. // @doc EXTERNAL
  6286. //
  6287. // @func Retrieves the status for a Completion of Call to Busy Subscriber index.
  6288. //
  6289. // @comm Asynchronous. If active, <p lpData> points to an array of <t char>s
  6290. // indicating the phone number for which CCBS is active. If CCBS is not
  6291. // active for that entry, <p lpData> is <def NULL>.
  6292. //
  6293. // -----------------------------------------------------------------------------
  6294. function RIL_GetCCBSStatus(
  6295. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6296. dwCCBSIndex:DWORD // @parm indicates which entry to query
  6297. ):HRESULT; external RILDLL name 'RIL_GetCCBSStatus';
  6298. // -----------------------------------------------------------------------------
  6299. //
  6300. // @doc EXTERNAL
  6301. //
  6302. // @func Clears registration for a Completion of Call to Busy Subscriber index.
  6303. // Activation of CCBS is used by calling RIL_ManageCalls using the
  6304. // <def RIL_CALLCMD_INVOKECCBS> flag.
  6305. //
  6306. // @comm Asynchronous. <p lpData> is <def NULL>.
  6307. //
  6308. // -----------------------------------------------------------------------------
  6309. function RIL_ClearCCBSRegistration(
  6310. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6311. dwCCBSIndex:DWORD // @parm indicates which entry to clear, may be <def RIL_CCBS_ALL>
  6312. ):HRESULT; external RILDLL name 'RIL_ClearCCBSRegistration';
  6313. // -----------------------------------------------------------------------------
  6314. //
  6315. // @doc EXTERNAL
  6316. //
  6317. // @func Retrieves the current Closed User Group settings
  6318. //
  6319. // @comm Asynchronous. <p lpData> points to an <t RILCLOSEDGROUPSETTINGS> structure.
  6320. //
  6321. // -----------------------------------------------------------------------------
  6322. function RIL_GetClosedGroupSettings(
  6323. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6324. ):HRESULT; external RILDLL name 'RIL_GetClosedGroupSettings';
  6325. // -----------------------------------------------------------------------------
  6326. //
  6327. // @doc EXTERNAL
  6328. //
  6329. // @func Sets the Closed User Group settings
  6330. //
  6331. // @comm Asynchronous. <p lpData> is <def NULL>.
  6332. //
  6333. // -----------------------------------------------------------------------------
  6334. function RIL_SetClosedGroupSettings(
  6335. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6336. lpSettings:LPRILCLOSEDGROUPSETTINGS // @parm settings to be set
  6337. ):HRESULT; external RILDLL name 'RIL_SetClosedGroupSettings';
  6338. // -----------------------------------------------------------------------------
  6339. //
  6340. // @doc EXTERNAL
  6341. //
  6342. // @func Retrieves current Call Forwarding rules
  6343. //
  6344. // @comm Asynchronous. <p lpData> points to an array of <t RILCALLFORWARDINGSETTINGS> structure.
  6345. //
  6346. // -----------------------------------------------------------------------------
  6347. function RIL_GetCallForwardingSettings(
  6348. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6349. dwReason:DWORD; // @parm forwarding reason to retrieve the settings for (<def RIL_FWDREASON_> constant)
  6350. dwInfoClass:DWORD // @parm information class to retrieve barring status for (<def RIL_INFOCLASS_> constant)
  6351. ):HRESULT; external RILDLL name 'RIL_GetCallForwardingSettings';
  6352. // -----------------------------------------------------------------------------
  6353. //
  6354. // @doc EXTERNAL
  6355. //
  6356. // @func Adds a Call Forwarding rule
  6357. //
  6358. // @comm Asynchronous. <p lpData> is <def NULL>.
  6359. //
  6360. // -----------------------------------------------------------------------------
  6361. function RIL_AddCallForwarding(
  6362. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6363. dwReason:DWORD; // @parm forwarding reason to add Call Forwarding for (<def RIL_FWDREASON_> constant)
  6364. lpSettings:LPRILCALLFORWARDINGSETTINGS // @parm settings for the new Call Forwarding rule
  6365. ):HRESULT; external RILDLL name 'RIL_AddCallForwarding';
  6366. // -----------------------------------------------------------------------------
  6367. //
  6368. // @doc EXTERNAL
  6369. //
  6370. // @func Removes a Call Forwarding rule
  6371. //
  6372. // @comm Asynchronous. <p lpData> is <def NULL>.
  6373. //
  6374. // -----------------------------------------------------------------------------
  6375. function RIL_RemoveCallForwarding(
  6376. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6377. dwReason:DWORD; // @parm forwarding reason to remove Call Forwarding for (<def RIL_FWDREASON_> constant)
  6378. dwInfoClasses:DWORD // @parm information classes to remove Call Forwarding for (combination of <def RIL_INFOCLASS_> constants)
  6379. ):HRESULT; external RILDLL name 'RIL_RemoveCallForwarding';
  6380. // -----------------------------------------------------------------------------
  6381. //
  6382. // @doc EXTERNAL
  6383. //
  6384. // @func Enables or disables the specified Call Forwarding rule
  6385. //
  6386. // @comm Asynchronous. <p lpData> is <def NULL>.
  6387. //
  6388. // -----------------------------------------------------------------------------
  6389. function RIL_SetCallForwardingStatus(
  6390. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6391. dwReason:DWORD; // @parm forwarding reason to enable/disable Call Forwarding for (<def RIL_FWDREASON_> constant)
  6392. dwInfoClasses:DWORD; // @parm information classes to enable/disable Call Forwarding for (combination of <def RIL_INFOCLASS_> constants)
  6393. dwStatus:DWORD // @parm status to be set (<def RIL_SVCSTAT_> constant)
  6394. ):HRESULT; external RILDLL name 'RIL_SetCallForwardingStatus';
  6395. // -----------------------------------------------------------------------------
  6396. //
  6397. // @doc EXTERNAL
  6398. //
  6399. // @func Retrieves info classes that Call Waiting is currently enabled for
  6400. //
  6401. // @comm Asynchronous. <p lpData> points to DWORD containing a combination
  6402. // of <def RIL_INFOCLASS_> constants.
  6403. //
  6404. // -----------------------------------------------------------------------------
  6405. function RIL_GetCallWaitingSettings(
  6406. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6407. dwInfoClass:DWORD // @parm information class to retrieve barring status for (<def RIL_INFOCLASS_> constant)
  6408. ):HRESULT; external RILDLL name 'RIL_GetCallWaitingSettings';
  6409. // -----------------------------------------------------------------------------
  6410. //
  6411. // @doc EXTERNAL
  6412. //
  6413. // @func Enables or disables Call Waiting for the specified info class
  6414. //
  6415. // @comm Asynchronous. <p lpData> is <def NULL>.
  6416. //
  6417. // -----------------------------------------------------------------------------
  6418. function RIL_SetCallWaitingStatus(
  6419. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6420. dwInfoClasses:DWORD; // @parm information classes to enable/disable Call Waiting for
  6421. dwStatus:DWORD // @parm status to be set (<def RIL_SVCSTAT_> constant)
  6422. ):HRESULT; external RILDLL name 'RIL_SetCallWaitingStatus';
  6423. // -----------------------------------------------------------------------------
  6424. //
  6425. // @doc EXTERNAL
  6426. //
  6427. // @func Sends supplementary service (USSD) data
  6428. //
  6429. // @comm TBD
  6430. //
  6431. // -----------------------------------------------------------------------------
  6432. function RIL_SendSupServiceData(
  6433. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6434. pwszData:LPCWSTR // @parm data to be sent
  6435. ):HRESULT; external RILDLL name 'RIL_SendSupServiceData';
  6436. // -----------------------------------------------------------------------------
  6437. //
  6438. // @doc EXTERNAL
  6439. //
  6440. // @func Cancels current supplementary service session
  6441. //
  6442. // @comm TBD
  6443. //
  6444. // -----------------------------------------------------------------------------
  6445. function RIL_CancelSupServiceDataSession(
  6446. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6447. ):HRESULT; external RILDLL name 'RIL_CancelSupServiceDataSession';
  6448. // -----------------------------------------------------------------------------
  6449. //
  6450. // @doc EXTERNAL
  6451. //
  6452. // @func Retrieves the current address identifier (see RILSUBSCRIBERINFO)
  6453. //
  6454. // @comm Asynchronous. <p lpData> points to a <def DWORD> identifying the current address ID.
  6455. //
  6456. // -----------------------------------------------------------------------------
  6457. function RIL_GetCurrentAddressId(
  6458. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6459. ):HRESULT; external RILDLL name 'RIL_GetCurrentAddressId';
  6460. // -----------------------------------------------------------------------------
  6461. //
  6462. // @doc EXTERNAL
  6463. //
  6464. // @func Sets the current address identifier (see RILSUBSCRIBERINFO)
  6465. //
  6466. // @comm Asynchronous. <p lpData> is <def NULL>.
  6467. //
  6468. // -----------------------------------------------------------------------------
  6469. function RIL_SetCurrentAddressId(
  6470. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6471. dwAddressId:DWORD // @parm identifies the new addressID to use
  6472. ):HRESULT; external RILDLL name 'RIL_SetCurrentAddressId';
  6473. // -----------------------------------------------------------------------------
  6474. //
  6475. // @doc EXTERNAL
  6476. //
  6477. // @func Dials a specified address
  6478. //
  6479. // @comm Asynchronous. <p lpData> is <def NULL>.
  6480. //
  6481. // -----------------------------------------------------------------------------
  6482. function RIL_Dial(
  6483. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6484. lpszAddress:PAnsiChar; // @parm address to dial (no longer than <def MAXLENGTH_ADDRESS> chars)
  6485. dwType:DWORD; // @parm type of the call to establish (<def RIL_CALLTYPE_> constant)
  6486. dwOptions:DWORD // @parm dialing options (any combination of <def RIL_DIALOPT_> constants)
  6487. ):HRESULT; external RILDLL name 'RIL_Dial';
  6488. // -----------------------------------------------------------------------------
  6489. //
  6490. // @doc EXTERNAL
  6491. //
  6492. // @func Answers an incoming call
  6493. //
  6494. // @comm Asynchronous. <p lpData> is <def NULL>.
  6495. //
  6496. // -----------------------------------------------------------------------------
  6497. function RIL_Answer(
  6498. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6499. ):HRESULT; external RILDLL name 'RIL_Answer';
  6500. // -----------------------------------------------------------------------------
  6501. //
  6502. // @doc EXTERNAL
  6503. //
  6504. // @func Hangs up all calls currently in progress
  6505. //
  6506. // @comm Asynchronous. <p lpData> is <def NULL>.
  6507. //
  6508. // -----------------------------------------------------------------------------
  6509. function RIL_Hangup(
  6510. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6511. ):HRESULT; external RILDLL name 'RIL_Hangup';
  6512. // -----------------------------------------------------------------------------
  6513. //
  6514. // @doc EXTERNAL
  6515. //
  6516. // @func Sends DTMF tones across an established voice call
  6517. //
  6518. // @comm Asynchronous. <p lpData> is <def NULL>. Function does not return until
  6519. // DTMF tone has completed.
  6520. //
  6521. // -----------------------------------------------------------------------------
  6522. function RIL_SendDTMF(
  6523. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6524. lpszChars:PAnsiChar; // @parm alphanumeric string representing DTMF tones to be sent (0-9, A-D, *, #)
  6525. dwDuration:DWORD // @parm new DTMF tone duration in milliseconds (<def RIL_DTMFDURATION_DEFAULT>
  6526. // corresponds to the manufacturer's default value)
  6527. ):HRESULT; external RILDLL name 'RIL_SendDTMF';
  6528. // -----------------------------------------------------------------------------
  6529. //
  6530. // @doc EXTERNAL
  6531. //
  6532. // @func Starts DTMF tone across an established voice call
  6533. //
  6534. // @comm Asynchronous. <p lpData> is <def NULL>.
  6535. //
  6536. // -----------------------------------------------------------------------------
  6537. function RIL_StartDTMF(
  6538. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6539. ch:AnsiChar // @parm alphanumeric char representing DTMF tones to be sent (0-9, A-D, *, #)
  6540. ):HRESULT; external RILDLL name 'RIL_StartDTMF';
  6541. // -----------------------------------------------------------------------------
  6542. //
  6543. // @doc EXTERNAL
  6544. //
  6545. // @func Stops DTMF tones across an established voice call
  6546. //
  6547. // @comm Asynchronous. <p lpData> is <def NULL>. Function does not return until
  6548. // DTMF tone has completed.
  6549. //
  6550. // -----------------------------------------------------------------------------
  6551. function RIL_StopDTMF(
  6552. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6553. ch:AnsiChar // @parm alphanumeric char representing DTMF tones to be stopped (0-9, A-D, *, #)
  6554. ):HRESULT; external RILDLL name 'RIL_StopDTMF';
  6555. // -----------------------------------------------------------------------------
  6556. //
  6557. // @doc EXTERNAL
  6558. //
  6559. // @func Detects DTMF tones from an established voice call
  6560. //
  6561. // @comm Asynchronous. <p lpData> is <def NULL>.
  6562. //
  6563. // -----------------------------------------------------------------------------
  6564. function RIL_SetDTMFMonitoring(
  6565. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6566. fEnable:BOOL // @parm TRUE to initiate DTMF monitoring; FALSE to cancel
  6567. ):HRESULT; external RILDLL name 'RIL_SetDTMFMonitoring';
  6568. // -----------------------------------------------------------------------------
  6569. //
  6570. // @doc EXTERNAL
  6571. //
  6572. // @func Retrieves the list of active, held, and waiting calls
  6573. //
  6574. // @comm Asynchronous. <p lpData> points to an array of <t RILCALLINFO> structures.
  6575. //
  6576. // -----------------------------------------------------------------------------
  6577. // Function RIL_GetCallList is not declared in ril.h for unknown reason, but
  6578. // is still exported by ril.dll.
  6579. function RIL_GetCallList(
  6580. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6581. ):HRESULT; external RILDLL name 'RIL_GetCallList';
  6582. // -----------------------------------------------------------------------------
  6583. //
  6584. // @doc EXTERNAL
  6585. //
  6586. // @func Modifies the state of active, held, and waiting calls
  6587. //
  6588. // @comm Asynchronous. <p lpData> is <def NULL>.
  6589. //
  6590. // -----------------------------------------------------------------------------
  6591. function RIL_ManageCalls(
  6592. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6593. dwCommand:DWORD; // @parm call modification command to be performed (<def RIL_CALLCMD_> constant)
  6594. dwID:DWORD // @parm ID of the call to be modified (only for <def RIL_CALLCMD_RELEASECALL> and <def RIL_CALLCMD_HOLDALLBUTONE>)
  6595. ):HRESULT; external RILDLL name 'RIL_ManageCalls';
  6596. // -----------------------------------------------------------------------------
  6597. //
  6598. // @doc EXTERNAL
  6599. //
  6600. // @func Transfers incoming allerting call to the specified number
  6601. //
  6602. // @comm Asynchronous. <p lpData> is <def NULL>.
  6603. //
  6604. // -----------------------------------------------------------------------------
  6605. function RIL_TransferCall(
  6606. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6607. lpAddress:LPRILADDRESS; // @parm address to transfer the call to
  6608. lpSubAddress:RILSUBADDRESS // @parm sub-address to transfer the call to (can be <def NULL>)
  6609. ):HRESULT; external RILDLL name 'RIL_TransferCall';
  6610. // -----------------------------------------------------------------------------
  6611. //
  6612. // @doc EXTERNAL
  6613. //
  6614. // @func Retrieves the phone line status
  6615. //
  6616. // @comm Asynchronous. <p lpData> points to <t DWORD> containing <def RIL_LINESTAT_> constant.
  6617. //
  6618. // -----------------------------------------------------------------------------
  6619. // Function RIL_GetLineStatus is not declared in ril.h for unknown reason, but
  6620. // is still exported by ril.dll.
  6621. function RIL_GetLineStatus(
  6622. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6623. ):HRESULT; external RILDLL name 'RIL_GetLineStatus';
  6624. // -----------------------------------------------------------------------------
  6625. //
  6626. // @doc EXTERNAL
  6627. //
  6628. // @func Retrieves audio gain information
  6629. //
  6630. // @comm Asynchronous. <p lpData> points to an <t RILGAININFO> structure.
  6631. //
  6632. // -----------------------------------------------------------------------------
  6633. function RIL_GetAudioGain(
  6634. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6635. ):HRESULT; external RILDLL name 'RIL_GetAudioGain';
  6636. // -----------------------------------------------------------------------------
  6637. //
  6638. // @doc EXTERNAL
  6639. //
  6640. // @func Sets audio gain information
  6641. //
  6642. // @comm Asynchronous. <p lpData> is <def NULL>.
  6643. //
  6644. // -----------------------------------------------------------------------------
  6645. function RIL_SetAudioGain(
  6646. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6647. lpGainInfo:LPRILGAININFO // @parm audio gain information to be sent
  6648. ):HRESULT; external RILDLL name 'RIL_SetAudioGain';
  6649. // -----------------------------------------------------------------------------
  6650. //
  6651. // @doc EXTERNAL
  6652. //
  6653. // @func Retrieves currently used transmit and receive audio devices
  6654. //
  6655. // @comm Asynchronous. <p lpData> points to an <t RILAUDIODEVICEINFO> structure.
  6656. //
  6657. // -----------------------------------------------------------------------------
  6658. function RIL_GetAudioDevices(
  6659. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6660. ):HRESULT; external RILDLL name 'RIL_GetAudioDevices';
  6661. // -----------------------------------------------------------------------------
  6662. //
  6663. // @doc EXTERNAL
  6664. //
  6665. // @func Sets currently used transmit and receive audio devices
  6666. //
  6667. // @comm Asynchronous. <p lpData> is <def NULL>.
  6668. //
  6669. // -----------------------------------------------------------------------------
  6670. function RIL_SetAudioDevices(
  6671. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6672. lpAudioDeviceInfo:LPRILAUDIODEVICEINFO // @parm audio devices to set
  6673. ):HRESULT; external RILDLL name 'RIL_SetAudioDevices';
  6674. // -----------------------------------------------------------------------------
  6675. //
  6676. // @doc EXTERNAL
  6677. //
  6678. // @func Determines whether the input audio device is muted
  6679. //
  6680. // @comm Asynchronous. <p lpData> points to a <t BOOL>.
  6681. //
  6682. // -----------------------------------------------------------------------------
  6683. function RIL_GetAudioMuting(
  6684. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6685. ):HRESULT; external RILDLL name 'RIL_GetAudioMuting';
  6686. // -----------------------------------------------------------------------------
  6687. //
  6688. // @doc EXTERNAL
  6689. //
  6690. // @func Mutes or un-mutes the input audio device
  6691. //
  6692. // @comm Asynchronous. <p lpData> is <def NULL>.
  6693. //
  6694. // -----------------------------------------------------------------------------
  6695. function RIL_SetAudioMuting(
  6696. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6697. fEnable:BOOL // @parm TRUE if input audio device is to be muted; FALSE otherwise
  6698. ):HRESULT; external RILDLL name 'RIL_SetAudioMuting';
  6699. // -----------------------------------------------------------------------------
  6700. //
  6701. // @doc EXTERNAL
  6702. //
  6703. // @func Retrieves High Speeed Circuit Switched Data options
  6704. //
  6705. // @comm Asynchronous. <p lpData> points to an <t RILHSCSDINFO> structure.
  6706. //
  6707. // -----------------------------------------------------------------------------
  6708. function RIL_GetHSCSDOptions(
  6709. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6710. ):HRESULT; external RILDLL name 'RIL_GetHSCSDOptions';
  6711. // -----------------------------------------------------------------------------
  6712. //
  6713. // @doc EXTERNAL
  6714. //
  6715. // @func Sets High Speeed Circuit Switched Data options
  6716. //
  6717. // @comm Asynchronous. <p lpData> is <def NULL>.
  6718. //
  6719. // -----------------------------------------------------------------------------
  6720. function RIL_SetHSCSDOptions(
  6721. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6722. lpHscsdInfo:LPRILHSCSDINFO // @parm High Speeed Circuit Switched Data options to set
  6723. ):HRESULT; external RILDLL name 'RIL_SetHSCSDOptions';
  6724. // -----------------------------------------------------------------------------
  6725. //
  6726. // @doc EXTERNAL
  6727. //
  6728. // @func Retrieves High Speeed Circuit Switched Data options
  6729. //
  6730. // @comm Asynchronous. <p lpData> points to an <t RILCALLHSCSDINFO> structure.
  6731. //
  6732. // -----------------------------------------------------------------------------
  6733. function RIL_GetHSCSDCallSettings(
  6734. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6735. ):HRESULT; external RILDLL name 'RIL_GetHSCSDCallSettings';
  6736. // -----------------------------------------------------------------------------
  6737. //
  6738. // @doc EXTERNAL
  6739. //
  6740. // @func Retrieves data compression options
  6741. //
  6742. // @comm Asynchronous. <p lpData> points to an <t RILDATACOMPINFO> structure.
  6743. //
  6744. // -----------------------------------------------------------------------------
  6745. function RIL_GetDataCompression(
  6746. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6747. pDataCompInfo:LPRILDATACOMPINFO // @parm data compression options to return
  6748. ):HRESULT; external RILDLL name 'RIL_GetDataCompression';
  6749. // -----------------------------------------------------------------------------
  6750. //
  6751. // @doc EXTERNAL
  6752. //
  6753. // @func Sets data compression options
  6754. //
  6755. // @comm Asynchronous. <p lpData> is <def NULL>.
  6756. //
  6757. // -----------------------------------------------------------------------------
  6758. function RIL_SetDataCompression(
  6759. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6760. lpDataCompInfo:LPRILDATACOMPINFO // @parm data compression options to set
  6761. ):HRESULT; external RILDLL name 'RIL_SetDataCompression';
  6762. // -----------------------------------------------------------------------------
  6763. //
  6764. // @doc EXTERNAL
  6765. //
  6766. // @func Retrieves error correction options
  6767. //
  6768. // @comm Asynchronous. <p lpData> points to an <t RILERRORCORRECTIONINFO> structure.
  6769. //
  6770. // -----------------------------------------------------------------------------
  6771. function RIL_GetErrorCorrection(
  6772. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6773. lpErrorCorrectionInfo:LPRILERRORCORRECTIONINFO // @parm error correction options to return
  6774. ):HRESULT; external RILDLL name 'RIL_GetErrorCorrection';
  6775. // -----------------------------------------------------------------------------
  6776. //
  6777. // @doc EXTERNAL
  6778. //
  6779. // @func Set error correction options
  6780. //
  6781. // @comm Asynchronous. <p lpData> is <def NULL>.
  6782. //
  6783. // -----------------------------------------------------------------------------
  6784. function RIL_SetErrorCorrection(
  6785. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6786. lpErrorCorrectionInfo:LPRILERRORCORRECTIONINFO // @parm error correction options to set
  6787. ):HRESULT; external RILDLL name 'RIL_SetErrorCorrection';
  6788. // -----------------------------------------------------------------------------
  6789. //
  6790. // @doc EXTERNAL
  6791. //
  6792. // @func Retrieves currently set data bearer service options
  6793. //
  6794. // @comm Asynchronous. <p lpData> points to an <t RILBEARERSVCINFO> structure.
  6795. //
  6796. // -----------------------------------------------------------------------------
  6797. function RIL_GetBearerServiceOptions(
  6798. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6799. lpBearerServiceInfo:LPRILBEARERSVCINFO // @parm data bearer service options to return
  6800. ):HRESULT; external RILDLL name 'RIL_GetBearerServiceOptions';
  6801. // -----------------------------------------------------------------------------
  6802. //
  6803. // @doc EXTERNAL
  6804. //
  6805. // @func Sets data bearer service options
  6806. //
  6807. // @comm Asynchronous. <p lpData> is <def NULL>.
  6808. //
  6809. // -----------------------------------------------------------------------------
  6810. function RIL_SetBearerServiceOptions(
  6811. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6812. lpBearerServiceInfo:LPRILBEARERSVCINFO // @parm data bearer service options to set
  6813. ):HRESULT; external RILDLL name 'RIL_SetBearerServiceOptions';
  6814. // -----------------------------------------------------------------------------
  6815. //
  6816. // @doc EXTERNAL
  6817. //
  6818. // @func Retrieves currently set Radio Link Protocol options
  6819. //
  6820. // @comm Asynchronous. <p lpData> points to an <t RILRLPINFO> structure.
  6821. //
  6822. // -----------------------------------------------------------------------------
  6823. function RIL_GetRLPOptions(
  6824. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6825. lpRlpInfo:LPRILRLPINFO // @parm Radio Link Protocol options to return
  6826. ):HRESULT; external RILDLL name 'RIL_GetRLPOptions';
  6827. // -----------------------------------------------------------------------------
  6828. //
  6829. // @doc EXTERNAL
  6830. //
  6831. // @func Sets Radio Link Protocol options
  6832. //
  6833. // @comm Asynchronous. <p lpData> is <def NULL>.
  6834. //
  6835. // -----------------------------------------------------------------------------
  6836. function RIL_SetRLPOptions(
  6837. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6838. lpRlpInfo:LPRILRLPINFO // @parm Radio Link Protocol options to set
  6839. ):HRESULT; external RILDLL name 'RIL_SetRLPOptions';
  6840. // -----------------------------------------------------------------------------
  6841. //
  6842. // @doc EXTERNAL
  6843. //
  6844. // @func Gets currently set messaging service options
  6845. //
  6846. // @comm Asynchronous. <p lpData> points to an <t RILMSGSERVICEINFO> structure.
  6847. //
  6848. // -----------------------------------------------------------------------------
  6849. function RIL_GetMsgServiceOptions(
  6850. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6851. ):HRESULT; external RILDLL name 'RIL_GetMsgServiceOptions';
  6852. // -----------------------------------------------------------------------------
  6853. //
  6854. // @doc EXTERNAL
  6855. //
  6856. // @func Sets messaging service options
  6857. //
  6858. // @comm Asynchronous. <p lpData> is <def NULL>.
  6859. //
  6860. // -----------------------------------------------------------------------------
  6861. function RIL_SetMsgServiceOptions(
  6862. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6863. lpMsgServiceInfo:LPRILMSGSERVICEINFO // @parm messaging service options to be set
  6864. ):HRESULT; external RILDLL name 'RIL_SetMsgServiceOptions';
  6865. // -----------------------------------------------------------------------------
  6866. //
  6867. // @doc EXTERNAL
  6868. //
  6869. // @func Gets currently set messaging configuration
  6870. //
  6871. // @comm Asynchronous. <p lpData> points to an <t RILMSGCONFIG> structure.
  6872. //
  6873. // -----------------------------------------------------------------------------
  6874. function RIL_GetMsgConfig(
  6875. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6876. ):HRESULT; external RILDLL name 'RIL_GetMsgConfig';
  6877. // -----------------------------------------------------------------------------
  6878. //
  6879. // @doc EXTERNAL
  6880. //
  6881. // @func Sets messaging configuration
  6882. //
  6883. // @comm Asynchronous. <p lpData> is <def NULL>.
  6884. //
  6885. // -----------------------------------------------------------------------------
  6886. function RIL_SetMsgConfig(
  6887. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6888. lpMsgConfigInfo:LPRILMSGCONFIG // @parm messaging configuration to be set
  6889. ):HRESULT; external RILDLL name 'RIL_SetMsgConfig';
  6890. // -----------------------------------------------------------------------------
  6891. //
  6892. // @doc EXTERNAL
  6893. //
  6894. // @func Gets cell broadcast messaging configuration
  6895. //
  6896. // @comm Asynchronous. <p lpData> points to an <t RILCBMSGCONFIG> structure.
  6897. //
  6898. // -----------------------------------------------------------------------------
  6899. function RIL_GetCellBroadcastMsgConfig(
  6900. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6901. ):HRESULT; external RILDLL name 'RIL_GetCellBroadcastMsgConfig';
  6902. // -----------------------------------------------------------------------------
  6903. //
  6904. // @doc EXTERNAL
  6905. //
  6906. // @func Sets cell broadcast messaging configuration
  6907. //
  6908. // @comm Asynchronous. <p lpData> is <def NULL>.
  6909. //
  6910. // -----------------------------------------------------------------------------
  6911. function RIL_SetCellBroadcastMsgConfig(
  6912. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6913. lpCbMsgConfigInfo:LPRILCBMSGCONFIG // @parm messaging configuration to be set
  6914. ):HRESULT; external RILDLL name 'RIL_SetCellBroadcastMsgConfig';
  6915. // -----------------------------------------------------------------------------
  6916. //
  6917. // @doc EXTERNAL
  6918. //
  6919. // @func Reads a message from the current storage location
  6920. //
  6921. // @comm Asynchronous. <p lpData> points to an <t RILMESSAGEINFO> structure.
  6922. //
  6923. // -----------------------------------------------------------------------------
  6924. function RIL_ReadMsg(
  6925. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6926. dwIndex:DWORD // @parm index of the message to be read
  6927. ):HRESULT; external RILDLL name 'RIL_ReadMsg';
  6928. // -----------------------------------------------------------------------------
  6929. //
  6930. // @doc EXTERNAL
  6931. //
  6932. // @func Deletes a message from the current storage location
  6933. //
  6934. // @comm Asynchronous. <p lpData> is <def NULL>.
  6935. //
  6936. // -----------------------------------------------------------------------------
  6937. function RIL_DeleteMsg(
  6938. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6939. dwIndex:DWORD // @parm index of the message to be deleted
  6940. ):HRESULT; external RILDLL name 'RIL_DeleteMsg';
  6941. // -----------------------------------------------------------------------------
  6942. //
  6943. // @doc EXTERNAL
  6944. //
  6945. // @func Writes a message to the current storage location
  6946. //
  6947. // @comm Asynchronous. <p lpData> points to a <t DWORD> conaining the index used.
  6948. //
  6949. // -----------------------------------------------------------------------------
  6950. function RIL_WriteMsg(
  6951. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6952. lpMessage:LPRILMESSAGE; // @parm message to be written (of type <def RIL_MSGTYPE_IN_DELIVER> or <def RIL_MSGTYPE_OUT_SUBMIT>)
  6953. dwStatus:DWORD // @parm status to assigned to the written message (<def RIL_MSGSTATUS_> constant)
  6954. ):HRESULT; external RILDLL name 'RIL_WriteMsg';
  6955. // -----------------------------------------------------------------------------
  6956. //
  6957. // @doc EXTERNAL
  6958. //
  6959. // @func Sends a message
  6960. //
  6961. // @comm Asynchronous. <p lpData> points to a <t DWORD> conaining the reference
  6962. // number of the sent message.
  6963. //
  6964. // -----------------------------------------------------------------------------
  6965. function RIL_SendMsg(
  6966. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6967. lpMessage:LPRILMESSAGE; // @parm message to be sent
  6968. dwOptions:DWORD // @parm options (any combination of <def RIL_SENDOPT_> constants)
  6969. ):HRESULT; external RILDLL name 'RIL_SendMsg';
  6970. // -----------------------------------------------------------------------------
  6971. //
  6972. // @doc EXTERNAL
  6973. //
  6974. // @func Sends a message from the current storage location
  6975. //
  6976. // @comm Asynchronous. <p lpData> points to a <t DWORD> conaining the reference
  6977. // number of the sent message. This feature is not used and is untested.
  6978. //
  6979. // -----------------------------------------------------------------------------
  6980. function RIL_SendStoredMsg(
  6981. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6982. dwIndex:DWORD; // @parm index of the message to be sent
  6983. dwOptions:DWORD // @parm options (any combination of <def RIL_SENDOPT_> constants)
  6984. ):HRESULT; external RILDLL name 'RIL_SendStoredMsg';
  6985. // -----------------------------------------------------------------------------
  6986. //
  6987. // @doc EXTERNAL
  6988. //
  6989. // @func Sends an message ackknowledgement
  6990. //
  6991. // @comm Asynchronous. <p lpData> is <def NULL>. On Phase 2 mobiles, the radio
  6992. // automatically sends SMS message ACKs. But in Phase 2+, the MMI is
  6993. // responsible for these ACKs, hense this function.
  6994. //
  6995. // -----------------------------------------------------------------------------
  6996. function RIL_SendMsgAcknowledgement(
  6997. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6998. fSuccess:BOOL // @parm TRUE if success acknowledgment is to be sent; FALSE otherwise
  6999. ):HRESULT; external RILDLL name 'RIL_SendMsgAcknowledgement';
  7000. // -----------------------------------------------------------------------------
  7001. //
  7002. // @doc EXTERNAL
  7003. //
  7004. // @func Retrieves International Mobile Subscriber Identity of the phone user
  7005. //
  7006. // @comm Asynchronous. <p lpData> points to an array of <t char>s
  7007. //
  7008. // -----------------------------------------------------------------------------
  7009. function RIL_GetUserIdentity(
  7010. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7011. ):HRESULT; external RILDLL name 'RIL_GetUserIdentity';
  7012. // -----------------------------------------------------------------------------
  7013. //
  7014. // @doc EXTERNAL
  7015. //
  7016. // @func Retrieves current locked state of the phone
  7017. //
  7018. // @comm Asynchronous. <p lpData> points to a <t DWORD> containing a <def RIL_LOCKEDSTATE_> constant
  7019. //
  7020. // -----------------------------------------------------------------------------
  7021. function RIL_GetPhoneLockedState(
  7022. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7023. ):HRESULT; external RILDLL name 'RIL_GetPhoneLockedState';
  7024. // -----------------------------------------------------------------------------
  7025. //
  7026. // @doc EXTERNAL
  7027. //
  7028. // @func Removes current lock applied to the phone
  7029. //
  7030. // @comm Asynchronous. <p lpData> is <def NULL>.
  7031. //
  7032. // -----------------------------------------------------------------------------
  7033. function RIL_UnlockPhone(
  7034. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7035. lpszPassword:PAnsiChar; // @parm password to unlock the phone (no longer than <def MAXLENGTH_PASSWORD> chars)
  7036. lpszNewPassword:PAnsiChar // @parm new password (can be <def NULL>, unless the current locked state is
  7037. // one of the <def RIL_LOCKEDSTATE_*_PUK> constants; no longer than
  7038. // <def MAXLENGTH_PASSWORD> chars)
  7039. ):HRESULT; external RILDLL name 'RIL_UnlockPhone';
  7040. // -----------------------------------------------------------------------------
  7041. //
  7042. // @doc EXTERNAL
  7043. //
  7044. // @func Retrieves locking status for the specified facility
  7045. //
  7046. // @comm Asynchronous. <p lpData> points to a <t DWORD> containing a <def RIL_LOCKINGSTATUS_> constant.
  7047. //
  7048. // -----------------------------------------------------------------------------
  7049. function RIL_GetLockingStatus(
  7050. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7051. dwFacility:DWORD; // @parm facility to retrieve locking status for (<def RIL_LOCKFACILITY_> constant)
  7052. lpszPassword:PAnsiChar // @parm password to retrieve locking status (can be <def NULL> if password isn't required;
  7053. // no longer than MAXLENGTH_PASSWORD chars)
  7054. ):HRESULT; external RILDLL name 'RIL_GetLockingStatus';
  7055. // -----------------------------------------------------------------------------
  7056. //
  7057. // @doc EXTERNAL
  7058. //
  7059. // @func Enables or disables locking status for the specified facility
  7060. //
  7061. // @comm Asynchronous. <p lpData> is <def NULL>.
  7062. //
  7063. // -----------------------------------------------------------------------------
  7064. function RIL_SetLockingStatus(
  7065. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7066. dwFacility:DWORD; // @parm facility to enable/disable locking for (<def RIL_LOCKFACILITY_> constant)
  7067. lpszPassword:PAnsiChar; // @parm password to enable/disable locking (can be <def NULL> if password isn't required;
  7068. // no longer than <def MAXLENGTH_PASSWORD> chars)
  7069. dwStatus:DWORD // @parm status to be set (<def RIL_LOCKINGSTATUS_> constant)
  7070. ):HRESULT; external RILDLL name 'RIL_SetLockingStatus';
  7071. // -----------------------------------------------------------------------------
  7072. //
  7073. // @doc EXTERNAL
  7074. //
  7075. // @func Changes locking password for the specified facility
  7076. //
  7077. // @comm Asynchronous. <p lpData> is <def NULL>.
  7078. //
  7079. // -----------------------------------------------------------------------------
  7080. function RIL_ChangeLockingPassword(
  7081. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7082. dwFacility:DWORD; // @parm facility to change locking password for (<def RIL_LOCKFACILITY_> constant)
  7083. dwOldPasswordType:DWORD; // @parm the type of OLD password (PIN or PUK) RIL_PASSWORDTYPE_* constant
  7084. lpszOldPassword:PAnsiChar; // @parm current locking password (no longer than <def MAXLENGTH_PASSWORD> chars)
  7085. lpszNewPassword:PAnsiChar // @parm new locking password (no longer than <def MAXLENGTH_PASSWOR> chars)
  7086. ):HRESULT; external RILDLL name 'RIL_ChangeLockingPassword';
  7087. // -----------------------------------------------------------------------------
  7088. //
  7089. // @doc EXTERNAL
  7090. //
  7091. // @func Retrieves status of the specified type of call barring
  7092. //
  7093. // @comm Asynchronous. <p lpData> points to a <t DWORD> containing a <def RIL_BARRINGSTATUS> constant.
  7094. //
  7095. // -----------------------------------------------------------------------------
  7096. function RIL_GetCallBarringStatus(
  7097. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7098. dwType:DWORD; // @parm type of call barring to retrieve status for (<def RIL_BARRTYPE_> constant)
  7099. dwInfoClass:DWORD; // @parm information class to retrieve barring status for (<def RIL_INFOCLASS_> constant)
  7100. lpszPassword:PAnsiChar // @parm password to retrieve barring status (can be <def NULL> if password isn't required;
  7101. // no longer than <def MAXLENGTH_PASSWORD> chars)
  7102. ):HRESULT; external RILDLL name 'RIL_GetCallBarringStatus';
  7103. // -----------------------------------------------------------------------------
  7104. //
  7105. // @doc EXTERNAL
  7106. //
  7107. // @func Enables or disables the specified type of call barring
  7108. //
  7109. // @comm Asynchronous. <p lpData> is <def NULL>.
  7110. //
  7111. // -----------------------------------------------------------------------------
  7112. function RIL_SetCallBarringStatus(
  7113. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7114. dwType:DWORD; // @parm type of call barring to enable/disable (<def RIL_BARRTYPE_> constant)
  7115. dwInfoClass:DWORD; // @parm information class to enable/disable call barring for (<def RIL_INFOCLASS_> constant)
  7116. lpszPassword:AnsiChar; // @parm password to enable/disable call barring (can be <def NULL> if password isn't required;
  7117. // no longer than <def MAXLENGTH_PASSWORD> chars)
  7118. dwStatus:DWORD // @parm status to be set (<def RIL_BARRINGSTATUS_> constant)
  7119. ):HRESULT; external RILDLL name 'RIL_SetCallBarringStatus';
  7120. // -----------------------------------------------------------------------------
  7121. //
  7122. // @doc EXTERNAL
  7123. //
  7124. // @func Changes password for the specified type of call barring
  7125. //
  7126. // @comm Asynchronous. <p lpData> is <def NULL>.
  7127. //
  7128. // -----------------------------------------------------------------------------
  7129. function RIL_SendSecureMmiString(_hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7130. lpszMmiString:LPCSTR // @parm MMI string to be sent
  7131. ):HRESULT; external RILDLL name 'RIL_SendSecureMmiString';
  7132. // -----------------------------------------------------------------------------
  7133. //
  7134. // @doc EXTERNAL
  7135. //
  7136. // @func Changes password for the specified type of call barring
  7137. //
  7138. // @comm Asynchronous. <p lpData> is <def NULL>.
  7139. //
  7140. // -----------------------------------------------------------------------------
  7141. function RIL_ChangeCallBarringPassword(
  7142. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7143. dwType:DWORD; // @parm type of call barring to retrieve status for (<def RIL_BARRTYPE_> constant)
  7144. lpwszOldPassword:PAnsiChar; // @parm current password (no longer than <def MAXLENGTH_PASSWORD> chars)
  7145. lpwszNewPassword:PAnsiChar // @parm new password (no longer than <def MAXLENGTH_PASSWORD> chars)
  7146. ):HRESULT; external RILDLL name 'RIL_ChangeCallBarringPassword';
  7147. // -----------------------------------------------------------------------------
  7148. //
  7149. // @doc EXTERNAL
  7150. //
  7151. // @func Retrieves manufacturer equipment information
  7152. //
  7153. // @comm Asynchronous. <p lpData> points to an <t RILEQUIPMENTINFO> structure.
  7154. //
  7155. // -----------------------------------------------------------------------------
  7156. function RIL_GetEquipmentInfo(
  7157. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7158. ):HRESULT; external RILDLL name 'RIL_GetEquipmentInfo';
  7159. // -----------------------------------------------------------------------------
  7160. //
  7161. // @doc EXTERNAL
  7162. //
  7163. // @func Retrieves currently set equipment state
  7164. //
  7165. // @comm Asynchronous. <p lpData> points to an <t RILEQUIPMENTSTATE> structure.
  7166. //
  7167. // -----------------------------------------------------------------------------
  7168. function RIL_GetEquipmentState(
  7169. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7170. pEqState:LPRILEQUIPMENTSTATE // @parm equipment state to return
  7171. ):HRESULT; external RILDLL name 'RIL_GetEquipmentState';
  7172. // -----------------------------------------------------------------------------
  7173. //
  7174. // @doc EXTERNAL
  7175. //
  7176. // @func Sets the equipment to the specified state
  7177. //
  7178. // @comm Asynchronous. <p lpData> is <def NULL>.
  7179. //
  7180. // -----------------------------------------------------------------------------
  7181. function RIL_SetEquipmentState(
  7182. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7183. dwEquipmentState:DWORD // @parm equipment state to set (<def RIL_EQSTATE_> constant)
  7184. ):HRESULT; external RILDLL name 'RIL_SetEquipmentState';
  7185. // -----------------------------------------------------------------------------
  7186. //
  7187. // @doc EXTERNAL
  7188. //
  7189. // @func Proxy API to determine if the Radio is present or Not (Is the RIL driver Loaded?)
  7190. //
  7191. // @comm Synchronous
  7192. //
  7193. // -----------------------------------------------------------------------------
  7194. function RIL_GetRadioPresence(
  7195. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7196. dwRadioPresence:LPDWORD // @parm pointer to a DWORD (ouput param contains values from RIL_RADIOPRESENCE_*)
  7197. ):HRESULT; external RILDLL name 'RIL_GetRadioPresence';
  7198. // -----------------------------------------------------------------------------
  7199. //
  7200. // @doc EXTERNAL
  7201. //
  7202. // @func Retrieves currently set phonebook options
  7203. //
  7204. // @comm Asynchronous. <p lpData> points to an <t RILPHONEBOOKINFO> structure.
  7205. //
  7206. // -----------------------------------------------------------------------------
  7207. function RIL_GetPhonebookOptions(
  7208. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7209. ):HRESULT; external RILDLL name 'RIL_GetPhonebookOptions';
  7210. // -----------------------------------------------------------------------------
  7211. //
  7212. // @doc EXTERNAL
  7213. //
  7214. // @func Sets phonebook options
  7215. //
  7216. // @comm Asynchronous. <p lpData> is <def NULL>.
  7217. //
  7218. // -----------------------------------------------------------------------------
  7219. function RIL_SetPhonebookOptions(
  7220. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7221. lpPhonebookInfo:LPRILPHONEBOOKINFO // @parm phonebook options to set
  7222. ):HRESULT; external RILDLL name 'RIL_SetPhonebookOptions';
  7223. // -----------------------------------------------------------------------------
  7224. //
  7225. // @doc EXTERNAL
  7226. //
  7227. // @func Reads phonebook entries from the specified range of indices of the current storage location
  7228. //
  7229. // @comm Asynchronous. <p lpData> points to an array of <t RILPHONEBOOKENTRY> structures.
  7230. //
  7231. // -----------------------------------------------------------------------------
  7232. function RIL_ReadPhonebookEntries(
  7233. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7234. dwStartIndex:DWORD; // @parm starting index of the range
  7235. dwEndIndex:DWORD // @parm ending index of the range
  7236. ):HRESULT; external RILDLL name 'RIL_ReadPhonebookEntries';
  7237. // -----------------------------------------------------------------------------
  7238. //
  7239. // @doc EXTERNAL
  7240. //
  7241. // @func Writes a phonebook entry to the current storage location
  7242. //
  7243. // @comm Asynchronous. <p lpData> is <def NULL>.
  7244. //
  7245. // -----------------------------------------------------------------------------
  7246. function RIL_WritePhonebookEntry(
  7247. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7248. lpEntry:LPRILPHONEBOOKENTRY // @parm phonebook entry to write out
  7249. ):HRESULT; external RILDLL name 'RIL_WritePhonebookEntry';
  7250. // -----------------------------------------------------------------------------
  7251. //
  7252. // @doc EXTERNAL
  7253. //
  7254. // @func Deletes a phonebook entry from the current storage location
  7255. //
  7256. // @comm Asynchronous. <p lpData> is <def NULL>.
  7257. //
  7258. // -----------------------------------------------------------------------------
  7259. function RIL_DeletePhonebookEntry(
  7260. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7261. dwIndex:DWORD // @parm index of the entry to delete
  7262. ):HRESULT; external RILDLL name 'RIL_DeletePhonebookEntry';
  7263. // -----------------------------------------------------------------------------
  7264. //
  7265. // @doc EXTERNAL
  7266. //
  7267. // @func Sends a specified command to the SIM
  7268. //
  7269. // @comm Asynchronous. <p lpData> points to an array of <t BYTE>s.
  7270. //
  7271. // -----------------------------------------------------------------------------
  7272. function RIL_SendSimCmd(
  7273. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7274. lpbCommand:LPBYTE; // @parm command to be sent to the SIM
  7275. dwSize:DWORD // @parm size of the data pointed to by <p lpbCommand> in bytes
  7276. ):HRESULT; external RILDLL name 'RIL_SendSimCmd';
  7277. // -----------------------------------------------------------------------------
  7278. //
  7279. // @doc EXTERNAL
  7280. //
  7281. // @func Retrieves the SIM's answer to reset data.
  7282. //
  7283. // @comm Asynchronous. <p lpData> points to an <t RILATRINFO> structure.
  7284. // This command is not standardized and may be specific to each radio
  7285. // implementation, if implemented at all.
  7286. //
  7287. // -----------------------------------------------------------------------------
  7288. function RIL_GetATR(
  7289. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7290. ):HRESULT; external RILDLL name 'RIL_GetATR';
  7291. // -----------------------------------------------------------------------------
  7292. //
  7293. // @doc EXTERNAL
  7294. //
  7295. // @func Sends a specified restricted command to the SIM
  7296. //
  7297. // @comm Asynchronous. <p lpData> points to an <t RILSIMRESPONSE> structure.
  7298. //
  7299. // -----------------------------------------------------------------------------
  7300. function RIL_SendRestrictedSimCmd(
  7301. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7302. dwCommand:DWORD; // @parm restricted command to be sent to the SIM (<def RIL_SIMCMD_> constant)
  7303. lpParameters:LPRILSIMCMDPARAMETERS; // @parm Parameters for the command to be sent (can be <def NULL> if parameters aren't required)
  7304. lpbData:LPBYTE; // @parm Data to be written to the SIM (can be <def NULL> if data isn't required)
  7305. dwSize:DWORD // @parm Size of the data pointed to by <p lpbData> in bytes
  7306. ):HRESULT; external RILDLL name 'RIL_SendRestrictedSimCmd';
  7307. // -----------------------------------------------------------------------------
  7308. //
  7309. // @doc EXTERNAL
  7310. //
  7311. // @func Retrieves SIM Record Status
  7312. //
  7313. // @comm Asynchronous. <p lpData> points to RILSIMRECORDSTATUS
  7314. //
  7315. // -----------------------------------------------------------------------------
  7316. function RIL_GetSimRecordStatus(
  7317. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7318. dwFileID:DWORD // @parm address of the file to read
  7319. ):HRESULT; external RILDLL name 'RIL_GetSimRecordStatus';
  7320. // -----------------------------------------------------------------------------
  7321. //
  7322. // @doc EXTERNAL
  7323. //
  7324. // @func Retrieves SIM Toolkit terminal profile
  7325. //
  7326. // @comm Asynchronous. <p lpData> points to an array of <t BYTE>s.
  7327. //
  7328. // -----------------------------------------------------------------------------
  7329. function RIL_GetSimToolkitProfile(
  7330. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7331. ):HRESULT; external RILDLL name 'RIL_GetSimToolkitProfile';
  7332. // -----------------------------------------------------------------------------
  7333. //
  7334. // @doc EXTERNAL
  7335. //
  7336. // @func Sets SIM Toolkit terminal profile
  7337. //
  7338. // @comm Asynchronous. <p lpData> is <def NULL>.
  7339. //
  7340. // -----------------------------------------------------------------------------
  7341. function RIL_SetSimToolkitProfile(
  7342. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7343. lpbProfile:LPBYTE; // @parm SIM Toolkit profile to be set
  7344. dwSize:DWORD // @parm size of the data pointed to by <p lpbProfile> in bytes
  7345. ):HRESULT; external RILDLL name 'RIL_SetSimToolkitProfile';
  7346. // -----------------------------------------------------------------------------
  7347. //
  7348. // @doc EXTERNAL
  7349. //
  7350. // @func Sends a SIM Toolkit envelope command
  7351. //
  7352. // @comm Asynchronous. <p lpData> points to an array of <t BYTE>s containing a
  7353. // response to the sent command.
  7354. //
  7355. // -----------------------------------------------------------------------------
  7356. function RIL_SendSimToolkitEnvelopeCmd(
  7357. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7358. lpbCommand:LPBYTE; // @parm SIM Toolkit envelope command to be sent
  7359. dwSize:DWORD // @parm size of the data pointed to by <p lpbCommand> in bytes
  7360. ):HRESULT; external RILDLL name 'RIL_SendSimToolkitEnvelopeCmd';
  7361. // -----------------------------------------------------------------------------
  7362. //
  7363. // @doc EXTERNAL
  7364. //
  7365. // @func Fetches a SIM Toolkit command from the SIM
  7366. //
  7367. // @comm Asynchronous. <p lpData> points to an array of <t BYTE>s containing a
  7368. // fetched command.
  7369. //
  7370. // -----------------------------------------------------------------------------
  7371. function RIL_FetchSimToolkitCmd(
  7372. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7373. ):HRESULT; external RILDLL name 'RIL_FetchSimToolkitCmd';
  7374. // -----------------------------------------------------------------------------
  7375. //
  7376. // @doc EXTERNAL
  7377. //
  7378. // @func Sends a response to an executed SIM Toolkit command
  7379. //
  7380. // @comm Asynchronous. <p lpData> is <def NULL>.
  7381. //
  7382. // -----------------------------------------------------------------------------
  7383. function RIL_SendSimToolkitCmdResponse(
  7384. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7385. pRsp:LPRILSIMTOOLKITRSP; // @parm Command Response to be sent.
  7386. pDetails:LPBYTE; // @parm Detailed command response to be sent (can be <def NULL> if details aren't required)
  7387. dwDetailSize:DWORD // @parm size of the details pointed to by <p pDetails> in bytes
  7388. ):HRESULT; external RILDLL name 'RIL_SendSimToolkitCmdResponse';
  7389. // -----------------------------------------------------------------------------
  7390. //
  7391. // @doc EXTERNAL
  7392. //
  7393. // @func Terminates the SIM Toolkit session
  7394. //
  7395. // @comm Asynchronous. <p lpData> is <def NULL>.
  7396. //
  7397. // -----------------------------------------------------------------------------
  7398. function RIL_TerminateSimToolkitSession(
  7399. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7400. dwCause:DWORD // @parm cause for session termination (<def RIL_SIMTKITTERMCAUSE_> constant)
  7401. ):HRESULT; external RILDLL name 'RIL_TerminateSimToolkitSession';
  7402. // -----------------------------------------------------------------------------
  7403. //
  7404. // @doc EXTERNAL
  7405. //
  7406. // @func Sends a requested Event to the SIM.
  7407. //
  7408. // @comm Asynchronous. <p lpData> is <def NULL>.
  7409. //
  7410. // -----------------------------------------------------------------------------
  7411. function RIL_SendSimToolkitEventDownload(
  7412. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7413. dwEvent:DWORD; // @parm Event to be sent.
  7414. pData:LPBYTE; // @parm Detailed event info to be sent (can be <def NULL> if details aren't required)
  7415. dwDataSize:DWORD // @parm size of the details pointed to by <p pDetails> in bytes
  7416. ):HRESULT; external RILDLL name 'RIL_SendSimToolkitEventDownload';
  7417. // -----------------------------------------------------------------------------
  7418. //
  7419. // @doc EXTERNAL
  7420. //
  7421. // @func Retrieves advice-of-charge settings
  7422. //
  7423. // @comm Asynchronous. <p lpData> points to a <t RILCOSTINFO> structure.
  7424. // This feature is not used and is untested.
  7425. //
  7426. // -----------------------------------------------------------------------------
  7427. function RIL_GetCostInfo(
  7428. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7429. ):HRESULT; external RILDLL name 'RIL_GetCostInfo';
  7430. // -----------------------------------------------------------------------------
  7431. //
  7432. // @doc EXTERNAL
  7433. //
  7434. // @func Sets advice-of-charge settings
  7435. //
  7436. // @comm Asynchronous. <p lpData> points to a <t RILCOSTINFO> structure.
  7437. // This feature is not used and is untested.
  7438. //
  7439. // -----------------------------------------------------------------------------
  7440. function RIL_SetCostInfo(
  7441. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7442. lpCostInfo:LPRILCOSTINFO; // @parm advice-of-charge settings to set
  7443. lpszPassword:LPCSTR // @parm password requred to set advice-of-charge settings
  7444. ):HRESULT; external RILDLL name 'RIL_SetCostInfo';
  7445. // -----------------------------------------------------------------------------
  7446. //
  7447. // @doc EXTERNAL
  7448. //
  7449. // @func Retrieves information about the received signal quality
  7450. //
  7451. // @comm Asynchronous. <p lpData> points to a <t RILSIGNALQUALITY> structure.
  7452. //
  7453. // -----------------------------------------------------------------------------
  7454. // Function RIL_GetSignalQuality is not declared in ril.h for unknown reason, but
  7455. // is still exported by ril.dll.
  7456. function RIL_GetSignalQuality(
  7457. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7458. ):HRESULT; external RILDLL name 'RIL_GetSignalQuality';
  7459. // -----------------------------------------------------------------------------
  7460. //
  7461. // @doc EXTERNAL
  7462. //
  7463. // @func Retrieves information about the cell tower currently used by the phone
  7464. //
  7465. // @comm Asynchronous. <p lpData> points to a <t RILCELLTOWERINFO> structure.
  7466. //
  7467. // -----------------------------------------------------------------------------
  7468. function RIL_GetCellTowerInfo(
  7469. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7470. ):HRESULT; external RILDLL name 'RIL_GetCellTowerInfo';
  7471. // Initial size of the RILDRVNOTIFICATION structure. The size RIL Application allocates for async results of RIL_DevSpecific
  7472. const
  7473. RIL_NOTIFYTHREAD_ALLOCSIZE = 256;
  7474. RIL_DEVSPECIFIC_ASYNC_RESPONSE_TIMEOUT = 5000;
  7475. // -----------------------------------------------------------------------------
  7476. //
  7477. // @doc EXTERNAL
  7478. //
  7479. // @func Performs an implementation-specific operation
  7480. //
  7481. // @comm Synchronous
  7482. //
  7483. // -----------------------------------------------------------------------------
  7484. function RIL_DevSpecific(_hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7485. lpbParams:LPBYTE; // @parm parameters for the operation to be performed
  7486. dwSize:DWORD; // @parm size of the data pointed to by <p lpParams> in bytes
  7487. pbAsyncResults:LPBYTE; // @parm points to returned array of <t BYTE>s
  7488. dwAsyncResultsSize:DWORD; // @parm the allocated size of the returned array of <t BYTE>s
  7489. pcbAsyncResults:LPDWORD; // @parm points to the actual length of the returned array of <t BYTE>s
  7490. dwTimeOut:DWORD // @parm time out value (in milliseconds)
  7491. ):HRESULT; external RILDLL name 'RIL_DevSpecific';
  7492. // -----------------------------------------------------------------------------
  7493. //
  7494. // @doc EXTERNAL
  7495. //
  7496. // @func Retrieves specified device capabilities
  7497. //
  7498. // @comm Asynchronous. <nl><nl><p dwCapsType> (<def RIL_CAPSTYPE_>) <p lpData><nl>
  7499. // <def *_DIAL> points to an <t RILCAPSDIAL> structure<nl>
  7500. // <def *_DTMFDURATIONRANGE> points to an <t RILRANGE> structure (values in milliseconds)<nl>
  7501. // <def *_CALLMGTCMDS> points to <t DWORD> containing a combination of <def RIL_CAPS_CALLCMD_> constants<nl>
  7502. // <def *_BEARERSERVICE> points to an <t RILCAPSBEARERSVC> structure<nl>
  7503. // <def *_RLP> points to an array of <t RILAPSRLP> structures<nl>
  7504. // <def *_EQUIPMENTSTATES> points to <t DWORD> containing a combination of <def RIL_CAPS_EQSTATE_> constants<nl>
  7505. // <def *_PBSTORELOCATIONS> points to <t DWORD> containing a combination of <def RIL_CAPS_PBLOC_> constants<nl>
  7506. // <def *_PBINDEXRANGE> points to an <t RILRANGE> structure<nl>
  7507. // <def *_PBENTRYLENGTH> points to an <t RILCAPSPBENTRYLENGTH> strcuture<nl>
  7508. // <def *_MSGSERVICETYPES> points to <t DWORD> containing a combination of <def RIL_CAPS_MSGSVCTYPE_> constants<nl>
  7509. // <def *_MSGMEMORYLOCATIONS> points to an <t RILCAPSMSGMEMORYLOCATIONS> structure<nl>
  7510. // <def *_BROADCASTMSGLANGS> points to <t DWORD> containing a combination of <def RIL_CAPS_DCSLANG_> constants<nl>
  7511. // <def *_MSGCONFIGINDEXRANGE> points to an <t RILRANGE> structure<nl>
  7512. // <def *_MSGSTATUSVALUES> points to <t DWORD> containing a combination of <def RIL_CAPS_MSGSTATUS_> constants<nl>
  7513. // <def *_PREFOPINDEXRANGE> points to an <t RILRANGE> structure<nl>
  7514. // <def *_LOCKFACILITIES> points to <t DWORD> containing a combination of <def RIL_CAPS_LOCKFACILITY_> constants<nl>
  7515. // <def *_LOCKINGPWDLENGTHS> points to an array of <t RILCAPSLOCKINGPWDLENGTH> structures<nl>
  7516. // <def *_BARRTYPES> points to <t DWORD> containing a combination of <def RIL_CAPS_BARRTYPE_> constants<nl>
  7517. // <def *_BARRINGPWDLENGTHS> points to an array of <t RILCAPSBARRINGPWDLENGTH> structures<nl>
  7518. // <def *_FORWARDINGREASONS> points to <t DWORD> containing a combination of <def RIL_CAPS_FWDREASON_> constants<nl>
  7519. // <def *_SIMTOOLKITNOTIFICATIONS>points to a <t TBD> SIMTOOLKIT structure <nl>
  7520. // <def *_INFOCLASSES> points to <t DWORD> containing a combination of <def RIL_CAPS_INFOCLASS_> constants<nl>
  7521. // <def *_HSCSD> points to an <t RILCAPSHSCSD> structure<nl>
  7522. // <def *_GPRS> points to an <t RILCAPSGPRS> structure<nl>
  7523. // <def *_RIL_CAPS_NITZ_> points to <t DWORD> containing one of <def RIL_CAPS_NITZ__> constants<nl>
  7524. function RIL_GetDevCaps(
  7525. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7526. dwCapsType:DWORD // @parm type of caps class to retrieve
  7527. ):HRESULT; external RILDLL name 'RIL_GetDevCaps';
  7528. // -----------------------------------------------------------------------------
  7529. //
  7530. // @doc EXTERNAL
  7531. //
  7532. // @func Retrieves the systemtime from the network
  7533. //
  7534. // @comm Asynchronous. <p lpData> points to a <t SYSTEMTIME> structure (containing the UTC time).
  7535. // This feature is currently not used and is untested.
  7536. //
  7537. // -----------------------------------------------------------------------------
  7538. function RIL_GetSystemTime(
  7539. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7540. ):HRESULT; external RILDLL name 'RIL_GetSystemTime';
  7541. // -----------------------------------------------------------------------------
  7542. //
  7543. // @doc EXTERNAL
  7544. //
  7545. // @func Retrieves a list GPRS contexts
  7546. //
  7547. // @comm Asynchronous. <p lpData> points to a <t RILGPRSCONTEXT> structure.
  7548. //
  7549. // -----------------------------------------------------------------------------
  7550. function RIL_GetGPRSContextList(
  7551. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7552. lpGPRSContext:LPRILGPRSCONTEXT; // @parm points to the returned <t RILGPRSCONTEXT> structure
  7553. pdwDataSize:LPDWORD // @parm points to returned data size
  7554. ):HRESULT; external RILDLL name 'RIL_GetGPRSContextList';
  7555. // -----------------------------------------------------------------------------
  7556. //
  7557. // @doc EXTERNAL
  7558. //
  7559. // @func Sets a particular GPRS context
  7560. //
  7561. // @comm Asynchronous. <p lpData> is <def NULL>.
  7562. //
  7563. // -----------------------------------------------------------------------------
  7564. function RIL_SetGPRSContext(
  7565. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7566. lpGprsContext:LPRILGPRSCONTEXT // @parm points to a <t RILGPRSCONTEXT> structure
  7567. ):HRESULT; external RILDLL name 'RIL_SetGPRSContext';
  7568. // -----------------------------------------------------------------------------
  7569. //
  7570. // @doc EXTERNAL
  7571. //
  7572. // @func Deletes a particular GPRS context
  7573. //
  7574. // @comm Asynchronous. <p lpData> is <def NULL>.
  7575. //
  7576. // -----------------------------------------------------------------------------
  7577. function RIL_DeleteGPRSContext(
  7578. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7579. dwContextID:DWORD // @parm identifies which context to delete
  7580. ):HRESULT; external RILDLL name 'RIL_DeleteGPRSContext';
  7581. // -----------------------------------------------------------------------------
  7582. //
  7583. // @doc EXTERNAL
  7584. //
  7585. // @func Gets the requested quality of service profile for all contexts
  7586. //
  7587. // @comm Asynchronous. <p lpData> points to a <t RILGPRSQOSPROFILE> structure.
  7588. //
  7589. // -----------------------------------------------------------------------------
  7590. function RIL_GetRequestedQualityOfServiceList(
  7591. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7592. lpGprsQosProfile:LPRILGPRSQOSPROFILE; // @parm points to returned <t RILGPRSQOSPROFILE> structure
  7593. pdwDataSize:LPDWORD // @parm points to returned data size
  7594. ):HRESULT; external RILDLL name 'RIL_GetRequestedQualityOfServiceList';
  7595. // -----------------------------------------------------------------------------
  7596. //
  7597. // @doc EXTERNAL
  7598. //
  7599. // @func Sets the requested quality of service profile for a context
  7600. //
  7601. // @comm Asynchronous. <p lpData> is <def NULL>.
  7602. //
  7603. // -----------------------------------------------------------------------------
  7604. function RIL_SetRequestedQualityOfService(
  7605. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7606. lpGprsQosProfile:LPRILGPRSQOSPROFILE // @parm points to a <t RILGPRSQOSPROFILE> structure
  7607. ):HRESULT; external RILDLL name 'RIL_SetRequestedQualityOfService';
  7608. // -----------------------------------------------------------------------------
  7609. //
  7610. // @doc EXTERNAL
  7611. //
  7612. // @func Deletes the requested quality of service profile for a context
  7613. //
  7614. // @comm Asynchronous. <p lpData> is <def NULL>.
  7615. //
  7616. // -----------------------------------------------------------------------------
  7617. function RIL_DeleteRequestedQualityOfService(
  7618. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7619. dwContextID:DWORD // @parm identifies which profile to delete
  7620. ):HRESULT; external RILDLL name 'RIL_DeleteRequestedQualityOfService';
  7621. // -----------------------------------------------------------------------------
  7622. //
  7623. // @doc EXTERNAL
  7624. //
  7625. // @func Gets the minimum quality of service profile for all contexts
  7626. //
  7627. // @comm Asynchronous. <p lpData> points to a <t RILGPRSQOSPROFILE> structure.
  7628. //
  7629. // -----------------------------------------------------------------------------
  7630. function RIL_GetMinimumQualityOfServiceList(
  7631. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7632. lpGprsQosProfile:LPRILGPRSQOSPROFILE; // @parm points to returned <t RILGPRSQOSPROFILE> structure
  7633. pdwDataSize:LPDWORD // @parm points to returned data size
  7634. ):HRESULT; external RILDLL name 'RIL_GetMinimumQualityOfServiceList';
  7635. // -----------------------------------------------------------------------------
  7636. //
  7637. // @doc EXTERNAL
  7638. //
  7639. // @func Sets the minimum quality of service profile for a context
  7640. //
  7641. // @comm Asynchronous. <p lpData> is <def NULL>.
  7642. //
  7643. // -----------------------------------------------------------------------------
  7644. function RIL_SetMinimumQualityOfService(
  7645. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7646. lpGprsQosProfile:LPRILGPRSQOSPROFILE // @parm points to a <t RILGPRSQOSPROFILE> structure
  7647. ):HRESULT; external RILDLL name 'RIL_SetMinimumQualityOfService';
  7648. // -----------------------------------------------------------------------------
  7649. //
  7650. // @doc EXTERNAL
  7651. //
  7652. // @func Deletes the minimum quality of service profile for a context
  7653. //
  7654. // @comm Asynchronous. <p lpData> is <def NULL>.
  7655. //
  7656. // -----------------------------------------------------------------------------
  7657. function RIL_DeleteMinimumQualityOfService(
  7658. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7659. dwContextID:DWORD // @parm identifies which profile to delete
  7660. ):HRESULT; external RILDLL name 'RIL_DeleteMinimumQualityOfService';
  7661. // -----------------------------------------------------------------------------
  7662. //
  7663. // @doc EXTERNAL
  7664. //
  7665. // @func Sets the GPRS attach state
  7666. //
  7667. // @comm Asynchronous. <p lpData> is <def NULL>.
  7668. //
  7669. // -----------------------------------------------------------------------------
  7670. function RIL_SetGPRSAttached(
  7671. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7672. fAttached:BOOL // @parm TRUE: attached, FALSE: detached
  7673. ):HRESULT; external RILDLL name 'RIL_SetGPRSAttached';
  7674. // -----------------------------------------------------------------------------
  7675. //
  7676. // @doc EXTERNAL
  7677. //
  7678. // @func Gets the GPRS attach state
  7679. //
  7680. // @comm Asynchronous. <p lpData> points to a <t BOOL> indicating attach state.
  7681. //
  7682. // -----------------------------------------------------------------------------
  7683. function RIL_GetGPRSAttached(
  7684. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7685. pfGPRSAttached:LPBOOL // @parm indicates attach state
  7686. ):HRESULT; external RILDLL name 'RIL_GetGPRSAttached';
  7687. // -----------------------------------------------------------------------------
  7688. //
  7689. // @doc EXTERNAL
  7690. //
  7691. // @func Sets the GPRS activation state for a context
  7692. //
  7693. // @comm Asynchronous. <p lpData> is <def NULL>.
  7694. //
  7695. // -----------------------------------------------------------------------------
  7696. function RIL_SetGPRSContextActivated(
  7697. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7698. dwContextID:DWORD; // @parm identifies the context
  7699. fContextActivation:BOOL // @parm TRUE: activated, FALSE: deactivated
  7700. ):HRESULT; external RILDLL name 'RIL_SetGPRSContextActivated';
  7701. // -----------------------------------------------------------------------------
  7702. //
  7703. // @doc EXTERNAL
  7704. //
  7705. // @func Gets the GPRS activation state for all contexts
  7706. //
  7707. // @comm Asynchronous. <p lpData> points to a <t RILGPRSCONTEXTACTIVATED> indicating activation state.
  7708. //
  7709. // -----------------------------------------------------------------------------
  7710. function RIL_GetGPRSContextActivatedList(
  7711. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7712. lpGPRSContextActivated:LPRILGPRSCONTEXTACTIVATED; // @parm points to returned <t RILGPRSCONTEXTACTIVATED> indicating activation state
  7713. pdwDataSize:LPDWORD // @parm points to returned data size
  7714. ):HRESULT; external RILDLL name 'RIL_GetGPRSContextActivatedList';
  7715. // -----------------------------------------------------------------------------
  7716. //
  7717. // @doc EXTERNAL
  7718. //
  7719. // @func Enters into GPRS data state
  7720. //
  7721. // @comm Asynchronous. <p lpData> if <def NULL>.
  7722. //
  7723. // -----------------------------------------------------------------------------
  7724. function RIL_EnterGPRSDataMode(
  7725. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7726. lpEnterGprsDataMode:LPRILENTERGPRSDATAMODE // @parm points to a <t RILENTERGPRSDATAMODE> structure
  7727. ):HRESULT; external RILDLL name 'RIL_EnterGPRSDataMode';
  7728. // -----------------------------------------------------------------------------
  7729. //
  7730. // @doc EXTERNAL
  7731. //
  7732. // @func Gets the PDP address for a particular context
  7733. //
  7734. // @comm Asynchronous. <p lpData> points to an array of <t WCHAR> values indicating the address.
  7735. //
  7736. // -----------------------------------------------------------------------------
  7737. function RIL_GetGPRSAddress(
  7738. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7739. dwContextID:DWORD; // @parm identifies the context
  7740. pwszGPRSAddress:PWCHAR; // @parm returns the GPRS Address
  7741. pGprsAddrCch:LPDWORD // @parm IN: The dereferenced specifies the character count of the buffer pointed to by pwszGPRSAddress
  7742. // OUT: The dereferenced specifies the number of characters copied including terminating null character
  7743. // or the required character count of the buffer including terminating null character to succeed
  7744. ):HRESULT; external RILDLL name 'RIL_GetGPRSAddress';
  7745. // -----------------------------------------------------------------------------
  7746. //
  7747. // @doc EXTERNAL
  7748. //
  7749. // @func Answers an incoming GPRS activation request
  7750. //
  7751. // @comm Asynchronous. <p lpData> is <def NULL>.
  7752. //
  7753. // -----------------------------------------------------------------------------
  7754. function RIL_GPRSAnswer(
  7755. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7756. lpGprsAnswer:LPRILGPRSANSWER // @param points to a <t RILGPRSANSWER> structure
  7757. ):HRESULT; external RILDLL name 'RIL_GPRSAnswer';
  7758. // -----------------------------------------------------------------------------
  7759. //
  7760. // @doc EXTERNAL
  7761. //
  7762. // @func Retrieves the current GPRS registration status
  7763. //
  7764. // @comm Asynchronous. <p lpData> points to a <def RIL_REGSTAT_> constant.
  7765. //
  7766. // -----------------------------------------------------------------------------
  7767. function RIL_GetGPRSRegistrationStatus(
  7768. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7769. pdwGPRSRegStatus:DWORD // @parm points to returned <def RIL_REGSTAT_> constant
  7770. ):HRESULT; external RILDLL name 'RIL_GetGPRSRegistrationStatus';
  7771. // -----------------------------------------------------------------------------
  7772. //
  7773. // @doc EXTERNAL
  7774. //
  7775. // @func Retrieves the current GPRS class
  7776. //
  7777. // @comm Asynchronous. <p lpData> points to a <def RIL_GPRSCLASS_> constant.
  7778. //
  7779. // -----------------------------------------------------------------------------
  7780. function RIL_GetGPRSClass(
  7781. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7782. ):HRESULT; external RILDLL name 'RIL_GetGPRSClass';
  7783. // -----------------------------------------------------------------------------
  7784. //
  7785. // @doc EXTERNAL
  7786. //
  7787. // @func Sets the current GPRS class
  7788. //
  7789. // @comm Asynchronous. <p lpData> is <def NULL>
  7790. //
  7791. // -----------------------------------------------------------------------------
  7792. function RIL_SetGPRSClass(
  7793. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7794. dwClass:DWORD // @parm a RIL_GPRSCLASS_* constant
  7795. ):HRESULT; external RILDLL name 'RIL_SetGPRSClass';
  7796. // -----------------------------------------------------------------------------
  7797. //
  7798. // @doc EXTERNAL
  7799. //
  7800. // @func Retrieves the preferred SMS service option for mobile originated messages
  7801. //
  7802. // @comm Asynchronous. <p lpData> points to a <def RIL_MOSMSSERVICE_> constant.
  7803. //
  7804. // -----------------------------------------------------------------------------
  7805. function RIL_GetMOSMSService(
  7806. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7807. ):HRESULT; external RILDLL name 'RIL_GetMOSMSService';
  7808. // -----------------------------------------------------------------------------
  7809. //
  7810. // @doc EXTERNAL
  7811. //
  7812. // @func Sets the preferred SMS service option for mobile originated messages
  7813. //
  7814. // @comm Asynchronous. <p lpData> is <def NULL>
  7815. //
  7816. // -----------------------------------------------------------------------------
  7817. function RIL_SetMOSMSService(
  7818. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7819. dwMoSmsService:DWORD // @parm a RIL_MOSMSSERVICE_* constant
  7820. ):HRESULT; external RILDLL name 'RIL_SetMOSMSService';
  7821. // -----------------------------------------------------------------------------
  7822. //
  7823. // @doc EXTERNAL
  7824. //
  7825. // @params RILBYTECOUNTER
  7826. //
  7827. // @comm None
  7828. //
  7829. // -----------------------------------------------------------------------------
  7830. const
  7831. RIL_PARAM_BC_RXBYTECOUNT = $00000001; // @paramdefine
  7832. RIL_PARAM_BC_TXBYTECOUNT = $00000002; // @paramdefine
  7833. RIL_PARAM_BC_TOTALBYTECOUNT = $00000004; // @paramdefine
  7834. RIL_PARAM_BC_ALL = $00000007; // @paramdefine
  7835. // -----------------------------------------------------------------------------
  7836. //
  7837. // @doc EXTERNAL
  7838. //
  7839. // @struct RILBYTECOUNTER | Represents the cumulative number of bytes transferred by the radio (packet).
  7840. //
  7841. // @comm None
  7842. //
  7843. // -----------------------------------------------------------------------------
  7844. type
  7845. rilbytecounter_tag = record
  7846. cbSize:DWORD; // @field structure size in bytes
  7847. dwParams:DWORD; // @field indicates valid parameters
  7848. dwRxByte:DWORD; // @field Number of received bytes
  7849. dwTxByte:DWORD; // @field Number of transmitted bytes
  7850. dwTotalByte:DWORD; // @field Total Number of bytes transferred (This comes from the radio, not RxByte+TxByte)
  7851. end;
  7852. RILBYTECOUNTER = rilbytecounter_tag;
  7853. LPRILBYTECOUNTER = ^rilbytecounter_tag;
  7854. // -----------------------------------------------------------------------------
  7855. //
  7856. // @doc EXTERNAL
  7857. //
  7858. // @func Retrieves the cumulative count of data bytes transferred by the radio (packet)
  7859. //
  7860. // @comm Asynchronous. <p lpData> points to a <t RILBYTECOUNTER> structure.
  7861. //
  7862. // -----------------------------------------------------------------------------
  7863. function RIL_GetPacketByteCount(
  7864. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7865. ):HRESULT; external RILDLL name 'RIL_GetPacketByteCount';
  7866. // -----------------------------------------------------------------------------
  7867. //
  7868. // @doc EXTERNAL
  7869. //
  7870. // @func Resets the cumulative count of data bytes transferred by the radio (packet) to zero.
  7871. //
  7872. // @comm Asynchronous. <p lpData> is <def NULL>.
  7873. //
  7874. // -----------------------------------------------------------------------------
  7875. function RIL_ResetPacketByteCount(
  7876. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7877. ):HRESULT; external RILDLL name 'RIL_ResetPacketByteCount';
  7878. // -----------------------------------------------------------------------------
  7879. //
  7880. // @doc EXTERNAL
  7881. //
  7882. // @constants System Coverage | Current System Coverage
  7883. //
  7884. // @comm Various Levels of CDMA and GSM Coverage
  7885. //
  7886. // -----------------------------------------------------------------------------
  7887. const
  7888. RIL_SYSTEMTYPE_NONE = $00000000; // @constdegine No Networks in Coverage
  7889. RIL_SYSTEMTYPE_IS95A = $00000001; // @constdefine IS-95A network support (Low Packet, or Circuit Switched Service)
  7890. RIL_SYSTEMTYPE_IS95B = $00000002; // @constdefine IS-95B network support
  7891. RIL_SYSTEMTYPE_1XRTTPACKET = $00000004; // @constdefine CDMA-2000 Rev A (1xRTT) network support
  7892. RIL_SYSTEMTYPE_GSM = $00000008; // @constdefine GSM network support
  7893. RIL_SYSTEMTYPE_GPRS = $00000010; // @constdefine GPRS support
  7894. RIL_SYSTEMTYPE_EDGE = $00000020; // @constdefine GSM EDGE network support
  7895. RIL_SYSTEMTYPE_1XEVDOPACKET = $00000040; // @constdefine CDMA (1xEVDO) network support
  7896. RIL_SYSTEMTYPE_1XEVDVPACKET = $00000080; // @constdefine CDMA (1xEVDV) network support
  7897. RIL_SYSTEMTYPE_UMTS = $00000100; // @constdefine UMTS network support
  7898. RIL_SYSTEMTYPE_HSDPA = $00000200; // @constdefine HSDPA support
  7899. // -----------------------------------------------------------------------------
  7900. //
  7901. // @doc EXTERNAL
  7902. //
  7903. // @func Gets the Current System Coverage
  7904. //
  7905. // @comm Gets the Current type of System/Cellular connection that is available.
  7906. // Asynchronous. <p lpData> is <t DWORD> of type RIL_SYSTEMTYPE_ flags)
  7907. //
  7908. // -----------------------------------------------------------------------------
  7909. function RIL_GetCurrentSystemType(
  7910. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7911. ):HRESULT; external RILDLL name 'RIL_GetCurrentSystemType';
  7912. // -----------------------------------------------------------------------------
  7913. //
  7914. // @doc EXTERNAL
  7915. //
  7916. // @func Modifies the state of active, held, and waiting calls
  7917. //
  7918. // @comm Asynchronous. <p lpData> is <def NULL>.
  7919. //
  7920. // -----------------------------------------------------------------------------
  7921. function RIL_SendFlash(
  7922. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7923. lpraRilAddress:LPRILADDRESS // @parm flash address
  7924. ):HRESULT; external RILDLL name 'RIL_SendFlash';
  7925. // -----------------------------------------------------------------------------
  7926. //
  7927. // @doc EXTERNAL
  7928. //
  7929. // @constants CDMA Roaming Types | CDMA Roaming Types
  7930. //
  7931. // @comm The meaning of AUTOMATICA and AUTOMATICB is up to network specific interpretations
  7932. //
  7933. // -----------------------------------------------------------------------------
  7934. const
  7935. RIL_ROAMMODE_HOMEONLY = $00000001; // @constdefine The User will never go off the home network
  7936. RIL_ROAMMODE_AUTOMATICA = $00000002; // @constdefine Network define Roaming A (The effect of this setting is carrier dependent)
  7937. RIL_ROAMMODE_AUTOMATICB = $00000003; // @constdefine Network define Roaming B (The effect of this setting is carrier dependent)
  7938. // -----------------------------------------------------------------------------
  7939. //
  7940. // @doc EXTERNAL
  7941. //
  7942. // @func Gets the Roaming Mode in CDMA
  7943. //
  7944. // @comm Asynchronous. <p lpData> points to a <t DWORD> of type RIL_ROAMMODE_*.
  7945. //
  7946. // -----------------------------------------------------------------------------
  7947. function RIL_GetRoamingMode(
  7948. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7949. ):HRESULT; external RILDLL name 'RIL_GetRoamingMode';
  7950. // -----------------------------------------------------------------------------
  7951. //
  7952. // @doc EXTERNAL
  7953. //
  7954. // @func Modifies the state of active, held, and waiting calls in CDMA and AMPS systems
  7955. //
  7956. // @comm Asynchronous. <p lpData> is <def NULL>.
  7957. //
  7958. // -----------------------------------------------------------------------------
  7959. function RIL_SetRoamingMode(
  7960. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7961. dwRoamingMode:DWORD // @parm RIL_ROAMMODE_* constant
  7962. ):HRESULT; external RILDLL name 'RIL_SetRoamingMode';
  7963. // -----------------------------------------------------------------------------
  7964. //
  7965. // @doc EXTERNAL
  7966. //
  7967. // @constants CDMA Privacy Mode | CDMA Privacy Mode
  7968. //
  7969. // @comm None
  7970. //
  7971. // -----------------------------------------------------------------------------
  7972. const
  7973. RIL_CALLPRIVACY_STANDARD = $00000001; // @constdefine Enhanced Call Privacy is OFF
  7974. RIL_CALLPRIVACY_ENHANCED = $00000002; // @constdefine Enhanced Call Privacy is ON
  7975. // -----------------------------------------------------------------------------
  7976. //
  7977. // @doc EXTERNAL
  7978. //
  7979. // @func Gets the user's preferred privacy settings
  7980. //
  7981. // @comm Asynchronous. <p lpData> points to a RIL_CALLPRIVACY_* constant.
  7982. //
  7983. // -----------------------------------------------------------------------------
  7984. function RIL_GetPreferredPrivacyMode(
  7985. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7986. ):HRESULT; external RILDLL name 'RIL_GetPreferredPrivacyMode';
  7987. // -----------------------------------------------------------------------------
  7988. //
  7989. // @doc EXTERNAL
  7990. //
  7991. // @func Sets the user's preferred privacy settings
  7992. //
  7993. // @comm Asynchronous. <p lpData> is <def NULL>.
  7994. //
  7995. // -----------------------------------------------------------------------------
  7996. function RIL_SetPreferredPrivacyMode(
  7997. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7998. dwPreferredPrivacyMode:DWORD // @parm user's preferred privacy setting, uses RIL_CALLPRIVACY_* constant
  7999. ):HRESULT; external RILDLL name 'RIL_SetPreferredPrivacyMode';
  8000. // -----------------------------------------------------------------------------
  8001. //
  8002. // @doc EXTERNAL
  8003. //
  8004. // @func Gets the privacy status of the current system
  8005. //
  8006. // @comm Asynchronous. <p lpData> points to a <t DWORD> RIL_CALLPRIVACY_* constant.
  8007. //
  8008. // -----------------------------------------------------------------------------
  8009. function RIL_GetCurrentPrivacyStatus(
  8010. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  8011. ):HRESULT; external RILDLL name 'RIL_GetCurrentPrivacyStatus';
  8012. // -----------------------------------------------------------------------------
  8013. //
  8014. // @doc EXTERNAL
  8015. //
  8016. // @func Sends the User string to the device for Akey verificaiton
  8017. //
  8018. // @comm Asynchronous. <p lpData> is <def NULL>. (Either it fails or succeeds)
  8019. // According to TSB-50 (up to 26 digits)
  8020. //
  8021. // -----------------------------------------------------------------------------
  8022. function RIL_SendAKey(
  8023. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  8024. lpszChars:LPCSTR // @parm numeric string representing akey digits (0-9, *, #)
  8025. ):HRESULT; external RILDLL name 'RIL_SendAKey';
  8026. // -----------------------------------------------------------------------------
  8027. //
  8028. // @doc EXTERNAL
  8029. //
  8030. // @constants CDMA Location Serivces Status | Location Services
  8031. //
  8032. // @comm None
  8033. //
  8034. // -----------------------------------------------------------------------------
  8035. const
  8036. RIL_LOCATION_OFF = 0;
  8037. RIL_LOCATION_ON = 1;
  8038. // -----------------------------------------------------------------------------
  8039. //
  8040. // @doc EXTERNAL
  8041. //
  8042. // @func Gets the current location status of the current system
  8043. //
  8044. // @comm Asynchronous. <p lpData> points to a <t DWORD> RIL_LOCATION_* constant.
  8045. //
  8046. // -----------------------------------------------------------------------------
  8047. function RIL_GetCurrentLocationStatus(
  8048. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  8049. ):HRESULT; external RILDLL name 'RIL_GetCurrentLocationStatus';
  8050. // -----------------------------------------------------------------------------
  8051. //
  8052. // @doc EXTERNAL
  8053. //
  8054. // @constants CDMA Roaming Status | CDMA Roaming Status
  8055. //
  8056. // @comm None
  8057. //
  8058. // -----------------------------------------------------------------------------
  8059. const
  8060. RIL_ROAMSTATUS_NONE = 0;
  8061. RIL_ROAMSTATUS_ANALOG = 1;
  8062. RIL_ROAMSTATUS_DIGITAL = 2;
  8063. // -----------------------------------------------------------------------------
  8064. //
  8065. // @doc EXTERNAL
  8066. //
  8067. // @func Gets the current roaming status of the current system
  8068. //
  8069. // @comm Asynchronous. <p lpData> points to a <t DWORD> RIL_ROAMSTATUS_* constant.
  8070. //
  8071. // -----------------------------------------------------------------------------
  8072. function RIL_GetCurrentRoamingStatus(
  8073. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  8074. ):HRESULT; external RILDLL name 'RIL_GetCurrentRoamingStatus';
  8075. // -----------------------------------------------------------------------------
  8076. //
  8077. // @doc EXTERNAL
  8078. //
  8079. // @constants SIM Refresh Constants | Constants which indicate which cached SIM regions to refresh.
  8080. //
  8081. // @comm The notification contains a DWORD value which contains the SIM record to refresh,
  8082. // or one of the special values below
  8083. //
  8084. // -----------------------------------------------------------------------------
  8085. const
  8086. RIL_SIM_DATACHANGE_MSISDNS = $ffffffff;
  8087. RIL_SIM_DATACHANGE_ALL_SIMRECORDS = $fffffffe;
  8088. RIL_SIM_DATACHANGE_ALL_SIMPB = $fffffffd;
  8089. RIL_SIM_DATACHANGE_ALL = $fffffffc;
  8090. // ---------------------------------------------------------------------------
  8091. //
  8092. // @doc EXTERNAL
  8093. //
  8094. // @func Sets the GPRS activation state for a context for an NDIS connection.
  8095. //
  8096. // @comm Asynchronous. <p lpData> points to a <t DWORD> containing the error
  8097. // detail on failure or the context ID on success.
  8098. //
  8099. // -----------------------------------------------------------------------------
  8100. function RIL_NDIS_SetGPRSContextActivated(
  8101. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  8102. lpNdisSetGprsContextActivated:LPRILNDISGPRSCONTEXT // @parm
  8103. ):HRESULT; external RILDLL name 'RIL_NDIS_SetGPRSContextActivated';
  8104. // ---------------------------------------------------------------------------
  8105. //
  8106. // @doc EXTERNAL
  8107. //
  8108. // @func Send an arbitrary string to the radio for logging purposes
  8109. //
  8110. // @comm Asynchronous. <p lpData> is <def NULL>.
  8111. //
  8112. // -----------------------------------------------------------------------------
  8113. function RIL_LogEventToRadio(
  8114. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  8115. lpszChars:LPCSTR // @parm
  8116. ):HRESULT; external RILDLL name 'RIL_LogEventToRadio';
  8117. implementation
  8118. function MAKE_RILERROR(errclass:byte; code:byte):ULONG; inline;
  8119. begin
  8120. MAKE_RILERROR:=(ULONG(errclass) shl 8) or ULONG(code);
  8121. end;
  8122. function RILERRORCLASS(rilerror:ULONG):byte; inline;
  8123. begin
  8124. RILERRORCLASS:=byte(ULONG((rilerror shr 8) and $FF));
  8125. end;
  8126. function ISRILERROR(rilerror:ULONG):BOOL; inline;
  8127. begin
  8128. ISRILERROR:=(word(rilerror shr 16) and FACILITY_RIL)<>0;
  8129. end;
  8130. //
  8131. // Macro to extract notification class from notification code
  8132. //
  8133. function NCLASS_FROM_NOTIFICATION(code:ULONG):ULONG; inline;
  8134. begin
  8135. NCLASS_FROM_NOTIFICATION:=code and $FFFF0000;
  8136. end;
  8137. //
  8138. // Macro to extract message class from message type
  8139. //
  8140. function MSGCLASS_FROM_MSGTYPE(itype:ULONG):ULONG; inline;
  8141. begin
  8142. MSGCLASS_FROM_MSGTYPE:=itype and $FFFF0000;
  8143. end;
  8144. end.