ril.pp 434 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741
  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. {$IFNDEF FPC_DOTTEDUNITS}
  19. unit RIL;
  20. {$ENDIF FPC_DOTTEDUNITS}
  21. {$CALLING cdecl}
  22. {$INLINE ON}
  23. interface
  24. {$IFDEF FPC_DOTTEDUNITS}
  25. uses WinApi.Windows;
  26. {$ELSE FPC_DOTTEDUNITS}
  27. uses Windows;
  28. {$ENDIF FPC_DOTTEDUNITS}
  29. const
  30. RILDLL = 'ril.dll';
  31. const
  32. RIL_DRIVER_VERSION = $00020000;
  33. // -----------------------------------------------------------------------------
  34. //
  35. // @doc EXTERNAL
  36. //
  37. // @constants Error Class | Each RIL error falls into a general error class bucket
  38. //
  39. // @comm In RIL, the low order 16 bits are divided into an 8-bit error class and
  40. // an 8-bit error value. Use the RILERRORCLASS macro to obtain the error
  41. // class from a RIL HRESULT.
  42. //
  43. // -----------------------------------------------------------------------------
  44. const
  45. RIL_ERRORCLASS_NONE = $00; // @constdefine Misc error
  46. RIL_ERRORCLASS_PASSWORD = $01; // @constdefine Unspecified phone failure
  47. RIL_ERRORCLASS_SIM = $02; // @constdefine Problem with the SIM
  48. RIL_ERRORCLASS_NETWORKACCESS = $03; // @constdefine Can't access the network
  49. RIL_ERRORCLASS_NETWORK = $04; // @constdefine Error in the network
  50. RIL_ERRORCLASS_MOBILE = $05; // @constdefine Error in the mobile
  51. RIL_ERRORCLASS_NETWORKUNSUPPORTED = $06; // @constdefine Unsupported by the network
  52. RIL_ERRORCLASS_MOBILEUNSUPPORTED = $07; // @constdefine Unsupported by the mobile
  53. RIL_ERRORCLASS_BADPARAM = $08; // @constdefine An invalid parameter was supplied
  54. RIL_ERRORCLASS_STORAGE = $09; // @constdefine Error relating to storage
  55. RIL_ERRORCLASS_SMSC = $0A; // @constdefine Error relates to the SMSC
  56. RIL_ERRORCLASS_DESTINATION = $0B; // @constdefine Error in the destination mobile
  57. RIL_ERRORCLASS_DESTINATIONUNSUPPORTED = $0C; // @constdefine Unsupported by destination mobile
  58. RIL_ERRORCLASS_RADIOUNAVAILABLE = $0D; // @constdefine The Radio Module is Off or a radio module may not be present
  59. RIL_ERRORCLASS_GPRS = $0E; // @constdefine GPRS related failures
  60. function MAKE_RILERROR(errclass:byte; code:byte):ULONG; inline;
  61. function RILERRORCLASS(rilerror:ULONG):byte; inline;
  62. function ISRILERROR(rilerror:ULONG):BOOL; inline;
  63. // -----------------------------------------------------------------------------
  64. //
  65. // @doc EXTERNAL
  66. //
  67. // @constants Error | Error codes
  68. //
  69. // @comm None
  70. //
  71. // -----------------------------------------------------------------------------
  72. const
  73. FACILITY_RIL = $0100;
  74. RIL_E_PHONEFAILURE = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_MOBILE shl 8) or $01); // @constdefine Unspecified phone failure
  75. 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
  76. 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
  77. 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
  78. 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
  79. 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
  80. 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
  81. 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
  82. 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
  83. 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
  84. 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
  85. 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
  86. RIL_E_SIMBUSY = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_SIM shl 8) or $0D); // @constdefine SIM is busy
  87. 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
  88. 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
  89. 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
  90. 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
  91. 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
  92. 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
  93. 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
  94. RIL_E_MEMORYFAILURE = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_STORAGE shl 8) or $15); // @constdefine Storage memory failure
  95. 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
  96. 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
  97. 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
  98. 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
  99. 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
  100. 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
  101. 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
  102. 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
  103. 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
  104. 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
  105. 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
  106. 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
  107. 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
  108. 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
  109. 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
  110. 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
  111. 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
  112. 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
  113. 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
  114. 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
  115. 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
  116. 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
  117. 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
  118. 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
  119. 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
  120. 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
  121. 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
  122. 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
  123. 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
  124. 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
  125. 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
  126. 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
  127. 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
  128. 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
  129. 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
  130. 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
  131. 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
  132. 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
  133. 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
  134. 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
  135. 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
  136. 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
  137. 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
  138. 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
  139. 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
  140. 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
  141. 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
  142. 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
  143. 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
  144. 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
  145. 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
  146. 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
  147. 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
  148. 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
  149. 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
  150. 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
  151. 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
  152. 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
  153. 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
  154. 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
  155. 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
  156. RIL_E_PROTOCOLERROR = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NETWORK shl 8) or $53); // @constdefine Unspefied protocol error
  157. RIL_E_NETWORKERROR = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NETWORK shl 8) or $54); // @constdefine Unspecified network error
  158. RIL_E_MESSAGINGERROR = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NETWORK shl 8) or $55); // @constdefine Unspecified messaging error
  159. 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
  160. RIL_E_TIMEDOUT = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NONE shl 8) or $57); // @constdefine Operation timed out
  161. RIL_E_CANCELLED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NONE shl 8) or $58); // @constdefine Operation was cancelled
  162. 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
  163. 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
  164. 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
  165. RIL_E_SECURITYFAILURE = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_NONE shl 8) or $5C); // @constdefine Security failure
  166. 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
  167. 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
  168. 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
  169. 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
  170. RIL_E_ILLEGALMS = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_GPRS shl 8) or $61); // @constdefine Illegal MS
  171. RIL_E_ILLEGALME = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_GPRS shl 8) or $62); // @constdefine Illegal ME
  172. 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
  173. RIL_E_PLMNNOTALLOWED = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_GPRS shl 8) or $64); // @constdefine PLMN not allowed
  174. 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
  175. 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
  176. 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
  177. 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
  178. 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
  179. RIL_E_PDPAUTHENTICATIONFAILURE = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_GPRS shl 8) or $6A); // @constdefine PDP authentication failure
  180. RIL_E_INVALIDMOBILECLASS = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_GPRS shl 8) or $6B); // @constdefine invalid mobile class
  181. RIL_E_UNSPECIFIEDGPRSERROR = (SEVERITY_ERROR shl 31) or (FACILITY_RIL shl 16) or ((RIL_ERRORCLASS_GPRS shl 8) or $6C); // @constdefine unspecific GPRS error
  182. 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
  183. 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
  184. 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.
  185. 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
  186. 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)
  187. // -----------------------------------------------------------------------------
  188. //
  189. // @doc EXTERNAL
  190. //
  191. // @constants Notification Class | Notification classes
  192. //
  193. // @comm None
  194. //
  195. // -----------------------------------------------------------------------------
  196. const
  197. RIL_NCLASS_FUNCRESULT = $00000000; // @constdefine API call results
  198. RIL_NCLASS_CALLCTRL = $00010000; // @constdefine Call control notifications
  199. RIL_NCLASS_MESSAGE = $00020000; // @constdefine Messaging notifications
  200. RIL_NCLASS_NETWORK = $00040000; // @constdefine Network-related notifications
  201. RIL_NCLASS_SUPSERVICE = $00080000; // @constdefine Supplementary service notifications
  202. RIL_NCLASS_PHONEBOOK = $00100000; // @constdefine Phonebook notifications
  203. RIL_NCLASS_SIMTOOLKIT = $00200000; // @constdefine SIM Toolkit notifications
  204. RIL_NCLASS_MISC = $00400000; // @constdefine Miscellaneous notifications
  205. RIL_NCLASS_RADIOSTATE = $00800000; // @constdefine Notifications Pertaining to changes in Radio State
  206. RIL_NCLASS_POLLING = $01000000; // @constdefine polling related APIs
  207. RIL_NCLASS_NDIS = $40000000; // @constdefine Nofitifcations that won't be picked up by all.
  208. RIL_NCLASS_DEVSPECIFIC = $80000000; // @constdefine Reserved for device specific notifications
  209. RIL_NCLASS_ALL = $01FF0000; // @constdefine All notification classes (except DevSpecifc)
  210. // -----------------------------------------------------------------------------
  211. //
  212. // @doc EXTERNAL
  213. //
  214. // @constants API Result | API call results (RIL_NCLASS_FUNCRESULT)
  215. //
  216. // @comm None
  217. //
  218. // -----------------------------------------------------------------------------
  219. const
  220. RIL_RESULT_OK = $00000001 or RIL_NCLASS_FUNCRESULT; // @constdefine RIL API call succeded; lpData is NULL
  221. RIL_RESULT_NOCARRIER = $00000002 or RIL_NCLASS_FUNCRESULT; // @constdefine RIL API failed because no carrier was detected; lpData is NULL
  222. RIL_RESULT_ERROR = $00000003 or RIL_NCLASS_FUNCRESULT; // @constdefine RIL API failed; lpData points to RIL_E_* constant
  223. RIL_RESULT_NODIALTONE = $00000004 or RIL_NCLASS_FUNCRESULT; // @constdefine RIL API failed because no dialtone was detected; lpData is NULL
  224. RIL_RESULT_BUSY = $00000005 or RIL_NCLASS_FUNCRESULT; // @constdefine RIL API failed because the line was busy; lpData is NULL
  225. RIL_RESULT_NOANSWER = $00000006 or RIL_NCLASS_FUNCRESULT; // @constdefine RIL API failed because of the lack of answer; lpData is NULL
  226. RIL_RESULT_CALLABORTED = $00000007 or RIL_NCLASS_FUNCRESULT; // @constdefine RIL API failed because it was cancelled prior to completion; lpData is NULL
  227. RIL_RESULT_CALLDROPPED = $00000008 or RIL_NCLASS_FUNCRESULT; // @constdefine RIL API failed because the network dropped the call; lpData is NULL
  228. RIL_RESULT_RADIOOFF = $00000009 or RIL_NCLASS_FUNCRESULT; // @constdefine RIL API failed because the radio was shut offl; lpData is NULL
  229. // -----------------------------------------------------------------------------
  230. //
  231. // @doc EXTERNAL
  232. //
  233. // @constants Notification Call Control | Call control notifications (RIL_NCLASS_CALLCTRL)
  234. //
  235. // @comm None
  236. //
  237. // -----------------------------------------------------------------------------
  238. const
  239. RIL_NOTIFY_RING = $00000001 or RIL_NCLASS_CALLCTRL; // @constdefine Incoming call; lpData points to RILRINGINFO
  240. RIL_NOTIFY_CONNECT = $00000002 or RIL_NCLASS_CALLCTRL; // @constdefine Data/voice connection has been established; lpData points to RILCONNECTINFO
  241. RIL_NOTIFY_DISCONNECT = $00000003 or RIL_NCLASS_CALLCTRL; // @constdefine Data/voice connection has been terminated; lpData points to RIL_DISCINIT_* constant
  242. RIL_NOTIFY_DATASVCNEGOTIATED = $00000004 or RIL_NCLASS_CALLCTRL; // @constdefine Data connection service has been negotiated; lpData points to RILSERVICEINFO
  243. 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
  244. RIL_NOTIFY_EMERGENCYMODEENTERED = $00000006 or RIL_NCLASS_CALLCTRL; // @constdefine RIL has enetered emergency mode; lpData is NULL
  245. RIL_NOTIFY_EMERGENCYMODEEXITED = $00000007 or RIL_NCLASS_CALLCTRL; // @constdefine RIL has exited emergency mode; lpData is NULL
  246. RIL_NOTIFY_EMERGENCYHANGUP = $00000008 or RIL_NCLASS_CALLCTRL; // @constdefine Existsing calls (if any) were hung up in RIL emergency mode; lpData is NULL
  247. RIL_NOTIFY_HSCSDPARAMSNEGOTIATED = $00000009 or RIL_NCLASS_CALLCTRL; // @constdefine HSCSD parameters for a call has been negotiated; lpData points to RILCALLHSCSDINFO
  248. RIL_NOTIFY_DIAL = $0000000A or RIL_NCLASS_CALLCTRL; // @constdefine Outgoing call; lpData points to RILDIALINFO
  249. RIL_NOTIFY_CALLPROGRESSINFO = $0000000B or RIL_NCLASS_CALLCTRL; // @constdefine CPI notification; lpData points to RILCALLINFO
  250. RIL_NOTIFY_CURRENTLINECHANGED = $0000000C or RIL_NCLASS_CALLCTRL; // @constdefine Current line has changed notification; lpData points to DWORD with new current address id
  251. RIL_NOTIFY_GPRS_DISCONNECT = $0000000D or RIL_NCLASS_CALLCTRL; // @constdefine GPRS connection has been terminated; lpData points to RILGPRSCONTEXTACTIVATED sturct
  252. // -----------------------------------------------------------------------------
  253. //
  254. // @doc EXTERNAL
  255. //
  256. // @constants Notification Messaging | Messaging notifications (RIL_MCLASS_MESSAGE)
  257. //
  258. // @comm None
  259. //
  260. // -----------------------------------------------------------------------------
  261. const
  262. RIL_NOTIFY_MESSAGE = $00000001 or RIL_NCLASS_MESSAGE; // @constdefine Incoming message; lpData points to RILMESSAGE
  263. RIL_NOTIFY_BCMESSAGE = $00000002 or RIL_NCLASS_MESSAGE; // @constdefine Incoming broadcast message; lpData points to RILMESSAGE
  264. RIL_NOTIFY_STATUSMESSAGE = $00000003 or RIL_NCLASS_MESSAGE; // @constdefine Incoming status-report message; lpData points to RILMESSAGE
  265. 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
  266. 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
  267. RIL_NOTIFY_MSGSTORAGECHANGED = $00000006 or RIL_NCLASS_MESSAGE; // @constdefine One of the message storage locations has been changed; lpData points to RILMSGSTORAGEINFO
  268. RIL_NOTIFY_MESSAGE_IN_SIM = $00000007 or RIL_NCLASS_MESSAGE; // @constdefine Incoming message stored to SIM; lpData points to the storage RILMESSAGE_IN_SIM
  269. RIL_NOTIFY_BCMESSAGE_IN_SIM = $00000008 or RIL_NCLASS_MESSAGE; // @constdefine Incoming broadcast message stored to SIM; lpData points to RILMESSAGE_IN_SIM
  270. RIL_NOTIFY_STATUSMESSAGE_IN_SIM = $00000009 or RIL_NCLASS_MESSAGE; // @constdefine Incoming status-report message stored to SIM; lpData points to RILMESSAGE_IN_SIM
  271. // -----------------------------------------------------------------------------
  272. //
  273. // @doc EXTERNAL
  274. //
  275. // @constants Notification Network | Network-related notifications (RIL_NCLASS_NETWORK)
  276. //
  277. // @comm None
  278. //
  279. // -----------------------------------------------------------------------------
  280. const
  281. RIL_NOTIFY_REGSTATUSCHANGED = $00000001 or RIL_NCLASS_NETWORK; // @constdefine Network registration status has changed; lpData points to the new status (RIL_REGSTAT_* constant)
  282. RIL_NOTIFY_CALLMETER = $00000002 or RIL_NCLASS_NETWORK; // @constdefine Call meter has changed; lpData points to a DWORD containing new current call meter value
  283. RIL_NOTIFY_CALLMETERMAXREACHED = $00000003 or RIL_NCLASS_NETWORK; // @constdefine Call meter maximum has been reached; lpData is NULL
  284. RIL_NOTIFY_GPRSREGSTATUSCHANGED = $00000004 or RIL_NCLASS_NETWORK; // @constdefine Network registration status has changed; lpData points to the new status (RIL_REGSTAT_* constant)
  285. 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
  286. RIL_NOTIFY_GPRSCONNECTIONSTATUS = $00000006 or RIL_NCLASS_NETWORK; // @constdefine This indicates the pdp context state has changed. lpData points to RILGPRSCONTEXTACTIVATED
  287. 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)
  288. RIL_NOTIFY_LOCATIONUPDATE = $00000008 or RIL_NCLASS_NETWORK; // @constdefine This indicates the location data has changed. lpData points to RILLOCATIONINFO
  289. // -----------------------------------------------------------------------------
  290. //
  291. // @doc EXTERNAL
  292. //
  293. // @constants Notification Supplementary Service | Supplementary service notifications (RIL_NCLASS_SUPSERVICE)
  294. //
  295. // @comm None
  296. //
  297. // -----------------------------------------------------------------------------
  298. const
  299. RIL_NOTIFY_CALLERID = $00000001 or RIL_NCLASS_SUPSERVICE; // @constdefine Incoming call CallerID information; lpData points to RILREMOTEPARTYINFO
  300. RIL_NOTIFY_DIALEDID = $00000002 or RIL_NCLASS_SUPSERVICE; // @constdefine Initiated call DialedID information; lpData points to RILREMOTEPARTYINFO
  301. RIL_NOTIFY_CALLWAITING = $00000003 or RIL_NCLASS_SUPSERVICE; // @constdefine Call Waiting information; lpData points to RILCALLWAITINGINFO
  302. RIL_NOTIFY_SUPSERVICEDATA = $00000004 or RIL_NCLASS_SUPSERVICE; // @constdefine Ustructured supplementary service data; lpData points to RILSUPSERVICEDATA
  303. RIL_NOTIFY_INTERMEDIATESS = $00000005 or RIL_NCLASS_SUPSERVICE; // @constdefine Ustructured supplementary service data; lpData points to RILINTERMEDIATESSINFO
  304. RIL_NOTIFY_UNSOLICITEDSS = $00000006 or RIL_NCLASS_SUPSERVICE; // @constdefine Ustructured supplementary service data; lpData points to RILUNSOLICITEDSSINFO
  305. // -----------------------------------------------------------------------------
  306. //
  307. // @doc EXTERNAL
  308. //
  309. // @constants Notification Phonebook | Phonebook notifications (RIL_NCLASS_PHONEBOOK)
  310. //
  311. // @comm None
  312. //
  313. // -----------------------------------------------------------------------------
  314. const
  315. RIL_NOTIFY_PHONEBOOKENTRYSTORED = $00000001 or RIL_NCLASS_PHONEBOOK; // @constdefine A phonebook entry has been added to storage; lpData points to the storage
  316. // index assigned to the new entry (ifdwIndex is RIL_PBINDEX_FIRSTAVAILABLE, the new entry was stored in the first available location)
  317. 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
  318. RIL_NOTIFY_PHONEBOOKSTORAGECHANGED = $00000003 or RIL_NCLASS_PHONEBOOK; // @constdefine Phonebook storage location has been changed; lpData points to RIL_PBLOC_* constant
  319. // -----------------------------------------------------------------------------
  320. //
  321. // @doc EXTERNAL
  322. //
  323. // @constants Notification Toolkit | SIM Toolkit notifications (RIL_NCLASS_SIMTOOLKIT)
  324. //
  325. // @comm None
  326. //
  327. // -----------------------------------------------------------------------------
  328. const
  329. 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
  330. 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;
  331. // lpData points to a DWORD containing the redial timeout for the call (in milliseconds)
  332. 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;
  333. // lpData points to array of bytes containing the command or response sent
  334. RIL_NOTIFY_SIMTOOLKITSESSIONEND = $00000004 or RIL_NCLASS_SIMTOOLKIT; // @constdefine A SIM Toolkit command session is ending
  335. // -----------------------------------------------------------------------------
  336. //
  337. // @doc EXTERNAL
  338. //
  339. // @constants Notification Radio State Change | Radio State Change notifications (RIL_NCLASS_RADIOSTATE)
  340. //
  341. // @comm None
  342. //
  343. // -----------------------------------------------------------------------------
  344. const
  345. 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
  346. 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)
  347. RIL_NOTIFY_RADIORESET = $00000003 or RIL_NCLASS_RADIOSTATE; // @constdefine The driver has detected that the radio reset itself. lpData points to NULL
  348. // -----------------------------------------------------------------------------
  349. //
  350. // @doc EXTERNAL
  351. //
  352. // @constants Notification Misc | Miscellaneous notifications (RIL_NCLASS_MISC)
  353. //
  354. // @comm None
  355. //
  356. // -----------------------------------------------------------------------------
  357. const
  358. RIL_NOTIFY_SIMNOTACCESSIBLE = $00000001 or RIL_NCLASS_MISC; // @constdefine SIM card has been removed or has failed to respond; lpData is NULL
  359. RIL_NOTIFY_DTMFSIGNAL = $00000002 or RIL_NCLASS_MISC; // @constdefine A DTMF signal has been detected; lpData points to AnsiChar
  360. RIL_NOTIFY_GPRSCLASS_NETWORKCHANGED = $00000003 or RIL_NCLASS_MISC; // @constdefine Network has indicated a change in GPRS class
  361. // lpData points to a DWORD containing the new RIL_GPRSCLASS_* value
  362. RIL_NOTIFY_GPRSCLASS_RADIOCHANGED = $00000004 or RIL_NCLASS_MISC; // @constdefine The radio has indicated a change in GPRS class
  363. // lpData points to a DWORD containing the new RIL_GPRSCLASS_* value
  364. RIL_NOTIFY_SIGNALQUALITY = $00000005 or RIL_NCLASS_MISC; // @constdefine Signal Quality Notification
  365. // lpData points to a RILSIGNALQUALITY structure
  366. RIL_NOTIFY_MAINTREQUIRED = $00000006 or RIL_NCLASS_MISC; // @constdefine BS notification that MS requires servicing; lpdata is NULL
  367. RIL_NOTIFY_PRIVACYCHANGED = $00000007 or RIL_NCLASS_MISC; // @constdefine Call Privacy Status; lpData points to DWORD of value RIL_CALLPRIVACY_*
  368. RIL_NOTIFY_SIM_DATACHANGE = $00000008 or RIL_NCLASS_MISC; // @constdefine data change notification; lpData points to DWORD of value RIL_SIMDATACHANGE_*
  369. RIL_NOTIFY_ATLOGGING = $00000009 or RIL_NCLASS_MISC; // @constdefine at command log data present
  370. RIL_NOTIFY_SIMSTATUSCHANGED = $0000000A or RIL_NCLASS_MISC; // @constdefine SIM card state has changed. Carries a DWORD (RIL_SIMSTATUSCHANGED_*) with the current state.
  371. // Notification is sent only when encountering error conditions from the radio.
  372. RIL_NOTIFY_EONS = $0000000B or RIL_NCLASS_MISC; // @constdefine EONS information ready or updated; lpData is NULL
  373. RIL_NOTIFY_SIMSECURITYSTATUS = $0000000C or RIL_NCLASS_MISC; // @constdefine SIM security status change; lpData points to LPRILSIMSECURITYSTATUS
  374. RIL_NOTIFY_LINESTATE = $0000000D or RIL_NCLASS_MISC; // @constdefine line state; lpData points to a DWORD of value RIL_LINESTAT_*
  375. RIL_NOTIFY_BEARERSVCINFO = $0000000E or RIL_NCLASS_MISC; // @constdefine bearer service information; lpData points to LPRILBEARERSVCINFO
  376. RIL_NOTIFY_DATACOMPINFO = $0000000F or RIL_NCLASS_MISC; // @constdefine data compression information; lpData points to LPRILDATACOMPINFO
  377. RIL_NOTIFY_EQUIPMENTINFO = $00000010 or RIL_NCLASS_MISC; // @constdefine equipment information; lpData points to LPRILEQUIPMENTINFO
  378. RIL_NOTIFY_ERRORCORRECTIONINFO = $00000011 or RIL_NCLASS_MISC; // @constdefine error correction information; lpData points to LPRILERRORCORRECTIONINFO
  379. RIL_NOTIFY_GPRSADDRESS = $00000012 or RIL_NCLASS_MISC; // @constdefine GPRS address; lpData points to an array of WCHAR values that indicate the address
  380. RIL_NOTIFY_GPRSATTACHED = $00000013 or RIL_NCLASS_MISC; // @constdefine GPRS attach state; lpData points to a BOOL that indicates attach state
  381. RIL_NOTIFY_GPRSCONTEXT = $00000014 or RIL_NCLASS_MISC; // @constdefine GPRS context list; lpData points to LPRILGPRSCONTEXT
  382. RIL_NOTIFY_GPRSCONTEXTACTIVATED = $00000015 or RIL_NCLASS_MISC; // @constdefine GPRS context activated list; lpData points to LPRILGPRSCONTEXTACTIVATED
  383. RIL_NOTIFY_QOSMIN = $00000016 or RIL_NCLASS_MISC; // @constdefine minimum quality of service profile ; lpData points to LPRILGPRSQOSPROFILE
  384. RIL_NOTIFY_QOSREQ = $00000017 or RIL_NCLASS_MISC; // @constdefine requested quality of service profile ; lpData points to LPRILGPRSQOSPROFILE
  385. RIL_NOTIFY_RLPOPTIONS = $00000018 or RIL_NCLASS_MISC; // @constdefine requested quality of service profile ; lpData points to LPRILRLPINFO
  386. RIL_NOTIFY_NITZ = $00000019 or RIL_NCLASS_MISC; // @constdefine NITZ Date/Time notification. lpData points to a RILNITZINFO structure.
  387. // -----------------------------------------------------------------------------
  388. //
  389. // @doc EXTERNAL
  390. //
  391. // @constants Notification Device Specific | Device Specific notifications (RIL_NCLASS_DEVSPECIFIC)
  392. //
  393. // @comm None
  394. //
  395. // -----------------------------------------------------------------------------
  396. const
  397. RIL_NOTIFY_LOCATION = $00008000 or RIL_NCLASS_DEVSPECIFIC; // @constdefine Location Services; lpData points to DWORD of value RIL_LOCATION_*
  398. RIL_NOTIFY_ROAMSTATUS = $00008001 or RIL_NCLASS_DEVSPECIFIC; // @constdefine Roaming Status; lpData points to DWORD of value RIL_ROAMSTATUS_*
  399. // lpData ponts to DWORD of [ RIL_NDIS_XON |RIL_NDIS_XOFF ]
  400. //
  401. // Macro to extract notification class from notification code
  402. //
  403. function NCLASS_FROM_NOTIFICATION(code:ULONG):ULONG; inline;
  404. //
  405. // Structure parameter flags
  406. //
  407. // -----------------------------------------------------------------------------
  408. //
  409. // @doc EXTERNAL
  410. //
  411. // @params RILNDISIPCONFIG
  412. //
  413. // @comm None
  414. //
  415. // -----------------------------------------------------------------------------
  416. //
  417. const
  418. RIL_PARAM_NDISIPCONFIG_PROTOCOL_IPV4 = $00000001; // @paramdefine
  419. RIL_PARAM_NDISIPCONFIG_PROTOCOL_IPV6 = $00000002; // @paramdefine
  420. //
  421. // ipv4 defines
  422. RIL_PARAM_NDISIPCONFIG_IPADDR = $00000001; // @paramdefine
  423. RIL_PARAM_NDISIPCONFIG_PRIMARYDNS = $00000002; // @paramdefine
  424. RIL_PARAM_NDISIPCONFIG_SECONDARYDNS = $00000004; // @paramdefine
  425. RIL_PARAM_NDISIPCONFIG_DEFAULTGATEWAY = $00000008; // @paramdefine
  426. RIL_PARAM_NDISIPCONFIG_SUBNETMASK = $00000010; // @paramdefine
  427. RIL_PARAM_NDISIPCONFIG_ALL = $0000001f; // @paramdefine
  428. //
  429. // ipv6 defines
  430. RIL_PARAM_NDISIPCONFIG_IPV6_IPADDR = $00000001; // @paramdefine
  431. RIL_PARAM_NDISIPCONFIG_IPV6_PRIMARYDNS = $00000002; // @paramdefine
  432. RIL_PARAM_NDISIPCONFIG_IPV6_SECONDARYDNS = $00000004; // @paramdefine
  433. RIL_PARAM_NDISIPCONFIG_IPV6_DEFAULTGATEWAY = $00000008; // @paramdefine
  434. RIL_PARAM_NDISIPCONFIG_IPV6_SUBNETMASK = $00000010; // @paramdefine
  435. RIL_PARAM_NDISIPCONFIG_IPV6_FLOWINFO = $00000020; // @paramdefine
  436. RIL_PARAM_NDISIPCONFIG_IPV6_SCOPEID = $00000040; // @paramdefine
  437. RIL_PARAM_NDISIPCONFIG_IPV6_ALL = $0000007f; // @paramdefine
  438. // -----------------------------------------------------------------------------
  439. //
  440. // @doc EXTERNAL
  441. //
  442. // @params RILNDISGPRSCONTEXT
  443. //
  444. // @comm None
  445. //
  446. // -----------------------------------------------------------------------------
  447. const
  448. RIL_PARAM_RILNDISGPRSCONTEXT_USERNAME = $00000001; // @paramdefine
  449. RIL_PARAM_RILNDISGPRSCONTEXT_PASSWORD = $00000002; // @paramdefine
  450. RIL_PARAM_RILNDISGPRSCONTEXT_DNS1 = $00000004; // @paramdefine
  451. RIL_PARAM_RILNDISGPRSCONTEXT_DNS2 = $00000008; // @paramdefine
  452. // -----------------------------------------------------------------------------
  453. //
  454. // @doc EXTERNAL
  455. //
  456. // @params RILNDISGPRSCONTEXTRESPONSE
  457. //
  458. // @comm None
  459. //
  460. // -----------------------------------------------------------------------------
  461. const
  462. RIL_PARAM_RILNDISGPRSCONTEXTRESPONSE_IPCONFIG = $00000001; // @paramdefine
  463. RIL_PARAM_RILNDISGPRSCONTEXTRESPONSE_FUNCTIONS = $00000002; // @paramdefine
  464. // -----------------------------------------------------------------------------
  465. //
  466. // @doc EXTERNAL
  467. //
  468. // @params RILNDISSTATUS
  469. //
  470. // @comm None
  471. //
  472. // -----------------------------------------------------------------------------
  473. const
  474. RIL_PARAM_RILNDISSTATUS_IPCONFIG = $00000001; // @paramdefine
  475. RIL_PARAM_RILNDISSTATUS_FLOWCONTROL = $00000002; // @paramdefine
  476. // -----------------------------------------------------------------------------
  477. //
  478. // @doc EXTERNAL
  479. //
  480. // @params RILADDRESS
  481. //
  482. // @comm None
  483. //
  484. // -----------------------------------------------------------------------------
  485. const
  486. RIL_PARAM_A_TYPE = $00000001; // @paramdefine
  487. RIL_PARAM_A_NUMPLAN = $00000002; // @paramdefine
  488. RIL_PARAM_A_ADDRESS = $00000004; // @paramdefine
  489. RIL_PARAM_A_ALL = $00000007; // @paramdefine
  490. // -----------------------------------------------------------------------------
  491. //
  492. // @doc EXTERNAL
  493. //
  494. // @params RILSUBADDRESS
  495. //
  496. // @comm None
  497. //
  498. // -----------------------------------------------------------------------------
  499. const
  500. RIL_PARAM_SA_TYPE = $00000001; // @paramdefine
  501. RIL_PARAM_SA_SUBADDRESS = $00000002; // @paramdefine
  502. RIL_PARAM_SA_ALL = $00000003; // @paramdefine
  503. // -----------------------------------------------------------------------------
  504. //
  505. // @doc EXTERNAL
  506. //
  507. // @params RILSERIALPORTSTATS
  508. //
  509. // @comm None
  510. //
  511. // -----------------------------------------------------------------------------
  512. const
  513. RIL_PARAM_SPS_READBITSPERSECOND = $00000001; // @paramdefine
  514. RIL_PARAM_SPS_WRITTENBITSPERSECOND = $00000002; // @paramdefine
  515. RIL_PARAM_SPS_ALL = $00000003; // @paramdefine
  516. // -----------------------------------------------------------------------------
  517. //
  518. // @doc EXTERNAL
  519. //
  520. // @params RILSUBSCRIBERINFO
  521. //
  522. // @comm None
  523. //
  524. // -----------------------------------------------------------------------------
  525. const
  526. RIL_PARAM_SI_ADDRESS = $00000001; // @paramdefine
  527. RIL_PARAM_SI_DESCRIPTION = $00000002; // @paramdefine
  528. RIL_PARAM_SI_SPEED = $00000004; // @paramdefine
  529. RIL_PARAM_SI_SERVICE = $00000008; // @paramdefine
  530. RIL_PARAM_SI_ITC = $00000010; // @paramdefine
  531. RIL_PARAM_SI_ADDRESSID = $00000020; // @paramdefine
  532. RIL_PARAM_SI_ALL = $0000003f; // @paramdefine
  533. // -----------------------------------------------------------------------------
  534. //
  535. // @doc EXTERNAL
  536. //
  537. // @params RILOPERATORNAMES
  538. //
  539. // @comm None
  540. //
  541. // -----------------------------------------------------------------------------
  542. const
  543. RIL_PARAM_ON_LONGNAME = $00000001; // @paramdefine
  544. RIL_PARAM_ON_SHORTNAME = $00000002; // @paramdefine
  545. RIL_PARAM_ON_NUMNAME = $00000004; // @paramdefine
  546. RIL_PARAM_ON_COUNTRY_CODE = $00000008; // @paramdefine
  547. RIL_PARAM_ON_GSM_ACT = $00000010; // @paramdefine
  548. RIL_PARAM_ON_GSMCOMPACT_ACT = $00000020; // @paramdefine
  549. RIL_PARAM_ON_UMTS_ACT = $00000040; // @paramdefine
  550. RIL_PARAM_ON_ALL = $0000007F; // @paramdefine
  551. // -----------------------------------------------------------------------------
  552. //
  553. // @doc EXTERNAL
  554. //
  555. // @params RILOPERATORINFO
  556. //
  557. // @comm None
  558. //
  559. // -----------------------------------------------------------------------------
  560. const
  561. RIL_PARAM_OI_INDEX = $00000001; // @paramdefine
  562. RIL_PARAM_OI_STATUS = $00000002; // @paramdefine
  563. RIL_PARAM_OI_NAMES = $00000004; // @paramdefine
  564. RIL_PARAM_OI_ALL = $00000007; // @paramdefine
  565. // -----------------------------------------------------------------------------
  566. //
  567. // @doc EXTERNAL
  568. //
  569. // @params RILCALLERIDSETTINGS
  570. //
  571. // @comm None
  572. //
  573. // -----------------------------------------------------------------------------
  574. const
  575. RIL_PARAM_CIDS_PROVISIONING = $00000001; // @paramdefine
  576. RIL_PARAM_CIDS_STATUS = $00000002; // @paramdefine
  577. RIL_PARAM_CIDS_ALL = $00000003; // @paramdefine
  578. // -----------------------------------------------------------------------------
  579. //
  580. // @doc EXTERNAL
  581. //
  582. // @params RILHIDEIDSETTINGS
  583. //
  584. // @comm None
  585. //
  586. // -----------------------------------------------------------------------------
  587. const
  588. RIL_PARAM_HIDS_STATUS = $00000001; // @paramdefine
  589. RIL_PARAM_HIDS_PROVISIONING = $00000002; // @paramdefine
  590. RIL_PARAM_HIDS_ALL = $00000003; // @paramdefine
  591. // -----------------------------------------------------------------------------
  592. //
  593. // @doc EXTERNAL
  594. //
  595. // @params RILDIALEDIDSETTINGS
  596. //
  597. // @comm None
  598. //
  599. // -----------------------------------------------------------------------------
  600. const
  601. RIL_PARAM_DIDS_PROVISIONING = $00000001; // @paramdefine
  602. RIL_PARAM_DIDS_STATUS = $00000002; // @paramdefine
  603. RIL_PARAM_DIDS_ALL = $00000003; // @paramdefine
  604. // -----------------------------------------------------------------------------
  605. //
  606. // @doc EXTERNAL
  607. //
  608. // @params RILHIDECONNECTEDIDSETTINGS
  609. //
  610. // @comm None
  611. //
  612. // -----------------------------------------------------------------------------
  613. const
  614. RIL_PARAM_HCIDS_PROVISIONING = $00000001; // @paramdefine
  615. RIL_PARAM_HCIDS_STATUS = $00000002; // @paramdefine
  616. RIL_PARAM_HCIDS_ALL = $00000003; // @paramdefine
  617. // -----------------------------------------------------------------------------
  618. //
  619. // @doc EXTERNAL
  620. //
  621. // @params RILCLOSEDGROUPSETTINGS
  622. //
  623. // @comm None
  624. //
  625. // -----------------------------------------------------------------------------
  626. const
  627. RIL_PARAM_CGS_STATUS = $00000001; // @paramdefine
  628. RIL_PARAM_CGS_INDEX = $00000002; // @paramdefine
  629. RIL_PARAM_CGS_INFO = $00000004; // @paramdefine
  630. RIL_PARAM_CGS_ALL = $00000007; // @paramdefine
  631. // -----------------------------------------------------------------------------
  632. //
  633. // @doc EXTERNAL
  634. //
  635. // @params RILCALLFORWARDINGSETTINGS
  636. //
  637. // @comm None
  638. //
  639. // -----------------------------------------------------------------------------
  640. const
  641. RIL_PARAM_CFS_STATUS = $00000001; // @paramdefine
  642. RIL_PARAM_CFS_INFOCLASSES = $00000002; // @paramdefine
  643. RIL_PARAM_CFS_ADDRESS = $00000004; // @paramdefine
  644. RIL_PARAM_CFS_SUBADDRESS = $00000008; // @paramdefine
  645. RIL_PARAM_CFS_DELAYTIME = $00000010; // @paramdefine
  646. RIL_PARAM_CFS_ALL = $0000001f; // @paramdefine
  647. // -----------------------------------------------------------------------------
  648. //
  649. // @doc EXTERNAL
  650. //
  651. // @params RILCALLINFO
  652. //
  653. // @comm None
  654. //
  655. // -----------------------------------------------------------------------------
  656. const
  657. RIL_PARAM_CI_ID = $00000001; // @paramdefine
  658. RIL_PARAM_CI_DIRECTION = $00000002; // @paramdefine
  659. RIL_PARAM_CI_STATUS = $00000004; // @paramdefine
  660. RIL_PARAM_CI_TYPE = $00000008; // @paramdefine
  661. RIL_PARAM_CI_MULTIPARTY = $00000010; // @paramdefine
  662. RIL_PARAM_CI_ADDRESS = $00000020; // @paramdefine
  663. RIL_PARAM_CI_DESCRIPTION = $00000040; // @paramdefine
  664. RIL_PARAM_CI_CPISTATUS = $00000080; // @paramdefine
  665. RIL_PARAM_CI_DISCONNECTCODE = $00000100; // @paramdefine
  666. //Note: RIL_PARAM_CI_STATUS and RIL_PARAM_CI_CPISTATUS are mutually exclusive
  667. // parameters because they define how the dwStatus variable is used.
  668. // Therefore, there is no RIL_PARAM_CI_ALL to avoid any ambiguity.
  669. // -----------------------------------------------------------------------------
  670. //
  671. // @doc EXTERNAL
  672. //
  673. // @params RILGAININFO
  674. //
  675. // @comm None
  676. //
  677. // -----------------------------------------------------------------------------
  678. const
  679. RIL_PARAM_GI_TXGAIN = $00000001; // @paramdefine
  680. RIL_PARAM_GI_RXGAIN = $00000002; // @paramdefine
  681. RIL_PARAM_GI_ALL = $00000003; // @paramdefine
  682. // -----------------------------------------------------------------------------
  683. //
  684. // @doc EXTERNAL
  685. //
  686. // @params RILAUDIODEVICEINFO
  687. //
  688. // @comm None
  689. //
  690. // -----------------------------------------------------------------------------
  691. const
  692. RIL_PARAM_ADI_TXDEVICE = $00000001; // @paramdefine
  693. RIL_PARAM_ADI_RXDEVICE = $00000002; // @paramdefine
  694. RIL_PARAM_ADI_ALL = $00000003; // @paramdefine
  695. // -----------------------------------------------------------------------------
  696. //
  697. // @doc EXTERNAL
  698. //
  699. // @params RILHSCSDINFO
  700. //
  701. // @comm None
  702. //
  703. // -----------------------------------------------------------------------------
  704. const
  705. RIL_PARAM_HSCSDI_TRANSPRXTIMESLOTS = $00000001; // @paramdefine
  706. RIL_PARAM_HSCSDI_TRANSPCHANNELCODINGS = $00000002; // @paramdefine
  707. RIL_PARAM_HSCSDI_NONTRANSPRXTIMESLOTS = $00000004; // @paramdefine
  708. RIL_PARAM_HSCSDI_NONTRANSPCHANNELCODINGS = $00000008; // @paramdefine
  709. RIL_PARAM_HSCSDI_AIRINTERFACEUSERRATE = $00000010; // @paramdefine
  710. RIL_PARAM_HSCSDI_RXTIMESLOTSLIMIT = $00000020; // @paramdefine
  711. RIL_PARAM_HSCSDI_AUTOSVCLEVELUPGRADING = $00000040; // @paramdefine
  712. RIL_PARAM_HSCSDI_ALL = $0000007f; // @paramdefine
  713. // -----------------------------------------------------------------------------
  714. //
  715. // @doc EXTERNAL
  716. //
  717. // @params RILCALLHSCSDINFO
  718. //
  719. // @comm None
  720. //
  721. // -----------------------------------------------------------------------------
  722. const
  723. RIL_PARAM_CHSCSDI_RXTIMESLOTS = $00000001; // @paramdefine
  724. RIL_PARAM_CHSCSDI_TXTIMESLOTS = $00000002; // @paramdefine
  725. RIL_PARAM_CHSCSDI_AIRINTERFACEUSERRATE = $00000004; // @paramdefine
  726. RIL_PARAM_CHSCSDI_CHANNELCODING = $00000008; // @paramdefine
  727. RIL_PARAM_CHSCSDI_ALL = $0000000f; // @paramdefine
  728. // -----------------------------------------------------------------------------
  729. //
  730. // @doc EXTERNAL
  731. //
  732. // @params RILDATACOMPINFO
  733. //
  734. // @comm None
  735. //
  736. // -----------------------------------------------------------------------------
  737. const
  738. RIL_PARAM_DCI_DIRECTION = $00000001; // @paramdefine
  739. RIL_PARAM_DCI_NEGOTIATION = $00000002; // @paramdefine
  740. RIL_PARAM_DCI_MAXDICTENTRIES = $00000004; // @paramdefine
  741. RIL_PARAM_DCI_MAXSTRING = $00000008; // @paramdefine
  742. RIL_PARAM_DCI_ALL = $0000000f; // @paramdefine
  743. // -----------------------------------------------------------------------------
  744. //
  745. // @doc EXTERNAL
  746. //
  747. // @params RILERRORCORRECTIONINFO
  748. //
  749. // @comm None
  750. //
  751. // -----------------------------------------------------------------------------
  752. const
  753. RIL_PARAM_ECI_ORIGINALREQUEST = $00000001; // @paramdefine
  754. RIL_PARAM_ECI_ORIGINALFALLBACK = $00000002; // @paramdefine
  755. RIL_PARAM_ECI_ANSWERERFALLBACK = $00000004; // @paramdefine
  756. RIL_PARAM_ECI_ALL = $00000007; // @paramdefine
  757. // -----------------------------------------------------------------------------
  758. //
  759. // @doc EXTERNAL
  760. //
  761. // @params RILBEARERSVCINFO
  762. //
  763. // @comm None
  764. //
  765. // -----------------------------------------------------------------------------
  766. const
  767. RIL_PARAM_BSI_SPEED = $00000001; // @paramdefine
  768. RIL_PARAM_BSI_SERVICENAME = $00000002; // @paramdefine
  769. RIL_PARAM_BSI_CONNECTIONELEMENT = $00000004; // @paramdefine
  770. RIL_PARAM_BSI_ALL = $00000007; // @paramdefine
  771. // -----------------------------------------------------------------------------
  772. //
  773. // @doc EXTERNAL
  774. //
  775. // @params RILRLPINFO
  776. //
  777. // @comm None
  778. //
  779. // -----------------------------------------------------------------------------
  780. const
  781. RIL_PARAM_RLPI_IWS = $00000001; // @paramdefine
  782. RIL_PARAM_RLPI_MWS = $00000002; // @paramdefine
  783. RIL_PARAM_RLPI_ACKTIMER = $00000004; // @paramdefine
  784. RIL_PARAM_RLPI_RETRANSMISSIONATTEMPTS = $00000008; // @paramdefine
  785. RIL_PARAM_RLPI_VERSION = $00000010; // @paramdefine
  786. RIL_PARAM_RPLI_RESEQUENCINGPERIOD = $00000020; // @paramdefine
  787. RIL_PARAM_RPLI_ALL = $0000003f; // @paramdefine
  788. // -----------------------------------------------------------------------------
  789. //
  790. // @doc EXTERNAL
  791. //
  792. // @params RILMSGSERVICEINFO
  793. //
  794. // @comm None
  795. //
  796. // -----------------------------------------------------------------------------
  797. const
  798. RIL_PARAM_MSI_SERVICE = $00000001; // @paramdefine
  799. RIL_PARAM_MSI_MSGCLASSES = $00000002; // @paramdefine
  800. RIL_PARAM_MSI_READLOCATION = $00000004; // @paramdefine
  801. RIL_PARAM_MSI_READUSED = $00000008; // @paramdefine
  802. RIL_PARAM_MSI_READTOTAL = $00000010; // @paramdefine
  803. RIL_PARAM_MSI_WRITELOCATION = $00000020; // @paramdefine
  804. RIL_PARAM_MSI_WRITEUSED = $00000040; // @paramdefine
  805. RIL_PARAM_MSI_WRITETOTAL = $00000080; // @paramdefine
  806. RIL_PARAM_MSI_STORELOCATION = $00000100; // @paramdefine
  807. RIL_PARAM_MSI_STOREUSED = $00000200; // @paramdefine
  808. RIL_PARAM_MSI_STORETOTAL = $00000400; // @paramdefine
  809. RIL_PARAM_MSI_ALL = $000007ff; // @paramdefine
  810. // -----------------------------------------------------------------------------
  811. //
  812. // @doc EXTERNAL
  813. //
  814. // @params RILMSGDCS
  815. //
  816. // @comm None
  817. //
  818. // -----------------------------------------------------------------------------
  819. const
  820. RIL_PARAM_MDCS_TYPE = $00000001; // @paramdefine
  821. RIL_PARAM_MDCS_FLAGS = $00000002; // @paramdefine
  822. RIL_PARAM_MDCS_MSGCLASS = $00000004; // @paramdefine
  823. RIL_PARAM_MDCS_ALPHABET = $00000008; // @paramdefine
  824. RIL_PARAM_MDCS_INDICATION = $00000010; // @paramdefine
  825. RIL_PARAM_MDCS_LANGUAGE = $00000020; // @paramdefine
  826. RIL_PARAM_MDCS_ALL = $0000003f; // @paramdefine
  827. // -----------------------------------------------------------------------------
  828. //
  829. // @doc EXTERNAL
  830. //
  831. // @params RILMSGCONFIG
  832. //
  833. // @comm None
  834. //
  835. // -----------------------------------------------------------------------------
  836. const
  837. RIL_PARAM_MC_SVCCTRADDRESS = $00000001; // @paramdefine
  838. RIL_PARAM_MC_ALL = $00000001; // @paramdefine
  839. // -----------------------------------------------------------------------------
  840. //
  841. // @doc EXTERNAL
  842. //
  843. // @params RILCBMSGCONFIG
  844. //
  845. // @comm None
  846. //
  847. // -----------------------------------------------------------------------------
  848. const
  849. RIL_PARAM_CBMC_BROADCASTMSGIDS = $00000001; // @paramdefine
  850. RIL_PARAM_CBMC_BROADCASTMSGLANGS = $00000002; // @paramdefine
  851. RIL_PARAM_CBMC_ACCEPTIDS = $00000004; // @paramdefine
  852. RIL_PARAM_CBMC_ALL = $00000007; // @paramdefine
  853. // -----------------------------------------------------------------------------
  854. //
  855. // @doc EXTERNAL
  856. //
  857. // @params RILMESSAGE
  858. //
  859. // @comm None
  860. //
  861. // -----------------------------------------------------------------------------
  862. { List of Unions Labeled
  863. GSM
  864. ID=RIL_MSGTYPE_IN_DELIVER
  865. ISt=RIL_MSGTYPE_IN_STATUS
  866. OS=RIL_MSGTYPE_OUT_SUBMIT
  867. OC=RIL_MSGTYPE_OUT_COMMAND
  868. OR=RIL_MSGTYPE_OUT_RAW
  869. BC=RIL_MSGTYPE_BC_GENERAL
  870. CDMA
  871. ID=RIL_MSGTYPE_IN_IS637DELIVER
  872. ISt=RIL_MSGTYPE_IN_IS637STATUS
  873. OS=RIL_MSGTYPE_OUT_IS637SUBMIT
  874. OSt=RIL_MSGTYPE_OUT_IS637STATUS
  875. }
  876. // -------This block is the GSM Params for RILMESSAGE (These values may have been recycled;
  877. // U = This value for the field has been reused in CDMA, and if the RILMESSAGE structure
  878. // is expanded, developer must careful not to use two recycled fields in the same union.)
  879. const
  880. RIL_PARAM_M_SVCCTRADDRESS = $00000001; // @paramdefine GSM=[ID,ISt,OS,OC,OR,BC] CDMA=[ID,ISt,OS,OSt]
  881. RIL_PARAM_M_TYPE = $00000002; // @paramdefine GSM=[ID,ISt,OS,OC,OR,BC] CDMA=[ID,ISt,OS,OSt]
  882. RIL_PARAM_M_FLAGS = $00000004; // @paramdefine GSM=[ID,ISt,OS,OC,OR,BC] CDMA=[ID,ISt,OS,OSt]
  883. RIL_PARAM_M_ORIGADDRESS = $00000008; // @paramdefine GSM=[ID] CDMA=[ID,ISt]
  884. RIL_PARAM_M_TGTRECIPADDRESS = $00000010; // @paramdefine U GSM=[ISt]
  885. RIL_PARAM_M_DESTADDRESS = $00000020; // @paramdefine GSM=[OS,OC] CDMA=[OSt,OS]
  886. RIL_PARAM_M_SCRECEIVETIME = $00000040; // @paramdefine GSM=[ID] CDMA=[ID,Ist]
  887. RIL_PARAM_M_TGTSCRECEIVETIME = $00000080; // @paramdefine U GSM=[ISt]
  888. RIL_PARAM_M_TGTDISCHARGETIME = $00000100; // @paramdefine U GSM=[ISt]
  889. RIL_PARAM_M_PROTOCOLID = $00000200; // @paramdefine U GSM=[ISt]
  890. RIL_PARAM_M_DATACODING = $00000800; // @paramdefine U GSM=[ID,ISt,OS,BC]
  891. RIL_PARAM_M_TGTDLVSTATUS = $00001000; // @paramdefine U GSM=[ISt]
  892. RIL_PARAM_M_TGTMSGREFERENCE = $00002000; // @paramdefine U GSM=[OC]
  893. RIL_PARAM_M_VPFORMAT = $00004000; // @paramdefine U GSM=[OS]
  894. RIL_PARAM_M_VP = $00008000; // @paramdefine U GSM=[OS]
  895. RIL_PARAM_M_COMMANDTYPE = $00010000; // @paramdefine U GSM=[OC]
  896. RIL_PARAM_M_GEOSCOPE = $00020000; // @paramdefine U GSM=[BC]
  897. RIL_PARAM_M_MSGCODE = $00040000; // @paramdefine U GSM=[BC]
  898. RIL_PARAM_M_UPDATENUMBER = $00080000; // @paramdefine U GSM=[BC]
  899. RIL_PARAM_M_ID = $00100000; // @paramdefine U GSM=[BC]
  900. RIL_PARAM_M_TOTALPAGES = $00200000; // @paramdefine U GSM=[BC]
  901. RIL_PARAM_M_PAGENUMBER = $00400000; // @paramdefine U GSM=[BC]
  902. RIL_PARAM_M_HDRLENGTH = $00800000; // @paramdefine U GSM=[ID,ISt,OS]
  903. RIL_PARAM_M_MSGLENGTH = $01000000; // @paramdefine GSM=[ID,ISt,OS,OR,BC] CDMA=[ID,ISt,OS,OSt]
  904. RIL_PARAM_M_CMDLENGTH = $02000000; // @paramdefine GSM=[OC]
  905. RIL_PARAM_M_HDR = $04000000; // @paramdefine GSM=[ID,ISt,OS]
  906. RIL_PARAM_M_MSG = $08000000; // @paramdefine GSM=[ID,ISt,OS,OR,BC] CDMA=[ID,ISt,OS,OSt]
  907. RIL_PARAM_M_CMD = $10000000; // @paramdefine U GSM=[OC]
  908. // CDMA Message parameter definitions
  909. const
  910. RIL_PARAM_M_MSGID = $20000000; // @paramdefine CDMA=[ID,ISt,OS,OSt]
  911. RIL_PARAM_M_ORIGSUBADDRESS = $40000000; // @paramdefine CDMA=[ID,ISt]
  912. RIL_PARAM_M_DESTSUBADDRESS = $80000000; // @paramdefine CDMA=[OS,OSt]
  913. RIL_PARAM_M_DIGIT = $00010000; // @paramdefine CDMA=[OS,OSt]
  914. RIL_PARAM_M_PRIVACY = $00000100; // @paramdefine CDMA=[ID,OS]
  915. RIL_PARAM_M_PRIORITY = $00000200; // @paramdefine CDMA=[ID,OS]
  916. RIL_PARAM_M_TELESERVICE = $00000400; // @paramdefine CDMA=[ID,OS]
  917. RIL_PARAM_M_LANG = $00000800; // @paramdefine CDMA=[ID,ISt,OS,OSt]
  918. RIL_PARAM_M_VALIDITYPERIODABS = $00001000; // @paramdefine CDMA=[ID,OS]
  919. RIL_PARAM_M_VALIDITYPERIODREL = $00002000; // @paramdefine CDMA=[OS]
  920. RIL_PARAM_M_DEFERREDDELTIMEABS = $00004000; // @paramdefine CDMA=[OS]
  921. RIL_PARAM_M_DEFERREDDELTIMEREL = $00008000; // @paramdefine CDMA=[OS]
  922. RIL_PARAM_M_ENCODING = $00020000; // @paramdefine CDMA=[ID,ISt,OS,OSt]
  923. RIL_PARAM_M_USERRESPONSECODE = $00040000; // @paramdefine CDMA=[ISt,OSt]
  924. RIL_PARAM_M_DISPLAYMODE = $00080000; // @paramdefine CDMA=[ID,OS]
  925. RIL_PARAM_M_CALLBACKNUM = $00000010; // @paramdefine CDMA=[ID,OS]
  926. RIL_PARAM_M_NUMMSGS = $00000080; // @paramdefine CDMA=[ID]
  927. RIL_PARAM_M_CAUSECODE = $00100000; // @paramdefine CDMA=[ISt]
  928. RIL_PARAM_M_REPLYSEQNUMBER = $00200000; // @paramdefine CDMA=[ISt,OSt]
  929. RIL_PARAM_M_BEARERREPLYACK = $00200000; // @paramdefine CDMA=[OS]
  930. RIL_PARAM_M_USERACK = $00400000; // @paramdefine CDMA=[ID,OS]
  931. RIL_PARAM_M_DELIVERYACK = $00800000; // @paramdefine CDMA=[OS]
  932. RIL_PARAM_M_MSGSTATUSTYPE = $10000000; // @paramdefine CDMA=[ISt]
  933. RIL_PARAM_M_ALL_IN_DELIVER = RIL_PARAM_M_TYPE or
  934. RIL_PARAM_M_FLAGS or
  935. RIL_PARAM_M_ORIGADDRESS or
  936. RIL_PARAM_M_PROTOCOLID or
  937. RIL_PARAM_M_DATACODING or
  938. RIL_PARAM_M_SCRECEIVETIME or
  939. RIL_PARAM_M_HDRLENGTH or
  940. RIL_PARAM_M_MSGLENGTH or
  941. RIL_PARAM_M_HDR or
  942. RIL_PARAM_M_MSG; // @paramdefine
  943. RIL_PARAM_M_ALL_IN_STATUS = RIL_PARAM_M_TYPE or
  944. RIL_PARAM_M_FLAGS or
  945. RIL_PARAM_M_TGTMSGREFERENCE or
  946. RIL_PARAM_M_TGTRECIPADDRESS or
  947. RIL_PARAM_M_TGTSCRECEIVETIME or
  948. RIL_PARAM_M_TGTDISCHARGETIME or
  949. RIL_PARAM_M_TGTDLVSTATUS or
  950. RIL_PARAM_M_PROTOCOLID or
  951. RIL_PARAM_M_DATACODING or
  952. RIL_PARAM_M_HDRLENGTH or
  953. RIL_PARAM_M_MSGLENGTH or
  954. RIL_PARAM_M_HDR or
  955. RIL_PARAM_M_MSG; // @paramdefine
  956. RIL_PARAM_M_ALL_OUT_SUBMIT = RIL_PARAM_M_TYPE or
  957. RIL_PARAM_M_FLAGS or
  958. RIL_PARAM_M_DESTADDRESS or
  959. RIL_PARAM_M_PROTOCOLID or
  960. RIL_PARAM_M_DATACODING or
  961. RIL_PARAM_M_VPFORMAT or
  962. RIL_PARAM_M_VP or
  963. RIL_PARAM_M_HDRLENGTH or
  964. RIL_PARAM_M_MSGLENGTH or
  965. RIL_PARAM_M_HDR or
  966. RIL_PARAM_M_MSG; // @paramdefine
  967. RIL_PARAM_M_ALL_OUT_COMMAND = RIL_PARAM_M_TYPE or
  968. RIL_PARAM_M_FLAGS or
  969. RIL_PARAM_M_PROTOCOLID or
  970. RIL_PARAM_M_COMMANDTYPE or
  971. RIL_PARAM_M_TGTMSGREFERENCE or
  972. RIL_PARAM_M_DESTADDRESS or
  973. RIL_PARAM_M_CMDLENGTH or
  974. RIL_PARAM_M_CMD; // @paramdefine
  975. RIL_PARAM_M_ALL_BC_GENERAL = RIL_PARAM_M_TYPE or
  976. RIL_PARAM_M_GEOSCOPE or
  977. RIL_PARAM_M_MSGCODE or
  978. RIL_PARAM_M_UPDATENUMBER or
  979. RIL_PARAM_M_ID or
  980. RIL_PARAM_M_DATACODING or
  981. RIL_PARAM_M_TOTALPAGES or
  982. RIL_PARAM_M_PAGENUMBER or
  983. RIL_PARAM_M_MSGLENGTH or
  984. RIL_PARAM_M_MSG; // @paramdefine
  985. RIL_PARAM_M_ALL_OUT_RAW = RIL_PARAM_M_TYPE or
  986. RIL_PARAM_M_FLAGS or
  987. RIL_PARAM_M_MSGLENGTH or
  988. RIL_PARAM_M_MSG; // @paramdefine
  989. RIL_PARAM_M_ALL_IN_IS637DELIVER = RIL_PARAM_M_TYPE or
  990. RIL_PARAM_M_MSGID or
  991. RIL_PARAM_M_TELESERVICE or
  992. RIL_PARAM_M_DISPLAYMODE or
  993. RIL_PARAM_M_USERACK or
  994. RIL_PARAM_M_ORIGADDRESS or
  995. RIL_PARAM_M_ORIGSUBADDRESS or
  996. RIL_PARAM_M_SCRECEIVETIME or
  997. RIL_PARAM_M_PRIORITY or
  998. RIL_PARAM_M_PRIVACY or
  999. RIL_PARAM_M_CALLBACKNUM or
  1000. RIL_PARAM_M_NUMMSGS or
  1001. RIL_PARAM_M_VALIDITYPERIODABS or
  1002. RIL_PARAM_M_LANG or
  1003. RIL_PARAM_M_ENCODING or
  1004. RIL_PARAM_M_MSGLENGTH or
  1005. RIL_PARAM_M_MSG; // @paramdefine
  1006. RIL_PARAM_M_ALL_OUT_IS637SUBMIT = RIL_PARAM_M_TYPE or
  1007. RIL_PARAM_M_MSGID or
  1008. RIL_PARAM_M_TELESERVICE or
  1009. RIL_PARAM_M_DISPLAYMODE or
  1010. RIL_PARAM_M_DESTADDRESS or
  1011. RIL_PARAM_M_DESTSUBADDRESS or
  1012. RIL_PARAM_M_DIGIT or
  1013. RIL_PARAM_M_BEARERREPLYACK or
  1014. RIL_PARAM_M_PRIORITY or
  1015. RIL_PARAM_M_PRIVACY or
  1016. RIL_PARAM_M_CALLBACKNUM or
  1017. RIL_PARAM_M_USERACK or
  1018. RIL_PARAM_M_DELIVERYACK or
  1019. RIL_PARAM_M_VALIDITYPERIODABS or
  1020. RIL_PARAM_M_VALIDITYPERIODREL or
  1021. RIL_PARAM_M_DEFERREDDELTIMEABS or
  1022. RIL_PARAM_M_DEFERREDDELTIMEREL or
  1023. RIL_PARAM_M_LANG or
  1024. RIL_PARAM_M_ENCODING or
  1025. RIL_PARAM_M_MSGLENGTH or
  1026. RIL_PARAM_M_MSG; // @paramdefine
  1027. RIL_PARAM_M_ALL_IN_IS637STATUS = RIL_PARAM_M_TYPE or
  1028. RIL_PARAM_M_MSGID or
  1029. RIL_PARAM_M_ORIGADDRESS or
  1030. RIL_PARAM_M_ORIGSUBADDRESS or
  1031. RIL_PARAM_M_SCRECEIVETIME or
  1032. RIL_PARAM_M_CAUSECODE or
  1033. RIL_PARAM_M_REPLYSEQNUMBER or
  1034. RIL_PARAM_M_LANG or
  1035. RIL_PARAM_M_ENCODING or
  1036. RIL_PARAM_M_MSGLENGTH or
  1037. RIL_PARAM_M_MSG or
  1038. RIL_PARAM_M_USERRESPONSECODE or
  1039. RIL_PARAM_M_MSGSTATUSTYPE; // @paramdefine
  1040. RIL_PARAM_M_ALL_OUT_IS637STATUS = RIL_PARAM_M_TYPE or
  1041. RIL_PARAM_M_MSGID or
  1042. RIL_PARAM_M_DESTADDRESS or
  1043. RIL_PARAM_M_DESTSUBADDRESS or
  1044. RIL_PARAM_M_REPLYSEQNUMBER or
  1045. RIL_PARAM_M_LANG or
  1046. RIL_PARAM_M_ENCODING or
  1047. RIL_PARAM_M_MSGLENGTH or
  1048. RIL_PARAM_M_MSG or
  1049. RIL_PARAM_M_USERRESPONSECODE or
  1050. RIL_PARAM_M_DIGIT; // @paramdefine
  1051. // -----------------------------------------------------------------------------
  1052. //
  1053. // @doc EXTERNAL
  1054. //
  1055. // @params RILMESSAGE_IN_SIM
  1056. //
  1057. // @comm None
  1058. //
  1059. // -----------------------------------------------------------------------------
  1060. const
  1061. RIL_PARAM_MIS_LOCATION = $00000001; // @paramdefine
  1062. RIL_PARAM_MIS_INDEX = $00000002; // @paramdefine
  1063. // -----------------------------------------------------------------------------
  1064. //
  1065. // @doc EXTERNAL
  1066. //
  1067. // @params RILMESSAGEINFO
  1068. //
  1069. // @comm None
  1070. //
  1071. // -----------------------------------------------------------------------------
  1072. const
  1073. RIL_PARAM_MI_INDEX = $00000001; // @paramdefine
  1074. RIL_PARAM_MI_STATUS = $00000002; // @paramdefine
  1075. RIL_PARAM_MI_MESSAGE = $00000004; // @paramdefine
  1076. // -----------------------------------------------------------------------------
  1077. //
  1078. // @doc EXTERNAL
  1079. //
  1080. // @params RILEQUIPMENTINFO
  1081. //
  1082. // @comm None
  1083. //
  1084. // -----------------------------------------------------------------------------
  1085. const
  1086. RIL_PARAM_EI_MANUFACTURER = $00000001; // @paramdefine
  1087. RIL_PARAM_EI_MODEL = $00000002; // @paramdefine
  1088. RIL_PARAM_EI_REVISION = $00000004; // @paramdefine
  1089. RIL_PARAM_EI_SERIALNUMBER = $00000008; // @paramdefine
  1090. RIL_PARAM_EI_ALL = $0000000f; // @paramdefine
  1091. // -----------------------------------------------------------------------------
  1092. //
  1093. // @doc EXTERNAL
  1094. //
  1095. // @params RILPHONEBOOKINFO
  1096. //
  1097. // @comm None
  1098. //
  1099. // -----------------------------------------------------------------------------
  1100. const
  1101. RIL_PARAM_PBI_STORELOCATION = $00000001; // @paramdefine
  1102. RIL_PARAM_PBI_USED = $00000002; // @paramdefine
  1103. RIL_PARAM_PBI_TOTAL = $00000004; // @paramdefine
  1104. RIL_PARAM_PBI_ALL = $00000007; // @paramdefine
  1105. // -----------------------------------------------------------------------------
  1106. //
  1107. // @doc EXTERNAL
  1108. //
  1109. // @params RILPHONEBOOKENTRY
  1110. //
  1111. // @comm None
  1112. //
  1113. // -----------------------------------------------------------------------------
  1114. const
  1115. RIL_PARAM_PBE_INDEX = $00000001; // @paramdefine
  1116. RIL_PARAM_PBE_ADDRESS = $00000002; // @paramdefine
  1117. RIL_PARAM_PBE_TEXT = $00000004; // @paramdefine
  1118. RIL_PARAM_PBE_ALL = $00000007; // @paramdefine
  1119. // -----------------------------------------------------------------------------
  1120. //
  1121. // @doc EXTERNAL
  1122. //
  1123. // @params RILATRINFO
  1124. //
  1125. // @comm None
  1126. //
  1127. // -----------------------------------------------------------------------------
  1128. const
  1129. RIL_PARAM_ATR_PHASE = $00000001; // @paramdefine
  1130. RIL_PARAM_ATR_SIZE = $00000002; // @paramdefine
  1131. RIL_PARAM_ATR_ATR = $00000004; // @paramdefine
  1132. RIL_PARAM_ATR_ALL = $00000007; // @paramdefine
  1133. // -----------------------------------------------------------------------------
  1134. //
  1135. // @doc EXTERNAL
  1136. //
  1137. // @params RILSIMTOOLKITNOTIFYCAPS
  1138. //
  1139. // @comm Parameters for LPRILSIMTOOLKITNOTIFYCAPS -> dwParams
  1140. //
  1141. // -----------------------------------------------------------------------------
  1142. const
  1143. RIL_PARAM_SIMTKN_REFRESH = $00000001; // @paramdefine
  1144. RIL_PARAM_SIMTKN_MORETIME = $00000002; // @paramdefine
  1145. RIL_PARAM_SIMTKN_POLLINTERVAL = $00000004; // @paramdefine
  1146. RIL_PARAM_SIMTKN_POLLINGOFF = $00000008; // @paramdefine
  1147. RIL_PARAM_SIMTKN_SETUPCALL = $00000010; // @paramdefine
  1148. RIL_PARAM_SIMTKN_SENDSS = $00000020; // @paramdefine
  1149. RIL_PARAM_SIMTKN_SENDSMS = $00000040; // @paramdefine
  1150. RIL_PARAM_SIMTKN_PLAYTONE = $00000080; // @paramdefine
  1151. RIL_PARAM_SIMTKN_DISPLAYTEXT = $00000100; // @paramdefine
  1152. RIL_PARAM_SIMTKN_GETINKEY = $00000200; // @paramdefine
  1153. RIL_PARAM_SIMTKN_GETINPUT = $00000400; // @paramdefine
  1154. RIL_PARAM_SIMTKN_SELECTITEM = $00000800; // @paramdefine
  1155. RIL_PARAM_SIMTKN_SETUPMENU = $00001000; // @paramdefine
  1156. RIL_PARAM_SIMTKN_LOCALINFO = $00002000; // @paramdefine
  1157. RIL_PARAM_SIMTKN_NOTIFYFLAGS = $00004000; // @paramdefine
  1158. RIL_PARAM_SIMTKN_SENDUSSD = $00008000; // @paramdefine
  1159. RIL_PARAM_SIMTKN_SETUPIDLEMODETEXT = $00010000; // @paramdefine
  1160. RIL_PARAM_SIMTKN_SETUPEVENTLIST = $00020000; // @paramdefine
  1161. RIL_PARAM_SIMTKN_SENDDTMF = $00040000; // @paramdefine
  1162. RIL_PARAM_SIMTKN_LAUNCHBROWSER = $00080000; // @paramdefine
  1163. RIL_PARAM_SIMTKN_OPENCHANNEL = $00100000; // @paramdefine
  1164. RIL_PARAM_SIMTKN_CLOSECHANNEL = $00200000; // @paramdefine
  1165. RIL_PARAM_SIMTKN_RECEIVEDATA = $00400000; // @paramdefine
  1166. RIL_PARAM_SIMTKN_SENDDATA = $00800000; // @paramdefine
  1167. RIL_PARAM_SIMTKN_TIMERMANAGEMENT = $01000000; // @paramdefine
  1168. RIL_PARAM_SIMTKN_EVENTS = $02000000; // @paramdefine
  1169. RIL_PARAM_SIMTKN_RUNATCMD = $04000000; // @paramdefine
  1170. RIL_PARAM_SIMTKN_ALL = $07ffffff; // @paramdefine
  1171. // -----------------------------------------------------------------------------
  1172. //
  1173. // @doc EXTERNAL
  1174. //
  1175. // @params RILSIMTOOLKITEVENTCAPS
  1176. //
  1177. // @comm Parameters for LPRILSIMTOOLKITEVENTCAPS -> dwParams
  1178. //
  1179. // -----------------------------------------------------------------------------
  1180. const
  1181. RIL_PARAM_SIMTKE_MTCALL = $00000001; // @paramdefine
  1182. RIL_PARAM_SIMTKE_CALLCONNECTED = $00000002; // @paramdefine
  1183. RIL_PARAM_SIMTKE_CALLDISCONNECTED = $00000004; // @paramdefine
  1184. RIL_PARAM_SIMTKE_LOCATIONSTATUS = $00000008; // @paramdefine
  1185. RIL_PARAM_SIMTKE_USERACTIVITY = $00000010; // @paramdefine
  1186. RIL_PARAM_SIMTKE_IDLESCREEN = $00000020; // @paramdefine
  1187. RIL_PARAM_SIMTKE_LANGUAGESELECTION = $00000040; // @paramdefine
  1188. RIL_PARAM_SIMTKE_BROWSERTERMINATION = $00000080; // @paramdefine
  1189. RIL_PARAM_SIMTKE_DATAAVAILABLE = $00000100; // @paramdefine
  1190. RIL_PARAM_SIMTKE_CHANNELSTATUS = $00000200; // @paramdefine
  1191. RIL_PARAM_SIMTKE_DISPLAYCHANGE = $00000400; // @paramdefine
  1192. RIL_PARAM_SIMTKE_ALL = $000007FF; // @paramdefine
  1193. // -----------------------------------------------------------------------------
  1194. //
  1195. // @doc EXTERNAL
  1196. //
  1197. // @params RILSIMTOOLKITCMD
  1198. //
  1199. // @comm None
  1200. //
  1201. // -----------------------------------------------------------------------------
  1202. const
  1203. RIL_PARAM_SIMTKIT_CMD_ID = $00000001; // @paramdefine
  1204. RIL_PARAM_SIMTKIT_CMD_TAG = $00000002; // @paramdefine
  1205. RIL_PARAM_SIMTKIT_CMD_TYPE = $00000004; // @paramdefine
  1206. RIL_PARAM_SIMTKIT_CMD_QUALIFIER = $00000008; // @paramdefine
  1207. RIL_PARAM_SIMTKIT_CMD_ERROR = $00000010; // @paramdefine
  1208. RIL_PARAM_SIMTKIT_CMD_DETAILS_OFFSET = $00000020; // @paramdefine
  1209. RIL_PARAM_SIMTKIT_CMD_DETAILS_SIZE = $00000040; // @paramdefine
  1210. RIL_PARAM_SIMTKIT_CMD_ALL = $0000007F; // @paramdefine
  1211. // -----------------------------------------------------------------------------
  1212. //
  1213. // @doc EXTERNAL
  1214. //
  1215. // @params RILSIMTOOLKITRSP
  1216. //
  1217. // @comm None
  1218. //
  1219. // -----------------------------------------------------------------------------
  1220. const
  1221. RIL_PARAM_SIMTKIT_RSP_ID = $00000001; // @paramdefine
  1222. RIL_PARAM_SIMTKIT_RSP_TAG = $00000002; // @paramdefine
  1223. RIL_PARAM_SIMTKIT_RSP_TYPE = $00000004; // @paramdefine
  1224. RIL_PARAM_SIMTKIT_RSP_QUALIFIER = $00000008; // @paramdefine
  1225. RIL_PARAM_SIMTKIT_RSP_RESPONSE = $00000010; // @paramdefine
  1226. RIL_PARAM_SIMTKIT_RSP_ADDITIONALINFO = $00000020; // @paramdefine
  1227. RIL_PARAM_SIMTKIT_RSP_ALL = $0000003F; // @paramdefine
  1228. // -----------------------------------------------------------------------------
  1229. //
  1230. // @doc EXTERNAL
  1231. //
  1232. // @params RILSIMCMDPARAMETERS
  1233. //
  1234. // @comm None
  1235. //
  1236. // -----------------------------------------------------------------------------
  1237. const
  1238. RIL_PARAM_SCP_FILEID = $00000001; // @paramdefine
  1239. RIL_PARAM_SCP_PARAM1 = $00000002; // @paramdefine
  1240. RIL_PARAM_SCP_PARAM2 = $00000004; // @paramdefine
  1241. RIL_PARAM_SCP_PARAM3 = $00000008; // @paramdefine
  1242. RIL_PARAM_SCP_ALL = $0000000f; // @paramdefine
  1243. // -----------------------------------------------------------------------------
  1244. //
  1245. // @doc EXTERNAL
  1246. //
  1247. // @params RILSIMRESPONSE
  1248. //
  1249. // @comm None
  1250. //
  1251. // -----------------------------------------------------------------------------
  1252. const
  1253. RIL_PARAM_SR_STATUSWORD1 = $00000001; // @paramdefine
  1254. RIL_PARAM_SR_STATUSWORD2 = $00000002; // @paramdefine
  1255. RIL_PARAM_SR_RESPONSE = $00000004; // @paramdefine
  1256. RIL_PARAM_SR_ALL = $00000007; // @paramdefine
  1257. // -----------------------------------------------------------------------------
  1258. //
  1259. // @doc EXTERNAL
  1260. //
  1261. // @params RILSIMRECORDSTATUS
  1262. //
  1263. // @comm None
  1264. //
  1265. // -----------------------------------------------------------------------------
  1266. const
  1267. RIL_PARAM_SRS_RECORDTYPE = $00000001; // @paramdefine
  1268. RIL_PARAM_SRS_ITEMCOUNT = $00000002; // @paramdefine
  1269. RIL_PARAM_SRS_SIZE = $00000004; // @paramdefine
  1270. RIL_PARAM_SRS_ALL = $00000007; // @paramdefine
  1271. // -----------------------------------------------------------------------------
  1272. //
  1273. // @doc EXTERNAL
  1274. //
  1275. // @params RILCOSTINFO
  1276. //
  1277. // @comm None
  1278. //
  1279. // -----------------------------------------------------------------------------
  1280. const
  1281. RIL_PARAM_CSTI_CCM = $00000001; // @paramdefine
  1282. RIL_PARAM_CSTI_ACM = $00000002; // @paramdefine
  1283. RIL_PARAM_CSTI_MAXACM = $00000004; // @paramdefine
  1284. RIL_PARAM_CSTI_COSTPERUNIT = $00000008; // @paramdefine
  1285. RIL_PARAM_CSTI_CURRENCY = $00000010; // @paramdefine
  1286. RIL_PARAM_CSTI_ALL = $0000001f; // @paramdefine
  1287. // -----------------------------------------------------------------------------
  1288. //
  1289. // @doc EXTERNAL
  1290. //
  1291. // @params RILSIGNALQUALITY
  1292. //
  1293. // @comm None
  1294. //
  1295. // -----------------------------------------------------------------------------
  1296. const
  1297. RIL_PARAM_SQ_SIGNALSTRENGTH = $00000001; // @paramdefine
  1298. RIL_PARAM_SQ_MINSIGNALSTRENGTH = $00000002; // @paramdefine
  1299. RIL_PARAM_SQ_MAXSIGNALSTRENGTH = $00000004; // @paramdefine
  1300. RIL_PARAM_SQ_BITERRORRATE = $00000008; // @paramdefine
  1301. RIL_PARAM_SQ_LOWSIGNALSTRENGTH = $00000010; // @paramdefine
  1302. RIL_PARAM_SQ_HIGHSIGNALSTRENGTH = $00000020; // @paramdefine
  1303. RIL_PARAM_SQ_ALL = $0000003f; // @paramdefine
  1304. // -----------------------------------------------------------------------------
  1305. //
  1306. // @doc EXTERNAL
  1307. //
  1308. // @params RILCELLTOWERINFO
  1309. //
  1310. // @comm None
  1311. //
  1312. // -----------------------------------------------------------------------------
  1313. const
  1314. RIL_PARAM_CTI_MOBILECOUNTRYCODE = $00000001; // @paramdefine
  1315. RIL_PARAM_CTI_MOBILENETWORKCODE = $00000002; // @paramdefine
  1316. RIL_PARAM_CTI_LOCATIONAREACODE = $00000004; // @paramdefine
  1317. RIL_PARAM_CTI_CELLID = $00000008; // @paramdefine
  1318. RIL_PARAM_CTI_BASESTATIONID = $00000010; // @paramdefine
  1319. RIL_PARAM_CTI_BROADCASTCONTROLCHANNEL = $00000020; // @paramdefine
  1320. RIL_PARAM_CTI_RXLEVEL = $00000040; // @paramdefine
  1321. RIL_PARAM_CTI_RXLEVELFULL = $00000080; // @paramdefine
  1322. RIL_PARAM_CTI_RXLEVELSUB = $00000100; // @paramdefine
  1323. RIL_PARAM_CTI_RXQUALITY = $00000200; // @paramdefine
  1324. RIL_PARAM_CTI_RXQUALITYFULL = $00000400; // @paramdefine
  1325. RIL_PARAM_CTI_RXQUALITYSUB = $00000800; // @paramdefine
  1326. RIL_PARAM_CTI_IDLETIMESLOT = $00001000; // @paramdefine
  1327. RIL_PARAM_CTI_TIMINGADVANCE = $00002000; // @paramdefine
  1328. RIL_PARAM_CTI_GPRSCELLID = $00004000; // @paramdefine
  1329. RIL_PARAM_CTI_GPRSBASESTATIONID = $00008000; // @paramdefine
  1330. RIL_PARAM_CTI_NUMBCCH = $00010000; // @paramdefine
  1331. RIL_PARAM_CTI_NMR = $00020000; // @paramdefine
  1332. RIL_PARAM_CTI_BCCH = $00040000; // @paramdefine
  1333. RIL_PARAM_CTI_ALL = $0007ffff; // @paramdefine
  1334. // -----------------------------------------------------------------------------
  1335. //
  1336. // @doc EXTERNAL
  1337. //
  1338. // @params RILEQUIPMENTSTATE
  1339. //
  1340. // @comm None
  1341. //
  1342. // -----------------------------------------------------------------------------
  1343. const
  1344. RIL_PARAM_EQUIPMENTSTATE_RADIOSUPPORT = $00000001; // @paramdefine
  1345. RIL_PARAM_EQUIPMENTSTATE_EQSTATE = $00000002; // @paramdefine
  1346. RIL_PARAM_EQUIPMENTSTATE_READYSTATE = $00000004; // @paramdefine
  1347. RIL_PARAM_EQUIPMENTSTATE_ALL = $00000007; // @paramdefine
  1348. // -----------------------------------------------------------------------------
  1349. //
  1350. // @doc EXTERNAL
  1351. //
  1352. // @params RILREMOTEPARTYINFO
  1353. //
  1354. // @comm None
  1355. //
  1356. // -----------------------------------------------------------------------------
  1357. const
  1358. RIL_PARAM_RPI_ADDRESS = $00000001; // @paramdefine
  1359. RIL_PARAM_RPI_SUBADDRESS = $00000002; // @paramdefine
  1360. RIL_PARAM_RPI_DESCRIPTION = $00000004; // @paramdefine
  1361. RIL_PARAM_RPI_VALIDITY = $00000008; // @paramdefine
  1362. RIL_PARAM_RPI_ALL = $0000000f; // @paramdefine
  1363. // -----------------------------------------------------------------------------
  1364. //
  1365. // @doc EXTERNAL
  1366. //
  1367. // @params RILCALLWAITINGINFO
  1368. //
  1369. // @comm None
  1370. //
  1371. // -----------------------------------------------------------------------------
  1372. const
  1373. RIL_PARAM_CWI_CALLTYPE = $00000001; // @paramdefine
  1374. RIL_PARAM_CWI_CALLERINFO = $00000002; // @paramdefine
  1375. RIL_PARAM_CWI_ADDRESSID = $00000004; // @paramdefine
  1376. RIL_PARAM_CWI_ALL = $00000007; // @paramdefine
  1377. // -----------------------------------------------------------------------------
  1378. //
  1379. // @doc EXTERNAL
  1380. //
  1381. // @params RILINTERMEDIATESSINFO
  1382. //
  1383. // @comm None
  1384. //
  1385. // -----------------------------------------------------------------------------
  1386. const
  1387. RIL_PARAM_INTSS_NOTIFICATIONCODE = $00000001; // @paramdefine
  1388. RIL_PARAM_INTSS_CUGINDEX = $00000002; // @paramdefine
  1389. RIL_PARAM_INTSS_ALL = $00000003; // @paramdefine
  1390. // -----------------------------------------------------------------------------
  1391. //
  1392. // @doc EXTERNAL
  1393. //
  1394. // @params RILUNSOLICITEDSSINFO
  1395. //
  1396. // @comm None
  1397. //
  1398. // -----------------------------------------------------------------------------
  1399. const
  1400. RIL_PARAM_UNSSS_NOTIFICATIONCODE = $00000001; // @paramdefine
  1401. RIL_PARAM_UNSSS_CUGINDEX = $00000002; // @paramdefine
  1402. RIL_PARAM_UNSSS_ADDRESS = $00000004; // @paramdefine
  1403. RIL_PARAM_UNSSS_SUBADDR = $00000008; // @paramdefine
  1404. RIL_PARAM_UNSSS_ALL = $0000000f; // @paramdefine
  1405. // -----------------------------------------------------------------------------
  1406. //
  1407. // @doc EXTERNAL
  1408. //
  1409. // @params RILRINGINFO
  1410. //
  1411. // @comm None
  1412. //
  1413. // -----------------------------------------------------------------------------
  1414. const
  1415. RIL_PARAM_RI_CALLTYPE = $00000001; // @paramdefine
  1416. RIL_PARAM_RI_SERVICEINFO = $00000002; // @paramdefine
  1417. RIL_PARAM_RI_ADDRESSID = $00000004; // @paramdefine
  1418. RIL_PARAM_RI_ALL = $00000007; // @paramdefine
  1419. // -----------------------------------------------------------------------------
  1420. //
  1421. // @doc EXTERNAL
  1422. //
  1423. // @params RILDIALINFO
  1424. //
  1425. // @comm None
  1426. //
  1427. // -----------------------------------------------------------------------------
  1428. const
  1429. RIL_PARAM_DI_CMDID = $00000001; // @paramdefine
  1430. RIL_PARAM_DI_CALLID = $00000002; // @paramdefine
  1431. RIL_PARAM_DI_ALL = $00000003; // @paramdefine
  1432. // -----------------------------------------------------------------------------
  1433. //
  1434. // @doc EXTERNAL
  1435. //
  1436. // @params RILCONNECTINFO
  1437. //
  1438. // @comm None
  1439. //
  1440. // -----------------------------------------------------------------------------
  1441. const
  1442. RIL_PARAM_CNI_CALLTYPE = $00000001; // @paramdefine
  1443. RIL_PARAM_CNI_BAUDRATE = $00000002; // @paramdefine
  1444. RIL_PARAM_CNI_ALL = $00000003; // @paramdefine
  1445. // -----------------------------------------------------------------------------
  1446. //
  1447. // @doc EXTERNAL
  1448. //
  1449. // @params RILSERVICEINFO
  1450. //
  1451. // @comm None
  1452. //
  1453. // -----------------------------------------------------------------------------
  1454. const
  1455. RIL_PARAM_SVCI_SYNCHRONOUS = $00000001; // @paramdefine
  1456. RIL_PARAM_SVCI_TRANSPARENT = $00000002; // @paramdefine
  1457. RIL_PARAM_SVCI_ALL = $00000003; // @paramdefine
  1458. // -----------------------------------------------------------------------------
  1459. //
  1460. // @doc EXTERNAL
  1461. //
  1462. // @params RILMSGSTORAGEINFO
  1463. //
  1464. // @comm None
  1465. //
  1466. // -----------------------------------------------------------------------------
  1467. const
  1468. RIL_PARAM_MSTI_READLOCATION = $00000001; // @paramdefine
  1469. RIL_PARAM_MSTI_WRITELOCATION = $00000002; // @paramdefine
  1470. RIL_PARAM_MSTI_STORELOCATION = $00000004; // @paramdefine
  1471. RIL_PARAM_MSTI_ALL = $00000007; // @paramdefine
  1472. // -----------------------------------------------------------------------------
  1473. //
  1474. // @doc EXTERNAL
  1475. //
  1476. // @params RILSUPSERVICEDATA
  1477. //
  1478. // @comm None
  1479. //
  1480. // -----------------------------------------------------------------------------
  1481. const
  1482. RIL_PARAM_SSDI_STATUS = $00000001; // @paramdefine
  1483. RIL_PARAM_SSDI_DATA = $00000002; // @paramdefine
  1484. // -----------------------------------------------------------------------------
  1485. //
  1486. // @doc EXTERNAL
  1487. //
  1488. // @params RILCAPSDIAL
  1489. //
  1490. // @comm None
  1491. //
  1492. // -----------------------------------------------------------------------------
  1493. const
  1494. RIL_PARAM_CD_CALLTYPES = $00000001; // @paramdefine
  1495. RIL_PARAM_CD_OPTIONS = $00000002; // @paramdefine
  1496. RIL_PARAM_CD_ALL = $00000003; // @paramdefine
  1497. // -----------------------------------------------------------------------------
  1498. //
  1499. // @doc EXTERNAL
  1500. //
  1501. // @params RILCAPSBEARERSVC
  1502. //
  1503. // @comm None
  1504. //
  1505. // -----------------------------------------------------------------------------
  1506. const
  1507. RIL_PARAM_CBS_SPEEDS1 = $00000001; // @paramdefine
  1508. RIL_PARAM_CBS_SPEEDS2 = $00000002; // @paramdefine
  1509. RIL_PARAM_CBS_SERVICENAMES = $00000004; // @paramdefine
  1510. RIL_PARAM_CBS_CONNECTIONELEMENTS = $00000008; // @paramdefine
  1511. RIL_PARAM_CBS_ALL = $0000000f; // @paramdefine
  1512. // -----------------------------------------------------------------------------
  1513. //
  1514. // @doc EXTERNAL
  1515. //
  1516. // @params RILCAPSRLP
  1517. //
  1518. // @comm None
  1519. //
  1520. // -----------------------------------------------------------------------------
  1521. const
  1522. RIL_PARAM_CRLP_VERSION = $00000001; // @paramdefine
  1523. RIL_PARAM_CRLP_IWSRANGE = $00000002; // @paramdefine
  1524. RIL_PARAM_CRLP_MWSRANGE = $00000004; // @paramdefine
  1525. RIL_PARAM_CRLP_ACKTIMERRANGE = $00000008; // @paramdefine
  1526. RIL_PARAM_CRLP_RETRANSMISSIONATTSRANGE = $00000010; // @paramdefine
  1527. RIL_PARAM_CRLP_RESEQPERIODRANGE = $00000020; // @paramdefine
  1528. RIL_PARAM_CRLP_ALL = $0000003f; // @paramdefine
  1529. // -----------------------------------------------------------------------------
  1530. //
  1531. // @doc EXTERNAL
  1532. //
  1533. // @params RILCAPSMSGMEMORYLOCATIONS
  1534. //
  1535. // @comm None
  1536. //
  1537. // -----------------------------------------------------------------------------
  1538. const
  1539. RIL_PARAM_CMML_READLOCATIONS = $00000001; // @paramdefine
  1540. RIL_PARAM_CMML_WRITELOCATIONS = $00000002; // @paramdefine
  1541. RIL_PARAM_CMML_STORELOCATIONS = $00000004; // @paramdefine
  1542. RIL_PARAM_CMML_ALL = $00000007; // @paramdefine
  1543. // -----------------------------------------------------------------------------
  1544. //
  1545. // @doc EXTERNAL
  1546. //
  1547. // @params RILCAPSLOCKINGPWDLENGTH
  1548. //
  1549. // @comm None
  1550. //
  1551. // -----------------------------------------------------------------------------
  1552. const
  1553. RIL_PARAM_CLPL_FACILITY = $00000001; // @paramdefine
  1554. RIL_PARAM_CLPL_PASSWORDLENGTH = $00000002; // @paramdefine
  1555. RIL_PARAM_CLPL_ALL = $00000003; // @paramdefine
  1556. // -----------------------------------------------------------------------------
  1557. //
  1558. // @doc EXTERNAL
  1559. //
  1560. // @params RILCAPSBARRINGPWDLENGTH
  1561. //
  1562. // @comm None
  1563. //
  1564. // -----------------------------------------------------------------------------
  1565. const
  1566. RIL_PARAM_CBPL_TYPE = $00000001; // @paramdefine
  1567. RIL_PARAM_CBPL_PASSWORDLENGTH = $00000002; // @paramdefine
  1568. RIL_PARAM_CBPL_ALL = $00000003; // @paramdefine
  1569. // -----------------------------------------------------------------------------
  1570. //
  1571. // @doc EXTERNAL
  1572. //
  1573. // @params RILCAPSDATACOMPRESSION
  1574. //
  1575. // @comm None
  1576. //
  1577. // -----------------------------------------------------------------------------
  1578. const
  1579. RIL_PARAM_CDC_DIRECTION = $00000001; // @paramdefine
  1580. RIL_PARAM_CDC_NEGOTIATION = $00000002; // @paramdefine
  1581. RIL_PARAM_CDC_MAXDICT = $00000004; // @paramdefine
  1582. RIL_PARAM_CDC_MAXSTRING = $00000008; // @paramdefine
  1583. RIL_PARAM_CDC_ALL = $0000000f; // @paramdefine
  1584. // -----------------------------------------------------------------------------
  1585. //
  1586. // @doc EXTERNAL
  1587. //
  1588. // @params RILCAPSERRORCORRECTION
  1589. //
  1590. // @comm None
  1591. //
  1592. // -----------------------------------------------------------------------------
  1593. const
  1594. RIL_PARAM_CEC_ORIGINALREQUEST = $00000001; // @paramdefine
  1595. RIL_PARAM_CEC_ORIGINALFALLBACK = $00000002; // @paramdefine
  1596. RIL_PARAM_CEC_ANSWERERFALLBACK = $00000004; // @paramdefine
  1597. RIL_PARAM_CEC_ALL = $00000007; // @paramdefine
  1598. // -----------------------------------------------------------------------------
  1599. //
  1600. // @doc EXTERNAL
  1601. //
  1602. // @params RILCAPSHSCSD
  1603. //
  1604. // @comm None
  1605. //
  1606. // -----------------------------------------------------------------------------
  1607. const
  1608. RIL_PARAM_CHSCSD_MULTISLOTCLASS = $00000001; // @paramdefine
  1609. RIL_PARAM_CHSCSD_MAXRXTIMESLOTS = $00000002; // @paramdefine
  1610. RIL_PARAM_CHSCSD_MAXTXTIMESLOTS = $00000004; // @paramdefine
  1611. RIL_PARAM_CHSCSD_MAXTOTALTIMESLOTS = $00000008; // @paramdefine
  1612. RIL_PARAM_CHSCSD_CHANNELCODINGS = $00000010; // @paramdefine
  1613. RIL_PARAM_CHSCSD_AIRINTERFACEUSERRATES = $00000020; // @paramdefine
  1614. RIL_PARAM_CHSCSD_TOPRXTIMESLOTRANGE = $00000040; // @paramdefine
  1615. RIL_PARAM_CHSCSD_ALL = $0000007f; // @paramdefine
  1616. // -----------------------------------------------------------------------------
  1617. //
  1618. // @doc EXTERNAL
  1619. //
  1620. // @params RILCAPSPBENTRYLENGTH
  1621. //
  1622. // @comm None
  1623. //
  1624. // -----------------------------------------------------------------------------
  1625. const
  1626. RIL_PARAM_CPBEL_MAXADDRESSLENGTH = $00000001; // @paramdefine
  1627. RIL_PARAM_CPBEL_MAXTEXTLENGTH = $00000002; // @paramdefine
  1628. RIL_PARAM_CPBEL_ALL = $00000003; // @paramdefine
  1629. // -----------------------------------------------------------------------------
  1630. //
  1631. // @doc EXTERNAL
  1632. //
  1633. // @params RILGPRSCONTEXT
  1634. //
  1635. // @comm None
  1636. //
  1637. // -----------------------------------------------------------------------------
  1638. const
  1639. RIL_PARAM_GCONT_CONTEXTID = $00000001; // @paramdefine
  1640. RIL_PARAM_GCONT_PROTOCOLTYPE = $00000002; // @paramdefine
  1641. RIL_PARAM_GCONT_ACCESSPOINTNAME = $00000004; // @paramdefine
  1642. RIL_PARAM_GCONT_ADDRESS = $00000008; // @paramdefine
  1643. RIL_PARAM_GCONT_DATACOMPRESSION = $00000010; // @paramdefine
  1644. RIL_PARAM_GCONT_HEADERCOMPRESSION = $00000020; // @paramdefine
  1645. RIL_PARAM_GCONT_PARAMETERLENGTH = $00000040; // @paramdefine
  1646. RIL_PARAM_GCONT_PARAMETERS = $00000080; // @paramdefine
  1647. RIL_PARAM_GCONT_ALL = $000000ff; // @paramdefine
  1648. // -----------------------------------------------------------------------------
  1649. //
  1650. // @doc EXTERNAL
  1651. //
  1652. // @params RILGPRSQOSPROFILE
  1653. //
  1654. // @comm None
  1655. //
  1656. // -----------------------------------------------------------------------------
  1657. const
  1658. RIL_PARAM_GQOSP_CONTEXTID = $00000001; // @paramdefine
  1659. RIL_PARAM_GQOSP_PRECEDENCECLASS = $00000002; // @paramdefine
  1660. RIL_PARAM_GQOSP_DELAYCLASS = $00000004; // @paramdefine
  1661. RIL_PARAM_GQOSP_RELIABILITYCLASS = $00000008; // @paramdefine
  1662. RIL_PARAM_GQOSP_PEAKTHRUCLASS = $00000010; // @paramdefine
  1663. RIL_PARAM_GQOSP_MEANTHRUCLASS = $00000020; // @paramdefine
  1664. RIL_PARAM_GQOSP_ALL = $0000003F; // @paramdefine
  1665. // -----------------------------------------------------------------------------
  1666. //
  1667. // @doc EXTERNAL
  1668. //
  1669. // @params RILNITZINFO
  1670. //
  1671. // @comm None
  1672. //
  1673. // -----------------------------------------------------------------------------
  1674. const
  1675. RIL_PARAM_NITZ_SYSTEMTIME = $00000001; // @paramdefine
  1676. RIL_PARAM_NITZ_TIMEZONEOFFSET = $00000002; // @paramdefine
  1677. RIL_PARAM_NITZ_DAYLIGHTSAVINGOFFSET = $00000004; // @paramdefine
  1678. //
  1679. // Other constants
  1680. //
  1681. // -----------------------------------------------------------------------------
  1682. //
  1683. // @doc EXTERNAL
  1684. //
  1685. // @constants RILNDISSTATUS
  1686. //
  1687. // @comm None
  1688. //
  1689. // -----------------------------------------------------------------------------
  1690. const
  1691. RIL_NDIS_XON = BOOL(true);
  1692. RIL_NDIS_XOFF = BOOL(false);
  1693. // -----------------------------------------------------------------------------
  1694. //
  1695. // @doc EXTERNAL
  1696. //
  1697. // @constants RILGPRSCONTEXTACTIVATED
  1698. //
  1699. // @comm None
  1700. //
  1701. // -----------------------------------------------------------------------------
  1702. const
  1703. RIL_RILGPRSCONTEXTACTIVATED_NWDEACT = $00000001; // @constdefine
  1704. RIL_RILGPRSCONTEXTACTIVATED_NWDETACH = $00000002; // @constdefine
  1705. RIL_RILGPRSCONTEXTACTIVATED_MEDEACT = $00000003; // @constdefine
  1706. RIL_RILGPRSCONTEXTACTIVATED_MEDETACH = $00000004; // @constdefine
  1707. RIL_RILGPRSCONTEXTACTIVATED_MEACT = $00000005; // @constdefine
  1708. RIL_RILGPRSCONTEXTACTIVATED_RADIOOFF = $00000006; // @constdefine
  1709. // -----------------------------------------------------------------------------
  1710. //
  1711. // @doc EXTERNAL
  1712. //
  1713. // @constants Address Type | Different phone number representations
  1714. //
  1715. // @comm None
  1716. //
  1717. // -----------------------------------------------------------------------------
  1718. const
  1719. RIL_ADDRTYPE_UNKNOWN = $00000000; // @constdefine Unknown type
  1720. RIL_ADDRTYPE_INTERNATIONAL = $00000001; // @constdefine International number
  1721. RIL_ADDRTYPE_NATIONAL = $00000002; // @constdefine National number
  1722. RIL_ADDRTYPE_NETWKSPECIFIC = $00000003; // @constdefine Network specific number
  1723. RIL_ADDRTYPE_SUBSCRIBER = $00000004; // @constdefine Subscriber number (protocol-specific)
  1724. RIL_ADDRTYPE_ALPHANUM = $00000005; // @constdefine Alphanumeric address
  1725. RIL_ADDRTYPE_ABBREV = $00000006; // @constdefine Abbreviated number
  1726. // additional CDMA ADDRTYPE definitions
  1727. // See IS-2000.5-A-1 page 509 table 2.7.1.3.2.4-2
  1728. RIL_ADDRTYPE_IP = $00000007; // @constdefine IP Address (RFC 791)
  1729. RIL_ADDRTYPE_EMAIL = $00000008; // @constdefine Internet Email addresss (RFC 822)
  1730. // -----------------------------------------------------------------------------
  1731. //
  1732. // @doc EXTERNAL
  1733. //
  1734. // @constants Numbering Plan | Different numbering shcemes
  1735. //
  1736. // @comm Used for <def RIL_ADDRTYPE_UNKNOWN>, <def RIL_ADDRTYPE_INTERNATIONAL>,
  1737. // and <def RIL_ADDRTYPE_NATIONAL>
  1738. //
  1739. // -----------------------------------------------------------------------------
  1740. const
  1741. RIL_NUMPLAN_UNKNOWN = $00000000; // @constdefine Unknown numbering plan
  1742. RIL_NUMPLAN_TELEPHONE = $00000001; // @constdefine ISDN/telephone numbering plan (E.164/E.163)
  1743. RIL_NUMPLAN_DATA = $00000002; // @constdefine Data numbering plan (X.121)
  1744. RIL_NUMPLAN_TELEX = $00000003; // @constdefine Telex numbering plan
  1745. RIL_NUMPLAN_NATIONAL = $00000004; // @constdefine National numbering plan
  1746. RIL_NUMPLAN_PRIVATE = $00000005; // @constdefine Private numbering plan
  1747. RIL_NUMPLAN_ERMES = $00000006; // @constdefine ERMES numbering plan (ETSI DE/PS 3 01-3)
  1748. // -----------------------------------------------------------------------------
  1749. //
  1750. // @doc EXTERNAL
  1751. //
  1752. // @constants Subaddress Type | Different subaddress types
  1753. //
  1754. // @comm None
  1755. //
  1756. // -----------------------------------------------------------------------------
  1757. const
  1758. RIL_SUBADDRTYPE_NSAP = $00000001; // @constdefine NSAP subaddress (CCITT Recommendation X.213 or ISO 8348 AD2)
  1759. RIL_SUBADDRTYPE_USER = $00000002; // @constdefine User defined subaddress
  1760. // -----------------------------------------------------------------------------
  1761. //
  1762. // @doc EXTERNAL
  1763. //
  1764. // @constants Data Rate | Defines different protocol dependant data rates
  1765. //
  1766. // @comm None
  1767. //
  1768. // -----------------------------------------------------------------------------
  1769. const
  1770. RIL_SPEED_UNKNOWN = $00000000; // @constdefine Unknown speed
  1771. RIL_SPEED_AUTO = $00000001; // @constdefine Automatic selection of speed
  1772. RIL_SPEED_300_V21 = $00000002; // @constdefine 300 bps (V.21)
  1773. RIL_SPEED_300_V110 = $00000003; // @constdefine 300 bps (V.100)
  1774. RIL_SPEED_1200_V22 = $00000004; // @constdefine 1200 bps (V.22)
  1775. RIL_SPEED_1200_75_V23 = $00000005; // @constdefine 1200/75 bps (V.23)
  1776. RIL_SPEED_1200_V110 = $00000006; // @constdefine 1200 bps (V.100)
  1777. RIL_SPEED_1200_V120 = $00000007; // @constdefine 1200 bps (V.120)
  1778. RIL_SPEED_2400_V22BIS = $00000008; // @constdefine 2400 bps (V.22bis)
  1779. RIL_SPEED_2400_V26TER = $00000009; // @constdefine 2400 bps (V.26ter)
  1780. RIL_SPEED_2400_V110 = $0000000a; // @constdefine 2400 bps (V.110 or X.31 flag stuffing)
  1781. RIL_SPEED_2400_V120 = $0000000b; // @constdefine 2400 bps (V.120)
  1782. RIL_SPEED_4800_V32 = $0000000c; // @constdefine 4800 bps (V.32)
  1783. RIL_SPEED_4800_V110 = $0000000d; // @constdefine 4800 bps (V.110 or X.31 flag stuffing)
  1784. RIL_SPEED_4800_V120 = $0000000e; // @constdefine 4800 bps (V.120)
  1785. RIL_SPEED_9600_V32 = $0000000f; // @constdefine 9600 bps (V.32)
  1786. RIL_SPEED_9600_V34 = $00000010; // @constdefine 9600 bps (V.34)
  1787. RIL_SPEED_9600_V110 = $00000011; // @constdefine 9600 bps (V.110 or X.31 flag stuffing)
  1788. RIL_SPEED_9600_V120 = $00000012; // @constdefine 9600 bps (V.120)
  1789. RIL_SPEED_14400_V34 = $00000013; // @constdefine 14400 bps (V.34)
  1790. RIL_SPEED_14400_V110 = $00000014; // @constdefine 14400 bps (V.100 or X.31 flag stuffing)
  1791. RIL_SPEED_14400_V120 = $00000015; // @constdefine 14400 bps (V.120)
  1792. RIL_SPEED_19200_V34 = $00000016; // @constdefine 19200 bps (V.34)
  1793. RIL_SPEED_19200_V110 = $00000017; // @constdefine 19200 bps (V.110 or X.31 flag stuffing)
  1794. RIL_SPEED_19200_V120 = $00000018; // @constdefine 19200 bps (V.120)
  1795. RIL_SPEED_28800_V34 = $00000019; // @constdefine 28800 bps (V.34)
  1796. RIL_SPEED_28800_V110 = $0000001a; // @constdefine 28800 bps (V.110 or X.31 flag stuffing)
  1797. RIL_SPEED_28800_V120 = $0000001b; // @constdefine 28800 bps (V.120)
  1798. RIL_SPEED_38400_V110 = $0000001c; // @constdefine 38400 bps (V.110 or X.31 flag stuffing)
  1799. RIL_SPEED_38400_V120 = $0000001d; // @constdefine 38400 bps (V.120)
  1800. RIL_SPEED_48000_V110 = $0000001e; // @constdefine 48000 bps (V.110 or X.31 flag stuffing)
  1801. RIL_SPEED_48000_V120 = $0000001f; // @constdefine 48000 bps (V.120)
  1802. RIL_SPEED_56000_V110 = $00000020; // @constdefine 56000 bps (V.110 or X.31 flag stuffing)
  1803. RIL_SPEED_56000_V120 = $00000021; // @constdefine 56000 bps (V.120)
  1804. RIL_SPEED_56000_TRANSP = $00000022; // @constdefine 56000 bps (bit transparent)
  1805. RIL_SPEED_64000_TRANSP = $00000023; // @constdefine 64000 bps (bit transparent)
  1806. RIL_SPEED_32000_PIAFS32K = $00000024; // @constdefine 32000 bps (PIAFS32k;
  1807. RIL_SPEED_64000_PIAFS64K = $00000025; // @constdefine 64000 bps (PIAFS64k;
  1808. RIL_SPEED_28800_MULTIMEDIA = $00000026; // @constdefine 28800 bps (MultiMedia;
  1809. RIL_SPEED_32000_MULTIMEDIA = $00000027; // @constdefine 32000 bps (MultiMedia;
  1810. RIL_SPEED_33600_MULTIMEDIA = $00000028; // @constdefine 33600 bps (MultiMedia;
  1811. RIL_SPEED_56000_MULTIMEDIA = $00000029; // @constdefine 56000 bps (MultiMedia;
  1812. RIL_SPEED_64000_MULTIMEDIA = $0000002a; // @constdefine 64000 bps (MultiMedia;
  1813. // -----------------------------------------------------------------------------
  1814. //
  1815. // @doc EXTERNAL
  1816. //
  1817. // @constants Telephony Service | Telephony service types
  1818. //
  1819. // @comm None
  1820. //
  1821. // -----------------------------------------------------------------------------
  1822. const
  1823. RIL_SERVICE_UNKNOWN = $00000000; // @constdefine Unknown service
  1824. RIL_SERVICE_MODEM_ASYNC = $00000001; // @constdefine Asynchronous modem
  1825. RIL_SERVICE_MODEM_SYNC = $00000002; // @constdefine Synchronous modem
  1826. RIL_SERVICE_PADACCESS_ASYNC = $00000003; // @constdefine PAD Access (asynchronous)
  1827. RIL_SERVICE_PACKETACCESS_SYNC = $00000004; // @constdefine Packet Access (synchronous)
  1828. RIL_SERVICE_VOICE = $00000005; // @constdefine Voice
  1829. RIL_SERVICE_FAX = $00000006; // @constdefine Fax
  1830. // -----------------------------------------------------------------------------
  1831. //
  1832. // @doc EXTERNAL
  1833. //
  1834. // @constants ITC | Information trasnfer capability types
  1835. //
  1836. // @comm None
  1837. //
  1838. // -----------------------------------------------------------------------------
  1839. const
  1840. RIL_ITC_31KHZ = $00000001; // @constdefine 3.1 kHz
  1841. RIL_ITC_UDI = $00000002; // @constdefine Unrestricted Digital Information
  1842. // -----------------------------------------------------------------------------
  1843. //
  1844. // @doc EXTERNAL
  1845. //
  1846. // @constants Operator Name | Operator name formats
  1847. //
  1848. // @comm None
  1849. //
  1850. // -----------------------------------------------------------------------------
  1851. const
  1852. RIL_OPFORMAT_LONG = $00000001; // @constdefine Long alphanumeric name
  1853. RIL_OPFORMAT_SHORT = $00000002; // @constdefine Short alphanumeric name
  1854. RIL_OPFORMAT_NUM = $00000003; // @constdefine Numeric name
  1855. // -----------------------------------------------------------------------------
  1856. //
  1857. // @doc EXTERNAL
  1858. //
  1859. // @constants Operator Status | Operator status values
  1860. //
  1861. // @comm None
  1862. //
  1863. // -----------------------------------------------------------------------------
  1864. const
  1865. RIL_OPSTATUS_UNKNOWN = $00000000; // @constdefine Unknown status
  1866. RIL_OPSTATUS_AVAILABLE = $00000001; // @constdefine Operator is available
  1867. RIL_OPSTATUS_CURRENT = $00000002; // @constdefine Operator is current
  1868. RIL_OPSTATUS_FORBIDDEN = $00000003; // @constdefine Operator is forbidden
  1869. // -----------------------------------------------------------------------------
  1870. //
  1871. // @doc EXTERNAL
  1872. //
  1873. // @constants Operator Selection | Operator selection modes
  1874. //
  1875. // @comm None
  1876. //
  1877. // -----------------------------------------------------------------------------
  1878. const
  1879. RIL_OPSELMODE_AUTOMATIC = $00000001; // @constdefine Automatic operator selection
  1880. RIL_OPSELMODE_MANUAL = $00000002; // @constdefine Manual operator selection
  1881. RIL_OPSELMODE_MANUALAUTOMATIC = $00000003; // @constdefine Manual/automatic operator selection
  1882. // (if manual selection fails, automatic selection mode is entered)
  1883. // -----------------------------------------------------------------------------
  1884. //
  1885. // @doc EXTERNAL
  1886. //
  1887. // @constants Operator Special | Special preferred operator index value
  1888. //
  1889. // @comm None
  1890. //
  1891. // -----------------------------------------------------------------------------
  1892. const
  1893. RIL_PREFOPINDEX_FIRSTAVAILABLE = $ffffffff; // @constdefine Used to specify that a preferred operator is
  1894. // to be stored at the first available index
  1895. // -----------------------------------------------------------------------------
  1896. //
  1897. // @doc EXTERNAL
  1898. //
  1899. // @constants Information Class | Telephony information classes
  1900. //
  1901. // @comm None
  1902. //
  1903. // -----------------------------------------------------------------------------
  1904. const
  1905. RIL_INFOCLASS_NONE = $00000000; // @constdefine None
  1906. RIL_INFOCLASS_VOICE = $00000001; // @constdefine Voice
  1907. RIL_INFOCLASS_DATA = $00000002; // @constdefine Data
  1908. RIL_INFOCLASS_FAX = $00000004; // @constdefine Fax
  1909. RIL_INFOCLASS_SMS = $00000008; // @constdefine SMS
  1910. RIL_INFOCLASS_DATACIRCUITSYNC = $00000010; // @constdefine Data Circuit synchronous
  1911. RIL_INFOCLASS_DATACIRCUITASYNC = $00000020; // @constdefine Data Circuit asynchronous
  1912. RIL_INFOCLASS_PACKETACCESS = $00000040; // @constdefine Dedicated Packet Access
  1913. RIL_INFOCLASS_PADACCESS = $00000080; // @constdefine Dedicated PAD Access
  1914. RIL_INFOCLASS_ALL = $000000ff; // @constdefine All information classes
  1915. // -----------------------------------------------------------------------------
  1916. //
  1917. // @doc EXTERNAL
  1918. //
  1919. // @constants Supplemental Activation | Supplementary service status values
  1920. //
  1921. // @comm None
  1922. //
  1923. // -----------------------------------------------------------------------------
  1924. const
  1925. RIL_SVCSTAT_UNKNOWN = $00000000; // @constdefine Unknown status
  1926. RIL_SVCSTAT_DISABLED = $00000001; // @constdefine Service is disabled
  1927. RIL_SVCSTAT_ENABLED = $00000002; // @constdefine Service is enabled
  1928. RIL_SVCSTAT_DEFAULT = $00000003; // @constdefine Default status
  1929. // -----------------------------------------------------------------------------
  1930. //
  1931. // @doc EXTERNAL
  1932. //
  1933. // @constants Supplementary Service Provisioning | Supplementary service provisioning values
  1934. //
  1935. // @comm None
  1936. //
  1937. // -----------------------------------------------------------------------------
  1938. const
  1939. RIL_SVCPROV_UNKNOWN = $00000000; // @constdefine Unknown provisioning
  1940. RIL_SVCPROV_NOTPROVISIONED = $00000001; // @constdefine Service isn't provisioned
  1941. RIL_SVCPROV_PROVISIONED = $00000002; // @constdefine Service is provisioned
  1942. RIL_SVCPROV_TEMPMODERESTRICTED = $00000003; // @constdefine Service temporary mode is restricted
  1943. RIL_SVCPROV_TEMPMODEALLOWED = $00000004; // @constdefine Service temporary mode is allowed
  1944. // -----------------------------------------------------------------------------
  1945. //
  1946. // @doc EXTERNAL
  1947. //
  1948. // @constants CUG Special | Closed User Group special index value
  1949. //
  1950. // @comm None
  1951. //
  1952. // -----------------------------------------------------------------------------
  1953. const
  1954. RIL_CUGINDEX_NONE = $ffffffff; // @constdefine Used to identify the absence of CUG index
  1955. // -----------------------------------------------------------------------------
  1956. //
  1957. // @doc EXTERNAL
  1958. //
  1959. // @constants CUG Info Level | Closed User Group information levels
  1960. //
  1961. // @comm This feature is not used and is untested.
  1962. //
  1963. // -----------------------------------------------------------------------------
  1964. const
  1965. RIL_CUGINFO_NONE = $00000000; // @constdefine TBD
  1966. RIL_CUGINFO_SUPPRESSOA = $00000001; // @constdefine TBD
  1967. RIL_CUGINFO_SUPRESSPREF = $00000002; // @constdefine TBD
  1968. RIL_CUGINFO_SUPPRESSOAANDPREF = $00000003; // @constdefine TBD
  1969. // -----------------------------------------------------------------------------
  1970. //
  1971. // @doc EXTERNAL
  1972. //
  1973. // @constants Forwarding Reason | Forwarding reasons
  1974. //
  1975. // @comm None
  1976. //
  1977. // -----------------------------------------------------------------------------
  1978. const
  1979. RIL_FWDREASON_UNCONDITIONAL = $00000001; // @constdefine Always forward
  1980. RIL_FWDREASON_MOBILEBUSY = $00000002; // @constdefine Forward when device busy
  1981. RIL_FWDREASON_NOREPLY = $00000003; // @constdefine Forward when no answer
  1982. RIL_FWDREASON_UNREACHABLE = $00000004; // @constdefine Forward device out of service
  1983. RIL_FWDREASON_ALLFORWARDING = $00000005; // @constdefine TBD
  1984. RIL_FWDREASON_ALLCONDITIONAL = $00000006; // @constdefine TBD
  1985. // -----------------------------------------------------------------------------
  1986. //
  1987. // @doc EXTERNAL
  1988. //
  1989. // @constants Call Type | Call types
  1990. //
  1991. // @comm None
  1992. //
  1993. // -----------------------------------------------------------------------------
  1994. const
  1995. RIL_CALLTYPE_UNKNOWN = $00000000; // @constdefine Unknown
  1996. RIL_CALLTYPE_VOICE = $00000001; // @constdefine Voice call
  1997. RIL_CALLTYPE_DATA = $00000002; // @constdefine Data call
  1998. RIL_CALLTYPE_FAX = $00000003; // @constdefine Fax call
  1999. RIL_CALLTYPE_PTT = $00000004; // @constdefine Push-To-Talk call
  2000. RIL_CALLTYPE_VT = $00000005; // @constdefine Video Telephony call
  2001. RIL_CALLTYPE_LAST = RIL_CALLTYPE_VT; // @constdefine last valid call
  2002. // -----------------------------------------------------------------------------
  2003. //
  2004. // @doc EXTERNAL
  2005. //
  2006. // @constants Dialing Option | Dialing options
  2007. //
  2008. // @comm None
  2009. //
  2010. // -----------------------------------------------------------------------------
  2011. const
  2012. RIL_DIALOPT_NONE = $00000000; // @constdefine No options
  2013. RIL_DIALOPT_RESTRICTID = $00000001; // @constdefine Restrict CLI presentation
  2014. RIL_DIALOPT_PRESENTID = $00000002; // @constdefine Allow CLI presentation
  2015. RIL_DIALOPT_CLOSEDGROUP = $00000004; // @constdefine Closed User Group dialing
  2016. RIL_DIALOPT_ALL = $00000007; // @constdefine All options
  2017. // -----------------------------------------------------------------------------
  2018. //
  2019. // @doc EXTERNAL
  2020. //
  2021. // @constants Call Option | Call options defaults
  2022. //
  2023. // @comm None
  2024. //
  2025. // -----------------------------------------------------------------------------
  2026. const
  2027. RIL_DIALTONEWAIT_DEFAULT = $00000000; // @constdefine TBD
  2028. RIL_DIALTIMEOUT_DEFAULT = $00000000; // @constdefine TBD
  2029. RIL_COMMAPAUSE_DEFAULT = $00000000; // @constdefine TBD
  2030. RIL_DISCONNECTTIMEOUT_DEFAULT = $00000000; // @constdefine TBD
  2031. // -----------------------------------------------------------------------------
  2032. //
  2033. // @doc EXTERNAL
  2034. //
  2035. // @constants DTMF Duration | DTMF tone duration default
  2036. //
  2037. // @comm None
  2038. //
  2039. // -----------------------------------------------------------------------------
  2040. const
  2041. RIL_DTMFDURATION_DEFAULT = $00000000; // @constdefine TBD
  2042. // -----------------------------------------------------------------------------
  2043. //
  2044. // @doc EXTERNAL
  2045. //
  2046. // @constants Number of Calls to Track | Number of Calls to Track
  2047. //
  2048. // @comm None
  2049. //
  2050. // -----------------------------------------------------------------------------
  2051. const
  2052. RIL_MAX_TRACKED_CALL_ID = 10;
  2053. // -----------------------------------------------------------------------------
  2054. //
  2055. // @doc EXTERNAL
  2056. //
  2057. // @constants Call Direction | Call direction
  2058. //
  2059. // @comm None
  2060. //
  2061. // -----------------------------------------------------------------------------
  2062. const
  2063. RIL_CALLDIR_INCOMING = $00000001; // @constdefine Incoming call
  2064. RIL_CALLDIR_OUTGOING = $00000002; // @constdefine Outgoing call
  2065. // -----------------------------------------------------------------------------
  2066. //
  2067. // @doc EXTERNAL
  2068. //
  2069. // @constants Call Status | Call status values
  2070. //
  2071. // @comm None
  2072. //
  2073. // -----------------------------------------------------------------------------
  2074. const
  2075. RIL_CALLSTAT_ACTIVE = $00000001; // @constdefine Active call
  2076. RIL_CALLSTAT_ONHOLD = $00000002; // @constdefine Call on hold
  2077. RIL_CALLSTAT_DIALING = $00000003; // @constdefine In the process of dialing
  2078. RIL_CALLSTAT_ALERTING = $00000004; // @constdefine In the process of ringing
  2079. RIL_CALLSTAT_INCOMING = $00000005; // @constdefine Incoming (unanswered) call
  2080. RIL_CALLSTAT_WAITING = $00000006; // @constdefine Incoming call waiting call
  2081. // -----------------------------------------------------------------------------
  2082. //
  2083. // @doc EXTERNAL
  2084. //
  2085. // @constants CPI Status | CPI status values
  2086. //
  2087. // @comm None
  2088. //
  2089. // -----------------------------------------------------------------------------
  2090. const
  2091. RIL_CPISTAT_UNKNOWN = $00000000; // @constdefine
  2092. RIL_CPISTAT_NEW_OUTGOING = $00000001; // @constdefine
  2093. RIL_CPISTAT_NEW_INCOMING = $00000002; // @constdefine
  2094. RIL_CPISTAT_CONNECTED = $00000003; // @constdefine
  2095. RIL_CPISTAT_DISCONNECTED = $00000004; // @constdefine
  2096. RIL_CPISTAT_ONHOLD = $00000005; // @constdefine
  2097. // -----------------------------------------------------------------------------
  2098. //
  2099. // @doc EXTERNAL
  2100. //
  2101. // @constants Intermediate Supplementary Service | Intermediate Supplementary Service Codes
  2102. //
  2103. // @comm None
  2104. //
  2105. // -----------------------------------------------------------------------------
  2106. const
  2107. RIL_INTSSCODE_UNCONDITIONALCFACTIVE = $00000000; // @constdefine Unconditional call forwarding is active
  2108. RIL_INTSSCODE_SOMECONDITIONALCFACTIVE = $00000001; // @constdefine Some of the conditional call forwarding settings are active
  2109. RIL_INTSSCODE_CALLWASFORWARDED = $00000002; // @constdefine Call has been forwarded
  2110. RIL_INTSSCODE_CALLISWAITING = $00000003; // @constdefine Call is waiting
  2111. RIL_INTSSCODE_CUGCALL = $00000004; // @constdefine This is a CUG call (also <index> present;
  2112. RIL_INTSSCODE_OUTGOINGCALLSBARRED = $00000005; // @constdefine Outgoing calls are barred
  2113. RIL_INTSSCODE_INCOMINGCALLSBARRED = $00000006; // @constdefine Incoming calls are barred
  2114. RIL_INTSSCODE_CLIRSUPPRESSREJECT = $00000007; // @constdefine CLIR suppression rejected
  2115. RIL_INTSSCODE_CALLWASDEFLECTED = $00000008; // @constdefine Call has been deflected
  2116. RIL_INTSSCODE_MAX = RIL_INTSSCODE_CALLWASDEFLECTED; // @constdefine Maximum valid value
  2117. // -----------------------------------------------------------------------------
  2118. //
  2119. // @doc EXTERNAL
  2120. //
  2121. // @constants Unsolicited Supplementary Service | Unsolicited Supplementary Service Codes
  2122. //
  2123. // @comm None
  2124. //
  2125. // -----------------------------------------------------------------------------
  2126. const
  2127. RIL_UNSSSCODE_FORWARDEDCALL = $00000000; // @constdefine This is a forwarded call (MT call setup;
  2128. RIL_UNSSSCODE_CUGCALL = $00000001; // @constdefine This is a CUG call (also <index> present; (MT call setup;
  2129. RIL_UNSSSCODE_CALLPUTONHOLD = $00000002; // @constdefine Call has been put on hold (during a voice call;
  2130. RIL_UNSSSCODE_CALLRETRIEVED = $00000003; // @constdefine Call has been retrieved (during a voice call;
  2131. RIL_UNSSSCODE_ENTEREDMULTIPARTY = $00000004; // @constdefine Multiparty call entered (during a voice call;
  2132. RIL_UNSSSCODE_HELDCALLRELEASED = $00000005; // @constdefine Call on hold has been released (this is not a SS notification; (during a voice call;
  2133. RIL_UNSSSCODE_FORWARDCHECKSS = $00000006; // @constdefine Forward check SS message received (can be received whenever;
  2134. 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;
  2135. 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;
  2136. RIL_UNSSSCODE_DEFLECTEDCALL = $00000009; // @constdefine This is a deflected call (MT call setup;
  2137. RIL_UNSSSCODE_ADDITIONALINCOMINGCF = $0000000a; // @constdefine Additional incoming call forwarded
  2138. RIL_UNSSSCODE_MAX = RIL_UNSSSCODE_ADDITIONALINCOMINGCF; // @constdefine Maximum valid value
  2139. // -----------------------------------------------------------------------------
  2140. //
  2141. // @doc EXTERNAL
  2142. //
  2143. // @constants Call Multiparty | Call multiparty status values
  2144. //
  2145. // @comm None
  2146. //
  2147. // -----------------------------------------------------------------------------
  2148. const
  2149. RIL_CALL_SINGLEPARTY = $00000000; // @constdefine Not in a conference
  2150. RIL_CALL_MULTIPARTY = $00000001; // @constdefine Participating in a conference
  2151. // -----------------------------------------------------------------------------
  2152. //
  2153. // @doc EXTERNAL
  2154. //
  2155. // @constants Call Management | Call management commands
  2156. //
  2157. // @comm None
  2158. //
  2159. // -----------------------------------------------------------------------------
  2160. const
  2161. RIL_CALLCMD_RELEASEHELD = $00000001; // @constdefine Release all held calls, send "busy" to waiting call
  2162. RIL_CALLCMD_RELEASEACTIVE_ACCEPTHELD = $00000002; // @constdefine Release all active calls, accept waiting/held call
  2163. RIL_CALLCMD_RELEASECALL = $00000003; // @constdefine Release the specified call
  2164. RIL_CALLCMD_HOLDACTIVE_ACCEPTHELD = $00000004; // @constdefine Hold all active calls, accept waiting/held call
  2165. RIL_CALLCMD_HOLDALLBUTONE = $00000005; // @constdefine Hold all active calls, except for the specified call
  2166. RIL_CALLCMD_ADDHELDTOCONF = $00000006; // @constdefine Add all held calls to a conference
  2167. RIL_CALLCMD_ADDHELDTOCONF_DISCONNECT = $00000007; // @constdefine Connect held calls to a conference, disconnect the user
  2168. RIL_CALLCMD_INVOKECCBS = $00000008; // @constdefine Invokes completion of calls to busy subscribers
  2169. // -----------------------------------------------------------------------------
  2170. //
  2171. // @doc EXTERNAL
  2172. //
  2173. // @constants Line Status | Line status values
  2174. //
  2175. // @comm None
  2176. //
  2177. // -----------------------------------------------------------------------------
  2178. const
  2179. RIL_LINESTAT_UNKNOWN = $00000000; // @constdefine Unknown
  2180. RIL_LINESTAT_READY = $00000001; // @constdefine Line is ready
  2181. RIL_LINESTAT_UNAVAILABLE = $00000002; // @constdefine Line is unavailable
  2182. RIL_LINESTAT_RINGING = $00000003; // @constdefine Incoming call on the line
  2183. RIL_LINESTAT_CALLINPROGRESS = $00000004; // @constdefine Call in progress
  2184. RIL_LINESTAT_ASLEEP = $00000005; // @constdefine Line is asleep
  2185. RIL_LINESTAT_CONNECTING = $00000006; // @constdefine The phone is connecting to a call, but the call is not in progress yet
  2186. // -----------------------------------------------------------------------------
  2187. //
  2188. // @doc EXTERNAL
  2189. //
  2190. // @constants Line Registration | Line registration status values
  2191. //
  2192. // @comm None
  2193. //
  2194. // -----------------------------------------------------------------------------
  2195. const
  2196. RIL_REGSTAT_UNKNOWN = $00000000; // @constdefine Registration unknown
  2197. RIL_REGSTAT_UNREGISTERED = $00000001; // @constdefine Unregistered
  2198. RIL_REGSTAT_HOME = $00000002; // @constdefine Registered on home network
  2199. RIL_REGSTAT_ATTEMPTING = $00000003; // @constdefine Attempting to register
  2200. RIL_REGSTAT_DENIED = $00000004; // @constdefine Registration denied
  2201. RIL_REGSTAT_ROAMING = $00000005; // @constdefine Registered on roaming network
  2202. // -----------------------------------------------------------------------------
  2203. //
  2204. // @doc EXTERNAL
  2205. //
  2206. // @constants Audio Device | Audio devices
  2207. //
  2208. // @comm None
  2209. //
  2210. // -----------------------------------------------------------------------------
  2211. const
  2212. RIL_AUDIO_NONE = $00000000; // @constdefine No audio devices
  2213. RIL_AUDIO_HANDSET = $00000001; // @constdefine Handset
  2214. RIL_AUDIO_SPEAKERPHONE = $00000002; // @constdefine Speakerphone
  2215. RIL_AUDIO_HEADSET = $00000003; // @constdefine Headset
  2216. RIL_AUDIO_CARKIT = $00000004; // @constdefine Carkit
  2217. // -----------------------------------------------------------------------------
  2218. //
  2219. // @doc EXTERNAL
  2220. //
  2221. // @constants HSCSD Traffic Channel | HSCSD traffic channel codings
  2222. //
  2223. // @comm None
  2224. //
  2225. // -----------------------------------------------------------------------------
  2226. const
  2227. RIL_HSCSDCODING_UNKNOWN = $00000000; // @constdefine Unknown channel coding
  2228. RIL_HSCSDCODING_4800_FULLRATE = $00000001; // @constdefine 4800 bits per second
  2229. RIL_HSCSDCODING_9600_FULLRATE = $00000002; // @constdefine 9600 bits per second
  2230. RIL_HSCSDCODING_14400_FULLRATE = $00000004; // @constdefine 14400 bits per second
  2231. RIL_HSCSDCODING_ALL = $00000007; // @constdefine All channel codings valid
  2232. // -----------------------------------------------------------------------------
  2233. //
  2234. // @doc EXTERNAL
  2235. //
  2236. // @constants HSCSD Air Interface | HSCSD air interface user rates
  2237. //
  2238. // @comm None
  2239. //
  2240. // -----------------------------------------------------------------------------
  2241. const
  2242. RIL_HSCSDAIURATE_UNKNOWN = $00000000; // @constdefine Air interface rate
  2243. RIL_HSCSDAIURATE_9600 = $00000001; // @constdefine 9600 bits per second
  2244. RIL_HSCSDAIURATE_14400 = $00000002; // @constdefine 14400 bits per second
  2245. RIL_HSCSDAIURATE_19200 = $00000003; // @constdefine 19200 bits per second
  2246. RIL_HSCSDAIURATE_28800 = $00000004; // @constdefine 28800 bits per second
  2247. RIL_HSCSDAIURATE_38400 = $00000005; // @constdefine 38400 bits per second
  2248. RIL_HSCSDAIURATE_43200 = $00000006; // @constdefine 43200 bits per second
  2249. RIL_HSCSDAIURATE_57600 = $00000007; // @constdefine 57600 bits per second
  2250. RIL_HSCSDAIURATE_DEFAULT = $ffffffff; // @constdefine A special value that indicates the radio stack
  2251. // should calculate the appropriate number of
  2252. // receive timeslots based on other paramaters
  2253. // -----------------------------------------------------------------------------
  2254. //
  2255. // @doc EXTERNAL
  2256. //
  2257. // @constants HSCSD Special | Special HSCSD receive timeslots value
  2258. //
  2259. // @comm None
  2260. //
  2261. // -----------------------------------------------------------------------------
  2262. const
  2263. RIL_HSCSDTIMESLOTS_DEFAULT = $00000000; // @constdefine Indicates that the radio stack should
  2264. // calculate apropriate number of timeslots
  2265. RIL_HSCSDTIMESLOTSLIMIT_NONE = $00000000; // @constdefine Indicates that number of receive numeslots will not
  2266. // be altered during the next non-transparent HSCSD call
  2267. // -----------------------------------------------------------------------------
  2268. //
  2269. // @doc EXTERNAL
  2270. //
  2271. // @constants Data Compression | Data compression directions
  2272. //
  2273. // @comm None
  2274. //
  2275. // -----------------------------------------------------------------------------
  2276. const
  2277. RIL_DATACOMPDIR_NONE = $00000001; // @constdefine No data compression
  2278. RIL_DATACOMPDIR_TRANSMIT = $00000002; // @constdefine Data compession when sending
  2279. RIL_DATACOMPDIR_RECEIVE = $00000004; // @constdefine Data compession when receiving
  2280. RIL_DATACOMPDIR_BOTH = $00000008; // @constdefine Bi-directional data compession
  2281. // -----------------------------------------------------------------------------
  2282. //
  2283. // @doc EXTERNAL
  2284. //
  2285. // @constants Data Compression Negotiation | Data compression negotiation options
  2286. //
  2287. // @comm None
  2288. //
  2289. // -----------------------------------------------------------------------------
  2290. const
  2291. RIL_DATACOMP_OPTIONAL = $00000001; // @constdefine Data compression optional
  2292. RIL_DATACOMP_REQUIRED = $00000002; // @constdefine Terminal will disconnect if no negotiation
  2293. // -----------------------------------------------------------------------------
  2294. //
  2295. // @doc EXTERNAL
  2296. //
  2297. // @constants Error Correction | Error correction modes
  2298. //
  2299. // @comm None
  2300. //
  2301. // -----------------------------------------------------------------------------
  2302. const
  2303. RIL_ECMODE_UNKNOWN = $00000000; // @constdefine TBD
  2304. RIL_ECMODE_DIRECT = $00000001; // @constdefine TBD
  2305. RIL_ECMODE_BUFFERED = $00000002; // @constdefine TBD
  2306. RIL_ECMODE_NODETECT = $00000004; // @constdefine TBD
  2307. RIL_ECMODE_DETECT = $00000008; // @constdefine TBD
  2308. RIL_ECMODE_ALTERNATIVE = $00000010; // @constdefine TBD
  2309. RIL_ECMODE_OPTIONAL_USEBUFFERED = $00000020; // @constdefine TBD
  2310. RIL_ECMODE_OPTIONAL_USEDIRECT = $00000040; // @constdefine TBD
  2311. RIL_ECMODE_REQUIRED = $00000080; // @constdefine TBD
  2312. RIL_ECMODE_REQUIRED_LAPMONLY = $00000100; // @constdefine TBD
  2313. RIL_ECMODE_REQUIRED_ALTERNATIVEONLY = $00000200; // @constdefine TBD
  2314. // -----------------------------------------------------------------------------
  2315. //
  2316. // @doc EXTERNAL
  2317. //
  2318. // @constants Bearer Service | Bearer service names
  2319. //
  2320. // @comm None
  2321. //
  2322. // -----------------------------------------------------------------------------
  2323. const
  2324. RIL_BSVCNAME_UNKNOWN = $00000000; // @constdefine TBD
  2325. RIL_BSVCNAME_DATACIRCUIT_ASYNC_UDI_MODEM = $00000001; // @constdefine TBD
  2326. RIL_BSVCNAME_DATACIRCUIT_SYNC_UDI_MODEM = $00000002; // @constdefine TBD
  2327. RIL_BSVCNAME_PADACCESS_ASYNC_UDI = $00000003; // @constdefine TBD
  2328. RIL_BSVCNAME_PACKETACCESS_SYNC_UDI = $00000004; // @constdefine TBD
  2329. RIL_BSVCNAME_DATACIRCUIT_ASYNC_RDI = $00000005; // @constdefine TBD
  2330. RIL_BSVCNAME_DATACIRCUIT_SYNC_RDI = $00000006; // @constdefine TBD
  2331. RIL_BSVCNAME_PADACCESS_ASYNC_RDI = $00000007; // @constdefine TBD
  2332. RIL_BSVCNAME_PACKETACCESS_SYNC_RDI = $00000008; // @constdefine TBD
  2333. // -----------------------------------------------------------------------------
  2334. //
  2335. // @doc EXTERNAL
  2336. //
  2337. // @constants Bearer Service CE | Bearer service connection elements
  2338. //
  2339. // @comm None
  2340. //
  2341. // -----------------------------------------------------------------------------
  2342. const
  2343. RIL_BSVCCE_UNKNOWN = $00000000; // @constdefine Bearer service unknown
  2344. RIL_BSVCCE_TRANSPARENT = $00000001; // @constdefine Link layer correction enabled
  2345. RIL_BSVCCE_NONTRANSPARENT = $00000002; // @constdefine No link layer correction present
  2346. RIL_BSVCCE_BOTH_TRANSPARENT = $00000003; // @constdefine Both available, transparent preferred
  2347. RIL_BSVCCE_BOTH_NONTRANSPARENT = $00000004; // @constdefine Both available, non-transparent preferred
  2348. // -----------------------------------------------------------------------------
  2349. //
  2350. // @doc EXTERNAL
  2351. //
  2352. // @constants Message Service | Messaging service types
  2353. //
  2354. // @comm None
  2355. //
  2356. // -----------------------------------------------------------------------------
  2357. const
  2358. RIL_MSGSVCTYPE_UNKNOWN = $00000000; // @constdefine Unknown
  2359. RIL_MSGSVCTYPE_PHASE2 = $00000001; // @constdefine GSM 07.05 Phase 2 ver. 4.7.0 messaging service
  2360. RIL_MSGSVCTYPE_PHASE2PLUS = $00000002; // @constdefine GSM 07.05 Pahse 2+ messaging service
  2361. // -----------------------------------------------------------------------------
  2362. //
  2363. // @doc EXTERNAL
  2364. //
  2365. // @constants Message Storage | Message storage locations
  2366. //
  2367. // @comm None
  2368. //
  2369. // -----------------------------------------------------------------------------
  2370. const
  2371. RIL_MSGLOC_UNKNOWN = $00000000; // @constdefine Unknown
  2372. RIL_MSGLOC_BROADCAST = $00000001; // @constdefine Broadcast message storage location
  2373. RIL_MSGLOC_SIM = $00000002; // @constdefine SIM storage location
  2374. RIL_MSGLOC_STATUSREPORT = $00000003; // @constdefine Status report storage location
  2375. // -----------------------------------------------------------------------------
  2376. //
  2377. // @doc EXTERNAL
  2378. //
  2379. // @constants IS637 Teleservices | Message Teleservice types
  2380. //
  2381. // @comm TIA/EIA-41-D Supported Teleservices
  2382. //
  2383. // -----------------------------------------------------------------------------
  2384. const
  2385. RIL_MSGTELESERVICE_PAGING = $00000001; // @constdefine Wireless Paging Teleservice CPT-95 //@ Only callback number
  2386. RIL_MSGTELESERVICE_MESSAGING = $00000002; // @constdefine Wireless Messaging Teleservice CMT-95 //@ Text Message
  2387. RIL_MSGTELESERVICE_VOICEMAIL = $00000003; // @constdefine Voice Mail Notification VMN-95 //@ Voice Mail
  2388. RIL_MSGTELESERVICE_WAP = $00000004; // @constdefine Wireless Application Protocol WAP //@ To be investigated (Test message??)
  2389. // -----------------------------------------------------------------------------
  2390. //
  2391. // @doc EXTERNAL
  2392. //
  2393. // @constants Message Privacy Class | Message Privacy types
  2394. //
  2395. // @comm IS-637 Message Privacy Classes
  2396. //
  2397. // -----------------------------------------------------------------------------
  2398. const
  2399. RIL_MSGPRIVACYCLASS_NOTRESTRICTED = $00000001; // @constdefine Not restricted (Level 0)
  2400. RIL_MSGPRIVACYCLASS_RESTRICTED = $00000002; // @constdefine Restricted (Level 1)
  2401. RIL_MSGPRIVACYCLASS_CONFIDENTIAL = $00000003; // @constdefine Confidential (Level 2)
  2402. RIL_MSGPRIVACYCLASS_SECRET = $00000004; // @constdefine Secret (Level 3)
  2403. // -----------------------------------------------------------------------------
  2404. //
  2405. // @doc EXTERNAL
  2406. //
  2407. // @constants Message Priority Class | Message Priority types
  2408. //
  2409. // @comm IS-637 Message Priority Classes
  2410. //
  2411. // -----------------------------------------------------------------------------
  2412. const
  2413. RIL_MSGPRIORITY_NORMAL = $00000001; // @constdefine Message Urgency Normal
  2414. RIL_MSGPRIORITY_HIGH = $00000002; // @constdefine Message Urgency Interactive (S N/A)
  2415. RIL_MSGPRIORITY_URGENT = $00000003; // @constdefine Message Urgency Urgent
  2416. RIL_MSGPRIORITY_EMERGENCY = $00000004; // @constdefine Message Urgency Emergency (S N/A)
  2417. // -----------------------------------------------------------------------------
  2418. //
  2419. // @doc EXTERNAL
  2420. //
  2421. // @constants Status Message Class | Message Statustypes
  2422. //
  2423. // @comm IS-637 Message Priority Classes
  2424. //
  2425. // -----------------------------------------------------------------------------
  2426. const
  2427. RIL_MSGSTATUSTYPE_BEARERACK = $00000001; // @constdefine The Acknowledgement Message is a Bearer Ack
  2428. RIL_MSGSTATUSTYPE_DELIVERYACK = $00000002; // @constdefine The Acknowledgement Message is a Delivery Ack
  2429. RIL_MSGSTATUSTYPE_USERACK = $00000003; // @constdefine The Acknowledgement Message is a User Ack
  2430. // -----------------------------------------------------------------------------
  2431. //
  2432. // @doc EXTERNAL
  2433. //
  2434. // @constants Message Display Modes | Message Display Modes
  2435. //
  2436. // @comm Message Display Modes - Determines if the message is shown immediately or in the inbox (Ask Carrier if this feature is implemented)
  2437. //
  2438. // -----------------------------------------------------------------------------
  2439. const
  2440. RIL_MSGDISPLAYMODE_IMMEDIATE = $00000001; // @constdefine The message must be show immediately.
  2441. //In the UI, Mobile Default and User Default should be treated as the same.
  2442. RIL_MSGDISPLAYMODE_MOBILEDEFAULT = $00000002; // @constdefine The message is to be displayed depending on a predefined mobile setting.
  2443. RIL_MSGDISPLAYMODE_USERDEFAULT = $00000003; // @constdefine The message is to be displayed depending on the user's mode.
  2444. // -----------------------------------------------------------------------------
  2445. //
  2446. // @doc EXTERNAL
  2447. //
  2448. // @constants Message Encoding | Message Encoding types
  2449. //
  2450. // @comm Message Encoding - Determines the format of the incoming message body
  2451. //
  2452. // -----------------------------------------------------------------------------
  2453. const
  2454. //Analog Only - RIL_MSGCODING_IS91EPP = $00000001; // @constdefine IS-91 Character Format
  2455. RIL_MSGCODING_7BITASCII = $00000002; // @constdefine This the the verizon default
  2456. RIL_MSGCODING_UNICODE = $00000003; // @constdefine Unicode (double byte) format
  2457. RIL_MSGCODING_7BITGSM = $00000004; // @constdefine 7-bit GSM Alphabet
  2458. RIL_MSGCODING_8BITGSM = $00000005; // @constdefine 8-bit GSM Alphabet
  2459. // -----------------------------------------------------------------------------
  2460. //
  2461. // @doc EXTERNAL
  2462. //
  2463. // @constants Message DCS | Message data coding scheme types
  2464. //
  2465. // @comm None
  2466. //
  2467. // -----------------------------------------------------------------------------
  2468. const
  2469. RIL_DCSTYPE_GENERAL = $00000001; // @constdefine TBD
  2470. RIL_DCSTYPE_MSGWAIT = $00000002; // @constdefine TBD
  2471. RIL_DCSTYPE_MSGCLASS = $00000003; // @constdefine TBD
  2472. RIL_DCSTYPE_LANGUAGE = $00000004; // @constdefine TBD
  2473. // -----------------------------------------------------------------------------
  2474. //
  2475. // @doc EXTERNAL
  2476. //
  2477. // @constants Message DCS Flags | Message data coding scheme flags
  2478. //
  2479. // @comm None
  2480. //
  2481. // -----------------------------------------------------------------------------
  2482. const
  2483. RIL_DCSFLAG_NONE = $00000000; // @constdefine TBD
  2484. RIL_DCSFLAG_COMPRESSED = $00000001; // @constdefine TBD
  2485. RIL_DCSFLAG_INDICATIONACTIVE = $00000002; // @constdefine TBD
  2486. RIL_DCSFLAG_DISCARD = $00000004; // @constdefine Only for RIL_DCSTYPE_MSGWAIT
  2487. RIL_DCSFLAG_ALL = $00000007; // @constdefine TBD
  2488. // -----------------------------------------------------------------------------
  2489. //
  2490. // @doc EXTERNAL
  2491. //
  2492. // @constants Message DCS Classes | Message data coding scheme message classes
  2493. //
  2494. // @comm None
  2495. //
  2496. // -----------------------------------------------------------------------------
  2497. const
  2498. RIL_DCSMSGCLASS_0 = $00000001; // @constdefine TBD
  2499. RIL_DCSMSGCLASS_1 = $00000002; // @constdefine TBD
  2500. RIL_DCSMSGCLASS_2 = $00000003; // @constdefine TBD
  2501. RIL_DCSMSGCLASS_3 = $00000004; // @constdefine TBD
  2502. // -----------------------------------------------------------------------------
  2503. //
  2504. // @doc EXTERNAL
  2505. //
  2506. // @constants Message DCS Alphabets | Message data coding scheme alphabets
  2507. //
  2508. // @comm None
  2509. //
  2510. // -----------------------------------------------------------------------------
  2511. const
  2512. RIL_DCSALPHABET_DEFAULT = $00000001; // @constdefine TBD
  2513. RIL_DCSALPHABET_8BIT = $00000002; // @constdefine TBD
  2514. RIL_DCSALPHABET_UCS2 = $00000003; // @constdefine TBD
  2515. // -----------------------------------------------------------------------------
  2516. //
  2517. // @doc EXTERNAL
  2518. //
  2519. // @constants Message DCS Indication | Message data coding scheme indication types
  2520. //
  2521. // @comm None
  2522. //
  2523. // -----------------------------------------------------------------------------
  2524. const
  2525. RIL_DCSINDICATION_VOICEMAIL = $00000001; // @constdefine Voicemail indication
  2526. RIL_DCSINDICATION_FAX = $00000002; // @constdefine Fax indication
  2527. RIL_DCSINDICATION_EMAIL = $00000003; // @constdefine E-Mail indication
  2528. RIL_DCSINDICATION_OTHER = $00000004; // @constdefine Other indication
  2529. // -----------------------------------------------------------------------------
  2530. //
  2531. // @doc EXTERNAL
  2532. //
  2533. // @constants Message DCS Broadcast| Message broadcast data coding scheme languages
  2534. //
  2535. // @comm None
  2536. //
  2537. // -----------------------------------------------------------------------------
  2538. const
  2539. RIL_DCSLANG_UNKNOWN = $00000001; // @constdefine TBD
  2540. RIL_DCSLANG_GERMAN = $00000002; // @constdefine TBD
  2541. RIL_DCSLANG_ENGLISH = $00000004; // @constdefine TBD
  2542. RIL_DCSLANG_ITALIAN = $00000008; // @constdefine TBD
  2543. RIL_DCSLANG_FRENCH = $00000010; // @constdefine TBD
  2544. RIL_DCSLANG_SPANISH = $00000020; // @constdefine TBD
  2545. RIL_DCSLANG_DUTCH = $00000040; // @constdefine TBD
  2546. RIL_DCSLANG_SWEDISH = $00000080; // @constdefine TBD
  2547. RIL_DCSLANG_DANISH = $00000100; // @constdefine TBD
  2548. RIL_DCSLANG_PORTUGUESE = $00000200; // @constdefine TBD
  2549. RIL_DCSLANG_FINNISH = $00000400; // @constdefine TBD
  2550. RIL_DCSLANG_NORWEGIAN = $00000800; // @constdefine TBD
  2551. RIL_DCSLANG_GREEK = $00001000; // @constdefine TBD
  2552. RIL_DCSLANG_TURKISH = $00002000; // @constdefine TBD
  2553. RIL_DCSLANG_HUNGARIAN = $00004000; // @constdefine TBD
  2554. RIL_DCSLANG_POLISH = $00008000; // @constdefine TBD
  2555. RIL_DCSLANG_CZECH = $00010000; // @constdefine TBD
  2556. RIL_DCSLANG_HEBREW = $00020000; // @constdefine TBD
  2557. RIL_DCSLANG_ARABIC = $00040000; // @constdefine TBD
  2558. RIL_DCSLANG_RUSSIAN = $00080000; // @constdefine TBD
  2559. RIL_DCSLANG_ICELANDIC = $00100000; // @constdefine TBD
  2560. RIL_DCSLANG_ALL = $001fffff; // @constdefine TBD
  2561. // -----------------------------------------------------------------------------
  2562. //
  2563. // @doc EXTERNAL
  2564. //
  2565. // @constants Message Class | Message classes
  2566. //
  2567. // @comm None
  2568. //
  2569. // -----------------------------------------------------------------------------
  2570. const
  2571. RIL_MSGCLASS_NONE = $00000000; // @constdefine TBD
  2572. RIL_MSGCLASS_INCOMING = $00010000; // @constdefine TBD
  2573. RIL_MSGCLASS_OUTGOING = $00020000; // @constdefine TBD
  2574. RIL_MSGCLASS_BROADCAST = $00040000; // @constdefine TBD
  2575. RIL_MSGCLASS_ALL = $00070000; // @constdefine TBD
  2576. // -----------------------------------------------------------------------------
  2577. //
  2578. // @doc EXTERNAL
  2579. //
  2580. // @constants Message Type | Message types
  2581. //
  2582. // @comm None
  2583. //
  2584. // -----------------------------------------------------------------------------
  2585. const
  2586. RIL_MSGTYPE_IN_DELIVER = $00000001 or RIL_MSGCLASS_INCOMING; // @constdefine Incoming message
  2587. RIL_MSGTYPE_IN_STATUS = $00000002 or RIL_MSGCLASS_INCOMING; // @constdefine Incoming status message
  2588. RIL_MSGTYPE_OUT_SUBMIT = $00000001 or RIL_MSGCLASS_OUTGOING; // @constdefine Outgoing message
  2589. RIL_MSGTYPE_OUT_COMMAND = $00000002 or RIL_MSGCLASS_OUTGOING; // @constdefine Outgoing command message
  2590. RIL_MSGTYPE_OUT_RAW = $00000004 or RIL_MSGCLASS_OUTGOING;
  2591. RIL_MSGTYPE_BC_GENERAL = $00000001 or RIL_MSGCLASS_BROADCAST; // @constdefine Broadcast message (incoming only)
  2592. // Macro to extract message class from message type
  2593. function MSGCLASS_FROM_MSGTYPE(itype:ULONG):ULONG; inline;
  2594. // -----------------------------------------------------------------------------
  2595. //
  2596. // @doc EXTERNAL
  2597. //
  2598. // @constants Message Flag | Message flags
  2599. //
  2600. // @comm None
  2601. //
  2602. // -----------------------------------------------------------------------------
  2603. const
  2604. RIL_MSGFLAG_NONE = $00000000; // @constdefine None
  2605. RIL_MSGFLAG_MORETOSEND = $00000001; // @constdefine More messages to send (valid for <def RIL_MSGTYPE_IN_DELIVER> and <def RIL_MSGTYPE_IN_STATUS>)
  2606. RIL_MSGFLAG_REPLYPATH = $00000002; // @constdefine Message contains a reply path (valid for <def RIL_MSGTYPE_IN_DELIVER> and <def RIL_MSGTYPE_OUT_SUBMIT>)
  2607. RIL_MSGFLAG_HEADER = $00000004; // @constdefine TBD (valid for <def RIL_MSGTYPE_IN_DELIVER>, <def RIL_MSGTYPE_OUT_SUBMIT>,
  2608. // <def RIL_MSGTYPE_IN_STATUS>, and <def RIL_MSGTYPE_OUT_COMMAND>)
  2609. RIL_MSGFLAG_REJECTDUPS = $00000008; // @constdefine TBD (valid for <def RIL_MSGTYPE_OUT_SUBMIT> only)
  2610. RIL_MSGFLAG_STATUSREPORTRETURNED = $00000010; // @constdefine (valid for <def RIL_MSGTYPE_IN_DELIVER> only)
  2611. RIL_MSGFLAG_STATUSREPORTREQUESTED = $00000020; // @constdefine (valid for <def RIL_MSGTYPE_OUT_SUBMIT> and <def RIL_MSGTYPE_OUT_COMMAND>)
  2612. RIL_MSGFLAG_CAUSEDBYCOMMAND = $00000040; // @constdefine (valid for <def RIL_MSGTYPE_IN_STATUS> only)
  2613. RIL_MSGFLAG_ALL = $0000007f; // @constdefine All flags are on
  2614. // -----------------------------------------------------------------------------
  2615. //
  2616. // @doc EXTERNAL
  2617. //
  2618. // @constants Message Protocol | Message protocol IDs
  2619. //
  2620. // @comm None
  2621. //
  2622. // -----------------------------------------------------------------------------
  2623. const
  2624. RIL_MSGPROTOCOL_UNKNOWN = $00000000; // @constdefine TBD
  2625. RIL_MSGPROTOCOL_SMETOSME = $00000001; // @constdefine TBD
  2626. RIL_MSGPROTOCOL_IMPLICIT = $00000002; // @constdefine TBD
  2627. RIL_MSGPROTOCOL_TELEX = $00000003; // @constdefine TBD
  2628. RIL_MSGPROTOCOL_TELEFAX_GROUP3 = $00000004; // @constdefine TBD
  2629. RIL_MSGPROTOCOL_TELEFAX_GROUP4 = $00000005; // @constdefine TBD
  2630. RIL_MSGPROTOCOL_VOICEPHONE = $00000006; // @constdefine TBD
  2631. RIL_MSGPROTOCOL_ERMES = $00000007; // @constdefine TBD
  2632. RIL_MSGPROTOCOL_PAGING = $00000008; // @constdefine TBD
  2633. RIL_MSGPROTOCOL_VIDEOTEX = $00000009; // @constdefine TBD
  2634. RIL_MSGPROTOCOL_TELETEX = $0000000a; // @constdefine TBD
  2635. RIL_MSGPROTOCOL_TELETEX_PSPDN = $0000000b; // @constdefine TBD
  2636. RIL_MSGPROTOCOL_TELETEX_CSPDN = $0000000c; // @constdefine TBD
  2637. RIL_MSGPROTOCOL_TELETEX_PSTN = $0000000d; // @constdefine TBD
  2638. RIL_MSGPROTOCOL_TELETEX_ISDN = $0000000e; // @constdefine TBD
  2639. RIL_MSGPROTOCOL_UCI = $0000000f; // @constdefine TBD
  2640. RIL_MSGPROTOCOL_MSGHANDLING = $00000010; // @constdefine TBD
  2641. RIL_MSGPROTOCOL_X400 = $00000011; // @constdefine TBD
  2642. RIL_MSGPROTOCOL_EMAIL = $00000012; // @constdefine TBD
  2643. RIL_MSGPROTOCOL_SCSPECIFIC1 = $00000013; // @constdefine TBD
  2644. RIL_MSGPROTOCOL_SCSPECIFIC2 = $00000014; // @constdefine TBD
  2645. RIL_MSGPROTOCOL_SCSPECIFIC3 = $00000015; // @constdefine TBD
  2646. RIL_MSGPROTOCOL_SCSPECIFIC4 = $00000016; // @constdefine TBD
  2647. RIL_MSGPROTOCOL_SCSPECIFIC5 = $00000017; // @constdefine TBD
  2648. RIL_MSGPROTOCOL_SCSPECIFIC6 = $00000018; // @constdefine TBD
  2649. RIL_MSGPROTOCOL_SCSPECIFIC7 = $00000019; // @constdefine TBD
  2650. RIL_MSGPROTOCOL_GSMSTATION = $0000001a; // @constdefine TBD
  2651. RIL_MSGPROTOCOL_SM_TYPE0 = $0000001b; // @constdefine TBD
  2652. RIL_MSGPROTOCOL_RSM_TYPE1 = $0000001c; // @constdefine TBD
  2653. RIL_MSGPROTOCOL_RSM_TYPE2 = $0000001d; // @constdefine TBD
  2654. RIL_MSGPROTOCOL_RSM_TYPE3 = $0000001e; // @constdefine TBD
  2655. RIL_MSGPROTOCOL_RSM_TYPE4 = $0000001f; // @constdefine TBD
  2656. RIL_MSGPROTOCOL_RSM_TYPE5 = $00000020; // @constdefine TBD
  2657. RIL_MSGPROTOCOL_RSM_TYPE6 = $00000021; // @constdefine TBD
  2658. RIL_MSGPROTOCOL_RSM_TYPE7 = $00000022; // @constdefine TBD
  2659. RIL_MSGPROTOCOL_RETURNCALL = $00000023; // @constdefine TBD
  2660. RIL_MSGPROTOCOL_ME_DOWNLOAD = $00000024; // @constdefine TBD
  2661. RIL_MSGPROTOCOL_DEPERSONALIZATION = $00000025; // @constdefine TBD
  2662. RIL_MSGPROTOCOL_SIM_DOWNLOAD = $00000026; // @constdefine TBD
  2663. // -----------------------------------------------------------------------------
  2664. //
  2665. // @doc EXTERNAL
  2666. //
  2667. // @constants Message Delivery | Message delivery status values
  2668. //
  2669. // @comm None
  2670. //
  2671. // -----------------------------------------------------------------------------
  2672. const
  2673. RIL_MSGDLVSTATUS_RECEIVEDBYSME = $00000001; // @constdefine TBD
  2674. RIL_MSGDLVSTATUS_FORWARDEDTOSME = $00000002; // @constdefine TBD
  2675. RIL_MSGDLVSTATUS_REPLACEDBYSC = $00000003; // @constdefine TBD
  2676. RIL_MSGDLVSTATUS_CONGESTION_TRYING = $00000004; // @constdefine TBD
  2677. RIL_MSGDLVSTATUS_SMEBUSY_TRYING = $00000005; // @constdefine TBD
  2678. RIL_MSGDLVSTATUS_SMENOTRESPONDING_TRYING = $00000006; // @constdefine TBD
  2679. RIL_MSGDLVSTATUS_SVCREJECTED_TRYING = $00000007; // @constdefine TBD
  2680. RIL_MSGDLVSTATUS_QUALITYUNAVAIL_TRYING = $00000008; // @constdefine TBD
  2681. RIL_MSGDLVSTATUS_SMEERROR_TRYING = $00000009; // @constdefine TBD
  2682. RIL_MSGDLVSTATUS_CONGESTION = $0000000a; // @constdefine TBD
  2683. RIL_MSGDLVSTATUS_SMEBUSY = $0000000b; // @constdefine TBD
  2684. RIL_MSGDLVSTATUS_SMENOTRESPONDING = $0000000c; // @constdefine TBD
  2685. RIL_MSGDLVSTATUS_SVCREJECTED = $0000000d; // @constdefine TBD
  2686. RIL_MSGDLVSTATUS_QUALITYUNAVAIL_TEMP = $0000000e; // @constdefine TBD
  2687. RIL_MSGDLVSTATUS_SMEERROR = $0000000f; // @constdefine TBD
  2688. RIL_MSGDLVSTATUS_REMOTEPROCERROR = $00000010; // @constdefine TBD
  2689. RIL_MSGDLVSTATUS_INCOMPATIBLEDEST = $00000011; // @constdefine TBD
  2690. RIL_MSGDLVSTATUS_CONNECTIONREJECTED = $00000012; // @constdefine TBD
  2691. RIL_MSGDLVSTATUS_NOTOBTAINABLE = $00000013; // @constdefine TBD
  2692. RIL_MSGDLVSTATUS_NOINTERNETWORKING = $00000014; // @constdefine TBD
  2693. RIL_MSGDLVSTATUS_VPEXPIRED = $00000015; // @constdefine TBD
  2694. RIL_MSGDLVSTATUS_DELETEDBYORIGSME = $00000016; // @constdefine TBD
  2695. RIL_MSGDLVSTATUS_DELETEDBYSC = $00000017; // @constdefine TBD
  2696. RIL_MSGDLVSTATUS_NOLONGEREXISTS = $00000018; // @constdefine TBD
  2697. RIL_MSGDLVSTATUS_QUALITYUNAVAIL = $00000019; // @constdefine TBD
  2698. RIL_MSGDLVSTATUS_RESERVED_COMPLETED = $0000001a; // @constdefine TBD
  2699. RIL_MSGDLVSTATUS_RESERVED_TRYING = $0000001b; // @constdefine TBD
  2700. RIL_MSGDLVSTATUS_RESERVED_ERROR = $0000001c; // @constdefine TBD
  2701. RIL_MSGDLVSTATUS_RESERVED_TMPERROR = $0000001d; // @constdefine TBD
  2702. RIL_MSGDLVSTATUS_SCSPECIFIC_COMPLETED = $0000001e; // @constdefine TBD
  2703. RIL_MSGDLVSTATUS_SCSPECIFIC_TRYING = $0000001f; // @constdefine TBD
  2704. RIL_MSGDLVSTATUS_SCSPECIFIC_ERROR = $00000020; // @constdefine TBD
  2705. RIL_MSGDLVSTATUS_SCSPECIFIC_TMPERROR = $00000021; // @constdefine TBD
  2706. // -----------------------------------------------------------------------------
  2707. //
  2708. // @doc EXTERNAL
  2709. //
  2710. // @constants Message Validity | Message validity period formats
  2711. //
  2712. // @comm None
  2713. //
  2714. // -----------------------------------------------------------------------------
  2715. const
  2716. RIL_MSGVP_NONE = $00000000; // @constdefine TBD
  2717. RIL_MSGVP_RELATIVE = $00000001; // @constdefine TBD
  2718. RIL_MSGVP_ENHANCED = $00000002; // @constdefine TBD
  2719. RIL_MSGVP_ABSOLUTE = $00000003; // @constdefine TBD
  2720. // -----------------------------------------------------------------------------
  2721. //
  2722. // @doc EXTERNAL
  2723. //
  2724. // @constants Message Command | Message command types
  2725. //
  2726. // @comm None
  2727. //
  2728. // -----------------------------------------------------------------------------
  2729. const
  2730. RIL_MSGCMDTYPE_STATUSREQ = $00000001; // @constdefine TBD
  2731. RIL_MSGCMDTYPE_CANCELSTATUSREQ = $00000002; // @constdefine TBD
  2732. RIL_MSGCMDTYPE_DELETEMESSAGE = $00000003; // @constdefine TBD
  2733. RIL_MSGCMDTYPE_ENABLESTATUSREQ = $00000004; // @constdefine TBD
  2734. // -----------------------------------------------------------------------------
  2735. //
  2736. // @doc EXTERNAL
  2737. //
  2738. // @constants Message Geographic | Message geographic scopes
  2739. //
  2740. // @comm None
  2741. //
  2742. // -----------------------------------------------------------------------------
  2743. const
  2744. RIL_GEOSCOPE_CELL_IMMEDIATE = $00000001; // @constdefine TBD
  2745. RIL_GEOSCOPE_CELL = $00000002; // @constdefine TBD
  2746. RIL_GEOSCOPE_PLMN = $00000003; // @constdefine TBD
  2747. RIL_GEOSCOPE_LOCATIONAREA = $00000004; // @constdefine TBD
  2748. // -----------------------------------------------------------------------------
  2749. //
  2750. // @doc EXTERNAL
  2751. //
  2752. // @constants Message Status | Message status values
  2753. //
  2754. // @comm None
  2755. //
  2756. // -----------------------------------------------------------------------------
  2757. const
  2758. RIL_MSGSTATUS_UNKNOWN = $00000000; // @constdefine TBD
  2759. RIL_MSGSTATUS_RECUNREAD = $00000001; // @constdefine TBD
  2760. RIL_MSGSTATUS_RECREAD = $00000002; // @constdefine TBD
  2761. RIL_MSGSTATUS_STOUNSENT = $00000003; // @constdefine TBD
  2762. RIL_MSGSTATUS_STOSENT = $00000004; // @constdefine TBD
  2763. // -----------------------------------------------------------------------------
  2764. //
  2765. // @doc EXTERNAL
  2766. //
  2767. // @constants Message Send | Send message options
  2768. //
  2769. // @comm None
  2770. //
  2771. // -----------------------------------------------------------------------------
  2772. const
  2773. RIL_SENDOPT_NONE = $00000000; // @constdefine TBD
  2774. RIL_SENDOPT_PERSISTLINK = $00000001; // @constdefine TBD
  2775. // -----------------------------------------------------------------------------
  2776. //
  2777. // @doc EXTERNAL
  2778. //
  2779. // @constants Phone Locked | Phone locked states
  2780. //
  2781. // @comm None
  2782. //
  2783. // -----------------------------------------------------------------------------
  2784. const
  2785. RIL_LOCKEDSTATE_UNKNOWN = $00000000; // @constdefine Locking state unknown
  2786. RIL_LOCKEDSTATE_READY = $00000001; // @constdefine ME not locked
  2787. RIL_LOCKEDSTATE_SIM_PIN = $00000002; // @constdefine ME awaiting PIN
  2788. RIL_LOCKEDSTATE_SIM_PUK = $00000003; // @constdefine ME awaiting PUK
  2789. RIL_LOCKEDSTATE_PH_SIM_PIN = $00000004; // @constdefine ME awaiting phone-to-sim password
  2790. RIL_LOCKEDSTATE_PH_FSIM_PIN = $00000005; // @constdefine ME awaiting phone-to-first-sim password
  2791. RIL_LOCKEDSTATE_PH_FSIM_PUK = $00000006; // @constdefine ME awaiting phone-to-first-sim PUK
  2792. RIL_LOCKEDSTATE_SIM_PIN2 = $00000007; // @constdefine ME awaiting PIN2/CHV2
  2793. RIL_LOCKEDSTATE_SIM_PUK2 = $00000008; // @constdefine ME awaiting PUK2
  2794. RIL_LOCKEDSTATE_PH_NET_PIN = $00000009; // @constdefine ME awaiting network personilzation PIN
  2795. RIL_LOCKEDSTATE_PH_NET_PUK = $0000000a; // @constdefine ME awaiting network personilzation PUK
  2796. RIL_LOCKEDSTATE_PH_NETSUB_PIN = $0000000b; // @constdefine ME awaiting network subset personilzation PIN
  2797. RIL_LOCKEDSTATE_PH_NETSUB_PUK = $0000000c; // @constdefine ME awaiting network subset personilzation PUK
  2798. RIL_LOCKEDSTATE_PH_SP_PIN = $0000000d; // @constdefine ME awaiting service provider PIN
  2799. RIL_LOCKEDSTATE_PH_SP_PUK = $0000000e; // @constdefine ME awaiting service provider PUK
  2800. RIL_LOCKEDSTATE_PH_CORP_PIN = $0000000f; // @constdefine ME awaiting corporate personilzation PIN
  2801. RIL_LOCKEDSTATE_PH_CORP_PUK = $00000010; // @constdefine ME awaiting corporate personilzation PUK
  2802. // -----------------------------------------------------------------------------
  2803. //
  2804. // @doc EXTERNAL
  2805. //
  2806. // @constants Lock Facility | Facilities for phone locking
  2807. //
  2808. // @comm None
  2809. //
  2810. // -----------------------------------------------------------------------------
  2811. const
  2812. RIL_LOCKFACILITY_CNTRL = $00000001; // @constdefine Lock control curface
  2813. RIL_LOCKFACILITY_PH_SIM = $00000002; // @constdefine Lock phone to SIM card
  2814. RIL_LOCKFACILITY_PH_FSIM = $00000003; // @constdefine Lock phone to first SIM card
  2815. RIL_LOCKFACILITY_SIM = $00000004; // @constdefine Lock SIM card
  2816. RIL_LOCKFACILITY_SIM_PIN2 = $00000005; // @constdefine SIM PIN2 (only for RIL_ChangeLockingPassword())
  2817. RIL_LOCKFACILITY_SIM_FIXEDIALING = $00000006; // @constdefine SIM fixed dialing memory
  2818. RIL_LOCKFACILITY_NETWORKPERS = $00000007; // @constdefine Network personalization
  2819. RIL_LOCKFACILITY_NETWORKSUBPERS = $00000008; // @constdefine Network subset personalization
  2820. RIL_LOCKFACILITY_SERVICEPROVPERS = $00000009; // @constdefine Service provider personalization
  2821. RIL_LOCKFACILITY_CORPPERS = $0000000a; // @constdefine Corporate personalization
  2822. // -----------------------------------------------------------------------------
  2823. //
  2824. // @doc EXTERNAL
  2825. //
  2826. // @constants Lock Status | Locking status values
  2827. //
  2828. // @comm None
  2829. //
  2830. // -----------------------------------------------------------------------------
  2831. const
  2832. RIL_LOCKINGSTATUS_DISABLED = $00000001; // @constdefine Disable
  2833. RIL_LOCKINGSTATUS_ENABLED = $00000002; // @constdefine Enabled
  2834. // -----------------------------------------------------------------------------
  2835. //
  2836. // @doc EXTERNAL
  2837. //
  2838. // @constants SIM Security | SIM Security states
  2839. //
  2840. // @comm None
  2841. //
  2842. // -----------------------------------------------------------------------------
  2843. const
  2844. RIL_SIMSECURITYSTATE_UNKNOWN = $00000000; // @constdefine SIM security state unknown
  2845. RIL_SIMSECURITYSTATE_PINREQUESTED = $00000001; // @constdefine SIM security state requested PIN
  2846. RIL_SIMSECURITYSTATE_PINRECEIVED = $00000002; // @constdefine SIM security state received PIN
  2847. // -----------------------------------------------------------------------------
  2848. //
  2849. // @doc EXTERNAL
  2850. //
  2851. // @constants Call Barr Facility | Types of call barring
  2852. //
  2853. // @comm None
  2854. //
  2855. // -----------------------------------------------------------------------------
  2856. const
  2857. RIL_BARRTYPE_ALLOUTGOING = $00000001; // @constdefine Barr all outgoing calls
  2858. RIL_BARRTYPE_OUTGOINGINT = $00000002; // @constdefine Barr outgoing international calls
  2859. RIL_BARRTYPE_OUTGOINGINTEXTOHOME = $00000003; // @constdefine Barr outgoing international calls except to home country
  2860. RIL_BARRTYPE_ALLINCOMING = $00000004; // @constdefine Barr all incoming calls
  2861. RIL_BARRTYPE_INCOMINGROAMING = $00000005; // @constdefine Barr incoming calls when roaming outside of home country
  2862. RIL_BARRTYPE_INCOMINGNOTINSIM = $00000006; // @constdefine Barr incoming calls from numbers not stored to SIM memory
  2863. RIL_BARRTYPE_ALLBARRING = $00000007; // @constdefine All barring services
  2864. RIL_BARRTYPE_ALLOUTGOINGBARRING = $00000008; // @constdefine All outgoing barring services
  2865. RIL_BARRTYPE_ALLINCOMINGBARRING = $00000009; // @constdefine All incoming barring services
  2866. // -----------------------------------------------------------------------------
  2867. //
  2868. // @doc EXTERNAL
  2869. //
  2870. // @constants Call Barr Status | Status values for call barring
  2871. //
  2872. // @comm None
  2873. //
  2874. // -----------------------------------------------------------------------------
  2875. const
  2876. RIL_BARRINGSTATUS_DISABLED = $00000001; // @constdefine Disable
  2877. RIL_BARRINGSTATUS_ENABLED = $00000002; // @constdefine Disable
  2878. // -----------------------------------------------------------------------------
  2879. //
  2880. // @doc EXTERNAL
  2881. //
  2882. // @constants Equipment State | Equipment states
  2883. //
  2884. // @comm None
  2885. //
  2886. // -----------------------------------------------------------------------------
  2887. const
  2888. RIL_EQSTATE_UNKNOWN = $00000000; // @constdefine Unknown
  2889. RIL_EQSTATE_MINIMUM = $00000001; // @constdefine Minimum power state
  2890. RIL_EQSTATE_FULL = $00000002; // @constdefine Full functionality
  2891. RIL_EQSTATE_DISABLETX = $00000003; // @constdefine Transmitter disabled
  2892. RIL_EQSTATE_DISABLERX = $00000004; // @constdefine Receiver disabled
  2893. RIL_EQSTATE_DISABLETXANDRX = $00000005; // @constdefine Transmitter & receiver disabled
  2894. // -----------------------------------------------------------------------------
  2895. //
  2896. // @doc EXTERNAL
  2897. //
  2898. // @constants Radio Presence States | Radio Presence States
  2899. //
  2900. // @comm These states are determined by whether the driver is loaded or not
  2901. //
  2902. // -----------------------------------------------------------------------------
  2903. const
  2904. RIL_RADIOPRESENCE_NOTPRESENT = $00000000; // @constdefine There is not radio module present in the device
  2905. RIL_RADIOPRESENCE_PRESENT = $00000001; // @constdefine There is a radio module present that RIL can use
  2906. // -----------------------------------------------------------------------------
  2907. //
  2908. // @doc EXTERNAL
  2909. //
  2910. // @constants Driver defined Radio ON vs OFF State | Radio ON/OFF states
  2911. //
  2912. // @comm These values normally depend on the Equiptment state
  2913. //
  2914. // -----------------------------------------------------------------------------
  2915. const
  2916. RIL_RADIOSUPPORT_UNKNOWN = $00000000; // @constdefine The Radio Functionality is in an intermediate state
  2917. RIL_RADIOSUPPORT_OFF = $00000001; // @constdefine The Radio Functionality is OFF (DOES NOT Neccessarily mean safe for flight)
  2918. RIL_RADIOSUPPORT_ON = $00000002; // @constdefine The Radio Functionality is ON
  2919. // -----------------------------------------------------------------------------
  2920. //
  2921. // @doc EXTERNAL
  2922. //
  2923. // @constants Various components of the Radio are ready for external usage
  2924. //
  2925. // @comm This will be a mask of the below values
  2926. //
  2927. // -----------------------------------------------------------------------------
  2928. const
  2929. RIL_READYSTATE_NONE = $00000000; // @constdefine Nothing is ready yet
  2930. RIL_READYSTATE_INITIALIZED = $00000001; // @constdefine The Radio has been initialized (but may not be ready)
  2931. RIL_READYSTATE_SIM = $00000002; // @constdefine The Radio is ready for SIM Access
  2932. RIL_READYSTATE_SMS = $00000004; // @constdefine The Radio is ready for SMS messages
  2933. RIL_READYSTATE_UNLOCKED = $00000008; // @constdefine The SIM is unlocked
  2934. RIL_READYSTATE_SIM_PB = $00000010; // @constdefine The SIM PB has been fully copied to volatile memory and is ready for access
  2935. // -----------------------------------------------------------------------------
  2936. //
  2937. // @doc EXTERNAL
  2938. //
  2939. // @constants Various SIM card states.
  2940. //
  2941. // @comm NONE
  2942. //
  2943. // -----------------------------------------------------------------------------
  2944. const
  2945. RIL_SIMSTATUSCHANGED_NONE = $00000000; // @constdefine No status yet
  2946. RIL_SIMSTATUSCHANGED_FULL = $00000001; // @constdefine SIM card memory is full
  2947. RIL_SIMSTATUSCHANGED_NO_SIM = $00000002; // @constdefine No SIM card available
  2948. RIL_SIMSTATUSCHANGED_INVALID = $00000004; // @constdefine SIM card is invalid
  2949. RIL_SIMSTATUSCHANGED_BLOCKED = $00000008; // @constdefine SIM card is blocked
  2950. // -----------------------------------------------------------------------------
  2951. //
  2952. // @doc EXTERNAL
  2953. //
  2954. // @constants Phonebook Storage | Phonebook storage locations
  2955. //
  2956. // @comm None
  2957. //
  2958. // -----------------------------------------------------------------------------
  2959. const
  2960. RIL_PBLOC_UNKNOWN = $00000000; // @constdefine Unknown
  2961. RIL_PBLOC_SIMEMERGENCY = $00000001; // @constdefine Emergency numbers
  2962. RIL_PBLOC_SIMFIXDIALING = $00000002; // @constdefine Fixed dialing
  2963. RIL_PBLOC_SIMLASTDIALING = $00000003; // @constdefine Recent calls list
  2964. RIL_PBLOC_OWNNUMBERS = $00000004; // @constdefine TBD
  2965. RIL_PBLOC_SIMPHONEBOOK = $00000005; // @constdefine SIM phonebook
  2966. // -----------------------------------------------------------------------------
  2967. //
  2968. // @doc EXTERNAL
  2969. //
  2970. // @constants Special Phonebook | Special phonebook index value
  2971. //
  2972. // @comm None
  2973. //
  2974. // -----------------------------------------------------------------------------
  2975. const
  2976. RIL_PBINDEX_FIRSTAVAILABLE = $ffffffff; // @constdefine User first available entry
  2977. // -----------------------------------------------------------------------------
  2978. //
  2979. // @doc EXTERNAL
  2980. //
  2981. // @constants SIM Command | SIM commands
  2982. //
  2983. // @comm None
  2984. //
  2985. // -----------------------------------------------------------------------------
  2986. const
  2987. RIL_SIMCMD_READBINARY = $00000001; // @constdefine Read a binary
  2988. RIL_SIMCMD_READRECORD = $00000002; // @constdefine Read contents of a record
  2989. RIL_SIMCMD_GETRESPONSE = $00000003; // @constdefine Required to get output data for some commands
  2990. RIL_SIMCMD_UPDATEBINARY = $00000004; // @constdefine Update a transparent file
  2991. RIL_SIMCMD_UPDATERECORD = $00000005; // @constdefine Update a linear fixed or cyclic file
  2992. RIL_SIMCMD_STATUS = $00000006; // @constdefine Get status on a file
  2993. // -----------------------------------------------------------------------------
  2994. //
  2995. // @doc EXTERNAL
  2996. //
  2997. // @constants SIM Record | Different SIM file types
  2998. //
  2999. // @comm None
  3000. //
  3001. // -----------------------------------------------------------------------------
  3002. const
  3003. RIL_SIMRECORDTYPE_UNKNOWN = $00000000; // @constdefine An unknown file type
  3004. RIL_SIMRECORDTYPE_TRANSPARENT = $00000001; // @constdefine A single veriable lengthed record
  3005. RIL_SIMRECORDTYPE_CYCLIC = $00000002; // @constdefine A cyclic set of records, each of the same length
  3006. RIL_SIMRECORDTYPE_LINEAR = $00000003; // @constdefine A linear set of records, each of the same length
  3007. RIL_SIMRECORDTYPE_MASTER = $00000004; // @constdefine Every SIM has a single master record, effectively the head node
  3008. RIL_SIMRECORDTYPE_DEDICATED = $00000005; // @constdefine Effectively a "directory" file which is a parent of other records
  3009. // -----------------------------------------------------------------------------
  3010. //
  3011. // @doc EXTERNAL
  3012. //
  3013. // @constants SIM Toolkit Terminate | SIM Toolkit session termination causes
  3014. //
  3015. // @comm None
  3016. //
  3017. // -----------------------------------------------------------------------------
  3018. const
  3019. RIL_SIMTKITTERMCAUSE_USERSTOPPEDREDIAL = $00000001; // @constdefine User stopped redial attempts
  3020. RIL_SIMTKITTERMCAUSE_ENDOFREDIAL = $00000002; // @constdefine End of redial period
  3021. RIL_SIMTKITTERMCAUSE_USERENDEDSESSION = $00000003; // @constdefine Session terminated by user
  3022. // -----------------------------------------------------------------------------
  3023. //
  3024. // @doc EXTERNAL
  3025. //
  3026. // @params RILSIMTOOLKITNOTIFYCAPS
  3027. //
  3028. // @constants Unavailable | Detailed reason for support of toolkit functions
  3029. //
  3030. // @comm Values that variables information variables in RILSIMTOOLKITNOTIFYCAPS can take on
  3031. //
  3032. // -----------------------------------------------------------------------------
  3033. const
  3034. RIL_SIMTKN_MEIMPLEMENTS = $00000001; // @constdefine The ME must implement this notification
  3035. RIL_SIMTKN_RADIOIMPLEMENTS_NONOTIFICATION = $00000002; // @constdefine The radio will implement and not give a notification to the ME
  3036. RIL_SIMTKN_RADIOIMPLEMENTS_NOTIFICATION = $00000003; // @constdefine The radio will implement and give a notification to the ME that it was done
  3037. RIL_SIMTKN_RADIOIMPLEMENTS_REQUESTMEINPUT = $00000004; // @constdefine The radio will implement, but requests information from the ME first
  3038. RIL_SIMTKN_NOSUPPORT = $FFFFFFFF; // @constdefine RIL knows of this type of command but does not support.
  3039. // -----------------------------------------------------------------------------
  3040. //
  3041. // @doc EXTERNAL
  3042. //
  3043. // @constants Signal Strength | Special signal strength value
  3044. //
  3045. // @comm None
  3046. //
  3047. // -----------------------------------------------------------------------------
  3048. const
  3049. RIL_SIGNALSTRENGTH_UNKNOWN = $ffffffff; // @constdefine Unknown signal strength
  3050. // -----------------------------------------------------------------------------
  3051. //
  3052. // @doc EXTERNAL
  3053. //
  3054. // @constants Bit Error Rate | Special bit error rate value
  3055. //
  3056. // @comm None
  3057. //
  3058. // -----------------------------------------------------------------------------
  3059. const
  3060. RIL_BITERRORRATE_UNKNOWN = $ffffffff; // @constdefine Unknown signal strength
  3061. // -----------------------------------------------------------------------------
  3062. //
  3063. // @doc EXTERNAL
  3064. //
  3065. // @constants Remote Party | Remote party information validity types
  3066. //
  3067. // @comm None
  3068. //
  3069. // -----------------------------------------------------------------------------
  3070. const
  3071. RIL_REMOTEPARTYINFO_VALID = $00000001; // @constdefine Information valid
  3072. RIL_REMOTEPARTYINFO_WITHHELD = $00000002; // @constdefine Information withheld by other user
  3073. RIL_REMOTEPARTYINFO_UNAVAILABLE = $00000003; // @constdefine Network unable to send info
  3074. // -----------------------------------------------------------------------------
  3075. //
  3076. // @doc EXTERNAL
  3077. //
  3078. // @constants Disconnect Initiation | Disconnect initiation values
  3079. //
  3080. // @comm None
  3081. //
  3082. // -----------------------------------------------------------------------------
  3083. const
  3084. RIL_DISCINIT_NULL = $00000000; // @constdefine Nothing
  3085. RIL_DISCINIT_LOCAL = $00000001; // @constdefine Local party initiated
  3086. RIL_DISCINIT_REMOTE = $00000002; // @constdefine Remote party initiated
  3087. RIL_DISCINIT_NETWORKERROR = $00000003; // @constdefine The call was disconnected due to a network error condition
  3088. RIL_DISCINIT_BUSY = $00000004; // @constdefine Busy
  3089. // -----------------------------------------------------------------------------
  3090. //
  3091. // @doc EXTERNAL
  3092. //
  3093. // @constants Subaddress Type | Supplementary service data status values
  3094. //
  3095. // @comm None
  3096. //
  3097. // -----------------------------------------------------------------------------
  3098. const
  3099. RIL_SUPSVCDATASTATUS_NOINFOREQUIRED = $00000001; // @constdefine TBD
  3100. RIL_SUPSVCDATASTATUS_FURTHERINFOREQUIRED = $00000002; // @constdefine TBD
  3101. RIL_SUPSVCDATASTATUS_TERMINATED = $00000003; // @constdefine TBD
  3102. RIL_SUPSVCDATASTATUS_OTHERCLIENTRESPONDED = $00000004; // @constdefine TBD
  3103. RIL_SUPSVCDATASTATUS_UNSUPPORTED = $00000005; // @constdefine TBD
  3104. RIL_SUPSVCDATASTATUS_TIMEOUT = $00000006; // @constdefine TBD
  3105. RIL_SUPSVCDATASTATUS_ERROR = $00000007; // @constdefine TBD
  3106. // -----------------------------------------------------------------------------
  3107. //
  3108. // @doc EXTERNAL
  3109. //
  3110. // @constants GPRS Protocol | GPRS Packet Protocols
  3111. //
  3112. // @comm None
  3113. //
  3114. // -----------------------------------------------------------------------------
  3115. const
  3116. RIL_GPRSPROTOCOL_UNKNOWN = $00000000; // @constdefine Unknown
  3117. RIL_GPRSPROTOCOL_X25 = $00000001; // @constdefine ITU-T/CCITT X.25 Layer 4
  3118. RIL_GPRSPROTOCOL_IP = $00000002; // @constdefine Internet Protocol (IETF STD 5)
  3119. RIL_GPRSPROTOCOL_IHOSP = $00000004; // @constdefine Internet Hosted Octet Stream Protocol
  3120. RIL_GPRSPROTOCOL_PPP = $00000008; // @constdefine Point to Point Protocol
  3121. RIL_GPRSPROTOCOL_ALL = $0000000f;
  3122. // -----------------------------------------------------------------------------
  3123. //
  3124. // @doc EXTERNAL
  3125. //
  3126. // @constants GPRS Protocol | GPRS L2 Protocols
  3127. //
  3128. // @comm None
  3129. //
  3130. // See GSM 07.07 10.1.6 for definitions
  3131. // -----------------------------------------------------------------------------
  3132. const
  3133. RIL_GPRSL2PROTOCOL_UNKNOWN = $00000000; // @constdefine
  3134. RIL_GPRSL2PROTOCOL_NULL = $00000001; // @constdefine none, for PDP type OSP:IHOSS
  3135. RIL_GPRSL2PROTOCOL_PPP = $00000002; // @constdefine Point-to-point protocol for a PDP such as IP
  3136. RIL_GPRSL2PROTOCOL_PAD = $00000004; // @constdefine character stream for X.25 character (triple X PAD) mode
  3137. RIL_GPRSL2PROTOCOL_X25 = $00000008; // @constdefine X.25 L2 (LAPB) for X.25 packet mode
  3138. RIL_GPRSL2PROTOCOL_ALL = $0000000f;
  3139. // -----------------------------------------------------------------------------
  3140. //
  3141. // @doc EXTERNAL
  3142. //
  3143. // @constants GPRS Data Comp | GPRS Data Compression
  3144. //
  3145. // @comm None
  3146. //
  3147. // -----------------------------------------------------------------------------
  3148. const
  3149. RIL_GPRSDATACOMP_OFF = $00000001; // @constdefine compression off
  3150. RIL_GPRSDATACOMP_ON = $00000002; // @constdefine compression off
  3151. RIL_GPRSDATACOMP_ALL = $00000003;
  3152. // -----------------------------------------------------------------------------
  3153. //
  3154. // @doc EXTERNAL
  3155. //
  3156. // @constants GPRS Header Comp | GPRS Header Compression
  3157. //
  3158. // @comm None
  3159. //
  3160. // -----------------------------------------------------------------------------
  3161. const
  3162. RIL_GPRSHEADERCOMP_OFF = $00000001; // @constdefine compression off
  3163. RIL_GPRSHEADERCOMP_ON = $00000002; // @constdefine compression off
  3164. RIL_GPRSHEADERCOMP_ALL = $00000003;
  3165. // -----------------------------------------------------------------------------
  3166. //
  3167. // @doc EXTERNAL
  3168. //
  3169. // @constants GPRS Precedence Class | GPRS Precedence Class
  3170. //
  3171. // @comm None
  3172. //
  3173. // -----------------------------------------------------------------------------
  3174. const
  3175. RIL_GPRSPRECEDENCECLASS_SUBSCRIBED = $00000001; // @constdefine subscribed value stored in network
  3176. RIL_GPRSPRECEDENCECLASS_HIGH = $00000002; // @constdefine high priority
  3177. RIL_GPRSPRECEDENCECLASS_NORMAL = $00000004; // @constdefine normal priority
  3178. RIL_GPRSPRECEDENCECLASS_LOW = $00000008; // @constdefine low priority
  3179. RIL_GPRSPRECEDENCECLASS_ALL = $0000000f;
  3180. // -----------------------------------------------------------------------------
  3181. //
  3182. // @doc EXTERNAL
  3183. //
  3184. // @constants GPRS Delay Class | GPRS Delay Class
  3185. //
  3186. // @comm None
  3187. //
  3188. // -----------------------------------------------------------------------------
  3189. const
  3190. RIL_GPRSDELAYCLASS_SUBSCRIBED = $00000001; // @constdefine subscribed value stored in network
  3191. RIL_GPRSDELAYCLASS_PREDICTIVE1 = $00000002; // @constdefine see gsm 02.60
  3192. RIL_GPRSDELAYCLASS_PREDICTIVE2 = $00000004; // @constdefine see gsm 02.60
  3193. RIL_GPRSDELAYCLASS_PREDICTIVE3 = $00000008; // @constdefine see gsm 02.60
  3194. RIL_GPRSDELAYCLASS_BESTEFFORT = $00000010; // @constdefine see gsm 02.60
  3195. RIL_GPRSDELAYCLASS_ALL = $0000001f;
  3196. // -----------------------------------------------------------------------------
  3197. //
  3198. // @doc EXTERNAL
  3199. //
  3200. // @constants GPRS Reliability Class | GPRS Reliability Class
  3201. //
  3202. // @comm None
  3203. //
  3204. // -----------------------------------------------------------------------------
  3205. const
  3206. RIL_GPRSRELIABILITYCLASS_SUBSCRIBED = $00000001; // @constdefine subscribed value stored in network
  3207. RIL_GPRSRELIABILITYCLASS_1 = $00000002; // @constdefine see gsm 03.60
  3208. RIL_GPRSRELIABILITYCLASS_2 = $00000004; // @constdefine see gsm 03.60
  3209. RIL_GPRSRELIABILITYCLASS_3 = $00000008; // @constdefine see gsm 03.60
  3210. RIL_GPRSRELIABILITYCLASS_4 = $00000010; // @constdefine see gsm 03.60
  3211. RIL_GPRSRELIABILITYCLASS_5 = $00000020; // @constdefine see gsm 03.60
  3212. RIL_GPRSRELIABILITYCLASS_ALL = $0000003f;
  3213. // -----------------------------------------------------------------------------
  3214. //
  3215. // @doc EXTERNAL
  3216. //
  3217. // @constants GPRS Class | GPRS Class
  3218. //
  3219. // @comm None
  3220. //
  3221. // -----------------------------------------------------------------------------
  3222. const
  3223. RIL_GPRSCLASS_UNKNOWN = $00000000; // @constdefine GPRS class unknown
  3224. RIL_GPRSCLASS_GSMANDGPRS = $00000001; // @constdefine Simultaneous voice and GPRS data
  3225. RIL_GPRSCLASS_GSMORGPRS = $00000002; // @constdefine Simultaneous voice and GPRS traffic channel, one or other data
  3226. RIL_GPRSCLASS_GSMORGPRS_EXCLUSIVE = $00000004; // @constdefine Either all voice or all GPRS, both traffic channels unmonitored
  3227. RIL_GPRSCLASS_GPRSONLY = $00000008; // @constdefine Only GPRS
  3228. RIL_GPRSCLASS_GSMONLY = $00000010; // @constdefine Only circuit switched voice and data
  3229. RIL_GPRSCLASS_ALL = $0000001f;
  3230. // -----------------------------------------------------------------------------
  3231. //
  3232. // @doc EXTERNAL
  3233. //
  3234. // @constants GPRS Peak Throughput Class | GPRS Peak Throughput Class
  3235. //
  3236. // @comm Constants represent bits per second
  3237. //
  3238. // -----------------------------------------------------------------------------
  3239. const
  3240. RIL_PEAKTHRUCLASS_SUBSCRIBED = $00000001; // @constdefine subscribed value stored in network
  3241. RIL_PEAKTHRUCLASS_8000 = $00000002; // @constdefine bits per second
  3242. RIL_PEAKTHRUCLASS_16000 = $00000004; // @constdefine bits per second
  3243. RIL_PEAKTHRUCLASS_32000 = $00000008; // @constdefine bits per second
  3244. RIL_PEAKTHRUCLASS_64000 = $00000010; // @constdefine bits per second
  3245. RIL_PEAKTHRUCLASS_128000 = $00000020; // @constdefine bits per second
  3246. RIL_PEAKTHRUCLASS_256000 = $00000040; // @constdefine bits per second
  3247. RIL_PEAKTHRUCLASS_512000 = $00000080; // @constdefine bits per second
  3248. RIL_PEAKTHRUCLASS_1024000 = $00000100; // @constdefine bits per second
  3249. RIL_PEAKTHRUCLASS_2048000 = $00000200; // @constdefine bits per second
  3250. RIL_PEAKTHRUCLASS_ALL = $000003ff;
  3251. // -----------------------------------------------------------------------------
  3252. //
  3253. // @doc EXTERNAL
  3254. //
  3255. // @constants GPRS Mean Throughput Class | GPRS Mean Throughput Class
  3256. //
  3257. // @comm Constants represent octets per hour
  3258. //
  3259. // -----------------------------------------------------------------------------
  3260. const
  3261. RIL_MEANTHRUCLASS_SUBSCRIBED = $00000001; // @constdefine subscribed value stored in network
  3262. RIL_MEANTHRUCLASS_100 = $00000002; // @constdefine 0.22 bits/second
  3263. RIL_MEANTHRUCLASS_200 = $00000004; // @constdefine 0.44 bits/second
  3264. RIL_MEANTHRUCLASS_500 = $00000008; // @constdefine 1.11 bits/second
  3265. RIL_MEANTHRUCLASS_1000 = $00000010; // @constdefine 2.2 bits/second
  3266. RIL_MEANTHRUCLASS_2000 = $00000020; // @constdefine 4.4 bits/second
  3267. RIL_MEANTHRUCLASS_5000 = $00000040; // @constdefine 11.1 bits/second
  3268. RIL_MEANTHRUCLASS_10000 = $00000080; // @constdefine 22 bits/second
  3269. RIL_MEANTHRUCLASS_20000 = $00000100; // @constdefine 44 bits/second
  3270. RIL_MEANTHRUCLASS_50000 = $00000200; // @constdefine 111 bits/second
  3271. RIL_MEANTHRUCLASS_100000 = $00000400; // @constdefine 220 bits/second
  3272. RIL_MEANTHRUCLASS_200000 = $00000800; // @constdefine 440 bits/second
  3273. RIL_MEANTHRUCLASS_500000 = $00001000; // @constdefine 1,110 bits/second
  3274. RIL_MEANTHRUCLASS_1000000 = $00002000; // @constdefine 2,200 bits/second
  3275. RIL_MEANTHRUCLASS_2000000 = $00004000; // @constdefine 4,400 bits/second
  3276. RIL_MEANTHRUCLASS_5000000 = $00008000; // @constdefine 11,100 bits/second
  3277. RIL_MEANTHRUCLASS_10000000 = $00010000; // @constdefine 22,000 bits/second
  3278. RIL_MEANTHRUCLASS_20000000 = $00020000; // @constdefine 44,000 bits/second
  3279. RIL_MEANTHRUCLASS_50000000 = $00040000; // @constdefine 111,000 bits/second
  3280. RIL_MEANTHRUCLASS_DONTCARE = $80000000; // @constdefine best effort
  3281. RIL_MEANTHRUCLASS_ALL = $8007ffff;
  3282. // -----------------------------------------------------------------------------
  3283. //
  3284. // @doc EXTERNAL
  3285. //
  3286. // @constants Complete Call Busy | Special value for all CCBS
  3287. //
  3288. // @comm None
  3289. //
  3290. // -----------------------------------------------------------------------------
  3291. const
  3292. RIL_CCBS_ALL = $ffffffff; // @constdefine All CCBS
  3293. // -----------------------------------------------------------------------------
  3294. //
  3295. // @doc EXTERNAL
  3296. //
  3297. // @constants GPRS SMS | Mobile Originated SMS Service Constants
  3298. //
  3299. // @comm None
  3300. //
  3301. // -----------------------------------------------------------------------------
  3302. const
  3303. RIL_MOSMSSERVICE_CIRCUIT = $00000001; // @constdefine circuit switched
  3304. RIL_MOSMSSERVICE_GPRS = $00000002; // @constdefine GPRS
  3305. RIL_MOSMSSERVICE_CIRCUITPREFERRED = $00000004; // @constdefine use both, circuit switched preferred
  3306. RIL_MOSMSSERVICE_GPRSPREFERRED = $00000008; // @constdefine use both, GPRS preferred
  3307. RIL_MOSMSSERVICE_ALL = $0000000f;
  3308. // -----------------------------------------------------------------------------
  3309. //
  3310. // @doc EXTERNAL
  3311. //
  3312. // @constants Password type | PIN or PUK password
  3313. //
  3314. // @comm Used to distiguish between a password that is a PIN vs PUK for RIL_ChangeLockingPassword
  3315. //
  3316. // -----------------------------------------------------------------------------
  3317. const
  3318. RIL_PASSWORDTYPE_PIN = $00000001; //@ The password type is a SIM PIN (editable password)
  3319. RIL_PASSWORDTYPE_PUK = $00000002; //@ The password type is a SIM PUK (Non-user editable)
  3320. // -----------------------------------------------------------------------------
  3321. //
  3322. // @doc EXTERNAL
  3323. //
  3324. // @constants System Capabilities
  3325. //
  3326. // @comm None
  3327. //
  3328. // -----------------------------------------------------------------------------
  3329. const
  3330. RIL_SYSTEMCAPS_NONE = $00000000; // @constdefine The system does not support any special capabilities.
  3331. RIL_SYSTEMCAPS_VOICEDATA = $00000001; // @constdefine The system supports simultaneous voice+Data
  3332. RIL_SYSTEMCAPS_ALL = $00000001; // @constdefine The system supports all special capabilities.
  3333. // -----------------------------------------------------------------------------
  3334. //
  3335. // @doc EXTERNAL
  3336. //
  3337. // @constants Caps Type | Capability types
  3338. //
  3339. // @comm None
  3340. //
  3341. // -----------------------------------------------------------------------------
  3342. const
  3343. RIL_CAPSTYPE_DIAL = $00000001; // @constdefine TBD
  3344. RIL_CAPSTYPE_DTMFDURATIONRANGE = $00000002; // @constdefine TBD
  3345. RIL_CAPSTYPE_CALLMGTCMDS = $00000003; // @constdefine TBD
  3346. RIL_CAPSTYPE_BEARERSERVICE = $00000004; // @constdefine TBD
  3347. RIL_CAPSTYPE_RLP = $00000005; // @constdefine TBD
  3348. RIL_CAPSTYPE_EQUIPMENTSTATES = $00000006; // @constdefine TBD
  3349. RIL_CAPSTYPE_PBSTORELOCATIONS = $00000007; // @constdefine TBD
  3350. RIL_CAPSTYPE_PBINDEXRANGE = $00000008; // @constdefine TBD
  3351. RIL_CAPSTYPE_PBENTRYLENGTH = $00000009; // @constdefine TBD
  3352. RIL_CAPSTYPE_MSGSERVICETYPES = $0000000a; // @constdefine TBD
  3353. RIL_CAPSTYPE_MSGMEMORYLOCATIONS = $0000000b; // @constdefine TBD
  3354. RIL_CAPSTYPE_BROADCASTMSGLANGS = $0000000c; // @constdefine TBD
  3355. RIL_CAPSTYPE_MSGCONFIGINDEXRANGE = $0000000d; // @constdefine TBD
  3356. RIL_CAPSTYPE_MSGSTATUSVALUES = $0000000e; // @constdefine TBD
  3357. RIL_CAPSTYPE_PREFOPINDEXRANGE = $0000000f; // @constdefine TBD
  3358. RIL_CAPSTYPE_LOCKFACILITIES = $00000010; // @constdefine TBD
  3359. RIL_CAPSTYPE_LOCKINGPWDLENGTHS = $00000011; // @constdefine TBD
  3360. RIL_CAPSTYPE_BARRTYPES = $00000012; // @constdefine TBD
  3361. RIL_CAPSTYPE_BARRINGPWDLENGTHS = $00000013; // @constdefine TBD
  3362. RIL_CAPSTYPE_FORWARDINGREASONS = $00000014; // @constdefine TBD
  3363. RIL_CAPSTYPE_INFOCLASSES = $00000015; // @constdefine TBD
  3364. RIL_CAPSTYPE_HSCSD = $00000016; // @constdefine TBD
  3365. RIL_CAPSTYPE_SIMTOOLKITNOTIFICATIONS = $00000017; // @constdefine TBD
  3366. RIL_CAPSTYPE_GPRSCLASS = $00000018; // @constdefine TBD
  3367. RIL_CAPSTYPE_GPRSCONTEXT = $00000019; // @constdefine TBD
  3368. RIL_CAPSTYPE_GPRSQOS = $0000001a; // @constdefine TBD
  3369. RIL_CAPSTYPE_GPRSQOSMIN = $0000001b; // @constdefine TBD
  3370. RIL_CAPSTYPE_GPRSMOSMS = $0000001c; // @constdefine TBD
  3371. RIL_CAPSTYPE_DATACOMPRESSION = $0000001d; // @constdefine TBD
  3372. RIL_CAPSTYPE_ERRORCORRECTION = $0000001e; // @constdefine TBD
  3373. RIL_CAPSTYPE_SIGNALQUALITYIMPLEMENTATION = $0000001f; // @constdefine TBD
  3374. RIL_CAPSTYPE_SIMSUPPORT = $00000020; // @constdefine TBD
  3375. RIL_CAPSTYPE_CALLPROGRESSNOTIFICATION = $00000021; // @constdefine TBD
  3376. RIL_CAPSTYPE_NOTIFICATIONIMPLEMENTATION = $00000022; // @constdefine TBD
  3377. RIL_CAPSTYPE_NITZNOTIFICATION = $00000023; // @constdefine TBD
  3378. RIL_CAPSTYPE_ARG_SMALLEST = RIL_CAPSTYPE_DIAL;
  3379. RIL_CAPSTYPE_ARG_LARGEST = RIL_CAPSTYPE_NITZNOTIFICATION;
  3380. // -----------------------------------------------------------------------------
  3381. //
  3382. // @doc EXTERNAL
  3383. //
  3384. // @constants Caps Call Type | NITZ type capabilities
  3385. //
  3386. // @comm None
  3387. //
  3388. // -----------------------------------------------------------------------------
  3389. const
  3390. RIL_CAPS_NITZ_DISABLED = $00000001; // @constdefine TBD
  3391. RIL_CAPS_NITZ_ENABLED = $00000002; // @constdefine TBD
  3392. // -----------------------------------------------------------------------------
  3393. //
  3394. // @doc EXTERNAL
  3395. //
  3396. // @constants Caps Call Type | Call type capabilities
  3397. //
  3398. // @comm None
  3399. //
  3400. // -----------------------------------------------------------------------------
  3401. const
  3402. RIL_CAPS_CALLTYPE_VOICE = $00000001; // @constdefine TBD
  3403. RIL_CAPS_CALLTYPE_DATA = $00000002; // @constdefine TBD
  3404. RIL_CAPS_CALLTYPE_FAX = $00000004; // @constdefine TBD
  3405. RIL_CAPS_CALLTYPE_PTT = $00000008; // @constdefine TBD
  3406. RIL_CAPS_CALLTYPE_VT = $00000010; // @constdefine TBD
  3407. // -----------------------------------------------------------------------------
  3408. //
  3409. // @doc EXTERNAL
  3410. //
  3411. // @constants Caps Dialing Option | Dialing options capabilities
  3412. //
  3413. // @comm None
  3414. //
  3415. // -----------------------------------------------------------------------------
  3416. const
  3417. RIL_CAPS_DIALOPT_RESTRICTID = RIL_DIALOPT_RESTRICTID; // @constdefine TBD
  3418. RIL_CAPS_DIALOPT_PRESENTID = RIL_DIALOPT_PRESENTID; // @constdefine TBD
  3419. RIL_CAPS_DIALOPT_CLOSEDGROUP = RIL_DIALOPT_CLOSEDGROUP; // @constdefine TBD
  3420. // -----------------------------------------------------------------------------
  3421. //
  3422. // @doc EXTERNAL
  3423. //
  3424. // @constants Caps Call Mgmt | Call management command capabilities
  3425. //
  3426. // @comm None
  3427. //
  3428. // -----------------------------------------------------------------------------
  3429. const
  3430. RIL_CAPS_CALLCMD_RELEASEHELD = $00000001; // @constdefine TBD
  3431. RIL_CAPS_CALLCMD_RELEASEACTIVE_ACCEPTHELD = $00000002; // @constdefine TBD
  3432. RIL_CAPS_CALLCMD_RELEASECALL = $00000004; // @constdefine TBD
  3433. RIL_CAPS_CALLCMD_HOLDACTIVE_ACCEPTHELD = $00000008; // @constdefine TBD
  3434. RIL_CAPS_CALLCMD_HOLDALLBUTONE = $00000010; // @constdefine TBD
  3435. RIL_CAPS_CALLCMD_ADDHELDTOCONF = $00000020; // @constdefine TBD
  3436. RIL_CAPS_CALLCMD_ADDHELDTOCONF_DISCONNECT = $00000040; // @constdefine TBD
  3437. RIL_CAPS_CALLCMD_INVOKECCBS = $00000080; // @constdefine TBD
  3438. // -----------------------------------------------------------------------------
  3439. //
  3440. // @doc EXTERNAL
  3441. //
  3442. // @constants Caps Bearer Speed1 | Bearer service speed capabilities (first set)
  3443. //
  3444. // @comm None
  3445. //
  3446. // -----------------------------------------------------------------------------
  3447. const
  3448. RIL_CAPS_SPEED1_AUTO = $00000001; // @constdefine TBD
  3449. RIL_CAPS_SPEED1_300_V21 = $00000002; // @constdefine TBD
  3450. RIL_CAPS_SPEED1_300_V110 = $00000004; // @constdefine TBD
  3451. RIL_CAPS_SPEED1_1200_V22 = $00000008; // @constdefine TBD
  3452. RIL_CAPS_SPEED1_1200_75_V23 = $00000010; // @constdefine TBD
  3453. RIL_CAPS_SPEED1_1200_V110 = $00000020; // @constdefine TBD
  3454. RIL_CAPS_SPEED1_1200_V120 = $00000040; // @constdefine TBD
  3455. RIL_CAPS_SPEED1_2400_V22BIS = $00000080; // @constdefine TBD
  3456. RIL_CAPS_SPEED1_2400_V26TER = $00000100; // @constdefine TBD
  3457. RIL_CAPS_SPEED1_2400_V110 = $00000200; // @constdefine TBD
  3458. RIL_CAPS_SPEED1_2400_V120 = $00000400; // @constdefine TBD
  3459. RIL_CAPS_SPEED1_4800_V32 = $00000800; // @constdefine TBD
  3460. RIL_CAPS_SPEED1_4800_V110 = $00001000; // @constdefine TBD
  3461. RIL_CAPS_SPEED1_4800_V120 = $00002000; // @constdefine TBD
  3462. RIL_CAPS_SPEED1_9600_V32 = $00004000; // @constdefine TBD
  3463. RIL_CAPS_SPEED1_9600_V34 = $00008000; // @constdefine TBD
  3464. RIL_CAPS_SPEED1_9600_V110 = $00010000; // @constdefine TBD
  3465. RIL_CAPS_SPEED1_9600_V120 = $00020000; // @constdefine TBD
  3466. RIL_CAPS_SPEED1_14400_V34 = $00040000; // @constdefine TBD
  3467. RIL_CAPS_SPEED1_14400_V110 = $00080000; // @constdefine TBD
  3468. RIL_CAPS_SPEED1_14400_V120 = $00100000; // @constdefine TBD
  3469. RIL_CAPS_SPEED1_19200_V34 = $00200000; // @constdefine TBD
  3470. RIL_CAPS_SPEED1_19200_V110 = $00400000; // @constdefine TBD
  3471. RIL_CAPS_SPEED1_19200_V120 = $00800000; // @constdefine TBD
  3472. RIL_CAPS_SPEED1_28800_V34 = $01000000; // @constdefine TBD
  3473. RIL_CAPS_SPEED1_28800_V110 = $02000000; // @constdefine TBD
  3474. RIL_CAPS_SPEED1_28800_V120 = $04000000; // @constdefine TBD
  3475. RIL_CAPS_SPEED1_38400_V110 = $08000000; // @constdefine TBD
  3476. RIL_CAPS_SPEED1_38400_V120 = $10000000; // @constdefine TBD
  3477. RIL_CAPS_SPEED1_48000_V110 = $20000000; // @constdefine TBD
  3478. RIL_CAPS_SPEED1_48000_V120 = $40000000; // @constdefine TBD
  3479. RIL_CAPS_SPEED1_56000_V110 = $80000000; // @constdefine TBD
  3480. // -----------------------------------------------------------------------------
  3481. //
  3482. // @doc EXTERNAL
  3483. //
  3484. // @constants Caps Bearer Speed2 | Bearer service speed capabilities (second set)
  3485. //
  3486. // @comm None
  3487. //
  3488. // -----------------------------------------------------------------------------
  3489. const
  3490. RIL_CAPS_SPEED2_56000_V120 = $00000001; // @constdefine TBD
  3491. RIL_CAPS_SPEED2_56000_TRANSP = $00000002; // @constdefine TBD
  3492. RIL_CAPS_SPEED2_64000_TRANSP = $00000004; // @constdefine TBD
  3493. RIL_CAPS_SPEED2_32000_PIAFS32K = $00000008; // @constdefine TBD
  3494. RIL_CAPS_SPEED2_64000_PIAFS64K = $00000010; // @constdefine TBD
  3495. RIL_CAPS_SPEED2_28800_MULTIMEDIA = $00000020; // @constdefine TBD
  3496. RIL_CAPS_SPEED2_32000_MULTIMEDIA = $00000040; // @constdefine TBD
  3497. RIL_CAPS_SPEED2_33600_MULTIMEDIA = $00000080; // @constdefine TBD
  3498. RIL_CAPS_SPEED2_56000_MULTIMEDIA = $00000100; // @constdefine TBD
  3499. RIL_CAPS_SPEED2_64000_MULTIMEDIA = $00000200; // @constdefine TBD
  3500. // -----------------------------------------------------------------------------
  3501. //
  3502. // @doc EXTERNAL
  3503. //
  3504. // @constants Caps Bearer Name | Bearer service name capabilities
  3505. //
  3506. // @comm None
  3507. //
  3508. // -----------------------------------------------------------------------------
  3509. const
  3510. RIL_CAPS_BSVCNAME_DATACIRCUIT_ASYNC_UDI_MODEM = $00000001; // @constdefine TBD
  3511. RIL_CAPS_BSVCNAME_DATACIRCUIT_SYNC_UDI_MODEM = $00000002; // @constdefine TBD
  3512. RIL_CAPS_BSVCNAME_PADACCESS_ASYNC_UDI = $00000004; // @constdefine TBD
  3513. RIL_CAPS_BSVCNAME_PACKETACCESS_SYNC_UDI = $00000008; // @constdefine TBD
  3514. RIL_CAPS_BSVCNAME_DATACIRCUIT_ASYNC_RDI = $00000010; // @constdefine TBD
  3515. RIL_CAPS_BSVCNAME_DATACIRCUIT_SYNC_RDI = $00000020; // @constdefine TBD
  3516. RIL_CAPS_BSVCNAME_PADACCESS_ASYNC_RDI = $00000040; // @constdefine TBD
  3517. RIL_CAPS_BSVCNAME_PACKETACCESS_SYNC_RDI = $00000080; // @constdefine TBD
  3518. // -----------------------------------------------------------------------------
  3519. //
  3520. // @doc EXTERNAL
  3521. //
  3522. // @constants Bearer CE | Bearer service connection element capabilities
  3523. //
  3524. // @comm None
  3525. //
  3526. // -----------------------------------------------------------------------------
  3527. const
  3528. RIL_CAPS_BSVCCE_TRANSPARENT = $00000001; // @constdefine TBD
  3529. RIL_CAPS_BSVCCE_NONTRANSPARENT = $00000002; // @constdefine TBD
  3530. RIL_CAPS_BSVCCE_BOTH_TRANSPARENT = $00000004; // @constdefine TBD
  3531. RIL_CAPS_BSVCCE_BOTH_NONTRANSPARENT = $00000008; // @constdefine TBD
  3532. // -----------------------------------------------------------------------------
  3533. //
  3534. // @doc EXTERNAL
  3535. //
  3536. // @constants Caps Equipment | Equipment state capabilities
  3537. //
  3538. // @comm None
  3539. //
  3540. // -----------------------------------------------------------------------------
  3541. const
  3542. RIL_CAPS_EQSTATE_MINIMUM = $00000001; // @constdefine TBD
  3543. RIL_CAPS_EQSTATE_FULL = $00000002; // @constdefine TBD
  3544. RIL_CAPS_EQSTATE_DISABLETX = $00000004; // @constdefine TBD
  3545. RIL_CAPS_EQSTATE_DISABLERX = $00000008; // @constdefine TBD
  3546. RIL_CAPS_EQSTATE_DISABLETXANDRX = $00000010; // @constdefine TBD
  3547. // -----------------------------------------------------------------------------
  3548. //
  3549. // @doc EXTERNAL
  3550. //
  3551. // @constants Caps Phonebook | Phonebook storage location capabilities
  3552. //
  3553. // @comm None
  3554. //
  3555. // -----------------------------------------------------------------------------
  3556. const
  3557. RIL_CAPS_PBLOC_SIMEMERGENCY = $00000001; // @constdefine TBD
  3558. RIL_CAPS_PBLOC_SIMFIXDIALING = $00000002; // @constdefine TBD
  3559. RIL_CAPS_PBLOC_SIMLASTDIALING = $00000004; // @constdefine TBD
  3560. RIL_CAPS_PBLOC_OWNNUMBERS = $00000008; // @constdefine TBD
  3561. RIL_CAPS_PBLOC_SIMPHONEBOOK = $00000010; // @constdefine TBD
  3562. // -----------------------------------------------------------------------------
  3563. //
  3564. // @doc EXTERNAL
  3565. //
  3566. // @constants Caps Message Service | Message service type capabilities
  3567. //
  3568. // @comm None
  3569. //
  3570. // -----------------------------------------------------------------------------
  3571. const
  3572. RIL_CAPS_MSGSVCTYPE_PHASE2 = $00000001; // @constdefine TBD
  3573. RIL_CAPS_MSGSVCTYPE_PHASE2PLUS = $00000002; // @constdefine TBD
  3574. // -----------------------------------------------------------------------------
  3575. //
  3576. // @doc EXTERNAL
  3577. //
  3578. // @constants Caps Message Storage | Message storage location capabilities
  3579. //
  3580. // @comm None
  3581. //
  3582. // -----------------------------------------------------------------------------
  3583. const
  3584. RIL_CAPS_MSGLOC_BROADCAST = $00000001; // @constdefine TBD
  3585. RIL_CAPS_MSGLOC_SIM = $00000002; // @constdefine TBD
  3586. RIL_CAPS_MSGLOC_STATUSREPORT = $00000004; // @constdefine TBD
  3587. // -----------------------------------------------------------------------------
  3588. //
  3589. // @doc EXTERNAL
  3590. //
  3591. // @constants Caps DCS Language | Message broadcast data coding scheme language capabilities
  3592. //
  3593. // @comm None
  3594. //
  3595. // -----------------------------------------------------------------------------
  3596. const
  3597. RIL_CAPS_DCSLANG_GERMAN = RIL_DCSLANG_GERMAN; // @constdefine TBD
  3598. RIL_CAPS_DCSLANG_ENGLISH = RIL_DCSLANG_ENGLISH; // @constdefine TBD
  3599. RIL_CAPS_DCSLANG_ITALIAN = RIL_DCSLANG_ITALIAN; // @constdefine TBD
  3600. RIL_CAPS_DCSLANG_FRENCH = RIL_DCSLANG_FRENCH; // @constdefine TBD
  3601. RIL_CAPS_DCSLANG_SPANISH = RIL_DCSLANG_SPANISH; // @constdefine TBD
  3602. RIL_CAPS_DCSLANG_DUTCH = RIL_DCSLANG_DUTCH; // @constdefine TBD
  3603. RIL_CAPS_DCSLANG_SWEDISH = RIL_DCSLANG_SWEDISH; // @constdefine TBD
  3604. RIL_CAPS_DCSLANG_DANISH = RIL_DCSLANG_DANISH; // @constdefine TBD
  3605. RIL_CAPS_DCSLANG_PORTUGUESE = RIL_DCSLANG_PORTUGUESE; // @constdefine TBD
  3606. RIL_CAPS_DCSLANG_FINNISH = RIL_DCSLANG_FINNISH; // @constdefine TBD
  3607. RIL_CAPS_DCSLANG_NORWEGIAN = RIL_DCSLANG_NORWEGIAN; // @constdefine TBD
  3608. RIL_CAPS_DCSLANG_GREEK = RIL_DCSLANG_GREEK; // @constdefine TBD
  3609. RIL_CAPS_DCSLANG_TURKISH = RIL_DCSLANG_TURKISH; // @constdefine TBD
  3610. RIL_CAPS_DCSLANG_HUNGARIAN = RIL_DCSLANG_HUNGARIAN; // @constdefine TBD
  3611. RIL_CAPS_DCSLANG_POLISH = RIL_DCSLANG_POLISH; // @constdefine TBD
  3612. RIL_CAPS_DCSLANG_CZECH = RIL_DCSLANG_CZECH; // @constdefine TBD
  3613. // -----------------------------------------------------------------------------
  3614. //
  3615. // @doc EXTERNAL
  3616. //
  3617. // @constants Caps Message Status | Message status capabilities
  3618. //
  3619. // @comm None
  3620. //
  3621. // -----------------------------------------------------------------------------
  3622. const
  3623. RIL_CAPS_MSGSTATUS_RECUNREAD = $00000001; // @constdefine TBD
  3624. RIL_CAPS_MSGSTATUS_RECREAD = $00000002; // @constdefine TBD
  3625. RIL_CAPS_MSGSTATUS_STOUNSENT = $00000004; // @constdefine TBD
  3626. RIL_CAPS_MSGSTATUS_STOSENT = $00000008; // @constdefine TBD
  3627. // -----------------------------------------------------------------------------
  3628. //
  3629. // @doc EXTERNAL
  3630. //
  3631. // @constants Caps SIM | SIM capabilities
  3632. //
  3633. // @comm None
  3634. //
  3635. // -----------------------------------------------------------------------------
  3636. const
  3637. RIL_CAPS_SIM_NONE = $00000000; // @constdefine TBD
  3638. RIL_CAPS_SIM_BASIC = $00000001; // @constdefine TBD
  3639. // -----------------------------------------------------------------------------
  3640. //
  3641. // @doc EXTERNAL
  3642. //
  3643. // @constants Caps Phone Lock | Locking faciliy capabilities
  3644. //
  3645. // @comm None
  3646. //
  3647. // -----------------------------------------------------------------------------
  3648. const
  3649. RIL_CAPS_LOCKFACILITY_NONE = $00000000; // @constdefine TBD
  3650. RIL_CAPS_LOCKFACILITY_CNTRL = $00000001; // @constdefine TBD
  3651. RIL_CAPS_LOCKFACILITY_PH_SIM = $00000002; // @constdefine TBD
  3652. RIL_CAPS_LOCKFACILITY_PH_FSIM = $00000004; // @constdefine TBD
  3653. RIL_CAPS_LOCKFACILITY_SIM = $00000008; // @constdefine TBD
  3654. RIL_CAPS_LOCKFACILITY_SIM_PIN2 = $00000010; // @constdefine TBD
  3655. RIL_CAPS_LOCKFACILITY_SIM_FIXEDIALING = $00000020; // @constdefine TBD
  3656. RIL_CAPS_LOCKFACILITY_NETWORKPERS = $00000040; // @constdefine TBD
  3657. RIL_CAPS_LOCKFACILITY_NETWORKSUBPERS = $00000080; // @constdefine TBD
  3658. RIL_CAPS_LOCKFACILITY_SERVICEPROVPERS = $00000100; // @constdefine TBD
  3659. RIL_CAPS_LOCKFACILITY_CORPPERS = $00000200; // @constdefine TBD
  3660. // -----------------------------------------------------------------------------
  3661. //
  3662. // @doc EXTERNAL
  3663. //
  3664. // @constants Caps Call Barr | Call barring capabilities
  3665. //
  3666. // @comm None
  3667. //
  3668. // -----------------------------------------------------------------------------
  3669. const
  3670. RIL_CAPS_BARRTYPE_ALLOUTGOING = $00000001; // @constdefine TBD
  3671. RIL_CAPS_BARRTYPE_OUTGOINGINT = $00000002; // @constdefine TBD
  3672. RIL_CAPS_BARRTYPE_OUTGOINGINTEXTOHOME = $00000004; // @constdefine TBD
  3673. RIL_CAPS_BARRTYPE_ALLINCOMING = $00000008; // @constdefine TBD
  3674. RIL_CAPS_BARRTYPE_INCOMINGROAMING = $00000010; // @constdefine TBD
  3675. RIL_CAPS_BARRTYPE_INCOMINGNOTINSIM = $00000020; // @constdefine TBD
  3676. RIL_CAPS_BARRTYPE_ALLBARRING = $00000040; // @constdefine TBD
  3677. RIL_CAPS_BARRTYPE_ALLOUTGOINGBARRING = $00000080; // @constdefine TBD
  3678. RIL_CAPS_BARRTYPE_ALLINCOMINGBARRING = $00000100; // @constdefine TBD
  3679. // -----------------------------------------------------------------------------
  3680. //
  3681. // @doc EXTERNAL
  3682. //
  3683. // @constants Caps Forwarding | Forwarding reason capabilities
  3684. //
  3685. // @comm None
  3686. //
  3687. // -----------------------------------------------------------------------------
  3688. const
  3689. RIL_CAPS_FWDREASON_UNCONDITIONAL = $00000001; // @constdefine TBD
  3690. RIL_CAPS_FWDREASON_MOBILEBUSY = $00000002; // @constdefine TBD
  3691. RIL_CAPS_FWDREASON_NOREPLY = $00000004; // @constdefine TBD
  3692. RIL_CAPS_FWDREASON_UNREACHABLE = $00000008; // @constdefine TBD
  3693. RIL_CAPS_FWDREASON_ALLFORWARDING = $00000010; // @constdefine TBD
  3694. RIL_CAPS_FWDREASON_ALLCONDITIONAL = $00000020; // @constdefine TBD
  3695. // -----------------------------------------------------------------------------
  3696. //
  3697. // @doc EXTERNAL
  3698. //
  3699. // @constants Caps Info Class | Telephony information class capabilities
  3700. //
  3701. // @comm None
  3702. //
  3703. // -----------------------------------------------------------------------------
  3704. const
  3705. RIL_CAPS_INFOCLASS_VOICE = RIL_INFOCLASS_VOICE; // @constdefine TBD
  3706. RIL_CAPS_INFOCLASS_DATA = RIL_INFOCLASS_DATA; // @constdefine TBD
  3707. RIL_CAPS_INFOCLASS_FAX = RIL_INFOCLASS_FAX; // @constdefine TBD
  3708. RIL_CAPS_INFOCLASS_SMS = RIL_INFOCLASS_SMS; // @constdefine TBD
  3709. RIL_CAPS_INFOCLASS_DATACIRCUITSYNC = RIL_INFOCLASS_DATACIRCUITSYNC; // @constdefine TBD
  3710. RIL_CAPS_INFOCLASS_DATACIRCUITASYNC = RIL_INFOCLASS_DATACIRCUITASYNC; // @constdefine TBD
  3711. RIL_CAPS_INFOCLASS_PACKETACCESS = RIL_INFOCLASS_PACKETACCESS; // @constdefine TBD
  3712. RIL_CAPS_INFOCLASS_PADACCESS = RIL_INFOCLASS_PADACCESS; // @constdefine TBD
  3713. // -----------------------------------------------------------------------------
  3714. //
  3715. // @doc EXTERNAL
  3716. //
  3717. // @constants Caps HSCSD Traffic Channel | HSCSD traffic channel coding capabilities
  3718. //
  3719. // @comm None
  3720. //
  3721. // -----------------------------------------------------------------------------
  3722. const
  3723. RIL_CAPS_HSCSDCODING_4800_FULLRATE = RIL_HSCSDCODING_4800_FULLRATE; // @constdefine TBD
  3724. RIL_CAPS_HSCSDCODING_9600_FULLRATE = RIL_HSCSDCODING_9600_FULLRATE; // @constdefine TBD
  3725. RIL_CAPS_HSCSDCODING_14400_FULLRATE = RIL_HSCSDCODING_14400_FULLRATE; // @constdefine TBD
  3726. // -----------------------------------------------------------------------------
  3727. //
  3728. // @doc EXTERNAL
  3729. //
  3730. // @constants Caps HSCSD Air Interface | HSCSD air interface user rate capabilities
  3731. //
  3732. // @comm None
  3733. //
  3734. // -----------------------------------------------------------------------------
  3735. const
  3736. RIL_CAPS_HSCSDAIURATE_9600 = $00000001; // @constdefine TBD
  3737. RIL_CAPS_HSCSDAIURATE_14400 = $00000002; // @constdefine TBD
  3738. RIL_CAPS_HSCSDAIURATE_19200 = $00000004; // @constdefine TBD
  3739. RIL_CAPS_HSCSDAIURATE_28800 = $00000008; // @constdefine TBD
  3740. RIL_CAPS_HSCSDAIURATE_38400 = $00000010; // @constdefine TBD
  3741. RIL_CAPS_HSCSDAIURATE_43200 = $00000020; // @constdefine TBD
  3742. RIL_CAPS_HSCSDAIURATE_57600 = $00000040; // @constdefine TBD
  3743. // -----------------------------------------------------------------------------
  3744. //
  3745. // @doc EXTERNAL
  3746. //
  3747. // @constants Caps SIM Toolkit | SIM Toolkit notification capabilities
  3748. //
  3749. // @comm None
  3750. //
  3751. // -----------------------------------------------------------------------------
  3752. const
  3753. RIL_CAPS_NOTIFY_SIMTOOLKITCMD = $00000001; // @constdefine TBD
  3754. RIL_CAPS_NOTIFY_SIMTOOLKITCALLSETUP = $00000002; // @constdefine TBD
  3755. RIL_CAPS_NOTIFY_SIMTOOLKITEVENT = $00000004; // @constdefine TBD
  3756. // -----------------------------------------------------------------------------
  3757. //
  3758. // @doc EXTERNAL
  3759. //
  3760. // @constants Caps Signal Implemetation Quality | Signal Quality Implemetation Capabilities
  3761. //
  3762. // @comm None
  3763. //
  3764. // -----------------------------------------------------------------------------
  3765. const
  3766. RIL_CAPS_SIGNALQUALITY_NOTIFICATION = $00000001; // @constdefine The Radio Module can deliver unsolicited Signal Quality Notifications
  3767. RIL_CAPS_SIGNALQUALITY_POLLING = $00000002; // @constdefine The Higher layers can poll the radio module in order to get the Signal Quality
  3768. // -----------------------------------------------------------------------------
  3769. //
  3770. // @doc EXTERNAL
  3771. //
  3772. // @constants Caps Radio Notificaiton Implemetation | Radio Notificaiton Implemetation Capabilities
  3773. //
  3774. // @comm None
  3775. //
  3776. // -----------------------------------------------------------------------------
  3777. const
  3778. RIL_CAPS_NOTIFICATION_CALLLIST = $00000001; // @constdefine The Radio Module can deliver unsolicited notifications of call list information
  3779. RIL_CAPS_NOTIFICATION_LINESTATUS = $00000002; // @constdefine The Radio Module can deliver unsolicited notifications of line status
  3780. RIL_CAPS_NOTIFICATION_SIGNALQUALITY = $00000004; // @constdefine The Radio Module can deliver unsolicited notifications of signal quality
  3781. RIL_CAPS_NOTIFICATION_BEARERSERVICEOPTIONS = $00000008; // @constdefine The Radio Module can deliver unsolicited notifications of bearer service options
  3782. RIL_CAPS_NOTIFICATION_DATACOMPRESSION = $00000010; // @constdefine The Radio Module can deliver unsolicited notifications of data compression
  3783. RIL_CAPS_NOTIFICATION_EQUIPMENTSTATE = $00000020; // @constdefine The Radio Module can deliver unsolicited notifications of equipment state
  3784. RIL_CAPS_NOTIFICATION_ERRORCORRECTION = $00000040; // @constdefine The Radio Module can deliver unsolicited notifications of error correction
  3785. RIL_CAPS_NOTIFICATION_GPRSADDRESS = $00000080; // @constdefine The Radio Module can deliver unsolicited notifications of GPRS address
  3786. RIL_CAPS_NOTIFICATION_GPRSATTACHED = $00000100; // @constdefine The Radio Module can deliver unsolicited notifications of GPRS attached status
  3787. RIL_CAPS_NOTIFICATION_GPRSCONTEXTLIST = $00000200; // @constdefine The Radio Module can deliver unsolicited notifications of GPRS context list
  3788. RIL_CAPS_NOTIFICATION_GPRSCONTEXTACTIVATEDLIST = $00000400; // @constdefine The Radio Module can deliver unsolicited notifications of GPRS context activated list
  3789. RIL_CAPS_NOTIFICATION_GPRSREGISTRATIONSTATUS = $00000800; // @constdefine The Radio Module can deliver unsolicited notifications of GPRS registration status
  3790. RIL_CAPS_NOTIFICATION_MINIMUMQUALITYOFSERVICELIST = $00001000; // @constdefine The Radio Module can deliver unsolicited notifications of minimum QoS list
  3791. RIL_CAPS_NOTIFICATION_REGISTRATIONSTATUS = $00002000; // @constdefine The Radio Module can deliver unsolicited notifications of registration status
  3792. RIL_CAPS_NOTIFICATION_REQUESTEDQUALITYOFSERVICELIST = $00004000; // @constdefine The Radio Module can deliver unsolicited notifications of requested QoS list
  3793. RIL_CAPS_NOTIFICATION_RLPOPTIONS = $00008000; // @constdefine The Radio Module can deliver unsolicited notifications of RLP options
  3794. // -----------------------------------------------------------------------------
  3795. //
  3796. // @doc EXTERNAL
  3797. //
  3798. // @constants Caps Radio Notificaiton Implemetation Registry Key | Radio Notificaiton Implemetation Capabilities Registry Key
  3799. //
  3800. // @comm None
  3801. //
  3802. // -----------------------------------------------------------------------------
  3803. const
  3804. RIL_CAPS_NOTIFICATION_KEY = 'Comm\Cellular\RIL';
  3805. RIL_CAPS_NOTIFICATION_IMPL_PARAMS = 'CapsNotificationImplParams';
  3806. // -----------------------------------------------------------------------------
  3807. //
  3808. // @doc EXTERNAL
  3809. //
  3810. // @constants Maximum size | Maximum size for a call list returned from radio
  3811. //
  3812. // @comm None
  3813. //
  3814. // -----------------------------------------------------------------------------
  3815. const
  3816. RIL_CALLLIST_MAXSIZE = 10;
  3817. // -----------------------------------------------------------------------------
  3818. //
  3819. // @doc EXTERNAL
  3820. //
  3821. // @constants Maximum size | Maximum size for a GPRS context list returned from radio
  3822. //
  3823. // @comm None
  3824. //
  3825. // -----------------------------------------------------------------------------
  3826. const
  3827. RIL_GPRSCONTEXTLIST_MAXSIZE = 10;
  3828. // -----------------------------------------------------------------------------
  3829. //
  3830. // @doc EXTERNAL
  3831. //
  3832. // @constants Maximum size | Maximum size for a GPRS context activated list returned from radio
  3833. //
  3834. // @comm None
  3835. //
  3836. // -----------------------------------------------------------------------------
  3837. const
  3838. RIL_GPRSCONTEXTACTIVATEDLIST_MAXSIZE = 10;
  3839. // -----------------------------------------------------------------------------
  3840. //
  3841. // @doc EXTERNAL
  3842. //
  3843. // @constants Maximum size | Maximum size for a QoS list returned from radio
  3844. //
  3845. // @comm None
  3846. //
  3847. // -----------------------------------------------------------------------------
  3848. const
  3849. RIL_QOSLIST_MAXSIZE = 10;
  3850. // -----------------------------------------------------------------------------
  3851. //
  3852. // @doc EXTERNAL
  3853. //
  3854. // @constants Maximum lengths | Maximum lengths for string parameters
  3855. //
  3856. // @comm None
  3857. //
  3858. // -----------------------------------------------------------------------------
  3859. const
  3860. MAXLENGTH_ADDRESS = 256; // @constdefine 256
  3861. MAXLENGTH_SUBADDR = 256; // @constdefine 256
  3862. MAXLENGTH_DESCRIPTION = 256; // @constdefine 256
  3863. MAXLENGTH_OPERATOR = 32; // @constdefine 32
  3864. MAXLENGTH_OPERATOR_LONG = 32; // @constdefine 32
  3865. MAXLENGTH_OPERATOR_SHORT = 16; // @constdefine 16
  3866. MAXLENGTH_OPERATOR_NUMERIC = 16; // @constdefine 16
  3867. MAXLENGTH_OPERATOR_COUNTRY_CODE = 8; // @constdefine 8
  3868. MAXLENGTH_SERVCTR = 256; // @constdefine 256
  3869. MAXLENGTH_PASSWORD = 256; // @constdefine 256
  3870. MAXLENGTH_ERRSHORT = 256; // @constdefine 256
  3871. MAXLENGTH_ERRLONG = 256; // @constdefine 256
  3872. MAXLENGTH_EQUIPINFO = 128; // @constdefine 128
  3873. MAXLENGTH_PHONEBOOKADDR = 256; // @constdefine 256
  3874. MAXLENGTH_PHONEBOOKTEXT = 256; // @constdefine 256
  3875. MAXLENGTH_CURRENCY = 256; // @constdefine 256
  3876. MAXLENGTH_AREAID = 256; // @constdefine 256
  3877. MAXLENGTH_CELLID = 256; // @constdefine 256
  3878. MAXLENGTH_HDR = 256; // @constdefine 256
  3879. MAXLENGTH_MSG = 256; // @constdefine 256
  3880. MAXLENGTH_CMD = 256; // @constdefine 256
  3881. MAXLENGTH_MSGIDS = 256; // @constdefine 256
  3882. MAXLENGTH_USERID = 256; // @constdefine 256
  3883. MAXLENGTH_DTMF = 256; // @constdefine 256
  3884. MAXLENGTH_GPRSADDRESS = 64; // @constdefine 64
  3885. MAXLENGTH_GPRSACCESSPOINTNAME = 64; // @constdefine 64
  3886. MAXLENGTH_BCCH = 48; // @constdefine 48
  3887. MAXLENGTH_NMR = 16; // @constdefine 16
  3888. MAXLENGTH_ATR = 33; // @constdefine 33
  3889. MAXLENGTH_RADIOLOG = 128; // @constdefine 128
  3890. MAXLENGTH_CALLTYPEKEY = 128; // @constdefine 128
  3891. MAXLENGTH_MMISTRING = 256; // @constdefine 256
  3892. //
  3893. // Registry path and variable defintions
  3894. //
  3895. const
  3896. RIL_REGISTRY_ROOT = HKEY_LOCAL_MACHINE;
  3897. RIL_SECURE_REGISTRY_KEY = 'Comm\Cellular\Ril';
  3898. RIL_REGISTRY_VALUE_PDPCONTEXTS = 'Contexts';
  3899. RIL_REGISTRY_VALUE_PACKETIO = 'Packet';
  3900. RIL_REGISTRY_VALUE_WAITFORGPRSDEACTRESPONSE = 'WaitForDeactRsp';
  3901. RIL_REGISTRY_VALUE_EONSENABLED = 'EONSEnabled';
  3902. //
  3903. // Event logging registry definitions
  3904. //
  3905. const
  3906. CELLULAR_REGISTRYKEY_EVENTLOGGING = 'Comm\Cellular\EventLogging';
  3907. CELLULAR_REGISTRYVALUE_EVENTLOGGING_ENABLED = 'Enabled';
  3908. CELLULAR_REGISTRYVALUE_EVENTLOGGING_SOURCENAME = 'Source';
  3909. //
  3910. // Data types
  3911. //
  3912. // -----------------------------------------------------------------------------
  3913. //
  3914. // @doc EXTERNAL
  3915. //
  3916. // @struct RILADDRESS | Represents a phone number
  3917. //
  3918. // @comm None
  3919. //
  3920. // -----------------------------------------------------------------------------
  3921. type
  3922. riladdress_tag = record
  3923. cbSize:DWORD; // @field structure size in bytes
  3924. dwParams:DWORD; // @field indicates valid parameters
  3925. dwType:DWORD; // @field type of number
  3926. dwNumPlan:DWORD; // @field numbering plan
  3927. wszAddress:array[0..MAXLENGTH_ADDRESS-1] of WCHAR; // @field address (min 3, max 43)
  3928. end;
  3929. RILADDRESS = riladdress_tag;
  3930. LPRILADDRESS = ^riladdress_tag;
  3931. // -----------------------------------------------------------------------------
  3932. //
  3933. // @doc EXTERNAL
  3934. //
  3935. // @struct RILSUBADDRESS | The subaddress of a called party
  3936. //
  3937. // @comm None
  3938. //
  3939. // -----------------------------------------------------------------------------
  3940. type
  3941. rilsubaddress_tag = record
  3942. cbSize:DWORD; // @field structure size in bytes
  3943. dwParams:DWORD; // @field indicates valid parameters
  3944. dwType:DWORD; // @field type of subaddress
  3945. wszSubAddress:array[0..MAXLENGTH_SUBADDR-1] of WCHAR; // @field subaddress (min 2, max 23)
  3946. end;
  3947. RILSUBADDRESS = rilsubaddress_tag;
  3948. LPRILSUBADDRESS = ^rilsubaddress_tag;
  3949. // -----------------------------------------------------------------------------
  3950. //
  3951. // @doc EXTERNAL
  3952. //
  3953. // @struct RILSERIALPORTSTATS | Statistics of the virtual serial port
  3954. //
  3955. // @comm None
  3956. //
  3957. // -----------------------------------------------------------------------------
  3958. type
  3959. rilserialportstats_tag = record
  3960. cbSize:DWORD; // @field structure size in bytes
  3961. dwParams:DWORD; // @field indicates valid parameters
  3962. dwReadBitsPerSecond:DWORD; // @field bit rate for reading data
  3963. dwWrittenBitsPerSecond:DWORD; // @field bit rate for writing data
  3964. end;
  3965. RILSERIALPORTSTATS = rilserialportstats_tag;
  3966. LPRILSERIALPORTSTATS = ^rilserialportstats_tag;
  3967. // -----------------------------------------------------------------------------
  3968. //
  3969. // @doc EXTERNAL
  3970. //
  3971. // @struct RILSUBSCRIBERINFO | A phone number assigned to the user
  3972. //
  3973. // @comm None
  3974. //
  3975. // -----------------------------------------------------------------------------
  3976. type
  3977. rilsubscriberinfo_tag = record
  3978. cbSize:DWORD; // @field structure size in bytes
  3979. dwParams:DWORD; // @field indicates valid parameters
  3980. raAddress:RILADDRESS; // @field the assigned address
  3981. wszDescription:array[0..MAXLENGTH_DESCRIPTION-1] of WCHAR; // @field text relating to this subscriber
  3982. dwSpeed:DWORD; // @field data rate related to this number
  3983. dwService:DWORD; // @field the service related to this number
  3984. dwITC:DWORD; // @field information transfer capability
  3985. dwAddressId:DWORD; // @field the address ID of this number
  3986. end;
  3987. RILSUBSCRIBERINFO = rilsubscriberinfo_tag;
  3988. LPRILSUBSCRIBERINFO = ^rilsubscriberinfo_tag;
  3989. // -----------------------------------------------------------------------------
  3990. //
  3991. // @doc EXTERNAL
  3992. //
  3993. // @struct RILOPERATORNAMES | The different representations of an operator
  3994. //
  3995. // @comm None
  3996. //
  3997. // -----------------------------------------------------------------------------
  3998. type
  3999. riloperatornames_tag = record
  4000. cbSize:DWORD; // @field structure size in bytes
  4001. dwParams:DWORD; // @field indicates valid parameters
  4002. szLongName:array[0..MAXLENGTH_OPERATOR_LONG-1] of AnsiChar; // @field long representation (max 16 characters)
  4003. szShortName:array[0..MAXLENGTH_OPERATOR_SHORT-1] of AnsiChar; // @field short representation (max 8 characters)
  4004. szNumName:array[0..MAXLENGTH_OPERATOR_NUMERIC-1] of AnsiChar; // @field numeric representation (3 digit country code & 2 digit network code)
  4005. szCountryCode:array[0..MAXLENGTH_OPERATOR_COUNTRY_CODE-1] of AnsiChar; // @field 2 character ISO 3166 country repesentation of the MCC
  4006. end;
  4007. RILOPERATORNAMES = riloperatornames_tag;
  4008. LPRILOPERATORNAMES = ^riloperatornames_tag;
  4009. // -----------------------------------------------------------------------------
  4010. //
  4011. // @doc EXTERNAL
  4012. //
  4013. // @struct RILOPERATORINFO | Indicates status of a particular operator
  4014. //
  4015. // @comm None
  4016. //
  4017. // -----------------------------------------------------------------------------
  4018. type
  4019. riloperatorinfo_tag = record
  4020. cbSize:DWORD; // @field structure size in bytes
  4021. dwParams:DWORD; // @field indicates valid parameters
  4022. dwIndex:DWORD; // @field index, if applicable
  4023. dwStatus:DWORD; // @field registration status, if applicable
  4024. ronNames:RILOPERATORNAMES; // @field representations of an operator
  4025. end;
  4026. RILOPERATORINFO = riloperatorinfo_tag;
  4027. LPRILOPERATORINFO = ^riloperatorinfo_tag;
  4028. // -----------------------------------------------------------------------------
  4029. //
  4030. // @doc EXTERNAL
  4031. //
  4032. // @struct RILCALLERIDSETTINGS | Caller ID settings
  4033. //
  4034. // @comm None
  4035. //
  4036. // -----------------------------------------------------------------------------
  4037. type
  4038. rilcalleridsettings_tag = record
  4039. cbSize:DWORD; // @field structure size in bytes
  4040. dwParams:DWORD; // @field indicates valid parameters
  4041. dwStatus:DWORD; // @field activation status
  4042. dwProvisioning:DWORD; // @field network provisioning status
  4043. end;
  4044. RILCALLERIDSETTINGS = rilcalleridsettings_tag;
  4045. LPRILCALLERIDSETTINGS = ^rilcalleridsettings_tag;
  4046. // -----------------------------------------------------------------------------
  4047. //
  4048. // @doc EXTERNAL
  4049. //
  4050. // @struct RILHIDEIDSETTINGS | Hide ID settings
  4051. //
  4052. // @comm None
  4053. //
  4054. // -----------------------------------------------------------------------------
  4055. type
  4056. rilhideidsettings_tag = record
  4057. cbSize:DWORD; // @field structure size in bytes
  4058. dwParams:DWORD; // @field indicates valid parameters
  4059. dwStatus:DWORD; // @field activation status
  4060. dwProvisioning:DWORD; // @field network provisioning status
  4061. end;
  4062. RILHIDEIDSETTINGS = rilhideidsettings_tag;
  4063. LPRILHIDEIDSETTINGS = ^rilhideidsettings_tag;
  4064. // -----------------------------------------------------------------------------
  4065. //
  4066. // @doc EXTERNAL
  4067. //
  4068. // @struct RILDIALEDIDSETTINGS | Dialed ID settings
  4069. //
  4070. // @comm None
  4071. //
  4072. // -----------------------------------------------------------------------------
  4073. type
  4074. rildialedidsettings_tag = record
  4075. cbSize:DWORD; // @field structure size in bytes
  4076. dwParams:DWORD; // @field indicates valid parameters
  4077. dwStatus:DWORD; // @field activation status
  4078. dwProvisioning:DWORD; // @field network provisioning status
  4079. end;
  4080. RILDIALEDIDSETTINGS = rildialedidsettings_tag;
  4081. LPRILDIALEDIDSETTINGS = ^rildialedidsettings_tag;
  4082. // -----------------------------------------------------------------------------
  4083. //
  4084. // @doc EXTERNAL
  4085. //
  4086. // @struct RILHIDECONNECTEDIDSETTINGS | Hide Connected ID settings
  4087. //
  4088. // @comm None
  4089. //
  4090. // -----------------------------------------------------------------------------
  4091. type
  4092. rilhideconnectedidsettings_tag = record
  4093. cbSize:DWORD; // @field structure size in bytes
  4094. dwParams:DWORD; // @field indicates valid parameters
  4095. dwStatus:DWORD; // @field activation status
  4096. dwProvisioning:DWORD; // @field network provisioning status
  4097. end;
  4098. RILHIDECONNECTEDIDSETTINGS = rilhideconnectedidsettings_tag;
  4099. LPRILHIDECONNECTEDIDSETTINGS = ^rilhideconnectedidsettings_tag;
  4100. // -----------------------------------------------------------------------------
  4101. //
  4102. // @doc EXTERNAL
  4103. //
  4104. // @struct RILCLOSEDGROUPSETTINGS | Close user group settings
  4105. //
  4106. // @comm This feature is not used and is untested.
  4107. //
  4108. // -----------------------------------------------------------------------------
  4109. type
  4110. rilclosedgroupsettings_tag = record
  4111. cbSize:DWORD; // @field structure size in bytes
  4112. dwParams:DWORD; // @field indicates valid parameters
  4113. dwStatus:DWORD; // @field activation status
  4114. dwIndex:DWORD; // @field CUG index
  4115. dwInfo:DWORD; // @field additional CUG flags
  4116. end;
  4117. RILCLOSEDGROUPSETTINGS = rilclosedgroupsettings_tag;
  4118. LPRILCLOSEDGROUPSETTINGS = ^rilclosedgroupsettings_tag;
  4119. // -----------------------------------------------------------------------------
  4120. //
  4121. // @doc EXTERNAL
  4122. //
  4123. // @struct RILCALLFORWARDINGSETTING | Call forwarding service settings
  4124. //
  4125. // @comm None
  4126. //
  4127. // -----------------------------------------------------------------------------
  4128. type
  4129. rilcallforwardingsettings_tag = record
  4130. cbSize:DWORD; // @field structure size in bytes
  4131. dwParams:DWORD; // @field indicates valid parameters
  4132. dwStatus:DWORD; // @field activation status
  4133. dwInfoClasses:DWORD; // @field indicates which classes of calls to forward
  4134. raAddress:RILADDRESS; // @field forwarding address
  4135. rsaSubAddress:RILSUBADDRESS; // @field forwarding subaddress
  4136. dwDelayTime:DWORD; // @field seconds to wait in <def RIL_FWDREASON_NOREPLY> case
  4137. end;
  4138. RILCALLFORWARDINGSETTINGS = rilcallforwardingsettings_tag;
  4139. LPRILCALLFORWARDINGSETTINGS = ^rilcallforwardingsettings_tag;
  4140. // -----------------------------------------------------------------------------
  4141. //
  4142. // @doc EXTERNAL
  4143. //
  4144. // @struct RILCALLINFO | Information about a specific call
  4145. //
  4146. // @comm None
  4147. //
  4148. // -----------------------------------------------------------------------------
  4149. type
  4150. rilcallinfo_tag = record
  4151. cbSize:DWORD; // @field structure size in bytes
  4152. dwParams:DWORD; // @field indicates valid parameters
  4153. dwID:DWORD; // @field identifies each call
  4154. dwDirection:DWORD; // @field incoming or outgoing
  4155. dwStatus:DWORD; // @field properties of the call
  4156. dwType:DWORD; // @field voice or data or fax
  4157. dwMultiparty:DWORD; // @field conference call status
  4158. raAddress:RILADDRESS; // @field call address
  4159. wszDescription:array[0..MAXLENGTH_DESCRIPTION-1] of WCHAR; // @field any associated text
  4160. dwDisconnectCode:DWORD; // if dwStatus is disconnected - this contains the reason
  4161. end;
  4162. RILCALLINFO = rilcallinfo_tag;
  4163. LPRILCALLINFO = ^rilcallinfo_tag;
  4164. // -----------------------------------------------------------------------------
  4165. //
  4166. // @doc EXTERNAL
  4167. //
  4168. // @struct RILGAININFO | Audio gain information
  4169. //
  4170. // @comm The minimum and maximum values for both dwTxGain and dwRxGain
  4171. // are 0 and ULONG_MAX (that is, 0xFFFFFFFFUL; see limits.h).
  4172. // Values between these extremes scale linearly.
  4173. //
  4174. // It is the RIL Driver's responsibility to scale these values
  4175. // to match whatever is appropriate for the corresponding radio.
  4176. // So for example, if a radio's gain range is from 0 to 0x1F,
  4177. // the RIL Driver should interpret 0xFFFFFFFF as 0x1F, and map
  4178. // intermediate values proportionately.
  4179. //
  4180. // -----------------------------------------------------------------------------
  4181. type
  4182. rilgaininfo_tag = record
  4183. cbSize:DWORD; // @field structure size in bytes
  4184. dwParams:DWORD; // @field indicates valid parameters
  4185. dwTxGain:DWORD; // @field transmit gain level (128 nominal, 0 automatic)
  4186. dwRxGain:DWORD; // @field receive gain level (128 nominal, 0 automatic)
  4187. end;
  4188. RILGAININFO = rilgaininfo_tag;
  4189. LPRILGAININFO = ^rilgaininfo_tag;
  4190. // -----------------------------------------------------------------------------
  4191. //
  4192. // @doc EXTERNAL
  4193. //
  4194. // @struct RILAUDIODEVICEINFO | Audio device information
  4195. //
  4196. // @comm None
  4197. //
  4198. // -----------------------------------------------------------------------------
  4199. type
  4200. rilaudiodeviceinfo_tag = record
  4201. cbSize:DWORD; // @field structure size in bytes
  4202. dwParams:DWORD; // @field indicates valid parameters
  4203. dwTxDevice:DWORD; // @field transmit device
  4204. dwRxDevice:DWORD; // @field receive device
  4205. end;
  4206. RILAUDIODEVICEINFO = rilaudiodeviceinfo_tag;
  4207. LPRILAUDIODEVICEINFO = ^rilaudiodeviceinfo_tag;
  4208. // -----------------------------------------------------------------------------
  4209. //
  4210. // @doc EXTERNAL
  4211. //
  4212. // @struct RILHSCSDINFO | High speed circuit switched data settings
  4213. //
  4214. // @comm None
  4215. //
  4216. // -----------------------------------------------------------------------------
  4217. type
  4218. rilhscsdinfo_tag = record
  4219. cbSize:DWORD; // @field structure size in bytes
  4220. dwParams:DWORD; // @field indicates valid parameters
  4221. dwTranspRxTimeslots:DWORD; // @field number of receive timeslots for transparent HSCSD calls
  4222. dwTranspChannelCodings:DWORD; // @field accepted channel codings for transparent HSCSD calls
  4223. dwNonTranspRxTimeslots:DWORD; // @field number of receive timeslots for non-transparent HSCSD calls
  4224. dwNonTranspChannelCodings:DWORD; // @field accepted channel codings for non-transparent HSCSD calls
  4225. dwAirInterfaceUserRate:DWORD; // @field air interface user rate for non-transparent HSCSD calls
  4226. dwRxTimeslotsLimit:DWORD; // @field maximum number of receive timeslots to be used during the next non-transparent HSCSD call
  4227. fAutoSvcLevelUpgrading:BOOL; // @field TRUE if automatic user-initiated service level upgrading for non-transparent HSCSD calls is enabled, FALSE otherwise
  4228. end;
  4229. RILHSCSDINFO = rilhscsdinfo_tag;
  4230. LPRILHSCSDINFO = ^rilhscsdinfo_tag;
  4231. // -----------------------------------------------------------------------------
  4232. //
  4233. // @doc EXTERNAL
  4234. //
  4235. // @struct RILCALLHSCSDINFO | High speed circuit switched data information for the current call
  4236. //
  4237. // @comm None
  4238. //
  4239. // -----------------------------------------------------------------------------
  4240. type
  4241. rilcallhscsdinfo_tag = record
  4242. cbSize:DWORD; // @field structure size in bytes
  4243. dwParams:DWORD; // @field indicates valid parameters
  4244. dwRxTimeslots:DWORD; // @field number of receive timeslots currently in use
  4245. dwTxTimeslots:DWORD; // @field number of transmit timeslots currently in use
  4246. dwAirInterfaceUserRate:DWORD; // @field air interface user rate currently in use
  4247. dwChannelCoding:DWORD; // @field current channel coding
  4248. end;
  4249. RILCALLHSCSDINFO = rilcallhscsdinfo_tag;
  4250. LPRILCALLHSCSDINFO = ^rilcallhscsdinfo_tag;
  4251. // -----------------------------------------------------------------------------
  4252. //
  4253. // @doc EXTERNAL
  4254. //
  4255. // @struct RILDATACOMPINFO | Data compression settings
  4256. //
  4257. // @comm None
  4258. //
  4259. // -----------------------------------------------------------------------------
  4260. type
  4261. rildatacompinfo_tag = record
  4262. cbSize:DWORD; // @field structure size in bytes
  4263. dwParams:DWORD; // @field indicates valid parameters
  4264. dwDirection:DWORD; // @field compression in transmit and/or receive direcitons
  4265. dwNegotiation:DWORD; // @field compression is required or optional
  4266. dwMaxDictEntries:DWORD; // @field maximum number of dictionary entries
  4267. dwMaxStringLength:DWORD; // @field maximum string length
  4268. end;
  4269. RILDATACOMPINFO = rildatacompinfo_tag;
  4270. LPRILDATACOMPINFO = ^rildatacompinfo_tag;
  4271. // -----------------------------------------------------------------------------
  4272. //
  4273. // @doc EXTERNAL
  4274. //
  4275. // @struct RILERRORCORRECTIONINFO | Error correction settings
  4276. //
  4277. // @comm None
  4278. //
  4279. // -----------------------------------------------------------------------------
  4280. type
  4281. rilerrorcorrectioninfo_tag = record
  4282. cbSize:DWORD; // @field structure size in bytes
  4283. dwParams:DWORD; // @field indicates valid parameters
  4284. dwOriginalRequest:DWORD; // @field TBD
  4285. dwOriginalFallback:DWORD; // @field TBD
  4286. dwAnswererFallback:DWORD; // @field TBD
  4287. end;
  4288. RILERRORCORRECTIONINFO = rilerrorcorrectioninfo_tag;
  4289. LPRILERRORCORRECTIONINFO = ^rilerrorcorrectioninfo_tag;
  4290. // -----------------------------------------------------------------------------
  4291. //
  4292. // @doc EXTERNAL
  4293. //
  4294. // @struct RILBEARERSVCINFO | Bearer service settings
  4295. //
  4296. // @comm For <def RIL_BSVCCE_BOTH_> constants, the subsequent text indicates the
  4297. // preferred connection element. For instance, <def RIL_BSVCCE_BOTH_TRANSPARENT>
  4298. // means that both transparent and non transparent are supported, but transparent
  4299. // is preferred.
  4300. //
  4301. // -----------------------------------------------------------------------------
  4302. type
  4303. rilbearersvcinfo_tag = record
  4304. cbSize:DWORD; // @field structure size in bytes
  4305. dwParams:DWORD; // @field indicates valid parameters
  4306. dwSpeed:DWORD; // @field offered data speed (protocol dependant)
  4307. dwServiceName:DWORD; // @field type of data service
  4308. dwConnectionElement:DWORD; // @field indicates transparent or non-transparent connection
  4309. end;
  4310. RILBEARERSVCINFO = rilbearersvcinfo_tag;
  4311. LPRILBEARERSVCINFO = ^rilbearersvcinfo_tag;
  4312. // -----------------------------------------------------------------------------
  4313. //
  4314. // @doc EXTERNAL
  4315. //
  4316. // @struct RILRLPINFO | Radio link protocol settings
  4317. //
  4318. // @comm None
  4319. //
  4320. // -----------------------------------------------------------------------------
  4321. //
  4322. type
  4323. rilrlpinfo_tag = record
  4324. cbSize:DWORD; // @field structure size in bytes
  4325. dwParams:DWORD; // @field indicates valid parameters
  4326. dwIWS:DWORD; // @field IWF-to-MS window size
  4327. dwMWS:DWORD; // @field MS-to-IWF window size
  4328. dwAckTimer:DWORD; // @field acknowledgement timer in 10s of milliseconds (T1)
  4329. dwRetransmissionAttempts:DWORD; // @field number of retransmission attempts (N2)
  4330. dwVersion:DWORD; // @field RLP version number
  4331. dwResequencingPeriod:DWORD; // @field resequencing period (T4)
  4332. end;
  4333. RILRLPINFO = rilrlpinfo_tag;
  4334. LPRILRLPINFO = ^rilrlpinfo_tag;
  4335. // -----------------------------------------------------------------------------
  4336. //
  4337. // @doc EXTERNAL
  4338. //
  4339. // @struct RILMSGSERVICEINFO | Messaging service settings
  4340. //
  4341. // @comm None
  4342. //
  4343. // -----------------------------------------------------------------------------
  4344. type
  4345. rilmsgserviceinfo_tag = record
  4346. cbSize:DWORD; // @field structure size in bytes
  4347. dwParams:DWORD; // @field indicates valid parameters
  4348. dwService:DWORD; // @field supported service types
  4349. dwMsgClasses:DWORD; // @field supported message classes
  4350. dwReadLocation:DWORD; // @field currect read location
  4351. dwReadUsed:DWORD; // @field number of fields used
  4352. dwReadTotal:DWORD; // @field total number of fields
  4353. dwWriteLocation:DWORD; // @field currect read location
  4354. dwWriteUsed:DWORD; // @field number of fields used
  4355. dwWriteTotal:DWORD; // @field total number of fields
  4356. dwStoreLocation:DWORD; // @field currect read location
  4357. dwStoreUsed:DWORD; // @field number of fields used
  4358. dwStoreTotal:DWORD; // @field total number of fields
  4359. end;
  4360. RILMSGSERVICEINFO = rilmsgserviceinfo_tag;
  4361. LPRILMSGSERVICEINFO = ^rilmsgserviceinfo_tag;
  4362. // -----------------------------------------------------------------------------
  4363. //
  4364. // @doc EXTERNAL
  4365. //
  4366. // @struct RILMSGDCS | Message data coding scheme
  4367. //
  4368. // @comm None
  4369. //
  4370. // -----------------------------------------------------------------------------
  4371. type
  4372. rilmsgdcs_tag = record
  4373. cbSize:DWORD; // @field structure size in bytes
  4374. dwParams:DWORD; // @field indicates valid parameters
  4375. dwType:DWORD; // @field DCS type
  4376. dwFlags:DWORD; // @field DCS flags
  4377. dwMsgClass:DWORD; // @field message class (Only for RIL_DCSTYPE_GENERAL and RIL_DCSTYPE_MSGCLASS)
  4378. dwAlphabet:DWORD; // @field DCS alphabet
  4379. dwIndication:DWORD; // @field indication (Only for RIL_DCSTYPE_MSGWAIT)
  4380. dwLanguage:DWORD; // @field indication (Only for RIL_DCSTYPE_LANGUAGE)
  4381. end;
  4382. RILMSGDCS = rilmsgdcs_tag;
  4383. LPRILMSGDCS = ^rilmsgdcs_tag;
  4384. // -----------------------------------------------------------------------------
  4385. //
  4386. // @doc EXTERNAL
  4387. //
  4388. // @struct RILRANGE | Range of values
  4389. //
  4390. // @comm None
  4391. //
  4392. // -----------------------------------------------------------------------------
  4393. type
  4394. rilrange_tag = record
  4395. dwMinValue:DWORD; // @field minimum value
  4396. dwMaxValue:DWORD; // @field maximum value
  4397. end;
  4398. RILRANGE = rilrange_tag;
  4399. LPRILRANGE = ^rilrange_tag;
  4400. // -----------------------------------------------------------------------------
  4401. //
  4402. // @doc EXTERNAL
  4403. //
  4404. // @struct RILMSGCONFIG | Messaging configuration
  4405. //
  4406. // @comm None
  4407. //
  4408. // -----------------------------------------------------------------------------
  4409. type
  4410. rilmsgconfig_tag = record
  4411. cbSize:DWORD; // @field structure size in bytes
  4412. dwParams:DWORD; // @field indicates valid parameters
  4413. raSvcCtrAddress:RILADDRESS; // @field service center address
  4414. end;
  4415. RILMSGCONFIG = rilmsgconfig_tag;
  4416. LPRILMSGCONFIG = ^rilmsgconfig_tag;
  4417. // -----------------------------------------------------------------------------
  4418. //
  4419. // @doc EXTERNAL
  4420. //
  4421. // @struct RILCBMSGCONFIG | Cell broadcast messaging configuration
  4422. //
  4423. // @comm None
  4424. //
  4425. // -----------------------------------------------------------------------------
  4426. //#pragma warning(disable : 4200) // Disable "C4200: nonstandard extension used : zero-sized array in struct/union"
  4427. type
  4428. rilcbmsgconfig_tag = record
  4429. cbSize:DWORD; // @field structure size in bytes
  4430. dwParams:DWORD; // @field indicates valid parameters
  4431. dwBroadcastMsgLangs:DWORD; // @field broadcast message languages
  4432. fAccept:BOOL; // @field TRUE if broadcast message ranges are accepted (vs. rejected)
  4433. rgrrBroadcastMsgIDs:array[0..0] of RILRANGE; // @field an array of RILRANGE IDs to set, a same min/max value specifies a single ID
  4434. end;
  4435. RILCBMSGCONFIG = rilcbmsgconfig_tag;
  4436. LPRILCBMSGCONFIG = ^rilcbmsgconfig_tag;
  4437. //#pragma warning(default : 4200)
  4438. // -----------------------------------------------------------------------------
  4439. //
  4440. // @doc EXTERNAL
  4441. //
  4442. // @struct RILMESSAGE | Message data
  4443. //
  4444. // @comm None
  4445. //
  4446. // -----------------------------------------------------------------------------
  4447. type
  4448. // @field RIL_MSGTYPE_IN_DELIVER
  4449. TmsgInDeliver = record
  4450. raOrigAddress:RILADDRESS; // @field originating address
  4451. dwProtocolID:DWORD; // @field message protocol
  4452. rmdDataCoding:RILMSGDCS; // @field data coding scheme
  4453. stSCReceiveTime:SYSTEMTIME; // @field receive time (UTC)
  4454. cbHdrLength:DWORD; // @field length of header in bytes
  4455. cchMsgLength:DWORD; // @field length of body in bytes
  4456. rgbHdr:array[0..MAXLENGTH_HDR-1] of byte; // @field header buffer
  4457. rgbMsg:array[0..MAXLENGTH_MSG-1] of byte; // @field body buffer
  4458. end;
  4459. // @field RIL_MSGTYPE_IN_STATUS
  4460. TmsgInStatus = record
  4461. dwTgtMsgReference:DWORD; // @field target message reference
  4462. raTgtRecipAddress:RILADDRESS; // @field receipient address
  4463. stTgtSCReceiveTime:SYSTEMTIME; // @field receipient receive time (UTC)
  4464. stTgtDischargeTime:SYSTEMTIME; // @field receipient dischage time (UTC)
  4465. dwTgtDlvStatus:DWORD; // @field delivery status
  4466. dwProtocolID:DWORD; // @field message protocol
  4467. rmdDataCoding:RILMSGDCS; // @field data coding scheme
  4468. cbHdrLength:DWORD; // @field length of header in bytes
  4469. cchMsgLength:DWORD; // @field length of body in bytes
  4470. rgbHdr:array[0..MAXLENGTH_HDR-1] of byte; // @field header buffer
  4471. rgbMsg:array[0..MAXLENGTH_MSG-1] of byte; // @field body buffer
  4472. end;
  4473. // @field RIL_MSGTYPE_OUT_SUBMIT
  4474. TmsgOutSubmit = record
  4475. raDestAddress:RILADDRESS; // @field destination address
  4476. dwProtocolID:DWORD; // @field message protocol
  4477. rmdDataCoding:RILMSGDCS; // @field data coding scheme
  4478. dwVPFormat:DWORD; // @field TBD
  4479. stVP:SYSTEMTIME; // @field relative validity period (values are expressed relative to the current time)
  4480. cbHdrLength:DWORD; // @field length of header in bytes
  4481. cchMsgLength:DWORD; // @field length of body in bytes
  4482. rgbHdr:array[0..MAXLENGTH_HDR-1] of byte; // @field header buffer
  4483. rgbMsg:array[0..MAXLENGTH_MSG-1] of byte; // @field body buffer
  4484. end;
  4485. // @field RIL_MSGTYPE_OUT_COMMAND
  4486. TmsgOutCommand = record
  4487. dwProtocolID:DWORD; // @field message protocol
  4488. dwCommandType:DWORD; // @field command type
  4489. dwTgtMsgReference:DWORD; // @field target message reference
  4490. raDestAddress:RILADDRESS; // @field destination address
  4491. cbCmdLength:DWORD; // @field length of command in bytes
  4492. rgbCmd:array[0..MAXLENGTH_CMD-1] of byte; // @field command buffer
  4493. end;
  4494. // @field RIL_MSGTYPE_BC_GENERAL
  4495. TmsgBcGeneral = record
  4496. dwGeoScope:DWORD; // @field message protocol
  4497. dwMsgCode:DWORD; // @field message code
  4498. dwUpdateNumber:DWORD; // @field update number
  4499. dwID:DWORD; // @field identity
  4500. rmdDataCoding:RILMSGDCS; // @field data coding scheme
  4501. dwTotalPages:DWORD; // @field total number of pages
  4502. dwPageNumber:DWORD; // @field current page number
  4503. cchMsgLength:DWORD; // @field length of message in bytes
  4504. rgbMsg:array[0..MAXLENGTH_MSG-1] of byte; // @field message buffer
  4505. end;
  4506. // @field RIL_MSGTYPE_OUT_RAW
  4507. TmsgOutRaw = record
  4508. cchMsgLength:DWORD; // @field length of body in bytes
  4509. rgbMsg:array[0..MAXLENGTH_MSG-1] of byte; // @field message buffer
  4510. end;
  4511. // @field RIL_MSGTYPE_IN_IS637DELIVER
  4512. TmsgIS637InDeliver = record
  4513. raOrigAddress:RILADDRESS; // @field originating address
  4514. rsaOrigSubaddr:RILSUBADDRESS; // @field
  4515. // There is no digit-mode in incoming message because the driver can convert both of them to ASCII
  4516. stSCReceiveTime:SYSTEMTIME; // @field (SMSC Timestamp) receive time (UTC)
  4517. stValidityPeriodAbs:SYSTEMTIME; // @field UTC time
  4518. stValidityPeriodRel:SYSTEMTIME; // @field Relative time
  4519. stDeferredDelTimeAbs:SYSTEMTIME; // @field UTC time
  4520. stDeferredDelTimeRel:SYSTEMTIME; // @field Relative time
  4521. dwNumMsgs:DWORD; // @field Used for Voicemail only. Indicates the number of Messages on Vmail
  4522. raCallBackNumber:RILADDRESS; // @field (Only paging and Text -s) user can give a callback number in certain messages
  4523. dwMsgPriority:DWORD; // @field RIL_MSGPRIORITY_ constant
  4524. dwMsgPrivacy:DWORD; // @field RIL_MSGPRIVACYCLASS_ constant
  4525. bUserAckRequest:BOOL; // @field 0 = Not Requested; 1 = Requested ; This is an ack from the end user
  4526. dwMsgDisplayMode:DWORD; // @field RIL_MSGDISPLAYMODE_ constant
  4527. dwTeleservice:DWORD; // @field RIL_MSGTELESERVICE_* Constant[Mandatory]
  4528. dwMsgID:DWORD; // @field [Mandatory] Message ID. (0-65535) (In the WAP architecture each part of a multipart message share the same MsgID)
  4529. dwMsgLang:DWORD; // @field Under Investigation
  4530. dwMsgEncoding:DWORD; // @field RIL_MSGCODING_* constant [5 bits] under Investigation
  4531. cchMsgLength:DWORD; // @field length of body in bytes
  4532. rgbMsg:array[0..MAXLENGTH_MSG-1] of byte; // @field body buffer
  4533. end;
  4534. // @field RIL_MSGTYPE_OUT_IS637SUBMIT
  4535. TmsgIS637OutSubmit = record
  4536. raDestAddress:RILADDRESS; // @field destination address
  4537. rsaDestSubaddr:RILSUBADDRESS; // @field destination subaddress
  4538. 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)
  4539. stValidityPeriodAbs:SYSTEMTIME; // @field UTC time
  4540. stValidityPeriodRel:SYSTEMTIME; // @field Relative time
  4541. stDeferredDelTimeAbs:SYSTEMTIME; // @field UTC time
  4542. stDeferredDelTimeRel:SYSTEMTIME; // @field Relative time
  4543. bDeliveryAckRequest:BOOL; // @field 0 = Not Requested; 1 = Requested ; This is an delivery ack (no user confirmation)
  4544. bUserAckRequest:BOOL; // @field 0 = Not Requested; 1 = Requested ; This is an ack from the end user
  4545. 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)
  4546. dwReplySeqNumber:DWORD; // @field the Seuqence number of the message bing replied to; (typically the MSGID)
  4547. dwMsgDisplayMode:DWORD; // @field RIL_MSGDISPLAYMODE_* constant
  4548. raCallBackNumber:RILADDRESS; // @field (Only paging and Text -s) user can give a callback number in certain messages
  4549. dwMsgPriority:DWORD; // @field RIL_MSGPRIORITY_ constant
  4550. dwMsgPrivacy:DWORD; // @field RIL_MSGPRIVACYCLASS_ constant
  4551. dwTeleservice:DWORD; // @field RIL_MSGTELESERVICE_* Constant[Mandatory]
  4552. dwMsgID:DWORD; // @field [Mandatory] Message ID. (0-65535) (In the WAP architecture each part of a multipart message share the same MsgID)
  4553. dwMsgLang:DWORD; // @field Under Investigation
  4554. dwMsgEncoding:DWORD; // @field RIL_MSGCODING_* constant [5 bits] under Investigation
  4555. cchMsgLength:DWORD; // @field length of body in bytes
  4556. rgbMsg:array[0..MAXLENGTH_MSG-1] of byte; // @field body buffer
  4557. end;
  4558. // @field RIL_MSGTYPE_IN_IS637STATUS
  4559. TmsgIS637InStatus = record
  4560. raOrigAddress:RILADDRESS; // @field originating address
  4561. rsaOrigSubaddr:RILSUBADDRESS; // @field
  4562. // There is no digit-mode in incoming message because the driver can convert both of them to ASCII
  4563. stSCReceiveTime:SYSTEMTIME; // @field (SMSC Timestamp) receive time (UTC)
  4564. dwCauseCode:DWORD; // @field Cause_Codes Under Investigation, most likely these will be implemented as RIL errors
  4565. dwReplySeqNumber:DWORD; // @field The Sequence number of the message bing replied to; (typically the MSGID)
  4566. dwUserResponseCode:DWORD; // @field User Response Code (Carrier Specific Element when responding giving a User Ack)
  4567. dwMsgStatusType:DWORD; // @field type of status message RIL_MSGSTATUSTYPE_* constant
  4568. dwMsgID:DWORD; // @field [Mandatory] Message ID. (0-65535) (In the WAP architecture each part of a multipart message share the same MsgID)
  4569. dwMsgLang:DWORD; // @field Under Investigation
  4570. dwMsgEncoding:DWORD; // @field RIL_MSGCODING_* constant [5 bits] under Investigation
  4571. cchMsgLength:DWORD; // @field length of body in bytes
  4572. rgbMsg:array[0..MAXLENGTH_MSG-1] of byte; // @field body buffer
  4573. end;
  4574. // @field RIL_MSGTYPE_OUT_IS637STATUS
  4575. TmsgIS637OutStatus = record
  4576. raDestAddress:RILADDRESS; // @field destination address
  4577. rsaDestSubaddr:RILSUBADDRESS; // @field destination subaddress
  4578. 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)
  4579. dwReplySeqNumber:DWORD; // @field The Sequence number of the message bing replied to; (typically the MSGID)
  4580. dwUserResponseCode:DWORD; // @field User Response Code (Carrier Specific Element when responding giving a User Ack)
  4581. dwMsgID:DWORD; // @field [Mandatory] Message ID. (0-65535) (In the WAP architecture each part of a multipart message share the same MsgID)
  4582. dwMsgLang:DWORD; // @field Under Investigation
  4583. dwMsgEncoding:DWORD; // @field RIL_MSGCODING_* constant [5 bits] under Investigation
  4584. cchMsgLength:DWORD; // @field length of body in bytes
  4585. rgbMsg:array[0..MAXLENGTH_MSG-1] of byte; // @field body buffer
  4586. end;
  4587. rilmessage_tag = record
  4588. cbSize:DWORD; // @field structure size in bytes
  4589. dwParams:DWORD; // @field indicates valid parameters
  4590. raSvcCtrAddress:RILADDRESS; // @field service center address
  4591. dwType:DWORD; // @field type of message
  4592. dwFlags:DWORD; // @field message flags
  4593. case longint of
  4594. 0: (msgInDeliver:TmsgInDeliver); // @field RIL_MSGTYPE_IN_DELIVER
  4595. 1: (msgInStatus:TmsgInStatus); // @field RIL_MSGTYPE_IN_STATUS
  4596. 2: (msgOutSubmit:TmsgOutSubmit); // @field RIL_MSGTYPE_OUT_SUBMIT
  4597. 3: (msgOutCommand:TmsgOutCommand); // @field RIL_MSGTYPE_OUT_COMMAND
  4598. 4: (msgBcGeneral:TmsgBcGeneral); // @field RIL_MSGTYPE_BC_GENERAL
  4599. 5: (msgOutRaw:TmsgOutRaw); // @field RIL_MSGTYPE_OUT_RAW
  4600. 6: (msgIS637InDeliver:TmsgIS637InDeliver); // @field RIL_MSGTYPE_IN_IS637DELIVER
  4601. 7: (msgIS637OutSubmit:TmsgIS637OutSubmit); // @field RIL_MSGTYPE_OUT_IS637SUBMIT
  4602. 8: (msgIS637InStatus:TmsgIS637InStatus); // @field RIL_MSGTYPE_IN_IS637STATUS
  4603. 9: (msgIS637OutStatus:TmsgIS637OutStatus); // @field End RIL_MSGTYPE_OUT_IS637STATUS
  4604. end;
  4605. RILMESSAGE = rilmessage_tag;
  4606. LPRILMESSAGE = ^rilmessage_tag;
  4607. // -----------------------------------------------------------------------------
  4608. //
  4609. // @doc EXTERNAL
  4610. //
  4611. // @struct RILMESSAGE_IN_SIM | Message data in sim info
  4612. //
  4613. // @comm None
  4614. //
  4615. // -----------------------------------------------------------------------------
  4616. type
  4617. rilmessage_in_sim_tag = record
  4618. cbSize:DWORD; // @field structure size in bytes
  4619. dwParams:DWORD;
  4620. dwLocation:DWORD; // @field storage area (one of RIL_MSGLOC_xxxx)
  4621. dwIndex:DWORD; // @field storage index occupied by the message
  4622. end;
  4623. RILMESSAGE_IN_SIM = rilmessage_in_sim_tag;
  4624. LPRILMESSAGE_IN_SIM = ^rilmessage_in_sim_tag;
  4625. // -----------------------------------------------------------------------------
  4626. //
  4627. // @doc EXTERNAL
  4628. //
  4629. // @struct RILMESSAGEINFO | Message data with additional info
  4630. //
  4631. // @comm None
  4632. //
  4633. // -----------------------------------------------------------------------------
  4634. type
  4635. rilmessageinfo_tag = record
  4636. cbSize:DWORD; // @field structure size in bytes
  4637. dwParams:DWORD; // @field indicates valid parameters
  4638. dwIndex:DWORD; // @field storage index occupied by the message
  4639. dwStatus:DWORD; // @field message status
  4640. rmMessage:RILMESSAGE; // @field the message itself
  4641. end;
  4642. RILMESSAGEINFO = rilmessageinfo_tag;
  4643. LPRILMESSAGEINFO = ^rilmessageinfo_tag;
  4644. // -----------------------------------------------------------------------------
  4645. //
  4646. // @doc EXTERNAL
  4647. //
  4648. // @struct RILEQUIPMENTINFO | Equipment info
  4649. //
  4650. // @comm None
  4651. //
  4652. // -----------------------------------------------------------------------------
  4653. type
  4654. rilequipmentinfo_tag = record
  4655. cbSize:DWORD; // @field structure size in bytes
  4656. dwParams:DWORD; // @field indicates valid parameters
  4657. szManufacturer:array[0..MAXLENGTH_EQUIPINFO-1] of AnsiChar; // @field manufacturer of the radio hardware
  4658. szModel:array[0..MAXLENGTH_EQUIPINFO-1] of AnsiChar; // @field model of the radio hardware
  4659. szRevision:array[0..MAXLENGTH_EQUIPINFO-1] of AnsiChar; // @field software version of the radio stack
  4660. szSerialNumber:array[0..MAXLENGTH_EQUIPINFO-1] of AnsiChar; // @field equipment identity (IMEI)
  4661. end;
  4662. RILEQUIPMENTINFO = rilequipmentinfo_tag;
  4663. LPRILEQUIPMENTINFO = ^rilequipmentinfo_tag;
  4664. // -----------------------------------------------------------------------------
  4665. //
  4666. // @doc EXTERNAL
  4667. //
  4668. // @struct RILEQUIPMENTSTATE | Equipment state
  4669. //
  4670. // @comm None
  4671. //
  4672. // -----------------------------------------------------------------------------
  4673. type
  4674. rilequipmentstate_tag = record
  4675. cbSize:DWORD; // @field structure size in bytes
  4676. dwParams:DWORD; // @field indicates valid parameters
  4677. dwRadioSupport:DWORD; // @field RIL_RADIOSUPPORT_* Parameter
  4678. dwEqState:DWORD; // @field RIL_EQSTATE_* Parameter
  4679. dwReadyState:DWORD; // @field RIL_READYSTATE_* Parameter
  4680. end;
  4681. RILEQUIPMENTSTATE = rilequipmentstate_tag;
  4682. LPRILEQUIPMENTSTATE = ^rilequipmentstate_tag;
  4683. // -----------------------------------------------------------------------------
  4684. //
  4685. // @doc EXTERNAL
  4686. //
  4687. // @struct RILPHONEBOOKINFO | Phonebook settings
  4688. //
  4689. // @comm None
  4690. //
  4691. // -----------------------------------------------------------------------------
  4692. type
  4693. rilphonebookinfo_tag = record
  4694. cbSize:DWORD; // @field structure size in bytes
  4695. dwParams:DWORD; // @field indicates valid parameters
  4696. dwStoreLocation:DWORD; // @field location of phonebook memory
  4697. dwUsed:DWORD; // @field number of locations used
  4698. dwTotal:DWORD; // @field total number of phonebook locations
  4699. end;
  4700. RILPHONEBOOKINFO = rilphonebookinfo_tag;
  4701. LPRILPHONEBOOKINFO = ^rilphonebookinfo_tag;
  4702. // -----------------------------------------------------------------------------
  4703. //
  4704. // @doc EXTERNAL
  4705. //
  4706. // @struct RILPHONEBOOKENTRY | A single phonebook entry
  4707. //
  4708. // @comm None
  4709. //
  4710. // -----------------------------------------------------------------------------
  4711. type
  4712. rilphonebookentry_tag = record
  4713. cbSize:DWORD; // @field structure size in bytes
  4714. dwParams:DWORD; // @field indicates valid parameters
  4715. dwIndex:DWORD; // @field index of the entry
  4716. raAddress:RILADDRESS; // @field the stored address
  4717. wszText:array[0..MAXLENGTH_PHONEBOOKTEXT-1] of WCHAR; // @field assciated text
  4718. end;
  4719. RILPHONEBOOKENTRY = rilphonebookentry_tag;
  4720. LPRILPHONEBOOKENTRY = ^rilphonebookentry_tag;
  4721. // -----------------------------------------------------------------------------
  4722. //
  4723. // @doc EXTERNAL
  4724. //
  4725. // @struct RILATRINFO | Answer to Reset information
  4726. //
  4727. // @comm None
  4728. //
  4729. // -----------------------------------------------------------------------------
  4730. type
  4731. rilatrinfo_tag = record
  4732. cbSize:DWORD;
  4733. dwParams:DWORD;
  4734. dwPhase:DWORD;
  4735. cbATRSize:DWORD;
  4736. rgbATR:array[0..MAXLENGTH_ATR-1] of byte;
  4737. end;
  4738. RILATRINFO = rilatrinfo_tag;
  4739. LPRILATRINFO = ^rilatrinfo_tag;
  4740. // -----------------------------------------------------------------------------
  4741. //
  4742. // @doc EXTERNAL
  4743. //
  4744. // @struct RILSIMTOOLKITEVENTCAPS | SIM TOOLKIT EVENT LIST CAPABILITIES
  4745. //
  4746. // @comm This structure indicates who implements the various SIM ToolKit Events
  4747. //
  4748. // -----------------------------------------------------------------------------
  4749. type
  4750. rilsimtoolkiteventcaps_tag =record
  4751. cbSize:DWORD; // @field structure size in bytes
  4752. dwParams:DWORD; // @field indicates valid parameters
  4753. dwMTCall:DWORD; // @constdefine TBD
  4754. dwCallConnected:DWORD; // @constdefine TBD
  4755. dwCallDisconnected:DWORD; // @constdefine TBD
  4756. dwLocationStatus:DWORD; // @constdefine TBD
  4757. dwUserActivity:DWORD; // @constdefine TBD
  4758. dwIdleScreen:DWORD; // @constdefine TBD
  4759. dwLanguageSelection:DWORD; // @constdefine TBD
  4760. dwBrowserTermination:DWORD; // @constdefine TBD
  4761. dwDataAvailable:DWORD; // @constdefine TBD
  4762. dwChannelStatus:DWORD; // @constdefine TBD
  4763. dwDisplayChange:DWORD; // @constdefine TBD
  4764. end;
  4765. RILSIMTOOLKITEVENTCAPS = rilsimtoolkiteventcaps_tag;
  4766. LPRILSIMTOOLKITEVENTCAPS = ^rilsimtoolkiteventcaps_tag;
  4767. // -----------------------------------------------------------------------------
  4768. //
  4769. // @doc EXTERNAL
  4770. //
  4771. // @struct RILSIMTOOLKITNOTIFYCAPS | SIM TOOLKIT NOTIFY CAPABILITIES
  4772. //
  4773. // @comm This structure indicates who implements the various SIM ToolKit Notifications
  4774. //
  4775. // -----------------------------------------------------------------------------
  4776. type
  4777. rilsimtoolkitnotifycaps_tag = record
  4778. cbSize:DWORD; // @field structure size in bytes
  4779. dwParams:DWORD; // @field indicates valid parameters
  4780. dwRefresh:DWORD; // @constdefine TBD
  4781. dwMoreTime:DWORD; // @constdefine TBD
  4782. dwPollInterval:DWORD; // @constdefine TBD
  4783. dwPollingOff:DWORD; // @constdefine TBD
  4784. dwSetUpCall:DWORD; // @constdefine TBD
  4785. dwSendSS:DWORD; // @constdefine TBD
  4786. dwSendUSSD:DWORD; // @constdefine TBD
  4787. dwSendSMS:DWORD; // @constdefine TBD
  4788. dwPlayTone:DWORD; // @constdefine TBD
  4789. dwDisplayText:DWORD; // @constdefine TBD
  4790. dwGetInkey:DWORD; // @constdefine TBD
  4791. dwGetInput:DWORD; // @constdefine TBD
  4792. dwSelectItem:DWORD; // @constdefine TBD
  4793. dwSetupMenu:DWORD; // @constdefine TBD
  4794. dwSetupIdleModeText:DWORD; // @constdefine TBD
  4795. dwLocalInfo:DWORD; // @constdefine TBD
  4796. dwNotifyFlags:DWORD; // @combination of RIL_CAPS_NOTIFY_* flags
  4797. dwSetupEventList:DWORD; // @constdefine TBD
  4798. dwSendDTMF:DWORD; // @constdefine TBD
  4799. dwLaunchBrowser:DWORD; // @constdefine TBD
  4800. dwOpenChannel:DWORD; // @constdefine TBD
  4801. dwCloseChannel:DWORD; // @constdefine TBD
  4802. dwReceiveData:DWORD; // @constdefine TBD
  4803. dwSendData:DWORD; // @constdefine TBD
  4804. dwTimerManagement:DWORD; // @constdefine TBD
  4805. dwRunAtCmd:DWORD; // @constdefine TBD
  4806. rstecEvents:RILSIMTOOLKITEVENTCAPS; // @constdefine TBD
  4807. end;
  4808. RILSIMTOOLKITNOTIFYCAPS = rilsimtoolkitnotifycaps_tag;
  4809. LPRILSIMTOOLKITNOTIFYCAPS = ^rilsimtoolkitnotifycaps_tag;
  4810. // -----------------------------------------------------------------------------
  4811. //
  4812. // @doc EXTERNAL
  4813. //
  4814. // @struct RILSIMTOOLKITCMD | SIM toolkit command details.
  4815. //
  4816. // @comm None
  4817. //
  4818. // -----------------------------------------------------------------------------
  4819. type
  4820. rilsimtoolkitcmd_tag = record
  4821. cbSize:DWORD;
  4822. dwParams:DWORD;
  4823. dwId:DWORD;
  4824. dwTag:DWORD;
  4825. dwType:DWORD;
  4826. dwQualifier:DWORD;
  4827. dwError:DWORD;
  4828. dwDetailsOffset:DWORD;
  4829. dwDetailsSize:DWORD;
  4830. end;
  4831. RILSIMTOOLKITCMD = rilsimtoolkitcmd_tag;
  4832. // -----------------------------------------------------------------------------
  4833. //
  4834. // @doc EXTERNAL
  4835. //
  4836. // @struct RILSIMTOOLKITRSP | Response to a SIM toolkit command.
  4837. //
  4838. // @comm None
  4839. //
  4840. // -----------------------------------------------------------------------------
  4841. type
  4842. rilsimtoolkitrsp_tag = record
  4843. cbSize:DWORD;
  4844. dwParams:DWORD;
  4845. dwId:DWORD;
  4846. dwTag:DWORD;
  4847. dwType:DWORD;
  4848. dwQualifier:DWORD;
  4849. dwResponse:DWORD;
  4850. dwAdditionalInfo:DWORD;
  4851. end;
  4852. RILSIMTOOLKITRSP = rilsimtoolkitrsp_tag;
  4853. LPRILSIMTOOLKITRSP = rilsimtoolkitrsp_tag;
  4854. // -----------------------------------------------------------------------------
  4855. //
  4856. // @doc EXTERNAL
  4857. //
  4858. // @struct RILSIMCMDPARAMETERS | Parameters for a restricted SIM command
  4859. //
  4860. // @comm None
  4861. //
  4862. // -----------------------------------------------------------------------------
  4863. type
  4864. rilsimcmdparameters_tag = record
  4865. cbSize:DWORD; // @field structure size in bytes
  4866. dwParams:DWORD; // @field indicates valid parameters
  4867. dwFileID:DWORD; // @field SIM file ID
  4868. dwParameter1:DWORD; // @field parameter specific to SIM command
  4869. dwParameter2:DWORD; // @field parameter specific to SIM command
  4870. dwParameter3:DWORD; // @field parameter specific to SIM command
  4871. end;
  4872. RILSIMCMDPARAMETERS = rilsimcmdparameters_tag;
  4873. LPRILSIMCMDPARAMETERS = ^rilsimcmdparameters_tag;
  4874. // -----------------------------------------------------------------------------
  4875. //
  4876. // @doc EXTERNAL
  4877. //
  4878. // @struct RILSIMRESPONSE | Response to a restrcited SIM command
  4879. //
  4880. // @comm None
  4881. //
  4882. // -----------------------------------------------------------------------------
  4883. //#pragma warning(disable : 4200) // Disable "C4200: nonstandard extension used : zero-sized array in struct/union"
  4884. type
  4885. rilsimresponse_tag = record
  4886. cbSize:DWORD; // @field structure size in bytes
  4887. dwParams:DWORD; // @field indicates valid parameters
  4888. dwStatusWord1:DWORD; // @field return parameter specific to SIM command
  4889. dwStatusWord2:DWORD; // @field return parameter specific to SIM command
  4890. pbResponse:array[0..0] of byte; // @field additional bytes of response data
  4891. end;
  4892. RILSIMRESPONSE = rilsimresponse_tag;
  4893. LPRILSIMRESPONSE = ^rilsimresponse_tag;
  4894. //#pragma warning(default : 4200)
  4895. // -----------------------------------------------------------------------------
  4896. //
  4897. // @doc EXTERNAL
  4898. //
  4899. // @struct RILSIMRECORDSTATUS | Response to a restrcited SIM command
  4900. //
  4901. // @comm None
  4902. //
  4903. // -----------------------------------------------------------------------------
  4904. type
  4905. rilsimrecordstatus_tag = record
  4906. cbSize:DWORD; // @field Size of the structure in bytes
  4907. dwParams:DWORD; // @field Indicates valid parameter values
  4908. dwRecordType:DWORD; // @field RIL_SIMRECORDTYPE_* Constant
  4909. dwItemCount:DWORD; // @field Number of items in the record
  4910. dwSize:DWORD; // @field Size in bytes of each item
  4911. end;
  4912. RILSIMRECORDSTATUS = rilsimrecordstatus_tag;
  4913. LPRILSIMRECORDSTATUS = ^rilsimrecordstatus_tag;
  4914. // -----------------------------------------------------------------------------
  4915. //
  4916. // @doc EXTERNAL
  4917. //
  4918. // @struct RILCOSTINFO | Service cost info
  4919. //
  4920. // @comm None
  4921. //
  4922. // -----------------------------------------------------------------------------
  4923. type
  4924. rilcostinfo_tag = record
  4925. cbSize:DWORD; // @field structure size in bytes
  4926. dwParams:DWORD; // @field indicates valid parameters
  4927. dwCCM:DWORD; // @field current call meter
  4928. dwACM:DWORD; // @field accumulated call meter
  4929. dwMaxACM:DWORD; // @field maximum accumulated call meter
  4930. dwCostPerUnit:DWORD; // @field cost per unit, in 16.16 fixed point
  4931. wszCurrency:array[0..MAXLENGTH_CURRENCY-1] of WCHAR; // @field current currency
  4932. end;
  4933. RILCOSTINFO = rilcostinfo_tag;
  4934. LPRILCOSTINFO = ^rilcostinfo_tag;
  4935. // -----------------------------------------------------------------------------
  4936. //
  4937. // @doc EXTERNAL
  4938. //
  4939. // @struct RILSIGNALQUALITY | Signal quality info
  4940. //
  4941. // @comm None
  4942. //
  4943. // -----------------------------------------------------------------------------
  4944. type
  4945. rilsignalquality_tag = record
  4946. cbSize:DWORD; // @field structure size in bytes
  4947. dwParams:DWORD; // @field indicates valid parameters
  4948. nSignalStrength:longint; // @field TBD
  4949. nMinSignalStrength:longint; // @field TBD
  4950. nMaxSignalStrength:longint; // @field TBD
  4951. dwBitErrorRate:DWORD; // @field bit error rate in 1/100 of a percent
  4952. nLowSignalStrength:longint; // @field TBD
  4953. nHighSignalStrength:longint; // @field TBD
  4954. end;
  4955. RILSIGNALQUALITY = rilsignalquality_tag;
  4956. LPRILSIGNALQUALITY = ^rilsignalquality_tag;
  4957. // -----------------------------------------------------------------------------
  4958. //
  4959. // @doc EXTERNAL
  4960. //
  4961. // @struct RILCELLTOWERINFO | Cell tower info
  4962. //
  4963. // @comm None
  4964. //
  4965. // -----------------------------------------------------------------------------
  4966. type
  4967. rilcelltowerinfo_tag = record
  4968. cbSize:DWORD; // @field structure size in bytes
  4969. dwParams:DWORD; // @field indicates valid parameters
  4970. dwMobileCountryCode:DWORD; // @field TBD
  4971. dwMobileNetworkCode:DWORD; // @field TBD
  4972. dwLocationAreaCode:DWORD; // @field TBD
  4973. dwCellID:DWORD; // @field TBD
  4974. dwBaseStationID:DWORD; // @field TBD
  4975. dwBroadcastControlChannel:DWORD; // @field TBD
  4976. dwRxLevel:DWORD; // @field Value from 0-63 (see GSM 05.08, 8.1.4)
  4977. dwRxLevelFull:DWORD; // @field Value from 0-63 (see GSM 05.08, 8.1.4)
  4978. dwRxLevelSub:DWORD; // @field Value from 0-63 (see GSM 05.08, 8.1.4)
  4979. dwRxQuality:DWORD; // @field Value from 0-7 (see GSM 05.08, 8.2.4)
  4980. dwRxQualityFull:DWORD; // @field Value from 0-7 (see GSM 05.08, 8.2.4)
  4981. dwRxQualitySub:DWORD; // @field Value from 0-7 (see GSM 05.08, 8.2.4)
  4982. dwIdleTimeSlot:DWORD; // @field TBD
  4983. dwTimingAdvance:DWORD; // @field TBD
  4984. dwGPRSCellID:DWORD; // @field TBD
  4985. dwGPRSBaseStationID:DWORD; // @field TBD
  4986. dwNumBCCH:DWORD; // @field TBD
  4987. rgbBCCH:array[0..MAXLENGTH_BCCH-1] of byte; // @field TBD
  4988. rgbNMR:array[0..MAXLENGTH_NMR-1] of byte; // @field TBD
  4989. end;
  4990. RILCELLTOWERINFO = rilcelltowerinfo_tag;
  4991. LPRILCELLTOWERINFO = ^rilcelltowerinfo_tag;
  4992. // -----------------------------------------------------------------------------
  4993. //
  4994. // @doc EXTERNAL
  4995. //
  4996. // @struct RILREMOTEPARTYINFO | Incoming call info
  4997. //
  4998. // @comm None
  4999. //
  5000. // -----------------------------------------------------------------------------
  5001. type
  5002. rilremotepartyinfo_tag = record
  5003. cbSize:DWORD; // @field structure size in bytes
  5004. dwParams:DWORD; // @field indicates valid parameters
  5005. raAddress:RILADDRESS; // @field address of caller
  5006. rsaSubAddress:RILSUBADDRESS; // @field subaddress of caller
  5007. wszDescription:array[0..MAXLENGTH_DESCRIPTION-1] of WCHAR; // @field text associated with caller
  5008. dwValidity:DWORD; // @field indicates validity of caller info
  5009. end;
  5010. RILREMOTEPARTYINFO = rilremotepartyinfo_tag;
  5011. LPRILREMOTEPARTYINFO = ^rilremotepartyinfo_tag;
  5012. // -----------------------------------------------------------------------------
  5013. //
  5014. // @doc EXTERNAL
  5015. //
  5016. // @struct RILCALLWAITINGINFO | Call waiting info
  5017. //
  5018. // @comm None
  5019. //
  5020. // -----------------------------------------------------------------------------
  5021. type
  5022. rilcallwaitinginfo_tag = record
  5023. cbSize:DWORD; // @field structure size in bytes
  5024. dwParams:DWORD; // @field indicates valid parameters
  5025. dwCallType:DWORD; // @field type of call
  5026. dwAddressId:DWORD; // @field indicates address ID on which the incoming call arrived (if available)
  5027. rrpiCallerInfo:RILREMOTEPARTYINFO; // @field caller information
  5028. end;
  5029. RILCALLWAITINGINFO = rilcallwaitinginfo_tag;
  5030. LPRILCALLWAITINGINFO = ^rilcallwaitinginfo_tag;
  5031. // -----------------------------------------------------------------------------
  5032. //
  5033. // @doc EXTERNAL
  5034. //
  5035. // @struct RILINTERMEDIATESSINFO | Intermediate Supplemenary Service Info
  5036. //
  5037. // @comm None
  5038. //
  5039. // -----------------------------------------------------------------------------
  5040. type
  5041. rilintermediatessinfo_tag = record
  5042. cbSize:DWORD; // @field structure size in bytes
  5043. dwParams:DWORD; // @field indicates valid parameters
  5044. dwNotificationCode:DWORD; // @field indicates type of notification
  5045. dwCallUserGroupIndex:DWORD; // @field indicates the CUG Index
  5046. end;
  5047. RILINTERMEDIATESSINFO = rilintermediatessinfo_tag;
  5048. LPRILINTERMEDIATESSINFO = ^rilintermediatessinfo_tag;
  5049. // -----------------------------------------------------------------------------
  5050. //
  5051. // @doc EXTERNAL
  5052. //
  5053. // @struct RILUNSOLICITEDSSINFO | Unsolicited Supplemenary Service Info
  5054. //
  5055. // @comm None
  5056. //
  5057. // -----------------------------------------------------------------------------
  5058. type
  5059. rilunsolicitedssinfo_tag = record
  5060. cbSize:DWORD; // @field structure size in bytes
  5061. dwParams:DWORD; // @field indicates valid parameters
  5062. dwNotificationCode:DWORD; // @field indicates type of notification
  5063. dwCallUserGroupIndex:DWORD; // @field indicates the CUG Index
  5064. raAddress:RILADDRESS; // @field call address
  5065. rsaSubAddress:RILSUBADDRESS; // @field subaddress
  5066. end;
  5067. RILUNSOLICITEDSSINFO = rilunsolicitedssinfo_tag;
  5068. LPRILUNSOLICITEDSSINFO = ^rilunsolicitedssinfo_tag;
  5069. // -----------------------------------------------------------------------------
  5070. //
  5071. // @doc EXTERNAL
  5072. //
  5073. // @struct RILSERVICEINFO | Connection service information
  5074. //
  5075. // @comm None
  5076. //
  5077. // -----------------------------------------------------------------------------
  5078. type
  5079. rilserviceinfo_tag = record
  5080. cbSize:DWORD; // @field structure size in bytes
  5081. dwParams:DWORD; // @field indicates valid parameters
  5082. fSynchronous:BOOL; // @field TRUE if connection service is synchronous, FALSE if asynchronous
  5083. fTransparent:BOOL; // @field TRUE if connection service is transparent, FALSE if non-transparent
  5084. end;
  5085. RILSERVICEINFO = rilserviceinfo_tag;
  5086. LPRILSERVICEINFO = ^rilserviceinfo_tag;
  5087. // -----------------------------------------------------------------------------
  5088. //
  5089. // @doc EXTERNAL
  5090. //
  5091. // @struct RILRINGINFO | Ring information
  5092. //
  5093. // @comm None
  5094. //
  5095. // -----------------------------------------------------------------------------
  5096. type
  5097. rilringinfo_tag = record
  5098. cbSize:DWORD; // @field structure size in bytes
  5099. dwParams:DWORD; // @field indicates valid parameters
  5100. dwCallType:DWORD; // @field type of the offered call (<def RIL_CALLTYPE_> constant)
  5101. dwAddressId:DWORD; // @field indicates address ID on which the incoming call arrived (if available)
  5102. rsiServiceInfo:RILSERVICEINFO; // @field data connection service information (set only for <def RIL_CALLTYPE_DATA>)
  5103. end;
  5104. RILRINGINFO = rilringinfo_tag;
  5105. LPRILRINGINFO = ^rilringinfo_tag;
  5106. // -----------------------------------------------------------------------------
  5107. //
  5108. // @doc EXTERNAL
  5109. //
  5110. // @struct RILDIALINFO | Ring information
  5111. //
  5112. // @comm None
  5113. //
  5114. // -----------------------------------------------------------------------------
  5115. type
  5116. rildialinfo_tag = record
  5117. cbSize:DWORD; // @field structure size in bytes
  5118. dwParams:DWORD; // @field indicates valid parameters
  5119. hrCmdId:HRESULT; // @field handle of call being dialed
  5120. dwCallId:DWORD; // @field id of call being dialed
  5121. end;
  5122. RILDIALINFO = rildialinfo_tag;
  5123. LPRILDIALINFO = ^rildialinfo_tag;
  5124. // -----------------------------------------------------------------------------
  5125. //
  5126. // @doc EXTERNAL
  5127. //
  5128. // @struct RILCONNECTINFO | Connection info
  5129. //
  5130. // @comm None
  5131. //
  5132. // -----------------------------------------------------------------------------
  5133. type
  5134. rilconnectinfo_tag = record
  5135. cbSize:DWORD; // @field structure size in bytes
  5136. dwParams:DWORD; // @field indicates valid parameters
  5137. dwCallType:DWORD; // @field type of the established connection (<def RIL_CALLTYPE_> constant)
  5138. dwBaudRate:DWORD; // @field Baud rate of the established connection (set only for <def RIL_CALLTYPE_DATA>)
  5139. end;
  5140. RILCONNECTINFO = rilconnectinfo_tag;
  5141. LPRILCONNECTINFO = ^rilconnectinfo_tag;
  5142. // -----------------------------------------------------------------------------
  5143. //
  5144. // @doc EXTERNAL
  5145. //
  5146. // @struct RILMSGSTORAGEINFO | Message storage locations
  5147. //
  5148. // @comm None
  5149. //
  5150. // -----------------------------------------------------------------------------
  5151. type
  5152. rilmsgstorageinfo_tag = record
  5153. cbSize:DWORD; // @field structure size in bytes
  5154. dwParams:DWORD; // @field indicates valid parameters
  5155. dwReadLocation:DWORD; // @field current read location
  5156. dwWriteLocation:DWORD; // @field current write location
  5157. dwStoreLocation:DWORD; // @field current store location
  5158. end;
  5159. RILMSGSTORAGEINFO = rilmsgstorageinfo_tag;
  5160. LPRILMSGSTORAGEINFO = ^rilmsgstorageinfo_tag;
  5161. // -----------------------------------------------------------------------------
  5162. //
  5163. // @doc EXTERNAL
  5164. //
  5165. // @struct RILSUPSERVICEDATA | Supplementary service data
  5166. //
  5167. // @comm None
  5168. //
  5169. // -----------------------------------------------------------------------------
  5170. //#pragma warning(disable : 4200) // Disable "C4200: nonstandard extension used : zero-sized array in struct/union"
  5171. type
  5172. rilsupservicedata_tag = record
  5173. cbSize:DWORD; // @field structure size in bytes
  5174. dwParams:DWORD; // @field indicates valid parameters
  5175. dwStatus:DWORD; // @field additional status for message
  5176. pbData:array[0..0] of byte; // @field message itself
  5177. end;
  5178. RILSUPSERVICEDATA = rilsupservicedata_tag;
  5179. LPRILSUPSERVICEDATA = ^rilsupservicedata_tag;
  5180. //#pragma warning(default : 4200)
  5181. // -----------------------------------------------------------------------------
  5182. //
  5183. // @doc EXTERNAL
  5184. //
  5185. // @struct RILCAPSDIAL | Dialing capabilities
  5186. //
  5187. // @comm None
  5188. //
  5189. // -----------------------------------------------------------------------------
  5190. type
  5191. rilcapsdial_tag = record
  5192. cbSize:DWORD; // @field structure size in bytes
  5193. dwParams:DWORD; // @field indicates valid parameters
  5194. dwCallTypes:DWORD; // @field type of call being placed
  5195. dwOptions:DWORD; // @field dialing options
  5196. end;
  5197. RILCAPSDIAL = rilcapsdial_tag;
  5198. LPRILCAPSDIAL = ^rilcapsdial_tag;
  5199. // -----------------------------------------------------------------------------
  5200. //
  5201. // @doc EXTERNAL
  5202. //
  5203. // @struct RILCAPSBEARERSVC | Bearer service capabilities
  5204. //
  5205. // @comm None
  5206. //
  5207. // -----------------------------------------------------------------------------
  5208. type
  5209. rilcapsbearersvc_tag = record
  5210. cbSize:DWORD; // @field structure size in bytes
  5211. dwParams:DWORD; // @field indicates valid parameters
  5212. dwSpeeds1:DWORD; // @field TBD
  5213. dwSpeeds2:DWORD; // @field TBD
  5214. dwServiceNames:DWORD; // @field TBD
  5215. dwConnectionElements:DWORD; // @field TBD
  5216. end;
  5217. RILCAPSBEARERSVC = rilcapsbearersvc_tag;
  5218. LPRILCAPSBEARERSVC = ^rilcapsbearersvc_tag;
  5219. // -----------------------------------------------------------------------------
  5220. //
  5221. // @doc EXTERNAL
  5222. //
  5223. // @struct RILCAPSRLP | Radio Link Protocol capabilities
  5224. //
  5225. // @comm None
  5226. //
  5227. // -----------------------------------------------------------------------------
  5228. type
  5229. rilcapsrlp_tag = record
  5230. cbSize:DWORD; // @field structure size in bytes
  5231. dwParams:DWORD; // @field indicates valid parameters
  5232. dwVersion:DWORD; // @field TBD
  5233. rrIWSRange:RILRANGE; // @field TBD
  5234. rrMWSRange:RILRANGE; // @field TBD
  5235. rrAckTimerRange:RILRANGE; // @field TBD
  5236. rrRetransmissionAttsRange:RILRANGE; // @field TBD
  5237. rrReseqPeriodRange:RILRANGE; // @field TBD
  5238. end;
  5239. RILCAPSRLP = rilcapsrlp_tag;
  5240. LPRILCAPSRLP = ^rilcapsrlp_tag;
  5241. // -----------------------------------------------------------------------------
  5242. //
  5243. // @doc EXTERNAL
  5244. //
  5245. // @struct RILCAPSMSGMEMORYLOCATIONS | Message memory location capabilities
  5246. //
  5247. // @comm None
  5248. //
  5249. // -----------------------------------------------------------------------------
  5250. type
  5251. rilcapsmsgmemorylocations_tag = record
  5252. cbSize:DWORD; // @field structure size in bytes
  5253. dwParams:DWORD; // @field indicates valid parameters
  5254. dwReadLocations:DWORD; // @field supported read locations
  5255. dwWriteLocations:DWORD; // @field supported write locations
  5256. dwStoreLocations:DWORD; // @field supported store locations
  5257. end;
  5258. RILCAPSMSGMEMORYLOCATIONS = rilcapsmsgmemorylocations_tag;
  5259. LPRILCAPSMSGMEMORYLOCATIONS = ^rilcapsmsgmemorylocations_tag;
  5260. // -----------------------------------------------------------------------------
  5261. //
  5262. // @doc EXTERNAL
  5263. //
  5264. // @struct RILCAPSLOCKINGPWDLENGTH | Locking password length capabilities
  5265. //
  5266. // @comm None
  5267. //
  5268. // -----------------------------------------------------------------------------
  5269. type
  5270. rilcapslockingpwdlength_tag = record
  5271. cbSize:DWORD; // @field structure size in bytes
  5272. dwParams:DWORD; // @field indicates valid parameters
  5273. dwFacility:DWORD; // @field the locking facility
  5274. dwPasswordLength:DWORD; // @field maximum password length
  5275. end;
  5276. RILCAPSLOCKINGPWDLENGTH = rilcapslockingpwdlength_tag;
  5277. LPRILCAPSLOCKINGPWDLENGTH = ^rilcapslockingpwdlength_tag;
  5278. // -----------------------------------------------------------------------------
  5279. //
  5280. // @doc EXTERNAL
  5281. //
  5282. // @struct RILCAPSBARRINGPWDLENGTH | Call barring password length capabilities
  5283. //
  5284. // @comm None
  5285. //
  5286. // -----------------------------------------------------------------------------
  5287. type
  5288. rilcapsbarringpwdlength_tag = record
  5289. cbSize:DWORD; // @field structure size in bytes
  5290. dwParams:DWORD; // @field indicates valid parameters
  5291. dwType:DWORD; // @field type of call barring
  5292. dwPasswordLength:DWORD; // @field maximum password length
  5293. end;
  5294. RILCAPSBARRINGPWDLENGTH = rilcapsbarringpwdlength_tag;
  5295. LPRILCAPSBARRINGPWDLENGTH = ^rilcapsbarringpwdlength_tag;
  5296. // -----------------------------------------------------------------------------
  5297. //
  5298. // @doc EXTERNAL
  5299. //
  5300. // @struct RILCAPSDATACOMPRESSION | Data compression capabilities
  5301. //
  5302. // @comm None
  5303. //
  5304. // -----------------------------------------------------------------------------
  5305. type
  5306. rilcapsdatacompression_tag = record
  5307. cbSize:DWORD; // @field structure size in bytes
  5308. dwParams:DWORD; // @field indicates valid parameters
  5309. dwDirection:DWORD; // @field indicates supported direction values
  5310. dwNegotiation:DWORD; // @field indicates supported negotiation values
  5311. rrMaxDict:RILRANGE; // @field range of supported max_dict values
  5312. rrMaxString:RILRANGE; // @field range of supported max_string values
  5313. end;
  5314. RILCAPSDATACOMPRESSION = rilcapsdatacompression_tag;
  5315. LPRILCAPSDATACOMPRESSION = ^rilcapsdatacompression_tag;
  5316. // -----------------------------------------------------------------------------
  5317. //
  5318. // @doc EXTERNAL
  5319. //
  5320. // @struct RILERRORCORRECTIONINFO | Error correction settings
  5321. //
  5322. // @comm None
  5323. //
  5324. // -----------------------------------------------------------------------------
  5325. type
  5326. rilcapserrorcorrection_tag = record
  5327. cbSize:DWORD; // @field structure size in bytes
  5328. dwParams:DWORD; // @field indicates valid parameters
  5329. dwOriginalRequest:DWORD; // @field indicates supported originator request values
  5330. dwOriginalFallback:DWORD; // @field indicates supported originator fallback values
  5331. dwAnswererFallback:DWORD; // @field indicates supported answerer fallback values
  5332. end;
  5333. RILCAPSERRORCORRECTION = rilcapserrorcorrection_tag;
  5334. LPRILCAPSERRORCORRECTION = ^rilcapserrorcorrection_tag;
  5335. // -----------------------------------------------------------------------------
  5336. //
  5337. // @doc EXTERNAL
  5338. //
  5339. // @struct RILCAPSHSCSD | High Speed Circuit Switched Data capabilities
  5340. //
  5341. // @comm None
  5342. //
  5343. // -----------------------------------------------------------------------------
  5344. type
  5345. rilcapshscsd_tag = record
  5346. cbSize:DWORD; // @field structure size in bytes
  5347. dwParams:DWORD; // @field indicates valid parameters
  5348. dwMultislotClass:DWORD; // @field multislot class supported
  5349. dwMaxRxTimeslots:DWORD; // @field maximum number of receive timeslots
  5350. dwMaxTxTimeslots:DWORD; // @field maximum number of transmit timeslots
  5351. dwMaxTotalTimeslots:DWORD; // @field maximum number of total timeslots
  5352. dwChannelCodings:DWORD; // @field supported channel codings
  5353. dwAirInterfaceUserRates:DWORD; // @field supported air interfacerates
  5354. rrTopRxTimeslotRange:RILRANGE; // @field TBD
  5355. end;
  5356. RILCAPSHSCSD = rilcapshscsd_tag;
  5357. LPRILCAPSHSCSD = ^rilcapshscsd_tag;
  5358. // -----------------------------------------------------------------------------
  5359. //
  5360. // @doc EXTERNAL
  5361. //
  5362. // @struct RILCAPSPBENTRYLENGTH | Phone book entry length maximum values
  5363. //
  5364. // @comm None
  5365. //
  5366. // -----------------------------------------------------------------------------
  5367. type
  5368. rilcapspbentrylength_tag = record
  5369. cbSize:DWORD; // @field structure size in bytes
  5370. dwParams:DWORD; // @field indicates valid parameters
  5371. dwMaxAddressLength:DWORD; // @field maximum length of the phone number portion
  5372. dwMaxTextLength:DWORD; // @field maximum length of the text portion
  5373. end;
  5374. RILCAPSPBENTRYLENGTH = rilcapspbentrylength_tag;
  5375. LPRILCAPSPBENTRYLENGTH = ^rilcapspbentrylength_tag;
  5376. // -----------------------------------------------------------------------------
  5377. //
  5378. // @doc EXTERNAL
  5379. //
  5380. // @struct RILGPRSPROTOCOLCAPS | General Packet Radio Service capabilities
  5381. //
  5382. // @comm TBDTBD
  5383. //
  5384. // -----------------------------------------------------------------------------
  5385. //#pragma warning(disable : 4200) // Disable "C4200: nonstandard extension used : zero-sized array in struct/union"
  5386. type
  5387. rilgprscontextcaps_tag = record
  5388. cbSize:DWORD; // @field structure size in bytes (padded to DWORD)
  5389. dwParams:DWORD; // @field indicates valid parameters
  5390. dwProtocolType:DWORD; // @field a RIL_GPRSPROTOCOL_* constant
  5391. ContextIDRange:RILRANGE; // @field min/max context ids
  5392. dwDataCompression:DWORD; // @field valid data compression values
  5393. dwHeaderCompression:DWORD; // @field valid header compression values
  5394. dwParameterLength:DWORD; // @field length of parameters list in bytes
  5395. szParameters:array[0..0] of AnsiChar; // @field valid string parameters of this prococol type, delimited by \0, with final param terminated by \0\0
  5396. end;
  5397. RILGPRSCONTEXTCAPS = rilgprscontextcaps_tag;
  5398. LPRILGPRSCONTEXTCAPS = ^rilgprscontextcaps_tag;
  5399. //#pragma warning(default : 4200)
  5400. // -----------------------------------------------------------------------------
  5401. //
  5402. // @doc EXTERNAL
  5403. //
  5404. // @struct RILGPRSCONTEXT | A PDP Context represents a certain configuration for
  5405. // packet data communication.
  5406. //
  5407. // @comm None
  5408. //
  5409. // -----------------------------------------------------------------------------
  5410. //#pragma warning(disable : 4200) // Disable "C4200: nonstandard extension used : zero-sized array in struct/union"
  5411. type
  5412. rilgprscontext_tag = record
  5413. cbSize:DWORD; // @field structure size in bytes
  5414. dwParams:DWORD; // @field indicates valid parameters
  5415. dwContextID:DWORD; // @field the context number
  5416. dwProtocolType:DWORD; // @field a RIL_GPRSPROTOCOL_*constant
  5417. wszAccessPointName:array[0..MAXLENGTH_GPRSACCESSPOINTNAME-1] of WCHAR; // @field a logical name to select the gateway gprs
  5418. // (which defines the external packet data network to use)
  5419. wszAddress:array[0..MAXLENGTH_GPRSADDRESS-1] of WCHAR; // @field the packet address to use (if null, request dynamic)
  5420. dwDataCompression:DWORD; // @field a RIL_GPRSDATACOMP_*
  5421. dwHeaderCompression:DWORD; // @field a RIL_GPRSHEADERCOMP_*
  5422. dwParameterLength:DWORD; // @field length of parameters list
  5423. szParameters:array[0..0] of AnsiChar; // @field parameters specific to the prococol type
  5424. end;
  5425. RILGPRSCONTEXT = rilgprscontext_tag;
  5426. LPRILGPRSCONTEXT = ^rilgprscontext_tag;
  5427. //#pragma warning(default : 4200)
  5428. // -----------------------------------------------------------------------------
  5429. //
  5430. // @doc EXTERNAL
  5431. //
  5432. // @struct RILGPRSPROTOCOLCAPS | General Packet Radio Service capabilities
  5433. //
  5434. // @comm TBDTBD
  5435. //
  5436. // -----------------------------------------------------------------------------
  5437. //#pragma warning(disable : 4200) // Disable "C4200: nonstandard extension used : zero-sized array in struct/union"
  5438. type
  5439. rilgprsqosprofilecaps_tag = record
  5440. cbSize:DWORD; // @field structure size in bytes (padded to DWORD)
  5441. dwParams:DWORD; // @field indicates valid parameters
  5442. dwProtocolType:DWORD; // @field a RIL_GPRSPROTOCOL_* constant
  5443. dwPrecedenceClass:DWORD; // @field valid RIL_GPRSPRECEDENCECLASS_* constants
  5444. dwDelayClass:DWORD; // @field valid RIL_GPRSDELAYCLASS_* constants
  5445. dwReliabilityClass:DWORD; // @field valid RIL_GPRSRELIABILITYCLASS_* constants
  5446. dwPeakThruClass:DWORD; // @field valid RIL_GPRSPEAKTHRUCLASS_* constants
  5447. dwMeanThruClass:DWORD; // @field valid RIL_GPRSMEANTHRUCLASS_* constants
  5448. end;
  5449. RILGPRSQOSPROFILECAPS = rilgprsqosprofilecaps_tag;
  5450. LPRILGPRSQOSPROFILECAPS = ^rilgprsqosprofilecaps_tag;
  5451. //#pragma warning(default : 4200)
  5452. // -----------------------------------------------------------------------------
  5453. //
  5454. // @doc EXTERNAL
  5455. //
  5456. // @struct RILGPRSQOSPROFILE | A quality of service profile
  5457. //
  5458. // @comm None
  5459. //
  5460. // -----------------------------------------------------------------------------
  5461. type
  5462. rilgprsqosprofile_tag = record
  5463. cbSize:DWORD; // @field structure size in bytes
  5464. dwParams:DWORD; // @field indicates valid parameters
  5465. dwContextID:DWORD; // @field the context number
  5466. dwPrecedenceClass:DWORD; // @field a RIL_GPRSPRECEDENCECLASS_* constant
  5467. dwDelayClass:DWORD; // @field a RIL_GPRSDELAYCLASS_* constant
  5468. dwReliabilityClass:DWORD; // @field a RIL_GPRSRELIABILITYCLASS_* constant
  5469. dwPeakThruClass:DWORD; // @field a RIL_GPRSPEAKTHRUCLASS_* constant
  5470. dwMeanThruClass:DWORD; // @field a RIL_GPRSMEANTHRUCLASS_* constant
  5471. end;
  5472. RILGPRSQOSPROFILE = rilgprsqosprofile_tag;
  5473. LPRILGPRSQOSPROFILE = ^rilgprsqosprofile_tag;
  5474. // -----------------------------------------------------------------------------
  5475. //
  5476. // @doc EXTERNAL
  5477. //
  5478. // @struct RILGPRSANSWER | A quality of service profile
  5479. //
  5480. // @comm None
  5481. //
  5482. // -----------------------------------------------------------------------------
  5483. //#pragma warning(disable : 4200) // Disable "C4200: nonstandard extension used : zero-sized array in struct/union"
  5484. type
  5485. rilgprsanswer_tag = record
  5486. cbSize:DWORD; // @field structure size in bytes
  5487. fAnswer:BOOL; // @parm TRUE: accept, FALSE: reject
  5488. dwL2Protocol:DWORD; // @parm an optional RILL2PROTOCOL_* constant
  5489. dwNumContexts:DWORD; // @parm number of contexts which follow
  5490. dwContextID:array[0..0] of DWORD; // @parm identifies the context(s) to enter data state
  5491. end;
  5492. RILGPRSANSWER = rilgprsanswer_tag;
  5493. LPRILGPRSANSWER = ^rilgprsanswer_tag;
  5494. //#pragma warning(default : 4200)
  5495. // -----------------------------------------------------------------------------
  5496. //
  5497. // @doc EXTERNAL
  5498. //
  5499. // @struct RILENTERGPRSDATAMODE | A quality of service profile
  5500. //
  5501. // @comm None
  5502. //
  5503. // -----------------------------------------------------------------------------
  5504. //#pragma warning(disable : 4200) // Disable "C4200: nonstandard extension used : zero-sized array in struct/union"
  5505. type
  5506. rilentergprsdatamode_tag = record
  5507. cbSize:DWORD; // @field structure size in bytes
  5508. dwL2Protocol:DWORD; // @parm an optional RILL2PROTOCOL_* constant
  5509. dwNumContexts:DWORD; // @parm number of contexts which follow
  5510. dwContextID:array[0..0] of DWORD; // @parm identifies the context(s) to enter data state
  5511. end;
  5512. RILENTERGPRSDATAMODE = rilentergprsdatamode_tag;
  5513. LPRILENTERGPRSDATAMODE = ^rilentergprsdatamode_tag;
  5514. //#pragma warning(default : 4200)
  5515. // -----------------------------------------------------------------------------
  5516. //
  5517. // @doc EXTERNAL
  5518. //
  5519. // @struct RILLOCATIONINFO | Contains network location information
  5520. //
  5521. // @comm None
  5522. //
  5523. // -----------------------------------------------------------------------------
  5524. type
  5525. rillocationinfo_tag = record
  5526. cbSize:DWORD; // @field structure size in bytes
  5527. dwLocationAreaCode:DWORD; // @field the context number
  5528. dwCellID:DWORD; // @field the context number
  5529. end;
  5530. RILLOCATIONINFO = rillocationinfo_tag;
  5531. LPRILLOCATIONINFO = ^rillocationinfo_tag;
  5532. // -----------------------------------------------------------------------------
  5533. //
  5534. // @doc EXTERNAL
  5535. //
  5536. // @struct RILGPRSCONTEXTACTIVATED | Shows which contexts are active
  5537. //
  5538. // @comm None
  5539. //
  5540. // -----------------------------------------------------------------------------
  5541. type
  5542. rilgprscontextactivated_tag = record
  5543. cbSize:DWORD; // @field structure size in bytes
  5544. dwEvent:DWORD; // @field the disconnection event type: RIL_PARAM_RILGPRSCONTEXTACTIVATED_ (applies to deactivation)
  5545. dwContextID:DWORD; // @field the context number
  5546. fActivated:BOOL; // @field whether the context is activated
  5547. end;
  5548. RILGPRSCONTEXTACTIVATED = rilgprscontextactivated_tag;
  5549. LPRILGPRSCONTEXTACTIVATED = ^rilgprscontextactivated_tag;
  5550. // -----------------------------------------------------------------------------
  5551. //
  5552. // @doc EXTERNAL
  5553. //
  5554. // @struct RILLOGATCOMMAND | Contains inbound and outbound AT commands/responses
  5555. //
  5556. // @comm None
  5557. //
  5558. // -----------------------------------------------------------------------------
  5559. type
  5560. rillogatinfo_tag = record
  5561. cbSize:DWORD; // @field structure size in bytes
  5562. cbLength:DWORD; // @field command buffer length
  5563. szRsp:array[0..MAXLENGTH_CMD-1] of byte; // @field command buffer
  5564. fResponse:BOOL; // @field TRUE if szRsp contains a response; FALSE if szRsp contains a command
  5565. end;
  5566. RILLOGATINFO = rillogatinfo_tag;
  5567. LPRILLOGATINFO = ^rillogatinfo_tag;
  5568. // -----------------------------------------------------------------------------
  5569. //
  5570. // @doc EXTERNAL
  5571. //
  5572. // @struct RILNDISIPV6ADDR | Encapsulates an IPv6 address.
  5573. //
  5574. // @comm None
  5575. //
  5576. // -----------------------------------------------------------------------------
  5577. const
  5578. IPV6_ADDRESS_LENGTH = 16;
  5579. IPV6_ADDRESS_LENGTH_IN_UCHAR = IPV6_ADDRESS_LENGTH;
  5580. IPV6_ADDRESS_LENGTH_IN_USHORT = IPV6_ADDRESS_LENGTH div 2;
  5581. type
  5582. rilndisipv6addr_tag = record
  5583. case USHORT of
  5584. 0: (_Byte:array[0..IPV6_ADDRESS_LENGTH_IN_UCHAR-1] of UCHAR);
  5585. 1: (_Word:array[0..IPV6_ADDRESS_LENGTH_IN_USHORT-1] of USHORT);
  5586. end;
  5587. RILNDISIPV6ADDR = rilndisipv6addr_tag;
  5588. LPRILNDISIPV6ADDR = ^rilndisipv6addr_tag;
  5589. // -----------------------------------------------------------------------------
  5590. //
  5591. // @doc EXTERNAL
  5592. //
  5593. // @struct RILNDISIPCONFIG | returned in association with RIL_NOTIFY_NDIS_IPCONFIG
  5594. //
  5595. // @comm None
  5596. //
  5597. // -----------------------------------------------------------------------------
  5598. type
  5599. Tipv4 = record
  5600. dwFlags:DWORD; // @field bitfield of valid in_addr parameters defined by RIL_PARAM_NDISIPCONFIG_xxx
  5601. inIPAddress:DWORD;
  5602. inPrimaryDNS:DWORD;
  5603. inSecondaryDNS:DWORD;
  5604. inDefaultGateway:DWORD;
  5605. inSubnetMask:DWORD;
  5606. end;
  5607. Tipv6 = record
  5608. dwFlags:DWORD; // @field bitfield of valid in_addr parameters defined by RIL_PARAM_NDISIPCONFIG_IPV6_xxx
  5609. inIPAddress:RILNDISIPV6ADDR;
  5610. inPrimaryDNS:RILNDISIPV6ADDR;
  5611. inSecondaryDNS:RILNDISIPV6ADDR;
  5612. inDefaultGateway:RILNDISIPV6ADDR;
  5613. inSubnetMask:RILNDISIPV6ADDR;
  5614. dwFlowInfo:DWORD;
  5615. dwScopeId:DWORD;
  5616. end;
  5617. rilndisipconfig_tag = record
  5618. cbSize:DWORD; // @field structure size in bytes
  5619. dwContextId:DWORD;
  5620. dwProtocol:DWORD; // @field discriminator for the union field; defined by RIL_PARAM_NDISIPCONFIG_PROTOCOL_*
  5621. case DWORD of
  5622. 0: (ipv4:Tipv4);
  5623. 1: (ipv6:Tipv6);
  5624. end;
  5625. RILNDISIPCONFIG = rilndisipconfig_tag;
  5626. LPRILNDISIPCONFIG = ^rilndisipconfig_tag;
  5627. // -----------------------------------------------------------------------------
  5628. //
  5629. // @doc EXTERNAL
  5630. //
  5631. // @struct RILNDISBUFFER | Buffer defintion for use in rildndispacket_tag below.
  5632. //
  5633. // @comm None
  5634. //
  5635. // -----------------------------------------------------------------------------
  5636. type
  5637. rilndisbuffer_tag = record
  5638. pbyBytes:LPBYTE; // @field Pointer to the buffer
  5639. cByteCount:DWORD; // @field Number of bytes pointed to by pbyBytes.
  5640. end;
  5641. RILNDISBUFFER = rilndisbuffer_tag;
  5642. LPRILNDISBUFFER = ^rilndisbuffer_tag;
  5643. // -----------------------------------------------------------------------------
  5644. //
  5645. // @doc EXTERNAL
  5646. //
  5647. // @struct RILNDISPACKET |
  5648. //
  5649. // @comm None
  5650. //
  5651. // -----------------------------------------------------------------------------
  5652. type
  5653. rilndispacket_tag = record
  5654. dwContextId:DWORD;
  5655. dwSize:DWORD;
  5656. cBufferCount:DWORD;
  5657. NDISBuffer:array[0..0] of RILNDISBUFFER;
  5658. end;
  5659. RILNDISPACKET = rilndispacket_tag;
  5660. LPRILNDISPACKET = ^rilndispacket_tag;
  5661. // -----------------------------------------------------------------------------
  5662. //
  5663. // @doc EXTERNAL
  5664. //
  5665. // @struct RILNDISSTATUS |
  5666. //
  5667. // @comm None
  5668. //
  5669. // -----------------------------------------------------------------------------
  5670. type
  5671. rilndisstatus_tag = record
  5672. dwContextId:DWORD; // @parm GPRS context identifier reporting status
  5673. dwSize:DWORD; // @parm size of this struct.
  5674. dwStatusType:DWORD; // @parm RIL_PARAM_RILNDISSTATUS_ type
  5675. case longint of
  5676. 0: (pRilNdisIpConfig:LPRILNDISIPCONFIG); // @parm points to data
  5677. 1: (dwFlowControl:DWORD); // @parm flow control RIL_NDIS_XON or RIL_NDIS_XOFF
  5678. end;
  5679. RILNDISSTATUS = rilndisstatus_tag;
  5680. LPRILNDISSTATUS = ^rilndisstatus_tag;
  5681. // -----------------------------------------------------------------------------
  5682. //
  5683. // @doc EXTERNAL
  5684. //
  5685. // @func RIL NDIS receive packet callback
  5686. //
  5687. // @comm This function is called to when an IP packet is received by the
  5688. // RIL driver.
  5689. //
  5690. // -----------------------------------------------------------------------------
  5691. type
  5692. RILNDISRECEIVECALLBACK = procedure(pCallbackContext:PVOID; // @parm parameter passed to <f RIL_NDIS_SetGPRSContextActivated>
  5693. pRilPacket:LPRILNDISPACKET // @parm ponter to received packet
  5694. ); cdecl;
  5695. // -----------------------------------------------------------------------------
  5696. //
  5697. // @doc EXTERNAL
  5698. //
  5699. // @func RIL NDIS transmit packet callback
  5700. //
  5701. // @comm This function is called to when an IP packet is sent by the
  5702. // RIL driver.
  5703. //
  5704. // -----------------------------------------------------------------------------
  5705. type
  5706. RILNDISTRANSMITCALLBACK = procedure(pCallbackContext:PVOID; // @parm parameter passed to <f RIL_NDIS_SetGPRSContextActivated>
  5707. pRilPacket:LPRILNDISPACKET // @parm ponter to received packet
  5708. ); cdecl;
  5709. // -----------------------------------------------------------------------------
  5710. //
  5711. // @doc EXTERNAL
  5712. //
  5713. // @func RIL NDIS status callback
  5714. //
  5715. // @comm This function is called to when a NDIS packet IO status change occurred in the
  5716. // RIL driver.
  5717. //
  5718. // -----------------------------------------------------------------------------
  5719. type
  5720. RILNDISSTATUSCALLBACK = procedure(pCallbackContext:PVOID; // @parm parameter passed to <f RIL_NDIS_SetGPRSContextActivated>
  5721. pRilStatus:LPRILNDISSTATUS // @parm ponter to received packet
  5722. ); cdecl;
  5723. // -----------------------------------------------------------------------------
  5724. //
  5725. // @doc EXTERNAL
  5726. //
  5727. // @func RIL NDIS Receive Packet Done callback
  5728. //
  5729. // @comm This function may optionally be used to release packets from the WWAN interface.
  5730. //
  5731. // -----------------------------------------------------------------------------
  5732. type
  5733. PFNRILNDISRECEIVEPACKETDONE = procedure(lpPacketReceived:LPRILNDISPACKET); cdecl;
  5734. // -----------------------------------------------------------------------------
  5735. //
  5736. // @doc EXTERNAL
  5737. //
  5738. // @func RIL NDIS Send Packet callback
  5739. //
  5740. // @comm This function may optionally be used to send NDIS packets from the WWAN interface.
  5741. //
  5742. // -----------------------------------------------------------------------------
  5743. type
  5744. PFNRILNDISSENDPACKET = procedure(lpPacketToSend:LPRILNDISPACKET); cdecl;
  5745. const
  5746. NDIS_GPRS_PASSWORD_MAX_LENGTH = 64;
  5747. NDIS_GPRS_USERNAME_MAX_LENGTH = 64;
  5748. NDIS_GRPS_DNS_MAX_LENGTH = 64;
  5749. // -----------------------------------------------------------------------------
  5750. //
  5751. // @doc EXTERNAL
  5752. //
  5753. // @struct RILNDISGPRSCONTEXT |
  5754. //
  5755. // @comm None
  5756. //
  5757. // -----------------------------------------------------------------------------
  5758. type
  5759. rilndisgprscontext_tag = record
  5760. cbSize:DWORD; // @field structure size in bytes
  5761. dwParams:DWORD; // @field indicates valid parameters
  5762. dwContextID:DWORD; // @field identifies the context
  5763. fContextActivation:BOOL; // @field TRUE: activated, FALSE: deactivated
  5764. tszUserName:array[0..NDIS_GPRS_USERNAME_MAX_LENGTH-1] of TCHAR; // @field Context activation user name
  5765. tszPassword:array[0..NDIS_GPRS_PASSWORD_MAX_LENGTH-1] of TCHAR; // @field Context activation password
  5766. tszDNS1:array[0..NDIS_GRPS_DNS_MAX_LENGTH-1] of TCHAR; // @field Context activation DNS1
  5767. tszDNS2:array[0..NDIS_GRPS_DNS_MAX_LENGTH-1] of TCHAR; // @fielf Context activation DNS2
  5768. pfnNdisReceive:RILNDISRECEIVECALLBACK; // @parm function NDIS Rx packet callback
  5769. pfnNdisTransmit:RILNDISTRANSMITCALLBACK; // @parm function NDIS Tx packet callback
  5770. pfnNdisStatus:RILNDISSTATUSCALLBACK; // @parm function NDIS status callback
  5771. pCallbackContext:PVOID; // @parm custom parameter passed to NDIS Rx packet callback
  5772. end;
  5773. RILNDISGPRSCONTEXT = rilndisgprscontext_tag;
  5774. LPRILNDISGPRSCONTEXT = ^rilndisgprscontext_tag;
  5775. // -----------------------------------------------------------------------------
  5776. //
  5777. // @doc EXTERNAL
  5778. //
  5779. // @struct RILNDISGPRSCONTEXTRESPONSE |
  5780. //
  5781. // @comm None
  5782. //
  5783. // -----------------------------------------------------------------------------
  5784. type
  5785. rilndisgprscontextresponse_tag = record
  5786. cbSize:DWORD; // @field structure size in bytes
  5787. dwParams:DWORD; // @field RIL_PARAM_RILNDISGPRSCONTEXTRESPONSE_
  5788. dwContextID:DWORD; // @field identifies the context
  5789. dwError:DWORD; // @field error during activation.
  5790. pfnNdisSendPacket:PFNRILNDISSENDPACKET; // @parm function NDIS Send Packet
  5791. pfnNdisReceivePacketDone:PFNRILNDISRECEIVEPACKETDONE; // @parm function NDIS Receive Packet Done.
  5792. RilNdisIPConfig:RILNDISIPCONFIG; //@parm IP configuration data obtained during activation.
  5793. end;
  5794. RILNDISGPRSCONTEXTRESPONSE = rilndisgprscontextresponse_tag;
  5795. LPRILNDISGPRSCONTEXTRESPONSE = ^rilndisgprscontextresponse_tag;
  5796. type
  5797. RILNDISSETGPRSCONTEXTACTIVATED = RILNDISGPRSCONTEXT;
  5798. LPRILNDISSETGPRSCONTEXTACTIVATED = LPRILNDISGPRSCONTEXT;
  5799. // -----------------------------------------------------------------------------
  5800. //
  5801. // @doc EXTERNAL
  5802. //
  5803. // @struct RILNITZINFO |
  5804. //
  5805. // @comm None
  5806. //
  5807. // -----------------------------------------------------------------------------
  5808. type
  5809. rilnitzinfo_tag = record
  5810. cbSize:DWORD; // size of this struct.
  5811. dwParams:DWORD; // valid fields RIL_PARAM_NITZ_
  5812. dwNotificationCode:DWORD; // type of notifcation RIL_NOTIFY_NITZ
  5813. TimeZoneOffsetMinutes:longint;// Indicates the time zone offset +/-
  5814. DaylightSavingOffsetMinutes:longint; // Indicates the daylight saving offset in minutes
  5815. SysTime:SYSTEMTIME; // If available from network
  5816. end;
  5817. RILNITZINFO = rilnitzinfo_tag;
  5818. LPRILNITZINFO = ^rilnitzinfo_tag;
  5819. // -----------------------------------------------------------------------------
  5820. //
  5821. // @doc EXTERNAL
  5822. //
  5823. // @struct RILSIMSECURITYSTATUS | SIM security status struct
  5824. //
  5825. // @comm None
  5826. //
  5827. // -----------------------------------------------------------------------------
  5828. type
  5829. rilsimsecuritystatus_tag = record
  5830. cbSize:DWORD; // @field structure size in bytes
  5831. dwLockedState:DWORD; // @field one of RIL_LOCKEDSTATE_*
  5832. dwSimSecurityState:DWORD; // @field one of RIL_SIMSECURITYSTATE_*
  5833. end;
  5834. RILSIMSECURITYSTATUS = rilsimsecuritystatus_tag;
  5835. LPRILSIMSECURITYSTATUS = ^rilsimsecuritystatus_tag;
  5836. //
  5837. // RIL handle type
  5838. //
  5839. type
  5840. HRIL = HANDLE;
  5841. LPHRIL = ^HRIL;
  5842. // -----------------------------------------------------------------------------
  5843. //
  5844. // @doc EXTERNAL
  5845. //
  5846. // @func RIL function result callback
  5847. //
  5848. // @comm This function is called to send a return value after and asynchronous
  5849. // RIL function call
  5850. //
  5851. // -----------------------------------------------------------------------------
  5852. type
  5853. RILRESULTCALLBACK = procedure(dwCode:DWORD; // @parm result code
  5854. hrCmdID:HRESULT; // @parm ID returned by the command that originated this response
  5855. lpData:pointer; // @parm data associated with the notification
  5856. cbData:DWORD; // @parm size of the strcuture pointed to lpData
  5857. dwParam:DWORD // @parm parameter passed to <f RIL_Initialize>
  5858. ); cdecl;
  5859. // -----------------------------------------------------------------------------
  5860. //
  5861. // @doc EXTERNAL
  5862. //
  5863. // @func RIL notification callback
  5864. //
  5865. // @comm This function is called when the radio sends an unsolicited notifiation
  5866. //
  5867. // -----------------------------------------------------------------------------
  5868. type
  5869. RILNOTIFYCALLBACK = procedure(dwCode:DWORD; // @parm notification code
  5870. lpData:pointer; // @parm data associated with the notification
  5871. cbData:DWORD; // @parm size of the strcuture pointed to lpData
  5872. dwParam:DWORD // @parm parameter passed to <f RIL_Initialize>
  5873. ); cdecl;
  5874. // -----------------------------------------------------------------------------
  5875. //
  5876. // @doc EXTERNAL
  5877. //
  5878. // @func RIL call type determination callback
  5879. //
  5880. // @comm This function is called to determine the call type when the
  5881. // following is present in the registry:
  5882. //
  5883. // [HKEY_LOCAL_MACHINE\Comm\Cellular\RIL\RemoteCalltype]
  5884. // "CalltypeDLL"="<libraryName>.dll"
  5885. // "CalltypeFunction"="<functionName>"
  5886. //
  5887. // -----------------------------------------------------------------------------
  5888. type
  5889. RILCALLTYPECALLBACK = function(pRemotePartyInfo:LPRILREMOTEPARTYINFO // @param remote party info used to determine the call type
  5890. ):DWORD; cdecl;
  5891. //
  5892. // RIL Functions
  5893. //
  5894. // Comment: contains 132 functions.
  5895. // -----------------------------------------------------------------------------
  5896. //
  5897. // @doc EXTERNAL
  5898. //
  5899. // @func Initializes RIL for use by this client
  5900. //
  5901. // @comm Synchronous
  5902. // RIL only supports single threaded RIL handles.
  5903. // The RIL validates the application's RIL handle before using it.
  5904. // No application can use/close a RIL handle that it does not own.
  5905. //
  5906. // -----------------------------------------------------------------------------
  5907. function RIL_Initialize(dwIndex:DWORD; // @parm index of the RIL port to use (e.g., 1 for RIL1:)
  5908. pfnResult:RILRESULTCALLBACK; // @parm function result callback
  5909. pfnNotify:RILNOTIFYCALLBACK; // @parm notification callback
  5910. dwNotificationClasses:DWORD; // @parm classes of notifications to be enabled for this client
  5911. dwParam:DWORD; // @parm custom parameter passed to result and notififcation callbacks
  5912. _lphRil:LPHRIL // @parm returned handle to RIL instance
  5913. ):HRESULT; external RILDLL name 'RIL_Initialize';
  5914. // -----------------------------------------------------------------------------
  5915. //
  5916. // @doc EXTERNAL
  5917. //
  5918. // @func Initializes RIL for use by this emergency call module
  5919. //
  5920. // @comm Synchronous
  5921. //
  5922. // -----------------------------------------------------------------------------
  5923. function RIL_InitializeEmergency(dwIndex:DWORD; // @parm index of the RIL port to use (e.g., 1 for RIL1:)
  5924. pfnResult:RILRESULTCALLBACK; // @parm function result callback
  5925. pfnNotify:RILNOTIFYCALLBACK; // @parm notification callback
  5926. dwNotificationClasses:DWORD; // @parm classes of notifications to be enabled for this client
  5927. dwParam:DWORD; // @parm custom parameter passed to result and notififcation callbacks
  5928. _lphRil:LPHRIL // @parm returned handle to RIL instance
  5929. ):HRESULT; external RILDLL name 'RIL_InitializeEmergency';
  5930. // -----------------------------------------------------------------------------
  5931. //
  5932. // @doc EXTERNAL
  5933. //
  5934. // @func Deinitializes RIL
  5935. //
  5936. // @comm Synchronous
  5937. //
  5938. // -----------------------------------------------------------------------------
  5939. function RIL_Deinitialize(
  5940. _hRil:HRIL // @parm handle to an RIL instance returned by <f RIL_Initialize>
  5941. ):HRESULT; external RILDLL name 'RIL_Deinitialize';
  5942. // -----------------------------------------------------------------------------
  5943. //
  5944. // @doc EXTERNAL
  5945. //
  5946. // @func Enables additional classes of notifications for this client
  5947. //
  5948. // @comm Synchronous
  5949. //
  5950. // -----------------------------------------------------------------------------
  5951. function RIL_EnableNotifications(
  5952. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  5953. dwNotificationClasses:DWORD // @parm classes of notifications to enable
  5954. ):HRESULT; external RILDLL name 'RIL_EnableNotifications';
  5955. // -----------------------------------------------------------------------------
  5956. //
  5957. // @doc EXTERNAL
  5958. //
  5959. // @func Disables classes of notifications for this client
  5960. //
  5961. // @comm Synchronous
  5962. //
  5963. // -----------------------------------------------------------------------------
  5964. function RIL_DisableNotifications(
  5965. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  5966. dwNotificationClasses:DWORD // @parm classes of notifications to disable
  5967. ):HRESULT; external RILDLL name 'RIL_DisableNotifications';
  5968. // -----------------------------------------------------------------------------
  5969. //
  5970. // @doc EXTERNAL
  5971. //
  5972. // @func Disables classes of notifications for this client
  5973. //
  5974. // @comm Synchronous
  5975. //
  5976. // -----------------------------------------------------------------------------
  5977. function RIL_RegisterATCommandLogging(_hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  5978. fEnable:BOOL // @parm flag to turn feature on or off.
  5979. ):HRESULT; external RILDLL name 'RIL_RegisterATCommandLogging';
  5980. // -----------------------------------------------------------------------------
  5981. //
  5982. // @doc EXTERNAL
  5983. //
  5984. // @func Creates a log file of recent AT commands
  5985. //
  5986. // @comm Asynchronous.
  5987. // For Microsoft Test only. This will not be fully implemented on every
  5988. // platform. A return response of E_NOTIMPL will be returned in the
  5989. // default case.
  5990. //
  5991. // DO NOT IMPLEMENT THIS.
  5992. //
  5993. // -----------------------------------------------------------------------------
  5994. function RIL_ATCommandLogFile(_hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  5995. pszFilename:LPCTSTR // @parm String containing the filename for the log.
  5996. ):HRESULT; external RILDLL name 'RIL_ATCommandLogFile';
  5997. // -----------------------------------------------------------------------------
  5998. //
  5999. // @doc EXTERNAL
  6000. //
  6001. // @func Retrieves a serial port handle to be used for data communications
  6002. //
  6003. // @comm Synchronous. Client is responsible for closing the handle returned in <p lphSerial>.
  6004. //
  6005. // -----------------------------------------------------------------------------
  6006. function RIL_GetSerialPortHandle(
  6007. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6008. lphSerial:LPHANDLE // @parm pointer to the serial port handle
  6009. ):HRESULT; external RILDLL name 'RIL_GetSerialPortHandle';
  6010. // -----------------------------------------------------------------------------
  6011. //
  6012. // @doc EXTERNAL
  6013. //
  6014. // @func Retrieves a serial port handle to be used for video telephony
  6015. //
  6016. // @comm Synchronous. Client is responsible for closing the handle returned in <p lphSerial>.
  6017. //
  6018. // -----------------------------------------------------------------------------
  6019. function RIL_GetVTSerialPortHandle(_hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6020. lphSerial:LPHANDLE // @parm pointer to the serial port handle
  6021. ):HRESULT; external RILDLL name 'RIL_GetVTSerialPortHandle';
  6022. // -----------------------------------------------------------------------------
  6023. //
  6024. // @doc EXTERNAL
  6025. //
  6026. // @func Retrieves a serial port handle to be used for data communications
  6027. //
  6028. // @comm Synchronous. Client is responsible for closing the handle returned in <p lphSerial>.
  6029. //
  6030. // -----------------------------------------------------------------------------
  6031. function RIL_GetSerialPortHandleFromContextID(_hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6032. dwContextID:DWORD; // @parm PDP context identifier.
  6033. lphSerial:LPHANDLE // @parm pointer to the serial port handle
  6034. ):HRESULT; external RILDLL name 'RIL_GetSerialPortHandleFromContextID';
  6035. // -----------------------------------------------------------------------------
  6036. //
  6037. // @doc EXTERNAL
  6038. //
  6039. // @func Retrieves a serial port handle statistics
  6040. //
  6041. // @comm Synchronous
  6042. //
  6043. // -----------------------------------------------------------------------------
  6044. function RIL_GetSerialPortStatistics(
  6045. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6046. lpSerialPortStats:LPRILSERIALPORTSTATS // @parm pointer to the statistics structure
  6047. ):HRESULT; external RILDLL name 'RIL_GetSerialPortStatistics';
  6048. // -----------------------------------------------------------------------------
  6049. //
  6050. // @doc EXTERNAL
  6051. //
  6052. // @func Restrieves the driver version
  6053. //
  6054. // @comm Synchronous
  6055. //
  6056. // -----------------------------------------------------------------------------
  6057. function RIL_GetDriverVersion(
  6058. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6059. pdwVersion:LPDWORD // @parm pointer to version. HIWORD is major version, LOWORD is minor version
  6060. ):HRESULT; external RILDLL name 'RIL_GetDriverVersion';
  6061. // -----------------------------------------------------------------------------
  6062. //
  6063. // @doc EXTERNAL
  6064. //
  6065. // @func Restrieves information about subscriber numbers
  6066. //
  6067. // @comm Asynchronous. <p lpData> points to an array of <t RILSUBSCRIBERINFO> structures.
  6068. //
  6069. // -----------------------------------------------------------------------------
  6070. function RIL_GetSubscriberNumbers(
  6071. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6072. ):HRESULT; external RILDLL name 'RIL_GetSubscriberNumbers';
  6073. // -----------------------------------------------------------------------------
  6074. //
  6075. // @doc EXTERNAL
  6076. //
  6077. // @func Retrieves the list of available operators
  6078. //
  6079. // @comm Asynchronous. <p lpData> points to an array of <t RILOPERATORINFO> structures.
  6080. //
  6081. // -----------------------------------------------------------------------------
  6082. function RIL_GetOperatorList(
  6083. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6084. ):HRESULT; external RILDLL name 'RIL_GetOperatorList';
  6085. // -----------------------------------------------------------------------------
  6086. //
  6087. // @doc EXTERNAL
  6088. //
  6089. // @func Retrieves the built-in list of all known operators.
  6090. // This is not the list of operators available, for that see RIL_GetOperatorList.
  6091. //
  6092. // @comm Asynchronous. <p lpData> points to an array of <t RILOPERATORNAMES> structures.
  6093. //
  6094. // -----------------------------------------------------------------------------
  6095. function RIL_GetAllOperatorsList(_hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6096. ):HRESULT; external RILDLL name 'RIL_GetAllOperatorsList';
  6097. // -----------------------------------------------------------------------------
  6098. //
  6099. // @doc EXTERNAL
  6100. //
  6101. // @func Retrieves the list of preferred operators
  6102. //
  6103. // @comm Asynchronous. <p lpData> points to an array of <t RILOPERATORINFO> structures.
  6104. //
  6105. // -----------------------------------------------------------------------------
  6106. function RIL_GetPreferredOperatorList(
  6107. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6108. dwFormat:DWORD // @parm format to use for the operator names in the list
  6109. ):HRESULT; external RILDLL name 'RIL_GetPreferredOperatorList';
  6110. // -----------------------------------------------------------------------------
  6111. //
  6112. // @doc EXTERNAL
  6113. //
  6114. // @func Adds a specified operator to the list of preferred operators
  6115. //
  6116. // @comm Asynchronous. <p lpData> is <def NULL>
  6117. //
  6118. // -----------------------------------------------------------------------------
  6119. function RIL_AddPreferredOperator(
  6120. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6121. dwIndex:DWORD; // @parm storage index to use for the added operator
  6122. lpOperatorNames:LPRILOPERATORNAMES // @parm operator name
  6123. ):HRESULT; external RILDLL name 'RIL_AddPreferredOperator';
  6124. // -----------------------------------------------------------------------------
  6125. //
  6126. // @doc EXTERNAL
  6127. //
  6128. // @func Removes a specified operator from the list of preferred operators
  6129. //
  6130. // @comm Asynchronous. <p lpData> is <def NULL>.
  6131. //
  6132. // -----------------------------------------------------------------------------
  6133. function RIL_RemovePreferredOperator(
  6134. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6135. dwIndex:DWORD // @parm storage index of the preferred operator to remove
  6136. ):HRESULT; external RILDLL name 'RIL_RemovePreferredOperator';
  6137. // -----------------------------------------------------------------------------
  6138. //
  6139. // @doc EXTERNAL
  6140. //
  6141. // @func Retrieves the operator the ME is currently registered with
  6142. //
  6143. // @comm Asynchronous. <p lpData> points to an <t RILOPERATORNAMES> structure.
  6144. //
  6145. // -----------------------------------------------------------------------------
  6146. function RIL_GetCurrentOperator(
  6147. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize()>
  6148. dwFormat:DWORD // @parm format of the operator name to return (<def RIL_OPFORMAT_> constant)
  6149. ):HRESULT; external RILDLL name 'RIL_GetCurrentOperator';
  6150. // -----------------------------------------------------------------------------
  6151. //
  6152. // @doc EXTERNAL
  6153. //
  6154. // @func Registers the ME with a network operator
  6155. //
  6156. // @comm Asynchronous. <p lpData> is <def NULL>.
  6157. //
  6158. // -----------------------------------------------------------------------------
  6159. function RIL_RegisterOnNetwork(
  6160. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6161. dwMode:DWORD; // @parm operator selection mode (<def RIL_OPSELMODE_> constant)
  6162. lpOperatorNames:LPRILOPERATORNAMES // @parm operator to be selected (can be <def NULL> if <p dwMode> is <def RIL_OPSELMODE_AUTOMATIC>)
  6163. ):HRESULT; external RILDLL name 'RIL_RegisterOnNetwork';
  6164. // -----------------------------------------------------------------------------
  6165. //
  6166. // @doc EXTERNAL
  6167. //
  6168. // @func Unregisters the ME from the current newtwork operator
  6169. //
  6170. // @comm Asynchronous. <p lpData> is <def NULL>.
  6171. //
  6172. // -----------------------------------------------------------------------------
  6173. function RIL_UnregisterFromNetwork(
  6174. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6175. ):HRESULT; external RILDLL name 'RIL_UnregisterFromNetwork';
  6176. // -----------------------------------------------------------------------------
  6177. //
  6178. // @doc EXTERNAL
  6179. //
  6180. // @func Retrieves the current phone registration status
  6181. //
  6182. // @comm Asynchronous. <p lpData> points to a <def RIL_REGSTAT_> constant.
  6183. //
  6184. // -----------------------------------------------------------------------------
  6185. function RIL_GetRegistrationStatus(
  6186. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6187. pdwRegStatus:LPDWORD // @parm points to returned <def RIL_REGSTAT_> constant
  6188. ):HRESULT; external RILDLL name 'RIL_GetRegistrationStatus';
  6189. // -----------------------------------------------------------------------------
  6190. //
  6191. // @doc EXTERNAL
  6192. //
  6193. // @func Retrieves the current CallerID settings
  6194. //
  6195. // @comm Asynchronous. <p lpData> points to an <t RILCALLERIDSETTINGS> structure.
  6196. //
  6197. // -----------------------------------------------------------------------------
  6198. function RIL_GetCallerIdSettings(
  6199. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6200. ):HRESULT; external RILDLL name 'RIL_GetCallerIdSettings';
  6201. // -----------------------------------------------------------------------------
  6202. //
  6203. // @doc EXTERNAL
  6204. //
  6205. // @func Sets the current CallerID status
  6206. //
  6207. // @comm Asynchronous. <p lpData> is <def NULL>.
  6208. //
  6209. // -----------------------------------------------------------------------------
  6210. function RIL_SetCallerIdStatus(
  6211. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6212. dwStatus:DWORD // @parm status to be set (<def RIL_SVCSTAT_> constant)
  6213. ):HRESULT; external RILDLL name 'RIL_SetCallerIdStatus';
  6214. // -----------------------------------------------------------------------------
  6215. //
  6216. // @doc EXTERNAL
  6217. //
  6218. // @func Retrieves the current HideID settings
  6219. //
  6220. // @comm Asynchronous. <p lpData> points to an <t RILHIDEIDSETTINGS> structure.
  6221. //
  6222. // -----------------------------------------------------------------------------
  6223. function RIL_GetHideIdSettings(
  6224. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6225. ):HRESULT; external RILDLL name 'RIL_GetHideIdSettings';
  6226. // -----------------------------------------------------------------------------
  6227. //
  6228. // @doc EXTERNAL
  6229. //
  6230. // @func Enables or disables HideID service
  6231. //
  6232. // @comm Asynchronous. <p lpData> is <def NULL>.
  6233. //
  6234. // -----------------------------------------------------------------------------
  6235. function RIL_SetHideIdStatus(
  6236. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6237. dwStatus:DWORD // @parm status to be set (<def RIL_SVCSTAT_> constant)
  6238. ):HRESULT; external RILDLL name 'RIL_SetHideIdStatus';
  6239. // -----------------------------------------------------------------------------
  6240. //
  6241. // @doc EXTERNAL
  6242. //
  6243. // @func Retrieves the current DialedID settings
  6244. //
  6245. // @comm Asynchronous. <p lpData> points to an <t RILDIALEDIDSETTINGS> structure.
  6246. //
  6247. // -----------------------------------------------------------------------------
  6248. function RIL_GetDialedIdSettings(
  6249. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6250. ):HRESULT; external RILDLL name 'RIL_GetDialedIdSettings';
  6251. // -----------------------------------------------------------------------------
  6252. //
  6253. // @doc EXTERNAL
  6254. //
  6255. // @func Sets the current DialedID settings
  6256. //
  6257. // @comm Asynchronous. <p lpData> is <def NULL>.
  6258. //
  6259. // -----------------------------------------------------------------------------
  6260. function RIL_SetDialedIdStatus(
  6261. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6262. dwStatus:DWORD // @parm status to be set (<def RIL_SVCSTAT_> constant)
  6263. ):HRESULT; external RILDLL name 'RIL_SetDialedIdStatus';
  6264. // -----------------------------------------------------------------------------
  6265. //
  6266. // @doc EXTERNAL
  6267. //
  6268. // @func Retrieves the current HideConnectedID settings
  6269. //
  6270. // @comm Asynchronous. <p lpData> points to an <t RILHIDECONNECTEDIDSETTINGS> structure.
  6271. //
  6272. // -----------------------------------------------------------------------------
  6273. function RIL_GetHideConnectedIdSettings(
  6274. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6275. ):HRESULT; external RILDLL name 'RIL_GetHideConnectedIdSettings';
  6276. // -----------------------------------------------------------------------------
  6277. //
  6278. // @doc EXTERNAL
  6279. //
  6280. // @func Sets the current HideConnectedID settings
  6281. //
  6282. // @comm Asynchronous. <p lpData> is <def NULL>.
  6283. //
  6284. // -----------------------------------------------------------------------------
  6285. function RIL_SetHideConnectedIdStatus(
  6286. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6287. dwStatus:DWORD // @parm status to be set (<def RIL_SVCSTAT_> constant)
  6288. ):HRESULT; external RILDLL name 'RIL_SetHideConnectedIdStatus';
  6289. // -----------------------------------------------------------------------------
  6290. //
  6291. // @doc EXTERNAL
  6292. //
  6293. // @func Retrieves the status for a Completion of Call to Busy Subscriber index.
  6294. //
  6295. // @comm Asynchronous. If active, <p lpData> points to an array of <t AnsiChar>s
  6296. // indicating the phone number for which CCBS is active. If CCBS is not
  6297. // active for that entry, <p lpData> is <def NULL>.
  6298. //
  6299. // -----------------------------------------------------------------------------
  6300. function RIL_GetCCBSStatus(
  6301. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6302. dwCCBSIndex:DWORD // @parm indicates which entry to query
  6303. ):HRESULT; external RILDLL name 'RIL_GetCCBSStatus';
  6304. // -----------------------------------------------------------------------------
  6305. //
  6306. // @doc EXTERNAL
  6307. //
  6308. // @func Clears registration for a Completion of Call to Busy Subscriber index.
  6309. // Activation of CCBS is used by calling RIL_ManageCalls using the
  6310. // <def RIL_CALLCMD_INVOKECCBS> flag.
  6311. //
  6312. // @comm Asynchronous. <p lpData> is <def NULL>.
  6313. //
  6314. // -----------------------------------------------------------------------------
  6315. function RIL_ClearCCBSRegistration(
  6316. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6317. dwCCBSIndex:DWORD // @parm indicates which entry to clear, may be <def RIL_CCBS_ALL>
  6318. ):HRESULT; external RILDLL name 'RIL_ClearCCBSRegistration';
  6319. // -----------------------------------------------------------------------------
  6320. //
  6321. // @doc EXTERNAL
  6322. //
  6323. // @func Retrieves the current Closed User Group settings
  6324. //
  6325. // @comm Asynchronous. <p lpData> points to an <t RILCLOSEDGROUPSETTINGS> structure.
  6326. //
  6327. // -----------------------------------------------------------------------------
  6328. function RIL_GetClosedGroupSettings(
  6329. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6330. ):HRESULT; external RILDLL name 'RIL_GetClosedGroupSettings';
  6331. // -----------------------------------------------------------------------------
  6332. //
  6333. // @doc EXTERNAL
  6334. //
  6335. // @func Sets the Closed User Group settings
  6336. //
  6337. // @comm Asynchronous. <p lpData> is <def NULL>.
  6338. //
  6339. // -----------------------------------------------------------------------------
  6340. function RIL_SetClosedGroupSettings(
  6341. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6342. lpSettings:LPRILCLOSEDGROUPSETTINGS // @parm settings to be set
  6343. ):HRESULT; external RILDLL name 'RIL_SetClosedGroupSettings';
  6344. // -----------------------------------------------------------------------------
  6345. //
  6346. // @doc EXTERNAL
  6347. //
  6348. // @func Retrieves current Call Forwarding rules
  6349. //
  6350. // @comm Asynchronous. <p lpData> points to an array of <t RILCALLFORWARDINGSETTINGS> structure.
  6351. //
  6352. // -----------------------------------------------------------------------------
  6353. function RIL_GetCallForwardingSettings(
  6354. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6355. dwReason:DWORD; // @parm forwarding reason to retrieve the settings for (<def RIL_FWDREASON_> constant)
  6356. dwInfoClass:DWORD // @parm information class to retrieve barring status for (<def RIL_INFOCLASS_> constant)
  6357. ):HRESULT; external RILDLL name 'RIL_GetCallForwardingSettings';
  6358. // -----------------------------------------------------------------------------
  6359. //
  6360. // @doc EXTERNAL
  6361. //
  6362. // @func Adds a Call Forwarding rule
  6363. //
  6364. // @comm Asynchronous. <p lpData> is <def NULL>.
  6365. //
  6366. // -----------------------------------------------------------------------------
  6367. function RIL_AddCallForwarding(
  6368. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6369. dwReason:DWORD; // @parm forwarding reason to add Call Forwarding for (<def RIL_FWDREASON_> constant)
  6370. lpSettings:LPRILCALLFORWARDINGSETTINGS // @parm settings for the new Call Forwarding rule
  6371. ):HRESULT; external RILDLL name 'RIL_AddCallForwarding';
  6372. // -----------------------------------------------------------------------------
  6373. //
  6374. // @doc EXTERNAL
  6375. //
  6376. // @func Removes a Call Forwarding rule
  6377. //
  6378. // @comm Asynchronous. <p lpData> is <def NULL>.
  6379. //
  6380. // -----------------------------------------------------------------------------
  6381. function RIL_RemoveCallForwarding(
  6382. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6383. dwReason:DWORD; // @parm forwarding reason to remove Call Forwarding for (<def RIL_FWDREASON_> constant)
  6384. dwInfoClasses:DWORD // @parm information classes to remove Call Forwarding for (combination of <def RIL_INFOCLASS_> constants)
  6385. ):HRESULT; external RILDLL name 'RIL_RemoveCallForwarding';
  6386. // -----------------------------------------------------------------------------
  6387. //
  6388. // @doc EXTERNAL
  6389. //
  6390. // @func Enables or disables the specified Call Forwarding rule
  6391. //
  6392. // @comm Asynchronous. <p lpData> is <def NULL>.
  6393. //
  6394. // -----------------------------------------------------------------------------
  6395. function RIL_SetCallForwardingStatus(
  6396. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6397. dwReason:DWORD; // @parm forwarding reason to enable/disable Call Forwarding for (<def RIL_FWDREASON_> constant)
  6398. dwInfoClasses:DWORD; // @parm information classes to enable/disable Call Forwarding for (combination of <def RIL_INFOCLASS_> constants)
  6399. dwStatus:DWORD // @parm status to be set (<def RIL_SVCSTAT_> constant)
  6400. ):HRESULT; external RILDLL name 'RIL_SetCallForwardingStatus';
  6401. // -----------------------------------------------------------------------------
  6402. //
  6403. // @doc EXTERNAL
  6404. //
  6405. // @func Retrieves info classes that Call Waiting is currently enabled for
  6406. //
  6407. // @comm Asynchronous. <p lpData> points to DWORD containing a combination
  6408. // of <def RIL_INFOCLASS_> constants.
  6409. //
  6410. // -----------------------------------------------------------------------------
  6411. function RIL_GetCallWaitingSettings(
  6412. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6413. dwInfoClass:DWORD // @parm information class to retrieve barring status for (<def RIL_INFOCLASS_> constant)
  6414. ):HRESULT; external RILDLL name 'RIL_GetCallWaitingSettings';
  6415. // -----------------------------------------------------------------------------
  6416. //
  6417. // @doc EXTERNAL
  6418. //
  6419. // @func Enables or disables Call Waiting for the specified info class
  6420. //
  6421. // @comm Asynchronous. <p lpData> is <def NULL>.
  6422. //
  6423. // -----------------------------------------------------------------------------
  6424. function RIL_SetCallWaitingStatus(
  6425. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6426. dwInfoClasses:DWORD; // @parm information classes to enable/disable Call Waiting for
  6427. dwStatus:DWORD // @parm status to be set (<def RIL_SVCSTAT_> constant)
  6428. ):HRESULT; external RILDLL name 'RIL_SetCallWaitingStatus';
  6429. // -----------------------------------------------------------------------------
  6430. //
  6431. // @doc EXTERNAL
  6432. //
  6433. // @func Sends supplementary service (USSD) data
  6434. //
  6435. // @comm TBD
  6436. //
  6437. // -----------------------------------------------------------------------------
  6438. function RIL_SendSupServiceData(
  6439. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6440. pwszData:LPCWSTR // @parm data to be sent
  6441. ):HRESULT; external RILDLL name 'RIL_SendSupServiceData';
  6442. // -----------------------------------------------------------------------------
  6443. //
  6444. // @doc EXTERNAL
  6445. //
  6446. // @func Cancels current supplementary service session
  6447. //
  6448. // @comm TBD
  6449. //
  6450. // -----------------------------------------------------------------------------
  6451. function RIL_CancelSupServiceDataSession(
  6452. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6453. ):HRESULT; external RILDLL name 'RIL_CancelSupServiceDataSession';
  6454. // -----------------------------------------------------------------------------
  6455. //
  6456. // @doc EXTERNAL
  6457. //
  6458. // @func Retrieves the current address identifier (see RILSUBSCRIBERINFO)
  6459. //
  6460. // @comm Asynchronous. <p lpData> points to a <def DWORD> identifying the current address ID.
  6461. //
  6462. // -----------------------------------------------------------------------------
  6463. function RIL_GetCurrentAddressId(
  6464. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6465. ):HRESULT; external RILDLL name 'RIL_GetCurrentAddressId';
  6466. // -----------------------------------------------------------------------------
  6467. //
  6468. // @doc EXTERNAL
  6469. //
  6470. // @func Sets the current address identifier (see RILSUBSCRIBERINFO)
  6471. //
  6472. // @comm Asynchronous. <p lpData> is <def NULL>.
  6473. //
  6474. // -----------------------------------------------------------------------------
  6475. function RIL_SetCurrentAddressId(
  6476. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6477. dwAddressId:DWORD // @parm identifies the new addressID to use
  6478. ):HRESULT; external RILDLL name 'RIL_SetCurrentAddressId';
  6479. // -----------------------------------------------------------------------------
  6480. //
  6481. // @doc EXTERNAL
  6482. //
  6483. // @func Dials a specified address
  6484. //
  6485. // @comm Asynchronous. <p lpData> is <def NULL>.
  6486. //
  6487. // -----------------------------------------------------------------------------
  6488. function RIL_Dial(
  6489. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6490. lpszAddress:PAnsiChar; // @parm address to dial (no longer than <def MAXLENGTH_ADDRESS> chars)
  6491. dwType:DWORD; // @parm type of the call to establish (<def RIL_CALLTYPE_> constant)
  6492. dwOptions:DWORD // @parm dialing options (any combination of <def RIL_DIALOPT_> constants)
  6493. ):HRESULT; external RILDLL name 'RIL_Dial';
  6494. // -----------------------------------------------------------------------------
  6495. //
  6496. // @doc EXTERNAL
  6497. //
  6498. // @func Answers an incoming call
  6499. //
  6500. // @comm Asynchronous. <p lpData> is <def NULL>.
  6501. //
  6502. // -----------------------------------------------------------------------------
  6503. function RIL_Answer(
  6504. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6505. ):HRESULT; external RILDLL name 'RIL_Answer';
  6506. // -----------------------------------------------------------------------------
  6507. //
  6508. // @doc EXTERNAL
  6509. //
  6510. // @func Hangs up all calls currently in progress
  6511. //
  6512. // @comm Asynchronous. <p lpData> is <def NULL>.
  6513. //
  6514. // -----------------------------------------------------------------------------
  6515. function RIL_Hangup(
  6516. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6517. ):HRESULT; external RILDLL name 'RIL_Hangup';
  6518. // -----------------------------------------------------------------------------
  6519. //
  6520. // @doc EXTERNAL
  6521. //
  6522. // @func Sends DTMF tones across an established voice call
  6523. //
  6524. // @comm Asynchronous. <p lpData> is <def NULL>. Function does not return until
  6525. // DTMF tone has completed.
  6526. //
  6527. // -----------------------------------------------------------------------------
  6528. function RIL_SendDTMF(
  6529. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6530. lpszChars:PAnsiChar; // @parm alphanumeric string representing DTMF tones to be sent (0-9, A-D, *, #)
  6531. dwDuration:DWORD // @parm new DTMF tone duration in milliseconds (<def RIL_DTMFDURATION_DEFAULT>
  6532. // corresponds to the manufacturer's default value)
  6533. ):HRESULT; external RILDLL name 'RIL_SendDTMF';
  6534. // -----------------------------------------------------------------------------
  6535. //
  6536. // @doc EXTERNAL
  6537. //
  6538. // @func Starts DTMF tone across an established voice call
  6539. //
  6540. // @comm Asynchronous. <p lpData> is <def NULL>.
  6541. //
  6542. // -----------------------------------------------------------------------------
  6543. function RIL_StartDTMF(
  6544. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6545. ch:AnsiChar // @parm alphanumeric AnsiChar representing DTMF tones to be sent (0-9, A-D, *, #)
  6546. ):HRESULT; external RILDLL name 'RIL_StartDTMF';
  6547. // -----------------------------------------------------------------------------
  6548. //
  6549. // @doc EXTERNAL
  6550. //
  6551. // @func Stops DTMF tones across an established voice call
  6552. //
  6553. // @comm Asynchronous. <p lpData> is <def NULL>. Function does not return until
  6554. // DTMF tone has completed.
  6555. //
  6556. // -----------------------------------------------------------------------------
  6557. function RIL_StopDTMF(
  6558. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6559. ch:AnsiChar // @parm alphanumeric AnsiChar representing DTMF tones to be stopped (0-9, A-D, *, #)
  6560. ):HRESULT; external RILDLL name 'RIL_StopDTMF';
  6561. // -----------------------------------------------------------------------------
  6562. //
  6563. // @doc EXTERNAL
  6564. //
  6565. // @func Detects DTMF tones from an established voice call
  6566. //
  6567. // @comm Asynchronous. <p lpData> is <def NULL>.
  6568. //
  6569. // -----------------------------------------------------------------------------
  6570. function RIL_SetDTMFMonitoring(
  6571. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6572. fEnable:BOOL // @parm TRUE to initiate DTMF monitoring; FALSE to cancel
  6573. ):HRESULT; external RILDLL name 'RIL_SetDTMFMonitoring';
  6574. // -----------------------------------------------------------------------------
  6575. //
  6576. // @doc EXTERNAL
  6577. //
  6578. // @func Retrieves the list of active, held, and waiting calls
  6579. //
  6580. // @comm Asynchronous. <p lpData> points to an array of <t RILCALLINFO> structures.
  6581. //
  6582. // -----------------------------------------------------------------------------
  6583. // Function RIL_GetCallList is not declared in ril.h for unknown reason, but
  6584. // is still exported by ril.dll.
  6585. function RIL_GetCallList(
  6586. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6587. ):HRESULT; external RILDLL name 'RIL_GetCallList';
  6588. // -----------------------------------------------------------------------------
  6589. //
  6590. // @doc EXTERNAL
  6591. //
  6592. // @func Modifies the state of active, held, and waiting calls
  6593. //
  6594. // @comm Asynchronous. <p lpData> is <def NULL>.
  6595. //
  6596. // -----------------------------------------------------------------------------
  6597. function RIL_ManageCalls(
  6598. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6599. dwCommand:DWORD; // @parm call modification command to be performed (<def RIL_CALLCMD_> constant)
  6600. dwID:DWORD // @parm ID of the call to be modified (only for <def RIL_CALLCMD_RELEASECALL> and <def RIL_CALLCMD_HOLDALLBUTONE>)
  6601. ):HRESULT; external RILDLL name 'RIL_ManageCalls';
  6602. // -----------------------------------------------------------------------------
  6603. //
  6604. // @doc EXTERNAL
  6605. //
  6606. // @func Transfers incoming allerting call to the specified number
  6607. //
  6608. // @comm Asynchronous. <p lpData> is <def NULL>.
  6609. //
  6610. // -----------------------------------------------------------------------------
  6611. function RIL_TransferCall(
  6612. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6613. lpAddress:LPRILADDRESS; // @parm address to transfer the call to
  6614. lpSubAddress:RILSUBADDRESS // @parm sub-address to transfer the call to (can be <def NULL>)
  6615. ):HRESULT; external RILDLL name 'RIL_TransferCall';
  6616. // -----------------------------------------------------------------------------
  6617. //
  6618. // @doc EXTERNAL
  6619. //
  6620. // @func Retrieves the phone line status
  6621. //
  6622. // @comm Asynchronous. <p lpData> points to <t DWORD> containing <def RIL_LINESTAT_> constant.
  6623. //
  6624. // -----------------------------------------------------------------------------
  6625. // Function RIL_GetLineStatus is not declared in ril.h for unknown reason, but
  6626. // is still exported by ril.dll.
  6627. function RIL_GetLineStatus(
  6628. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6629. ):HRESULT; external RILDLL name 'RIL_GetLineStatus';
  6630. // -----------------------------------------------------------------------------
  6631. //
  6632. // @doc EXTERNAL
  6633. //
  6634. // @func Retrieves audio gain information
  6635. //
  6636. // @comm Asynchronous. <p lpData> points to an <t RILGAININFO> structure.
  6637. //
  6638. // -----------------------------------------------------------------------------
  6639. function RIL_GetAudioGain(
  6640. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6641. ):HRESULT; external RILDLL name 'RIL_GetAudioGain';
  6642. // -----------------------------------------------------------------------------
  6643. //
  6644. // @doc EXTERNAL
  6645. //
  6646. // @func Sets audio gain information
  6647. //
  6648. // @comm Asynchronous. <p lpData> is <def NULL>.
  6649. //
  6650. // -----------------------------------------------------------------------------
  6651. function RIL_SetAudioGain(
  6652. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6653. lpGainInfo:LPRILGAININFO // @parm audio gain information to be sent
  6654. ):HRESULT; external RILDLL name 'RIL_SetAudioGain';
  6655. // -----------------------------------------------------------------------------
  6656. //
  6657. // @doc EXTERNAL
  6658. //
  6659. // @func Retrieves currently used transmit and receive audio devices
  6660. //
  6661. // @comm Asynchronous. <p lpData> points to an <t RILAUDIODEVICEINFO> structure.
  6662. //
  6663. // -----------------------------------------------------------------------------
  6664. function RIL_GetAudioDevices(
  6665. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6666. ):HRESULT; external RILDLL name 'RIL_GetAudioDevices';
  6667. // -----------------------------------------------------------------------------
  6668. //
  6669. // @doc EXTERNAL
  6670. //
  6671. // @func Sets currently used transmit and receive audio devices
  6672. //
  6673. // @comm Asynchronous. <p lpData> is <def NULL>.
  6674. //
  6675. // -----------------------------------------------------------------------------
  6676. function RIL_SetAudioDevices(
  6677. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6678. lpAudioDeviceInfo:LPRILAUDIODEVICEINFO // @parm audio devices to set
  6679. ):HRESULT; external RILDLL name 'RIL_SetAudioDevices';
  6680. // -----------------------------------------------------------------------------
  6681. //
  6682. // @doc EXTERNAL
  6683. //
  6684. // @func Determines whether the input audio device is muted
  6685. //
  6686. // @comm Asynchronous. <p lpData> points to a <t BOOL>.
  6687. //
  6688. // -----------------------------------------------------------------------------
  6689. function RIL_GetAudioMuting(
  6690. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6691. ):HRESULT; external RILDLL name 'RIL_GetAudioMuting';
  6692. // -----------------------------------------------------------------------------
  6693. //
  6694. // @doc EXTERNAL
  6695. //
  6696. // @func Mutes or un-mutes the input audio device
  6697. //
  6698. // @comm Asynchronous. <p lpData> is <def NULL>.
  6699. //
  6700. // -----------------------------------------------------------------------------
  6701. function RIL_SetAudioMuting(
  6702. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6703. fEnable:BOOL // @parm TRUE if input audio device is to be muted; FALSE otherwise
  6704. ):HRESULT; external RILDLL name 'RIL_SetAudioMuting';
  6705. // -----------------------------------------------------------------------------
  6706. //
  6707. // @doc EXTERNAL
  6708. //
  6709. // @func Retrieves High Speeed Circuit Switched Data options
  6710. //
  6711. // @comm Asynchronous. <p lpData> points to an <t RILHSCSDINFO> structure.
  6712. //
  6713. // -----------------------------------------------------------------------------
  6714. function RIL_GetHSCSDOptions(
  6715. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6716. ):HRESULT; external RILDLL name 'RIL_GetHSCSDOptions';
  6717. // -----------------------------------------------------------------------------
  6718. //
  6719. // @doc EXTERNAL
  6720. //
  6721. // @func Sets High Speeed Circuit Switched Data options
  6722. //
  6723. // @comm Asynchronous. <p lpData> is <def NULL>.
  6724. //
  6725. // -----------------------------------------------------------------------------
  6726. function RIL_SetHSCSDOptions(
  6727. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6728. lpHscsdInfo:LPRILHSCSDINFO // @parm High Speeed Circuit Switched Data options to set
  6729. ):HRESULT; external RILDLL name 'RIL_SetHSCSDOptions';
  6730. // -----------------------------------------------------------------------------
  6731. //
  6732. // @doc EXTERNAL
  6733. //
  6734. // @func Retrieves High Speeed Circuit Switched Data options
  6735. //
  6736. // @comm Asynchronous. <p lpData> points to an <t RILCALLHSCSDINFO> structure.
  6737. //
  6738. // -----------------------------------------------------------------------------
  6739. function RIL_GetHSCSDCallSettings(
  6740. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6741. ):HRESULT; external RILDLL name 'RIL_GetHSCSDCallSettings';
  6742. // -----------------------------------------------------------------------------
  6743. //
  6744. // @doc EXTERNAL
  6745. //
  6746. // @func Retrieves data compression options
  6747. //
  6748. // @comm Asynchronous. <p lpData> points to an <t RILDATACOMPINFO> structure.
  6749. //
  6750. // -----------------------------------------------------------------------------
  6751. function RIL_GetDataCompression(
  6752. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6753. pDataCompInfo:LPRILDATACOMPINFO // @parm data compression options to return
  6754. ):HRESULT; external RILDLL name 'RIL_GetDataCompression';
  6755. // -----------------------------------------------------------------------------
  6756. //
  6757. // @doc EXTERNAL
  6758. //
  6759. // @func Sets data compression options
  6760. //
  6761. // @comm Asynchronous. <p lpData> is <def NULL>.
  6762. //
  6763. // -----------------------------------------------------------------------------
  6764. function RIL_SetDataCompression(
  6765. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6766. lpDataCompInfo:LPRILDATACOMPINFO // @parm data compression options to set
  6767. ):HRESULT; external RILDLL name 'RIL_SetDataCompression';
  6768. // -----------------------------------------------------------------------------
  6769. //
  6770. // @doc EXTERNAL
  6771. //
  6772. // @func Retrieves error correction options
  6773. //
  6774. // @comm Asynchronous. <p lpData> points to an <t RILERRORCORRECTIONINFO> structure.
  6775. //
  6776. // -----------------------------------------------------------------------------
  6777. function RIL_GetErrorCorrection(
  6778. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6779. lpErrorCorrectionInfo:LPRILERRORCORRECTIONINFO // @parm error correction options to return
  6780. ):HRESULT; external RILDLL name 'RIL_GetErrorCorrection';
  6781. // -----------------------------------------------------------------------------
  6782. //
  6783. // @doc EXTERNAL
  6784. //
  6785. // @func Set error correction options
  6786. //
  6787. // @comm Asynchronous. <p lpData> is <def NULL>.
  6788. //
  6789. // -----------------------------------------------------------------------------
  6790. function RIL_SetErrorCorrection(
  6791. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6792. lpErrorCorrectionInfo:LPRILERRORCORRECTIONINFO // @parm error correction options to set
  6793. ):HRESULT; external RILDLL name 'RIL_SetErrorCorrection';
  6794. // -----------------------------------------------------------------------------
  6795. //
  6796. // @doc EXTERNAL
  6797. //
  6798. // @func Retrieves currently set data bearer service options
  6799. //
  6800. // @comm Asynchronous. <p lpData> points to an <t RILBEARERSVCINFO> structure.
  6801. //
  6802. // -----------------------------------------------------------------------------
  6803. function RIL_GetBearerServiceOptions(
  6804. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6805. lpBearerServiceInfo:LPRILBEARERSVCINFO // @parm data bearer service options to return
  6806. ):HRESULT; external RILDLL name 'RIL_GetBearerServiceOptions';
  6807. // -----------------------------------------------------------------------------
  6808. //
  6809. // @doc EXTERNAL
  6810. //
  6811. // @func Sets data bearer service options
  6812. //
  6813. // @comm Asynchronous. <p lpData> is <def NULL>.
  6814. //
  6815. // -----------------------------------------------------------------------------
  6816. function RIL_SetBearerServiceOptions(
  6817. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6818. lpBearerServiceInfo:LPRILBEARERSVCINFO // @parm data bearer service options to set
  6819. ):HRESULT; external RILDLL name 'RIL_SetBearerServiceOptions';
  6820. // -----------------------------------------------------------------------------
  6821. //
  6822. // @doc EXTERNAL
  6823. //
  6824. // @func Retrieves currently set Radio Link Protocol options
  6825. //
  6826. // @comm Asynchronous. <p lpData> points to an <t RILRLPINFO> structure.
  6827. //
  6828. // -----------------------------------------------------------------------------
  6829. function RIL_GetRLPOptions(
  6830. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6831. lpRlpInfo:LPRILRLPINFO // @parm Radio Link Protocol options to return
  6832. ):HRESULT; external RILDLL name 'RIL_GetRLPOptions';
  6833. // -----------------------------------------------------------------------------
  6834. //
  6835. // @doc EXTERNAL
  6836. //
  6837. // @func Sets Radio Link Protocol options
  6838. //
  6839. // @comm Asynchronous. <p lpData> is <def NULL>.
  6840. //
  6841. // -----------------------------------------------------------------------------
  6842. function RIL_SetRLPOptions(
  6843. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6844. lpRlpInfo:LPRILRLPINFO // @parm Radio Link Protocol options to set
  6845. ):HRESULT; external RILDLL name 'RIL_SetRLPOptions';
  6846. // -----------------------------------------------------------------------------
  6847. //
  6848. // @doc EXTERNAL
  6849. //
  6850. // @func Gets currently set messaging service options
  6851. //
  6852. // @comm Asynchronous. <p lpData> points to an <t RILMSGSERVICEINFO> structure.
  6853. //
  6854. // -----------------------------------------------------------------------------
  6855. function RIL_GetMsgServiceOptions(
  6856. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6857. ):HRESULT; external RILDLL name 'RIL_GetMsgServiceOptions';
  6858. // -----------------------------------------------------------------------------
  6859. //
  6860. // @doc EXTERNAL
  6861. //
  6862. // @func Sets messaging service options
  6863. //
  6864. // @comm Asynchronous. <p lpData> is <def NULL>.
  6865. //
  6866. // -----------------------------------------------------------------------------
  6867. function RIL_SetMsgServiceOptions(
  6868. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6869. lpMsgServiceInfo:LPRILMSGSERVICEINFO // @parm messaging service options to be set
  6870. ):HRESULT; external RILDLL name 'RIL_SetMsgServiceOptions';
  6871. // -----------------------------------------------------------------------------
  6872. //
  6873. // @doc EXTERNAL
  6874. //
  6875. // @func Gets currently set messaging configuration
  6876. //
  6877. // @comm Asynchronous. <p lpData> points to an <t RILMSGCONFIG> structure.
  6878. //
  6879. // -----------------------------------------------------------------------------
  6880. function RIL_GetMsgConfig(
  6881. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6882. ):HRESULT; external RILDLL name 'RIL_GetMsgConfig';
  6883. // -----------------------------------------------------------------------------
  6884. //
  6885. // @doc EXTERNAL
  6886. //
  6887. // @func Sets messaging configuration
  6888. //
  6889. // @comm Asynchronous. <p lpData> is <def NULL>.
  6890. //
  6891. // -----------------------------------------------------------------------------
  6892. function RIL_SetMsgConfig(
  6893. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6894. lpMsgConfigInfo:LPRILMSGCONFIG // @parm messaging configuration to be set
  6895. ):HRESULT; external RILDLL name 'RIL_SetMsgConfig';
  6896. // -----------------------------------------------------------------------------
  6897. //
  6898. // @doc EXTERNAL
  6899. //
  6900. // @func Gets cell broadcast messaging configuration
  6901. //
  6902. // @comm Asynchronous. <p lpData> points to an <t RILCBMSGCONFIG> structure.
  6903. //
  6904. // -----------------------------------------------------------------------------
  6905. function RIL_GetCellBroadcastMsgConfig(
  6906. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  6907. ):HRESULT; external RILDLL name 'RIL_GetCellBroadcastMsgConfig';
  6908. // -----------------------------------------------------------------------------
  6909. //
  6910. // @doc EXTERNAL
  6911. //
  6912. // @func Sets cell broadcast messaging configuration
  6913. //
  6914. // @comm Asynchronous. <p lpData> is <def NULL>.
  6915. //
  6916. // -----------------------------------------------------------------------------
  6917. function RIL_SetCellBroadcastMsgConfig(
  6918. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6919. lpCbMsgConfigInfo:LPRILCBMSGCONFIG // @parm messaging configuration to be set
  6920. ):HRESULT; external RILDLL name 'RIL_SetCellBroadcastMsgConfig';
  6921. // -----------------------------------------------------------------------------
  6922. //
  6923. // @doc EXTERNAL
  6924. //
  6925. // @func Reads a message from the current storage location
  6926. //
  6927. // @comm Asynchronous. <p lpData> points to an <t RILMESSAGEINFO> structure.
  6928. //
  6929. // -----------------------------------------------------------------------------
  6930. function RIL_ReadMsg(
  6931. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6932. dwIndex:DWORD // @parm index of the message to be read
  6933. ):HRESULT; external RILDLL name 'RIL_ReadMsg';
  6934. // -----------------------------------------------------------------------------
  6935. //
  6936. // @doc EXTERNAL
  6937. //
  6938. // @func Deletes a message from the current storage location
  6939. //
  6940. // @comm Asynchronous. <p lpData> is <def NULL>.
  6941. //
  6942. // -----------------------------------------------------------------------------
  6943. function RIL_DeleteMsg(
  6944. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6945. dwIndex:DWORD // @parm index of the message to be deleted
  6946. ):HRESULT; external RILDLL name 'RIL_DeleteMsg';
  6947. // -----------------------------------------------------------------------------
  6948. //
  6949. // @doc EXTERNAL
  6950. //
  6951. // @func Writes a message to the current storage location
  6952. //
  6953. // @comm Asynchronous. <p lpData> points to a <t DWORD> conaining the index used.
  6954. //
  6955. // -----------------------------------------------------------------------------
  6956. function RIL_WriteMsg(
  6957. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6958. lpMessage:LPRILMESSAGE; // @parm message to be written (of type <def RIL_MSGTYPE_IN_DELIVER> or <def RIL_MSGTYPE_OUT_SUBMIT>)
  6959. dwStatus:DWORD // @parm status to assigned to the written message (<def RIL_MSGSTATUS_> constant)
  6960. ):HRESULT; external RILDLL name 'RIL_WriteMsg';
  6961. // -----------------------------------------------------------------------------
  6962. //
  6963. // @doc EXTERNAL
  6964. //
  6965. // @func Sends a message
  6966. //
  6967. // @comm Asynchronous. <p lpData> points to a <t DWORD> conaining the reference
  6968. // number of the sent message.
  6969. //
  6970. // -----------------------------------------------------------------------------
  6971. function RIL_SendMsg(
  6972. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6973. lpMessage:LPRILMESSAGE; // @parm message to be sent
  6974. dwOptions:DWORD // @parm options (any combination of <def RIL_SENDOPT_> constants)
  6975. ):HRESULT; external RILDLL name 'RIL_SendMsg';
  6976. // -----------------------------------------------------------------------------
  6977. //
  6978. // @doc EXTERNAL
  6979. //
  6980. // @func Sends a message from the current storage location
  6981. //
  6982. // @comm Asynchronous. <p lpData> points to a <t DWORD> conaining the reference
  6983. // number of the sent message. This feature is not used and is untested.
  6984. //
  6985. // -----------------------------------------------------------------------------
  6986. function RIL_SendStoredMsg(
  6987. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  6988. dwIndex:DWORD; // @parm index of the message to be sent
  6989. dwOptions:DWORD // @parm options (any combination of <def RIL_SENDOPT_> constants)
  6990. ):HRESULT; external RILDLL name 'RIL_SendStoredMsg';
  6991. // -----------------------------------------------------------------------------
  6992. //
  6993. // @doc EXTERNAL
  6994. //
  6995. // @func Sends an message ackknowledgement
  6996. //
  6997. // @comm Asynchronous. <p lpData> is <def NULL>. On Phase 2 mobiles, the radio
  6998. // automatically sends SMS message ACKs. But in Phase 2+, the MMI is
  6999. // responsible for these ACKs, hense this function.
  7000. //
  7001. // -----------------------------------------------------------------------------
  7002. function RIL_SendMsgAcknowledgement(
  7003. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7004. fSuccess:BOOL // @parm TRUE if success acknowledgment is to be sent; FALSE otherwise
  7005. ):HRESULT; external RILDLL name 'RIL_SendMsgAcknowledgement';
  7006. // -----------------------------------------------------------------------------
  7007. //
  7008. // @doc EXTERNAL
  7009. //
  7010. // @func Retrieves International Mobile Subscriber Identity of the phone user
  7011. //
  7012. // @comm Asynchronous. <p lpData> points to an array of <t AnsiChar>s
  7013. //
  7014. // -----------------------------------------------------------------------------
  7015. function RIL_GetUserIdentity(
  7016. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7017. ):HRESULT; external RILDLL name 'RIL_GetUserIdentity';
  7018. // -----------------------------------------------------------------------------
  7019. //
  7020. // @doc EXTERNAL
  7021. //
  7022. // @func Retrieves current locked state of the phone
  7023. //
  7024. // @comm Asynchronous. <p lpData> points to a <t DWORD> containing a <def RIL_LOCKEDSTATE_> constant
  7025. //
  7026. // -----------------------------------------------------------------------------
  7027. function RIL_GetPhoneLockedState(
  7028. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7029. ):HRESULT; external RILDLL name 'RIL_GetPhoneLockedState';
  7030. // -----------------------------------------------------------------------------
  7031. //
  7032. // @doc EXTERNAL
  7033. //
  7034. // @func Removes current lock applied to the phone
  7035. //
  7036. // @comm Asynchronous. <p lpData> is <def NULL>.
  7037. //
  7038. // -----------------------------------------------------------------------------
  7039. function RIL_UnlockPhone(
  7040. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7041. lpszPassword:PAnsiChar; // @parm password to unlock the phone (no longer than <def MAXLENGTH_PASSWORD> chars)
  7042. lpszNewPassword:PAnsiChar // @parm new password (can be <def NULL>, unless the current locked state is
  7043. // one of the <def RIL_LOCKEDSTATE_*_PUK> constants; no longer than
  7044. // <def MAXLENGTH_PASSWORD> chars)
  7045. ):HRESULT; external RILDLL name 'RIL_UnlockPhone';
  7046. // -----------------------------------------------------------------------------
  7047. //
  7048. // @doc EXTERNAL
  7049. //
  7050. // @func Retrieves locking status for the specified facility
  7051. //
  7052. // @comm Asynchronous. <p lpData> points to a <t DWORD> containing a <def RIL_LOCKINGSTATUS_> constant.
  7053. //
  7054. // -----------------------------------------------------------------------------
  7055. function RIL_GetLockingStatus(
  7056. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7057. dwFacility:DWORD; // @parm facility to retrieve locking status for (<def RIL_LOCKFACILITY_> constant)
  7058. lpszPassword:PAnsiChar // @parm password to retrieve locking status (can be <def NULL> if password isn't required;
  7059. // no longer than MAXLENGTH_PASSWORD chars)
  7060. ):HRESULT; external RILDLL name 'RIL_GetLockingStatus';
  7061. // -----------------------------------------------------------------------------
  7062. //
  7063. // @doc EXTERNAL
  7064. //
  7065. // @func Enables or disables locking status for the specified facility
  7066. //
  7067. // @comm Asynchronous. <p lpData> is <def NULL>.
  7068. //
  7069. // -----------------------------------------------------------------------------
  7070. function RIL_SetLockingStatus(
  7071. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7072. dwFacility:DWORD; // @parm facility to enable/disable locking for (<def RIL_LOCKFACILITY_> constant)
  7073. lpszPassword:PAnsiChar; // @parm password to enable/disable locking (can be <def NULL> if password isn't required;
  7074. // no longer than <def MAXLENGTH_PASSWORD> chars)
  7075. dwStatus:DWORD // @parm status to be set (<def RIL_LOCKINGSTATUS_> constant)
  7076. ):HRESULT; external RILDLL name 'RIL_SetLockingStatus';
  7077. // -----------------------------------------------------------------------------
  7078. //
  7079. // @doc EXTERNAL
  7080. //
  7081. // @func Changes locking password for the specified facility
  7082. //
  7083. // @comm Asynchronous. <p lpData> is <def NULL>.
  7084. //
  7085. // -----------------------------------------------------------------------------
  7086. function RIL_ChangeLockingPassword(
  7087. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7088. dwFacility:DWORD; // @parm facility to change locking password for (<def RIL_LOCKFACILITY_> constant)
  7089. dwOldPasswordType:DWORD; // @parm the type of OLD password (PIN or PUK) RIL_PASSWORDTYPE_* constant
  7090. lpszOldPassword:PAnsiChar; // @parm current locking password (no longer than <def MAXLENGTH_PASSWORD> chars)
  7091. lpszNewPassword:PAnsiChar // @parm new locking password (no longer than <def MAXLENGTH_PASSWOR> chars)
  7092. ):HRESULT; external RILDLL name 'RIL_ChangeLockingPassword';
  7093. // -----------------------------------------------------------------------------
  7094. //
  7095. // @doc EXTERNAL
  7096. //
  7097. // @func Retrieves status of the specified type of call barring
  7098. //
  7099. // @comm Asynchronous. <p lpData> points to a <t DWORD> containing a <def RIL_BARRINGSTATUS> constant.
  7100. //
  7101. // -----------------------------------------------------------------------------
  7102. function RIL_GetCallBarringStatus(
  7103. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7104. dwType:DWORD; // @parm type of call barring to retrieve status for (<def RIL_BARRTYPE_> constant)
  7105. dwInfoClass:DWORD; // @parm information class to retrieve barring status for (<def RIL_INFOCLASS_> constant)
  7106. lpszPassword:PAnsiChar // @parm password to retrieve barring status (can be <def NULL> if password isn't required;
  7107. // no longer than <def MAXLENGTH_PASSWORD> chars)
  7108. ):HRESULT; external RILDLL name 'RIL_GetCallBarringStatus';
  7109. // -----------------------------------------------------------------------------
  7110. //
  7111. // @doc EXTERNAL
  7112. //
  7113. // @func Enables or disables the specified type of call barring
  7114. //
  7115. // @comm Asynchronous. <p lpData> is <def NULL>.
  7116. //
  7117. // -----------------------------------------------------------------------------
  7118. function RIL_SetCallBarringStatus(
  7119. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7120. dwType:DWORD; // @parm type of call barring to enable/disable (<def RIL_BARRTYPE_> constant)
  7121. dwInfoClass:DWORD; // @parm information class to enable/disable call barring for (<def RIL_INFOCLASS_> constant)
  7122. lpszPassword:AnsiChar; // @parm password to enable/disable call barring (can be <def NULL> if password isn't required;
  7123. // no longer than <def MAXLENGTH_PASSWORD> chars)
  7124. dwStatus:DWORD // @parm status to be set (<def RIL_BARRINGSTATUS_> constant)
  7125. ):HRESULT; external RILDLL name 'RIL_SetCallBarringStatus';
  7126. // -----------------------------------------------------------------------------
  7127. //
  7128. // @doc EXTERNAL
  7129. //
  7130. // @func Changes password for the specified type of call barring
  7131. //
  7132. // @comm Asynchronous. <p lpData> is <def NULL>.
  7133. //
  7134. // -----------------------------------------------------------------------------
  7135. function RIL_SendSecureMmiString(_hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7136. lpszMmiString:LPCSTR // @parm MMI string to be sent
  7137. ):HRESULT; external RILDLL name 'RIL_SendSecureMmiString';
  7138. // -----------------------------------------------------------------------------
  7139. //
  7140. // @doc EXTERNAL
  7141. //
  7142. // @func Changes password for the specified type of call barring
  7143. //
  7144. // @comm Asynchronous. <p lpData> is <def NULL>.
  7145. //
  7146. // -----------------------------------------------------------------------------
  7147. function RIL_ChangeCallBarringPassword(
  7148. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7149. dwType:DWORD; // @parm type of call barring to retrieve status for (<def RIL_BARRTYPE_> constant)
  7150. lpwszOldPassword:PAnsiChar; // @parm current password (no longer than <def MAXLENGTH_PASSWORD> chars)
  7151. lpwszNewPassword:PAnsiChar // @parm new password (no longer than <def MAXLENGTH_PASSWORD> chars)
  7152. ):HRESULT; external RILDLL name 'RIL_ChangeCallBarringPassword';
  7153. // -----------------------------------------------------------------------------
  7154. //
  7155. // @doc EXTERNAL
  7156. //
  7157. // @func Retrieves manufacturer equipment information
  7158. //
  7159. // @comm Asynchronous. <p lpData> points to an <t RILEQUIPMENTINFO> structure.
  7160. //
  7161. // -----------------------------------------------------------------------------
  7162. function RIL_GetEquipmentInfo(
  7163. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7164. ):HRESULT; external RILDLL name 'RIL_GetEquipmentInfo';
  7165. // -----------------------------------------------------------------------------
  7166. //
  7167. // @doc EXTERNAL
  7168. //
  7169. // @func Retrieves currently set equipment state
  7170. //
  7171. // @comm Asynchronous. <p lpData> points to an <t RILEQUIPMENTSTATE> structure.
  7172. //
  7173. // -----------------------------------------------------------------------------
  7174. function RIL_GetEquipmentState(
  7175. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7176. pEqState:LPRILEQUIPMENTSTATE // @parm equipment state to return
  7177. ):HRESULT; external RILDLL name 'RIL_GetEquipmentState';
  7178. // -----------------------------------------------------------------------------
  7179. //
  7180. // @doc EXTERNAL
  7181. //
  7182. // @func Sets the equipment to the specified state
  7183. //
  7184. // @comm Asynchronous. <p lpData> is <def NULL>.
  7185. //
  7186. // -----------------------------------------------------------------------------
  7187. function RIL_SetEquipmentState(
  7188. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7189. dwEquipmentState:DWORD // @parm equipment state to set (<def RIL_EQSTATE_> constant)
  7190. ):HRESULT; external RILDLL name 'RIL_SetEquipmentState';
  7191. // -----------------------------------------------------------------------------
  7192. //
  7193. // @doc EXTERNAL
  7194. //
  7195. // @func Proxy API to determine if the Radio is present or Not (Is the RIL driver Loaded?)
  7196. //
  7197. // @comm Synchronous
  7198. //
  7199. // -----------------------------------------------------------------------------
  7200. function RIL_GetRadioPresence(
  7201. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7202. dwRadioPresence:LPDWORD // @parm pointer to a DWORD (ouput param contains values from RIL_RADIOPRESENCE_*)
  7203. ):HRESULT; external RILDLL name 'RIL_GetRadioPresence';
  7204. // -----------------------------------------------------------------------------
  7205. //
  7206. // @doc EXTERNAL
  7207. //
  7208. // @func Retrieves currently set phonebook options
  7209. //
  7210. // @comm Asynchronous. <p lpData> points to an <t RILPHONEBOOKINFO> structure.
  7211. //
  7212. // -----------------------------------------------------------------------------
  7213. function RIL_GetPhonebookOptions(
  7214. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7215. ):HRESULT; external RILDLL name 'RIL_GetPhonebookOptions';
  7216. // -----------------------------------------------------------------------------
  7217. //
  7218. // @doc EXTERNAL
  7219. //
  7220. // @func Sets phonebook options
  7221. //
  7222. // @comm Asynchronous. <p lpData> is <def NULL>.
  7223. //
  7224. // -----------------------------------------------------------------------------
  7225. function RIL_SetPhonebookOptions(
  7226. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7227. lpPhonebookInfo:LPRILPHONEBOOKINFO // @parm phonebook options to set
  7228. ):HRESULT; external RILDLL name 'RIL_SetPhonebookOptions';
  7229. // -----------------------------------------------------------------------------
  7230. //
  7231. // @doc EXTERNAL
  7232. //
  7233. // @func Reads phonebook entries from the specified range of indices of the current storage location
  7234. //
  7235. // @comm Asynchronous. <p lpData> points to an array of <t RILPHONEBOOKENTRY> structures.
  7236. //
  7237. // -----------------------------------------------------------------------------
  7238. function RIL_ReadPhonebookEntries(
  7239. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7240. dwStartIndex:DWORD; // @parm starting index of the range
  7241. dwEndIndex:DWORD // @parm ending index of the range
  7242. ):HRESULT; external RILDLL name 'RIL_ReadPhonebookEntries';
  7243. // -----------------------------------------------------------------------------
  7244. //
  7245. // @doc EXTERNAL
  7246. //
  7247. // @func Writes a phonebook entry to the current storage location
  7248. //
  7249. // @comm Asynchronous. <p lpData> is <def NULL>.
  7250. //
  7251. // -----------------------------------------------------------------------------
  7252. function RIL_WritePhonebookEntry(
  7253. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7254. lpEntry:LPRILPHONEBOOKENTRY // @parm phonebook entry to write out
  7255. ):HRESULT; external RILDLL name 'RIL_WritePhonebookEntry';
  7256. // -----------------------------------------------------------------------------
  7257. //
  7258. // @doc EXTERNAL
  7259. //
  7260. // @func Deletes a phonebook entry from the current storage location
  7261. //
  7262. // @comm Asynchronous. <p lpData> is <def NULL>.
  7263. //
  7264. // -----------------------------------------------------------------------------
  7265. function RIL_DeletePhonebookEntry(
  7266. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7267. dwIndex:DWORD // @parm index of the entry to delete
  7268. ):HRESULT; external RILDLL name 'RIL_DeletePhonebookEntry';
  7269. // -----------------------------------------------------------------------------
  7270. //
  7271. // @doc EXTERNAL
  7272. //
  7273. // @func Sends a specified command to the SIM
  7274. //
  7275. // @comm Asynchronous. <p lpData> points to an array of <t BYTE>s.
  7276. //
  7277. // -----------------------------------------------------------------------------
  7278. function RIL_SendSimCmd(
  7279. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7280. lpbCommand:LPBYTE; // @parm command to be sent to the SIM
  7281. dwSize:DWORD // @parm size of the data pointed to by <p lpbCommand> in bytes
  7282. ):HRESULT; external RILDLL name 'RIL_SendSimCmd';
  7283. // -----------------------------------------------------------------------------
  7284. //
  7285. // @doc EXTERNAL
  7286. //
  7287. // @func Retrieves the SIM's answer to reset data.
  7288. //
  7289. // @comm Asynchronous. <p lpData> points to an <t RILATRINFO> structure.
  7290. // This command is not standardized and may be specific to each radio
  7291. // implementation, if implemented at all.
  7292. //
  7293. // -----------------------------------------------------------------------------
  7294. function RIL_GetATR(
  7295. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7296. ):HRESULT; external RILDLL name 'RIL_GetATR';
  7297. // -----------------------------------------------------------------------------
  7298. //
  7299. // @doc EXTERNAL
  7300. //
  7301. // @func Sends a specified restricted command to the SIM
  7302. //
  7303. // @comm Asynchronous. <p lpData> points to an <t RILSIMRESPONSE> structure.
  7304. //
  7305. // -----------------------------------------------------------------------------
  7306. function RIL_SendRestrictedSimCmd(
  7307. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7308. dwCommand:DWORD; // @parm restricted command to be sent to the SIM (<def RIL_SIMCMD_> constant)
  7309. lpParameters:LPRILSIMCMDPARAMETERS; // @parm Parameters for the command to be sent (can be <def NULL> if parameters aren't required)
  7310. lpbData:LPBYTE; // @parm Data to be written to the SIM (can be <def NULL> if data isn't required)
  7311. dwSize:DWORD // @parm Size of the data pointed to by <p lpbData> in bytes
  7312. ):HRESULT; external RILDLL name 'RIL_SendRestrictedSimCmd';
  7313. // -----------------------------------------------------------------------------
  7314. //
  7315. // @doc EXTERNAL
  7316. //
  7317. // @func Retrieves SIM Record Status
  7318. //
  7319. // @comm Asynchronous. <p lpData> points to RILSIMRECORDSTATUS
  7320. //
  7321. // -----------------------------------------------------------------------------
  7322. function RIL_GetSimRecordStatus(
  7323. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7324. dwFileID:DWORD // @parm address of the file to read
  7325. ):HRESULT; external RILDLL name 'RIL_GetSimRecordStatus';
  7326. // -----------------------------------------------------------------------------
  7327. //
  7328. // @doc EXTERNAL
  7329. //
  7330. // @func Retrieves SIM Toolkit terminal profile
  7331. //
  7332. // @comm Asynchronous. <p lpData> points to an array of <t BYTE>s.
  7333. //
  7334. // -----------------------------------------------------------------------------
  7335. function RIL_GetSimToolkitProfile(
  7336. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7337. ):HRESULT; external RILDLL name 'RIL_GetSimToolkitProfile';
  7338. // -----------------------------------------------------------------------------
  7339. //
  7340. // @doc EXTERNAL
  7341. //
  7342. // @func Sets SIM Toolkit terminal profile
  7343. //
  7344. // @comm Asynchronous. <p lpData> is <def NULL>.
  7345. //
  7346. // -----------------------------------------------------------------------------
  7347. function RIL_SetSimToolkitProfile(
  7348. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7349. lpbProfile:LPBYTE; // @parm SIM Toolkit profile to be set
  7350. dwSize:DWORD // @parm size of the data pointed to by <p lpbProfile> in bytes
  7351. ):HRESULT; external RILDLL name 'RIL_SetSimToolkitProfile';
  7352. // -----------------------------------------------------------------------------
  7353. //
  7354. // @doc EXTERNAL
  7355. //
  7356. // @func Sends a SIM Toolkit envelope command
  7357. //
  7358. // @comm Asynchronous. <p lpData> points to an array of <t BYTE>s containing a
  7359. // response to the sent command.
  7360. //
  7361. // -----------------------------------------------------------------------------
  7362. function RIL_SendSimToolkitEnvelopeCmd(
  7363. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7364. lpbCommand:LPBYTE; // @parm SIM Toolkit envelope command to be sent
  7365. dwSize:DWORD // @parm size of the data pointed to by <p lpbCommand> in bytes
  7366. ):HRESULT; external RILDLL name 'RIL_SendSimToolkitEnvelopeCmd';
  7367. // -----------------------------------------------------------------------------
  7368. //
  7369. // @doc EXTERNAL
  7370. //
  7371. // @func Fetches a SIM Toolkit command from the SIM
  7372. //
  7373. // @comm Asynchronous. <p lpData> points to an array of <t BYTE>s containing a
  7374. // fetched command.
  7375. //
  7376. // -----------------------------------------------------------------------------
  7377. function RIL_FetchSimToolkitCmd(
  7378. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7379. ):HRESULT; external RILDLL name 'RIL_FetchSimToolkitCmd';
  7380. // -----------------------------------------------------------------------------
  7381. //
  7382. // @doc EXTERNAL
  7383. //
  7384. // @func Sends a response to an executed SIM Toolkit command
  7385. //
  7386. // @comm Asynchronous. <p lpData> is <def NULL>.
  7387. //
  7388. // -----------------------------------------------------------------------------
  7389. function RIL_SendSimToolkitCmdResponse(
  7390. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7391. pRsp:LPRILSIMTOOLKITRSP; // @parm Command Response to be sent.
  7392. pDetails:LPBYTE; // @parm Detailed command response to be sent (can be <def NULL> if details aren't required)
  7393. dwDetailSize:DWORD // @parm size of the details pointed to by <p pDetails> in bytes
  7394. ):HRESULT; external RILDLL name 'RIL_SendSimToolkitCmdResponse';
  7395. // -----------------------------------------------------------------------------
  7396. //
  7397. // @doc EXTERNAL
  7398. //
  7399. // @func Terminates the SIM Toolkit session
  7400. //
  7401. // @comm Asynchronous. <p lpData> is <def NULL>.
  7402. //
  7403. // -----------------------------------------------------------------------------
  7404. function RIL_TerminateSimToolkitSession(
  7405. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7406. dwCause:DWORD // @parm cause for session termination (<def RIL_SIMTKITTERMCAUSE_> constant)
  7407. ):HRESULT; external RILDLL name 'RIL_TerminateSimToolkitSession';
  7408. // -----------------------------------------------------------------------------
  7409. //
  7410. // @doc EXTERNAL
  7411. //
  7412. // @func Sends a requested Event to the SIM.
  7413. //
  7414. // @comm Asynchronous. <p lpData> is <def NULL>.
  7415. //
  7416. // -----------------------------------------------------------------------------
  7417. function RIL_SendSimToolkitEventDownload(
  7418. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7419. dwEvent:DWORD; // @parm Event to be sent.
  7420. pData:LPBYTE; // @parm Detailed event info to be sent (can be <def NULL> if details aren't required)
  7421. dwDataSize:DWORD // @parm size of the details pointed to by <p pDetails> in bytes
  7422. ):HRESULT; external RILDLL name 'RIL_SendSimToolkitEventDownload';
  7423. // -----------------------------------------------------------------------------
  7424. //
  7425. // @doc EXTERNAL
  7426. //
  7427. // @func Retrieves advice-of-charge settings
  7428. //
  7429. // @comm Asynchronous. <p lpData> points to a <t RILCOSTINFO> structure.
  7430. // This feature is not used and is untested.
  7431. //
  7432. // -----------------------------------------------------------------------------
  7433. function RIL_GetCostInfo(
  7434. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7435. ):HRESULT; external RILDLL name 'RIL_GetCostInfo';
  7436. // -----------------------------------------------------------------------------
  7437. //
  7438. // @doc EXTERNAL
  7439. //
  7440. // @func Sets advice-of-charge settings
  7441. //
  7442. // @comm Asynchronous. <p lpData> points to a <t RILCOSTINFO> structure.
  7443. // This feature is not used and is untested.
  7444. //
  7445. // -----------------------------------------------------------------------------
  7446. function RIL_SetCostInfo(
  7447. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7448. lpCostInfo:LPRILCOSTINFO; // @parm advice-of-charge settings to set
  7449. lpszPassword:LPCSTR // @parm password requred to set advice-of-charge settings
  7450. ):HRESULT; external RILDLL name 'RIL_SetCostInfo';
  7451. // -----------------------------------------------------------------------------
  7452. //
  7453. // @doc EXTERNAL
  7454. //
  7455. // @func Retrieves information about the received signal quality
  7456. //
  7457. // @comm Asynchronous. <p lpData> points to a <t RILSIGNALQUALITY> structure.
  7458. //
  7459. // -----------------------------------------------------------------------------
  7460. // Function RIL_GetSignalQuality is not declared in ril.h for unknown reason, but
  7461. // is still exported by ril.dll.
  7462. function RIL_GetSignalQuality(
  7463. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7464. ):HRESULT; external RILDLL name 'RIL_GetSignalQuality';
  7465. // -----------------------------------------------------------------------------
  7466. //
  7467. // @doc EXTERNAL
  7468. //
  7469. // @func Retrieves information about the cell tower currently used by the phone
  7470. //
  7471. // @comm Asynchronous. <p lpData> points to a <t RILCELLTOWERINFO> structure.
  7472. //
  7473. // -----------------------------------------------------------------------------
  7474. function RIL_GetCellTowerInfo(
  7475. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7476. ):HRESULT; external RILDLL name 'RIL_GetCellTowerInfo';
  7477. // Initial size of the RILDRVNOTIFICATION structure. The size RIL Application allocates for async results of RIL_DevSpecific
  7478. const
  7479. RIL_NOTIFYTHREAD_ALLOCSIZE = 256;
  7480. RIL_DEVSPECIFIC_ASYNC_RESPONSE_TIMEOUT = 5000;
  7481. // -----------------------------------------------------------------------------
  7482. //
  7483. // @doc EXTERNAL
  7484. //
  7485. // @func Performs an implementation-specific operation
  7486. //
  7487. // @comm Synchronous
  7488. //
  7489. // -----------------------------------------------------------------------------
  7490. function RIL_DevSpecific(_hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7491. lpbParams:LPBYTE; // @parm parameters for the operation to be performed
  7492. dwSize:DWORD; // @parm size of the data pointed to by <p lpParams> in bytes
  7493. pbAsyncResults:LPBYTE; // @parm points to returned array of <t BYTE>s
  7494. dwAsyncResultsSize:DWORD; // @parm the allocated size of the returned array of <t BYTE>s
  7495. pcbAsyncResults:LPDWORD; // @parm points to the actual length of the returned array of <t BYTE>s
  7496. dwTimeOut:DWORD // @parm time out value (in milliseconds)
  7497. ):HRESULT; external RILDLL name 'RIL_DevSpecific';
  7498. // -----------------------------------------------------------------------------
  7499. //
  7500. // @doc EXTERNAL
  7501. //
  7502. // @func Retrieves specified device capabilities
  7503. //
  7504. // @comm Asynchronous. <nl><nl><p dwCapsType> (<def RIL_CAPSTYPE_>) <p lpData><nl>
  7505. // <def *_DIAL> points to an <t RILCAPSDIAL> structure<nl>
  7506. // <def *_DTMFDURATIONRANGE> points to an <t RILRANGE> structure (values in milliseconds)<nl>
  7507. // <def *_CALLMGTCMDS> points to <t DWORD> containing a combination of <def RIL_CAPS_CALLCMD_> constants<nl>
  7508. // <def *_BEARERSERVICE> points to an <t RILCAPSBEARERSVC> structure<nl>
  7509. // <def *_RLP> points to an array of <t RILAPSRLP> structures<nl>
  7510. // <def *_EQUIPMENTSTATES> points to <t DWORD> containing a combination of <def RIL_CAPS_EQSTATE_> constants<nl>
  7511. // <def *_PBSTORELOCATIONS> points to <t DWORD> containing a combination of <def RIL_CAPS_PBLOC_> constants<nl>
  7512. // <def *_PBINDEXRANGE> points to an <t RILRANGE> structure<nl>
  7513. // <def *_PBENTRYLENGTH> points to an <t RILCAPSPBENTRYLENGTH> strcuture<nl>
  7514. // <def *_MSGSERVICETYPES> points to <t DWORD> containing a combination of <def RIL_CAPS_MSGSVCTYPE_> constants<nl>
  7515. // <def *_MSGMEMORYLOCATIONS> points to an <t RILCAPSMSGMEMORYLOCATIONS> structure<nl>
  7516. // <def *_BROADCASTMSGLANGS> points to <t DWORD> containing a combination of <def RIL_CAPS_DCSLANG_> constants<nl>
  7517. // <def *_MSGCONFIGINDEXRANGE> points to an <t RILRANGE> structure<nl>
  7518. // <def *_MSGSTATUSVALUES> points to <t DWORD> containing a combination of <def RIL_CAPS_MSGSTATUS_> constants<nl>
  7519. // <def *_PREFOPINDEXRANGE> points to an <t RILRANGE> structure<nl>
  7520. // <def *_LOCKFACILITIES> points to <t DWORD> containing a combination of <def RIL_CAPS_LOCKFACILITY_> constants<nl>
  7521. // <def *_LOCKINGPWDLENGTHS> points to an array of <t RILCAPSLOCKINGPWDLENGTH> structures<nl>
  7522. // <def *_BARRTYPES> points to <t DWORD> containing a combination of <def RIL_CAPS_BARRTYPE_> constants<nl>
  7523. // <def *_BARRINGPWDLENGTHS> points to an array of <t RILCAPSBARRINGPWDLENGTH> structures<nl>
  7524. // <def *_FORWARDINGREASONS> points to <t DWORD> containing a combination of <def RIL_CAPS_FWDREASON_> constants<nl>
  7525. // <def *_SIMTOOLKITNOTIFICATIONS>points to a <t TBD> SIMTOOLKIT structure <nl>
  7526. // <def *_INFOCLASSES> points to <t DWORD> containing a combination of <def RIL_CAPS_INFOCLASS_> constants<nl>
  7527. // <def *_HSCSD> points to an <t RILCAPSHSCSD> structure<nl>
  7528. // <def *_GPRS> points to an <t RILCAPSGPRS> structure<nl>
  7529. // <def *_RIL_CAPS_NITZ_> points to <t DWORD> containing one of <def RIL_CAPS_NITZ__> constants<nl>
  7530. function RIL_GetDevCaps(
  7531. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7532. dwCapsType:DWORD // @parm type of caps class to retrieve
  7533. ):HRESULT; external RILDLL name 'RIL_GetDevCaps';
  7534. // -----------------------------------------------------------------------------
  7535. //
  7536. // @doc EXTERNAL
  7537. //
  7538. // @func Retrieves the systemtime from the network
  7539. //
  7540. // @comm Asynchronous. <p lpData> points to a <t SYSTEMTIME> structure (containing the UTC time).
  7541. // This feature is currently not used and is untested.
  7542. //
  7543. // -----------------------------------------------------------------------------
  7544. function RIL_GetSystemTime(
  7545. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7546. ):HRESULT; external RILDLL name 'RIL_GetSystemTime';
  7547. // -----------------------------------------------------------------------------
  7548. //
  7549. // @doc EXTERNAL
  7550. //
  7551. // @func Retrieves a list GPRS contexts
  7552. //
  7553. // @comm Asynchronous. <p lpData> points to a <t RILGPRSCONTEXT> structure.
  7554. //
  7555. // -----------------------------------------------------------------------------
  7556. function RIL_GetGPRSContextList(
  7557. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7558. lpGPRSContext:LPRILGPRSCONTEXT; // @parm points to the returned <t RILGPRSCONTEXT> structure
  7559. pdwDataSize:LPDWORD // @parm points to returned data size
  7560. ):HRESULT; external RILDLL name 'RIL_GetGPRSContextList';
  7561. // -----------------------------------------------------------------------------
  7562. //
  7563. // @doc EXTERNAL
  7564. //
  7565. // @func Sets a particular GPRS context
  7566. //
  7567. // @comm Asynchronous. <p lpData> is <def NULL>.
  7568. //
  7569. // -----------------------------------------------------------------------------
  7570. function RIL_SetGPRSContext(
  7571. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7572. lpGprsContext:LPRILGPRSCONTEXT // @parm points to a <t RILGPRSCONTEXT> structure
  7573. ):HRESULT; external RILDLL name 'RIL_SetGPRSContext';
  7574. // -----------------------------------------------------------------------------
  7575. //
  7576. // @doc EXTERNAL
  7577. //
  7578. // @func Deletes a particular GPRS context
  7579. //
  7580. // @comm Asynchronous. <p lpData> is <def NULL>.
  7581. //
  7582. // -----------------------------------------------------------------------------
  7583. function RIL_DeleteGPRSContext(
  7584. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7585. dwContextID:DWORD // @parm identifies which context to delete
  7586. ):HRESULT; external RILDLL name 'RIL_DeleteGPRSContext';
  7587. // -----------------------------------------------------------------------------
  7588. //
  7589. // @doc EXTERNAL
  7590. //
  7591. // @func Gets the requested quality of service profile for all contexts
  7592. //
  7593. // @comm Asynchronous. <p lpData> points to a <t RILGPRSQOSPROFILE> structure.
  7594. //
  7595. // -----------------------------------------------------------------------------
  7596. function RIL_GetRequestedQualityOfServiceList(
  7597. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7598. lpGprsQosProfile:LPRILGPRSQOSPROFILE; // @parm points to returned <t RILGPRSQOSPROFILE> structure
  7599. pdwDataSize:LPDWORD // @parm points to returned data size
  7600. ):HRESULT; external RILDLL name 'RIL_GetRequestedQualityOfServiceList';
  7601. // -----------------------------------------------------------------------------
  7602. //
  7603. // @doc EXTERNAL
  7604. //
  7605. // @func Sets the requested quality of service profile for a context
  7606. //
  7607. // @comm Asynchronous. <p lpData> is <def NULL>.
  7608. //
  7609. // -----------------------------------------------------------------------------
  7610. function RIL_SetRequestedQualityOfService(
  7611. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7612. lpGprsQosProfile:LPRILGPRSQOSPROFILE // @parm points to a <t RILGPRSQOSPROFILE> structure
  7613. ):HRESULT; external RILDLL name 'RIL_SetRequestedQualityOfService';
  7614. // -----------------------------------------------------------------------------
  7615. //
  7616. // @doc EXTERNAL
  7617. //
  7618. // @func Deletes the requested quality of service profile for a context
  7619. //
  7620. // @comm Asynchronous. <p lpData> is <def NULL>.
  7621. //
  7622. // -----------------------------------------------------------------------------
  7623. function RIL_DeleteRequestedQualityOfService(
  7624. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7625. dwContextID:DWORD // @parm identifies which profile to delete
  7626. ):HRESULT; external RILDLL name 'RIL_DeleteRequestedQualityOfService';
  7627. // -----------------------------------------------------------------------------
  7628. //
  7629. // @doc EXTERNAL
  7630. //
  7631. // @func Gets the minimum quality of service profile for all contexts
  7632. //
  7633. // @comm Asynchronous. <p lpData> points to a <t RILGPRSQOSPROFILE> structure.
  7634. //
  7635. // -----------------------------------------------------------------------------
  7636. function RIL_GetMinimumQualityOfServiceList(
  7637. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7638. lpGprsQosProfile:LPRILGPRSQOSPROFILE; // @parm points to returned <t RILGPRSQOSPROFILE> structure
  7639. pdwDataSize:LPDWORD // @parm points to returned data size
  7640. ):HRESULT; external RILDLL name 'RIL_GetMinimumQualityOfServiceList';
  7641. // -----------------------------------------------------------------------------
  7642. //
  7643. // @doc EXTERNAL
  7644. //
  7645. // @func Sets the minimum quality of service profile for a context
  7646. //
  7647. // @comm Asynchronous. <p lpData> is <def NULL>.
  7648. //
  7649. // -----------------------------------------------------------------------------
  7650. function RIL_SetMinimumQualityOfService(
  7651. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7652. lpGprsQosProfile:LPRILGPRSQOSPROFILE // @parm points to a <t RILGPRSQOSPROFILE> structure
  7653. ):HRESULT; external RILDLL name 'RIL_SetMinimumQualityOfService';
  7654. // -----------------------------------------------------------------------------
  7655. //
  7656. // @doc EXTERNAL
  7657. //
  7658. // @func Deletes the minimum quality of service profile for a context
  7659. //
  7660. // @comm Asynchronous. <p lpData> is <def NULL>.
  7661. //
  7662. // -----------------------------------------------------------------------------
  7663. function RIL_DeleteMinimumQualityOfService(
  7664. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7665. dwContextID:DWORD // @parm identifies which profile to delete
  7666. ):HRESULT; external RILDLL name 'RIL_DeleteMinimumQualityOfService';
  7667. // -----------------------------------------------------------------------------
  7668. //
  7669. // @doc EXTERNAL
  7670. //
  7671. // @func Sets the GPRS attach state
  7672. //
  7673. // @comm Asynchronous. <p lpData> is <def NULL>.
  7674. //
  7675. // -----------------------------------------------------------------------------
  7676. function RIL_SetGPRSAttached(
  7677. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7678. fAttached:BOOL // @parm TRUE: attached, FALSE: detached
  7679. ):HRESULT; external RILDLL name 'RIL_SetGPRSAttached';
  7680. // -----------------------------------------------------------------------------
  7681. //
  7682. // @doc EXTERNAL
  7683. //
  7684. // @func Gets the GPRS attach state
  7685. //
  7686. // @comm Asynchronous. <p lpData> points to a <t BOOL> indicating attach state.
  7687. //
  7688. // -----------------------------------------------------------------------------
  7689. function RIL_GetGPRSAttached(
  7690. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7691. pfGPRSAttached:LPBOOL // @parm indicates attach state
  7692. ):HRESULT; external RILDLL name 'RIL_GetGPRSAttached';
  7693. // -----------------------------------------------------------------------------
  7694. //
  7695. // @doc EXTERNAL
  7696. //
  7697. // @func Sets the GPRS activation state for a context
  7698. //
  7699. // @comm Asynchronous. <p lpData> is <def NULL>.
  7700. //
  7701. // -----------------------------------------------------------------------------
  7702. function RIL_SetGPRSContextActivated(
  7703. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7704. dwContextID:DWORD; // @parm identifies the context
  7705. fContextActivation:BOOL // @parm TRUE: activated, FALSE: deactivated
  7706. ):HRESULT; external RILDLL name 'RIL_SetGPRSContextActivated';
  7707. // -----------------------------------------------------------------------------
  7708. //
  7709. // @doc EXTERNAL
  7710. //
  7711. // @func Gets the GPRS activation state for all contexts
  7712. //
  7713. // @comm Asynchronous. <p lpData> points to a <t RILGPRSCONTEXTACTIVATED> indicating activation state.
  7714. //
  7715. // -----------------------------------------------------------------------------
  7716. function RIL_GetGPRSContextActivatedList(
  7717. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7718. lpGPRSContextActivated:LPRILGPRSCONTEXTACTIVATED; // @parm points to returned <t RILGPRSCONTEXTACTIVATED> indicating activation state
  7719. pdwDataSize:LPDWORD // @parm points to returned data size
  7720. ):HRESULT; external RILDLL name 'RIL_GetGPRSContextActivatedList';
  7721. // -----------------------------------------------------------------------------
  7722. //
  7723. // @doc EXTERNAL
  7724. //
  7725. // @func Enters into GPRS data state
  7726. //
  7727. // @comm Asynchronous. <p lpData> if <def NULL>.
  7728. //
  7729. // -----------------------------------------------------------------------------
  7730. function RIL_EnterGPRSDataMode(
  7731. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7732. lpEnterGprsDataMode:LPRILENTERGPRSDATAMODE // @parm points to a <t RILENTERGPRSDATAMODE> structure
  7733. ):HRESULT; external RILDLL name 'RIL_EnterGPRSDataMode';
  7734. // -----------------------------------------------------------------------------
  7735. //
  7736. // @doc EXTERNAL
  7737. //
  7738. // @func Gets the PDP address for a particular context
  7739. //
  7740. // @comm Asynchronous. <p lpData> points to an array of <t WCHAR> values indicating the address.
  7741. //
  7742. // -----------------------------------------------------------------------------
  7743. function RIL_GetGPRSAddress(
  7744. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7745. dwContextID:DWORD; // @parm identifies the context
  7746. pwszGPRSAddress:PWCHAR; // @parm returns the GPRS Address
  7747. pGprsAddrCch:LPDWORD // @parm IN: The dereferenced specifies the character count of the buffer pointed to by pwszGPRSAddress
  7748. // OUT: The dereferenced specifies the number of characters copied including terminating null character
  7749. // or the required character count of the buffer including terminating null character to succeed
  7750. ):HRESULT; external RILDLL name 'RIL_GetGPRSAddress';
  7751. // -----------------------------------------------------------------------------
  7752. //
  7753. // @doc EXTERNAL
  7754. //
  7755. // @func Answers an incoming GPRS activation request
  7756. //
  7757. // @comm Asynchronous. <p lpData> is <def NULL>.
  7758. //
  7759. // -----------------------------------------------------------------------------
  7760. function RIL_GPRSAnswer(
  7761. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7762. lpGprsAnswer:LPRILGPRSANSWER // @param points to a <t RILGPRSANSWER> structure
  7763. ):HRESULT; external RILDLL name 'RIL_GPRSAnswer';
  7764. // -----------------------------------------------------------------------------
  7765. //
  7766. // @doc EXTERNAL
  7767. //
  7768. // @func Retrieves the current GPRS registration status
  7769. //
  7770. // @comm Asynchronous. <p lpData> points to a <def RIL_REGSTAT_> constant.
  7771. //
  7772. // -----------------------------------------------------------------------------
  7773. function RIL_GetGPRSRegistrationStatus(
  7774. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7775. pdwGPRSRegStatus:DWORD // @parm points to returned <def RIL_REGSTAT_> constant
  7776. ):HRESULT; external RILDLL name 'RIL_GetGPRSRegistrationStatus';
  7777. // -----------------------------------------------------------------------------
  7778. //
  7779. // @doc EXTERNAL
  7780. //
  7781. // @func Retrieves the current GPRS class
  7782. //
  7783. // @comm Asynchronous. <p lpData> points to a <def RIL_GPRSCLASS_> constant.
  7784. //
  7785. // -----------------------------------------------------------------------------
  7786. function RIL_GetGPRSClass(
  7787. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7788. ):HRESULT; external RILDLL name 'RIL_GetGPRSClass';
  7789. // -----------------------------------------------------------------------------
  7790. //
  7791. // @doc EXTERNAL
  7792. //
  7793. // @func Sets the current GPRS class
  7794. //
  7795. // @comm Asynchronous. <p lpData> is <def NULL>
  7796. //
  7797. // -----------------------------------------------------------------------------
  7798. function RIL_SetGPRSClass(
  7799. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7800. dwClass:DWORD // @parm a RIL_GPRSCLASS_* constant
  7801. ):HRESULT; external RILDLL name 'RIL_SetGPRSClass';
  7802. // -----------------------------------------------------------------------------
  7803. //
  7804. // @doc EXTERNAL
  7805. //
  7806. // @func Retrieves the preferred SMS service option for mobile originated messages
  7807. //
  7808. // @comm Asynchronous. <p lpData> points to a <def RIL_MOSMSSERVICE_> constant.
  7809. //
  7810. // -----------------------------------------------------------------------------
  7811. function RIL_GetMOSMSService(
  7812. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7813. ):HRESULT; external RILDLL name 'RIL_GetMOSMSService';
  7814. // -----------------------------------------------------------------------------
  7815. //
  7816. // @doc EXTERNAL
  7817. //
  7818. // @func Sets the preferred SMS service option for mobile originated messages
  7819. //
  7820. // @comm Asynchronous. <p lpData> is <def NULL>
  7821. //
  7822. // -----------------------------------------------------------------------------
  7823. function RIL_SetMOSMSService(
  7824. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7825. dwMoSmsService:DWORD // @parm a RIL_MOSMSSERVICE_* constant
  7826. ):HRESULT; external RILDLL name 'RIL_SetMOSMSService';
  7827. // -----------------------------------------------------------------------------
  7828. //
  7829. // @doc EXTERNAL
  7830. //
  7831. // @params RILBYTECOUNTER
  7832. //
  7833. // @comm None
  7834. //
  7835. // -----------------------------------------------------------------------------
  7836. const
  7837. RIL_PARAM_BC_RXBYTECOUNT = $00000001; // @paramdefine
  7838. RIL_PARAM_BC_TXBYTECOUNT = $00000002; // @paramdefine
  7839. RIL_PARAM_BC_TOTALBYTECOUNT = $00000004; // @paramdefine
  7840. RIL_PARAM_BC_ALL = $00000007; // @paramdefine
  7841. // -----------------------------------------------------------------------------
  7842. //
  7843. // @doc EXTERNAL
  7844. //
  7845. // @struct RILBYTECOUNTER | Represents the cumulative number of bytes transferred by the radio (packet).
  7846. //
  7847. // @comm None
  7848. //
  7849. // -----------------------------------------------------------------------------
  7850. type
  7851. rilbytecounter_tag = record
  7852. cbSize:DWORD; // @field structure size in bytes
  7853. dwParams:DWORD; // @field indicates valid parameters
  7854. dwRxByte:DWORD; // @field Number of received bytes
  7855. dwTxByte:DWORD; // @field Number of transmitted bytes
  7856. dwTotalByte:DWORD; // @field Total Number of bytes transferred (This comes from the radio, not RxByte+TxByte)
  7857. end;
  7858. RILBYTECOUNTER = rilbytecounter_tag;
  7859. LPRILBYTECOUNTER = ^rilbytecounter_tag;
  7860. // -----------------------------------------------------------------------------
  7861. //
  7862. // @doc EXTERNAL
  7863. //
  7864. // @func Retrieves the cumulative count of data bytes transferred by the radio (packet)
  7865. //
  7866. // @comm Asynchronous. <p lpData> points to a <t RILBYTECOUNTER> structure.
  7867. //
  7868. // -----------------------------------------------------------------------------
  7869. function RIL_GetPacketByteCount(
  7870. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7871. ):HRESULT; external RILDLL name 'RIL_GetPacketByteCount';
  7872. // -----------------------------------------------------------------------------
  7873. //
  7874. // @doc EXTERNAL
  7875. //
  7876. // @func Resets the cumulative count of data bytes transferred by the radio (packet) to zero.
  7877. //
  7878. // @comm Asynchronous. <p lpData> is <def NULL>.
  7879. //
  7880. // -----------------------------------------------------------------------------
  7881. function RIL_ResetPacketByteCount(
  7882. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7883. ):HRESULT; external RILDLL name 'RIL_ResetPacketByteCount';
  7884. // -----------------------------------------------------------------------------
  7885. //
  7886. // @doc EXTERNAL
  7887. //
  7888. // @constants System Coverage | Current System Coverage
  7889. //
  7890. // @comm Various Levels of CDMA and GSM Coverage
  7891. //
  7892. // -----------------------------------------------------------------------------
  7893. const
  7894. RIL_SYSTEMTYPE_NONE = $00000000; // @constdegine No Networks in Coverage
  7895. RIL_SYSTEMTYPE_IS95A = $00000001; // @constdefine IS-95A network support (Low Packet, or Circuit Switched Service)
  7896. RIL_SYSTEMTYPE_IS95B = $00000002; // @constdefine IS-95B network support
  7897. RIL_SYSTEMTYPE_1XRTTPACKET = $00000004; // @constdefine CDMA-2000 Rev A (1xRTT) network support
  7898. RIL_SYSTEMTYPE_GSM = $00000008; // @constdefine GSM network support
  7899. RIL_SYSTEMTYPE_GPRS = $00000010; // @constdefine GPRS support
  7900. RIL_SYSTEMTYPE_EDGE = $00000020; // @constdefine GSM EDGE network support
  7901. RIL_SYSTEMTYPE_1XEVDOPACKET = $00000040; // @constdefine CDMA (1xEVDO) network support
  7902. RIL_SYSTEMTYPE_1XEVDVPACKET = $00000080; // @constdefine CDMA (1xEVDV) network support
  7903. RIL_SYSTEMTYPE_UMTS = $00000100; // @constdefine UMTS network support
  7904. RIL_SYSTEMTYPE_HSDPA = $00000200; // @constdefine HSDPA support
  7905. // -----------------------------------------------------------------------------
  7906. //
  7907. // @doc EXTERNAL
  7908. //
  7909. // @func Gets the Current System Coverage
  7910. //
  7911. // @comm Gets the Current type of System/Cellular connection that is available.
  7912. // Asynchronous. <p lpData> is <t DWORD> of type RIL_SYSTEMTYPE_ flags)
  7913. //
  7914. // -----------------------------------------------------------------------------
  7915. function RIL_GetCurrentSystemType(
  7916. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7917. ):HRESULT; external RILDLL name 'RIL_GetCurrentSystemType';
  7918. // -----------------------------------------------------------------------------
  7919. //
  7920. // @doc EXTERNAL
  7921. //
  7922. // @func Modifies the state of active, held, and waiting calls
  7923. //
  7924. // @comm Asynchronous. <p lpData> is <def NULL>.
  7925. //
  7926. // -----------------------------------------------------------------------------
  7927. function RIL_SendFlash(
  7928. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7929. lpraRilAddress:LPRILADDRESS // @parm flash address
  7930. ):HRESULT; external RILDLL name 'RIL_SendFlash';
  7931. // -----------------------------------------------------------------------------
  7932. //
  7933. // @doc EXTERNAL
  7934. //
  7935. // @constants CDMA Roaming Types | CDMA Roaming Types
  7936. //
  7937. // @comm The meaning of AUTOMATICA and AUTOMATICB is up to network specific interpretations
  7938. //
  7939. // -----------------------------------------------------------------------------
  7940. const
  7941. RIL_ROAMMODE_HOMEONLY = $00000001; // @constdefine The User will never go off the home network
  7942. RIL_ROAMMODE_AUTOMATICA = $00000002; // @constdefine Network define Roaming A (The effect of this setting is carrier dependent)
  7943. RIL_ROAMMODE_AUTOMATICB = $00000003; // @constdefine Network define Roaming B (The effect of this setting is carrier dependent)
  7944. // -----------------------------------------------------------------------------
  7945. //
  7946. // @doc EXTERNAL
  7947. //
  7948. // @func Gets the Roaming Mode in CDMA
  7949. //
  7950. // @comm Asynchronous. <p lpData> points to a <t DWORD> of type RIL_ROAMMODE_*.
  7951. //
  7952. // -----------------------------------------------------------------------------
  7953. function RIL_GetRoamingMode(
  7954. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7955. ):HRESULT; external RILDLL name 'RIL_GetRoamingMode';
  7956. // -----------------------------------------------------------------------------
  7957. //
  7958. // @doc EXTERNAL
  7959. //
  7960. // @func Modifies the state of active, held, and waiting calls in CDMA and AMPS systems
  7961. //
  7962. // @comm Asynchronous. <p lpData> is <def NULL>.
  7963. //
  7964. // -----------------------------------------------------------------------------
  7965. function RIL_SetRoamingMode(
  7966. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  7967. dwRoamingMode:DWORD // @parm RIL_ROAMMODE_* constant
  7968. ):HRESULT; external RILDLL name 'RIL_SetRoamingMode';
  7969. // -----------------------------------------------------------------------------
  7970. //
  7971. // @doc EXTERNAL
  7972. //
  7973. // @constants CDMA Privacy Mode | CDMA Privacy Mode
  7974. //
  7975. // @comm None
  7976. //
  7977. // -----------------------------------------------------------------------------
  7978. const
  7979. RIL_CALLPRIVACY_STANDARD = $00000001; // @constdefine Enhanced Call Privacy is OFF
  7980. RIL_CALLPRIVACY_ENHANCED = $00000002; // @constdefine Enhanced Call Privacy is ON
  7981. // -----------------------------------------------------------------------------
  7982. //
  7983. // @doc EXTERNAL
  7984. //
  7985. // @func Gets the user's preferred privacy settings
  7986. //
  7987. // @comm Asynchronous. <p lpData> points to a RIL_CALLPRIVACY_* constant.
  7988. //
  7989. // -----------------------------------------------------------------------------
  7990. function RIL_GetPreferredPrivacyMode(
  7991. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  7992. ):HRESULT; external RILDLL name 'RIL_GetPreferredPrivacyMode';
  7993. // -----------------------------------------------------------------------------
  7994. //
  7995. // @doc EXTERNAL
  7996. //
  7997. // @func Sets the user's preferred privacy settings
  7998. //
  7999. // @comm Asynchronous. <p lpData> is <def NULL>.
  8000. //
  8001. // -----------------------------------------------------------------------------
  8002. function RIL_SetPreferredPrivacyMode(
  8003. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  8004. dwPreferredPrivacyMode:DWORD // @parm user's preferred privacy setting, uses RIL_CALLPRIVACY_* constant
  8005. ):HRESULT; external RILDLL name 'RIL_SetPreferredPrivacyMode';
  8006. // -----------------------------------------------------------------------------
  8007. //
  8008. // @doc EXTERNAL
  8009. //
  8010. // @func Gets the privacy status of the current system
  8011. //
  8012. // @comm Asynchronous. <p lpData> points to a <t DWORD> RIL_CALLPRIVACY_* constant.
  8013. //
  8014. // -----------------------------------------------------------------------------
  8015. function RIL_GetCurrentPrivacyStatus(
  8016. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  8017. ):HRESULT; external RILDLL name 'RIL_GetCurrentPrivacyStatus';
  8018. // -----------------------------------------------------------------------------
  8019. //
  8020. // @doc EXTERNAL
  8021. //
  8022. // @func Sends the User string to the device for Akey verificaiton
  8023. //
  8024. // @comm Asynchronous. <p lpData> is <def NULL>. (Either it fails or succeeds)
  8025. // According to TSB-50 (up to 26 digits)
  8026. //
  8027. // -----------------------------------------------------------------------------
  8028. function RIL_SendAKey(
  8029. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  8030. lpszChars:LPCSTR // @parm numeric string representing akey digits (0-9, *, #)
  8031. ):HRESULT; external RILDLL name 'RIL_SendAKey';
  8032. // -----------------------------------------------------------------------------
  8033. //
  8034. // @doc EXTERNAL
  8035. //
  8036. // @constants CDMA Location Serivces Status | Location Services
  8037. //
  8038. // @comm None
  8039. //
  8040. // -----------------------------------------------------------------------------
  8041. const
  8042. RIL_LOCATION_OFF = 0;
  8043. RIL_LOCATION_ON = 1;
  8044. // -----------------------------------------------------------------------------
  8045. //
  8046. // @doc EXTERNAL
  8047. //
  8048. // @func Gets the current location status of the current system
  8049. //
  8050. // @comm Asynchronous. <p lpData> points to a <t DWORD> RIL_LOCATION_* constant.
  8051. //
  8052. // -----------------------------------------------------------------------------
  8053. function RIL_GetCurrentLocationStatus(
  8054. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  8055. ):HRESULT; external RILDLL name 'RIL_GetCurrentLocationStatus';
  8056. // -----------------------------------------------------------------------------
  8057. //
  8058. // @doc EXTERNAL
  8059. //
  8060. // @constants CDMA Roaming Status | CDMA Roaming Status
  8061. //
  8062. // @comm None
  8063. //
  8064. // -----------------------------------------------------------------------------
  8065. const
  8066. RIL_ROAMSTATUS_NONE = 0;
  8067. RIL_ROAMSTATUS_ANALOG = 1;
  8068. RIL_ROAMSTATUS_DIGITAL = 2;
  8069. // -----------------------------------------------------------------------------
  8070. //
  8071. // @doc EXTERNAL
  8072. //
  8073. // @func Gets the current roaming status of the current system
  8074. //
  8075. // @comm Asynchronous. <p lpData> points to a <t DWORD> RIL_ROAMSTATUS_* constant.
  8076. //
  8077. // -----------------------------------------------------------------------------
  8078. function RIL_GetCurrentRoamingStatus(
  8079. _hRil:HRIL // @parm handle to RIL instance returned by <f RIL_Initialize>
  8080. ):HRESULT; external RILDLL name 'RIL_GetCurrentRoamingStatus';
  8081. // -----------------------------------------------------------------------------
  8082. //
  8083. // @doc EXTERNAL
  8084. //
  8085. // @constants SIM Refresh Constants | Constants which indicate which cached SIM regions to refresh.
  8086. //
  8087. // @comm The notification contains a DWORD value which contains the SIM record to refresh,
  8088. // or one of the special values below
  8089. //
  8090. // -----------------------------------------------------------------------------
  8091. const
  8092. RIL_SIM_DATACHANGE_MSISDNS = $ffffffff;
  8093. RIL_SIM_DATACHANGE_ALL_SIMRECORDS = $fffffffe;
  8094. RIL_SIM_DATACHANGE_ALL_SIMPB = $fffffffd;
  8095. RIL_SIM_DATACHANGE_ALL = $fffffffc;
  8096. // ---------------------------------------------------------------------------
  8097. //
  8098. // @doc EXTERNAL
  8099. //
  8100. // @func Sets the GPRS activation state for a context for an NDIS connection.
  8101. //
  8102. // @comm Asynchronous. <p lpData> points to a <t DWORD> containing the error
  8103. // detail on failure or the context ID on success.
  8104. //
  8105. // -----------------------------------------------------------------------------
  8106. function RIL_NDIS_SetGPRSContextActivated(
  8107. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  8108. lpNdisSetGprsContextActivated:LPRILNDISGPRSCONTEXT // @parm
  8109. ):HRESULT; external RILDLL name 'RIL_NDIS_SetGPRSContextActivated';
  8110. // ---------------------------------------------------------------------------
  8111. //
  8112. // @doc EXTERNAL
  8113. //
  8114. // @func Send an arbitrary string to the radio for logging purposes
  8115. //
  8116. // @comm Asynchronous. <p lpData> is <def NULL>.
  8117. //
  8118. // -----------------------------------------------------------------------------
  8119. function RIL_LogEventToRadio(
  8120. _hRil:HRIL; // @parm handle to RIL instance returned by <f RIL_Initialize>
  8121. lpszChars:LPCSTR // @parm
  8122. ):HRESULT; external RILDLL name 'RIL_LogEventToRadio';
  8123. implementation
  8124. function MAKE_RILERROR(errclass:byte; code:byte):ULONG; inline;
  8125. begin
  8126. MAKE_RILERROR:=(ULONG(errclass) shl 8) or ULONG(code);
  8127. end;
  8128. function RILERRORCLASS(rilerror:ULONG):byte; inline;
  8129. begin
  8130. RILERRORCLASS:=byte(ULONG((rilerror shr 8) and $FF));
  8131. end;
  8132. function ISRILERROR(rilerror:ULONG):BOOL; inline;
  8133. begin
  8134. ISRILERROR:=(word(rilerror shr 16) and FACILITY_RIL)<>0;
  8135. end;
  8136. //
  8137. // Macro to extract notification class from notification code
  8138. //
  8139. function NCLASS_FROM_NOTIFICATION(code:ULONG):ULONG; inline;
  8140. begin
  8141. NCLASS_FROM_NOTIFICATION:=code and $FFFF0000;
  8142. end;
  8143. //
  8144. // Macro to extract message class from message type
  8145. //
  8146. function MSGCLASS_FROM_MSGTYPE(itype:ULONG):ULONG; inline;
  8147. begin
  8148. MSGCLASS_FROM_MSGTYPE:=itype and $FFFF0000;
  8149. end;
  8150. end.