HbiFpd.h 229 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992
  1. /*---------------------------------------------------------------------------
  2. * Copyright (c) 2019 DT Image Technology (Shanghai) Co., Ltd
  3. * All rights reserved.
  4. *
  5. * File name: HbiFpd. h
  6. * Document ID:
  7. * Abstract: flat-panel detector export function header file
  8. *
  9. * Current version: 3.0
  10. * Author: mhyang
  11. * Date: November 20, 2020
  12. * Revision date: November 5, 2021
  13. * Copyright (c) 2019 地太科特影像科技有限公司
  14. * All rights reserved.
  15. *
  16. * 文件名称: HbiFpd.h
  17. * 文件标识:
  18. * 摘 要: 平板探测器导出函数头文件
  19. *
  20. * 当前版本: 3.0
  21. * 作 者: mhyang
  22. * 完成日期: 2020/11/20
  23. * 修改日期: 2021/11/05
  24. ----------------------------------------------------------------------------*/
  25. #pragma once
  26. #ifndef __HBI_FPD_H_
  27. #define __HBI_FPD_H_
  28. #include "HbiType.h"
  29. #include "HbiError.h"
  30. #ifdef _DLL_EX_IM
  31. #define HBI_FPD_DLL __declspec(dllexport)
  32. #else
  33. #define HBI_FPD_DLL __declspec(dllimport)
  34. #endif
  35. #ifdef __cplusplus
  36. extern "C" {
  37. #endif
  38. ////////////////////////////////////////////////////////////////////////////////////////
  39. // Dual panel solution #“双板”或“多板”解决方案接口 ADD BY MHYANG 20211009
  40. ////////////////////////////////////////////////////////////////////////////////////////
  41. /*********************************************************
  42. * No: No0001
  43. * Function Name: HBI_InitDual
  44. * Function Description: // Initialize double detector dynamic library
  45. * Parameter Description: // Callback parameter, that are two FPD handle instance
  46. In/Out: void **handle1 // Detector A¡¯s unsigned handle pointer instance
  47. In/Out: void **handle1 // Detector B¡¯s unsigned handle pointer instance
  48. * Return Value: int
  49. // 0: Success
  50. // Non-0: Failure,refer to<<HbiError.h>>
  51. * Comment:
  52. * 编 号: No0001
  53. * 函 数 名: HBI_InitDual
  54. * 功能描述: 初始化动态库
  55. * 参数说明: 参数为回参,即两个平板的句柄
  56. In/Out:void **handle1 - 平板A的实例无符号对象指针
  57. In/Out:void **handle1 - 平板B的实例无符号对象指针
  58. * 返 回 值:
  59. 0 - 成功
  60. 非0 - 失败
  61. * 备 注:
  62. *********************************************************/
  63. HBI_FPD_DLL int __stdcall HBI_InitDual(void **handle1, void **handle2);
  64. /*********************************************************
  65. * No: No0002
  66. * Function Name: HBI_InitEx
  67. * Function Description: // Initialize double or multi detector dynamic library instance
  68. * Parameter Description: // Callback parameter, FPD instance and ID number
  69. In/Out: HBI_HANDLE *pHandArr // Array object, refer to <<HbiType.h>>
  70. In: int nArrSize // Array number, equal to DETECTOR_MAX_NUMBER
  71. * Return Value: int
  72. // 0: Success
  73. // Non-0: Failure,refer to<<HbiError.h>>
  74. * Comment:
  75. * 编 号: No0002
  76. * 函 数 名: HBI_InitEx
  77. * 功能描述: 初始化双板或多板动态库实例,参数为回参,即平板的句柄和ID
  78. * 参数说明: 参数为回参,即平板的句柄和ID
  79. In/Out:HBI_HANDLE *pHandArr - 数组对象,见《HbiType.h》
  80. In:int nArrSize - 数组的个数,《= DETECTOR_MAX_NUMBER
  81. * 返 回 值:
  82. 0 - 成功
  83. 非0 - 失败
  84. * 备 注:
  85. *********************************************************/
  86. HBI_FPD_DLL int __stdcall HBI_InitEx(HBI_HANDLE *pHandArr, int nArrSize);
  87. /*********************************************************
  88. * No: No0003
  89. * Function Name: HBI_DestroyEx
  90. * Function Description: // Destroy all dll resources
  91. * Parameter Description:
  92. Null
  93. * Return Value:
  94. Null
  95. * Comment:
  96. * 编 号: No0003
  97. * 函 数 名: HBI_DestroyEx
  98. * 功能描述: 销毁所有DLL资源
  99. * 参数说明: 无
  100. * 返 回 值:
  101. * 备 注:
  102. *********************************************************/
  103. HBI_FPD_DLL void __stdcall HBI_DestroyEx();
  104. /*********************************************************
  105. * No: No0004
  106. * Function Name: HBI_GetDetectorHandle
  107. * Function Description: // Get handle through FPD ID number
  108. * Parameter Description:
  109. In:int fpdid // FPD ID number,0 《 panedl id 《 DETECTOR_MAX_NUMBER
  110. * Return Value:
  111. void * // unsigned object pointer
  112. * Comment:
  113. * 编 号: No0004
  114. * 函 数 名: HBI_GetDetectorHandle
  115. * 功能描述: 依据平板id获取获取句柄
  116. * 参数说明:
  117. In:int fpdid - 平板id,0 《 平板id 《 DETECTOR_MAX_NUMBER
  118. * 返 回 值:
  119. void * - 无符号对象指针
  120. * 备 注:
  121. *********************************************************/
  122. HBI_FPD_DLL void *__stdcall HBI_GetDetectorHandle(int fpdid = 0);
  123. /*********************************************************
  124. * No: No0005
  125. * Function Name: HBI_GetDetectorId
  126. * Function Description: // Get FPD ID number through handle
  127. * Parameter Description:
  128. In:void *handle // handle pointer
  129. * Return Value:
  130. int // FPD ID number
  131. * Comment:
  132. * 编 号: No0005
  133. * 函 数 名: HBI_GetDetectorId
  134. * 功能描述: 依据句柄获取获取平板id
  135. * 参数说明:
  136. In:void *handle - 平板句柄
  137. * 返 回 值:
  138. int - 平板id
  139. * 备 注:
  140. *********************************************************/
  141. HBI_FPD_DLL int __stdcall HBI_GetDetectorId(void *handle);
  142. /*********************************************************
  143. * No: No0006
  144. * Function Name: HBI_ActivateDetector
  145. * Function Description: // Activate detector, current SDK version supports multi FPD
  146. * Parameter Description:
  147. In:void *handle // handle pointer
  148. * Return Value: int
  149. // 0: Success
  150. // Non-0: Failure,refer to<<HbiError.h>>
  151. * Comment:
  152. * 编 号: No0006
  153. * 函 数 名: HBI_ActivateDetector
  154. * 功能描述: 激活平板,目前SDK支持双板同时上图,不需要切换
  155. * 参数说明:
  156. In:void *handle - 平板句柄
  157. * 返 回 值:
  158. 0 - 成功,回调函数反馈固件参数
  159. 非0 - 失败
  160. * 备 注:
  161. *********************************************************/
  162. HBI_FPD_DLL int __stdcall HBI_ActivateDetector(void *handle);
  163. ////////////////////////////////////////////////////////////////////////////////////////
  164. ////////////////////////////////////////////////////////////////////////////////////////
  165. /*********************************************************
  166. * No: No007
  167. * Function Name: HBI_Init
  168. * Function Description // Initialize dynamic dll, nonvolatile parameters and thread message parameters, establish SDK object pointer.
  169. * Parameter Description:
  170. int fpdid // Flat panel detector ID, default is 0.
  171. * Return Value:
  172. void * // Null: failure;
  173. // Non-null: success.
  174. * Comment:
  175. * 编 号: No007
  176. * 函 数 名: HBI_Init
  177. * 功能描述: 初始化动态库
  178. * 参数说明: int fpdid - 平板id,默认为0
  179. * 返 回 值:void * - 无符号对象指针
  180. 失败:NULL
  181. 成功:非空
  182. * 备 注:
  183. *********************************************************/
  184. HBI_FPD_DLL void* __stdcall HBI_Init(int fpdid=0);
  185. /*********************************************************
  186. * No: No008
  187. * Function Name: HBI_Destroy
  188. * Function Description: // Release dynamic library resources
  189. * Parameter Description:
  190. In: void *handle // Handle, dynamic SDK object pointer
  191. Out: Null
  192. * Return Value: void
  193. * Comment:
  194. * 编 号: No008
  195. * 函 数 名: HBI_Destroy
  196. * 功能描述: 释放动态库资源
  197. * 参数说明:
  198. In: void *handle - 句柄
  199. Out: 无
  200. * 返 回 值:void
  201. * 备 注:
  202. *********************************************************/
  203. HBI_FPD_DLL void __stdcall HBI_Destroy(void *handle);
  204. /*********************************************************
  205. * No: No009
  206. * Function Name: HBI_ConnectDetector
  207. * Function Description: // Establish connection
  208. * Parameter Description:
  209. In: void *handle // unsigned handle pointer
  210. COMM_CFG commCfg // refer to <<HbiType.h>> COMM_CFG
  211. UDP_COMM_TYPE = 0, Standard UDP communication method
  212. UDP_JUMBO_COMM_TYPE = 1, Standard UDP communication method,Support for jumbo
  213. PCIE_COMM_TYPE = 2, Fiber type
  214. WALN_COMM_TYPE = 3,Wireless type
  215. // UDP communication requires IP and port settings,PCIe only requires setting the communication type and deviceID
  216. char _remoteip[MAX_IP_LEN]- Panel IP Address,eg:192.168.10.40
  217. char _localip[MAX_IP_LEN] - loacal IP Address,eg:192.168.10.20
  218. unsigned short _loacalPort-local port口,如32896(0x8080)
  219. unsigned short _remotePort- Panel port,如32897(0x8081)
  220. unsigned short _pcieId; - PCIe device ID,default 7024
  221. Int doOffsetTemp // Non-1: don’t update pre-offset template when connection is successful
  222. // 1: update pre-offset template when connection is successful
  223. Out: Null
  224. * Return Value: int
  225. // 0: Success
  226. // Non-0: Failure,refer to<<HbiError.h>>
  227. * Comment:
  228. * 编 号: No009
  229. * 函 数 名: HBI_ConnectDetector
  230. * 功能描述: 建立连接
  231. * 参数说明:
  232. In: void *handle - 句柄(无符号指针)
  233. COMM_CFG commCfg - 连接配置参数,详细见《HbiType.h》
  234. UDP_COMM_TYPE = 0, 标准网口
  235. UDP_JUMBO_COMM_TYPE = 1,标准网口,支持jumbo类型
  236. PCIE_COMM_TYPE = 2,光纤类型
  237. WALN_COMM_TYPE = 3,无线类型
  238. // 网口通讯需要设置,PCIe只要设置类型和设备ID即可
  239. char _remoteip[MAX_IP_LEN]- 平板IP地址,如192.168.10.40
  240. char _localip[MAX_IP_LEN] - 上位机地址,如192.168.10.20
  241. unsigned short _loacalPort-上位机端口,如32896(0x8080)
  242. unsigned short _remotePort- 平板端口,如32897(0x8081)
  243. unsigned short _pcieId; - PCIe设备ID,default 7024
  244. int doOffsetTemp - 非1:连接成功后固件不重新做offset模板
  245. 1:连接成功后固件重新做offset模板
  246. Out: 无
  247. * 返 回 值:int
  248. 0 - 成功
  249. 非0 - 失败
  250. * 备 注:
  251. *********************************************************/
  252. HBI_FPD_DLL int __stdcall HBI_ConnectDetector(void *handle, COMM_CFG commCfg, int doOffsetTemp = 0);
  253. /*********************************************************
  254. * No: No010
  255. * Function Name: HBI_ConnectDetectorUdp - Standard UDP communication method
  256. HBI_ConnectDetectorJumbo - Standard UDP communication method,Support for jumbo
  257. HBI_ConnectDetectorWlan - Fiber type
  258. * Function Description: // Establish connection (gigabit Ethernet interface with typical UDP packet)
  259. * Parameter Description:
  260. In: void *handle // unsigned handle pointer
  261. char *szDetectorIp // FPD IP address: 192.168.10.40
  262. unsigned short usDetectorPort // FPD port: 32897(0x8081)
  263. char *szlocalIp // PC IP address: 192.168.10.20
  264. unsigned short usLocalPort // PC port: 32896(0x8080)
  265. int doOffsetTemp // Non-1: don’t update pre-offset template when connection is successful
  266. // 1: update pre-offset template when connection is successful
  267. Out: Null
  268. * Return Value: int
  269. // 0: Success
  270. // Non-0: Failure,refer to<<HbiError.h>>
  271. * Comment:
  272. * 编 号: No010
  273. * 函 数 名: HBI_ConnectDetectorUdp - 有线标准UDP
  274. HBI_ConnectDetectorJumbo - 有线标准UDP JUMBO
  275. HBI_ConnectDetectorWlan - 有线标准UDP wireless
  276. * 功能描述: 建立连接(支持以太网UDP协议)
  277. * 参数说明:
  278. In: void *handle - 句柄(无符号指针)
  279. char *szDetectorIp - 平板IP地址,如192.168.10.40
  280. unsigned short usDetectorPort - 平板端口,如32897(0x8081)
  281. char *szlocalIp - 上位机地址,如192.168.10.20
  282. unsigned short usLocalPort -上位机端口,如32896(0x8080)
  283. int doOffsetTemp - 非1:连接成功后固件不重新做offset模板
  284. 1:连接成功后固件重新做pre-offset模板,矫正offset使能03即可生效
  285. Out: 无
  286. * 返 回 值:int
  287. 0 - 成功
  288. 非0 - 失败
  289. * 备 注:
  290. *********************************************************/
  291. HBI_FPD_DLL int __stdcall HBI_ConnectDetectorUdp(void *handle, char *szDetectorIp, unsigned short usDetectorPort, char *szlocalIp, unsigned short usLocalPort, int doOffsetTemp = 0);
  292. HBI_FPD_DLL int __stdcall HBI_ConnectDetectorJumbo(void *handle, char *szDetectorIp, unsigned short usDetectorPort, char *szlocalIp, unsigned short usLocalPort, int doOffsetTemp = 0);
  293. HBI_FPD_DLL int __stdcall HBI_ConnectDetectorWlan(void *handle, char *szDetectorIp, unsigned short usDetectorPort, char *szlocalIp, unsigned short usLocalPort, int doOffsetTemp = 0);
  294. /*********************************************************
  295. * No: No011
  296. * Function Name: HBI_ConnectDetectorPcie
  297. * Function Description: // Establish connection (optical fiber interface)
  298. * Parameter Description:
  299. In: void *handle // unsigned handle pointer
  300. int doOffsetTemp // 1: don’t update pre-offset template when connection is successful
  301. // Non-1: update pre-offset template when connection is successful
  302. Out: Null
  303. * Return Value: int
  304. // 0: Success
  305. // Non-0: Failure,refer to<<HbiError.h>>
  306. * Comment:
  307. * 编 号: No011
  308. * 函 数 名: HBI_ConnectDetectorPcie
  309. * 功能描述: 建立连接(支持光口通讯协议)
  310. * 参数说明:
  311. In: void *handle - 句柄(无符号指针)
  312. int doOffsetTemp - 非1:连接成功后固件不重新做offset模板
  313. 1:连接成功后固件重新做pre-offset模板,矫正offset使能03即可生效
  314. Out: 无
  315. * 返 回 值:int
  316. 0 - 成功
  317. 非0 - 失败
  318. * 备 注:
  319. *********************************************************/
  320. HBI_FPD_DLL int __stdcall HBI_ConnectDetectorPcie(void *handle, int doOffsetTemp = 0);
  321. /******************************************************************************
  322. * No: No012
  323. * Function Name: HBI_ConnectDetectorEx
  324. * Function Description: // Establish connection
  325. * Parameter Description:
  326. In: void *handle // unsigned handle pointer, refer to <<hbi_init.ini>>
  327. Out: Null
  328. * Return Value: int
  329. // 0: Success
  330. // Non-0: Failure,refer to<<HbiError.h>>
  331. * Comment: <<hbi_fpd_init.ini>>
  332. * FPD IP Address: FPD_IP = 192.168.10.40
  333. * FPD Port: FPD_PORT = 32897
  334. * Local IP Address: LOCAL_IP = 192.168.10.20
  335. * Local Port: LOCAL_PORT = 32896
  336. * TRIGGER_MODE: 0-Invalid Trigger;
  337. 1: Static: Software Trigger;
  338. 2: Clear;
  339. 3: Static: Hvg Trigger Mode;
  340. 4: Static: AED Trigger Mode;
  341. 5: Dynamic: Hvg Sync Mode;
  342. 6: Dynamic: Fpd Sync Mode;
  343. 7: Dynamic: Free Run Mode;
  344. 8: Static: SAEC Mode;
  345. * OFFSET_ENABEL: 0: No Offset Correction;
  346. 1: Software Preoffset Correction;
  347. 2: Firmware Postoffset Correction;
  348. 3: Firmware Preoffset Correction;
  349. * GAIN_ENABLE: 0: No Gain Correction;
  350. 1: Software Gain Correction;
  351. 2: Firmware Gain Correction;
  352. * DEFECT_ENABLE: 0: No Defect Correction;
  353. 1: Software Defect Correction;
  354. 2: Firmware Defect Correction;
  355. * DUMMY_ENABLE: 0: No Dummy Correction;
  356. 1: Software Dummy Correction;
  357. 2: Firmware Dummy Correction;
  358. * LIVE_ACQ_TIME: 1000~1000ms
  359. * SELF_DUMPING_TIME: 500~500ms
  360. * PREPARE_TIME: 1500~1500ms
  361. * DO_OFFSET: 0: No action
  362. 1: Do offset template
  363. * 编 号: No012
  364. * 函 数 名: HBI_ConnectDetectorEx
  365. * 功能描述: 建立连接(通过配置文件获取参数)
  366. * 参数说明:
  367. In: void *handle - 句柄(无符号指针)
  368. 基本通讯控制参数,见《HBI_FPD_CONFIG.ini》
  369. Out: 无
  370. * 返 回 值:int
  371. 0 - 成功
  372. 非0 - 失败
  373. * 备 注:HBI_FPD_CONFIG.ini存放目录与HBISDKApi.dll是同目录。
  374. * 说 明:
  375. * 平板地址:FPD_IP=192.168.10.40
  376. * 平板端口:FPD_PORT=32897
  377. * 本地地址:LOCAL_IP=192.168.10.20
  378. * 本地端口:LOCAL_PORT=32896
  379. * 触发模式:TRIGGER_MODE=1 #0-Invalid Trigger;1-Software Trigger;2-Clear;3-Static:Hvg Trigger Mode;
  380. #4-Static:AED Trigger Mode;5-Dynamic:Hvg Sync Mode;
  381. #6-Dynamic:Fpd Sync Mode;7-Dynamic:Continue Mode;8-Static:SAECMode;
  382. * 偏置矫正使能:OFFSET_ENABEL=3 #0-No Offset Correction;1-Software PreOffset Correction;2-Firmware PostOffset Correction;3-Firmware PreOffset Correction;
  383. * 增益矫正使能:GAIN_ENABLE =2 #0-No Gain Correction;1-Software Gain Correction;2-Firmware Gain Correction;
  384. * 坏点矫正使能:DEFECT_ENABLE=2 #0-No Defect Correction;1-Software Defect Correction;2-Firmware Defect Correction;
  385. * Dummy矫正使能:DUMMY_ENABLE=0 #0-No Dummy Correction;1-Software Dummy Correction;2-Firmware Dummy Correction;
  386. * 连续采集时间:LIVE_ACQ_TIME=1000 #1000ms
  387. * 自清空时间:SELF_DUMPING_TIME=500 #500ms
  388. * Prepare延时:PREPARE_TIME=1500 #1500ms
  389. * 是否做固件Offset模板:DO_OFFSET=1 #1-做固件Offset模板,0-不做固件Offset模板
  390. ******************************************************************************/
  391. HBI_FPD_DLL int __stdcall HBI_ConnectDetectorEx(void *handle);
  392. /*********************************************************
  393. * No: No013
  394. * Function Name: HBI_DisConnectDetector
  395. * Function Description: // Disconnect detector
  396. * Parameter Description:
  397. In: void *handle // unsigned handle pointer
  398. Out: Null
  399. * Return Value: int
  400. // 0: Success
  401. // Non-0: Failure,refer to<<HbiError.h>>
  402. * Comment:
  403. * 编 号: No013
  404. * 函 数 名: HBI_DisConnectDetector
  405. * 功能描述: 断开连接
  406. * 参数说明:
  407. In: void *handle - 句柄(无符号指针)
  408. SOFTWARE_CALIBRATE_ENABLE inEnable - 校正使能状态,见HbiType.h中FPD_SOFTWARE_CALIBRATE_ENABLE
  409. Out: 无
  410. * 返 回 值:int
  411. 0 - 成功
  412. 非0 - 失败
  413. * 备 注:
  414. *********************************************************/
  415. HBI_FPD_DLL int __stdcall HBI_DisConnectDetector(void *handle);
  416. /*********************************************************
  417. * No: No014
  418. * Function Name: HBI_RegEventCallBackFun
  419. * Function Description: // Register callback function
  420. * Parameter Description:
  421. In: void *handle // unsigned handle pointer
  422. USER_CALLBACK_HANDLE_ENVENT callbackfun // Register callback function
  423. void *pContext // Object pointer, application software transfer object pointer to SDK in order to access static and global variable
  424. Out: Null
  425. * Return Value: int
  426. // 0: Success
  427. // Non-0: Failure,refer to<<HbiError.h>>
  428. * Comment:
  429. * 编 号: D014
  430. * 函 数 名:HBI_RegEventCallBackFun
  431. * 功能描述: 注册回调函数
  432. * 参数说明:
  433. In: void *handle - 句柄(无符号指针)
  434. USER_CALLBACK_HANDLE_ENVENT callbackfun - 注册回调函数
  435. void *pContext- 对象指针,一般上位机软件将对象指针传入SDK,回调函数反馈给上位机,以便静态或全局函数访问其他对象,亦可为空指针。
  436. Out: 无
  437. * 返 回 值:int
  438. 0 - 成功
  439. 非0 - 失败
  440. * 备 注:
  441. *********************************************************/
  442. HBI_FPD_DLL int __stdcall HBI_RegEventCallBackFun(void *handle, USER_CALLBACK_HANDLE_ENVENT handleEventfun, void *pContext);
  443. /*********************************************************
  444. * No: No015
  445. * Function Name: HBI_ResetDetector
  446. * Function Description: // Reset detector
  447. * Parameter Description:
  448. In: void *handle // unsigned handle pointer
  449. Out: Null
  450. * Return Value: int
  451. // 0: Success
  452. // Non-0: Failure,refer to<<HbiError.h>>
  453. * Comment:
  454. * 编 号: No015
  455. * 函 数 名: HBI_ResetDetector
  456. * 功能描述: 重置探测器
  457. * 参数说明:
  458. In: void *handle - 句柄(无符号指针)
  459. Out: 无
  460. * 返 回 值:int
  461. 0 - 成功
  462. 非0 - 失败
  463. * 备 注:
  464. *********************************************************/
  465. HBI_FPD_DLL int __stdcall HBI_ResetDetector(void *handle);
  466. /*********************************************************
  467. * No: No016
  468. * Function Name: HBI_ResetFirmware
  469. * Function Description: // Restore factory setting
  470. * Parameter Description:
  471. In: void *handle // unsigned handle pointer
  472. Out: Null
  473. * Return Value: int
  474. // 0: Success
  475. // Non-0: Failure,refer to<<HbiError.h>>
  476. * Comment:
  477. * 编 号: No016
  478. * 函 数 名: HBI_ResetFirmware
  479. * 功能描述: 重置固件出厂设置
  480. * 参数说明:
  481. In: void *handle - 句柄(无符号指针)
  482. Out: 无
  483. * 返 回 值:int
  484. 0 - 成功
  485. 非0 - 失败
  486. * 备 注:
  487. *********************************************************/
  488. HBI_FPD_DLL int __stdcall HBI_ResetFirmware(void *handle);
  489. /*********************************************************
  490. * No: No017
  491. * Function Name: HBI_GetFPDSerialNumber
  492. * Function Description: // Get FPD serial number
  493. * Parameter Description:
  494. In: void *handle // unsigned handle pointer
  495. In/Out: char *szSn, // Serial number length 14bits
  496. * Return Value: int
  497. // 0: Success
  498. // Non-0: Failure,refer to<<HbiError.h>>
  499. * Comment:
  500. * 编 号: No017
  501. * 函 数 名: HBI_GetFPDSerialNumber
  502. * 功能描述: 获取产品序列号
  503. * 参数说明:
  504. In: void *handle - 句柄(无符号指针)
  505. In/Out: char *szSn,长度14位
  506. * 返 回 值:int
  507. 0 - 成功
  508. 非0 - 失败
  509. * 备 注:
  510. *********************************************************/
  511. HBI_FPD_DLL int __stdcall HBI_GetFPDSerialNumber(void *handle, char *szSn);
  512. /*********************************************************
  513. * No: No018
  514. * Function Name: HBI_GetSDKVerion
  515. * Function Description: // Get Dll version
  516. * Parameter Description:
  517. In: void *handle // unsigned handle pointer
  518. char *szVer // Dll version information string
  519. Out: Null
  520. * Return Value: int
  521. // 0: Success
  522. // Non-0: Failure,refer to<<HbiError.h>>
  523. * Comment:
  524. * 编 号: No018
  525. * 函 数 名: HBI_GetSDKVerion
  526. * 功能描述: 获取SDK版本号
  527. * 参数说明:
  528. In: void *handle - 句柄(无符号指针)
  529. Out: char *szVer,数组长度至少》=64
  530. * 返 回 值:int
  531. 0 - 成功
  532. 非0 - 失败
  533. * 备 注:
  534. *********************************************************/
  535. HBI_FPD_DLL int __stdcall HBI_GetSDKVerion(void *handle, char *szVer);
  536. /*********************************************************
  537. * No: No019
  538. * Function Name: HBI_GetFirmareVerion
  539. * Function Description: // Get firmware version
  540. * Parameter Description:
  541. In: void *handle // unsigned handle pointer
  542. char *szVer // Firmware version information string
  543. Out: Null
  544. * Return Value: int
  545. // 0: Success
  546. // Non-0: Failure,refer to<<HbiError.h>>
  547. * Comment:
  548. * 编 号: No019
  549. * 函 数 名: HBI_GetFirmareVerion
  550. * 功能描述: 获取固件版本号
  551. * 参数说明:
  552. In: void *handle - 句柄(无符号指针)
  553. Out: char *szVer,数组长度至少》=64
  554. * 返 回 值:int
  555. 0 - 成功
  556. 非0 - 失败
  557. * 备 注:
  558. *********************************************************/
  559. HBI_FPD_DLL int __stdcall HBI_GetFirmareVerion(void *handle, char *szFirmwareVer);
  560. /*********************************************************
  561. * No: No020
  562. * Function Name: HBI_GetError
  563. * Function Description: // Get error information, unavailable at present
  564. * Parameter Description:
  565. In: const CodeStringTable* inTable // Errata
  566. int count // Number of table
  567. int recode // Error code
  568. Out: Null
  569. * Return Value: const char *
  570. // Null: Failure
  571. // Non-null: Success
  572. * Comment:
  573. * 编 号: No020
  574. * 函 数 名: HBI_GetError
  575. * 功能描述: 获取错误信息
  576. * 参数说明:
  577. In: CodeStringTable* inTable - 错误信息信息列表
  578. int count - 信息列表个数
  579. int recode - 错误码
  580. Out:无
  581. * 返 回 值:const char *
  582. 非NULL - 成功,错误信息
  583. NULL - 失败
  584. * 备 注:
  585. *********************************************************/
  586. HBI_FPD_DLL const char * __stdcall HBI_GetError(const CodeStringTable* inTable, int count, int recode);
  587. /*********************************************************
  588. * No: No021
  589. * Function Name: HBI_GetFpdCfgInfo/HBI_GetDevCfgInfo(old version)
  590. * Function Description: // Get nonvolatile config parameter(ROM)
  591. * Parameter Description:
  592. In: void *handle // unsigned handle pointer
  593. Out:RegCfgInfo* pRegCfg // Refer to <<HbiType.h>>
  594. * Return Value: int
  595. // 0: Success
  596. // Non-0: Failure,refer to<<HbiError.h>>
  597. * Comment:
  598. * 编 号: No021
  599. * 函 数 名: HBI_GetFpdCfgInfo/HBI_GetDevCfgInfo(old版本)
  600. * 功能描述: 获取ROM参数
  601. * 参数说明:
  602. In: void *handle - 句柄(无符号指针)
  603. Out:RegCfgInfo* pRegCfg,详细见《HbiType.h》。
  604. * 返 回 值:int
  605. 0 - 成功
  606. 非0 - 失败
  607. * 备 注:
  608. *********************************************************/
  609. HBI_FPD_DLL int __stdcall HBI_GetFpdCfgInfo(void *handle, RegCfgInfo* pRegCfg);
  610. HBI_FPD_DLL int __stdcall HBI_GetDevCfgInfo(void *handle, RegCfgInfo* pRegCfg);
  611. /*********************************************************
  612. * No: No022
  613. * Function Name: HBI_GetImageProperty
  614. * Function Description: // Get image property
  615. * Parameter Description:
  616. In: void *handle // unsigned handle pointer
  617. IMAGE_PROPERTY *img_pro // Image property, refer to<<HbiType.h>> IMAGE_PROPERTY
  618. Out: Null
  619. * Return Value: int
  620. // 0: Success
  621. // Non-0: Failure,refer to<<HbiError.h>>
  622. * Comment:
  623. * 编 号: No022
  624. * 函 数 名: HBI_GetImageProperty
  625. * 功能描述: 获取图像属性
  626. * 参数说明:
  627. In: void *handle - 句柄(无符号指针)
  628. Out: IMAGE_PROPERTY *img_pro,见HbiType.h。
  629. * 返 回 值:int
  630. 0 - 成功
  631. 非0 - 失败
  632. * 备 注:
  633. *********************************************************/
  634. HBI_FPD_DLL int __stdcall HBI_GetImageProperty(void *handle, IMAGE_PROPERTY *img_pro);
  635. /*********************************************************
  636. * No: No023
  637. * Function Name: HBI_GetPreviewImageProperty
  638. * Function Description: // Get preview image property
  639. * Parameter Description:
  640. In: void *handle // unsigned handle pointer
  641. IMAGE_PROPERTY *img_pro // Image property, refer to<<HbiType.h>> IMAGE_PROPERTY
  642. Out: Null
  643. * Return Value: int
  644. // 0: Success
  645. // Non-0: Failure,refer to<<HbiError.h>>
  646. * Comment:
  647. * 编 号: No023
  648. * 函 数 名: HBI_GetPreviewImageProperty
  649. * 功能描述: 获取图像属性
  650. * 参数说明:
  651. In: void *handle - 句柄(无符号指针)
  652. Out: IMAGE_PROPERTY *img_pro,见HbiType.h。
  653. * 返 回 值:int
  654. 0 - 成功
  655. 非0 - 失败
  656. * 备 注:
  657. *********************************************************/
  658. HBI_FPD_DLL int __stdcall HBI_GetPreviewImageProperty(void *handle, IMAGE_PROPERTY *img_pro);
  659. /*********************************************************
  660. * No: No024
  661. * Function Name: HBI_SinglePrepare
  662. * Function Description: Single image acquisition(combine with “prepare delay time” parameter)
  663. * Parameter Description:
  664. In: void *handle // unsigned handle pointer
  665. Out: Null
  666. * Return Value: int
  667. // 0: Success
  668. // Non-0: Failure,refer to<<HbiError.h>>
  669. * Comment:In the application, there will be a problem that the acquisition command type cannot be synchronized, resulting in the failure of the above figure. Use HBI_Prepare replacement
  670. *Prepare delay=0 - indicates soft trigger single frame acquisition first HBI_Prepare after HBI_ SingleAcquisition completes single frame acquisition
  671. *Prepare delay > "0 - means soft trigger single frame acquisition, only HBI_ Prepare is required can complete single frame acquisition according to the delay time
  672. * 编 号: No024
  673. * 函 数 名: HBI_SinglePrepare
  674. * 功能描述: 单帧采集准备指令
  675. * 参数说明:
  676. In: void *handle - 句柄(无符号指针)
  677. Out: 无
  678. * 返 回 值:int
  679. 0 - 成功
  680. 非0 - 失败
  681. 0 成功
  682. * 备 注:应用中会出现因为采集命令类型未能同步导致不上图的问题,使用HBI_Prepare替换
  683. * prepare延时=0-表示软触发单帧采集先HBI_SinglePrepare后HBI_SingleAcquisition完成单帧采集
  684. * prepare延时》0-表示软触发单帧采集,只需HBI_SinglePrepare即可按照延时时间完成单帧采集
  685. *********************************************************/
  686. HBI_FPD_DLL int __stdcall HBI_SinglePrepare(void *handle);
  687. /*********************************************************
  688. * No: No025
  689. * Function Name: HBI_Prepare (Add interface)
  690. * Function Description: Single image acquisition(combine with “prepare delay time” parameter)
  691. * Parameter Description:
  692. In: void *handle // unsigned handle pointer
  693. EnumIMAGE_ACQ_CMD //Current acquisition command type (image above or saved template image data)
  694. eg:
  695. SINGLE_ACQ_DEFAULT_TYPE // Single acquisition.
  696. SINGLE_ACQ_GAIN_IMAGE // Generate gain template with static single acquisition.
  697. SINGLE_ACQ_DEFECT_IMAGE // Generate defect template with static single acquisition.
  698. SINGLE_GENERATE_OFFSET, // Quickly generate template collection types, collect a group of dark field images in a single frame - SDK generates offset template.
  699. SINGLE_GENERATE_GAIN, // Quickly generate template collection types, and collect N groups of single frame (at least 3 groups by default) bright field images - SDK generates gain templates SINGLE_GENERATE_DEFECT, // Quickly generate template collection types, and collect N groups of single frame (at least 3 groups by default) bright field images - SDK generates defect templates
  700. SINGLE_GENERATE_GAIN_DEFECT // Quickly generate template collection types, and collect N groups of single frame (at least 3 groups by default) bright field images - SDK generates gain and defect templates
  701. Out: Null
  702. * Return Value: int
  703. // 0: Success
  704. // Non-0: Failure,refer to<<HbiError.h>>
  705. * Comment:
  706. *Prepare delay=0 - indicates soft trigger single frame acquisition first HBI_Prepare after HBI_ SingleAcquisition completes single frame acquisition
  707. *Prepare delay > "0 - means soft trigger single frame acquisition, only HBI_ Prepare is required can complete single frame acquisition according to the delay time
  708. * 编 号: No025
  709. * 函 数 名: HBI_Prepare(新增)
  710. * 功能描述: 单帧采集准备指令
  711. * 参数说明:
  712. In: void *handle - 句柄(无符号指针)
  713. EnumIMAGE_ACQ_CMD - 当前采集命令类型(上图或保存模板图像数据)
  714. 例如:
  715. SINGLE_ACQ_DEFAULT_TYPE // 默认单帧采集
  716. SINGLE_ACQ_GAIN_IMAGE // 创建Gain模板-单帧采集亮场图
  717. SINGLE_ACQ_DEFECT_IMAGE // 创建Defect模板-单帧采集亮场图
  718. SINGLE_GENERATE_OFFSET, // 快速生成模板采集类型,单帧采集1组暗场图 - SDK生成offset模板
  719. SINGLE_GENERATE_GAIN, // 快速生成模板采集类型,单帧采集N组(默认至少3组)亮场图 - SDK生成gain模板
  720. SINGLE_GENERATE_DEFECT, // 快速生成模板采集类型,单帧采集N组(默认至少3组)亮场图 - SDK生成defect模板
  721. SINGLE_GENERATE_GAIN_DEFECT // 快速生成模板采集类型,单帧采集N组(默认至少3组)亮场图 - SDK生成gain和defect模板
  722. Out: 无
  723. * 返 回 值:int
  724. 0 - 成功
  725. 非0 - 失败
  726. 0 成功
  727. * 备 注:是对HBI_SinglePrepare接口做了必要的补充和优化
  728. * prepare延时=0-表示软触发单帧采集先HBI_Prepare后HBI_SingleAcquisition完成单帧采集
  729. * prepare延时》0-表示软触发单帧采集,只需HBI_Prepare即可按照延时时间完成单帧采集
  730. *********************************************************/
  731. HBI_FPD_DLL int __stdcall HBI_Prepare(void* handle, EnumIMAGE_ACQ_CMD acqcmd = EnumIMAGE_ACQ_CMD::SINGLE_ACQ_DEFAULT_TYPE);
  732. /*********************************************************
  733. * No: No026
  734. * Function Name: HBI_SingleAcquisition
  735. * Function Description: // Single image acquisition
  736. * Parameter Description:
  737. In: void *handle // unsigned handle pointer
  738. FPD_AQC_MODE _mode // Acquisition mode and related parameters
  739. EnumIMAGE_ACQ_MODE // Image acquisition mode
  740. SINGLE_ACQ_DEFAULT_TYPE, // Single frame acquisition
  741. SINGLE_ACQ_GAIN_IMAGE, // Distributed generation correction template for template validation, creating Gain template - single frame acquisition of bright field images
  742. SINGLE_ACQ_DEFECT_IMAGE, // Distributed generation of correction templates for template validation and creation of Defect templates - single frame acquisition of bright field images
  743. EnumLIVE_ACQUISITION eLivetype; // Only for ONLY_ IMAGE
  744. int ngroupno // Group number
  745. int nframesum // Acsuisition image number
  746. int ndiscard // Discard image number
  747. int nframeid // Frame ID number
  748. Out: Null
  749. * Return Value: int
  750. // 0: Success
  751. // Non-0: Failure,refer to<<HbiError.h>>
  752. * Comment:
  753. * 编 号: No026
  754. * 函 数 名: HBI_SingleAcquisition
  755. * 功能描述: 单帧采集
  756. * 参数说明:
  757. In: void *handle - 句柄(无符号指针)
  758. FPD_AQC_MODE _mode - 结构体类型,参数包含采集模式以及帧数等其他参数
  759. 其中结构体包含字段:
  760. EnumIMAGE_ACQ_CMD eAqccmd; // 采集命令,参考文件《HbiType.h》,默认采图方式为SINGLE_ACQ_DEFAULT_TYPE,注意区分单帧采集和连续采集命令
  761. SINGLE_ACQ_DEFAULT_TYPE , // 默认单帧采集
  762. SINGLE_ACQ_GAIN_IMAGE, // 分布生成矫正模板,用于验证模板,创建Gain模板-单帧采集亮场图
  763. SINGLE_ACQ_DEFECT_IMAGE, // 分布生成矫正模板,用于验证模板,创建Defect模板-单帧采集亮场图
  764. EnumLIVE_ACQUISITION eLivetype; // 只限于ONLY_IMAGE;
  765. int ngroupno; // 默认为0
  766. int nAcqnumber; // 默认为0
  767. int ndiscard; // 默认为0
  768. int nframeid; // 默认为0
  769. Out: 无
  770. * 返 回 值:int
  771. 0 - 成功
  772. 非0 - 失败
  773. * 备 注:
  774. *********************************************************/
  775. HBI_FPD_DLL int __stdcall HBI_SingleAcquisition(void *handle, FPD_AQC_MODE _mode);
  776. /*********************************************************
  777. * No: No027
  778. * Function Name: HBI_LiveAcquisition
  779. * Function Description: // Live acquisition
  780. * Parameter Description:
  781. In: void *handle // unsigned handle pointer
  782. FPD_AQC_MODE _mode // Work mode and related parameter
  783. The structure contains fields:
  784. EnumIMAGE_ACQ_CMD eAqccmd; // Acquisition command,Refer to the document "HbiType. h", the default drawing method is LIVE_ ACQ_ DEFAULT_ TYPE, pay attention to distinguish between single-frame acquisition and continuous acquisition commands
  785. LIVE_ACQ_DEFAULT_TYPE, // Acquisition command
  786. // Distribute and generate correction templates for template validation
  787. LIVE_ACQ_OFFSET_IMAGE, // Create Offset template - continuously acquire dark field image
  788. LIVE_ACQ_GAIN_IMAGE, // Create Gain template - continuous acquisition of bright field image
  789. LIVE_ACQ_DEFECT_IMAGE, // Create Defect template - continuous acquisition of bright field image
  790. // Quickly generate correction templates for system integration
  791. OFFSET_TEMPLATE_TYPE, // Quickly generate template collection types, continuously collect a group of dark field images and generate offset templates, and firmware generates templates
  792. GAIN_TEMPLATE_TYPE, // Quickly generate template collection types, continuously collect a group of bright field images and generate gain templates
  793. DEFECT_TEMPLATE_GROUP1, // Quickly generate template collection types and continuously collect a group of bright field images - defect group1
  794. DEFECT_TEMPLATE_GROUP2, // Quickly generate template collection types and continuously collect a group of bright field images - defect group2
  795. DEFECT_TEMPLATE_GROUP3, // Quickly generate template collection types and continuously collect a group of bright field images - defect group3 and generate template
  796. SOFTWARE_OFFSET_TEMPLATE // Quickly generate template acquisition types and continuously collect a group of dark field images - SDK generates offset template
  797. Enum LIVE_ACQUISITION eLivetype; // Live acquisition only, detail refer to LIVE_ACQ_DEFAULT_TYPE.
  798. // 1 - generate the firmware Preoffset template and then continue to // acquire image.
  799. // 2 - image acquisition only.
  800. // 3 - generate firmware Preoffset template only.
  801. int ngroupno; // Group number.
  802. int nAcqnumber; // Reserved image number.
  803. int ndiscard; // Discard image number.
  804. int nframeid; // Counter.
  805. * Return Value: int
  806. // 0: Success
  807. // Non-0: Failure,refer to<<HbiError.h>>
  808. * Comment:
  809. * 编 号: No027
  810. * 函 数 名: HBI_LiveAcquisition
  811. * 功能描述: 连续采集
  812. * 参数说明:
  813. In: void *handle - 句柄(无符号指针)
  814. FPD_AQC_MODE _mode - 结构体类型,参数包含采集模式以及帧数等其他参数
  815. 其中结构体包含字段:
  816. EnumIMAGE_ACQ_CMD eAqccmd; // 采集命令,参考文件《HbiType.h》,默认采图方式为LIVE_ACQ_DEFAULT_TYPE,注意区分单帧采集和连续采集命令
  817. LIVE_ACQ_DEFAULT_TYPE, // 默认连续采集
  818. // 分布生成矫正模板,用于验证模板
  819. LIVE_ACQ_OFFSET_IMAGE, // 创建Offset模板-连续采集暗场图
  820. LIVE_ACQ_GAIN_IMAGE, // 创建Gain模板-连续采集亮场图
  821. LIVE_ACQ_DEFECT_IMAGE, // 创建Defect模板-连续采集亮场图
  822. // 快速生成矫正模板,用于系统集成
  823. OFFSET_TEMPLATE_TYPE, // 快速生成模板采集类型,连续采集一组暗场图并生成offset模板,固件生成模板
  824. GAIN_TEMPLATE_TYPE, // 快速生成模板采集类型,连续采集一组亮场图并生成gain模板
  825. DEFECT_TEMPLATE_GROUP1, // 快速生成模板采集类型,连续采集一组亮场图 - defect group1
  826. DEFECT_TEMPLATE_GROUP2, // 快速生成模板采集类型,连续采集一组亮场图 - defect group2
  827. DEFECT_TEMPLATE_GROUP3, // 快速生成模板采集类型,连续采集一组亮场图 - defect group3 and generate template
  828. SOFTWARE_OFFSET_TEMPLATE // 快速生成模板采集类型,连续采集一组暗场图 - SDK生成offset模板
  829. EnumLIVE_ACQUISITION eLivetype; // 只限于连续采集(LIVE_ACQ_DEFAULT_TYPE)详细任务, 1-固件做offset模板并上图;2-只上图;3-固件做只做offset模板;
  830. // 4 - 叠加:上传16位均图;5 - 叠加:上传32位均图;
  831. int ngroupno; // 组号,默认为0
  832. int nAcqnumber; // 实际采集帧数(默认为0),nAcqnumber=0表示一直采图直到发送发送停止采集命令,nAcqnumber=n,n>0表示采集n帧图像。
  833. int ndiscard; // 忽略的帧数,连续采集抛弃前几帧
  834. int nframeid; // 目前用做计数器,默认为0
  835. Out: 无
  836. * 返 回 值:int
  837. 0 - 成功
  838. 非0 - 失败
  839. * 备 注:
  840. *********************************************************/
  841. HBI_FPD_DLL int __stdcall HBI_LiveAcquisition(void *handle, FPD_AQC_MODE _mode);
  842. /*********************************************************
  843. * No: No028
  844. * Function Name: StopAcquisition
  845. * Function Description: // Stop live acquisition
  846. * Parameter Description:
  847. In: void *handle // unsigned handle pointer
  848. Out: Null
  849. * Return Value: int
  850. // 0: Success
  851. // Non-0: Failure,refer to<<HbiError.h>>
  852. * Comment:
  853. * 编 号: No028
  854. * 函 数 名: HBI_StopAcquisition
  855. * 功能描述: 停止连续采集
  856. * 参数说明:
  857. In: void *handle - 句柄(无符号指针)
  858. Out: 无
  859. * 返 回 值:int
  860. 0 - 成功
  861. 非0 - 失败
  862. * 备 注:
  863. *********************************************************/
  864. HBI_FPD_DLL int __stdcall HBI_StopAcquisition(void *handle);
  865. /*********************************************************
  866. * No: No029
  867. * Function Description: // Prepare delay time setting, which is also called exposure window
  868. * Parameter Description:
  869. In: void *handle // unsigned handle pointer
  870. Out: int *out_itime // Time(0~10000), unit: ms
  871. // 0: “HBI_Prepare” and “HBI_SingleAcquisition” command are combined to realize single image acquisition
  872. // Non-0: FPD will delay “Prepare Delay Time” and automatically acquire one single image when the detector receives “HBI_Prepare” command.
  873. * Return Value: int
  874. // 0: Success
  875. // Non-0: Failure,refer to<<HbiError.h>>
  876. * Comment:
  877. * 编 号: No029
  878. * 函 数 名: HBI_SetSinglePrepareTime
  879. * 功能描述: 设置软触发单帧采集清空和采集之间的时间间隔
  880. * 参数说明:
  881. In: void *handle - 句柄(无符号指针)
  882. int *in_itime - 延时时间,单位:ms
  883. 0-表示软触发单帧采集先HBI_SinglePrepare后HBI_SingleAcquisition完成单帧采集
  884. 非0-表示软触发单帧采集,只需HBI_SinglePrepare即可按照延时时间完成单帧采集
  885. * 返 回 值:int
  886. 0 - 成功
  887. 非0 - 失败
  888. * 备 注:
  889. *********************************************************/
  890. HBI_FPD_DLL int __stdcall HBI_SetSinglePrepareTime(void *handle, int in_itime);
  891. /*********************************************************
  892. * No: No030
  893. * Function Name: HBI_GetSinglePrepareTime
  894. * Function Description: // Get prepare delay time value, which is also called exposure window
  895. * Parameter Description:
  896. In: void *handle // unsigned handle pointer
  897. Out: int *out_itime // Time(0~10000), unit: ms
  898. // 0: “HBI_Prepare” and “HBI_SingleAcquisition” command is combined to realize single image acquisition
  899. // Non-0: FPD will delay “Prepare Delay Time” and automatically acquire one single image when the detector receives “HBI_Prepare” command.
  900. * Return Value: int
  901. // 0: Success
  902. // Non-0: Failure,refer to<<HbiError.h>>
  903. * Comment:
  904. * 编 号: No030
  905. * 函 数 名: HBI_GetSinglePrepareTime
  906. * 功能描述: 获取软触发单帧采集清空和采集之间的时间间隔
  907. * 参数说明:
  908. In: void *handle - 句柄(无符号指针)
  909. out:int *out_itime - 时间 [0~10000] 单位:mm
  910. 0-表示软触发单帧采集先HBI_SinglePrepare后HBI_SingleAcquisition完成单帧采集
  911. 非0-表示软触发单帧采集,只需HBI_SinglePrepare即可按照延时时间完成单帧采集
  912. * 返 回 值:int
  913. 0 - 成功
  914. 非0 - 失败
  915. * 备 注:
  916. *********************************************************/
  917. HBI_FPD_DLL int __stdcall HBI_GetSinglePrepareTime(void *handle, int *out_itime);
  918. /*********************************************************
  919. * No: No031
  920. * Function Name: HBI_SetLiveAcquisitionTime. (Static flat panel detector)
  921. * Function Description: // Live acquisition span time setting (apply to static and wireless type FPD)
  922. * Parameter Description:
  923. In: void *handle // unsigned handle pointer
  924. int time // Live acquisition span time, unit: ms
  925. Out: Null
  926. * Return Value: int
  927. // 0: Success
  928. // Non-0: Failure,refer to<<HbiError.h>>
  929. * Comment:
  930. * 编 号: No031
  931. * 函 数 名: HBI_SetLiveAcquisitionTime(静态平板)
  932. * 功能描述: 设置采集时间间隔(即可设置帧率)
  933. * 参数说明:
  934. In: void *handle - 句柄(无符号指针)
  935. int time - 间隔时间,单位是毫秒ms,> 0ms
  936. Out: 无
  937. * 返 回 值:int
  938. 0 - 成功
  939. 非0 - 失败
  940. * 备 注:
  941. *********************************************************/
  942. HBI_FPD_DLL int __stdcall HBI_SetLiveAcquisitionTime(void *handle, int time);
  943. /*********************************************************
  944. * No: No032
  945. * Function Name: HBI_GetLiveAcquisitionTime. (Static flat panel detector)
  946. * Function Description: // Get live acquisition span time (apply to static and wireless type FPD)
  947. * Parameter Description:
  948. In: void *handle // unsigned handle pointer
  949. Out: int *out_time // Live acquisition span time, unit: ms
  950. * Return Value: int
  951. // 0: Success
  952. // Non-0: Failure,refer to<<HbiError.h>>
  953. * Comment:
  954. * 编 号: No032
  955. * 函 数 名: HBI_GetLiveAcquisitionTime(静态平板)
  956. * 功能描述: 获取采集时间间隔
  957. * 参数说明:
  958. In: void *handle - 句柄(无符号指针)
  959. out:int *out_time - 时间,单位是毫秒ms
  960. * 返 回 值:int
  961. 0 - 成功
  962. 非0 - 失败
  963. * 备 注:
  964. *********************************************************/
  965. HBI_FPD_DLL int __stdcall HBI_GetLiveAcquisitionTime(void *handle, int *out_time);
  966. /*********************************************************
  967. * No: No033
  968. * Function Name: HBI_SetSelfDumpingTime(Dynamic flat panel detector)
  969. * Function Description: // Self dumping span time setting
  970. * Parameter Description:
  971. In: void *handle // unsigned handle pointer
  972. int time // Self dumping span time, unit: ms
  973. Out: Null
  974. * Return Value: int
  975. // 0: Success
  976. // Non-0: Failure,refer to<<HbiError.h>>
  977. * Comment:
  978. * 编 号: No033
  979. * 函 数 名: HBI_SetSelfDumpingTime
  980. * 功能描述: 设置采集时间间隔(动态平板)
  981. * 参数说明:
  982. In: void *handle - 句柄(无符号指针)
  983. int time - 间隔时间,单位是毫秒ms,> 0ms
  984. Out: 无
  985. * 返 回 值:int
  986. 0 - 成功
  987. 非0 - 失败
  988. * 备 注:
  989. *********************************************************/
  990. HBI_FPD_DLL int __stdcall HBI_SetSelfDumpingTime(void *handle, int time);
  991. /*********************************************************
  992. * No: No034
  993. * Function Name: HBI_GetSelfDumpingTime(Dynamic flat panel detector)
  994. * Function Description: // Get self dumping span time
  995. * Parameter Description:
  996. In: void *handle // unsigned handle pointer
  997. Out: int *out_time // Self dumping span time, unit: ms
  998. * Return Value: int
  999. // 0: Success
  1000. // Non-0: Failure,refer to<<HbiError.h>>
  1001. * Comment:
  1002. * 编 号: No034
  1003. * 函 数 名: HBI_GetSelfDumpingTime(动态平板)
  1004. * 功能描述: 获取采集时间间隔
  1005. * 参数说明:
  1006. In: void *handle - 句柄(无符号指针)
  1007. out:int *out_time - 时间,单位是毫秒ms
  1008. * 返 回 值:int
  1009. 0 - 成功
  1010. 非0 - 失败
  1011. * 备 注:
  1012. *********************************************************/
  1013. HBI_FPD_DLL int __stdcall HBI_GetSelfDumpingTime(void *handle, int *out_time);
  1014. /*********************************************************
  1015. * No: No035
  1016. * Function Name: HBI_TriggerAndCorrectApplay
  1017. * Function Description: // Work mode and image calibration setting
  1018. * Parameter Description:
  1019. In: void *handle // unsigned handle pointer
  1020. int _triggerMode
  1021. // 1: Software trigger mode
  1022. // 3: High voltage generator trigger mode
  1023. // 4: AED trigger mode
  1024. // 5-Dynamic:Hvg Sync Mode
  1025. // 6-Dynamic:Fpd Sync Mode
  1026. // 7-Dynamic:Fpd Continue
  1027. // 8-SAEC。
  1028. IMAGE_CORRECT_ENABLE* pCorrect // refer to<< HbiType.h>>
  1029. Out: Null
  1030. * Return Value: int
  1031. // 0: Success
  1032. // Non-0: Failure,refer to<<HbiError.h>>
  1033. * Comment: Replace “HBI_WorkStationInitDllCfg” and “HBI_QuckInitDllCfg” API function
  1034. * 编 号: No035
  1035. * 函 数 名: HBI_TriggerAndCorrectApplay
  1036. * 功能描述: 设置触发模式和图像校正使能(工作站)新版本
  1037. * 参数说明:
  1038. In: void *handle - 句柄(无符号指针)
  1039. int _triggerMode,1-软触发,3-高压触发,4-FreeAED,
  1040. 5-Dynamic:Hvg Sync Mode
  1041. 6-Dynamic:Fpd Sync Mode
  1042. 7-Dynamic:Fpd Continue
  1043. 8-SAEC。
  1044. IMAGE_CORRECT_ENABLE* pCorrect,见HbiType.h。
  1045. Out:无
  1046. * 返 回 值:int
  1047. 0 - 成功
  1048. 非0 - 失败
  1049. * 备 注:替换HBI_WorkStationInitDllCfg和HBI_QuckInitDllCfg接口
  1050. *********************************************************/
  1051. HBI_FPD_DLL int __stdcall HBI_TriggerAndCorrectApplay(void *handle, int _triggerMode, IMAGE_CORRECT_ENABLE* pCorrect);
  1052. /*********************************************************
  1053. * No: No036
  1054. * Function Name: HBI_UpdateTriggerMode
  1055. * Function Description: trigger mode setting
  1056. * Parameter Description:
  1057. In: void *handle // unsigned handle pointer
  1058. int _triggerMode,
  1059. // 1: Software trigger mode
  1060. // 3: High voltage generator trigger mode
  1061. // 4: AED trigger mode
  1062. // 5-Dynamic:Hvg Sync Mode
  1063. // 6-Dynamic:Fpd Sync Mode
  1064. // 7-Dynamic:Fpd Continue
  1065. // 8-SAEC。
  1066. Out: Null
  1067. * Return Value: int
  1068. // 0: Success
  1069. // Non-0: Failure,refer to<<HbiError.h>>
  1070. * Comment:
  1071. * 编 号: No036
  1072. * 函 数 名: HBI_UpdateTriggerMode
  1073. * 功能描述: 设置触发模式
  1074. * 参数说明:
  1075. In: void *handle - 句柄(无符号指针)
  1076. int _triggerMode,1-软触发,3-高压触发,4-FreeAED,
  1077. 5-Dynamic:Hvg Sync Mode
  1078. 6-Dynamic:Fpd Sync Mode
  1079. 7-Dynamic:Fpd Continue
  1080. 8-SAEC。
  1081. Out:无
  1082. * 返 回 值:int
  1083. 0 - 成功
  1084. 非0 - 失败
  1085. * 备 注:
  1086. *********************************************************/
  1087. HBI_FPD_DLL int __stdcall HBI_UpdateTriggerMode(void *handle, int _triggerMode);
  1088. /*********************************************************
  1089. * No: No037
  1090. * Function Name: HBI_UpdateCorrectEnable
  1091. * Function Description: // Firmware calibration enable setting
  1092. * Parameter Description:
  1093. In: void *handle // unsigned handle pointer
  1094. IMAGE_CORRECT_ENABLE* pCorrect // refer to<< HbiType.h>>
  1095. Out: Null
  1096. * Return Value: int
  1097. // 0: Success
  1098. // Non-0: Failure,refer to<<HbiError.h>>
  1099. * Comment:
  1100. * 编 号: No037
  1101. * 函 数 名: HBI_UpdateCorrectEnable
  1102. * 功能描述: 更新图像固件校正使能
  1103. * 参数说明:
  1104. In: void *handle - 句柄(无符号指针)
  1105. IMAGE_CORRECT_ENABLE* pCorrect,见HbiType.h。
  1106. Out:无
  1107. * 返 回 值:int
  1108. 0 - 成功
  1109. 非0 - 失败
  1110. * 备 注:
  1111. *********************************************************/
  1112. HBI_FPD_DLL int __stdcall HBI_UpdateCorrectEnable(void *handle, IMAGE_CORRECT_ENABLE* pCorrect);
  1113. /*********************************************************
  1114. * No: No038
  1115. * Function Name: HBI_GetCorrectEnable
  1116. * Function Description: // Get image calibration enable status
  1117. * Parameter Description:
  1118. In: void *handle // unsigned handle pointer
  1119. IMAGE_CORRECT_ENABLE* pCorrect // refer to<< HbiType.h>>
  1120. Out: Null
  1121. * Return Value: int
  1122. // 0: Success
  1123. // Non-0: Failure,refer to<<HbiError.h>>
  1124. * Comment:
  1125. * 编 号: No038
  1126. * 函 数 名: HBI_GetCorrectEnable
  1127. * 功能描述: 获取图像固件校正使能
  1128. * 参数说明:
  1129. In: void *handle - 句柄(无符号指针)
  1130. IMAGE_CORRECT_ENABLE* pCorrect,见HbiType.h。
  1131. Out:无
  1132. * 返 回 值:int
  1133. 0 - 成功
  1134. 非0 - 失败
  1135. * 备 注:
  1136. *********************************************************/
  1137. HBI_FPD_DLL int __stdcall HBI_GetCorrectEnable(void *handle, IMAGE_CORRECT_ENABLE *pCorrect);
  1138. /*********************************************************
  1139. * No: No039
  1140. * Function Name: HBI_SetSoftwareCorrect
  1141. * Function Description: // Software calibration enable setting
  1142. * Parameter Description:
  1143. In: void *handle // unsigned handle pointer
  1144. SOFTWARE_CALIBRATE_ENABLE inEnable // refer to<< HbiType.h>> SOFTWARE_CALIBRATE_ENABLE struct
  1145. Out: Null
  1146. * Return Value: int
  1147. // 0: Success
  1148. // Non-0: Failure,refer to<<HbiError.h>>
  1149. * Comment:
  1150. * 编 号: No039
  1151. * 函 数 名: HBI_SetSoftwareCorrect
  1152. * 功能描述: 设置校正使能,仅限于SDK校正,即软件矫正(相对于固件校正)
  1153. * 参数说明:
  1154. In: void *handle - 句柄(无符号指针)
  1155. SOFTWARE_CALIBRATE_ENABLE inEnable - 校正使能状态,见HbiType.h中SOFTWARE_CALIBRATE_ENABLE struct
  1156. Out: 无
  1157. * 返 回 值:int
  1158. 0 成功
  1159. 非0 失败,见HbiError.h错误码
  1160. * 备 注:新接口
  1161. *********************************************************/
  1162. HBI_FPD_DLL int __stdcall HBI_SetSoftwareCorrect(void *handle, SOFTWARE_CALIBRATE_ENABLE inEnable);
  1163. /*********************************************************
  1164. * No: No040
  1165. * Function Name: HBI_GetSoftwareCorrect
  1166. * Function Description: // Get software calibration enable status
  1167. * Parameter Description:
  1168. In: void *handle // unsigned handle pointer
  1169. SOFTWARE_CALIBRATE_ENABLE inEnable // refer to<<HbiType.h>>
  1170. SOFTWARE_CALIBRATE_ENABLE struct
  1171. Out: Null
  1172. * Return Value: int
  1173. // 0: Success
  1174. // Non-0: Failure,refer to<<HbiError.h>>
  1175. * Comment:
  1176. * 编 号: No040
  1177. * 函 数 名: HBI_GetSoftwareCorrect
  1178. * 功能描述: 获取校正使能参数,仅限于SDK校正,即软件矫正(相对于固件校正)
  1179. * 参数说明:
  1180. In: void *handle - 句柄(无符号指针)
  1181. SOFTWARE_CALIBRATE_ENABLE inEnable - 校正使能状态,见HbiType.h中
  1182. SOFTWARE_CALIBRATE_ENABLE struct
  1183. Out: 无
  1184. * 返 回 值:int
  1185. 0 成功
  1186. 非0 失败,见HbiError.h错误码
  1187. * 备 注:新接口
  1188. *********************************************************/
  1189. HBI_FPD_DLL int __stdcall HBI_GetSoftwareCorrect(void *handle, SOFTWARE_CALIBRATE_ENABLE *inEnable);
  1190. /*********************************************************
  1191. * No: No041
  1192. * Function Name: HBI_SetAedIntegrateTm
  1193. * Function Description: // AED integration time setting
  1194. * Parameter Description:
  1195. In: void *handle // unsigned handle pointer
  1196. int time // AED integration time, unit: ms, default = 500ms
  1197. Out: Null
  1198. * Return Value: int
  1199. // 0: Success
  1200. // Non-0: Failure
  1201. * Comment:
  1202. * 编 号: No041
  1203. * 函 数 名: HBI_SetAedIntegrateTm
  1204. * 功能描述: 设置AED积分时间
  1205. * 参数说明:
  1206. In: void *handle - 句柄(无符号指针)
  1207. int time - 间隔时间,单位是毫秒ms,>= 500ms
  1208. Out: 无
  1209. * 返 回 值:int
  1210. 0 - 成功
  1211. 非0 - 失败
  1212. * 备 注:
  1213. *********************************************************/
  1214. HBI_FPD_DLL int __stdcall HBI_SetAedIntegrateTm(void *handle, int time);
  1215. /*********************************************************
  1216. * No: No042
  1217. * Function Name: HBI_GetAedIntegrateTm
  1218. * Function Description: // Get AED integration time
  1219. * Parameter Description:
  1220. In: void *handle // unsigned handle pointer
  1221. Out: int *out_time // AED integration time, unit: ms
  1222. * Return Value: int
  1223. // 0: Success
  1224. // Non-0: Failure
  1225. * Comment:
  1226. * 编 号: No042
  1227. * 函 数 名: HBI_GetAedIntegrateTm
  1228. * 功能描述: 获取AED积分时间
  1229. * 参数说明:
  1230. In: void *handle - 句柄(无符号指针)
  1231. out:int *out_time - 时间,单位是毫秒ms
  1232. * 返 回 值:int
  1233. 0 - 成功
  1234. 非0 - 失败
  1235. * 备 注:
  1236. *********************************************************/
  1237. HBI_FPD_DLL int __stdcall HBI_GetAedIntegrateTm(void *handle, int *out_time);
  1238. /*********************************************************
  1239. * No: No043
  1240. * Function Name: HBI_SetAedThreshold
  1241. * Function Description: // AED threshold value setting
  1242. * Parameter Description:
  1243. In: void *handle // unsigned handle pointer
  1244. int out_ivalue // AED threshold (10,000~1,000,000)
  1245. Out: Null
  1246. * Return Value: int
  1247. // 0: Success
  1248. // Non-0: Failure
  1249. * Comment:
  1250. * 编 号: No043
  1251. * 函 数 名: HBI_SetAedThreshold
  1252. * 功能描述: 设置AED阈值
  1253. * 参数说明:
  1254. In: void *handle - 句柄(无符号指针)
  1255. int out_ivalue - 阈值 [25,000~1,000,000]
  1256. Out: 无
  1257. * 返 回 值:int
  1258. 0 - 成功
  1259. 非0 - 失败
  1260. * 备 注:
  1261. *********************************************************/
  1262. HBI_FPD_DLL int __stdcall HBI_SetAedThreshold(void *handle, int in_ivalue);
  1263. /*********************************************************
  1264. * No: No044
  1265. * Function name: HBI_ GetAedThreshold
  1266. * Function description: Obtain AED threshold
  1267. * Parameter Description:
  1268. In: void * handle - Handle (unsigned pointer)
  1269. Out: int * out_ Ivalue - threshold [10000~1000000]
  1270. * Return value: int
  1271. 0- Success
  1272. Non 0- Failed
  1273. * Remarks:
  1274. * 编 号: No044
  1275. * 函 数 名: HBI_GetAedThreshold
  1276. * 功能描述: 获取AED阈值
  1277. * 参数说明:
  1278. In: void *handle - 句柄(无符号指针)
  1279. out:int *out_ivalue - 阈值 [10,000~1,000,000]
  1280. * 返 回 值:int
  1281. 0 - 成功
  1282. 非0 - 失败
  1283. * 备 注:
  1284. *********************************************************/
  1285. HBI_FPD_DLL int __stdcall HBI_GetAedThreshold(void *handle, int *out_ivalue);
  1286. /*********************************************************
  1287. * No: No045
  1288. * Function Name: HBI_SetSaturationValue
  1289. * Function Description: // Saturation value setting
  1290. * Parameter Description:
  1291. In: void *handle // unsigned handle pointer
  1292. Out:int *out_ivalue // Saturation value (0 ~ 65,535)
  1293. * Return Value: int
  1294. // 0: Success
  1295. // Non-0: Failure
  1296. * Comment:
  1297. * 编 号: No045
  1298. * 函 数 名: HBI_SetSaturationValue
  1299. * 功能描述: 设置饱和值
  1300. * 参数说明:
  1301. In: void *handle - 句柄(无符号指针)
  1302. out:int *out_ivalue - 饱和值 [0~65,535]
  1303. * 返 回 值:int
  1304. 0 - 成功
  1305. 非0 - 失败
  1306. * 备 注:
  1307. *********************************************************/
  1308. HBI_FPD_DLL int __stdcall HBI_SetSaturationValue(void *handle, int in_ivalue);
  1309. /*********************************************************
  1310. * No: No046
  1311. * Function Name: HBI_GetSaturationValue
  1312. * Function Description: // Get saturation setting value
  1313. * Parameter Description:
  1314. In: void *handle // unsigned handle pointer
  1315. Out:int *out_ivalue // Saturation value (0 ~ 65,535)
  1316. * Return Value: int
  1317. // 0: Success
  1318. // Non-0: Failure
  1319. * Comment:
  1320. * 编 号: No046
  1321. * 函 数 名: HBI_GetSaturationValue
  1322. * 功能描述: 获取饱和值
  1323. * 参数说明:
  1324. In: void *handle - 句柄(无符号指针)
  1325. int *out_ivalue - 饱和值 [0~65,535]
  1326. * 返 回 值:int
  1327. 0 - 成功
  1328. 非0 - 失败
  1329. * 备 注:
  1330. *********************************************************/
  1331. HBI_FPD_DLL int __stdcall HBI_GetSaturationValue(void *handle, int *out_ivalue);
  1332. /*********************************************************
  1333. * No: No047
  1334. * Function Name: HBI_SetClippingValue
  1335. * Function Description: Clipping value setting
  1336. * Parameter Description:
  1337. In: void *handle // unsigned handle pointer
  1338. Out:int *out_ivalue // Clipping value (0 ~ 65,535)
  1339. * Return Value: int
  1340. // 0: Success
  1341. // Non-0: Failure
  1342. * Comment:
  1343. * 编 号: No047
  1344. * 函 数 名: HBI_SetClippingValue
  1345. * 功能描述: 设置图像剪裁值
  1346. * 参数说明:
  1347. In: void *handle - 句柄(无符号指针)
  1348. out:int *out_ivalue - 剪裁值 [0~65,535]
  1349. * 返 回 值:int
  1350. 0 - 成功
  1351. 非0 - 失败
  1352. * 备 注:
  1353. *********************************************************/
  1354. HBI_FPD_DLL int __stdcall HBI_SetClippingValue(void *handle, int in_ivalue);
  1355. /*********************************************************
  1356. * No: No048
  1357. * Function Name: HBI_GetClippingValue
  1358. * Function Description: // Get clipping value
  1359. * Parameter Description:
  1360. In: void *handle // unsigned handle pointer
  1361. Out:int *out_ivalue // Clipping value (0 ~ 65,535)
  1362. * Return Value: int
  1363. // 0: Success
  1364. // Non-0: Failure
  1365. * Comment:
  1366. * 编 号: No048
  1367. * 函 数 名: HBI_GetClippingValue
  1368. * 功能描述: 获取图像剪裁值
  1369. * 参数说明:
  1370. In: void *handle - 句柄(无符号指针)
  1371. out:int *out_ivalue - 剪裁值 [0~65,535]
  1372. * 返 回 值:int
  1373. 0 - 成功
  1374. 非0 - 失败
  1375. * 备 注:
  1376. *********************************************************/
  1377. HBI_FPD_DLL int __stdcall HBI_GetClippingValue(void *handle, int *out_ivalue);
  1378. /*********************************************************
  1379. * No: No049
  1380. * Function Name: HBI_SetPGALevel
  1381. * Function Description: // PGA gain stage setting
  1382. * Parameter Description:
  1383. In: void *handle // unsigned handle pointer
  1384. int mode // PGA gain stage
  1385. // 1: 0.6 pC;
  1386. // 2: 1.2 pC;
  1387. // 3: 2.4 pC;
  1388. // 4: 3.6 pC;
  1389. // 5: 4.8 pC;
  1390. // 6: 7.2 pC;
  1391. // 7: 9.6 pC;
  1392. // 8: LFW with CMOS detector
  1393. // 9: HFW with CMOS detector
  1394. // 10: 0.3 pC;
  1395. // 11: 0.15 pC;
  1396. // Default: 7.2pC.
  1397. Out: Null
  1398. * Return Value: int
  1399. // 0: Success
  1400. // Non-0: Failure
  1401. * Comment:
  1402. * 编 号: No049
  1403. * 函 数 名: HBI_SetPGALevel
  1404. * 功能描述: 设置增益挡位,即设置可编程积分电容档位,提高灵敏度
  1405. * 参数说明:
  1406. In: void *handle - 句柄(无符号指针)
  1407. int mode - 模式
  1408. [n]-Invalid
  1409. [1]-0.6pC
  1410. [2]-1.2pC
  1411. [3]-2.4pC
  1412. [4]-3.6pC
  1413. [5]-4.8pC
  1414. [6]-7.2pC,默认7.2pC
  1415. [7]-9.6pC
  1416. [8]-LFW (COMS)
  1417. [9]-HFW (COMS)
  1418. [10]-0.3pC
  1419. [11]-0.15pC
  1420. Out: 无
  1421. * 返 回 值:int
  1422. 0 - 成功
  1423. 非0 - 失败
  1424. * 备 注:
  1425. *********************************************************/
  1426. HBI_FPD_DLL int __stdcall HBI_SetPGALevel(void *handle, int nGainLevel);
  1427. /*********************************************************
  1428. * No: No050
  1429. * Function Name: HBI_GetPGALevel
  1430. * Function Description: // Get PGA gain stage setting value
  1431. * Parameter Description:
  1432. In: void *handle // unsigned handle pointer
  1433. Out: Null
  1434. * Return Value:
  1435. int // PGA gain stage
  1436. // 1: 0.6 pC;
  1437. // 2: 1.2 pC;
  1438. // 3: 2.4 pC;
  1439. // 4: 3.6 pC;
  1440. // 5: 4.8 pC;
  1441. // 6: 7.2 pC;
  1442. // 7: 9.6 pC;
  1443. // 8: LFW with CMOS detector
  1444. // 9: HFW with CMOS detector
  1445. // 10: 0.3 pC;
  1446. // 11: 0.15 pC;
  1447. // Default: 7.2pC.
  1448. * Comment:
  1449. * 编 号: No050
  1450. * 函 数 名: HBI_GetPGALevel
  1451. * 功能描述: 获取增益挡位,即获取可编程积分电容档位
  1452. * 参数说明:
  1453. In: void *handle - 句柄(无符号指针)
  1454. Out: 无
  1455. * 返 回 值:int
  1456. [n]-Invalid
  1457. [1]-0.6pC
  1458. [2]-1.2pC
  1459. [3]-2.4pC
  1460. [4]-3.6pC
  1461. [5]-4.8pC
  1462. [6]-7.2pC
  1463. [7]-9.6pC
  1464. [8]-LFW (COMS)
  1465. [9]-HFW (COMS)
  1466. [10]-0.3pC
  1467. [11]-0.15pC
  1468. * 备 注:
  1469. *********************************************************/
  1470. HBI_FPD_DLL int __stdcall HBI_GetPGALevel(void *handle);
  1471. /*********************************************************
  1472. * No: No051
  1473. * Function Name: HBI_SetLPFLevel
  1474. * Function Description: // Low pass filter setting
  1475. * Parameter Description:
  1476. In: void *handle // unsigned handle pointer
  1477. int nLPFLevel // Low pass filter
  1478. // 0: 210 kHz, default value is 210 kHz
  1479. // 1: 105 kHz
  1480. // 2: 52 kHz
  1481. // 3: 26 kHz
  1482. // 4: 13 kHz
  1483. Out: Null
  1484. * Return Value: int
  1485. // 0: Success
  1486. // Non-0: Failure
  1487. * Comment:
  1488. * 编 号: No051
  1489. * 函 数 名: HBI_SetLPFLevel
  1490. * 功能描述: 设置低通滤波器档位参数
  1491. * 参数说明:
  1492. In: void *handle - 句柄(无符号指针)
  1493. int nLPFLevel - 档位
  1494. [n]-Invalid
  1495. [0]-210khz,默认210khz
  1496. [1]-105khz
  1497. [2]-52khz
  1498. [3]-26khz
  1499. [4]-13khz
  1500. Out: 无
  1501. * 返 回 值:int
  1502. 0 - 成功
  1503. 非0 - 失败
  1504. * 备 注:
  1505. *********************************************************/
  1506. HBI_FPD_DLL int __stdcall HBI_SetLPFLevel(void *handle, int nLPFLevel);
  1507. /*********************************************************
  1508. * No: No052
  1509. * Function Name: HBI_GetLPFLevel
  1510. * Function Description: // Get pass filter
  1511. * Parameter Description:
  1512. In: void *handle // unsigned handle pointer
  1513. Out: Null
  1514. * Return Value:
  1515. int // Low pass filter
  1516. // 0: 210 kHz, default value is 210 kHz
  1517. // 1: 105 kHz
  1518. // 2: 52 kHz
  1519. // 3: 26 kHz
  1520. // 4: 13 kHz
  1521. * Comment:
  1522. * 编 号: No052
  1523. * 函 数 名: HBI_GetLPFLevel
  1524. * 功能描述: 获取低通滤波器档位参数
  1525. * 参数说明:
  1526. In: void *handle - 句柄(无符号指针)
  1527. Out: 无
  1528. * 返 回 值:int
  1529. [0]-210khz,默认210khz
  1530. [1]-105khz
  1531. [2]-52khz
  1532. [3]-26khz
  1533. [4]-13khz
  1534. [n]-Invalid
  1535. * 备 注:
  1536. *********************************************************/
  1537. HBI_FPD_DLL int __stdcall HBI_GetLPFLevel(void *handle);
  1538. /*********************************************************
  1539. * No: No053
  1540. * Function Name: HBI_SetBinning
  1541. * Function Description: Binning mode setting
  1542. * Parameter Description:
  1543. In: void *handle // unsigned handle pointer
  1544. unsigned int nbin // Binning mode
  1545. // 1: 1x1
  1546. // 2: 2x2
  1547. // 3: 3x3
  1548. // 4: 4x4
  1549. Out: Null
  1550. * Return Value: int
  1551. // 0: Success
  1552. // Non-0: Failure
  1553. * Comment:
  1554. * 编 号: No053
  1555. * 函 数 名: HBI_SetBinning
  1556. * 功能描述: 设置图像binning方式
  1557. * 参数说明:
  1558. In:
  1559. void *handle - 句柄(无符号指针)
  1560. unsigned int nbin - 1:1x1,2:2x2,3:3x3,4:4x4
  1561. Out:无
  1562. * 返 回 值:int
  1563. 0 - 成功
  1564. 非0 - 失败
  1565. * 备 注:
  1566. *********************************************************/
  1567. HBI_FPD_DLL int __stdcall HBI_SetBinning(void *handle, unsigned int bin);
  1568. /*********************************************************
  1569. * No: No054
  1570. * Function Name: HBI_GetBinning
  1571. * Function Description: // Get binning mode setting value
  1572. * Parameter Description:
  1573. In: void *handle // unsigned handle pointer
  1574. unsigned int *nbin // Binning mode
  1575. // 1: 1x1
  1576. // 2: 2x2
  1577. // 3: 3x3
  1578. // 4: 4x4
  1579. Out: Null
  1580. * Return Value: int
  1581. // 0: Success
  1582. // Non-0: Failure
  1583. * Comment:
  1584. * 编 号: No054
  1585. * 函 数 名: HBI_GetBinning
  1586. * 功能描述: 获取图像binning方式
  1587. * 参数说明:
  1588. In: void *handle - 句柄(无符号指针)
  1589. unsigned int *nbin - 1:1x1,2:2x2,3:3x3,4:4x4
  1590. Out: 无
  1591. * 返 回 值:int
  1592. 0 - 成功
  1593. 非0 - 失败
  1594. * 备 注:
  1595. *********************************************************/
  1596. HBI_FPD_DLL int __stdcall HBI_GetBinning(void *handle, unsigned int *bin);
  1597. /*********************************************************
  1598. * No: No055
  1599. * Function Name: HBI_SetPreviewMode
  1600. * Function Description: Preview mode setting
  1601. * Parameter Description:
  1602. In: void *handle - // unsigned handle pointer
  1603. int inTriggMode
  1604. 1-Soft trigger
  1605. 3-High voltage trigger
  1606. 4-FreeAED
  1607. 5-Dynamic:Hvg Sync Mode
  1608. 6-Dynamic:Fpd Sync Mode
  1609. 7-Dynamic:Fpd Continue
  1610. 8-SAEC
  1611. Other not supported。
  1612. int inPreviewMode // Image acquire and display mode
  1613. // 0: normal image,
  1614. // 1: preview image
  1615. // 2: preview + normal image
  1616. Out: Null
  1617. * Return Value: int
  1618. // 0: Success
  1619. // Non-0: Failure
  1620. * Comment:
  1621. * 编 号: No055
  1622. * 函 数 名: HBI_SetPreviewMode
  1623. * 功能描述: 设置Preview预览或取消预览
  1624. * 功能描述: 设置Preview预览或取消预览
  1625. * 参数说明:
  1626. In: void *handle - 句柄(无符号指针)
  1627. int inTriggMode
  1628. 1-软触发
  1629. 3-高压触发
  1630. 4-FreeAED
  1631. 5-Dynamic:Hvg Sync Mode
  1632. 6-Dynamic:Fpd Sync Mode
  1633. 7-Dynamic:Fpd Continue
  1634. 8-SAEC
  1635. 其他不支持。
  1636. int inPreviewMode
  1637. 0-normal image
  1638. 1-preview image
  1639. Out:无
  1640. * 返 回 值:int
  1641. 0 - 成功
  1642. 非0 - 失败
  1643. * 备 注:
  1644. *********************************************************/
  1645. HBI_FPD_DLL int __stdcall HBI_SetPreviewMode(void *handle, int inTriggMode, int inPreviewMode);
  1646. /*********************************************************
  1647. * No: No056
  1648. * Function Name: HBI_GetPreviewMode
  1649. * Function Description: // Get preview mode setting value
  1650. * Parameter Description:
  1651. In: void *handle // unsigned handle pointer
  1652. Out: int *outmode // Image acquire and display mode [0~2]
  1653. // 0: normal image,
  1654. // 1: preview image
  1655. // 2: preview + normal image
  1656. * Return Value: int
  1657. // 0: Success
  1658. // Non-0: Failure
  1659. * Comment:
  1660. * 编 号: No056
  1661. * 函 数 名: HBI_GetPreviewMode
  1662. * 功能描述: 设置Preview
  1663. * 参数说明:
  1664. In: void *handle - 句柄(无符号指针)
  1665. out:int *outMode - preview mode [0~2]
  1666. 0-normal image,1-preview image,2-preview image and normal image。
  1667. * 返 回 值:int
  1668. 0 - 成功
  1669. 非0 - 失败
  1670. * 备 注:
  1671. *********************************************************/
  1672. HBI_FPD_DLL int __stdcall HBI_GetPreviewMode(void *handle, int *outMode);
  1673. /*********************************************************
  1674. * No: No057
  1675. * Function Name: HBI_SAecModeApply
  1676. * Function Description: // SAEC mode setting
  1677. * Parameter Description:
  1678. In: void *handle // unsigned handle pointer
  1679. int inPreviewMode // 0: Normal image
  1680. // 1: Preview image
  1681. int inPerTime // FPD pre ready delay time
  1682. int inPostTime // FPD post ready delay time
  1683. Out: Null
  1684. * Return Value:
  1685. int // 0: Success
  1686. // Non-0: Failure
  1687. * Comment:
  1688. 1. inPreviewMode=0(normal image)
  1689. 2. inPreviewMode=1(preview image), user define inPerTime and inPostTime
  1690. * 编 号: No057
  1691. * 函 数 名: HBI_SAecModeApply
  1692. * 功能描述: 设置或取消SAEC模式
  1693. * 参数说明:
  1694. In: void *handle - 句柄(无符号指针)
  1695. int inPreviewMode
  1696. 0-normal image
  1697. 1-preview image
  1698. int inPerTime - fpd pre ready delay time
  1699. int inPostTime - fpd post ready delay time
  1700. Out:无
  1701. * 返 回 值:int
  1702. 0 - 成功
  1703. 非0 - 失败
  1704. * 备 注:分为两种情况:
  1705. 1》启用:inPreviewMode=1(preview image),inPerTime和inPostTime(客户指定)
  1706. 2》取消:inPreviewMode=0(normal image),inPerTime和inPostTime默认即可
  1707. *********************************************************/
  1708. HBI_FPD_DLL int __stdcall HBI_SAecModeApply(void *handle, int inPreviewMode, int inPerTime = 0, int inPostTime = 0);
  1709. /*********************************************************
  1710. * No: No058
  1711. * Function Name: HBI_SAecAcq
  1712. * Function Description: // SAEC image acquisition
  1713. * Parameter Description:
  1714. In: void *handle // unsigned handle pointer
  1715. Out: Null
  1716. * Return Value: int
  1717. // 0: Success
  1718. // Non-0: Failure
  1719. * Comment:
  1720. * 编 号: No058
  1721. * 函 数 名: HBI_SAecAcq
  1722. * 功能描述: SAEC采集上图指令
  1723. * 参数说明:
  1724. In: void *handle - 句柄(无符号指针)
  1725. Out: 无
  1726. * 返 回 值:int
  1727. 0 - 成功
  1728. 非0 - 失败
  1729. * 备 注:
  1730. *********************************************************/
  1731. HBI_FPD_DLL int __stdcall HBI_SAecAcq(void *handle);
  1732. /*********************************************************
  1733. * No: No059
  1734. * Function Name: HBI_RegProgressCallBack
  1735. * Function Description: // Register callback function, feedback template or firmware downloading progress status
  1736. * Parameter Description:
  1737. In: void *handle // unsigned handle pointer
  1738. USER_CALLBACK_HANDLE_PROCESS handleStatusfun // Register callback function
  1739. void *pObject // Object pointer,
  1740. Out: Null
  1741. * Return Value: int
  1742. // 0: Success
  1743. // Non-0: Failure
  1744. * Comment:
  1745. * 编 号: No059
  1746. * 函 数 名: HBI_RegProgressCallBack
  1747. * 功能描述: 注册回调函数
  1748. * 参数说明: 处理固件升级反馈信息
  1749. In: void *handle - 句柄(无符号指针)
  1750. USER_CALLBACK_HANDLE_PROCESS handleStatusfun - 注册回调函数
  1751. void* pObject - 对象指针,亦可为空
  1752. Out: 无
  1753. * 返 回 值:int
  1754. 0 - 成功
  1755. 非0 - 失败
  1756. * 备 注:
  1757. *********************************************************/
  1758. HBI_FPD_DLL int __stdcall HBI_RegProgressCallBack(void *handle, USER_CALLBACK_HANDLE_PROCESS handleStatusfun, void* pObject);
  1759. /*********************************************************
  1760. * No: No060
  1761. * Function Name: HBI_GenerateTemplate
  1762. * Function Description: // Quick generate offset, gain, defect template
  1763. * Parameter Description:
  1764. In: void *handle // unsigned handle pointer
  1765. EnumIMAGE_ACQ_MODE _mode // Type of template
  1766. OFFSET_TEMPLATE_MODE // Offset template
  1767. GAIN_TEMPLATE_MODE // Gain template
  1768. DEFECT_ACQ_GROUP1, // Defect template with group1 image
  1769. DEFECT_ACQ_GROUP2, // Defect template with group2 image
  1770. DEFECT_ACQ_AND_TEMPLATE // Defect template with group3 image and generate template
  1771. int bprevew // Whether to generate preview template
  1772. // 1: yes
  1773. // 0: no (default)
  1774. Out: Null
  1775. * Return Value:
  1776. int // 0: Success
  1777. // Non-0: Failure
  1778. * Comment:
  1779. * 1、OFFSET_ TEMPLATE: Generate a dark field template, note that the ball tube is closed, and the firmware collects a set of dark field images and generates an Offset template
  1780. * 2、GAIN_ TEMPLATE: To generate a gain correction template, it is necessary to open the ball tube, adjust the dose switch, and start the plate to collect bright field images and generate a gain template
  1781. * 3、DEFECT_ TEMPLATE_ GROUP1: To generate a bad spot correction template, it is necessary to open the ball tube, adjust the dose, and start collecting the first group of bright field images on the flat panel
  1782. * 4、DEFECT_ TEMPLATE_ GROUP2: To generate a bad spot correction template, it is necessary to open the ball tube, adjust the dose, and start collecting the second group of bright field images on the flat panel
  1783. * 5、DEFECT_ TEMPLATE_ GROUP3: To generate a bad spot correction template, it is necessary to open the ball tube, adjust the dose, and start the plate to collect the third group of bright field images and generate a bad template
  1784. * 6、SOFTWARE_ OFFSET_ TEMPLATE: Generate a dark field template. Note that the ball tube is closed. The SDK collects a set of dark field images and generates an Offset template
  1785. * 编 号: No060
  1786. * 函 数 名: HBI_GenerateTemplate
  1787. * 功能描述: 快速生成模板
  1788. * 参数说明:
  1789. In: void *handle - 句柄(无符号指针)
  1790. EnumIMAGE_ACQ_CMD _mode - 生成模板类型
  1791. OFFSET_TEMPLATE_TYPE 连续采集一组暗场图 - Firmware PreOffset Template
  1792. GAIN_TEMPLATE_TYPE 连续采集一组亮场图 - gain Template
  1793. DEFECT_TEMPLATE_GROUP1, 连续采集一组亮场图 - defect group1
  1794. DEFECT_TEMPLATE_GROUP2, 连续采集一组亮场图 - defect group2
  1795. DEFECT_ACQ_AND_TEMPLATE, 连续采集一组亮场图 - defect group3 and generate template
  1796. SOFTWARE_OFFSET_TEMPLATE 连续采集一组暗场图 - Software PreOffset Template
  1797. int bprevew - 是否生成preview模板,1-生成,0-不生成
  1798. Out: 无
  1799. * 返 回 值:int
  1800. 0 - 成功
  1801. 非0 - 失败
  1802. * 备 注:
  1803. *********************************************************/
  1804. HBI_FPD_DLL int __stdcall HBI_GenerateTemplate(void *handle, EnumIMAGE_ACQ_CMD _mode, int bprevew = 0);
  1805. /*********************************************************
  1806. * No: No061
  1807. * Function Name: HBI_DownloadTemplate
  1808. * Function Description: // Download calibration template
  1809. * Parameter Description:
  1810. In: void *handle // unsigned handle pointer
  1811. DOWNLOAD_FILE *downloadfile // Template file object pointer
  1812. emUPLOAD_FILE_TYPE emfiletype-Template type(OFFSET_TMP-offset template.GAIN_TMP-gain template,DEFECT_TMP-defect template)
  1813. int nBinningtype-template binning type(1-binning1*1,2-binning2*2,3-binning3*3,4-binning4*4)
  1814. char filepath-Template absolute path
  1815. Out: Null
  1816. * Return Value:
  1817. int // 0: Success
  1818. // Non-0: Failure
  1819. * Comment:
  1820. * 编 号: No061
  1821. * 函 数 名: HBI_DownloadTemplate
  1822. * 功能描述: 下载矫正模板
  1823. * 参数说明:
  1824. In: void *handle - 句柄(无符号指针)
  1825. DOWNLOAD_FILE *downloadfile - 下载模板文件对象指针
  1826. int nModeID:Mode ID,when managing based on multiple Mode templates, it is neccessary to specify the Mode ID.
  1827. emUPLOAD_FILE_TYPE emfiletype-模板类型(OFFSET_TMP-offset模板.GAIN_TMP-gain模板,DEFECT_TMP-defect模板)
  1828. int nBinningtype-模板binning类型(1-binning1*1,2-binning2*2,3-binning3*3,4-binning4*4)
  1829. char filepath-模板绝对路径
  1830. Out: 无
  1831. * 返 回 值:int
  1832. 0 - 成功
  1833. 非0 - 失败
  1834. * 备 注:建议使用HBI_DownloadTemplateByType替换。
  1835. *********************************************************/
  1836. HBI_FPD_DLL int __stdcall HBI_DownloadTemplate(void *handle, DOWNLOAD_FILE *downloadfile);
  1837. /*********************************************************
  1838. * No: No062
  1839. * Function Name: HBI_DownloadTemplateEx
  1840. * Function Description: // Download calibration template
  1841. * Parameter Description:
  1842. In: void *handle // unsigned handle pointer
  1843. DOWNLOAD_MODE *downloadmode - Download template file link list pointer
  1844. DOWNLOAD_FILE *downloadfile - Template file object pointer
  1845. emUPLOAD_FILE_TYPE emfiletype-Template type(OFFSET_TMP-offset template.GAIN_TMP-gain template,DEFECT_TMP-defect template)
  1846. int nBinningtype-template binning type(1-binning1*1,2-binning2*2,3-binning3*3,4-binning4*4)
  1847. char filepath-Template absolute path
  1848. Out: Null
  1849. * Return Value:
  1850. int // 0: Success
  1851. // Non-0: Failure
  1852. * Comment:
  1853. * 编 号: No062
  1854. * 函 数 名: HBI_DownloadTemplateEx
  1855. * 功能描述: 下载矫正模板
  1856. * 参数说明:
  1857. In: void *handle - 句柄(无符号指针)
  1858. DOWNLOAD_MODE *downloadmode - 下载模板文件链表指针
  1859. DOWNLOAD_FILE *downloadfile - 下载模板文件对象指针
  1860. emUPLOAD_FILE_TYPE emfiletype-模板类型(OFFSET_TMP-offset模板.GAIN_TMP-gain模板,DEFECT_TMP-defect模板)
  1861. int nBinningtype-模板binning类型(1-binning1*1,2-binning2*2,3-binning3*3,4-binning4*4)
  1862. char filepath-模板绝对路径
  1863. Out: 无
  1864. * 返 回 值:int
  1865. 0 - 成功
  1866. 非0 - 失败
  1867. * 备 注:
  1868. *********************************************************/
  1869. HBI_FPD_DLL int __stdcall HBI_DownloadTemplateEx(void *handle, DOWNLOAD_MODE *downloadmode);
  1870. /*********************************************************
  1871. * No: No063
  1872. * Function Name: HBI_DownloadTemplateByType
  1873. * Function Description: // Download calibration template by template type
  1874. * Parameter Description:
  1875. In: void *handle // unsigned handle pointer
  1876. int infiletype //Download file types 0-gain template, 1-defect template, 2-offset template, others - not supported.
  1877. Out: Null
  1878. * Return Value:
  1879. int // 0: Success
  1880. // Non-0: Failure
  1881. * Comment:
  1882. * 编 号: No063
  1883. * 函 数 名: HBI_DownloadTemplateByType
  1884. * 功能描述: 按照类型默认下载指定矫正模板文件
  1885. * 参数说明:
  1886. In: void *handle - 句柄(无符号指针)
  1887. int infiletype - 下载文件类型0-gain模板,1-defect模板,2-offset模板,其他-不支持
  1888. Out: 无
  1889. * 返 回 值:int
  1890. 0 - 成功
  1891. 非0 - 失败
  1892. * 备 注:
  1893. *********************************************************/
  1894. HBI_FPD_DLL int __stdcall HBI_DownloadTemplateByType(void *handle, int infiletype);
  1895. /*********************************************************
  1896. * No: No064
  1897. * Function Name: HBI_StopDownloadTemplate
  1898. * Function Description: // Stop download calibration template
  1899. * Parameter Description:
  1900. In: void *handle // unsigned handle pointer
  1901. Out: Null
  1902. * Return Value: int
  1903. // 0: Success
  1904. // Non-0: Failure
  1905. * Comment:
  1906. * 编 号: No064
  1907. * 函 数 名: HBI_StopDownloadTemplate
  1908. * 功能描述: 停止下载矫正模板
  1909. * 参数说明:
  1910. In: void *handle - 句柄(无符号指针)
  1911. Out: 无
  1912. * 返 回 值:int
  1913. 0 - 成功
  1914. 非0 - 失败
  1915. * 备 注:
  1916. *********************************************************/
  1917. HBI_FPD_DLL int __stdcall HBI_StopDownloadTemplate(void *handle);
  1918. /*********************************************************
  1919. * No: No065
  1920. * Function Name: HBI_UpgradeFirmware
  1921. * Function Description: Update firmware information or wireless embedded software
  1922. * Parameter Description:
  1923. In: void *handle // unsigned handle pointer
  1924. char *binfile - Bin file path
  1925. int filetype - 0: FPGA software, 1: Embedded software
  1926. Out: Null
  1927. * Return Value: int
  1928. // 0: Success
  1929. // Non-0: Failure
  1930. * Comment:
  1931. * 编 号: No065
  1932. * 函 数 名: HBI_UpgradeFirmware
  1933. * 功能描述: 升级固件信息或无线嵌入式软件
  1934. * 参数说明:
  1935. In: void *handle - 句柄(无符号指针)
  1936. char *binfile - bin文件路径
  1937. int filetype - 0:FPGA软件,1:Embedded软件,2-pcie软件
  1938. Out: 无
  1939. * 返 回 值:int
  1940. 0 - 成功
  1941. 非0 - 失败
  1942. * 备 注:
  1943. *********************************************************/
  1944. HBI_FPD_DLL int __stdcall HBI_UpgradeFirmware(void *handle, char *binfile, int filetype=0);
  1945. /*********************************************************
  1946. * No: No066
  1947. * Function Name: HBI_StopUpdateFirmware
  1948. * Function Description: Stop updating firmware
  1949. * Parameter Description:
  1950. In: void *handle // unsigned handle pointer
  1951. Out: Null
  1952. * Return Value: int
  1953. // 0: Success
  1954. // Non-0: Failure
  1955. * Comment:
  1956. * 编 号: No066
  1957. * 函 数 名: HBI_StopUpdateFirmware
  1958. * 功能描述: 停止更新固件
  1959. * 参数说明:
  1960. In: void *handle - 句柄(无符号指针)
  1961. out:无
  1962. * 返 回 值:int
  1963. 0 - 成功
  1964. 非0 - 失败
  1965. * 备 注:
  1966. *********************************************************/
  1967. HBI_FPD_DLL int __stdcall HBI_StopUpdateFirmware(void *handle);
  1968. /*********************************************************
  1969. * No: No067
  1970. * Function Name: HBI_Dumping
  1971. * Function Name: Clear command
  1972. * Parameter Description:
  1973. In: void *handle // unsigned handle pointer
  1974. Out: Null
  1975. * Return Value: int
  1976. // 0: Success
  1977. // Non-0: Failure
  1978. * Comment:
  1979. * 编 号: No067
  1980. * 函 数 名: HBI_Dumping
  1981. * 功能描述: 清空指令
  1982. * 参数说明:
  1983. In: void *handle - 句柄(无符号指针)
  1984. Out: 无
  1985. * 返 回 值:int
  1986. 0 - 成功
  1987. 非0 - 失败
  1988. * 备 注:
  1989. *********************************************************/
  1990. HBI_FPD_DLL int __stdcall HBI_Dumping(void *handle);
  1991. /*********************************************************
  1992. * No: No068
  1993. * Function Name: HBI_GetSysParamCfg
  1994. * Function Description: Read back the system RAM/ROM parameters, asynchronous events, and feed back the parameters in the callback function
  1995. * Parameter Description:
  1996. In: void *handle - unsigned handle pointer
  1997. int cmd - rom or ram
  1998. int type - user or admin
  1999. Out: Null
  2000. * Return Value:int
  2001. 0: Success
  2002. Non-0: Failure
  2003. * Comment:
  2004. * 编 号: No068
  2005. * 函 数 名: HBI_GetSysParamCfg
  2006. * 功能描述: 回读系统RAM/ROM参数,异步事件,在参数在回调函数中反馈
  2007. * 参数说明:
  2008. In: void *handle - 句柄(无符号指针)
  2009. int cmd - rom or ram
  2010. int type - user or admin
  2011. Out: 无
  2012. * 返 回 值:int
  2013. 0 - 成功
  2014. 非0 - 失败
  2015. * 备 注:
  2016. *********************************************************/
  2017. HBI_FPD_DLL int __stdcall HBI_GetSysParamCfg(void *handle, int cmd, int type);
  2018. /*********************************************************
  2019. * No: No069
  2020. * Function Name: HBI_SetSysParamCfg
  2021. * Function Description: Set system RAM/ROM parameters
  2022. * Parameter Description:
  2023. In: void *handle - unsigned handle pointer
  2024. int cmd -
  2025. int type -
  2026. RegCfgInfo* pRegCfg -
  2027. Out: Null
  2028. * Return Value:int
  2029. 0: Success
  2030. Non-0: Failure
  2031. * Comment:
  2032. * 编 号: No069
  2033. * 函 数 名: HBI_SetSysParamCfg
  2034. * 功能描述: 配置系统RAM/ROM参数
  2035. * 参数说明:
  2036. In: void *handle - 句柄(无符号指针)
  2037. int cmd -
  2038. int type -
  2039. RegCfgInfo* pRegCfg -
  2040. Out: 无
  2041. * 返 回 值:int
  2042. 0 - 成功
  2043. 非0 - 失败
  2044. * 备 注:
  2045. *********************************************************/
  2046. HBI_FPD_DLL int __stdcall HBI_SetSysParamCfg(void *handle, int cmd, int type, RegCfgInfo* pRegCfg);
  2047. /*********************************************************
  2048. * No: No070
  2049. * Function Name: HBI_SetGigabitEther
  2050. * Function Description: Set network information parameters
  2051. * Parameter Description:
  2052. In: void *handle - unsigned handle pointer
  2053. EtherInfo* pEther,refer to <<HbiType.h>>。
  2054. Out:None
  2055. * Return Value:int
  2056. 0: Success
  2057. Non-0: Failure
  2058. * Comment:
  2059. * 编 号: No070
  2060. * 函 数 名: HBI_SetGigabitEther
  2061. * 功能描述: 设置网络信息参数
  2062. * 参数说明:
  2063. In: void *handle - 句柄(无符号指针)
  2064. EtherInfo* pEther,见HbiType.h。
  2065. Out:无
  2066. * 返 回 值:int
  2067. 0 - 成功
  2068. 非0 - 失败
  2069. * 备 注:
  2070. *********************************************************/
  2071. HBI_FPD_DLL int __stdcall HBI_SetGigabitEther(void *handle, EtherInfo* pEther);
  2072. /*********************************************************
  2073. * No: No071
  2074. * Function Name: HBI_RetransMissPacket
  2075. * Function Description: Single packet loss retransmission
  2076. * Parameter Description:
  2077. In: void *handle - unsigned handle pointer
  2078. Out: Null
  2079. * Return Value:int
  2080. 0: Success
  2081. Non-0: Failure
  2082. * Comment:
  2083. * 编 号: No071
  2084. * 函 数 名: HBI_RetransMissPacket
  2085. * 功能描述: 单包丢包重传
  2086. * 参数说明:
  2087. In: void *handle - 句柄(无符号指针)
  2088. Out: 无
  2089. * 返 回 值:int
  2090. 0 - 成功
  2091. 非0 - 失败
  2092. * 备 注:
  2093. *********************************************************/
  2094. HBI_FPD_DLL int __stdcall HBI_RetransMissPacket(void *handle);
  2095. /*********************************************************
  2096. * No: No072
  2097. * Function Name: HBI_RetransMissFrame
  2098. * Function Description: Entire frame retransmission
  2099. * Parameter Description:
  2100. In: void *handle - unsigned handle pointer
  2101. Out: Null
  2102. * Return Value:int
  2103. 0: Success
  2104. Non-0: Failure
  2105. * Comment:
  2106. * 编 号: No072
  2107. * 函 数 名: HBI_RetransMissFrame
  2108. * 功能描述: 整帧重传
  2109. * 参数说明:
  2110. In: void *handle - 句柄(无符号指针)
  2111. Out: 无
  2112. * 返 回 值:int
  2113. 0 - 成功
  2114. 非0 - 失败
  2115. * 备 注:
  2116. *********************************************************/
  2117. HBI_FPD_DLL int __stdcall HBI_RetransMissFrame(void *handle);
  2118. /*********************************************************
  2119. * No: No073
  2120. * Function Name: HBI_IsConnect
  2121. * Function Description: Determine whether the detector is connected
  2122. * Parameter Description:
  2123. In: void *handle - unsigned handle pointer
  2124. * Return Value:int
  2125. 1 - connect
  2126. 0 - disconnect
  2127. * Comment:
  2128. * 编 号: No073
  2129. * 函 数 名: HBI_IsConnect
  2130. * 功能描述: 判断平板是为连接状态
  2131. * 参数说明:
  2132. In: void *handle - 句柄(无符号指针)
  2133. * 返 回 值:int
  2134. 1 - 连接
  2135. 0 - 断开
  2136. * 备 注:
  2137. *********************************************************/
  2138. HBI_FPD_DLL int __stdcall HBI_IsConnect(void *handle);
  2139. /*********************************************************
  2140. * No: No074
  2141. * Function Name: HBI_GetCurFPDStatus
  2142. * Function Description: Get the current status of the detector
  2143. * Parameter Description:
  2144. In: void *handle - unsigned handle pointer
  2145. Out: Null
  2146. * Return Value:int
  2147. 0 - idle status,Idle state
  2148. 1 - busy status,Busy state,Reject the operation
  2149. * Comment:
  2150. * 编 号: No074
  2151. * 函 数 名: HBI_GetCurFPDStatus
  2152. * 功能描述: 获取平板当前状态
  2153. * 参数说明:
  2154. In: void *handle - 句柄(无符号指针)
  2155. Out: 无
  2156. * 返 回 值:int
  2157. 0 - idle status,表示可以执行该操作
  2158. 1 - busy status,表示状态繁忙中,拒绝执行该操作
  2159. * 备 注:
  2160. *********************************************************/
  2161. HBI_FPD_DLL int __stdcall HBI_GetCurFPDStatus(void *handle);
  2162. /*********************************************************
  2163. * No: No075
  2164. * Function Name: HBI_SetCapacity
  2165. * Function Description: Set buffer capacity (size)
  2166. * Parameter Description:
  2167. In: void *handle - unsigned handle pointer
  2168. unsigned int nframesize - The number of frames that can be stored,
  2169. The buffer size is equal to the frame size multiplied by the number of frames。
  2170. Out: Null
  2171. * Return Value:int
  2172. 0: Success
  2173. Non-0: Failure,Reference error code ‘HbiError.h'
  2174. * Comment:
  2175. * 编 号: No075
  2176. * 函 数 名: HBI_SetCapacity
  2177. * 功能描述: 设置缓冲区容量(大小)
  2178. * 参数说明:
  2179. In: void *handle - 句柄(无符号指针)
  2180. unsigned int nframesize - 可存储的帧数,
  2181. 缓冲区大小等于帧大小乘以帧数。
  2182. Out: 无
  2183. * 返 回 值:int
  2184. 0 成功
  2185. 非0 失败,见HbiError.h错误码
  2186. * 备 注:
  2187. *********************************************************/
  2188. HBI_FPD_DLL int __stdcall HBI_SetCapacity(void *handle, unsigned int nframesize);
  2189. /*********************************************************
  2190. * No: No076
  2191. * Function Name: HBI_SetRawStyle
  2192. * Function Description: Set whether to save the image and the image file format
  2193. * Parameter Description:
  2194. In: void *handle - unsigned handle pointer
  2195. bool bsave - Save or display,false:Display without saving,true:Save Don't Display
  2196. bool bsingleraw - Save in a single file or multiple files, false: 1 frame data can be saved in one file, true: multiple frame data can be saved in one file
  2197. Out: Null
  2198. * Return Value:int
  2199. 0: Success
  2200. Non-0: Failure
  2201. * Comment:
  2202. * 编 号: No076
  2203. * 函 数 名: HBI_SetRawStyle
  2204. * 功能描述: 设置是否保存图像以及图像文件形式
  2205. * 参数说明:
  2206. In: void *handle - 句柄(无符号指针)
  2207. bool bsave - 保存拟或显示,false:显示不保存,true:保存不显示
  2208. bool bsingleraw - 保存在单个文件或多个文件,false:1帧数据保存1个文件,true:多帧数据可保存在一个文件中
  2209. Out: 无
  2210. * 返 回 值:int
  2211. 0 - 成功
  2212. 非0 - 失败
  2213. * 备 注:
  2214. *********************************************************/
  2215. HBI_FPD_DLL int __stdcall HBI_SetRawStyle(void *handle, bool bsave, bool bsingleraw = false);
  2216. /*********************************************************
  2217. * No: No077
  2218. * Function Name: HBI_SetAqcProperty
  2219. * Function Description: Set collection properties
  2220. * Parameter Description:
  2221. In: void *handle - unsigned handle pointer
  2222. FPD_AQC_MODE _mode - Acquisition mode and parameters
  2223. Out: Null
  2224. * Return Value:int
  2225. 0: Success
  2226. Non-0: Failure
  2227. * Comment:
  2228. * 编 号: No077
  2229. * 函 数 名: HBI_SetAqcProperty
  2230. * 功能描述: 设置采集属性
  2231. * 参数说明:
  2232. In: void *handle - 句柄(无符号指针)
  2233. FPD_AQC_MODE _mode - 采集模式以及参数
  2234. Out: 无
  2235. * 返 回 值:int
  2236. 0 - 成功
  2237. 非0 - 失败
  2238. * 备 注:
  2239. *********************************************************/
  2240. HBI_FPD_DLL int __stdcall HBI_SetAqcProperty(void *handle, FPD_AQC_MODE _mode);
  2241. /*********************************************************
  2242. * No: No078
  2243. * Function Name: HBI_SetDebugMode
  2244. * Function Description: Switch debugging mode and production mode - used to debug PCIE interface
  2245. * Parameter Description:
  2246. In: void *handle - unsigned handle pointer
  2247. int mode - 0: production mode, 1-PCIE debugging mode
  2248. Out: Null
  2249. * Return Value:int
  2250. 0: Success
  2251. Non-0: Failure
  2252. * Comment:Debug PCIE interface
  2253. * 编 号: No078
  2254. * 函 数 名: HBI_SetDebugMode
  2255. * 功能描述: 切换调试模式和生产模式-用于调试PCIE接口
  2256. * 参数说明:
  2257. In: void *handle - 句柄(无符号指针)
  2258. int mode - 0:生产模式,1-PCIE调试模式
  2259. Out: 无
  2260. * 返 回 值:int
  2261. 0 - 成功
  2262. 非0 - 失败
  2263. * 备 注:
  2264. *********************************************************/
  2265. HBI_FPD_DLL int __stdcall HBI_SetDebugMode(void *handle, int mode);
  2266. /*********************************************************
  2267. * No: No079
  2268. * Function Name: HBI_PcieSendBuff
  2269. * Function Description: Send data to PCIE address, valid only in PCIE debugging mode
  2270. * Parameter Description:
  2271. In: void *handle - unsigned handle pointer
  2272. ePCIE_WR_TYPE etype - 'Bar' address or 'ddr' address type
  2273. long addr - 'Bar' address or 'ddr' address
  2274. unsigned char *szSndBuff - Write Buffer
  2275. int nlen - Buffer data length
  2276. Out: Null
  2277. * Return Value:int
  2278. 0: Success
  2279. Non-0: Failure
  2280. * Comment:
  2281. * 编 号: No079
  2282. * 函 数 名: HBI_PcieSendBuff
  2283. * 功能描述: 向PCIE地址发送数据,仅限于PCIE调试模式下有效
  2284. * 参数说明:
  2285. In: void *handle - 句柄(无符号指针)
  2286. ePCIE_WR_TYPE etype - bar地址或ddr地址类型
  2287. long addr - ar地址或ddr地址
  2288. unsigned char *szSndBuff - 写入缓冲区
  2289. int nlen - 缓冲区数据长度
  2290. Out: 无
  2291. * 返 回 值:int
  2292. 0 - 成功
  2293. 非0 - 失败
  2294. * 备 注:
  2295. *********************************************************/
  2296. HBI_FPD_DLL int __stdcall HBI_PcieSendBuff(void *handle, ePCIE_WR_TYPE etype, long addr, unsigned char *szSndBuff, int nlen);
  2297. /*********************************************************
  2298. * No: No080
  2299. * Function Name: HBI_PcieRecvBuff
  2300. * Function Description: Read PCIE address data, valid only in PCIE debug mode
  2301. * Parameter Description:
  2302. In: void *handle - unsigned handle pointer
  2303. ePCIE_WR_TYPE etype - 'Bar' address or 'ddr' address type
  2304. long addr - 'Bar' address or 'ddr' address
  2305. unsigned char *szRcvbuff - Receive Buffer
  2306. int nlen - Buffer data length
  2307. Out: Null
  2308. * Return Value:int
  2309. 0: Success
  2310. Non-0: Failure
  2311. * Comment:
  2312. * 编 号: No080
  2313. * 函 数 名: HBI_PcieRecvBuff
  2314. * 功能描述: 读取PCIE地址数据,仅限于PCIE调试模式下有效
  2315. * 参数说明:
  2316. In: void *handle - 句柄(无符号指针)
  2317. ePCIE_WR_TYPE etype - bar地址或ddr地址类型
  2318. long addr - ar地址或ddr地址
  2319. unsigned char *szRcvbuff - 接收缓冲区
  2320. int nlen - 缓冲区数据长度
  2321. Out: 无
  2322. * 返 回 值:int
  2323. 0 - 成功
  2324. 非0 - 失败
  2325. * 备 注:
  2326. *********************************************************/
  2327. HBI_FPD_DLL int __stdcall HBI_PcieRecvBuff(void *handle, ePCIE_WR_TYPE _type, long addr, unsigned char *szRcvbuff, int nlen);
  2328. /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  2329. // Distributed generation template is used for template testing. For integration, please refer to the interface of rapid generation template
  2330. // 分布生成模板,用于模板测试,集成请参考快速生成模板接口
  2331. /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  2332. /*********************************************************
  2333. * No: No081
  2334. * Function Name: HBI_InitOffsetMode
  2335. * Function Description: Initialize dark field template
  2336. * Parameter Description:
  2337. In: void *handle - unsigned handle pointer
  2338. CALIBRATE_INPUT_PARAM calibrate_param,refer to <<HbiType.h>>。
  2339. Out: Null
  2340. * Return Value:int
  2341. 0: Success
  2342. Non-0: Failure
  2343. * Comment:
  2344. * 编 号: No081
  2345. * 函 数 名: HBI_InitOffsetMode
  2346. * 功能描述: 初始化暗场模板
  2347. * 参数说明:
  2348. In: void *handle - 句柄(无符号指针)
  2349. CALIBRATE_INPUT_PARAM calibrate_param,见HbiType.h。
  2350. Out: 无
  2351. * 返 回 值:int
  2352. 0 - 成功
  2353. 非0 - 失败
  2354. * 备 注:
  2355. *********************************************************/
  2356. HBI_FPD_DLL int __stdcall HBI_InitOffsetMode(void *handle, CALIBRATE_INPUT_PARAM calibrate_param);
  2357. /*********************************************************
  2358. * No: No082
  2359. * Function Name: HBI_InsertOffsetMode
  2360. * Function Description: Insert data into offset correction model
  2361. * Parameter Description:
  2362. In: void *handle - unsigned handle pointer
  2363. int group_id - group ID
  2364. char *filepath - File path
  2365. Out: Null
  2366. * Return Value:int
  2367. 0: Success
  2368. Non-0: Failure
  2369. * Comment:
  2370. * 编 号: No082
  2371. * 函 数 名: HBI_InsertOffsetMode
  2372. * 功能描述: 向offset矫正模型中插入数据
  2373. * 参数说明:
  2374. In: void *handle - 句柄(无符号指针)
  2375. int group_id - 组ID
  2376. char *filepath - 文件路径
  2377. Out: 无
  2378. * 返 回 值:int
  2379. 0 - 成功
  2380. 非0 - 失败
  2381. * 备 注:
  2382. *********************************************************/
  2383. HBI_FPD_DLL int __stdcall HBI_InsertOffsetMode(void *handle, int group_id, char *filepath);
  2384. /*********************************************************
  2385. * No: No083
  2386. * Function Name: HBI_ClearOffsetMode
  2387. * Function Description: Clear offset correction model
  2388. * Parameter Description:
  2389. In: void *handle - unsigned handle pointer
  2390. Out: Null
  2391. * Return Value:int
  2392. 0: Success
  2393. Non-0: Failure
  2394. * Comment:
  2395. * 编 号: No083
  2396. * 函 数 名: HBI_ClearOffsetMode
  2397. * 功能描述: 清空offset矫正模型
  2398. * 参数说明:
  2399. In: void *handle - 句柄(无符号指针)
  2400. Out: 无
  2401. * 返 回 值:int
  2402. 0 - 成功
  2403. 非0 - 失败
  2404. * 备 注:
  2405. *********************************************************/
  2406. HBI_FPD_DLL int __stdcall HBI_ClearOffsetMode(void *handle);
  2407. /*********************************************************
  2408. * No: No084
  2409. * Function Name: HBI_GenerateOffsetTemp
  2410. * Function Description: Generate offset template
  2411. * Parameter Description:
  2412. In: void *handle - unsigned handle pointer
  2413. int raw_num - Number of dark field pictures
  2414. int bprevew - Whether to generate preview template, 1-generate, 0-do not generate
  2415. Out: Null
  2416. * Return Value:int
  2417. 0: Success
  2418. Non-0: Failure
  2419. * Comment:
  2420. * 编 号: No084
  2421. * 函 数 名: HBI_GenerateOffsetTemp
  2422. * 功能描述: 生成offset模板
  2423. * 参数说明:
  2424. In: void *handle - 句柄(无符号指针)
  2425. int raw_num - 暗场图个数
  2426. int bprevew - 是否生成preview模板,1-生成,0-不生成
  2427. Out: 无
  2428. * 返 回 值:int
  2429. 0 - 成功
  2430. 非0 - 失败
  2431. * 备 注:
  2432. *********************************************************/
  2433. HBI_FPD_DLL int __stdcall HBI_GenerateOffsetTemp(void *handle, int raw_num, int bprevew = 0);
  2434. /*********************************************************
  2435. * No: No085
  2436. * Function Name: HBI_InitGainMode
  2437. * Function Description: Initialize gain correction model
  2438. * Parameter Description:
  2439. In: void *handle - unsigned handle pointer
  2440. CALIBRATE_INPUT_PARAM calibrate_param -Correction parameters
  2441. Out: Null
  2442. * Return Value:int
  2443. 0: Success
  2444. Non-0: Failure
  2445. * Comment:
  2446. * 编 号: No085
  2447. * 函 数 名: HBI_InitGainMode
  2448. * 功能描述: 初始化gain矫正模型
  2449. * 参数说明:
  2450. In: void *handle - 句柄(无符号指针)
  2451. CALIBRATE_INPUT_PARAM calibrate_param - 矫正参数
  2452. Out: 无
  2453. * 返 回 值:int
  2454. 0 - 成功
  2455. 非0 - 失败
  2456. * 备 注:
  2457. *********************************************************/
  2458. HBI_FPD_DLL int __stdcall HBI_InitGainMode(void *handle, CALIBRATE_INPUT_PARAM calibrate_param);
  2459. /*********************************************************
  2460. * No: No086
  2461. * Function Name: HBI_InsertGainMode
  2462. * Function Description: Insert data into the gain correction model
  2463. * Parameter Description:
  2464. In: void *handle - unsigned handle pointer
  2465. int group_id - group ID
  2466. char *filepath - File path
  2467. Out: Null
  2468. * Return Value:int
  2469. 0: Success
  2470. Non-0: Failure
  2471. * Comment:
  2472. * 编 号: No086
  2473. * 函 数 名: HBI_InsertGainMode
  2474. * 功能描述: 向gain矫正模型中插入数据
  2475. * 参数说明:
  2476. In: void *handle - 句柄(无符号指针)
  2477. int group_id - 组ID
  2478. char *filepath - 文件路径
  2479. Out: 无
  2480. * 返 回 值:int
  2481. 0 - 成功
  2482. 非0 - 失败
  2483. * 备 注:
  2484. *********************************************************/
  2485. HBI_FPD_DLL int __stdcall HBI_InsertGainMode(void *handle, int group_id, char *filepath);
  2486. /*********************************************************
  2487. * No: No087
  2488. * Function Name: HBI_ClearGainMode
  2489. * Function Description: Empty gain correction model
  2490. * Parameter Description:
  2491. In: void *handle - unsigned handle pointer
  2492. Out: Null
  2493. * Return Value:int
  2494. 0: Success
  2495. Non-0: Failure
  2496. * Comment:
  2497. * 编 号: No087
  2498. * 函 数 名: HBI_ClearGainMode
  2499. * 功能描述: 清空gain矫正模型
  2500. * 参数说明:
  2501. In: void *handle - 句柄(无符号指针)
  2502. Out: 无
  2503. * 返 回 值:int
  2504. 0 - 成功
  2505. 非0 - 失败
  2506. * 备 注:
  2507. *********************************************************/
  2508. HBI_FPD_DLL int __stdcall HBI_ClearGainMode(void *handle);
  2509. /*********************************************************
  2510. * No: No088
  2511. * Function Name: HBI_GenerateGainTemp
  2512. * Function Description: Generate gain template
  2513. * Parameter Description:
  2514. In: void *handle - unsigned handle pointer
  2515. int group_sum - groups
  2516. int per_group_num - Generate the number of pictures in each group of gain template
  2517. int bprevew - Whether to generate preview template, 1-generate, 0-do not generate
  2518. Out: Null
  2519. * Return Value:int
  2520. 0: Success
  2521. Non-0: Failure
  2522. * Comment:
  2523. * 编 号: No088
  2524. * 函 数 名: HBI_GenerateGainTemp
  2525. * 功能描述: 生成gain模板
  2526. * 参数说明:
  2527. In: void *handle - 句柄(无符号指针)
  2528. int group_sum - 组数
  2529. int per_group_num - 每组包含图片个数
  2530. int bprevew - 是否生成preview模板,1-生成,0-不生成
  2531. Out: 无
  2532. * 返 回 值:int
  2533. 0 - 成功
  2534. 非0 - 失败
  2535. * 备 注:
  2536. *********************************************************/
  2537. HBI_FPD_DLL int __stdcall HBI_GenerateGainTemp(void *handle, int group_sum, int per_group_num, int bprevew = 0);
  2538. /*********************************************************
  2539. * No: No089
  2540. * Function Name: HBI_InitDefectMode
  2541. * Function Description: Initialize the defect correction model
  2542. * Parameter Description:
  2543. In: void *handle - unsigned handle pointer
  2544. CALIBRATE_INPUT_PARAM calibrate_param - Correction parameters
  2545. Out: Null
  2546. * Return Value:int
  2547. 0: Success
  2548. Non-0: Failure
  2549. * Comment:
  2550. * 编 号: No089
  2551. * 函 数 名: HBI_InitDefectMode
  2552. * 功能描述: 初始化defect矫正模型
  2553. * 参数说明:
  2554. In: void *handle - 句柄(无符号指针)
  2555. CALIBRATE_INPUT_PARAM calibrate_param - 矫正参数
  2556. Out: 无
  2557. * 返 回 值:int
  2558. 0 - 成功
  2559. 非0 - 失败
  2560. * 备 注:
  2561. *********************************************************/
  2562. HBI_FPD_DLL int __stdcall HBI_InitDefectMode(void *handle, CALIBRATE_INPUT_PARAM calibrate_param);
  2563. /*********************************************************
  2564. * No: No090
  2565. * Function Name: HBI_InsertDefectMode
  2566. * Function Description: Insert data into the defect correction model
  2567. * Parameter Description:
  2568. In: void *handle - unsigned handle pointer
  2569. int group_id - group ID
  2570. char *filepath - File path
  2571. Out: Null
  2572. * Return Value:int
  2573. 0: Success
  2574. Non-0: Failure
  2575. * Comment:
  2576. * 编 号: No090
  2577. * 函 数 名: HBI_InsertDefectMode
  2578. * 功能描述: 向defect矫正模型中插入数据
  2579. * 参数说明:
  2580. In: void *handle - 句柄(无符号指针)
  2581. int group_id - 组ID
  2582. char *filepath - 文件路径
  2583. Out: 无
  2584. * 返 回 值:int
  2585. 0 - 成功
  2586. 非0 - 失败
  2587. * 备 注:
  2588. *********************************************************/
  2589. HBI_FPD_DLL int __stdcall HBI_InsertDefectMode(void *handle, int group_id, char *filepath);
  2590. /*********************************************************
  2591. * No: No091
  2592. * Function Name: HBI_ClearDefectMode
  2593. * Function Description: Empty the defect correction model
  2594. * Parameter Description:
  2595. In: void *handle - unsigned handle pointer
  2596. Out: Null
  2597. * Return Value:int
  2598. 0: Success
  2599. Non-0: Failure
  2600. * Comment:
  2601. * 编 号: No091
  2602. * 函 数 名: HBI_ClearDefectMode
  2603. * 功能描述: 清空defect矫正模型
  2604. * 参数说明:
  2605. In: void *handle - 句柄(无符号指针)
  2606. Out: 无
  2607. * 返 回 值:int
  2608. 0 - 成功
  2609. 非0 - 失败
  2610. * 备 注:
  2611. *********************************************************/
  2612. HBI_FPD_DLL int __stdcall HBI_ClearDefectMode(void *handle);
  2613. /*********************************************************
  2614. * No: No092
  2615. * Function Name: HBI_GenerateDefectTemp
  2616. * Function Description: Generate defect template
  2617. * Parameter Description:
  2618. In: void *handle - unsigned handle pointer
  2619. int group_sum - groups
  2620. int per_group_num - Number of pictures in each group
  2621. int bprevew - Whether to generate preview template, 1-generate, 0-do not generate
  2622. Out: Null
  2623. * Return Value:int
  2624. 0: Success
  2625. Non-0: Failure
  2626. * Comment:
  2627. * 编 号: No092
  2628. * 函 数 名: HBI_GenerateDefectTemp
  2629. * 功能描述: 生成defect模板
  2630. * 参数说明:
  2631. In: void *handle - 句柄(无符号指针)
  2632. int group_sum - 组数
  2633. int per_group_num - 每组包含图片个数
  2634. int bprevew - 是否生成preview模板,1-生成,0-不生成
  2635. Out: 无
  2636. * 返 回 值:int
  2637. 0 - 成功
  2638. 非0 - 失败
  2639. * 备 注:
  2640. *********************************************************/
  2641. HBI_FPD_DLL int __stdcall HBI_GenerateDefectTemp(void *handle, int group_sum, int per_group_num, int bprevew = 0);
  2642. /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  2643. // 文件工作目录地址管理,暂未实现
  2644. /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  2645. /////*********************************************************
  2646. ////* No: No093
  2647. ////* Function Name: HBI_SetFileDirectory
  2648. ////* Function Description: Set file storage path
  2649. ////* Parameter Description:
  2650. //// In: void *handle - unsigned handle pointer
  2651. //// HBI_FILE_TYPE filetype - File type, enumeration class
  2652. //// 0 IMAGE_FILE
  2653. //// 1 TEMPLATE_FILE
  2654. //// char *dirpath - File path
  2655. //// Out: Null
  2656. ////* Return Value:int
  2657. //// 0: Success
  2658. //// Non-0: Failure
  2659. ////* Comment:
  2660. ////* 编 号: No093
  2661. ////* 函 数 名: HBI_SetFileDirectory
  2662. ////* 功能描述: 设置文件存储路径
  2663. ////* 参数说明:
  2664. //// In: void *handle - 句柄(无符号指针)
  2665. //// HBI_FILE_TYPE filetype - 文件类型,枚举类
  2666. //// 0 IMAGE_FILE
  2667. //// 1 TEMPLATE_FILE
  2668. //// char *dirpath - 文件路径
  2669. //// Out: 无
  2670. ////* 返 回 值:int
  2671. //// 0 - 成功
  2672. //// 1 - 失败
  2673. ////* 备 注:
  2674. ////*********************************************************/
  2675. ////HBI_FPD_DLL int __stdcall HBI_SetFileDirectory(void *handle, HBI_FILE_TYPE filetype, char *dirpath);
  2676. /*********************************************************
  2677. * No: No094
  2678. * Function Name: HBI_GetFileDirectory
  2679. * Function Description: Get the current file storage path
  2680. * Parameter Description:
  2681. In: void *handle - unsigned handle pointer
  2682. HBI_FILE_TYPE filetype - File type, enumeration class
  2683. 0 IMAGE_ FILE - image file directory
  2684. 1 TEMPLATE_ FILE - Calibration template file directory (refers to gain and defect template file path)
  2685. 2 TEMPLATE_ IMG-calibration template middle image data file directory
  2686. Out: Null
  2687. * Return Value:int
  2688. NULL - Failure
  2689. char* - return path
  2690. * Comment:
  2691. * 编 号: No094
  2692. * 函 数 名: HBI_GetFileDirectory
  2693. * 功能描述: 获取当前文件存储路径
  2694. * 参数说明:
  2695. In: void *handle - 句柄(无符号指针)
  2696. HBI_FILE_TYPE filetype - 文件类型,枚举类
  2697. 0 IMAGE_FILE-图像文件目录
  2698. 1 TEMPLATE_FILE-校准模板文件目录(指gain和defect模板文件路径)
  2699. 2 TEMPLATE_IMG-校准模板中间图像数据文件目录
  2700. Out: 无
  2701. * 返 回 值:int
  2702. NULL - 失败
  2703. char* - 返回路径
  2704. * 备 注:
  2705. *********************************************************/
  2706. HBI_FPD_DLL char* __stdcall HBI_GetFileDirectory(void *handle, HBI_FILE_TYPE filetype);
  2707. /*********************************************************
  2708. * No: No095
  2709. * Function Name: HBI_GetCurTempFileFullDirectory
  2710. * Function Description: Get the full directory of the current template file according to the template type
  2711. * Parameter Description:
  2712. In: void *handle - unsigned handle pointer
  2713. In: int tempType -Template type (default is 0),0-offset template;1-gain template;2-defect template;
  2714. Out: Null
  2715. * Return Value:char*
  2716. NULL - Failure
  2717. char* - Return directory path
  2718. * Comment:
  2719. * 编 号: No095
  2720. * 函 数 名: HBI_GetCurTempFileFullDirectory
  2721. * 功能描述: 根据模板类型获取当前模板文件全目录
  2722. * 参数说明:
  2723. In: void *handle - 句柄(无符号指针)
  2724. In: int tempType - 模板类型(默认为0),0-offset template;1-gain template;2-defect template;
  2725. Out: 无
  2726. * 返 回 值:char*
  2727. NULL - 失败
  2728. char* - 返回目录路径
  2729. * 备 注:
  2730. *********************************************************/
  2731. HBI_FPD_DLL char* __stdcall HBI_GetCurTempFileFullDirectory(void *handle, int temptype=0);
  2732. /*********************************************************
  2733. * No: No096
  2734. * Function Name: HBI_IsBusyNow
  2735. * Function Description: Judge whether the current SDK is being processed. The current operation is not allowed
  2736. * Parameter Description:
  2737. In: void *handle - unsigned handle pointer
  2738. eventtype - Generate template type
  2739. 1 Distribution generation template processing
  2740. 2. Rapid template generation is in progress
  2741. 3. During collection
  2742. 4. During parameter setting
  2743. Out: Null
  2744. * Return Value:int
  2745. 0 - idle status,Indicates that the operation can be performed
  2746. 1 - busy status,Indicates that the operation is refused because the status is busy
  2747. * Comment:
  2748. * 编 号: No096
  2749. * 函 数 名: HBI_IsBusyNow
  2750. * 功能描述: 判断当前SDK是否正处理中,不允许当前操作
  2751. * 参数说明:
  2752. In: void *handle - 句柄(无符号指针)
  2753. eventtype eventtype - 生成模板类型
  2754. 1 分布生成模板处理中
  2755. 2 快速生成模板处理中
  2756. 3, 采集过程中
  2757. 4, 设置参数过程中
  2758. Out: 无
  2759. * 返 回 值:int
  2760. 0 - idle status,表示可以执行该操作
  2761. 1 - busy status,表示状态繁忙中,拒绝执行该操作
  2762. * 备 注:
  2763. *********************************************************/
  2764. HBI_FPD_DLL int __stdcall HBI_IsBusyNow(void *handle, int eventtype);
  2765. /*********************************************************
  2766. * No: No097
  2767. * Function Name: HBI_SetCuttingImageRect
  2768. * Function Description: set rect of cutting image
  2769. * Parameter Description:
  2770. In: void *handle - unsigned handle pointer
  2771. In: CuttingImageRect *roi - The param of 'rect of cutting image'
  2772. * Return Value:int
  2773. 0: Success
  2774. Non-0: Failure
  2775. * Comment:
  2776. * 编 号: No097
  2777. * 函 数 名: HBI_SetCuttingImageRect
  2778. * 功能描述: set rect of cutting image
  2779. * 参数说明:
  2780. In: void *handle - 句柄(无符号指针)
  2781. In: CuttingImageRect *roi - The param of 'rect of cutting image'
  2782. * 返 回 值:int
  2783. 0 - 成功
  2784. 非0 - 失败
  2785. * 备 注:
  2786. *********************************************************/
  2787. HBI_FPD_DLL int __stdcall HBI_SetCuttingImageRect(void *handle, CuttingImageRect*roi);
  2788. /*********************************************************
  2789. * No: No098
  2790. * Function Name: HBI_GetCuttingImageRect
  2791. * Function Description: get rect of cutting image
  2792. * Parameter Description:
  2793. In: void *handle - unsigned handle pointer
  2794. * Return Value:CuttingImageRect*
  2795. NULL - Failure
  2796. Non-NULL - Success,The param of 'rect of cutting image'
  2797. * Comment:
  2798. * 编 号: No098
  2799. * 函 数 名: HBI_GetCuttingImageRect
  2800. * 功能描述: get rect of cutting image
  2801. * 参数说明:
  2802. In: void *handle - 句柄(无符号指针)
  2803. * 返 回 值:CuttingImageRect*
  2804. NULL - 失败
  2805. 非NULL - 成功,The param of 'rect of cutting image'
  2806. * 备 注:
  2807. *********************************************************/
  2808. HBI_FPD_DLL CuttingImageRect* __stdcall HBI_GetCuttingImageRect(void *handle);
  2809. //////////////////////////////////////////////////////////////////////////
  2810. // User Mode Development
  2811. // Mode开发接口 add by mhyang 20230327
  2812. //////////////////////////////////////////////////////////////////////////
  2813. /*********************************************************
  2814. * No: No099
  2815. * Function Name: HBI_GetCurModeList
  2816. * Function Description: Get Mode List
  2817. * Parameter Description:
  2818. In: void *handle - unsigned handle pointer
  2819. * Return Value:FPD_MODE_LIST*
  2820. NULL - Failure
  2821. Non-NULL - Success,The param of User Acquisition Mode Parameter Configuration
  2822. * Comment:
  2823. * 编 号: No099
  2824. * 函 数 名: HBI_GetCurModeList
  2825. * 功能描述: 获取Mode List
  2826. * 参数说明:
  2827. In: void *handle - 句柄(无符号指针)
  2828. * 返 回 值:FPD_MODE_LIST*
  2829. NULL - 失败
  2830. Non-NULL - 成功,用户采集Mode列表信息
  2831. * 备 注:
  2832. *********************************************************/
  2833. HBI_FPD_DLL FPD_MODE_LIST* __stdcall HBI_GetCurModeList(void* handle);
  2834. /*********************************************************
  2835. * No: No100
  2836. * Function Name: HBI_UpdateModeList
  2837. * Function Description: Update Mode List
  2838. * Parameter Description:
  2839. In: void *handle - unsigned handle pointer
  2840. FPD_MODE_LIST* modelist -User Acquisition Mode Parameter Configuration
  2841. * Return Value:int
  2842. 0: Success
  2843. Non-0: Failure
  2844. * Comment:
  2845. * 编 号: No100
  2846. * 函 数 名: HBI_UpdateModeList
  2847. * 功能描述: 更新Mode List
  2848. * 参数说明:
  2849. In: void *handle - 句柄(无符号指针)
  2850. FPD_MODE_LIST* modelist -用户采集Mode列表信息
  2851. * 返 回 值:int
  2852. 0 - 成功
  2853. 非0 - 失败
  2854. * 备 注:
  2855. *********************************************************/
  2856. HBI_FPD_DLL int __stdcall HBI_UpdateModeList(void* handle, FPD_MODE_LIST* modelist);
  2857. /*********************************************************
  2858. * No: No101
  2859. * Function Name: HBI_GetCurModeData
  2860. * Function Description: Obtain the current Mode Data
  2861. * Parameter Description:
  2862. In: void *handle - unsigned handle pointer
  2863. * Return Value:FPD_MODE_DATA*
  2864. NULL - Failure
  2865. Non-NULL - Success,The param of fpd mode data information
  2866. * Comment:
  2867. * 编 号: No101
  2868. * 函 数 名: HBI_GetCurModeData
  2869. * 功能描述: 获取当前Mode Data
  2870. * 参数说明:
  2871. In: void *handle - 句柄(无符号指针)
  2872. * 返 回 值:FPD_MODE_DATA*
  2873. NULL - 失败
  2874. 非-NULL - 成功,The param of fpd mode data information
  2875. * 备 注:
  2876. *********************************************************/
  2877. HBI_FPD_DLL FPD_MODE_DATA* __stdcall HBI_GetCurModeData(void* handle);
  2878. /*********************************************************
  2879. * No: No102
  2880. * Function Name: HBI_UpdateCurModeData
  2881. * Function Description: Update current Mode Data
  2882. * Parameter Description:
  2883. In: void *handle - unsigned handle pointer
  2884. FPD_MODE_DATA* mode -fpd mode data information
  2885. * Return Value:int
  2886. 0: Success
  2887. Non-0: Failure
  2888. * Comment:
  2889. * 编 号: No102
  2890. * 函 数 名: HBI_UpdateCurModeData
  2891. * 功能描述: 更新当前Mode Data
  2892. * 参数说明:
  2893. In: void *handle - 句柄(无符号指针)
  2894. FPD_MODE_DATA* mode -fpd mode data information
  2895. * 返 回 值:int
  2896. 0 - 成功
  2897. 非0 - 失败
  2898. * 备 注:
  2899. *********************************************************/
  2900. HBI_FPD_DLL int __stdcall HBI_UpdateCurModeData(void* handle, FPD_MODE_DATA* mode);
  2901. /*********************************************************
  2902. * No: No103
  2903. * Function Name: HBI_UpdateModeData
  2904. * Function Description: Update Mode Item Data through Mode ID
  2905. * Parameter Description:
  2906. In: void *handle - unsigned handle pointer
  2907. FPD_MODE_DATA* mode -fpd mode data information
  2908. unsigned int id - mode id
  2909. * Return Value:int
  2910. 0: Success
  2911. Non-0: Failure
  2912. * Comment:
  2913. * 编 号: No103
  2914. * 函 数 名: HBI_UpdateModeData
  2915. * 功能描述: 更新Mode项Data通过mode ID
  2916. * 参数说明:
  2917. In: void *handle - 句柄(无符号指针)
  2918. FPD_MODE_DATA* mode -fpd mode data information
  2919. unsigned int id - mode id
  2920. * 返 回 值:int
  2921. 0 - 成功
  2922. 非0 - 失败
  2923. * 备 注:
  2924. *********************************************************/
  2925. HBI_FPD_DLL int __stdcall HBI_UpdateModeData(void* handle, FPD_MODE_DATA* mode, unsigned int id = 0);
  2926. /*********************************************************
  2927. * No: No104
  2928. * Function Name: HBI_GetModeData
  2929. * Function Description: Obtain Mode Data through Mode ID
  2930. * Parameter Description:
  2931. In: void *handle - unsigned handle pointer
  2932. unsigned int id - mode id
  2933. * Return Value:int
  2934. 0: Success
  2935. Non-0: Failure
  2936. * Comment:
  2937. * 编 号: No104
  2938. * 函 数 名: HBI_GetModeData
  2939. * 功能描述: 获取Mode Data通过mode ID
  2940. * 参数说明:
  2941. In: void *handle - 句柄(无符号指针)
  2942. unsigned int id - mode id
  2943. * 返 回 值:int
  2944. 0 - 成功
  2945. 非0 - 失败
  2946. * 备 注:
  2947. *********************************************************/
  2948. HBI_FPD_DLL FPD_MODE_DATA* __stdcall HBI_GetModeData(void* handle, unsigned int id = 0);
  2949. /*********************************************************
  2950. * No: No105
  2951. * Function Name: HBI_GetModeListSize
  2952. * Function Description: Obtain the number of items for Mode
  2953. * Parameter Description:
  2954. In: void *handle - unsigned handle pointer
  2955. * Return Value:int
  2956. 0: Success
  2957. Non-0: Failure
  2958. * Comment:
  2959. * 编 号: No105
  2960. * 函 数 名: HBI_GetModeListSize
  2961. * 功能描述: 获取Mode的item数目
  2962. * 参数说明:
  2963. In: void *handle - 句柄(无符号指针)
  2964. * 返 回 值:int
  2965. 0 - 成功
  2966. 非0 - Mode列表中Mode项的个数
  2967. * 备 注:
  2968. *********************************************************/
  2969. HBI_FPD_DLL unsigned int __stdcall HBI_GetModeListSize(void* handle);
  2970. /*********************************************************
  2971. * No: No106
  2972. * Function Name: HBI_GetCurModeID
  2973. * Function Description: Obtain the current Mode ID
  2974. * Parameter Description:
  2975. In: void *handle - unsigned handle pointer
  2976. * Return Value:int
  2977. 0: Success
  2978. Non-0: Failure
  2979. * Comment:
  2980. * 编 号: No106
  2981. * 函 数 名: HBI_GetCurModeID
  2982. * 功能描述: 获取当前Mode id
  2983. * 参数说明:
  2984. In: void *handle - 句柄(无符号指针)
  2985. * 返 回 值:int
  2986. 0 - 成功
  2987. 非0 - 失败
  2988. * 备 注:
  2989. *********************************************************/
  2990. HBI_FPD_DLL int __stdcall HBI_GetCurModeID(void* handle);
  2991. /*********************************************************
  2992. * No: No107
  2993. * Function Name: HBI_SwitchUserMode
  2994. * Function Description: Switch Mode
  2995. * Parameter Description:
  2996. In: void *handle - unsigned handle pointer
  2997. unsigned int modeid - mode id
  2998. FPD_MODE_DATA *PMODEDATA - fpd mode data information
  2999. * Return Value:int
  3000. 0: Success
  3001. Non-0: Failure
  3002. * Comment:
  3003. * 编 号: No107
  3004. * 函 数 名: HBI_SwitchUserMode
  3005. * 功能描述: 切换Mode项
  3006. * 参数说明:
  3007. In: void *handle - 句柄(无符号指针)
  3008. unsigned int modeid - mode id
  3009. FPD_MODE_DATA *PMODEDATA - Mode项数据信息,可以为NULL
  3010. * 返 回 值:int
  3011. 0 - 成功
  3012. 非0 - 失败
  3013. * 备 注:
  3014. *********************************************************/
  3015. HBI_FPD_DLL int __stdcall HBI_SwitchUserMode(void* handle, unsigned int modeid = 0, FPD_MODE_DATA *PMODEDATA=NULL);
  3016. /*********************************************************
  3017. * No: No108
  3018. * Function Name: HBI_ModeExists
  3019. * Function Description: Determine whether the mode exists
  3020. * Parameter Description:
  3021. In: void *handle - unsigned handle pointer
  3022. FPD_MODE_DATA mode - fpd mode data information
  3023. * Return Value:int
  3024. 0: Success
  3025. Non-0: Failure
  3026. * Comment:
  3027. * 编 号: No108
  3028. * 函 数 名: HBI_ModeExists
  3029. * 功能描述: 判断mode的是否存在
  3030. * 参数说明:
  3031. In: void *handle - 句柄(无符号指针)
  3032. FPD_MODE_DATA mode - Mode项数据信息
  3033. * 返 回 值:int
  3034. 0 - 成功
  3035. 非0 - 失败
  3036. * 备 注:
  3037. *********************************************************/
  3038. HBI_FPD_DLL int __stdcall HBI_ModeExists(void* handle, FPD_MODE_DATA mode);
  3039. /*********************************************************
  3040. * No: No109
  3041. * Function Name: HBI_CheckCurtMode
  3042. * Function Description: Judge whether the mode is normal
  3043. * Parameter Description:
  3044. In: void *handle - unsigned handle pointer
  3045. * Return Value:int
  3046. 0: Success
  3047. Non-0: Failure
  3048. * Comment:
  3049. * 编 号: No109
  3050. * 函 数 名: HBI_CheckCurtMode
  3051. * 功能描述: 判断mode是否正常
  3052. * 参数说明:
  3053. In: void *handle - 句柄(无符号指针)
  3054. * 返 回 值:int
  3055. 0 - 成功
  3056. 非0 - 失败
  3057. * 备 注:
  3058. *********************************************************/
  3059. HBI_FPD_DLL bool __stdcall HBI_CheckCurtMode(void* handle);
  3060. /*********************************************************
  3061. * No: No110
  3062. * Function Name: HBI_ModeCorrectTempalteEnable
  3063. * Function Description: The calibration template of Mode is effective or not effective
  3064. * Parameter Description:
  3065. In: void *handle - unsigned handle pointer
  3066. unsigned int id - mode id
  3067. bool bEnable - 1 - vailid, 0-invaild
  3068. * Return Value:int
  3069. 0: Success
  3070. Non-0: Failure
  3071. * Comment:
  3072. * 编 号: No110
  3073. * 函 数 名: HBI_ModeCorrectTempalteEnable
  3074. * 功能描述: 当前Mode项的校准模板生效或不生效
  3075. * 参数说明:
  3076. In: void *handle - 句柄(无符号指针)
  3077. unsigned int id - mode id
  3078. bool bEnable - 1 - 有效, 0-无效
  3079. * 返 回 值:int
  3080. 0 - 成功
  3081. 非0 - 失败
  3082. * 备 注:
  3083. *********************************************************/
  3084. HBI_FPD_DLL int __stdcall HBI_ModeCorrectTempalteEnable(void* handle, unsigned int id, bool bEnable = true);
  3085. /*********************************************************
  3086. * No: No111
  3087. * Function Name: HBI_AllModeCorrectTempalteEnable
  3088. * Function Description: All calibration templates for Mode items are valid or not valid
  3089. * Parameter Description:
  3090. In: void *handle - unsigned handle pointer
  3091. bool bEnable - 1 - vailid, 0-invaild
  3092. * Return Value:int
  3093. 0: Success
  3094. Non-0: Failure
  3095. * Comment:
  3096. * 编 号: No111
  3097. * 函 数 名: HBI_AllModeCorrectTempalteEnable
  3098. * 功能描述: 所有的Mode项的校准模板生效或不生效
  3099. * 参数说明:
  3100. In: void *handle - 句柄(无符号指针)
  3101. bool bEnable - 1 - 有效, 0-无效
  3102. * 返 回 值:int
  3103. 0 - 成功
  3104. 非0 - 失败
  3105. * 备 注:
  3106. *********************************************************/
  3107. HBI_FPD_DLL int __stdcall HBI_AllModeCorrectTempalteEnable(void* handle, bool bEnable = true);
  3108. /*********************************************************
  3109. * No: No112
  3110. * Function Name: HBI_SaveModeList2File
  3111. * Function Description: Save the current user mode list
  3112. * Parameter Description:
  3113. In: void *handle - unsigned handle pointer
  3114. char* szPath - file path
  3115. * Return Value:int
  3116. 0: Success
  3117. Non-0: Failure
  3118. * Comment:
  3119. * 编 号: No112
  3120. * 函 数 名: HBI_SaveModeList2File
  3121. * 功能描述: 保存当前user mode list
  3122. * 参数说明:
  3123. In: void *handle - 句柄(无符号指针)
  3124. char* szPath - 文件路径
  3125. * 返 回 值:int
  3126. 0 - 成功
  3127. 非0 - 失败
  3128. * 备 注:
  3129. *********************************************************/
  3130. HBI_FPD_DLL int __stdcall HBI_SaveModeList2File(void* handle, char* szPath = NULL);
  3131. /*********************************************************
  3132. * No:No113
  3133. * Function name: HBI_DownloadModeTemplate (new)
  3134. * Function description: Download template based on Mode parameter
  3135. * Parameter Description:
  3136. In: void * handle - Handle (unsigned pointer)
  3137. Int intemptype - Download file types 0-gain template, 1-defect template, 2-offset template, others - Not supported
  3138. Out: None
  3139. * Return value: int
  3140. 0- Success
  3141. Non 0- Failed
  3142. * Note:
  3143. * 编 号:No113
  3144. * 函 数 名: HBI_DownloadModeTemplate (new)
  3145. * 功能描述: 基于Mode参数下载模板
  3146. * 参数说明:
  3147. In: void * handle - 句柄(无符号指针)
  3148. DOWNLOAD_MODE_FILE downloadfile - 下载模板信息
  3149. Out: None
  3150. * 返 回 值: int
  3151. 0 - 成功
  3152. 非0 - 失败
  3153. * 备 注: Download template add by mhyang 20230606
  3154. *********************************************************/
  3155. HBI_FPD_DLL int __stdcall HBI_DownloadModeTemplate(void* handle, DOWNLOAD_MODE_FILE downloadfile);
  3156. /*********************************************************
  3157. * No:No114
  3158. * Function name: HBI_ DownloadModeTemplateByType (new)
  3159. * Function description: Download correction template files by template type (default to current Mode Id)
  3160. * Parameter Description:
  3161. In: void * handle - Handle (unsigned pointer)
  3162. Int intemptype - Download file types 0-gain template, 1-defect template, 2-offset template, others - Not supported
  3163. Out: None
  3164. * Return value: int
  3165. 0- Success
  3166. Non 0- Failed
  3167. * Note:
  3168. * 编 号:No114
  3169. * 函 数 名: HBI_DownloadModeTemplateByType(新增)
  3170. * 功能描述: 按照模板类型下载矫正模板文件(默认为当前Mode Id)
  3171. * 参数说明:
  3172. In: void *handle - 句柄(无符号指针)
  3173. int intemptype - 下载文件类型0-gain模板,1-defect模板,2-offset模板,其他-不支持
  3174. Out: 无
  3175. * 返 回 值:int
  3176. 0 - 成功
  3177. 非0 - 失败
  3178. * 备 注: 下载模板 add by mhyang 20230606
  3179. *********************************************************/
  3180. HBI_FPD_DLL int __stdcall HBI_DownloadModeTemplateByType(void* handle, int intemptype);
  3181. /*********************************************************
  3182. * No:No115
  3183. * Function name: HBI_DownloadModeTemplateByIdAndType (new)
  3184. * Function description: Download correction template files according to Mode Id and template type
  3185. * Parameter Description:
  3186. In: void * handle - Handle (unsigned pointer)
  3187. Unsigned int modeid - Mode Id [0,9]
  3188. Int intemptype - Download file types 0-gain template, 1-defect template, 2-offset template, others - Not supported
  3189. Out: None
  3190. * Return value: int
  3191. 0- Success
  3192. Non 0- Failed
  3193. * Note:
  3194. * 编 号:No115
  3195. * 函 数 名: HBI_DownloadModeTemplateByIdAndType(新增)
  3196. * 功能描述: 按照Mode Id和模板类型下载矫正模板文件
  3197. * 参数说明:
  3198. In: void *handle - 句柄(无符号指针)
  3199. unsigned int modeid - Mode Id [0,9]
  3200. int intemptype - 下载文件类型0-gain模板,1-defect模板,2-offset模板,其他-不支持
  3201. Out: 无
  3202. * 返 回 值:int
  3203. 0 - 成功
  3204. 非0 - 失败
  3205. * 备 注: 下载模板 add by mhyang 20230605
  3206. *********************************************************/
  3207. HBI_FPD_DLL int __stdcall HBI_DownloadModeTemplateByIdAndType(void* handle, unsigned int modeid, int intemptype);
  3208. /*********************************************************
  3209. * No:No116
  3210. * Function Name: HBI_GetCurModeTemplateStatus(new)
  3211. * Function Description: 获取当前Mode项的固件校正模板状态
  3212. * Parameter Description:
  3213. In: void *handle - unsigned handle pointer
  3214. unsigned int modeid - Mode Id [0,9]
  3215. int intemptype - Download file types 0-gain template, 1-defect template, 2-offset template, others - not supported
  3216. Out: None
  3217. * Return Value:int
  3218. 0: Success
  3219. Non-0: Failure
  3220. * Comment:
  3221. * 编 号:No116
  3222. * 函 数 名: HBI_GetCurModeTemplateStatus(新增)
  3223. * 功能描述: 获取当前Mode项的固件校正模板状态
  3224. * Parameter Description:
  3225. In: void *handle - 句柄(无符号指针)
  3226. int* nTempStatus - 模板状态,0-暗场亮场无效,1-暗场有效亮场无效,2-暗场无效亮场有效,3-暗场亮场有效, 其他-暗场亮场无效
  3227. Out: None
  3228. * Return Value:int
  3229. 0: 成功
  3230. Non-0: 失败
  3231. * Comment:
  3232. *********************************************************/
  3233. HBI_FPD_DLL int __stdcall HBI_GetCurModeTemplateStatus(void* handle, int* nTempStatus);
  3234. //////////////////////////////////////////////////////////////////////////
  3235. // User Mode Developmen
  3236. // Mode开发接口 add by mhyang 20230328
  3237. //////////////////////////////////////////////////////////////////////////
  3238. /*********************************************************
  3239. * No:No117
  3240. * Function Name: HBI_GetCurrentCorrectFilePath
  3241. * Function Description: Obtain the absolute path of the current template file according to the template type
  3242. * Parameter Description:
  3243. In: void *handle - unsigned handle pointer
  3244. In: int tempType -Template type (default is 0),0-offset template;1-gain template;2-defect template;3-defect map template;4-gainb template;
  3245. Out: Null
  3246. * Return Value:char*
  3247. NULL - Failure
  3248. char* - Return absolute path
  3249. * Comment:
  3250. * 编 号:No117
  3251. * 函 数 名: HBI_GetCurrentCorrectFilePath
  3252. * 功能描述: 根据模板类型获取当前模板文件绝对路径
  3253. * 参数说明:
  3254. In: void *handle - 句柄(无符号指针)
  3255. In: int tempType - 模板类型(默认为0),0-offset template;1-gain template;2-defect template;3-defect map template;4-gainb template;
  3256. Out: 无
  3257. * 返 回 值:char*
  3258. NULL - 失败
  3259. char* - 返回绝对路径
  3260. * 备 注:
  3261. *********************************************************/
  3262. HBI_FPD_DLL char* __stdcall HBI_GetCurrentCorrectFilePath(void *handle, int tempType=0);
  3263. /*********************************************************
  3264. * No:No118
  3265. * Function name: HBI_DetectorPrimaryAuthor
  3266. * Function description: 略
  3267. * Parameter Description:
  3268. In: void * handle - Handle (unsigned pointer)
  3269. Int pcode -
  3270. Out: None
  3271. * Return value: int
  3272. 0- Success
  3273. Non 0- Failed
  3274. * Note:
  3275. * 编 号:No118
  3276. * 函 数 名: HBI_DetectorPrimaryAuthor
  3277. * 功能描述: 略
  3278. * 参数说明:
  3279. In: void * handle - 句柄(无符号指针)
  3280. Int pcode -
  3281. Out: None
  3282. * Return value: int
  3283. 0- Success
  3284. Non 0- Failed
  3285. * Note: add by mhyang 20211228
  3286. *********************************************************/
  3287. HBI_FPD_DLL int __stdcall HBI_DetectorPrimaryAuthor(void *handle, char *pcode);
  3288. /*********************************************************
  3289. * No:No119
  3290. * Function name: HBI_DetectorSecondaryAuthor
  3291. * Function description: 略
  3292. * Parameter Description:
  3293. In: void * handle - Handle (unsigned pointer)
  3294. Int pcode -
  3295. Out: None
  3296. * Return value: int
  3297. 0- Success
  3298. Non 0- Failed
  3299. * Note:
  3300. * 编 号:No119
  3301. * 函 数 名: HBI_DetectorSecondaryAuthor
  3302. * 功能描述: 略
  3303. * 参数说明:
  3304. In: void * handle - 句柄(无符号指针)
  3305. Int pcode -
  3306. Out: None
  3307. * Return value: int
  3308. 0- Success
  3309. Non 0- Failed
  3310. * Note: add by mhyang 20220211
  3311. *********************************************************/
  3312. HBI_FPD_DLL int __stdcall HBI_DetectorSecondaryAuthor(void *handle, char *pcode);
  3313. /*********************************************************
  3314. * No: No120
  3315. * Function Name: HBI_DownloadImage
  3316. * Function Description: Download image (wireless detector)
  3317. * Parameter Description:
  3318. In: void *handle - unsigned handle pointer
  3319. int beginnumber - Download start image sequence number
  3320. * Return Value:int
  3321. 0: Success
  3322. Non-0: Failure
  3323. * Comment:
  3324. * 编 号: No120
  3325. * 函 数 名: HBI_DownloadImage
  3326. * 功能描述: 下载图像(无线平板)
  3327. * 参数说明:
  3328. In: void *handle - 句柄(无符号指针)
  3329. int beginnumber - 下载开始图像序号
  3330. * 返 回 值:int
  3331. 0 - 成功
  3332. 非0 - 失败
  3333. * 备 注:
  3334. *********************************************************/
  3335. HBI_FPD_DLL int __stdcall HBI_DownloadImage(void *handle, int beginnumber = 1);
  3336. /*********************************************************
  3337. * No: No121
  3338. * Function Name: HBI_SetSleepState
  3339. * Function Description: Set the detector to sleep (wireless detector)
  3340. * Parameter Description:
  3341. In: void *handle - unsigned handle pointer
  3342. * Return Value:int
  3343. 0: Success
  3344. Non-0: Failure
  3345. * Comment:
  3346. * 编 号: No121
  3347. * 函 数 名: HBI_SetSleepState
  3348. * 功能描述: 设置平板为休眠状态(无线平板)
  3349. * 参数说明:
  3350. In: void *handle - 句柄(无符号指针)
  3351. * 返 回 值:int
  3352. 0 - 成功
  3353. 非0 - 失败
  3354. * 备 注:
  3355. *********************************************************/
  3356. HBI_FPD_DLL int __stdcall HBI_SetSleepState(void *handle);
  3357. /*********************************************************
  3358. * No: No122
  3359. * Function Name: HBI_WakeUpFpd
  3360. * Function Description: Wake up tablet from sleep (wireless detector)
  3361. * Parameter Description:
  3362. In: void *handle - unsigned handle pointer
  3363. * Return Value:int
  3364. * 0: Success
  3365. * Non-0: Failure
  3366. * Comment:
  3367. * 编 号: No122
  3368. * 函 数 名: HBI_WakeUpFpd
  3369. * 功能描述: 从休眠状态唤醒平板(无线平板)
  3370. * 参数说明:
  3371. In: void *handle - 句柄(无符号指针)
  3372. * 返 回 值:int
  3373. 0 - 成功
  3374. 非0 - 失败
  3375. * 备 注:
  3376. *********************************************************/
  3377. HBI_FPD_DLL int __stdcall HBI_WakeUpFpd(void *handle);
  3378. /*********************************************************
  3379. * No: No123
  3380. * Function Name: HBI_EnableEmmcStorage
  3381. * Function Description: Emmc storage image enable (wireless detector)
  3382. * Parameter Description:
  3383. In: void *handle - unsigned handle pointer
  3384. int nenable - 1: Save, others: not save
  3385. * Return Value:int
  3386. 0: Success
  3387. Non-0: Failure
  3388. * Comment:
  3389. * 编 号: No123
  3390. * 函 数 名: HBI_EnableEmmcStorage
  3391. * 功能描述: Emmc存储图像使能(无线平板)
  3392. * 参数说明:
  3393. In: void *handle - 句柄(无符号指针)
  3394. int nenable - 1:存图,其他:不存图
  3395. * 返 回 值:int
  3396. 0 - 成功
  3397. 非0 - 失败
  3398. * 备 注:
  3399. *********************************************************/
  3400. HBI_FPD_DLL int __stdcall HBI_EnableEmmcStorage(void *handle, int nenable = 0);
  3401. /*********************************************************
  3402. * No: No124
  3403. * Function Name: HBI_ReflashBatteryStatusInfo
  3404. * Function Description: Refresh battery information (wireless detector)
  3405. * Parameter Description:
  3406. In: void *handle - unsigned handle pointer
  3407. * Return Value:int
  3408. 0: Success
  3409. Non-0: Failure
  3410. * Comment: Asynchronous function, feedback through callback function
  3411. * 编 号: No124
  3412. * 函 数 名: HBI_ReflashBatteryStatusInfo
  3413. * 功能描述: 刷新电池信息(无线平板)
  3414. * 参数说明:
  3415. In: void *handle - 句柄(无符号指针)
  3416. * 返 回 值:int
  3417. 0 - 成功
  3418. 非0 - 失败
  3419. * 备 注: 异步函数,通过回调函数反馈
  3420. *********************************************************/
  3421. HBI_FPD_DLL int __stdcall HBI_ReflashBatteryStatusInfo(void *handle);
  3422. /*********************************************************
  3423. * No: No125
  3424. * Function Name: HBI_GetBatteryStatusInfo
  3425. * Function Description: Get battery information (wireless detector)
  3426. * Parameter Description:
  3427. In: void *handle - unsigned handle pointer
  3428. BATTERY_STATUS_INFO *pBatteryStatus - Battery status information, refer to <<HbiType.h>>
  3429. Out:BATTERY_STATUS_INFO *pBatteryStatus
  3430. * Return Value:int
  3431. 0: Success
  3432. Non-0: Failure
  3433. * Comment:Synchronization function, parameters are synchronized and fed back to the upper computer through input parameters
  3434. * 编 号: No125
  3435. * 函 数 名: HBI_GetBatteryStatusInfo
  3436. * 功能描述: 获取电池信息(无线平板)
  3437. * 参数说明:
  3438. In: void *handle - 句柄(无符号指针)
  3439. BATTERY_STATUS_INFO *pBatteryStatus - 电池状态信息 见<HbiType.h>
  3440. Out:BATTERY_STATUS_INFO *pBatteryStatus
  3441. * 返 回 值:int
  3442. 0 - 成功
  3443. 非0 - 失败
  3444. * 备 注:同步函数,参数同步后通过入参反馈给上位机
  3445. *********************************************************/
  3446. HBI_FPD_DLL int __stdcall HBI_GetBatteryStatusInfo(void *handle, BATTERY_STATUS_INFO *pBatteryStatus);
  3447. /////////////////////////////////////////////////////////////////////////////////////////////
  3448. /////////////////////////////////////////////////////////////////////////////////////////////
  3449. /*********************************************************
  3450. * No: No126
  3451. * Function Name: HBI_TriggerBinningAcqTime
  3452. * Function Description: // Work mode, binning, frame speed setting
  3453. * Parameter Description:
  3454. In: void *handle // unsigned handle pointer
  3455. int triggerMode // Work mode
  3456. // Static:
  3457. // 01: Software trigger mode;
  3458. // 02: Clear;
  3459. // 03: High voltage generator(hvg) trigger mode;
  3460. // 04: Auto exposure detection mode.
  3461. // Dynamic:
  3462. // 05: Hvg pulse sync in trigger mode;
  3463. // 06: Fpd pulse sync out trigger Mode;
  3464. // 07: Free run mode.
  3465. unsigned char binning
  3466. // 1: 1x1,
  3467. // 2: 2x2,
  3468. // 3: 3x3,
  3469. // 4: 4x4,
  3470. int time // Live acquisition span time, unit: ms
  3471. // For example: 1000ms (1fps), 500ms (2fps), 250ms (4fps),125ms (8fps)
  3472. Out: Null
  3473. * Return Value:
  3474. int // 0: Success
  3475. // Non-0: Failure
  3476. * Comment:
  3477. * 编 号: No126
  3478. * 函 数 名: HBI_TriggerBinningAcqTime
  3479. * 功能描述: 设置触发模式、binning方式以及帧率(采集图像时间间隔)
  3480. * 参数说明:
  3481. In: void *handle - 句柄(无符号指针)
  3482. int triggerMode - 触发模式
  3483. 静态平板(每秒1帧):1-软触发,2-Clear,3-高压触发,4-FreeAED
  3484. 动态平板(每秒2帧以上):05-Dynamic:Hvg Sync Mode,06-Dynamic:Fpd Sync Mode,7-Continue Mode
  3485. unsigned char binning - 1:1x1,2:2x2,3:3x3,4:4x4,其他不支持
  3486. int time - 间隔时间,单位是毫秒ms,大于0
  3487. int nfeedback - 1:设置成功后自动反馈固件参数,非1:反馈设置成功信号(见参数和信号见回调函数)
  3488. * 返 回 值:int
  3489. 0 - 成功
  3490. 非0 - 失败
  3491. * 备 注:
  3492. *********************************************************/
  3493. HBI_FPD_DLL int __stdcall HBI_TriggerBinningAcqTime(void *handle, int triggerMode, unsigned char binning, int acqtime, int nfeedback = 0);
  3494. /*********************************************************
  3495. * No: No127
  3496. * Function Name: HBI_PgaBinningAcqTime
  3497. * Function Description: // PGA gain stage, binning, frame speed setting
  3498. * Parameter Description:
  3499. In: void *handle // unsigned handle pointer
  3500. int nPgaLevel // PGA gain stage
  3501. //[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,[7]-9.6pC
  3502. //[8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC,Default: 7.2 pC.
  3503. unsigned char binning
  3504. // 1: 1x1,
  3505. // 2: 2x2,
  3506. // 3: 3x3,
  3507. // 4: 4x4,
  3508. int acqtime // Live acquisition span time, unit: ms
  3509. int nfeedback // 1: Automatic feedback config parameters if setting is successful
  3510. // Non-1: Feedback setting success status
  3511. * Return Value:
  3512. int // 0: Success
  3513. // Non-0: Failure
  3514. * Comment:
  3515. * 编 号: No127
  3516. * 函 数 名: HBI_PgaBinningAcqTime
  3517. * 功能描述: 设置PGA档位、binning方式以及帧率(采集图像时间间隔)
  3518. * 参数说明:
  3519. In: void *handle - 句柄(无符号指针)
  3520. int nPgaLevel - PGA 档位,[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,默认7.2pC,[7]-9.6pC
  3521. [8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC
  3522. unsigned char binning - 1:1x1,2:2x2,3:3x3,4:4x4,其他不支持
  3523. int acqtime - 间隔时间,单位是毫秒ms,大于0
  3524. int nfeedback - 1:设置成功后自动反馈固件参数,非1:反馈设置成功信号(见参数和信号见回调函数)
  3525. * 返 回 值:int
  3526. 0 - 成功
  3527. 非0 - 失败
  3528. * 备 注:
  3529. *********************************************************/
  3530. HBI_FPD_DLL int __stdcall HBI_PgaBinningAcqTime(void *handle, int nPgaLevel, unsigned char binning, int acqtime, int nfeedback = 0);
  3531. /*********************************************************
  3532. * No: No128
  3533. * Function Name: HBI_TriggerPgaBinningAcqTime
  3534. * Function Description: // trigger mode, PGA gain stage, binning type, frame speed setting
  3535. * Parameter Description:
  3536. In: void *handle // unsigned handle pointer
  3537. int triggerMode // Work mode
  3538. // Static:
  3539. // 01: Software trigger mode;
  3540. // 02: Clear;
  3541. // 03: High voltage generator(hvg) trigger mode;
  3542. // 04: Auto exposure detection mode.
  3543. // Dynamic:
  3544. // 05: Hvg pulse sync in trigger mode;
  3545. // 06: Fpd pulse sync out trigger Mode;
  3546. // 07: Free run mode.
  3547. int nPgaLevel // PGA gain stage
  3548. //[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,[7]-9.6pC
  3549. //[8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC,Default: 7.2 pC.
  3550. unsigned char binning
  3551. // 1: 1x1,
  3552. // 2: 2x2,
  3553. // 3: 3x3,
  3554. // 4: 4x4,
  3555. int acqtime // Live acquisition span time, unit: ms
  3556. int nfeedback // 1: Automatic feedback config parameters if setting is successful
  3557. // Non-1: Feedback setting success status
  3558. * Return Value:
  3559. int // 0: Success
  3560. // Non-0: Failure
  3561. * Comment:
  3562. * 编 号: No128
  3563. * 函 数 名: HBI_TriggerPgaBinningAcqTime
  3564. * 功能描述: 设置触发模式、PGA档位、binning方式以及帧率(采集图像时间间隔)
  3565. * 参数说明:
  3566. In: void *handle - 句柄(无符号指针)
  3567. int triggerMode - 触发模式
  3568. 静态平板(每秒1帧):1-软触发,2-Clear,3-高压触发,4-FreeAED
  3569. 动态平板(每秒2帧以上):05-Dynamic:Hvg Sync Mode,06-Dynamic:Fpd Sync Mode,7-Continue Mode
  3570. int nPgaLevel - PGA 档位,[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,默认7.2pC,[7]-9.6pC
  3571. [8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC
  3572. unsigned char binning - 1:1x1,2:2x2,3:3x3,4:4x4,其他不支持
  3573. int acqtime - 间隔时间,单位是毫秒ms,大于0
  3574. int nfeedback - 1:设置成功后自动反馈固件参数,非1:反馈设置成功信号(见参数和信号见回调函数)
  3575. * 返 回 值:int
  3576. 0 - 成功
  3577. 非0 - 失败
  3578. * 备 注:
  3579. *********************************************************/
  3580. HBI_FPD_DLL int __stdcall HBI_TriggerPgaBinningAcqTime(void *handle, int triggerMode, int nPgaLevel, unsigned char binning, int acqtime, int nfeedback = 0);
  3581. /*********************************************************
  3582. * No: No129
  3583. * Function Name: HBI_PgaAcqTime
  3584. * Function Description: // PGA gain stage, frame speed setting
  3585. * Parameter Description:
  3586. In: void *handle // unsigned handle pointer
  3587. int nPgaLevel // PGA gain stage
  3588. //[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,[7]-9.6pC
  3589. //[8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC,Default: 7.2 pC.
  3590. int acqtime // Live acquisition span time, unit: ms
  3591. int nfeedback // 1: Automatic feedback config parameters if setting is successful
  3592. // Non-1: Feedback setting success status
  3593. * Return Value: int
  3594. // 0: Success
  3595. // Non-0: Failure
  3596. * Comment:
  3597. * 编 号: No129
  3598. * 函 数 名: HBI_PgaAcqTime
  3599. * 功能描述: 设置PGA档位、及帧率(采集图像时间间隔)
  3600. * 参数说明:
  3601. In: void *handle - 句柄(无符号指针)
  3602. int nPgaLevel - PGA 档位,[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,默认7.2pC,[7]-9.6pC
  3603. [8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC
  3604. int acqtime - 间隔时间,单位是毫秒ms,大于0
  3605. int nfeedback - 1:设置成功后自动反馈固件参数,非1:反馈设置成功信号(见参数和信号见回调函数)
  3606. * 返 回 值:int
  3607. 0 - 成功
  3608. 非0 - 失败
  3609. * 备 注:
  3610. *********************************************************/
  3611. HBI_FPD_DLL int __stdcall HBI_PgaAcqTime(void *handle, int nPgaLevel, int acqtime, int nfeedback = 0);
  3612. /*********************************************************
  3613. * No: No130
  3614. * Function Name: HBI_SwitchNetTypeWlanMode
  3615. * Function Description: Switch wireless 2.4G/5G network and WLAN AP/Client Mode (wireless flat panel detector)
  3616. * Parameter Description:
  3617. In: void *handle - unsigned handle pointer
  3618. int nNetType - Wireless network type,1-2.4G,2-5G,Other - invalid
  3619. int nWlanMode- Wireless mode,1-AP Mode,2-Client Mode,3-Wired Mode,Other - invalid
  3620. * Return Value:int
  3621. // 0: Success
  3622. // Non-0: Failure
  3623. * Comment:
  3624. * 编 号: No130
  3625. * 函 数 名: HBI_SwitchNetTypeWlanMode
  3626. * 功能描述: 切换无线2.4G/5G网络和WLAN AP/Client Mode(无线平板)
  3627. * 参数说明:
  3628. In: void *handle - 句柄(无符号指针)
  3629. int nNetType - 无线网络类型,1-2.4G,2-5G,其他-无效
  3630. int nWlanMode- 无线模式,1-AP Mode,2-Client Mode,3-Wired Mode,其他-无效
  3631. * 返 回 值:int
  3632. 0 - 成功
  3633. 非0 - 失败
  3634. * 备 注:
  3635. *********************************************************/
  3636. HBI_FPD_DLL int __stdcall HBI_SwitchNetTypeWlanMode(void *handle, int nNetType, int nWlanMode);
  3637. /*********************************************************
  3638. * No: No131
  3639. * Function Name: HBI_ReadPcieVersion
  3640. * Function Description: Get PCIe card version number
  3641. * Parameter Description:
  3642. In: void *handle - unsigned handle pointer
  3643. In/Out: char *szVersion,At least 16 bytes
  3644. * Return Value:int
  3645. 0: Success
  3646. Non-0: Failure
  3647. * Comment:
  3648. * 编 号: No131
  3649. * 函 数 名: HBI_ReadPcieVersion
  3650. * 功能描述: 获取PCIe卡版本号
  3651. * 参数说明:
  3652. In: void *handle - 句柄(无符号指针)
  3653. In/Out: char *szVersion,至少为16个字节
  3654. * 返 回 值:int
  3655. 0 - 成功
  3656. 非0 - 失败
  3657. * 备 注:
  3658. *********************************************************/
  3659. HBI_FPD_DLL int __stdcall HBI_ReadPcieVersion(void *handle, char *szVersion);
  3660. /*********************************************************
  3661. * No: No132
  3662. * Function Name: HBI_GeneratePreviewTemplate
  3663. * Function Description: Quickly generate Preview image template
  3664. * Parameter Description:
  3665. In: void *handle - unsigned handle pointer
  3666. EnumIMAGE_ACQ_CMD _mode - Template Type
  3667. OFFSET_TEMPLATE_TYPE preview-offset Template
  3668. GAIN_TEMPLATE_TYPE preview-gain Template
  3669. DEFECT_TEMPLATE_GROUP1, preview-defect Template
  3670. Out: Null
  3671. * Return Value:int
  3672. 0: Success
  3673. Non-0: Failure
  3674. * Comment:
  3675. * 编 号: No132
  3676. * 函 数 名: HBI_GeneratePreviewTemplate
  3677. * 功能描述: 快速生成Preview图像模板
  3678. * 参数说明:
  3679. In: void *handle - 句柄(无符号指针)
  3680. EnumIMAGE_ACQ_CMD _mode - 生成模板类型
  3681. OFFSET_TEMPLATE_TYPE 生成preview-offset模板
  3682. GAIN_TEMPLATE_TYPE 生成preview-gain模板
  3683. DEFECT_TEMPLATE_GROUP1, 生成preview-defect模板
  3684. Out: 无
  3685. * 返 回 值:int
  3686. 0 - 成功
  3687. 非0 - 失败
  3688. * 备 注:
  3689. *********************************************************/
  3690. HBI_FPD_DLL int __stdcall HBI_GeneratePreviewTemplate(void *handle, EnumIMAGE_ACQ_CMD _mode);
  3691. /*********************************************************
  3692. * No: No133
  3693. * Function Name: HBI_SetImageRotateAndFlip
  3694. * Function Description: Rotate 90 ° or enable mirroring (SDK processing, applicable to low frame rate or small resolution tablets)
  3695. * Parameter Description:
  3696. In: void *handle - unsigned handle pointer
  3697. In: int nRotate - 0-Do nothing;1-Left Rotate 90°;02-"Right Rotate 90°;
  3698. In: int nFlip - 0-Do nothing;1-Horizontal mirror;2-Mirror vertically;
  3699. Out: Null
  3700. * Return Value:int
  3701. 0: Success
  3702. Non-0: Failure
  3703. * Comment:image processing,By default, rotate before mirro
  3704. * 编 号: No133
  3705. * 函 数 名: HBI_SetImageRotateAndFlip(新增)
  3706. * 功能描述: 旋转90°或镜像使能,默认先旋转后镜像
  3707. * 参数说明:
  3708. In: void *handle - 句柄(无符号指针)
  3709. In: int nRotate - 0-Do nothing;1-Right Rotate 90°;02-"Left Rotate 90°;
  3710. In: int nFlip - 0-Do nothing;1-Vertically mirror;2-Horizontal Mirror vertically;
  3711. * 返 回 值:int
  3712. 0 - 成功
  3713. 非0 - 失败
  3714. * 备 注:默认先旋转后镜像 ADD BY MHYANG 20220518
  3715. *********************************************************/
  3716. HBI_FPD_DLL int __stdcall HBI_SetImageRotateAndFlip(void *handle, int nRotate, int nFlip);
  3717. /*********************************************************
  3718. * No: No134
  3719. * Function Name: HBI_Switch2Bit8Image
  3720. * Function Description: Switch or cancel Bit8 image, cancel automatic switch to Bit16 image (normal image)
  3721. * Parameter Description:
  3722. In: void *handle - unsigned handle pointer
  3723. int nbit8 - Bit8 Image switch control parameters, 0-Bit16 image, 1-Bit8 image, other - Bit16 image
  3724. int nwindowwidth - window width,0~65535(Bit8 Image validation)
  3725. int nwindowleveling - window level~65535(Bit8 Image validation)
  3726. * Return Value:int
  3727. 0: Success
  3728. Non-0: Failure
  3729. * Comment:
  3730. * 编 号: No134
  3731. * 函 数 名: HBI_Switch2Bit8Image
  3732. * 功能描述: 切换或取消Bit8图像,取消自动切换到Bit16图像(正常图像)
  3733. * 参数说明:
  3734. In: void *handle - 句柄(无符号指针)
  3735. int nbit8 - Bit8 图像开关控制参数,0-Bit16 图像,1-Bit8 图像,其他-Bit16 图像
  3736. int nwindowwidth - 窗宽,0~65535(Bit8 图像生效)
  3737. int nwindowleveling - 窗位,0~65535(Bit8 图像生效)
  3738. * 返 回 值:int
  3739. 0 - 成功
  3740. 非0 - 失败
  3741. * 备 注:
  3742. *********************************************************/
  3743. HBI_FPD_DLL int __stdcall HBI_Switch2Bit8Image(void *handle, int nbit8, int nwindowwidth, int nwindowleveling);
  3744. /*********************************************************
  3745. * No: No135
  3746. * Function Name: HBI_OpenTemplateWizard
  3747. * Function Description: Open the correction template generation tool
  3748. * Parameter Description:
  3749. In: void *handle - unsigned handle pointer
  3750. * Return Value:int
  3751. 0: Success
  3752. Non-0: Failure
  3753. * Comment:
  3754. * 编 号: No135
  3755. * 函 数 名: HBI_OpenTemplateWizard
  3756. * 功能描述: 打开模板向导窗口(生成模板、设置主要参数)
  3757. * 参数说明:
  3758. In: void *handle - 句柄(无符号指针)
  3759. * 返 回 值:int
  3760. 0 - 成功
  3761. 非0 - 失败
  3762. * 备 注:
  3763. *********************************************************/
  3764. HBI_FPD_DLL int __stdcall HBI_OpenTemplateWizard(void *handle);
  3765. /*********************************************************
  3766. * No: No136
  3767. * Function Name: HBI_ReadFromUserDdr
  3768. * Function Description: Read user ddr information (customized)
  3769. * Parameter Description:
  3770. In: void *handle - unsigned handle pointer
  3771. unsigned char *szRcvbuff - Receive Buffer,size=1024
  3772. int/out *nlen - Buffer data length pointer(<=1024),The initial value is szRcvbuff size
  3773. Out: Null
  3774. * Return Value:int
  3775. 0: Success
  3776. Non-0: Failure
  3777. * Comment:
  3778. * 编 号: No136
  3779. * 函 数 名: HBI_ReadFromUserDdr
  3780. * 功能描述: 读取用户ddr信息(用户定制)
  3781. * 参数说明:
  3782. In: void *handle - 句柄(无符号指针)
  3783. unsigned char *szRcvbuff - 接收缓冲区,size=1024
  3784. int/out *nlen - 缓冲区数据长度指针(<=1024),初始值为szRcvbuff大小
  3785. Out: 无
  3786. * 返 回 值:int
  3787. 0 - 成功
  3788. 非0 - 失败
  3789. * 备 注:
  3790. *********************************************************/
  3791. HBI_FPD_DLL int __stdcall HBI_ReadFromUserDdr(void* handle, unsigned char* szRcvBuff, int *nlen);
  3792. /*********************************************************
  3793. * No: No137
  3794. * Function Name: HBI_WriteToUserDdr
  3795. * Function Description: Write content to user ddr (user-defined)
  3796. * Parameter Description:
  3797. In: void *handle - unsigned handle pointer
  3798. unsigned char *szSndBuff - Write Buffer
  3799. int nlen - Buffer data length(<=1024)
  3800. Out: Null
  3801. * Return Value:int
  3802. 0: Success
  3803. Non-0: Failure
  3804. * Comment:
  3805. * 编 号: No137
  3806. * 函 数 名: HBI_WriteToUserDdr
  3807. * 功能描述: 向用户ddr写入内容(用户定制)
  3808. * 参数说明:
  3809. In: void *handle - 句柄(无符号指针)
  3810. unsigned char *szSndBuff - 写入缓冲区
  3811. int nlen - 缓冲区数据长度(<=1024)
  3812. Out: 无
  3813. * 返 回 值:int
  3814. 0 - 成功
  3815. 非0 - 失败
  3816. * 备 注:
  3817. *********************************************************/
  3818. HBI_FPD_DLL int __stdcall HBI_WriteToUserDdr(void* handle, unsigned char* szSndBuff, int nlen);
  3819. /*********************************************************
  3820. * No: No138
  3821. * Function Name: HBI_SetRoiMode
  3822. * Function Description: -silicon ROI region setting function.
  3823. * Currentlyonly 1613-125um、3030-140um、4343-100um、2530-100um are supported.
  3824. * Parameter Description:
  3825. In: void *handle - unsigned handle pointer
  3826. int nMode - ROI mode
  3827. for example,1613-125um:0-Normal Image,w*h(1248*1024), Rect(0,0,1247,1023);
  3828. 1-w*h(32*1024), Rect(608,0,639,1023);
  3829. 2-w*h(1248*32), Rect(0,496,1247,527);
  3830. 3-w*h(1248*64), Rect(0,480,1247,543);
  3831. 4-w*h(1248*128),Rect(0,448,1247,575);
  3832. Others-Normal Image。
  3833. 3030-140um:0-Normal Image,w*h(2048*2048), Rect(0,0,2047,2047);
  3834. 1-w*h(1024*2048),Rect(512,0,1535,2047);
  3835. Others-Normal Image。
  3836. 2530-100um:0-Normal Image,w*h(2432*3072), Rect(0,0,2431,3071);
  3837. 1-w*h(1808*1800),Rect(316,636,2115,2435);
  3838. 2-w*h(1312*1300),Rect(566,886,1865,2185);
  3839. Others-Normal Image。
  3840. int nfeedback // 1: Automatic feedback config parameters if setting is successful
  3841. // Non-1: Feedback setting success status
  3842. Out: Null
  3843. * Return Value:int
  3844. 0: Success
  3845. Non-0: Failure
  3846. * Comment:only 1613-125um、3030-140um、4343-100um、2530-100um are supported。
  3847. * 编 号: No138
  3848. * 函 数 名: HBI_SetRoiMode(新增)
  3849. * 功能描述: 非晶硅ROI区域设置函数
  3850. * 当前仅支持平板类型包括1613-125um、3030-140um、4343-100um、2530-100um。
  3851. * 参数说明:
  3852. In: void *handle - 句柄(无符号指针)
  3853. int nMode - Roi模式
  3854. 其中,1613-125um:0-Normal Image,w*h(1248*1024), Rect(0,0,1247,1023);
  3855. 1-w*h(32*1024), Rect(608,0,639,1023);
  3856. 2-w*h(1248*32), Rect(0,496,1247,527);
  3857. 3-w*h(1248*64), Rect(0,480,1247,543);
  3858. 4-w*h(1248*128),Rect(0,448,1247,575);
  3859. 其他-Normal Image。
  3860. 3030-140um:0-Normal Image,w*h(2048*2048), Rect(0,0,2047,2047);
  3861. 1-w*h(1024*2048),Rect(512,0,1535,2047);
  3862. 其他-Normal Image。
  3863. 2530-100um:0-Normal Image,w*h(2432*3072), Rect(0,0,2431,3071);
  3864. 1-w*h(1808*1800),Rect(316,636,2115,2435);
  3865. 2-w*h(1312*1300),Rect(566,886,1865,2185);
  3866. 其他-Normal Image。
  3867. int nfeedback - 1:设置成功后自动反馈固件参数,非1:反馈设置成功信号(见参数和信号见回调函数),默认为1
  3868. Out: 无
  3869. * 返 回 值:int
  3870. 0 - 成功
  3871. 非0 - 失败
  3872. * 备 注:当前仅支持平板类型包括1613-125um、3030-140um、2530-100um。
  3873. *********************************************************/
  3874. HBI_FPD_DLL int __stdcall HBI_SetRoiMode(void* handle, int nMode, int nfeedback=1);
  3875. /*********************************************************
  3876. * No: No139
  3877. * Function Name: HBI_SetZoomModeRect
  3878. * Function Description: The ZOOM Mode region setting function for CMOS tablets
  3879. * currently supports only CMOS - 1412-50um and CMOS - 0606-50um ,1917-120umtablet types.
  3880. * Parameter Description:
  3881. In: void *handle - unsigned handle pointer
  3882. CMOS_ZOOM_RECT stZoomRect - Zoom region
  3883. The region is represented by left, top, right, and bottom.
  3884. for example, when left, top, right and bottom are illegal values, the image will display the full image by default,
  3885. 1>When left=top=right=bottom=0, the whole picture is displayed;
  3886. 2>When eft<0 or left>width, the whole picture will be displayed, and others are the same.
  3887. int nfeedback // 1: Automatic feedback config parameters if setting is successful
  3888. // Non-1: Feedback setting success status
  3889. Out: Null
  3890. * Return Value:int
  3891. 0: Success
  3892. Non-0: Failure
  3893. * Comment: currently supports only CMOS - 1412-50um and CMOS - 0606-50um 1917-120um tablet types.
  3894. * 编 号: No139
  3895. * 函 数 名: HBI_SetZoomModeRect(新增)
  3896. * 功能描述: ZOOM Mode区域设置函数
  3897. * 当前仅支持平板类型包括CMOS-1412-50um、CMOS-0606-50um,1917-120um。
  3898. * 参数说明:
  3899. In: void *handle - 句柄(无符号指针)
  3900. CMOS_ZOOM_RECT stZoomRect - Zoom区域
  3901. 其中,区域用left,top,right,bottom来表示。
  3902. 例如:当left,top,right,bottom为非法数值时,图像默认显示全图,
  3903. 1>left=top=right=bottom=0时,显示全图;
  3904. 2>left<0或left>width时,显示全图,其他雷同。
  3905. int nfeedback - 1:设置成功后自动反馈固件参数,非1:反馈设置成功信号(见参数和信号见回调函数),默认为1
  3906. Out: 无
  3907. * 返 回 值:int
  3908. 0 - 成功
  3909. 非0 - 失败
  3910. * 备 注:当前仅支持平板类型包括CMOS-1412-50um、CMOS-0606-50um,1917-120um,4343-100um。
  3911. *********************************************************/
  3912. HBI_FPD_DLL int __stdcall HBI_SetZoomModeRect(void* handle, CMOS_ZOOM_RECT stZoomRect, int nfeedback = 1);
  3913. /*********************************************************
  3914. * No: No140
  3915. * Function Name: HBI_SetCorrectFileDirectory
  3916. * Function Description: User set correction file home directory
  3917. * If this interface is not called, the calibration file defaults to the DLL directory
  3918. * Setting failed. The default is the current path
  3919. * Parameter Description:
  3920. In: void *handle - unsigned handle pointer
  3921. char *pUserDir - User defined correction file directory,for example,
  3922. ”E:\\***\\***\\
  3923. ” Out: Null
  3924. * Return Value:int
  3925. 0: Success
  3926. Non-0: Failure
  3927. * Comment:
  3928. * 编 号: No140
  3929. * 函 数 名: HBI_SetCorrectFileDirectory
  3930. * 功能描述: 用户设置校正文件主目录
  3931. * 如果未调用该接口,校正文件默认为DLL目录
  3932. * 设置失败,默认为当前路径
  3933. * 参数说明:
  3934. In: void *handle - 句柄(无符号指针)
  3935. char *pUserDir - 用户自定义校正文件目录,例如:E:\\***\\***\\
  3936. Out: 无
  3937. * 返 回 值:int
  3938. 0 - 成功
  3939. 非0 - 失败
  3940. * 备 注:
  3941. *********************************************************/
  3942. HBI_FPD_DLL int __stdcall HBI_SetCorrectFileDirectory(void* handle, char *pUserDir);
  3943. /*********************************************************
  3944. * No: No141
  3945. * Function Name: HBI_GetCorrectFileDirectory
  3946. * Function Description: Obtain the home directory of user correction files
  3947. * Parameter Description:
  3948. In: void *handle - unsigned handle pointer
  3949. Out: Null
  3950. * Return Value:int
  3951. 0: Success
  3952. Non-0: Failure
  3953. * Comment:
  3954. * 编 号: No141
  3955. * 函 数 名: HBI_GetCorrectFileDirectory
  3956. * 功能描述: 获取用户校正文件主目录
  3957. * 参数说明:
  3958. In: void *handle - 句柄(无符号指针)
  3959. Out: 无
  3960. * 返 回 值:char *
  3961. NULL - 句柄异常或者不存在
  3962. 非NULL - 主目录
  3963. * 备 注:
  3964. *********************************************************/
  3965. HBI_FPD_DLL char* __stdcall HBI_GetCorrectFileDirectory(void* handle);
  3966. /*********************************************************
  3967. * No: No142
  3968. * Function Name: HBI_RestoreCorrectDefaultDirectory
  3969. * Function Description: Restore correction file default path
  3970. * Parameter Description:
  3971. In: void *handle - unsigned handle pointer
  3972. Out: Null
  3973. * Return Value:int
  3974. 0: Success
  3975. Non-0: Failure
  3976. * Comment:
  3977. * 编 号: No142
  3978. * 函 数 名: HBI_RestoreCorrectDefaultDirectory
  3979. * 功能描述: 恢复校正文件默认路径
  3980. * 参数说明:
  3981. In: void *handle - 句柄(无符号指针)
  3982. Out: 无
  3983. * 返 回 值:int
  3984. 0 - 成功
  3985. 非0 - 失败
  3986. * 备 注:
  3987. *********************************************************/
  3988. HBI_FPD_DLL int __stdcall HBI_RestoreCorrectDefaultDirectory(void* handle);
  3989. /*********************************************************
  3990. * No: No143
  3991. * Function Name: HBI_SSGCTRegCallbackFunc(newly increased)
  3992. * Function Description: Register single-step template callback handler
  3993. * Parameter Description:
  3994. In: void *handle - unsigned handle pointer
  3995. SSGCT_CALLBACK_FUNC callbackfun - Registering Callbacks
  3996. void *pContext- Object pointer. Generally, the upper computer software transfers the object pointer of a module to the SDK, and the callback function feeds back to the upper computer so that static or global functions can access other objects. It can also be null pointer.
  3997. Out: Null
  3998. * Return Value:int
  3999. 0: Success
  4000. Non-0: Failure
  4001. * Comment:Single Step Generate Template-SSGT
  4002. * 编 号: No143
  4003. * 函 数 名: HBI_SSGCTRegCallbackFunc(新增)
  4004. * 功能描述: 注册单步生成模板回调处理函数
  4005. * 参数说明:
  4006. In: void *handle - 句柄(无符号指针)
  4007. SSGCT_CALLBACK_FUNC callbackfun - 注册回调函数
  4008. void *pContext- 对象指针,一般上位机软件将某个模块对象指针传入SDK,回调函数反馈给上位机,以便静态或全局函数访问其他对象,亦可为空指针。
  4009. Out: 无
  4010. * 返 回 值:int
  4011. 0 - 成功
  4012. 非0 - 失败
  4013. * 备 注:Single Step Generate Template-SSGT
  4014. *********************************************************/
  4015. HBI_FPD_DLL int __stdcall HBI_SSGCTRegCallbackFunc(void* handle, SSGCT_CALLBACK_FUNC callbackfun, void* pObject);
  4016. /*********************************************************
  4017. * No: No144
  4018. * Function Name: HBI_SSCGTEnableMode(newly increased)
  4019. * Function Description: The single-frame acquisition preparation command activates the single-step image acquisition generation template mode or restores the normal image acquisition mode
  4020. * Parameter Description:
  4021. In: void *handle - unsigned handle pointer
  4022. Int nMode - (1): generate offset template;
  4023. (2) : Generate gain template;
  4024. (3) : generate a defect template;
  4025. (4) : generate gain and defect templates;
  4026. (0 or other): Exit the single-step template generation mode and return to the normal drawing mode;
  4027. Int nGroups - Number of groups
  4028. Int nPreGroup - Number of images captured per group
  4029. Out: Null
  4030. * Return Value:int
  4031. 0: Success
  4032. Non-0: Failure
  4033. * Comment:Single Step Generate Correction Template-SSGT
  4034. * 编 号: No144
  4035. * 函 数 名: HBI_SSCGTEnableMode(新增)
  4036. * 功能描述: 激活单步采图生成模板模式或恢复正常采图模式
  4037. * 参数说明:
  4038. In: void *handle - 句柄(无符号指针)
  4039. int nMode - (1):生成offset模板;
  4040. (2):生成gain模板;
  4041. (3):生成defect模板;
  4042. (4):生成gain和defect模板;
  4043. (0或其他):退出单步生成模板模式,恢复到正常采图模式;
  4044. int nGroups - 组数
  4045. int nPreGroup - 每组采集图像数目
  4046. Out: 无
  4047. * 返 回 值:int
  4048. 0 - 成功
  4049. 非0 - 失败
  4050. * 备 注:Single Step Generate Correction Template-SSGT
  4051. *********************************************************/
  4052. HBI_FPD_DLL int __stdcall HBI_SSGCTEnableMode(void* handle, int nMode, int nGroups=3, int nPreGroup=3);
  4053. /*********************************************************
  4054. * No: No145
  4055. * Function Name: HBI_SSGCTPrepare(newly increased)
  4056. * Function Description: Single frame acquisition preparation instruction
  4057. * Parameter Description:
  4058. In : void* handle - unsigned handle pointer
  4059. Out : None
  4060. * Return Value: int
  4061. 0: Success
  4062. Non-0: Failure
  4063. * Comment: Single Step Generate Correction Template-SSGT
  4064. * 编 号: No145
  4065. * 函 数 名: HBI_SSGCTPrepare(新增)
  4066. * 功能描述: 单帧采集准备指令
  4067. * 参数说明:
  4068. In : void* handle - 句柄(无符号指针)
  4069. Out : 无
  4070. * 返 回 值: int
  4071. 0 - 成功
  4072. 非0 - 失败
  4073. * 备 注: Single Step Generate Correction Template-SSGT
  4074. *********************************************************/
  4075. HBI_FPD_DLL int __stdcall HBI_SSGCTPrepare(void* handle);
  4076. /*********************************************************
  4077. * No: No146
  4078. * Function Name: HBI_SSGCTSingleShot(newly increased)
  4079. * Function Description: Single frame acquisition
  4080. * Parameter Description:
  4081. In: void *handle - unsigned handle pointer
  4082. Out: Null
  4083. * Return Value:int
  4084. 0: Success
  4085. Non-0: Failure
  4086. * Comment: Single Step Generate Correction Template-SSGT
  4087. * 编 号: No146
  4088. * 函 数 名: HBI_SSGCTSingleShot(新增)
  4089. * 功能描述: 单帧采集
  4090. * 参数说明:
  4091. In: void *handle - 句柄(无符号指针)
  4092. Out: 无
  4093. * 返 回 值:int
  4094. 0 - 成功
  4095. 非0 - 失败
  4096. * 备 注: Single Step Generate Correction Template-SSGT
  4097. *********************************************************/
  4098. HBI_FPD_DLL int __stdcall HBI_SSGCTSingleShot(void* handle);
  4099. /*********************************************************
  4100. * No: No147
  4101. * Function Name: HBI_SSGCTGenerateTemplate(newly increased)
  4102. * Function Description: Generate Template
  4103. * Parameter Description:
  4104. In: void *handle - unsigned handle pointer
  4105. Out: Null
  4106. * Return Value:int
  4107. 0: Success
  4108. Non-0: Failure
  4109. * Comment: Single Step Generate Correction Template-SSGT
  4110. * 编 号: No147
  4111. * 函 数 名: HBI_SSGCTGenerateTemplate(新增)
  4112. * 功能描述: 生成模板
  4113. * 参数说明:
  4114. In: void *handle - 句柄(无符号指针)
  4115. Out: 无
  4116. * 返 回 值:int
  4117. 0 - 成功
  4118. 非0 - 失败
  4119. * 备 注: Single Step Generate Correction Template-SSGT
  4120. *********************************************************/
  4121. HBI_FPD_DLL int __stdcall HBI_SSGCTGenerateTemplate(void* handle);
  4122. /*********************************************************
  4123. * No: No148
  4124. * Function Name: HBI_SSGCTDownloadTemplate(newly increased)
  4125. * Function Description: Download calibration template
  4126. * Parameter Description:
  4127. In: void *handle - unsigned handle pointer
  4128. int infiletype -Download file types: 1-offset template, 2-gain template, 3-defect template, others - not supported
  4129. Out: Null
  4130. * Return Value:int
  4131. 0: Success
  4132. Non-0: Failure
  4133. * Comment: Single Step Generate Correction Template-SSGT
  4134. * 编 号: No148
  4135. * 函 数 名: HBI_SSGCTDownloadTemplate(新增)
  4136. * 功能描述: 下载校正模板
  4137. * 参数说明:
  4138. In: void *handle - 句柄(无符号指针)
  4139. int infiletype - 下载文件类型1-offset模板,2-gain模板,3-defect模板,其他-不支持
  4140. Out: 无
  4141. * 返 回 值:int
  4142. 0 - 成功
  4143. 非0 - 失败
  4144. * 备 注: Single Step Generate Correction Template-SSGT
  4145. *********************************************************/
  4146. HBI_FPD_DLL int __stdcall HBI_SSGCTDownloadTemplate(void* handle, int infiletype);
  4147. /*********************************************************
  4148. * No: No149
  4149. * Function Name: HBI_UpdateWirelessNetwork(newly increased)
  4150. * Function Description: Update wireless network configuration
  4151. * Parameter Description:
  4152. In: void *handle - unsigned handle pointer
  4153. EtherInfo ether - Network configuration parameter structure, refer to <<HbiType.h>>
  4154. Out: Null
  4155. * Return Value:int
  4156. 0: Success
  4157. Non-0: Failure
  4158. * Comment: wireless FPD network config
  4159. * 编 号: No149
  4160. * 函 数 名: HBI_UpdateWirelessNetwork(新增)
  4161. * 功能描述: 更新无线网络配置
  4162. * 参数说明:
  4163. In: void *handle - 句柄(无符号指针)
  4164. EtherInfo ether - 网络配置参数结构体,见《HbiType.h》
  4165. Out: 无
  4166. * 返 回 值:int
  4167. 0 - 成功
  4168. 非0 - 失败
  4169. * 备 注: wireless FPD network config
  4170. *********************************************************/
  4171. HBI_FPD_DLL int __stdcall HBI_UpdateWirelessNetwork(void* handle, EtherInfo ether);
  4172. /*********************************************************
  4173. * No: No150
  4174. * Function Name: HBI_GetWirelessNetWork(newly increased)
  4175. * Function Description: Get wireless network configuration (asynchronous message, callback function feedback)
  4176. * Parameter Description:
  4177. In: void *handle - unsigned handle pointer
  4178. Out: Null
  4179. * Return Value:int
  4180. 0: Success
  4181. Non-0: Failure
  4182. * Comment: wireless FPD network config
  4183. * 编 号: No150
  4184. * 函 数 名: HBI_GetWirelessNetWork(新增)
  4185. * 功能描述: 获取无线网络配置(异步消息,回调函数反馈)
  4186. * 参数说明:
  4187. In: void *handle - 句柄(无符号指针)
  4188. Out: 无
  4189. * 返 回 值:int
  4190. 0 - 成功
  4191. 非0 - 失败
  4192. * 备 注: wireless FPD network config
  4193. *********************************************************/
  4194. HBI_FPD_DLL int __stdcall HBI_GetWirelessNetwork(void* handle);
  4195. /*********************************************************
  4196. * No: No151
  4197. * Function Name: HBI_UpdateWirelessSecurityKey(newly increased)
  4198. * Function Description: Modify wireless network security key
  4199. * Parameter Description:
  4200. In: void *handle - unsigned handle pointer
  4201. int wirelessmode - Wireless network mode,1-AP mode,2-Client mode
  4202. char *pkey - Security key
  4203. int nkeylen - Security key length (10 significant characters)
  4204. Out: Null
  4205. * Return Value:int
  4206. 0: Success
  4207. Non-0: Failure
  4208. * Comment: wireless FPD network config
  4209. * 编 号: No151
  4210. * 函 数 名: HBI_UpdateWirelessSecurityKey(新增)
  4211. * 功能描述: 修改无线网络安全密钥
  4212. * 参数说明:
  4213. In: void *handle - 句柄(无符号指针)
  4214. int wirelessmode - 无线网络模式,1-AP模式,2-Client模式
  4215. char *pkey - 安全密钥
  4216. int nkeylen - 安全密钥长度(有效位10位字符)
  4217. Out: 无
  4218. * 返 回 值:int
  4219. 0 - 成功
  4220. 非0 - 失败
  4221. * 备 注: wireless FPD network config
  4222. *********************************************************/
  4223. HBI_FPD_DLL int __stdcall HBI_UpdateWirelessSecurityKey(void* handle, int wirelessmode, char *pkey, int nkeylen);
  4224. /*********************************************************
  4225. * No: No152
  4226. * Function Name: HBI_UpdateSaveOption
  4227. * Function Description: Update Save Image Options
  4228. * Parameter Description:
  4229. In: void *handle - unsigned handle pointer
  4230. SAVE_IMAGE saveimge - Structure parameters
  4231. unsigned char m_bySaveType; // 0-show image only,1-save image only,2-show and save image;
  4232. unsigned char m_bySaveFileType; // 0-image,1-video;
  4233. unsigned short m_bySaveNumber; // Number of images included in the video
  4234. Out: Null
  4235. * Return Value:int
  4236. 0: Success
  4237. Non-0: Failure
  4238. * Comment:
  4239. * 编 号: No152
  4240. * 函 数 名: HBI_UpdateSaveOption(新增)
  4241. * 功能描述: 更新保存图像选项
  4242. * 参数说明:
  4243. In: void *handle - 句柄(无符号指针)
  4244. SAVE_IMAGE saveimge - 结构体参数
  4245. unsigned char m_bySaveType; //0-show image only,1-save image only,2-show and save image;
  4246. unsigned char m_bySaveFileType; //0-image,1-video;
  4247. unsigned short m_bySaveNumber; //Number of images included in the video,》0
  4248. Out: 无
  4249. * 返 回 值:int
  4250. 0 - 成功
  4251. 非0 - 失败
  4252. * 备 注:
  4253. *********************************************************/
  4254. HBI_FPD_DLL int __stdcall HBI_UpdateSaveOption(void* handle, SAVE_IMAGE saveimge);
  4255. /*********************************************************
  4256. * No: No153
  4257. * Function Name: HBI_SetPacketIntervalTime
  4258. * Function Description: Set Package Interval
  4259. * Parameter Description:
  4260. In: void *handle - unsigned handle pointer
  4261. int *in_itime - TIME,UNIT:um
  4262. Out: Null
  4263. * Return Value:int
  4264. 0: Success
  4265. Non-0: Failure
  4266. * Comment:
  4267. * 编 号: No153
  4268. * 函 数 名: HBI_SetPacketIntervalTime(新增)
  4269. * 功能描述: 设置包间隔时间
  4270. * 参数说明:
  4271. In: void *handle - 句柄(无符号指针)
  4272. int *in_itime - 时间,单位:um
  4273. * 返 回 值:int
  4274. 0 - 成功
  4275. 非0 - 失败
  4276. * 备 注:
  4277. *********************************************************/
  4278. HBI_FPD_DLL int __stdcall HBI_SetPacketIntervalTime(void* handle, int in_itime);
  4279. /*********************************************************
  4280. * No: No154
  4281. * Function Name: HBI_GetPacketIntervalTime(newly increased)
  4282. * Function Description: Get Package Interval
  4283. * Parameter Description:
  4284. In: void *handle - unsigned handle pointer
  4285. out:int *out_time - Time in microseconds
  4286. * Return Value:int
  4287. 0: Success
  4288. Non-0: Failure
  4289. * Comment:
  4290. * 编 号: No154
  4291. * 函 数 名: HBI_GetPacketIntervalTime(新增)
  4292. * 功能描述: 获取包间隔时间
  4293. * 参数说明:
  4294. In: void *handle - 句柄(无符号指针)
  4295. out:int *out_time - 时间,单位是毫秒us
  4296. * 返 回 值:int
  4297. 0 - 成功
  4298. 非0 - 失败
  4299. * 备 注:
  4300. *********************************************************/
  4301. HBI_FPD_DLL int __stdcall HBI_GetPacketIntervalTime(void* handle, int* out_time);
  4302. /*********************************************************
  4303. * No: No155
  4304. * Function Name: HBI_SetDummyParameter(newly increased)
  4305. * Function Description: Update Dummy parameters (parameters required for Dummy correction)
  4306. * Parameter Description:
  4307. In: void *handle - unsigned handle pointer
  4308. int nDummyStartCol - The region start column of Dummy
  4309. int nDummyEndCol - The Region End Column of Dummy
  4310. int nDummyConstant - The constant of Dummy
  4311. * Return Value:int
  4312. 0: Success
  4313. Non-0: Failure
  4314. * Comment:
  4315. * 编 号: No155
  4316. * 函 数 名: HBI_SetDummyParameter(新增)
  4317. * 功能描述: 更新Dummy参数(Dummy校正所需参数)
  4318. * 参数说明:
  4319. In: void *handle - 句柄(无符号指针)
  4320. int nDummyStartCol - Dummy区域起始列
  4321. int nDummyEndCol - Dummy区域终止列
  4322. int nDummyConstant - Dummy常量
  4323. * 返 回 值:int
  4324. 0 - 成功
  4325. 非0 - 失败
  4326. * 备 注:
  4327. *********************************************************/
  4328. HBI_FPD_DLL int __stdcall HBI_SetDummyParameter(void* handle, int nDummyStartCol, int nDummyEndCol, int nDummyConstant);
  4329. /*********************************************************
  4330. * No: No156
  4331. * Function Name: HBI_AutoWindowWidthWindowLevel
  4332. * Function Description: The automatic window width and window level algorithm converts 16bits data into 8-bit unsigned data through window width and window level processing, and users can directly display 8-bit data.
  4333. * Parameter Description:
  4334. In: void *handle - unsigned handle pointer
  4335. In/Out: unsigned char *imgbuff,Source data (16 bit unsigned small end data), destination data (8-bit unsigned data)
  4336. In/Out: int *nbufflen, Buffer data length (halve the data size after conversion)
  4337. In: int nwidth - Image data width
  4338. In: int nheight - Image data high
  4339. Out: Null
  4340. * Return Value:int
  4341. 0: Success
  4342. Non-0: Failure
  4343. * Comment:
  4344. * 编 号: No156
  4345. * 函 数 名: HBI_AutoWindowWidthWindowLevel(新增)
  4346. * 功能描述: 自动窗宽窗位算法将16位数据进行窗宽窗位处理转换为8位无符号数据,用户可以直接显示8位数据。
  4347. * 8位数据保存在imgbuff缓冲区内,数据长度减半保存在*nbufflen指针地址
  4348. * 参数说明:
  4349. In: void *handle - 句柄(无符号指针)
  4350. In/Out: unsigned char *imgbuff,源数据(16位无符号小端数据),目的数据(8位无符号数据)
  4351. In/Out: int *nbufflen,缓冲区数据长度(转换后数据大小减半)
  4352. In: int nwidth - 图像数据宽
  4353. In: int nheight - 图像数据高
  4354. * 返 回 值:int
  4355. 0 - 成功
  4356. 非0 - 失败
  4357. * 备 注:
  4358. *********************************************************/
  4359. HBI_FPD_DLL int __stdcall HBI_AutoWindowWidthWindowLevel(void* handle, unsigned char* imgbuff, int* nbufflen, int nwidth, int nheight);
  4360. /*********************************************************
  4361. * No: No157
  4362. * Function Name: HBI_UnRegProgressCallBack
  4363. * Function Description: Unregister progress registration callback function
  4364. * Parameter Description: Process firmware upgrade feedback
  4365. In: void *handle - unsigned handle pointer
  4366. Out: Null
  4367. * Return Value:int
  4368. 0: Success
  4369. Non-0: Failure
  4370. * Comment:
  4371. * 编 号: No157
  4372. * 函 数 名: HBI_UnRegProgressCallBack
  4373. * 功能描述: 注销进度注册回调函数
  4374. * 参数说明: 处理固件升级反馈信息
  4375. In: void *handle - 句柄(无符号指针)
  4376. Out: 无
  4377. * 返 回 值:int
  4378. 0 - 成功
  4379. 非0 - 失败
  4380. * 备 注:
  4381. *********************************************************/
  4382. HBI_FPD_DLL int __stdcall HBI_UnRegProgressCallBack(void* handle);
  4383. /*********************************************************
  4384. * No: No158
  4385. * Function Name: HBI_SetUdpMtuPacketType(newly increased)
  4386. * Function Description: Set the packet type of UDP maximum transmission unit
  4387. * Parameter Description:
  4388. In: void *handle - unsigned handle pointer
  4389. In: int npacketType - 0-udp packet;1-udp packet jumbo;others-"udp packet°;
  4390. * Return Value:int
  4391. 0: Success
  4392. Non-0: Failure
  4393. * Comment:
  4394. * 编 号: No158
  4395. * 函 数 名: HBI_SetUdpMtuPacketType(新增)
  4396. * 功能描述: 设置UDP最大传输单元的数据包类型
  4397. * 参数说明:
  4398. In: void *handle - 句柄(无符号指针)
  4399. In: int npacketType - 0-udp packet;1-udp packet jumbo;others-"udp packet°;
  4400. * 返 回 值:int
  4401. 0 - 成功
  4402. 非0 - 失败
  4403. * 备 注:
  4404. *********************************************************/
  4405. HBI_FPD_DLL int __stdcall HBI_SetUdpMtuPacketType(void* handle, int npacketType);
  4406. /*********************************************************
  4407. * No: No159
  4408. * Function Name: HBI_Rotate90AndFlip(newly increased)
  4409. * Function Description: Image rotation and image processing (only applicable to 16-bit unsigned image data, which is rotated first and then mirrored by default)
  4410. * Parameter Description:
  4411. In: void *handle - unsigned handle pointer
  4412. In/Out: unsigned char *imgbuff - Pointer type input and output parameters, source data (16-bit unsigned small-end data), destination data (16-bit unsigned small-end data)
  4413. In: int nbufflen - Buffer data length
  4414. In/Out: int *nwidth - Pointer type input and output parameters, pointer address storage image data width
  4415. In/Out: int *nheight - Pointer type input and output parameters, pointer address storage image data high
  4416. In: int nClockwise - Rotate 90 °, 1 - right rotation, 2 - left rotation, other - no processing In: int nVertical - Mirror processing, 1-vertical mirror, 2-horizontal mirror, other - no processing
  4417. * Return Value:int
  4418. 0: Success
  4419. Non-0: Failure
  4420. * Comment:By default, rotate before mirror
  4421. * 编 号: No159
  4422. * 函 数 名: HBI_Rotate90AndFlip(新增)
  4423. * 功能描述: 图像旋转和镜像处理(仅适用于16位无符号类型图像数据,默认先旋转后镜像)
  4424. * 参数说明:
  4425. In: void *handle - 句柄(无符号指针)
  4426. In/Out: unsigned char *imgbuff - 指针类型入参和出参,源数据(16位无符号小端数据),目的数据(16位无符号小端数据)
  4427. In: int nbufflen - 缓冲区数据长度
  4428. In/Out: int *nwidth - 指针类型入参和出参,指针地址存放图像数据宽
  4429. In/Out: int *nheight - 指针类型入参和出参,指针地址存放图像数据高
  4430. In: int nClockwise - 旋转90°,1-右旋转,2-左旋转,其他-不做处理
  4431. In: int nVertical - 镜像处理,1-垂直镜像,2-水平镜像,其他-不做处理
  4432. * 返 回 值:int
  4433. 0 - 成功
  4434. 非0 - 失败
  4435. * 备 注:默认先旋转后镜像
  4436. *********************************************************/
  4437. HBI_FPD_DLL int __stdcall HBI_Rotate90AndFlip(void *handle, unsigned char* imgbuff, int nbufflen, int* pnwidth, int* pnheight, int nClockwise, int nVertical);
  4438. /*********************************************************
  4439. * No: No160
  4440. * Function Name: HBI_ResetCorrectTemplate(newly increased)
  4441. * Function Description: Reset the calibration template file - rotate, mirror, reverse process and save, generally complete the process before downloading to the firmware
  4442. * 1、Find the generated calibration template file according to the current rotation and mirroring parameters (the template file has been rotated and mirrored);
  4443. * 2、Reverse process the calibration template file (mirror first and then reverse rotation);
  4444. * 3、Automatically store the rotated calibration template file according to multi-template management rules;
  4445. * Parameter Description:
  4446. In: void *handle - unsigned handle pointer
  4447. In: int nTemplateType - 0-offset template(16-bits);1-gain template(32-bits);2-defect template(16-bits);
  4448. * Return Value:int
  4449. 0: Success
  4450. Non-0: Failure
  4451. * Comment:The purpose is to solve the problem that the firmware calibration calibration file is not synchronized. The firmware uses the generated calibration template file that has not been rotated and mirrored by the dynamic library
  4452. * 编 号: No160
  4453. * 函 数 名: HBI_ResetCorrectTemplate(新增)
  4454. * 功能描述: 重置校准模板文件-旋转、镜像逆向处理并保存,一般在下载到固件前完成处理
  4455. * 1、根据当前旋转和镜像参数查找已生成的校准模板文件(模板文件已被旋转和镜像处理);
  4456. * 2、对该校准模板文件进行逆处理(先镜像后逆旋转);
  4457. * 3、将旋转后的校准模板文件按照多模板管理规则自动存储;
  4458. * 参数说明:
  4459. In: void *handle - 句柄(无符号指针)
  4460. In: int nTemplateType - 0-offset template(16-bits);1-gain template(32-bits);2-defect template(16-bits);
  4461. * 返 回 值:int
  4462. 0 - 成功
  4463. 非0 - 失败
  4464. * 备 注:目的是为了解决固件校正校准文件不同步问题,固件使用的是未经过动态库旋转和镜像的生成的校准模板文件
  4465. *********************************************************/
  4466. HBI_FPD_DLL int __stdcall HBI_ResetCorrectTemplate(void* handle, int nTemplateType);
  4467. /*********************************************************
  4468. * No: No161
  4469. * Function Name: HBI_IsExistsOfCurCorrectTemplate(newly increased)
  4470. * Function Description:Judge whether the current template file exists according to the template type
  4471. * Parameter Description:
  4472. In: void *handle - unsigned handle pointer
  4473. In: int tempType -Template type (default is 0),0-offset template;1-gain template;2-defect template;3-defect map template;4-gainb template;
  4474. * Return Value:int
  4475. 0: Success
  4476. Non-0: Failure
  4477. * Comment:
  4478. * 编 号: No161
  4479. * 函 数 名: HBI_IsExistsOfCurCorrectTemplate(新增)
  4480. * 功能描述: 根据模板类型判断当前模板文件是否存在
  4481. * 参数说明:
  4482. In: void *handle - 句柄(无符号指针)
  4483. In: int tempType - 模板类型(默认为0),0-offset template;1-gain template;2-defect template;3-defect map template;4-gainb template;
  4484. * 返 回 值:int
  4485. 0 - 成功
  4486. 非0 - 失败
  4487. * 备 注:
  4488. *********************************************************/
  4489. HBI_FPD_DLL int __stdcall HBI_IsExistsOfCurCorrectTemplate(void* handle, int tempType=0);
  4490. /*********************************************************
  4491. * No: No162
  4492. * Function Name: HBI_GetCurZoomData(newly increased)
  4493. * Function Description: Get the current ZOOM area size data
  4494. * Parameter Description:
  4495. In: void *handle - unsigned handle pointer
  4496. Out: unsigned int *pZoomLeft - Zoom Rect Left
  4497. unsigned int *pZoomTop - Zoom Rect Top
  4498. unsigned int *pZoomWidth - Zoom Rect Width
  4499. unsigned int *pZoomHeight - Zoom Rect Height
  4500. * Return Value:int
  4501. 0: Success
  4502. Non-0: Failure
  4503. * Comment:Rect data, where all are 0, indicating the full picture.
  4504. * 编 号: No162
  4505. * 函 数 名: HBI_GetCurZoomData(新增)
  4506. * 功能描述: 获取当前ZOOM区域大小数据
  4507. * 参数说明:
  4508. In: void *handle - 句柄(无符号指针)
  4509. Out: unsigned int *pZoomLeft - Zoom Rect Left
  4510. unsigned int *pZoomTop - Zoom Rect Top
  4511. unsigned int *pZoomWidth - Zoom Rect Width
  4512. unsigned int *pZoomHeight - Zoom Rect Height
  4513. * 返 回 值:int
  4514. 0 - 成功
  4515. 非0 - 失败
  4516. * 备 注:Rect其中全部为0,表示全图。
  4517. *********************************************************/
  4518. HBI_FPD_DLL int __stdcall HBI_GetCurZoomRect(void* handle, unsigned int *pZoomLeft, unsigned int *pZoomTop, unsigned int * pZoomWidth, unsigned int *pZoomHeight);
  4519. /*********************************************************
  4520. * No: No163
  4521. * Function Name: HBI_GetCurrentCorrectFileName(newly increased)
  4522. * Function Description: Get the current template file name
  4523. * Parameter Description:
  4524. In: void *handle - unsigned handle pointer
  4525. In: int tempType -Template type (default is 0),0-offset template;1-gain template;2-defect template;3-defect map template;4-gainb template;
  4526. * Return Value:char*
  4527. NULL - Failure
  4528. char* - Return file name
  4529. * Comment:
  4530. * 编 号: No163
  4531. * 函 数 名: HBI_GetCurrentCorrectFileName(新增)
  4532. * 功能描述: 获取当前模板文件名称
  4533. * 参数说明:
  4534. In: void *handle - 句柄(无符号指针)
  4535. In: int tempType - 模板类型(默认为0),0-offset template;1-gain template;2-defect template;3-defect map template;4-gainb template;
  4536. * 返 回 值:char*
  4537. NULL - 失败
  4538. char* - 返回文件名称
  4539. * 备 注:
  4540. *********************************************************/
  4541. HBI_FPD_DLL char* __stdcall HBI_GetCurrentCorrectFileName(void* handle, int tempType=0);
  4542. /*********************************************************
  4543. * No: No164
  4544. * Function Name: HBI_GetHbiUserCode
  4545. * Function Description: Get customer name information
  4546. * Parameter Description:
  4547. In: void *handle - unsigned handle pointer
  4548. In/Out: char *szUserCode - A buff greater than 8 bytes is passed in, and the customer name information is backfilled after success
  4549. * Return Value:int
  4550. 0: Success
  4551. Non-0: Failure
  4552. * Comment:
  4553. * 编 号: No164
  4554. * 函 数 名: HBI_GetHbiUserCode
  4555. * 功能描述: 获取客户名称信息
  4556. * 参数说明:
  4557. In: void *handle - 句柄(无符号指针)
  4558. In/Out: char *szUserCode - 传入>8个字节的buff,成功后回填客户名称信息
  4559. * 返 回 值:int
  4560. 0 - 成功
  4561. 非0 - 失败
  4562. * 备 注:
  4563. *********************************************************/
  4564. HBI_FPD_DLL int __stdcall HBI_GetHbiUserCode(void* handle, char* szUserCode);
  4565. /*********************************************************
  4566. * No: No165
  4567. * Function Name: HBI_GetHbiProductCode
  4568. * Function Description: Get client product number
  4569. * Parameter Description:
  4570. In: void *handle - unsigned handle pointer
  4571. In/Out: char *szProductCode -Get the customer name information, pass in a buff greater than 16 bytes, and backfill the client product number after success
  4572. * Return Value:int
  4573. 0: Success
  4574. Non-0: Failure
  4575. * Comment:
  4576. * 编 号: No165
  4577. * 函 数 名: HBI_GetHbiProductCode
  4578. * 功能描述: 获取客户端产品编号
  4579. * 参数说明:
  4580. In: void *handle - 句柄(无符号指针)
  4581. In/Out: char *szProductCode -传入>16个字节的buff,成功后回填客户端产品编号
  4582. * 返 回 值:int
  4583. 0 - 成功
  4584. 非0 - 失败
  4585. * 备 注:
  4586. *********************************************************/
  4587. HBI_FPD_DLL int __stdcall HBI_GetHbiProductCode(void* handle, char* szProductCode);
  4588. /*********************************************************
  4589. * No: No166
  4590. * Function name: HBI_ SetWorkModeOfComs (new)
  4591. * Function description: Set the working mode of COMS chip
  4592. * Parameter Description:
  4593. In: void * handle - Handle (unsigned point)
  4594. int nMode - The operating mode of the COMS chip
  4595. [0] - Indicators DRS mode
  4596. [1] - Indicators DDS mode
  4597. Out: None
  4598. * Return value: int
  4599. 0- Success
  4600. Non 0- Failed
  4601. * Remarks:
  4602. * 编 号: No166
  4603. * 函 数 名: HBI_SetWorkModeOfComs(新增)
  4604. * 功能描述: 设置COMS芯片的工作模式
  4605. * 参数说明:
  4606. In: void *handle - 句柄(无符号指针)
  4607. int nMode - COMS芯片的工作模式
  4608. [0]-表示DRS模式
  4609. [1]-表示DDS模式
  4610. Out: 无
  4611. * 返 回 值:int
  4612. 0 - 成功
  4613. 非0 - 失败
  4614. * 备 注:
  4615. *********************************************************/
  4616. HBI_FPD_DLL int __stdcall HBI_SetWorkModeOfComs(void* handle, int nMode);
  4617. /*********************************************************
  4618. * No: No167
  4619. * Function name: HBI_GetWorkModeOfComs
  4620. * Function description: Obtain the working mode of COMS chip (newly added)
  4621. * Parameter Description:
  4622. In: void * handle - Handle (unsigned pointer)
  4623. Out: None
  4624. * Return value: int
  4625. [0] - Indicates DRS mode
  4626. [1] - Indicates DDS mode
  4627. *Remarks:
  4628. * 编 号: No167
  4629. * 函 数 名: HBI_GetWorkModeOfComs
  4630. * 功能描述: 获取COMS芯片的工作模式(新增)
  4631. * 参数说明:
  4632. In: void *handle - 句柄(无符号指针)
  4633. Out: 无
  4634. * 返 回 值:int
  4635. [0]-表示DRS模式
  4636. [1]-表示DDS模式
  4637. * 备 注:
  4638. *********************************************************/
  4639. HBI_FPD_DLL int __stdcall HBI_GetWorkModeOfComs(void* handle);
  4640. /*********************************************************
  4641. * No: No168
  4642. * Function name: HBI_GetMtuAndReceiveBuffers
  4643. * Function description: Obtain network MTU size and receive buffer size (newly added)
  4644. * Parameter Description:
  4645. In: void * handle - Handle (unsigned pointer)
  4646. Out: None
  4647. * Return value: int
  4648. 0- Success
  4649. Non 0- Failed
  4650. *Remarks:
  4651. * 编 号: No168
  4652. * 函 数 名: HBI_GetMtuAndReceiveBuffers
  4653. * 功能描述:获取网络MTU大小和接收缓冲区大小
  4654. * 参数说明:
  4655. In: void * handle - 句柄(无符号指针)
  4656. Out: 无
  4657. * 返 回 值:int
  4658. 0 - 成功
  4659. 非0 - 失败
  4660. * 备 注:
  4661. *********************************************************/
  4662. HBI_FPD_DLL int _stdcall HBI_GetMtuAndReceiveBuffers(void* handle, unsigned long* mtusize, int* rcvsize);
  4663. // 连续采集重传使能 add by mhyang 20230605
  4664. /*********************************************************
  4665. * No: No169
  4666. * Function name: HBI_RetransmitPacketEnable
  4667. * Function description: Continuous acquisition retransmission enable (newly added)
  4668. * Parameter Description:
  4669. In: void * handle - Handle (unsigned pointer)
  4670. unsigned int nRetransmitted - data retransmission type,0:Re-Transmit Data,other:Prohibit data retransmission.
  4671. Out: None
  4672. * Return value: int
  4673. 0- Success
  4674. Non 0- Failed
  4675. * Remarks:
  4676. * No: No169
  4677. * 函 数 名: HBI_RetransmitPacketEnable
  4678. * 功能描述: 连续采集重传使能 add by mhyang 20230605
  4679. * 参数说明:
  4680. In: void * handle - 句柄(无符号指针)
  4681. unsigned int nRetransmitted - 数据重传开关,0:重传,其他:不发起重传
  4682. Out: 无
  4683. * 返 回 值:int
  4684. 0 - 成功
  4685. 非0 - 失败
  4686. * 备 注:
  4687. *********************************************************/
  4688. HBI_FPD_DLL int __stdcall HBI_RetransmitPacketEnable(void* handle, unsigned int nRetransmitted);
  4689. /*********************************************************
  4690. * No: No170
  4691. * Function name: HBI_SetFpsOfTime(new)
  4692. * Function description: Set frame rate control time, support subtle
  4693. * Parameter Description:
  4694. In: void *handle - Handle (unsigned pointer)
  4695. unsigned int untimems - time interval,Unit is milliseconds,> 0ms
  4696. unsigned short ustimeus - time interval,The unit is microseconds,>= 0ms.[0,999]
  4697. Out: None
  4698. * Return value:int
  4699. 0 - Success
  4700. Non 0 - Failed
  4701. * Remarks:eg 16 fps,ntimems=62ms, ntimeus=8um
  4702. * 编 号: No170
  4703. * 函 数 名: HBI_SetFpsOfTime(新增)
  4704. * 功能描述: 设置帧率控制时间
  4705. * 参数说明:
  4706. In: void *handle - 句柄(无符号指针)
  4707. unsigned int untimems - 间隔时间,单位是毫秒ms,> 0ms
  4708. unsigned short ustimeus - 间隔时间,单位是微秒us,>= 0ms.[0,999]
  4709. Out: 无
  4710. * 返 回 值:int
  4711. 0 - 成功
  4712. 非0 - 失败
  4713. * 备 注:比如16帧,ntimems=62ms, ntimeus=8um
  4714. *********************************************************/
  4715. HBI_FPD_DLL int __stdcall HBI_SetFpsOfTime(void* handle, unsigned int untimems, unsigned short ustimeus =0);
  4716. /*********************************************************
  4717. * No: No171
  4718. * Function name: HBI_SetFirmwareOvrelay(new)
  4719. * Function description: Set firmware overlay frame rate
  4720. * Parameter Description:
  4721. In: void *handle - Handle (unsigned pointer)
  4722. unsigned int noverlaynum -[0,255],0-Firmware not stacked,>0-Overlay frame rate
  4723. Out: None
  4724. * Return value:int
  4725. 0 - Success
  4726. Non 0 - Failed
  4727. * Remarks:
  4728. * 编 号: No171
  4729. * 函 数 名: HBI_SetFirmwareOverlay(新增)
  4730. * 功能描述: 设置固件叠加帧数
  4731. * 参数说明:
  4732. In: void *handle - 句柄(无符号指针)
  4733. unsigned int noverlaynum -[0,255],其中0-固件不叠加,>0-叠加帧数
  4734. Out: 无
  4735. * 返 回 值:int
  4736. 0 - 成功
  4737. 非0 - 失败
  4738. * 备 注:
  4739. *********************************************************/
  4740. HBI_FPD_DLL int __stdcall HBI_SetFirmwareOverlay(void* handle, unsigned int noverlaynum=0);
  4741. /*********************************************************
  4742. * No: No172
  4743. * Function name: HBI_RetransMissFrameEx(new)
  4744. * Function description: Full frame retransmission
  4745. * Parameter Description:
  4746. In: void *handle - Handle (unsigned pointer)
  4747. unsigned int frameid -Frame number to be retransmitted
  4748. Out: None
  4749. * Return value:int
  4750. 0 - Success
  4751. Non 0 - Failed
  4752. * Remarks:
  4753. * 编 号: No172
  4754. * 函 数 名: HBI_RetransMissFrameEx(新增)
  4755. * 功能描述: 整帧重传
  4756. * 参数说明:
  4757. In: void *handle - 句柄(无符号指针)
  4758. unsigned int frameid -待重传帧号
  4759. Out: 无
  4760. * 返 回 值:int
  4761. 0 - 成功
  4762. 非0 - 失败
  4763. * 备 注:
  4764. *********************************************************/
  4765. HBI_FPD_DLL int __stdcall HBI_RetransMissFrameEx(void* handle, unsigned int frameid);
  4766. /*********************************************************
  4767. * No: No173
  4768. * Function name: HBI_TriggerPgaBinningAcqTimeCorrect
  4769. * Function description: trigger mode, PGA gain stage, binning type, frame speed, correction enabling setting
  4770. * Parameter Description:
  4771. In: void *handle - Handle (unsigned pointer)
  4772. int triggerMode // Work mode
  4773. // Static:
  4774. // 01: Software trigger mode;
  4775. // 02: Clear;
  4776. // 03: High voltage generator(hvg) trigger mode;
  4777. // 04: Auto exposure detection mode.
  4778. // Dynamic:
  4779. // 05: Hvg pulse sync in trigger mode;
  4780. // 06: Fpd pulse sync out trigger Mode;
  4781. // 07: Free run mode.
  4782. int nPgaLevel // PGA gain stage
  4783. //[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,[7]-9.6pC
  4784. //[8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC,Default: 7.2 pC.
  4785. unsigned char binning
  4786. // 1: 1x1,
  4787. // 2: 2x2,
  4788. // 3: 3x3,
  4789. // 4: 4x4,
  4790. int acqtime // Live acquisition span time, unit: ms
  4791. IMAGE_CORRECT_ENABLE* pCorrect,refer to <<HbiType.h>>
  4792. int nfeedback // 1: Automatic feedback config parameters if setting is successful
  4793. // Non-1: Feedback setting success status
  4794. * Return value:int
  4795. 0 - Success
  4796. Non 0 - Failed
  4797. * Remarks:
  4798. * 编 号: No173
  4799. * 函 数 名: HBI_TriggerPgaBinningAcqTimeCorrect
  4800. * 功能描述: 设置触发模式、PGA档位、binning方式以及帧率(采集图像时间间隔)、矫正使能
  4801. * 参数说明:
  4802. In: void *handle - 句柄(无符号指针)
  4803. int triggerMode - 触发模式
  4804. 静态平板(每秒1帧):1-软触发,2-Clear,3-高压触发,4-FreeAED
  4805. 动态平板(每秒2帧以上):05-Dynamic:Hvg Sync Mode,06-Dynamic:Fpd Sync Mode,7-Continue Mode
  4806. int nPgaLevel - PGA 档位,[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,默认7.2pC,[7]-9.6pC
  4807. [8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC
  4808. unsigned char binning - 1:1x1,2:2x2,3:3x3,4:4x4,其他不支持
  4809. int acqtime - 间隔时间,单位是毫秒ms,大于0
  4810. IMAGE_CORRECT_ENABLE* pCorrect,见HbiType.h。
  4811. int nfeedback - 1:设置成功后自动反馈固件参数,非1:反馈设置成功信号(见参数和信号见回调函数)
  4812. * 返 回 值:int
  4813. 0 - 成功
  4814. 非0 - 失败
  4815. * 备 注:
  4816. *********************************************************/
  4817. HBI_FPD_DLL int __stdcall HBI_TriggerPgaBinningAcqTimeCorrect(void* handle, int triggerMode, int nPgaLevel, unsigned char binning, int acqtime, IMAGE_CORRECT_ENABLE* pCorrect);
  4818. /*********************************************************
  4819. * No: No174
  4820. * Function name: HBI_SetLogSwitch
  4821. * Function description: Log Switch
  4822. * Parameter Description:
  4823. In: bool bwrite - true:write a log,false:do not write logs
  4824. * Return value:None
  4825. * Remarks:
  4826. * 编 号: No174
  4827. * 函 数 名: HBI_SetLogSwitch
  4828. * 功能描述: 日志开关
  4829. * 参数说明:
  4830. In: bool bwrite - true:表示写日志,false:表示不写日志
  4831. * 返 回 值:无
  4832. * 备 注:调用默认或不调用该接口DLL都写日志,不写日志,设置成false即可。
  4833. *********************************************************/
  4834. HBI_FPD_DLL void __stdcall HBI_SetLogSwitch(bool bwrite = true);
  4835. /*********************************************************
  4836. * No: No175
  4837. * Function name: HBI_RetransMissPacketEx(new)
  4838. * Function description: Single/multiple packet retransmission
  4839. * Parameter Description:
  4840. In: void *handle - Handle (unsigned pointer)
  4841. unsigned int frameid -Frame number to be retransmitted
  4842. unsigned int startpackagenum -Starting package number
  4843. unsigned int endpackagenum -结End package number
  4844. Out: None
  4845. * Return value:int
  4846. 0 - Success
  4847. Non 0 - Failed
  4848. * Remarks:
  4849. * 编 号: No175
  4850. * 函 数 名: HBI_RetransMissPacketEx(新增)
  4851. * 功能描述: 单包/多包重传
  4852. * 参数说明:
  4853. In: void *handle - 句柄(无符号指针)
  4854. unsigned int frameid -待重传帧号
  4855. unsigned int startpackagenum -起始包号
  4856. unsigned int endpackagenum -结束包号
  4857. Out: 无
  4858. * 返 回 值:int
  4859. 0 - 成功
  4860. 非0 - 失败
  4861. * 备 注:
  4862. *********************************************************/
  4863. HBI_FPD_DLL int __stdcall HBI_RetransMissPacketEx(void* handle, unsigned int frameid, unsigned int startpackagenum, unsigned int endpackagenum);
  4864. /*********************************************************
  4865. * No: No176
  4866. * Function name: HBI_FirmwareReset(new)
  4867. * Function description: Firmware reset
  4868. * Parameter Description:
  4869. In: void *handle - Handle (unsigned pointer)
  4870. Out: None
  4871. * Return value:int
  4872. 0 - Success
  4873. Non 0 - Failed
  4874. * Remarks:Phenomenon - Frame Number Zeroing
  4875. * 编 号: No176
  4876. * 函 数 名: HBI_FirmwareReset(新增)
  4877. * 功能描述: 固件重置
  4878. * 参数说明:
  4879. In: void *handle - 句柄(无符号指针)
  4880. Out: 无
  4881. * 返 回 值:int
  4882. 0 - 成功
  4883. 非0 - 失败
  4884. * 备 注:现象-帧号归零
  4885. *********************************************************/
  4886. HBI_FPD_DLL int __stdcall HBI_FirmwareReset(void* handle);
  4887. /*********************************************************
  4888. * No: No177
  4889. * Function name: HBI_FirmwareManagementTempalteType(new)
  4890. * Function description: Firmware template management template method
  4891. * Parameter Description:
  4892. In: void * handle - Handle (unsigned pointer)
  4893. unsigned int uType - Firmware template management template method
  4894. 0-by binning type,
  4895. 1-by Muti-Mode type
  4896. others-by binning type
  4897. Out: None
  4898. * Return value:int
  4899. 0 - Success
  4900. Non 0 - Failed
  4901. * Remarks:
  4902. * No: No177
  4903. * 函 数 名: HBI_FirmwareManagementTempalteType(新增)
  4904. * 功能描述: 固件模板管理模板方式
  4905. * 参数说明:
  4906. In: void * handle - 句柄(无符号指针)
  4907. unsigned int uType - 固件模板管理模板方式,0-by binning type,1-by Muti-Mode type,others-by binning type
  4908. Out: 无
  4909. * 返 回 值:int
  4910. 0 - 成功
  4911. 非0 - 失败
  4912. * 备 注:
  4913. *********************************************************/
  4914. HBI_FPD_DLL int __stdcall HBI_FirmwareManagementTempalteType(void* handle, unsigned int uType);
  4915. /*********************************************************
  4916. * No: No178
  4917. * Function name: HBI_SetValidModeItemNumber(new)
  4918. * Function description: Set the number of valid Mode items
  4919. * Parameter Description:
  4920. In: void * handle - Handle (unsigned pointer)
  4921. unsigned int uNumber - Mode item number,[0,10]
  4922. Out: None
  4923. * Return value:int
  4924. 0 - Success
  4925. Non 0 - Failed
  4926. * Remarks:
  4927. * No: No178
  4928. * 函 数 名: HBI_SetValidModeItemNumber(新增)
  4929. * 功能描述: 设置有效Mode项数(Set the number of valid Mode items)
  4930. * 参数说明:
  4931. In: void * handle - 句柄(无符号指针)
  4932. unsigned int uNumber - Mode项数目,uNumber:[0,10]
  4933. Out: 无
  4934. * 返 回 值:int
  4935. 0 - 成功
  4936. 非0 - 失败
  4937. * 备 注:
  4938. *********************************************************/
  4939. HBI_FPD_DLL int __stdcall HBI_SetValidModeItemNumber(void* handle, unsigned int uNumber);
  4940. ////////////////////////////////////////////////////////////////////////
  4941. // The following HBI_ M* interface function not only updates the current firmware control parameters, but also synchronizes the parameters in the current Mode item
  4942. // 以下HBI_M***新增接口函数,除更新当前固件控制参数,另外同步当前Mode项中的参数
  4943. ////////////////////////////////////////////////////////////////////////
  4944. /*********************************************************
  4945. * No: No179
  4946. * Function name: HBI_MUpdateTriggerMode(new)
  4947. * Function description: trigger mode setting
  4948. * Parameter Description:
  4949. In: void *handle - Handle (unsigned pointer)
  4950. int _triggerMode- trigger mode
  4951. // 1: Software trigger mode
  4952. // 3: High voltage generator trigger mode
  4953. // 4: AED trigger mode
  4954. // 5-Dynamic:Hvg Sync Mode
  4955. // 6-Dynamic:Fpd Sync Mode
  4956. // 7-Dynamic:Fpd Continue
  4957. // 8-SAEC。
  4958. // others-invaild
  4959. Out:None
  4960. * Return value:int
  4961. 0 - Success
  4962. Non 0 - Failed
  4963. * Remarks:
  4964. * 编 号: No179
  4965. * 函 数 名: HBI_MUpdateTriggerMode(新增)
  4966. * 功能描述: 设置触发模式
  4967. * 参数说明:
  4968. In: void *handle - 句柄(无符号指针)
  4969. int _triggerMode,1-软触发,3-高压触发,4-FreeAED,
  4970. 5-Dynamic:Hvg Sync Mode
  4971. 6-Dynamic:Fpd Sync Mode
  4972. 7-Dynamic:Fpd Continue
  4973. 8-SAEC。
  4974. Out:无
  4975. * 返 回 值:int
  4976. 0 - 成功
  4977. 非0 - 失败
  4978. * 备 注:
  4979. *********************************************************/
  4980. HBI_FPD_DLL int __stdcall HBI_MUpdateTriggerMode(void* handle, int _triggerMode);
  4981. /*********************************************************
  4982. * No: No180
  4983. * Function name: HBI_MSetBinning(new)
  4984. * Function description: Binning mode setting
  4985. * Parameter Description:
  4986. In:
  4987. void *handle - Handle (unsigned pointer)
  4988. unsigned int ubinning - 1:1x1,2:2x2,3:3x3,4:4x4
  4989. Out:None
  4990. * Return value:int
  4991. 0 - Success
  4992. Non 0 - Failed
  4993. * Remarks:
  4994. * 编 号: No180
  4995. * 函 数 名: HBI_MSetBinning(新增)
  4996. * 功能描述: 设置图像binning方式
  4997. * 参数说明:
  4998. In:
  4999. void *handle - 句柄(无符号指针)
  5000. unsigned int ubinning - 1:1x1,2:2x2,3:3x3,4:4x4
  5001. Out:无
  5002. * 返 回 值:int
  5003. 0 - 成功
  5004. 非0 - 失败
  5005. * 备 注:
  5006. *********************************************************/
  5007. HBI_FPD_DLL int __stdcall HBI_MSetBinning(void* handle, unsigned int ubinning);
  5008. /*********************************************************
  5009. * No: No181
  5010. * Function name: HBI_MSetPGALevel(new)
  5011. * Function description: PGA gain stage setting
  5012. * Parameter Description:
  5013. In: void *handle - Handle (unsigned pointer)
  5014. int mode // PGA gain stage
  5015. //[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,[7]-9.6pC
  5016. //[8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC,Default: 7.2 pC.
  5017. Out: None
  5018. * Return value:int
  5019. 0 - Success
  5020. Non 0 - Failed
  5021. * Remarks:
  5022. * 编 号: No181
  5023. * 函 数 名: HBI_MSetPGALevel(新增)
  5024. * 功能描述: 设置增益挡位,即设置可编程积分电容档位,提高灵敏度
  5025. * 参数说明:
  5026. In: void *handle - 句柄(无符号指针)
  5027. int mode - 模式
  5028. [n]-Invalid
  5029. [1]-0.6pC
  5030. [2]-1.2pC
  5031. [3]-2.4pC
  5032. [4]-3.6pC
  5033. [5]-4.8pC
  5034. [6]-7.2pC,默认7.2pC
  5035. [7]-9.6pC
  5036. [8]-LFW (COMS)
  5037. [9]-HFW (COMS)
  5038. [10]-0.3pC
  5039. [11]-0.15pC
  5040. Out: 无
  5041. * 返 回 值:int
  5042. 0 - 成功
  5043. 非0 - 失败
  5044. * 备 注:
  5045. *********************************************************/
  5046. HBI_FPD_DLL int __stdcall HBI_MSetPGALevel(void* handle, int nGainLevel);
  5047. /*********************************************************
  5048. * No: No182
  5049. * Function name: HBI_MSetRoiMode(new)
  5050. * Function Description: -silicon ROI region setting function.
  5051. * Currentlyonly 1613-125um、3030-140um、4343-100um、2530-100um are supported.
  5052. * Parameter Description:
  5053. In: void *handle - unsigned handle pointer
  5054. int nMode - ROI mode
  5055. for example,1613-125um:0-Normal Image,w*h(1248*1024), Rect(0,0,1247,1023);
  5056. 1-w*h(32*1024), Rect(608,0,639,1023);
  5057. 2-w*h(1248*32), Rect(0,496,1247,527);
  5058. 3-w*h(1248*64), Rect(0,480,1247,543);
  5059. 4-w*h(1248*128),Rect(0,448,1247,575);
  5060. Others-Normal Image。
  5061. 3030-140um:0-Normal Image,w*h(2048*2048), Rect(0,0,2047,2047);
  5062. 1-w*h(1024*2048),Rect(512,0,1535,2047);
  5063. Others-Normal Image。
  5064. 2530-100um:0-Normal Image,w*h(2432*3072), Rect(0,0,2431,3071);
  5065. 1-w*h(1808*1800),Rect(316,636,2115,2435);
  5066. 2-w*h(1312*1300),Rect(566,886,1865,2185);
  5067. Others-Normal Image。
  5068. int nfeedback // 1: Automatic feedback config parameters if setting is successful
  5069. // Non-1: Feedback setting success status
  5070. Out: Null
  5071. * Return Value:int
  5072. 0: Success
  5073. Non-0: Failure
  5074. * Comment:only 1613-125um、3030-140um、2530-100um are supported。
  5075. * 编 号: No182
  5076. * 函 数 名: HBI_MSetRoiMode(新增)
  5077. * 功能描述: 非晶硅ROI区域设置函数
  5078. * 当前仅支持平板类型包括1613-125um、3030-140um、4343-100um、2530-100um。
  5079. * 参数说明:
  5080. In: void *handle - 句柄(无符号指针)
  5081. int nMode - Roi模式
  5082. 其中,1613-125um:0-Normal Image,w*h(1248*1024), Rect(0,0,1247,1023);
  5083. 1-w*h(32*1024), Rect(608,0,639,1023);
  5084. 2-w*h(1248*32), Rect(0,496,1247,527);
  5085. 3-w*h(1248*64), Rect(0,480,1247,543);
  5086. 4-w*h(1248*128),Rect(0,448,1247,575);
  5087. 其他-Normal Image。
  5088. 3030-140um:0-Normal Image,w*h(2048*2048), Rect(0,0,2047,2047);
  5089. 1-w*h(1024*2048),Rect(512,0,1535,2047);
  5090. 其他-Normal Image。
  5091. 2530-100um:0-Normal Image,w*h(2432*3072), Rect(0,0,2431,3071);
  5092. 1-w*h(1808*1800),Rect(316,636,2115,2435);
  5093. 2-w*h(1312*1300),Rect(566,886,1865,2185);
  5094. 其他-Normal Image。
  5095. int nfeedback - 1:设置成功后自动反馈固件参数,非1:反馈设置成功信号(见参数和信号见回调函数),默认为1
  5096. Out: 无
  5097. * 返 回 值:int
  5098. 0 - 成功
  5099. 非0 - 失败
  5100. * 备 注:当前仅支持平板类型包括1613-125um、3030-140um、4343-100um、2530-100um。
  5101. *********************************************************/
  5102. HBI_FPD_DLL int __stdcall HBI_MSetRoiMode(void* handle, int nMode, int nfeedback = 1);
  5103. /*********************************************************
  5104. * No: No183
  5105. * Function name: HBI_MSetZoomModeRect(new)
  5106. * Function Description: The ZOOM Mode region setting function for CMOS tablets
  5107. * currently supports only CMOS - 1412-50um and CMOS - 0606-50um ,1917-120umtablet types.
  5108. * Parameter Description:
  5109. In: void *handle - unsigned handle pointer
  5110. CMOS_ZOOM_RECT stZoomRect - Zoom region
  5111. The region is represented by left, top, right, and bottom.
  5112. for example, when left, top, right and bottom are illegal values, the image will display the full image by default,
  5113. 1>When left=top=right=bottom=0, the whole picture is displayed;
  5114. 2>When eft<0 or left>width, the whole picture will be displayed, and others are the same.
  5115. int nfeedback // 1: Automatic feedback config parameters if setting is successful
  5116. // Non-1: Feedback setting success status
  5117. Out: Null
  5118. * Return Value:int
  5119. 0: Success
  5120. Non-0: Failure
  5121. * Comment:
  5122. * 编 号: No183
  5123. * 函 数 名: HBI_MSetZoomModeRect(新增)
  5124. * 功能描述: CMOS ZOOM Mode区域设置函数
  5125. * 当前仅支持平板类型包括CMOS-1412-50um、CMOS-0606-50um,1917-120um。
  5126. * 参数说明:
  5127. In: void *handle - 句柄(无符号指针)
  5128. CMOS_ZOOM_RECT stZoomRect - Zoom区域
  5129. 其中,区域用left,top,right,bottom来表示。
  5130. 例如:当left,top,right,bottom为非法数值时,图像默认显示全图,
  5131. 1>left=top=right=bottom=0时,显示全图;
  5132. 2>left<0或left>width时,显示全图,其他雷同。
  5133. int nfeedback - 1:设置成功后自动反馈固件参数,非1:反馈设置成功信号(见参数和信号见回调函数),默认为1
  5134. Out: 无
  5135. * 返 回 值:int
  5136. 0 - 成功
  5137. 非0 - 失败
  5138. * 备 注:当前仅支持平板类型包括CMOS-1412-50um、CMOS-0606-50um。
  5139. *********************************************************/
  5140. HBI_FPD_DLL int __stdcall HBI_MSetZoomModeRect(void* handle, CMOS_ZOOM_RECT stZoomRect, int nfeedback = 1);
  5141. /*********************************************************
  5142. * No: No184
  5143. * Function name: HBI_MSetSelfDumpingTime(new)
  5144. * Function Description: // Self dumping span time setting
  5145. * Parameter Description:
  5146. In: void *handle // unsigned handle pointer
  5147. int time // Self dumping span time, unit: ms
  5148. Out: Null
  5149. * Return Value: int
  5150. // 0: Success
  5151. // Non-0: Failure,refer to<<HbiError.h>>
  5152. * Comment:
  5153. * 编 号: No184
  5154. * 函 数 名: HBI_MSetSelfDumpingTime(新增)
  5155. * 功能描述: 设置采集时间间隔(动态平板)
  5156. * 参数说明:
  5157. In: void *handle - 句柄(无符号指针)
  5158. int time - 间隔时间,单位是毫秒ms,> 0ms
  5159. Out: 无
  5160. * 返 回 值:int
  5161. 0 - 成功
  5162. 非0 - 失败
  5163. * 备 注:
  5164. *********************************************************/
  5165. HBI_FPD_DLL int __stdcall HBI_MSetSelfDumpingTime(void* handle, int time);
  5166. /*********************************************************
  5167. * No: No185
  5168. * Function name: HBI_MSetLiveAcquisitionTime(new)
  5169. * Function Description: // Live acquisition span time setting (apply to static and wireless type FPD)
  5170. * Parameter Description:
  5171. In: void *handle // unsigned handle pointer
  5172. int time // Live acquisition span time, unit: ms
  5173. Out: Null
  5174. * Return Value: int
  5175. // 0: Success
  5176. // Non-0: Failure,refer to<<HbiError.h>>
  5177. * Comment:
  5178. * 编 号: No185
  5179. * 函 数 名: HBI_MSetLiveAcquisitionTime(静态平板)(新增)
  5180. * 功能描述: 设置采集时间间隔(即可设置帧率)
  5181. * 参数说明:
  5182. In: void *handle - 句柄(无符号指针)
  5183. int time - 间隔时间,单位是毫秒ms,> 0ms
  5184. Out: 无
  5185. * 返 回 值:int
  5186. 0 - 成功
  5187. 非0 - 失败
  5188. * 备 注:
  5189. *********************************************************/
  5190. HBI_FPD_DLL int __stdcall HBI_MSetLiveAcquisitionTime(void* handle, int time);
  5191. /*********************************************************
  5192. * No: No186
  5193. * Function name: HBI_MSetSinglePrepareTime(new)
  5194. * Function Description: // Prepare delay time setting, which is also called exposure window
  5195. * Parameter Description:
  5196. In: void *handle // unsigned handle pointer
  5197. Out: int *out_itime // Time(0~10000), unit: ms
  5198. // 0: “HBI_Prepare” and “HBI_SingleAcquisition” command are combined to realize single image acquisition
  5199. // Non-0: FPD will delay “Prepare Delay Time” and automatically acquire one single image when the detector receives “HBI_Prepare” command.
  5200. * Return Value: int
  5201. // 0: Success
  5202. // Non-0: Failure,refer to<<HbiError.h>>
  5203. * Comment:
  5204. * 编 号: No186
  5205. * 函 数 名: HBI_MSetSinglePrepareTime(新增)
  5206. * 功能描述: 设置软触发单帧采集清空和采集之间的时间间隔
  5207. * 参数说明:
  5208. In: void *handle - 句柄(无符号指针)
  5209. int *in_itime - 时间 [0~10000] 单位:mm
  5210. 0-表示软触发单帧采集先HBI_SinglePrepare后HBI_SingleAcquisition完成单帧采集
  5211. 非0-表示软触发单帧采集,只需HBI_SinglePrepare即可按照延时时间完成单帧采集
  5212. * 返 回 值:int
  5213. 0 - 成功
  5214. 非0 - 失败
  5215. * 备 注:
  5216. *********************************************************/
  5217. HBI_FPD_DLL int __stdcall HBI_MSetSinglePrepareTime(void* handle, int in_itime);
  5218. /*********************************************************
  5219. * No: No187
  5220. * Function name: HBI_MSetFpsOfTime(new)
  5221. * Function description: Set frame rate control time, support subtle
  5222. * Parameter Description:
  5223. In: void *handle - Handle (unsigned pointer)
  5224. unsigned int untimems - time interval,Unit is milliseconds,> 0ms
  5225. unsigned short ustimeus - time interval,The unit is microseconds,>= 0ms.[0,999]
  5226. Out: None
  5227. * Return value:int
  5228. 0 - Success
  5229. Non 0 - Failed
  5230. * Remarks:eg 16fps,ntimems=62ms, ntimeus=8um
  5231. * 编 号: No187
  5232. * 函 数 名: HBI_MSetFpsOfTime(新增)
  5233. * 功能描述: 设置帧率控制时间
  5234. * 参数说明:
  5235. In: void *handle - 句柄(无符号指针)
  5236. unsigned int untimems - 间隔时间,单位是毫秒ms,> 0ms
  5237. unsigned short ustimeus - 间隔时间,单位是微秒us,>= 0ms.[0,999]
  5238. Out: 无
  5239. * 返 回 值:int
  5240. 0 - 成功
  5241. 非0 - 失败
  5242. * 备 注:比如16帧,ntimems=62ms, ntimeus=8um
  5243. *********************************************************/
  5244. HBI_FPD_DLL int __stdcall HBI_MSetFpsOfTime(void* handle, unsigned int untimems, unsigned short ustimeus = 0);
  5245. /*********************************************************
  5246. * No: No188
  5247. * Function name: HBI_MPgaAcqTime(new)
  5248. * Function Description: // PGA gain stage, frame speed setting
  5249. * Parameter Description:
  5250. In: void *handle // unsigned handle pointer
  5251. int nPgaLevel // PGA gain stage
  5252. //[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,[7]-9.6pC
  5253. //[8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC,Default: 7.2 pC.
  5254. int acqtime // Live acquisition span time, unit: ms
  5255. int nfeedback // 1: Automatic feedback config parameters if setting is successful
  5256. // Non-1: Feedback setting success status
  5257. * Return Value: int
  5258. // 0: Success
  5259. // Non-0: Failure
  5260. * Comment:
  5261. * 编 号: No188
  5262. * 函 数 名: HBI_MPgaAcqTime(新增)
  5263. * 功能描述: 设置PGA档位、及帧率(采集图像时间间隔)
  5264. * 参数说明:
  5265. In: void *handle - 句柄(无符号指针)
  5266. int nPgaLevel - PGA 档位,[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,默认7.2pC,[7]-9.6pC
  5267. [8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC
  5268. int acqtime - 间隔时间,单位是毫秒ms,大于0
  5269. int nfeedback - 1:设置成功后自动反馈固件参数,非1:反馈设置成功信号(见参数和信号见回调函数)
  5270. * 返 回 值:int
  5271. 0 - 成功
  5272. 非0 - 失败
  5273. * 备 注:
  5274. *********************************************************/
  5275. HBI_FPD_DLL int __stdcall HBI_MPgaAcqTime(void* handle, int nPgaLevel, int acqtime, int nfeedback = 0);
  5276. /*********************************************************
  5277. * No: No189
  5278. * Function name: HBI_MPgaBinningAcqTime(new)
  5279. * Function Description: // PGA gain stage, binning, frame speed setting
  5280. * Parameter Description:
  5281. In: void *handle // unsigned handle pointer
  5282. int nPgaLevel // PGA gain stage
  5283. //[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,[7]-9.6pC
  5284. //[8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC,Default: 7.2 pC.
  5285. unsigned char binning
  5286. // 1: 1x1,
  5287. // 2: 2x2,
  5288. // 3: 3x3,
  5289. // 4: 4x4,
  5290. int acqtime // Live acquisition span time, unit: ms
  5291. int nfeedback // 1: Automatic feedback config parameters if setting is successful
  5292. // Non-1: Feedback setting success status
  5293. * Return Value:
  5294. int // 0: Success
  5295. // Non-0: Failure
  5296. * Comment:
  5297. * 编 号: No189
  5298. * 函 数 名: HBI_MPgaBinningAcqTime(新增)
  5299. * 功能描述: 设置PGA档位、binning方式以及帧率(采集图像时间间隔)
  5300. * 参数说明:
  5301. In: void *handle - 句柄(无符号指针)
  5302. int nPgaLevel - PGA 档位,[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,默认7.2pC,[7]-9.6pC
  5303. [8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC
  5304. unsigned char binning - 1:1x1,2:2x2,3:3x3,4:4x4,其他不支持
  5305. int acqtime - 间隔时间,单位是毫秒ms,大于0
  5306. int nfeedback - 1:设置成功后自动反馈固件参数,非1:反馈设置成功信号(见参数和信号见回调函数)
  5307. * 返 回 值:int
  5308. 0 - 成功
  5309. 非0 - 失败
  5310. * 备 注:
  5311. *********************************************************/
  5312. HBI_FPD_DLL int __stdcall HBI_MPgaBinningAcqTime(void* handle, int nPgaLevel, unsigned char binning, int acqtime, int nfeedback = 0);
  5313. /*********************************************************
  5314. * No: No190
  5315. * Function name: HBI_MTriggerAndCorrectApplay(new)
  5316. * Function Description: // Work mode and image calibration setting
  5317. * Parameter Description:
  5318. In: void *handle // unsigned handle pointer
  5319. int _triggerMode
  5320. // 1: Software trigger mode
  5321. // 3: High voltage generator trigger mode
  5322. // 4: AED trigger mode
  5323. // 5-Dynamic:Hvg Sync Mode
  5324. // 6-Dynamic:Fpd Sync Mode
  5325. // 7-Dynamic:Fpd Continue
  5326. // 8-SAEC。
  5327. IMAGE_CORRECT_ENABLE* pCorrect // refer to<< HbiType.h>>
  5328. Out: Null
  5329. * Return Value: int
  5330. // 0: Success
  5331. // Non-0: Failure,refer to<<HbiError.h>>
  5332. * Comment:
  5333. * 编 号: No190
  5334. * 函 数 名: HBI_MTriggerAndCorrectApplay(新增)
  5335. * 功能描述: 设置触发模式和图像校正使能(工作站)新版本
  5336. * 参数说明:
  5337. In: void *handle - 句柄(无符号指针)
  5338. int _triggerMode,1-软触发,3-高压触发,4-FreeAED,
  5339. 5-Dynamic:Hvg Sync Mode
  5340. 6-Dynamic:Fpd Sync Mode
  5341. 7-Dynamic:Fpd Continue
  5342. 8-SAEC。
  5343. IMAGE_CORRECT_ENABLE* pCorrect,见HbiType.h。
  5344. Out:无
  5345. * 返 回 值:int
  5346. 0 - 成功
  5347. 非0 - 失败
  5348. * 备 注:替换HBI_WorkStationInitDllCfg和HBI_QuckInitDllCfg接口
  5349. *********************************************************/
  5350. HBI_FPD_DLL int __stdcall HBI_MTriggerAndCorrectApplay(void* handle, int _triggerMode, IMAGE_CORRECT_ENABLE* pCorrect);
  5351. /*********************************************************
  5352. * No: No191
  5353. * Function name: HBI_MTriggerBinningAcqTime(new)
  5354. * Function Description: // Work mode, binning, frame speed setting
  5355. * Parameter Description:
  5356. In: void *handle // unsigned handle pointer
  5357. int triggerMode // Work mode
  5358. // Static:
  5359. // 01: Software trigger mode;
  5360. // 02: Clear;
  5361. // 03: High voltage generator(hvg) trigger mode;
  5362. // 04: Auto exposure detection mode.
  5363. // Dynamic:
  5364. // 05: Hvg pulse sync in trigger mode;
  5365. // 06: Fpd pulse sync out trigger Mode;
  5366. // 07: Free run mode.
  5367. unsigned char binning
  5368. // 1: 1x1,
  5369. // 2: 2x2,
  5370. // 3: 3x3,
  5371. // 4: 4x4,
  5372. int time // Live acquisition span time, unit: ms
  5373. // For example: 1000ms (1fps), 500ms (2fps), 250ms (4fps),125ms (8fps)
  5374. Out: Null
  5375. * Return Value:
  5376. int // 0: Success
  5377. // Non-0: Failure
  5378. * Comment:
  5379. * 编 号: No191
  5380. * 函 数 名: HBI_MTriggerBinningAcqTime(新增)
  5381. * 功能描述: 设置触发模式、binning方式以及帧率(采集图像时间间隔)
  5382. * 参数说明:
  5383. In: void *handle - 句柄(无符号指针)
  5384. int triggerMode - 触发模式
  5385. 静态平板(每秒1帧):1-软触发,2-Clear,3-高压触发,4-FreeAED
  5386. 动态平板(每秒2帧以上):05-Dynamic:Hvg Sync Mode,06-Dynamic:Fpd Sync Mode,7-Continue Mode
  5387. unsigned char binning - 1:1x1,2:2x2,3:3x3,4:4x4,其他不支持
  5388. int time - 间隔时间,单位是毫秒ms,大于0
  5389. int nfeedback - 1:设置成功后自动反馈固件参数,非1:反馈设置成功信号(见参数和信号见回调函数)
  5390. * 返 回 值:int
  5391. 0 - 成功
  5392. 非0 - 失败
  5393. * 备 注:
  5394. *********************************************************/
  5395. HBI_FPD_DLL int __stdcall HBI_MTriggerBinningAcqTime(void* handle, int triggerMode, unsigned char binning, int acqtime, int nfeedback = 0);
  5396. /*********************************************************
  5397. * No: No192
  5398. * Function name: HBI_MTriggerPgaBinningAcqTime(new)
  5399. * Function description: trigger mode, PGA gain stage, binning type, frame speed setting
  5400. * Parameter Description:
  5401. In: void *handle - Handle (unsigned pointer)
  5402. int triggerMode // Work mode
  5403. // Static:
  5404. // 01: Software trigger mode;
  5405. // 02: Clear;
  5406. // 03: High voltage generator(hvg) trigger mode;
  5407. // 04: Auto exposure detection mode.
  5408. // Dynamic:
  5409. // 05: Hvg pulse sync in trigger mode;
  5410. // 06: Fpd pulse sync out trigger Mode;
  5411. // 07: Free run mode.
  5412. int nPgaLevel // PGA gain stage
  5413. //[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,[7]-9.6pC
  5414. //[8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC,Default: 7.2 pC.
  5415. unsigned char binning
  5416. // 1: 1x1,
  5417. // 2: 2x2,
  5418. // 3: 3x3,
  5419. // 4: 4x4,
  5420. int acqtime // Live acquisition span time, unit: ms
  5421. int nfeedback // 1: Automatic feedback config parameters if setting is successful
  5422. // Non-1: Feedback setting success status
  5423. * Return value:int
  5424. 0 - Success
  5425. Non 0 - Failed
  5426. * Remarks:
  5427. * 编 号: No192
  5428. * 函 数 名: HBI_MTriggerPgaBinningAcqTime(新增)
  5429. * 功能描述: 设置触发模式、PGA档位、binning方式以及帧率(采集图像时间间隔)
  5430. * 参数说明:
  5431. In: void *handle - 句柄(无符号指针)
  5432. int triggerMode - 触发模式
  5433. 静态平板(每秒1帧):1-软触发,2-Clear,3-高压触发,4-FreeAED
  5434. 动态平板(每秒2帧以上):05-Dynamic:Hvg Sync Mode,06-Dynamic:Fpd Sync Mode,7-Continue Mode
  5435. int nPgaLevel - PGA 档位,[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,默认7.2pC,[7]-9.6pC
  5436. [8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC
  5437. unsigned char binning - 1:1x1,2:2x2,3:3x3,4:4x4,其他不支持
  5438. int acqtime - 间隔时间,单位是毫秒ms,大于0
  5439. int nfeedback - 1:设置成功后自动反馈固件参数,非1:反馈设置成功信号(见参数和信号见回调函数)
  5440. * 返 回 值:int
  5441. 0 - 成功
  5442. 非0 - 失败
  5443. * 备 注:
  5444. *********************************************************/
  5445. HBI_FPD_DLL int __stdcall HBI_MTriggerPgaBinningAcqTime(void* handle, int triggerMode, int nPgaLevel, unsigned char binning, int acqtime, int nfeedback = 0);
  5446. /*********************************************************
  5447. * No: No193
  5448. * Function name: HBI_MTriggerPgaBinningAcqTimeCorrect(new)
  5449. * Function description: trigger mode, PGA gain stage, binning type, frame speed, correction enabling setting
  5450. * Parameter Description:
  5451. In: void *handle - Handle (unsigned pointer)
  5452. int triggerMode // Work mode
  5453. // Static:
  5454. // 01: Software trigger mode;
  5455. // 02: Clear;
  5456. // 03: High voltage generator(hvg) trigger mode;
  5457. // 04: Auto exposure detection mode.
  5458. // Dynamic:
  5459. // 05: Hvg pulse sync in trigger mode;
  5460. // 06: Fpd pulse sync out trigger Mode;
  5461. // 07: Free run mode.
  5462. int nPgaLevel // PGA gain stage
  5463. //[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,[7]-9.6pC
  5464. //[8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC,Default: 7.2 pC.
  5465. unsigned char binning
  5466. // 1: 1x1,
  5467. // 2: 2x2,
  5468. // 3: 3x3,
  5469. // 4: 4x4,
  5470. int acqtime // Live acquisition span time, unit: ms
  5471. IMAGE_CORRECT_ENABLE* pCorrect,refer to <<HbiType.h>>
  5472. int nfeedback // 1: Automatic feedback config parameters if setting is successful
  5473. // Non-1: Feedback setting success status
  5474. * Return value:int
  5475. 0 - Success
  5476. Non 0 - Failed
  5477. * Remarks:
  5478. * 编 号: No193
  5479. * 函 数 名: HBI_MTriggerPgaBinningAcqTimeCorrect(新增)
  5480. * 功能描述: 设置触发模式、PGA档位、binning方式以及帧率(采集图像时间间隔)、矫正使能
  5481. * 参数说明:
  5482. In: void *handle - 句柄(无符号指针)
  5483. int triggerMode - 触发模式
  5484. 静态平板(每秒1帧):1-软触发,2-Clear,3-高压触发,4-FreeAED
  5485. 动态平板(每秒2帧以上):05-Dynamic:Hvg Sync Mode,06-Dynamic:Fpd Sync Mode,7-Continue Mode
  5486. int nPgaLevel - PGA 档位,[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,默认7.2pC,[7]-9.6pC
  5487. [8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC
  5488. unsigned char binning - 1:1x1,2:2x2,3:3x3,4:4x4,其他不支持
  5489. int acqtime - 间隔时间,单位是毫秒ms,大于0
  5490. IMAGE_CORRECT_ENABLE* pCorrect,见HbiType.h。
  5491. int nfeedback - 1:设置成功后自动反馈固件参数,非1:反馈设置成功信号(见参数和信号见回调函数)
  5492. * 返 回 值:int
  5493. 0 - 成功
  5494. 非0 - 失败
  5495. * 备 注:
  5496. *********************************************************/
  5497. HBI_FPD_DLL int __stdcall HBI_MTriggerPgaBinningAcqTimeCorrect(void* handle, int triggerMode, int nPgaLevel, unsigned char binning, int acqtime, IMAGE_CORRECT_ENABLE* pCorrect);
  5498. /*********************************************************
  5499. * No: No194
  5500. * Function name: HBI_IsMutilMode(new)
  5501. * Function description: Check if the current firmware supports multiple modes
  5502. * Parameter Description:
  5503. In: void *handle - Handle (unsigned pointer)
  5504. * Return value:bool
  5505. true - support
  5506. false - Not Supported
  5507. * Remarks:The essence of Mode mode is that the firmware manages templates differently
  5508. * 编 号: No194
  5509. * 函 数 名: HBI_IsMutilMode(新增)
  5510. * 功能描述: 查询当前固件是否支持多Mode(多Mode方式本质是固件对模板的管理方式不同)
  5511. * 参数说明:
  5512. In: void *handle - 句柄(无符号指针)
  5513. * 返 回 值:bool
  5514. true - 支持
  5515. false - 不支持(默认支持binning版本)
  5516. * 备 注:
  5517. *********************************************************/
  5518. HBI_FPD_DLL bool __stdcall HBI_IsMutilMode(void* handle);
  5519. /*********************************************************
  5520. * No: No195
  5521. * Function name: HBI_SetTICOFImageType(new)
  5522. * Function description: Switching between normal and grayscale images
  5523. * Parameter Description:
  5524. In: void *handle - Handle (unsigned pointer)
  5525. unsigned int nImageType -Image type,2-gray image,1-normal image,others-normal image
  5526. Out: None
  5527. * Return value:int
  5528. 0 - Success
  5529. Non 0 - Failed
  5530. * Remarks:
  5531. * 编 号: No195
  5532. * 函 数 名: HBI_SetTICOFImageType(新增)
  5533. * 功能描述: 设置正常图像和灰度图切换
  5534. * 参数说明:
  5535. In: void *handle - 句柄(无符号指针)
  5536. unsigned int nImageType -图像类型,其中2-灰度图,1-正常图像,others-正常图像
  5537. Out: 无
  5538. * 返 回 值:int
  5539. 0 - 成功
  5540. 非0 - 失败
  5541. * 备 注:
  5542. *********************************************************/
  5543. HBI_FPD_DLL int __stdcall HBI_SetTICOFImageType(void* handle, unsigned int nImageType);
  5544. /*********************************************************
  5545. * No: No196
  5546. * Function name: HBI_ImportCfgFile2Detector(new)
  5547. * Function description: Importing configuration files into firmware
  5548. * Parameter Description:
  5549. In: void *handle - Handle (unsigned pointer)
  5550. int cmd -command code,
  5551. EDL_COMMON_TYPE_SET_RAM_PARAM_CFG -Set RAM parameters
  5552. EDL_COMMON_TYPE_SET_ROM_PARAM_CFG -Set ROM parameters
  5553. EDL_COMMON_TYPE_SET_FACTORY_PARAM_CFG -Set FACTORY parameters
  5554. char* cfgfile -firmware configuration file absolute path,file extension *.csv or *.txt
  5555. Out: None
  5556. * Return value:int
  5557. 0 - Success
  5558. Non 0 - Failed
  5559. * Remarks:configuration file format:Register_xxxx,Reserved,0x--
  5560. * 编 号: No196
  5561. * 函 数 名: HBI_ImportCfgFile2Detector(新增)
  5562. * 功能描述: 将配置文件导入固件
  5563. * 参数说明:
  5564. In: void *handle - 句柄(无符号指针)
  5565. int cmd -命令,
  5566. EDL_COMMON_TYPE_SET_RAM_PARAM_CFG -获取RAM参数
  5567. EDL_COMMON_TYPE_SET_ROM_PARAM_CFG -获取ROM参数
  5568. EDL_COMMON_TYPE_SET_FACTORY_PARAM_CFG -获取FACTORY参数
  5569. char* cfgfile -固件配置文件,后缀名*.csv或*.txt
  5570. Out: 无
  5571. * 返 回 值:int
  5572. 0 - 成功
  5573. 非0 - 失败
  5574. * 备 注:配置文件内容必须符合格式:Register_xxxx,Reserved,0x--
  5575. *********************************************************/
  5576. HBI_FPD_DLL int __stdcall HBI_ImportCfgFile2Detector(void* handle, int cmd, char* cfgfile);
  5577. /*********************************************************
  5578. * No: No197
  5579. * Function name: HBI_ExportDetectorCfg2File(new)
  5580. * Function description: Export firmware parameters to a file
  5581. * Parameter Description:
  5582. In: void *handle - Handle (unsigned pointer)
  5583. int cmd -command code,
  5584. EDL_COMMON_TYPE_GET_RAM_PARAM_CFG -Get RAM parameters
  5585. EDL_COMMON_TYPE_GET_ROM_PARAM_CFG -Get ROM parameters
  5586. EDL_COMMON_TYPE_GET_FACTORY_PARAM_CFG -Get FACTORY parameters
  5587. char* cfgfile -firmware configuration file absolute path,file extension *.csv or *.txt
  5588. Out: None
  5589. * Return value:int
  5590. 0 - Success
  5591. Non 0 - Failed
  5592. * Remarks:configuration file format:Register_xxxx,Reserved,0x--
  5593. * 编 号: No197
  5594. * 函 数 名: HBI_ExportDetectorCfg2File(新增)
  5595. * 功能描述: 将固件参数导出到文件
  5596. * 参数说明:
  5597. In: void *handle - 句柄(无符号指针)
  5598. int cmd -命令,
  5599. EDL_COMMON_TYPE_GET_RAM_PARAM_CFG -获取RAM参数
  5600. EDL_COMMON_TYPE_GET_ROM_PARAM_CFG -获取ROM参数
  5601. EDL_COMMON_TYPE_GET_FACTORY_PARAM_CFG -获取FACTORY参数
  5602. char* cfgfile -固件配置文件,后缀名*.csv或*.txt
  5603. Out: 无
  5604. * 返 回 值:int
  5605. 0 - 成功
  5606. 非0 - 失败
  5607. * 备 注:配置文件内容必须符合格式:Register_xxxx,Reserved,0x--
  5608. *********************************************************/
  5609. HBI_FPD_DLL int __stdcall HBI_ExportDetectorCfg2File(void* handle, int cmd, char* cfgfile);
  5610. /*********************************************************
  5611. * No: No198
  5612. * Function name: HBI_InitDetectorParams(new)
  5613. * Function description: initialize the basic parameters of the flat panel detector
  5614. * Parameter Description:
  5615. In: void *handle - Handle (unsigned pointer)
  5616. DETECTOR_INIT_PARAMS param -refer to《HbiType.h》
  5617. param._ucmodeid; //mode id [0,9];
  5618. param._uctriggerType; //1-soft trigger,3-hvg trigger,4-FreeAED,5-Dynamic:Hvg Sync Mode,6-Dynamic:Fpd Sync Mode,7-Dynamic:Fpd Continue,8-SAEC;
  5619. //Only vaild in Binning mode,invaild in multi-mode mode,purpose compatible with diffrent version.
  5620. param._ucOffsetCorrection;//0-No Offset Correction;1-Software PreOffset Correction;2-Firmware PostOffset Correction;3-Firmware PreOffset Correction;
  5621. param._ucGainCorrection; //0-No Gain Correction;1-Software Gain Correction;2-Firmware Gain Correction;
  5622. param._ucDefectCorrection;//0-No Defect Correction;1-Software Defect Correction;2-Firmware Defect Correction;
  5623. param._ucDummyCorrection; //0-No Dummy Correction;1-Software Dummy Correction;2-Firmware Dummy Correction;
  5624. Out: None
  5625. * Return value:int
  5626. 0 - Success
  5627. Non 0 - Failed
  5628. * Remarks:
  5629. * 编 号: No198
  5630. * 函 数 名: HBI_InitDetectorParams(新增)
  5631. * 功能描述: 初始化平板探测器基础参数
  5632. * 参数说明:
  5633. In: void *handle - 句柄(无符号指针)
  5634. DETECTOR_INIT_PARAMS param -参数,详细参考《HbiType.h》
  5635. param._ucmodeid; //mode id [0,9];
  5636. param._uctriggerType; //1-软触发,3-高压触发,4-FreeAED,5-Dynamic:Hvg Sync Mode,6-Dynamic:Fpd Sync Mode,7-Dynamic:Fpd Continue,8-SAEC;
  5637. //仅在Binning方式下有效,在多Mode方式下无效,因为Mode项中已包含触发模式参数,目的在于兼容不同版本。
  5638. param._ucOffsetCorrection;//0-No Offset Correction;1-Software PreOffset Correction;2-Firmware PostOffset Correction;3-Firmware PreOffset Correction;
  5639. param._ucGainCorrection; //0-No Gain Correction;1-Software Gain Correction;2-Firmware Gain Correction;
  5640. param._ucDefectCorrection;//0-No Defect Correction;1-Software Defect Correction;2-Firmware Defect Correction;
  5641. param._ucDummyCorrection; //0-No Dummy Correction;1-Software Dummy Correction;2-Firmware Dummy Correction;
  5642. Out: 无
  5643. * 返 回 值:int
  5644. 0 - 成功
  5645. 非0 - 失败
  5646. * 备 注:
  5647. *********************************************************/
  5648. HBI_FPD_DLL int __stdcall HBI_InitDetectorParams(void* handle, DETECTOR_INIT_PARAMS param);
  5649. /*********************************************************
  5650. * No: No199
  5651. * Function name: HBI_UpdateFPDSerialNumber
  5652. * Function Descriptio: Update product serial number
  5653. * Parameter Description:
  5654. In: void *handle - unsigned handle pointer
  5655. In/Out: char *szSn,length=14
  5656. * Return value:int
  5657. 0 - Success
  5658. Non 0 - Failed
  5659. * Remarks:
  5660. * 编 号: No199
  5661. * 函 数 名: HBI_UpdateFPDSerialNumber
  5662. * 功能描述: 更新产品序列号
  5663. * 参数说明:
  5664. In: void *handle - 句柄(无符号指针)
  5665. In/Out: char *szSn,长度14位
  5666. * 返 回 值:int
  5667. 0 - 成功
  5668. 非0 - 失败
  5669. * 备 注:
  5670. *********************************************************/
  5671. HBI_FPD_DLL int __stdcall HBI_UpdateFPDSerialNumber(void* handle, char* szSn);
  5672. /*********************************************************
  5673. * No: No200
  5674. * Function name: HBI_WindowWidthWindowLevel(new)
  5675. * Function Description: The automatic window width and window level algorithm converts 16bits data into 8-bit unsigned data through window width and window level processing, and users can directly display 8-bit data.
  5676. * Parameter Description:
  5677. In: void *handle - unsigned handle pointer
  5678. In/Out: unsigned char *imgbuff,Source data (16 bit unsigned small end data), destination data (8-bit unsigned data)
  5679. In/Out: int *nbufflen, Buffer data length (halve the data size after conversion)
  5680. In: int nwidth - Image data width
  5681. In: int nheight - Image data high
  5682. In: int nWindow - window width
  5683. In: int nLeveling - window leveling
  5684. * Return value:int
  5685. 0 - Success
  5686. Non 0 - Failed
  5687. * Remarks:
  5688. * 编 号: No200
  5689. * 函 数 名: HBI_WindowWidthWindowLevel(新增)
  5690. * 功能描述: 自动窗宽窗位算法将16位数据进行窗宽窗位处理转换为8位无符号数据,用户可以直接显示8位数据。
  5691. * 8位数据保存在imgbuff缓冲区内,数据长度减半保存在*nbufflen指针地址
  5692. * 参数说明:
  5693. In: void *handle - 句柄(无符号指针)
  5694. In/Out: unsigned char *imgbuff,源数据(16位无符号小端数据),目的数据(8位无符号数据)
  5695. In/Out: int *nbufflen,缓冲区数据长度(转换后数据大小减半)
  5696. In: int nwidth - 图像数据宽
  5697. In: int nheight - 图像数据高
  5698. In: int nWindow - 窗宽
  5699. In: int nLeveling - 窗位
  5700. * 返 回 值:int
  5701. 0 - 成功
  5702. 非0 - 失败
  5703. * 备 注:
  5704. *********************************************************/
  5705. HBI_FPD_DLL int __stdcall HBI_WindowWidthWindowLevel(void* handle, unsigned char* imgbuff, int* nbufflen, int nwidth, int nheight, int nWindow, int nLeveling);
  5706. /*********************************************************
  5707. * No: No201
  5708. * Function name: HBI_WaitForReadyStatus(new)
  5709. * Function Description: Waiting for panel ready status
  5710. * Parameter Description:
  5711. In: void *handle - unsigned handle pointer
  5712. In: unsigned int tm - Waiting timeout,default 1200ms
  5713. * Return value:int
  5714. 0 - Success
  5715. Non 0 - Failed
  5716. * Remarks:
  5717. * 编 号: No201
  5718. * 函 数 名: HBI_WaitForReadyStatus(新增)
  5719. * 功能描述: 等待平板ready状态
  5720. * 参数说明:
  5721. In: void *handle - 句柄(无符号指针)
  5722. In: unsigned int tm - 等待超时时间,默认1200ms
  5723. * 返 回 值:int
  5724. 0 - 成功
  5725. 非0 - 失败
  5726. * 备 注:
  5727. *********************************************************/
  5728. HBI_FPD_DLL int __stdcall HBI_WaitForReadyStatus(void* handle, unsigned int tm = 1200);
  5729. /*********************************************************
  5730. * No: No202
  5731. * Function name: HBI_SetSelfDumpingTimeEx(new)
  5732. * Function description: Self dumping span time setting
  5733. * Parameter Description:
  5734. In: void *handle - Handle (unsigned pointer)
  5735. unsigned int untimems - time interval,Unit is milliseconds,> 0ms
  5736. unsigned short ustimeus - time interval,The unit is microseconds,>= 0ms.[0,999]
  5737. Out: None
  5738. * Return value:int
  5739. 0 - Success
  5740. Non 0 - Failed
  5741. * Remarks:eg 16 fps,ntimems=62ms, ntimeus=8um
  5742. * 编 号: No202
  5743. * 函 数 名: HBI_SetSelfDumpingTimeEx(新增)
  5744. * 功能描述: 平板自清空时间设置(增加了微妙)
  5745. * 参数说明:
  5746. In: void *handle - 句柄(无符号指针)
  5747. unsigned int untimems - 间隔时间,单位是毫秒ms,> 0ms
  5748. unsigned short ustimeus - 间隔时间,单位是微秒us,>= 0ms.[0,999]
  5749. Out: 无
  5750. * 返 回 值:int
  5751. 0 - 成功
  5752. 非0 - 失败
  5753. * 备 注:比如16帧,ntimems=62ms, ntimeus=8um
  5754. *********************************************************/
  5755. HBI_FPD_DLL int __stdcall HBI_SetSelfDumpingTimeEx(void* handle, unsigned int untimems, unsigned short ustimeus);
  5756. //
  5757. HBI_FPD_DLL int __stdcall HBI_RestartPcieDevice(void* handle);
  5758. ////////////////////////////////////////////////////////////////////////
  5759. ////////////////////////////////////////////////////////////////////////
  5760. /***************************************************************************************
  5761. ////////////////////////////////////////////////////////////////////////////////////////
  5762. // The export class is currently undeveloped and will not be provided
  5763. // 导出类 暂时未开发,不提供
  5764. ////////////////////////////////////////////////////////////////////////////////////////
  5765. class HBI_FPD_DLL CHbiFpdDllClass
  5766. {
  5767. public:
  5768. CHbiFpdDllClass();
  5769. virtual ~CHbiFpdDllClass();
  5770. public:
  5771. bool Init();
  5772. };
  5773. CHbiFpdDllClass *m_phbiimage = new CHbiFpdDllClass;
  5774. if (m_phbiimage != NULL)
  5775. {
  5776. delete m_phbiimage;
  5777. m_phbiimage = NULL;
  5778. }
  5779. if (m_phbiimage != NULL)
  5780. {
  5781. m_phbiimage->Init();
  5782. }
  5783. ***************************************************************************************/
  5784. #ifdef __cplusplus
  5785. }
  5786. #endif
  5787. #endif // __HBI_FPD_H_