| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520 |
- /*---------------------------------------------------------------------------
- * Copyright (c) 2019 Shanghai Haobo Image Technology Co., Ltd
- * All rights reserved.
- *
- * File name: HbiFpd. h
- * Document ID:
- * Abstract: flat-panel detector export function header file
- *
- * Current version: 3.0
- * Author: mhyang
- * Date: November 20, 2020
- * Revision date: November 5, 2021
- ----------------------------------------------------------------------------*/
- #pragma once
- #ifndef __HBI_FPD_H_
- #define __HBI_FPD_H_
- #include "HbiType.h"
- #include "HbiError.h"
- #ifdef _WIN32 // for windows
- //#ifdef _WIN64 // (64-bit only)
- //#else // (32-bit only)
- //#endif
- #ifdef _DLL_EX_IM
- #define HBI_FPD_DLL __declspec(dllexport)
- #else
- #define HBI_FPD_DLL __declspec(dllimport)
- #endif
- #elif (__unix__ || __linux__) // for unix or linux
- //#ifdef __x86_64__ // (64-bit only)
- //#elif __i386__ // (32-bit only)
- //#endif
- #define HBI_FPD_DLL __attribute__((visibility("default"))) // very important ???
- #endif
- ////////////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////////////
- #ifdef __cplusplus
- extern "C" {
- #endif
- /*********************************************************
- * No: No001
- * Function Name: HBI_Init
- * Function Description // Initialize dynamic dll, nonvolatile parameters and thread message parameters, establish SDK object pointer.
- * Parameter Description:
- int fpdid // Flat panel detector ID, default is 0.
- * Return Value:
- void * // Null: failure;
- // Non-null: success.
- * Comment:
- *********************************************************/
- HBI_FPD_DLL void* HBI_Init(int fpdid=0);
- /*********************************************************
- * No: No002
- * Function Name: HBI_Destroy
- * Function Description: // Release dynamic library resources
- * Parameter Description:
- In: void *handle // Handle, dynamic SDK object pointer
- Out: Null
- * Return Value: void
- * Comment:
- *********************************************************/
- HBI_FPD_DLL void HBI_Destroy(void *handle);
- /*********************************************************
- * No: No0003
- * Function Name: HBI_InitDual
- * Function Description: // Initialize double detector dynamic library
- * Parameter Description: // Callback parameter, that are two FPD handle instance
- In/Out: void **handle1 // Detector A¡¯s unsigned handle pointer instance
- In/Out: void **handle1 // Detector B¡¯s unsigned handle pointer instance
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- **********************************************************************************************************************/
- HBI_FPD_DLL int HBI_InitDual(void **handle1, void **handle2);
- /*********************************************************
- * No: No0004
- * Function Name: HBI_InitEx
- * Function Description: // Initialize double or multi detector dynamic library instance
- * Parameter Description: // Callback parameter, FPD instance and ID number
- In/Out: HBI_HANDLE *pHandArr // Array object, refer to <<HbiType.h>>
- In: int nArrSize // Array number, equal to DETECTOR_MAX_NUMBER
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_InitEx(HBI_HANDLE *pHandArr, int nArrSize);
- /*********************************************************
- * No: No0005
- * Function Name: HBI_DestroyEx
- * Function Description: // Destroy all dll resources
- * Parameter Description:
- Null
- * Return Value:
- Null
- * Comment:
- *********************************************************/
- HBI_FPD_DLL void HBI_DestroyEx();
- /*********************************************************
- * No: No0006
- * Function Name: HBI_GetDetectorHandle
- * Function Description: // Get handle through FPD ID number
- * Parameter Description:
- In:int fpdid // FPD ID number,0 《 平板id 《 DETECTOR_MAX_NUMBER
- * Return Value:
- void * // unsigned object pointer
- * Comment:
- *********************************************************/
- HBI_FPD_DLL void *HBI_GetDetectorHandle(int fpdid = 0);
- /*********************************************************
- * No: No0007
- * Function Name: HBI_GetDetectorId
- * Function Description: // Get FPD ID number through handle
- * Parameter Description:
- In:void *handle // handle pointer
- * Return Value:
- int // FPD ID number
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_GetDetectorId(void *handle);
- /*********************************************************
- * No: No0008
- * Function Name: HBI_ActivateDetector
- * Function Description: // Activate detector, current SDK version supports multi FPD
- * Parameter Description:
- In:void *handle // handle pointer
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_ActivateDetector(void *handle);
- /*********************************************************
- * No: No009
- * Function Name: HBI_ConnectDetector
- * Function Description: // Establish connection
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- COMM_CFG commCfg // refer to <<HbiType.h>> COMM_CFG
- UDP_COMM_TYPE = 0, Standard UDP communication method
- UDP_JUMBO_COMM_TYPE = 1, Standard UDP communication method,Support for jumbo
- PCIE_COMM_TYPE = 2, Fiber type
- WALN_COMM_TYPE = 3,Wireless type
- Int doOffsetTemp // Non-1: don’t update pre-offset template when connection is successful
- // 1: update pre-offset template when connection is successful
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_ConnectDetector(void *handle, COMM_CFG commCfg, int doOffsetTemp = 0);
- /*********************************************************
- * No: No010
- * Function Name: HBI_ConnectDetectorUdp - Standard UDP communication method
- HBI_ConnectDetectorJumbo - Standard UDP communication method,Support for jumbo
- HBI_ConnectDetectorWlan - Fiber type
- * Function Description: // Establish connection (gigabit Ethernet interface with typical UDP packet)
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- char *szDetectorIp // FPD IP address: 192.168.10.40
- unsigned short usDetectorPort // FPD port: 32897(0x8081)
- char *szlocalIp // PC IP address: 192.168.10.20
- unsigned short usLocalPort // PC port: 32896(0x8080)
- int doOffsetTemp // Non-1: don’t update pre-offset template when connection is successful
- // 1: update pre-offset template when connection is successful
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_ConnectDetectorUdp(void *handle, char *szDetectorIp, unsigned short usDetectorPort, char *szlocalIp, unsigned short usLocalPort, int doOffsetTemp = 0);
- HBI_FPD_DLL int HBI_ConnectDetectorJumbo(void *handle, char *szDetectorIp, unsigned short usDetectorPort, char *szlocalIp, unsigned short usLocalPort, int doOffsetTemp = 0);
- HBI_FPD_DLL int HBI_ConnectDetectorWlan(void *handle, char *szDetectorIp, unsigned short usDetectorPort, char *szlocalIp, unsigned short usLocalPort, int doOffsetTemp = 0);
- /*********************************************************
- * No: No011
- * Function Name: HBI_ConnectDetectorPcie
- * Function Description: // Establish connection (optical fiber interface)
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- int pciedeviceid // PCIexpress device id,dfault 7024
- int doOffsetTemp // 1: don’t update pre-offset template when connection is successful
- // Non-1: update pre-offset template when connection is successful
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- **********************************************************************************************************************/
- HBI_FPD_DLL int HBI_ConnectDetectorPcie(void *handle, int pciedeviceid=7024, int doOffsetTemp = 0);
- /******************************************************************************
- * No: No012
- * Function Name: HBI_ConnectDetectorEx
- * Function Description: // Establish connection
- * Parameter Description:
- In: void *handle // unsigned handle pointer, refer to <<hbi_init.ini>>
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment: <<hbi_fpd_init.ini>>
- * FPD IP Address: FPD_IP = 192.168.10.40
- * FPD Port: FPD_PORT = 32897
- * Local IP Address: LOCAL_IP = 192.168.10.20
- * Local Port: LOCAL_PORT = 32896
- * TRIGGER_MODE: 0-Invalid Trigger;
- 1: Static: Software Trigger;
- 2: Clear;
- 3: Static: Hvg Trigger Mode;
- 4: Static: AED Trigger Mode;
- 5: Dynamic: Hvg Sync Mode;
- 6: Dynamic: Fpd Sync Mode;
- 7: Dynamic: Free Run Mode;
- 8: Static: SAEC Mode;
- * OFFSET_ENABEL: 0: No Offset Correction;
- 1: Software Preoffset Correction;
- 2: Firmware Postoffset Correction;
- 3: Firmware Preoffset Correction;
- * GAIN_ENABLE: 0: No Gain Correction;
- 1: Software Gain Correction;
- 2: Firmware Gain Correction;
- * DEFECT_ENABLE: 0: No Defect Correction;
- 1: Software Defect Correction;
- 2: Firmware Defect Correction;
- * DUMMY_ENABLE: 0: No Dummy Correction;
- 1: Software Dummy Correction;
- 2: Firmware Dummy Correction;
- * LIVE_ACQ_TIME: 1000~1000ms
- * SELF_DUMPING_TIME: 500~500ms
- * PREPARE_TIME: 1500~1500ms
- * DO_OFFSET: 0: No action
- 1: Do offset template
- ******************************************************************************/
- HBI_FPD_DLL int HBI_ConnectDetectorEx(void *handle);
- /*********************************************************
- * No: No013
- * Function Name: HBI_DisConnectDetector
- * Function Description: // Disconnect detector
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_DisConnectDetector(void *handle);
- /*********************************************************
- * No: No014
- * Function Name: HBI_RegEventCallBackFun
- * Function Description: // Register callback function
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- USER_CALLBACK_HANDLE_ENVENT callbackfun // Register callback function
- void *pContext // Object pointer, application software transfer object pointer to SDK in order to access static and global variable
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_RegEventCallBackFun(void *handle, USER_CALLBACK_HANDLE_ENVENT handleEventfun, void *pContext);
- /*********************************************************
- * No: No015
- * Function Name: HBI_ResetDetector
- * Function Description: // Reset detector
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_ResetDetector(void *handle);
- /*********************************************************
- * No: No016
- * Function Name: HBI_ResetFirmware
- * Function Description: // Restore factory setting
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_ResetFirmware(void *handle);
- /*********************************************************
- * No: No017
- * Function Name: HBI_GetFPDSerialNumber
- * Function Description: // Get FPD serial number
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- In/Out: char *szSn, // Serial number length 14bits
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_GetFPDSerialNumber(void *handle, char *szSn);
- /*********************************************************
- * No: No018
- * Function Name: HBI_GetSDKVerion
- * Function Description: // Get Dll version
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- char *szVer // Dll version information string
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_GetSDKVerion(void *handle, char *szVer);
- /*********************************************************
- * No: No019
- * Function Name: HBI_GetFirmareVerion
- * Function Description: // Get firmware version
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- char *szVer // Firmware version information string
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_GetFirmareVerion(void *handle, char *szFirmwareVer);
- /*********************************************************
- * No: No020
- * Function Name: HBI_GetError
- * Function Description: // Get error information, unavailable at present
- * Parameter Description:
- In: const CodeStringTable* inTable // Errata
- int count // Number of table
- int recode // Error code
- Out: Null
- * Return Value: const char *
- // Null: Failure
- // Non-null: Success
- * Comment:
- *********************************************************/
- HBI_FPD_DLL const char *HBI_GetError(const CodeStringTable* inTable, int count, int recode);
- /*********************************************************
- * No: No021
- * Function Name: HBI_GetFpdCfgInfo
- * Function Description: // Get nonvolatile config parameter(ROM)
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- Out:RegCfgInfo* pRegCfg // Refer to <<HbiType.h>>
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_GetFpdCfgInfo(void *handle, RegCfgInfo* pRegCfg);
- /*********************************************************
- * No: No022
- * Function Name: HBI_GetImageProperty
- * Function Description: // Get image property
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- IMAGE_PROPERTY *img_pro // Image property, refer to<<HbiType.h>> IMAGE_PROPERTY
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_GetImageProperty(void *handle, IMAGE_PROPERTY *img_pro);
- /*********************************************************
- * No: No023
- * Function Name: HBI_GetPreviewImageProperty
- * Function Description: // Get preview image property
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- IMAGE_PROPERTY *img_pro // Image property, refer to<<HbiType.h>> IMAGE_PROPERTY
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_GetPreviewImageProperty(void *handle, IMAGE_PROPERTY *img_pro);
- /*********************************************************
- * No: No024
- * Function Name: HBI_SinglePrepare
- * Function Description: Single image acquisition(combine with “prepare delay time” parameter)
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * 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
- *Prepare delay=0 - indicates soft trigger single frame acquisition first HBI_Prepare after HBI_ SingleAcquisition completes single frame acquisition
- *Prepare delay > "0 - means soft trigger single frame acquisition, only HBI_ Prepare is required can complete single frame acquisition according to the delay time
- *********************************************************/
- HBI_FPD_DLL int HBI_SinglePrepare(void *handle);
- /*********************************************************
- * No: No025
- * Function Name: HBI_Prepare (Add interface)
- * Function Description: Single image acquisition(combine with “prepare delay time” parameter)
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- EnumIMAGE_ACQ_CMD //Current acquisition command type (image above or saved template image data)
- eg:
- SINGLE_ACQ_DEFAULT_TYPE // Single acquisition.
- SINGLE_ACQ_GAIN_IMAGE // Generate gain template with static single acquisition.
- SINGLE_ACQ_DEFECT_IMAGE // Generate defect template with static single acquisition.
- SINGLE_GENERATE_OFFSET, // Quickly generate template collection types, collect a group of dark field images in a single frame - SDK generates offset template.
- 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
- 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
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *Prepare delay=0 - indicates soft trigger single frame acquisition first HBI_Prepare after HBI_ SingleAcquisition completes single frame acquisition
- *Prepare delay > "0 - means soft trigger single frame acquisition, only HBI_ Prepare is required can complete single frame acquisition according to the delay time
- *********************************************************/
- HBI_FPD_DLL int HBI_Prepare(void* handle, EnumIMAGE_ACQ_CMD acqcmd = EnumIMAGE_ACQ_CMD::SINGLE_ACQ_DEFAULT_TYPE);
- /*********************************************************
- * No: No026
- * Function Name: HBI_SingleAcquisition
- * Function Description: // Single image acquisition
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- FPD_AQC_MODE _mode // Acquisition mode and related parameters
- EnumIMAGE_ACQ_MODE // Image acquisition mode
- SINGLE_ACQ_DEFAULT_TYPE, // Single frame acquisition
- SINGLE_ACQ_GAIN_IMAGE, // Distributed generation correction template for template validation, creating Gain template - single frame acquisition of bright field images
- SINGLE_ACQ_DEFECT_IMAGE, // Distributed generation of correction templates for template validation and creation of Defect templates - single frame acquisition of bright field images
- EnumLIVE_ACQUISITION eLivetype; // Only for ONLY_ IMAGE
- int ngroupno // Group number
- int nframesum // Acsuisition image number
- int ndiscard // Discard image number
- int nframeid // Frame ID number
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_SingleAcquisition(void *handle, FPD_AQC_MODE _mode);
- /*********************************************************
- * No: No027
- * Function Name: HBI_LiveAcquisition
- * Function Description: // Live acquisition
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- FPD_AQC_MODE _mode // Work mode and related parameter
- The structure contains fields:
- 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
- LIVE_ACQ_DEFAULT_TYPE, // Acquisition command
- // Distribute and generate correction templates for template validation
- LIVE_ACQ_OFFSET_IMAGE, // Create Offset template - continuously acquire dark field image
- LIVE_ACQ_GAIN_IMAGE, // Create Gain template - continuous acquisition of bright field image
- LIVE_ACQ_DEFECT_IMAGE, // Create Defect template - continuous acquisition of bright field image
- // Quickly generate correction templates for system integration
- OFFSET_TEMPLATE_TYPE, // Quickly generate template collection types, continuously collect a group of dark field images and generate offset templates, and firmware generates templates
- GAIN_TEMPLATE_TYPE, // Quickly generate template collection types, continuously collect a group of bright field images and generate gain templates
- DEFECT_TEMPLATE_GROUP1, // Quickly generate template collection types and continuously collect a group of bright field images - defect group1
- DEFECT_TEMPLATE_GROUP2, // Quickly generate template collection types and continuously collect a group of bright field images - defect group2
- DEFECT_TEMPLATE_GROUP3, // Quickly generate template collection types and continuously collect a group of bright field images - defect group3 and generate template
- SOFTWARE_OFFSET_TEMPLATE // Quickly generate template acquisition types and continuously collect a group of dark field images - SDK generates offset template
- Enum LIVE_ACQUISITION eLivetype; // Live acquisition only, detail refer to LIVE_ACQ_DEFAULT_TYPE.
- // 1 - generate the firmware Preoffset template and then continue to // acquire image.
- // 2 - image acquisition only.
- // 3 - generate firmware Preoffset template only.
- int ngroupno; // Group number.
- int nAcqnumber; // Reserved image number.
- int ndiscard; // Discard image number.
- int nframeid; // Counter.
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_LiveAcquisition(void *handle, FPD_AQC_MODE _mode);
- /*********************************************************
- * No: No028
- * Function Name: StopAcquisition
- * Function Description: // Stop live acquisition
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_StopAcquisition(void *handle);
- /*********************************************************
- * No: No029
- * Function Description: // Prepare delay time setting, which is also called exposure window
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- Out: int *out_itime // Time(0~10000), unit: ms
- // 0: “HBI_Prepare” and “HBI_SingleAcquisition” command are combined to realize single image acquisition
- // Non-0: FPD will delay “Prepare Delay Time” and automatically acquire one single image when the detector receives “HBI_Prepare” command.
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_SetSinglePrepareTime(void *handle, int in_itime);
- /*********************************************************
- * No: No030
- * Function Name: HBI_GetSinglePrepareTime
- * Function Description: // Get prepare delay time value, which is also called exposure window
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- Out: int *out_itime // Time(0~10000), unit: ms
- // 0: “HBI_Prepare” and “HBI_SingleAcquisition” command is combined to realize single image acquisition
- // Non-0: FPD will delay “Prepare Delay Time” and automatically acquire one single image when the detector receives “HBI_Prepare” command.
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_GetSinglePrepareTime(void *handle, int *out_itime);
- /*********************************************************
- * No: No031
- * Function Name: HBI_SetLiveAcquisitionTime. (Static flat panel detector)
- * Function Description: // Live acquisition span time setting (apply to static and wireless type FPD)
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- int time // Live acquisition span time, unit: ms
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_SetLiveAcquisitionTime(void *handle, int time);
- /*********************************************************
- * No: No032
- * Function Name: HBI_GetLiveAcquisitionTime. (Static flat panel detector)
- * Function Description: // Get live acquisition span time (apply to static and wireless type FPD)
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- Out: int *out_time // Live acquisition span time, unit: ms
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_GetLiveAcquisitionTime(void *handle, int *out_time);
- /*********************************************************
- * No: No033
- * Function Name: HBI_SetSelfDumpingTime(Dynamic flat panel detector)
- * Function Description: // Self dumping span time setting
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- int time // Self dumping span time, unit: ms
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_SetSelfDumpingTime(void *handle, int time);
- /*********************************************************
- * No: No034
- * Function Name: HBI_GetSelfDumpingTime(Dynamic flat panel detector)
- * Function Description: // Get self dumping span time
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- Out: int *out_time // Self dumping span time, unit: ms
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_GetSelfDumpingTime(void *handle, int *out_time);
- /*********************************************************
- * No: No035
- * Function Name: HBI_TriggerAndCorrectApplay
- * Function Description: // Work mode and image calibration setting
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- int _triggerMode
- // 1: Software trigger mode
- // 3: High voltage generator trigger mode
- // 4: AED trigger mode
- // 5-Dynamic:Hvg Sync Mode
- // 6-Dynamic:Fpd Sync Mode
- // 7-Dynamic:Fpd Continue
- // 8-SAEC。
- IMAGE_CORRECT_ENABLE* pCorrect // refer to<< HbiType.h>>
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment: Replace “HBI_WorkStationInitDllCfg” and “HBI_QuckInitDllCfg” API function
- *********************************************************/
- HBI_FPD_DLL int HBI_TriggerAndCorrectApplay(void *handle, int _triggerMode, IMAGE_CORRECT_ENABLE* pCorrect);
- /*********************************************************
- * No: No036
- * Function Name: HBI_UpdateTriggerMode
- * Function Description: trigger mode setting
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- int _triggerMode,
- // 1: Software trigger mode
- // 3: High voltage generator trigger mode
- // 4: AED trigger mode
- // 5-Dynamic:Hvg Sync Mode
- // 6-Dynamic:Fpd Sync Mode
- // 7-Dynamic:Fpd Continue
- // 8-SAEC。
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_UpdateTriggerMode(void *handle, int _triggerMode);
- /*********************************************************
- * No: No037
- * Function Name: HBI_UpdateCorrectEnable
- * Function Description: // Firmware calibration enable setting
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- IMAGE_CORRECT_ENABLE* pCorrect // refer to<< HbiType.h>>
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_UpdateCorrectEnable(void *handle, IMAGE_CORRECT_ENABLE* pCorrect);
- /*********************************************************
- * No: No038
- * Function Name: HBI_GetCorrectEnable
- * Function Description: // Get image calibration enable status
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- IMAGE_CORRECT_ENABLE* pCorrect // refer to<< HbiType.h>>
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_GetCorrectEnable(void *handle, IMAGE_CORRECT_ENABLE *pCorrect);
- /*********************************************************
- * No: No039
- * Function Name: HBI_SetSoftwareCorrect
- * Function Description: // Software calibration enable setting
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- SOFTWARE_CALIBRATE_ENABLE inEnable // refer to<< HbiType.h>> SOFTWARE_CALIBRATE_ENABLE struct
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_SetSoftwareCorrect(void *handle, SOFTWARE_CALIBRATE_ENABLE inEnable);
- /*********************************************************
- * No: No040
- * Function Name: HBI_GetSoftwareCorrect
- * Function Description: // Get software calibration enable status
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- SOFTWARE_CALIBRATE_ENABLE inEnable // refer to<<HbiType.h>>
- SOFTWARE_CALIBRATE_ENABLE struct
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_GetSoftwareCorrect(void *handle, SOFTWARE_CALIBRATE_ENABLE *inEnable);
- /*********************************************************
- * No: No041
- * Function Name: HBI_SetAedIntegrateTm
- * Function Description: // AED integration time setting
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- int time // AED integration time, unit: ms, default = 500ms
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_SetAedIntegrateTm(void *handle, int time);
- /*********************************************************
- * No: No042
- * Function Name: HBI_GetAedIntegrateTm
- * Function Description: // Get AED integration time
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- Out: int *out_time // AED integration time, unit: ms
- * Return Value: int
- // 0: Success
- // Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_GetAedIntegrateTm(void *handle, int *out_time);
- /*********************************************************
- * No: No043
- * Function Name: HBI_SetAedThreshold
- * Function Description: // AED threshold value setting
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- int out_ivalue // AED threshold (10,000~1,000,000)
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_SetAedThreshold(void *handle, int in_ivalue);
- /*********************************************************
- * No: No044
- * Function name: HBI_ GetAedThreshold
- * Function description: Obtain AED threshold
- * Parameter Description:
- In: void * handle - Handle (unsigned pointer)
- Out: int * out_ Ivalue - threshold [10000~1000000]
- * Return value: int
- 0- Success
- Non 0- Failed
- * Remarks:
- *********************************************************/
- HBI_FPD_DLL int HBI_GetAedThreshold(void *handle, int *out_ivalue);
- /*********************************************************
- * No: No045
- * Function Name: HBI_SetSaturationValue
- * Function Description: // Saturation value setting
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- Out:int *out_ivalue // Saturation value (0 ~ 65,535)
- * Return Value: int
- // 0: Success
- // Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_SetSaturationValue(void *handle, int in_ivalue);
- /*********************************************************
- * No: No046
- * Function Name: HBI_GetSaturationValue
- * Function Description: // Get saturation setting value
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- Out:int *out_ivalue // Saturation value (0 ~ 65,535)
- * Return Value: int
- // 0: Success
- // Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_GetSaturationValue(void *handle, int *out_ivalue);
- /*********************************************************
- * No: No047
- * Function Name: HBI_SetClippingValue
- * Function Description: // Clipping value setting
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- Out:int *out_ivalue // Clipping value (0 ~ 65,535)
- * Return Value: int
- // 0: Success
- // Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_SetClippingValue(void *handle, int in_ivalue);
- /*********************************************************
- * No: No048
- * Function Name: HBI_GetClippingValue
- * Function Description: // Get clipping value
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- Out:int *out_ivalue // Clipping value (0 ~ 65,535)
- * Return Value: int
- // 0: Success
- // Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_GetClippingValue(void *handle, int *out_ivalue);
- /*********************************************************
- * No: No049
- * Function Name: HBI_SetPGALevel
- * Function Description: // PGA gain stage setting
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- int mode // PGA gain stage
- // 1: 0.6 pC;
- // 2: 1.2 pC;
- // 3: 2.4 pC;
- // 4: 3.6 pC;
- // 5: 4.8 pC;
- // 6: 7.2 pC;
- // 7: 9.6 pC;
- // 8: LFW with CMOS detector
- // 9: HFW with CMOS detector
- // 10: 0.3 pC;
- // 11: 0.15 pC;
- // Default: 7.2pC.
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_SetPGALevel(void *handle, int nGainLevel);
- /*********************************************************
- * No: No050
- * Function Name: HBI_GetPGALevel
- * Function Description: // Get PGA gain stage setting value
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- Out: Null
- * Return Value:
- int // PGA gain stage
- // 1: 0.6 pC;
- // 2: 1.2 pC;
- // 3: 2.4 pC;
- // 4: 3.6 pC;
- // 5: 4.8 pC;
- // 6: 7.2 pC;
- // 7: 9.6 pC;
- // 8: LFW with CMOS detector
- // 9: HFW with CMOS detector
- // 10: 0.3 pC;
- // 11: 0.15 pC;
- // Default: 7.2pC.
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_GetPGALevel(void *handle);
- /*********************************************************
- * No: No051
- * Function Name: HBI_SetLPFLevel
- * Function Description: // Low pass filter setting
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- int nLPFLevel // Low pass filter
- // 0: 210 kHz, default value is 210 kHz
- // 1: 105 kHz
- // 2: 52 kHz
- // 3: 26 kHz
- // 4: 13 kHz
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_SetLPFLevel(void *handle, int nLPFLevel);
- /*********************************************************
- * No: No052
- * Function Name: HBI_GetLPFLevel
- * Function Description: // Get pass filter
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- Out: Null
- * Return Value:
- int // Low pass filter
- // 0: 210 kHz, default value is 210 kHz
- // 1: 105 kHz
- // 2: 52 kHz
- // 3: 26 kHz
- // 4: 13 kHz
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_GetLPFLevel(void *handle);
- /*********************************************************
- * No: No053
- * Function Name: HBI_SetBinning
- * Function Description: Binning mode setting
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- unsigned int nbin // Binning mode
- // 1: 1x1
- // 2: 2x2
- // 3: 3x3
- // 4: 4x4
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_SetBinning(void *handle, unsigned int bin);
- /*********************************************************
- * No: No054
- * Function Name: HBI_GetBinning
- * Function Description: // Get binning mode setting value
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- unsigned int *nbin // Binning mode
- // 1: 1x1
- // 2: 2x2
- // 3: 3x3
- // 4: 4x4
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_GetBinning(void *handle, unsigned int *bin);
- /*********************************************************
- * No: No055
- * Function Name: HBI_SetPreviewMode
- * Function Description: Preview mode setting
- * Parameter Description:
- In: void *handle - // unsigned handle pointer
- int inTriggMode
- 1-Soft trigger
- 3-High voltage trigger
- 4-FreeAED
- 5-Dynamic:Hvg Sync Mode
- 6-Dynamic:Fpd Sync Mode
- 7-Dynamic:Fpd Continue
- 8-SAEC
- Other not supported。
- int inPreviewMode // Image acquire and display mode
- // 0: normal image,
- // 1: preview image
- // 2: preview + normal image
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_SetPreviewMode(void *handle, int inTriggMode, int inPreviewMode);
- /*********************************************************
- * No: No056
- * Function Name: HBI_GetPreviewMode
- * Function Description: // Get preview mode setting value
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- Out: int *outmode // Image acquire and display mode [0~2]
- // 0: normal image,
- // 1: preview image
- // 2: preview + normal image
- * Return Value: int
- // 0: Success
- // Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_GetPreviewMode(void *handle, int *outMode);
- /*********************************************************
- * No: No057
- * Function Name: HBI_SAecModeApply
- * Function Description: // SAEC mode setting
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- int inPreviewMode // 0: Normal image
- // 1: Preview image
- int inPerTime // FPD pre ready delay time
- int inPostTime // FPD post ready delay time
- Out: Null
- * Return Value:
- int // 0: Success
- // Non-0: Failure
- * Comment:
- 1. inPreviewMode=0(normal image)
- 2. inPreviewMode=1(preview image), user define inPerTime and inPostTime
- *********************************************************/
- HBI_FPD_DLL int HBI_SAecModeApply(void *handle, int inPreviewMode, int inPerTime = 0, int inPostTime = 0);
- /*********************************************************
- * No: No058
- * Function Name: HBI_SAecAcq
- * Function Description: // SAEC image acquisition
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_SAecAcq(void *handle);
- /*********************************************************
- * No: No059
- * Function Name: HBI_RegProgressCallBack
- * Function Description: // Register callback function, feedback template or firmware downloading progress status
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- USER_CALLBACK_HANDLE_PROCESS handleStatusfun // Register callback function
- void *pObject // Object pointer,
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_RegProgressCallBack(void *handle, USER_CALLBACK_HANDLE_PROCESS handleStatusfun, void* pObject);
- /*********************************************************
- * No: No060
- * Function Name: HBI_GenerateTemplate
- * Function Description: // Quick generate offset, gain, defect template
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- EnumIMAGE_ACQ_MODE _mode // Type of template
- OFFSET_TEMPLATE_MODE // Offset template
- GAIN_TEMPLATE_MODE // Gain template
- DEFECT_ACQ_GROUP1, // Defect template with group1 image
- DEFECT_ACQ_GROUP2, // Defect template with group2 image
- DEFECT_ACQ_AND_TEMPLATE // Defect template with group3 image and generate template
- Out: Null
- * Return Value:
- int // 0: Success
- // Non-0: Failure
- * Comment:
- * 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
- * 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
- * 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
- * 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
- * 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
- * 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
- *********************************************************/
- HBI_FPD_DLL int HBI_GenerateTemplate(void *handle, EnumIMAGE_ACQ_CMD _mode);
- /*********************************************************
- * No: No061
- * Function Name: HBI_DownloadTemplate
- * Function Description: // Download calibration template
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- DOWNLOAD_FILE *downloadfile // Template file object pointer
- emUPLOAD_FILE_TYPE emfiletype-Template type(OFFSET_TMP-offset template.GAIN_TMP-gain template,DEFECT_TMP-defect template)
- int nBinningtype-template binning type(1-binning1*1,2-binning2*2,3-binning3*3,4-binning4*4)
- char filepath-Template absolute path
- Out: Null
- * Return Value:
- int // 0: Success
- // Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_DownloadTemplate(void *handle, DOWNLOAD_FILE *downloadfile);
- /*********************************************************
- * No: No062
- * Function Name: HBI_DownloadTemplateEx
- * Function Description: // Download calibration template
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- DOWNLOAD_MODE *downloadmode - Download template file link list pointer
- DOWNLOAD_FILE *downloadfile - Template file object pointer
- emUPLOAD_FILE_TYPE emfiletype-Template type(OFFSET_TMP-offset template.GAIN_TMP-gain template,DEFECT_TMP-defect template)
- int nBinningtype-template binning type(1-binning1*1,2-binning2*2,3-binning3*3,4-binning4*4)
- char filepath-Template absolute path
- Out: Null
- * Return Value:
- int // 0: Success
- // Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_DownloadTemplateEx(void *handle, DOWNLOAD_MODE *downloadmode);
- /*********************************************************
- * No: No063
- * Function Name: HBI_DownloadTemplateByType
- * Function Description: // Download calibration template by template type
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- int infiletype //Download file types 0-gain template, 1-defect template, 2-offset template, others - not supported.
- Out: Null
- * Return Value:
- int // 0: Success
- // Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_DownloadTemplateByType(void *handle, int infiletype);
- /*********************************************************
- * No: No064
- * Function Name: HBI_StopDownloadTemplate
- * Function Description: // Stop download calibration template
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_StopDownloadTemplate(void *handle);
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- /*********************************************************
- * No: No065
- * Function Name: HBI_UpgradeFirmware
- * Function Description: Update firmware information or wireless embedded software
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- char *binfile - Bin file path
- int filetype - 0: FPGA software, 1: Embedded software, 2:pcie driver
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_UpgradeFirmware(void *handle, char *binfile, int filetype=0);
- /*********************************************************
- * No: No066
- * Function Name: HBI_StopUpdateFirmware
- * Function Description: Stop updating firmware
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_StopUpdateFirmware(void *handle);
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- /*********************************************************
- * No: No067
- * Function Name: HBI_Dumping
- * Function Name: Clear command
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_Dumping(void *handle);
- /*********************************************************
- * No: No068
- * Function Name: HBI_GetSysParamCfg
- * Function Description: Read back the system RAM/ROM parameters, asynchronous events, and feed back the parameters in the callback function
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- int cmd - rom or ram
- int type - user or admin
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_GetSysParamCfg(void *handle, int cmd, int type);
- /*********************************************************
- * No: No069
- * Function Name: HBI_SetSysParamCfg
- * Function Description: Set system RAM/ROM parameters
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- int cmd -
- int type -
- RegCfgInfo* pRegCfg -
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_SetSysParamCfg(void *handle, int cmd, int type, RegCfgInfo* pRegCfg);
- /*********************************************************
- * No: No070
- * Function Name: HBI_SetGigabitEther
- * Function Description: Set network information parameters
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- EtherInfo* pEther,refer to <<HbiType.h>>。
- Out:None
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_SetGigabitEther(void *handle, EtherInfo* pEther);
- /*********************************************************
- * No: No071
- * Function Name: HBI_RetransMissPacket
- * Function Description: Single packet loss retransmission
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_RetransMissPacket(void *handle);
- /*********************************************************
- * No: No072
- * Function Name: HBI_RetransMissFrame
- * Function Description: Entire frame retransmission
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_RetransMissFrame(void *handle);
- /*********************************************************
- * No: No073
- * Function Name: HBI_IsConnect
- * Function Description: Determine whether the detector is connected
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- * Return Value:int
- 1 - connect
- 0 - disconnect
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_IsConnect(void *handle);
- /*********************************************************
- * No: No074
- * Function Name: HBI_GetCurFPDStatus
- * Function Description: Get the current status of the detector
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- Out: Null
- * Return Value:int
- 0 - idle status,Idle state
- 1 - busy status,Busy state,Reject the operation
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_GetCurFPDStatus(void *handle);
- /*********************************************************
- * No: No075
- * Function Name: HBI_SetCapacity
- * Function Description: Set buffer capacity (size)
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- unsigned int nframesize - The number of frames that can be stored,
- The buffer size is equal to the frame size multiplied by the number of frames。
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure,Reference error code ‘HbiError.h'
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_SetCapacity(void *handle, unsigned int nframesize);
- /*********************************************************
- * No: No076
- * Function Name: HBI_SetRawStyle
- * Function Description: Set whether to save the image and the image file format
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- bool bsave - Save or display,false:Display without saving,true:Save Don't Display
- 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
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_SetRawStyle(void *handle, bool bsave, bool bsingleraw = false);
- /*********************************************************
- * No: No077
- * Function Name: HBI_SetAqcProperty
- * Function Description: Set collection properties
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- FPD_AQC_MODE _mode - Acquisition mode and parameters
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_SetAqcProperty(void *handle, FPD_AQC_MODE _mode);
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- /*********************************************************
- * No: No078
- * Function Name: HBI_SetDebugMode
- * Function Description: Switch debugging mode and production mode - used to debug PCIE interface
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- int mode - 0: production mode, 1-PCIE debugging mode
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:Debug PCIE interface
- *********************************************************/
- HBI_FPD_DLL int HBI_SetDebugMode(void *handle, int mode);
- /*********************************************************
- * No: No079
- * Function Name: HBI_PcieSendBuff
- * Function Description: Send data to PCIE address, valid only in PCIE debugging mode
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- ePCIE_WR_TYPE etype - 'Bar' address or 'ddr' address type
- long addr - 'Bar' address or 'ddr' address
- unsigned char *szSndBuff - Write Buffer
- int nlen - Buffer data length
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_PcieSendBuff(void *handle, ePCIE_WR_TYPE etype, long addr, unsigned char *szSndBuff, int nlen);
- /*********************************************************
- * No: No080
- * Function Name: HBI_PcieRecvBuff
- * Function Description: Read PCIE address data, valid only in PCIE debug mode
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- ePCIE_WR_TYPE etype - 'Bar' address or 'ddr' address type
- long addr - 'Bar' address or 'ddr' address
- unsigned char *szRcvbuff - Receive Buffer
- int nlen - Buffer data length
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_PcieRecvBuff(void *handle, ePCIE_WR_TYPE _type, long addr, unsigned char *szRcvbuff, int nlen);
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- // Distributed generation template is used for template testing. For integration, please refer to the interface of rapid generation template
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- /*********************************************************
- * No: No081
- * Function Name: HBI_InitOffsetMode
- * Function Description: Initialize dark field template
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- CALIBRATE_INPUT_PARAM calibrate_param,refer to <<HbiType.h>>。
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_InitOffsetMode(void *handle, CALIBRATE_INPUT_PARAM calibrate_param);
- /*********************************************************
- * No: No082
- * Function Name: HBI_InsertOffsetMode
- * Function Description: Insert data into offset correction model
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- int group_id - group ID
- char *filepath - File path
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_InsertOffsetMode(void *handle, int group_id, char *filepath);
- /*********************************************************
- * No: No083
- * Function Name: HBI_ClearOffsetMode
- * Function Description: Clear offset correction model
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_ClearOffsetMode(void *handle);
- /*********************************************************
- * No: No084
- * Function Name: HBI_GenerateOffsetTemp
- * Function Description: Generate offset template
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- int raw_num - Number of dark field pictures
- int bprevew - Whether to generate preview template, 1-generate, 0-do not generate
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_GenerateOffsetTemp(void *handle, int raw_num, int bprevew = 0);
- /*********************************************************
- * No: No085
- * Function Name: HBI_InitGainMode
- * Function Description: Initialize gain correction model
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- CALIBRATE_INPUT_PARAM calibrate_param -Correction parameters
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_InitGainMode(void *handle, CALIBRATE_INPUT_PARAM calibrate_param);
- /*********************************************************
- * No: No086
- * Function Name: HBI_InsertGainMode
- * Function Description: Insert data into the gain correction model
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- int group_id - group ID
- char *filepath - File path
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_InsertGainMode(void *handle, int group_id, char *filepath);
- /*********************************************************
- * No: No087
- * Function Name: HBI_ClearGainMode
- * Function Description: Empty gain correction model
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_ClearGainMode(void *handle);
- /*********************************************************
- * No: No088
- * Function Name: HBI_GenerateGainTemp
- * Function Description: Generate gain template
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- int group_sum - groups
- int per_group_num - Generate the number of pictures in each group of gain template
- int bprevew - Whether to generate preview template, 1-generate, 0-do not generate
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_GenerateGainTemp(void *handle, int group_sum, int per_group_num, int bprevew = 0);
- /*********************************************************
- * No: No089
- * Function Name: HBI_InitDefectMode
- * Function Description: Initialize the defect correction model
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- CALIBRATE_INPUT_PARAM calibrate_param - Correction parameters
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_InitDefectMode(void *handle, CALIBRATE_INPUT_PARAM calibrate_param);
- /*********************************************************
- * No: No090
- * Function Name: HBI_InsertDefectMode
- * Function Description: Insert data into the defect correction model
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- int group_id - group ID
- char *filepath - File path
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_InsertDefectMode(void *handle, int group_id, char *filepath);
- /*********************************************************
- * No: No091
- * Function Name: HBI_ClearDefectMode
- * Function Description: Empty the defect correction model
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_ClearDefectMode(void *handle);
- /*********************************************************
- * No: No092
- * Function Name: HBI_GenerateDefectTemp
- * Function Description: Generate defect template
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- int group_sum - groups
- int per_group_num - Number of pictures in each group
- int bprevew - Whether to generate preview template, 1-generate, 0-do not generate
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_GenerateDefectTemp(void *handle, int group_sum, int per_group_num, int bprevew = 0);
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- // File working directory address management, not yet support
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- /////*********************************************************
- ////* No: No093
- ////* Function Name: HBI_SetFileDirectory
- ////* Function Description: Set file storage path
- ////* Parameter Description:
- //// In: void *handle - unsigned handle pointer
- //// HBI_FILE_TYPE filetype - File type, enumeration class
- //// 0 IMAGE_FILE
- //// 1 TEMPLATE_FILE
- //// char *dirpath - File path
- //// Out: Null
- ////* Return Value:int
- //// 0: Success
- //// Non-0: Failure
- ////* Comment:
- ////*********************************************************/
- ////HBI_FPD_DLL int HBI_SetFileDirectory(void *handle, HBI_FILE_TYPE filetype, char *dirpath);
- /*********************************************************
- * No: No094
- * Function Name: HBI_GetFileDirectory
- * Function Description: Get the current file storage path
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- HBI_FILE_TYPE filetype - File type, enumeration class
- 0 IMAGE_ FILE - image file directory
- 1 TEMPLATE_ FILE - Calibration template file directory (refers to gain and defect template file path)
- 2 TEMPLATE_ IMG-calibration template middle image data file directory
- Out: Null
- * Return Value:int
- NULL - Failure
- char* - return path
- * Comment:
- *********************************************************/
- HBI_FPD_DLL char* HBI_GetFileDirectory(void *handle, HBI_FILE_TYPE filetype);
- /*********************************************************
- * No: No095
- * Function Name: HBI_GetCurTempFileFullDirectory
- * Function Description: Get the full directory of the current template file according to the template type
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- In: int tempType -Template type (default is 0),0-offset template;1-gain template;2-defect template;
- Out: Null
- * Return Value:char*
- NULL - Failure
- char* - Return directory path
- * Comment:
- *********************************************************/
- HBI_FPD_DLL char* HBI_GetCurTempFileFullDirectory(void *handle, int temptype=0);
- /*********************************************************
- * No: No096
- * Function Name: HBI_IsBusyNow
- * Function Description: Judge whether the current SDK is being processed. The current operation is not allowed
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- eventtype - Generate template type
- 1 Distribution generation template processing
- 2. Rapid template generation is in progress
- 3. During collection
- 4. During parameter setting
- Out: Null
- * Return Value:int
- 0 - idle status,Indicates that the operation can be performed
- 1 - busy status,Indicates that the operation is refused because the status is busy
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_IsBusyNow(void *handle, int eventtype);
- /*********************************************************
- * No: No097
- * Function Name: HBI_SetCuttingImageRect
- * Function Description: set rect of cutting image
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- In: CuttingImageRect *roi - The param of 'rect of cutting image'
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_SetCuttingImageRect(void *handle, CuttingImageRect*roi);
- /*********************************************************
- * No: No098
- * Function Name: HBI_GetCuttingImageRect
- * Function Description: get rect of cutting image
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- * Return Value:CuttingImageRect*
- NULL - Failure
- Non-NULL - Success,The param of 'rect of cutting image'
- * Comment:
- *********************************************************/
- HBI_FPD_DLL CuttingImageRect* HBI_GetCuttingImageRect(void *handle);
- //////////////////////////////////////////////////////////////////////////
- // User Mode Development add by mhyang 20230327
- //////////////////////////////////////////////////////////////////////////
- /*********************************************************
- * No: No099
- * Function Name: HBI_GetCurModeList
- * Function Description: Get Mode List
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- * Return Value:FPD_MODE_LIST*
- NULL - Failure
- Non-NULL - Success,The param of User Acquisition Mode Parameter Configuration
- * Comment:
- *********************************************************/
- HBI_FPD_DLL FPD_MODE_LIST* HBI_GetCurModeList(void* handle);
- /*********************************************************
- * No: No100
- * Function Name: HBI_UpdateModeList
- * Function Description: Update Mode List
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- FPD_MODE_LIST* modelist -User Acquisition Mode Parameter Configuration
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_UpdateModeList(void* handle, FPD_MODE_LIST* modelist);
- /*********************************************************
- * No: No101
- * Function Name: HBI_GetCurModeData
- * Function Description: Obtain the current Mode Data
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- * Return Value:FPD_MODE_DATA*
- NULL - Failure
- Non-NULL - Success,The param of fpd mode data information
- * Comment:
- *********************************************************/
- HBI_FPD_DLL FPD_MODE_DATA* HBI_GetCurModeData(void* handle);
- /*********************************************************
- * No: No102
- * Function Name: HBI_UpdateCurModeData
- * Function Description: Update current Mode Data
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- FPD_MODE_DATA* mode -fpd mode data information
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_UpdateCurModeData(void* handle, FPD_MODE_DATA* mode);
- /*********************************************************
- * No: No103
- * Function Name: HBI_UpdateModeData
- * Function Description: Update Mode Item Data through Mode ID
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- FPD_MODE_DATA* mode -fpd mode data information
- unsigned int id - mode id
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_UpdateModeData(void* handle, FPD_MODE_DATA* mode, unsigned int id = 0);
- /*********************************************************
- * No: No104
- * Function Name: HBI_GetModeData
- * Function Description: Obtain Mode Data through Mode ID
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- unsigned int id - mode id
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL FPD_MODE_DATA* HBI_GetModeData(void* handle, unsigned int id = 0);
- /*********************************************************
- * No: No105
- * Function Name: HBI_GetModeListSize
- * Function Description: Obtain the number of items for Mode
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL unsigned int HBI_GetModeListSize(void* handle);
- /*********************************************************
- * No: No106
- * Function Name: HBI_GetCurModeID
- * Function Description: Obtain the current Mode ID
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_GetCurModeID(void* handle);
- /*********************************************************
- * No: No107
- * Function Name: HBI_SwitchUserMode
- * Function Description: Switch Mode
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- unsigned int modeid - mode id
- FPD_MODE_DATA *PMODEDATA - fpd mode data information
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_SwitchUserMode(void* handle, unsigned int modeid = 0, FPD_MODE_DATA *PMODEDATA=NULL);
- /*********************************************************
- * No: No108
- * Function Name: HBI_ModeExists
- * Function Description: Determine whether the mode exists
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- FPD_MODE_DATA mode - fpd mode data information
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_ModeExists(void* handle, FPD_MODE_DATA mode);
- /*********************************************************
- * No: No109
- * Function Name: HBI_CheckCurtMode
- * Function Description: Judge whether the mode is normal
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL bool HBI_CheckCurtMode(void* handle);
- /*********************************************************
- * No: No110
- * Function Name: HBI_ModeCorrectTempalteEnable
- * Function Description: The calibration template of Mode is effective or not effective
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- unsigned int id - mode id
- bool bEnable - 1 - vailid, 0-invaild
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_ModeCorrectTempalteEnable(void* handle, unsigned int id, bool bEnable = true);
- /*********************************************************
- * No: No111
- * Function Name: HBI_AllModeCorrectTempalteEnable
- * Function Description: All calibration templates for Mode items are valid or not valid
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- bool bEnable - 1 - vailid, 0-invaild
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_AllModeCorrectTempalteEnable(void* handle, bool bEnable = true);
- /*********************************************************
- * No: No112
- * Function Name: HBI_SaveModeList2File
- * Function Description: Save the current user mode list
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- char* szPath - file path
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_SaveModeList2File(void* handle, char* szPath = NULL);
- /*********************************************************
- * No:No113
- * Function name: HBI_DownloadModeTemplate (new)
- * Function description: Download template based on Mode parameter
- * Parameter Description:
- In: void * handle - Handle (unsigned pointer)
- Int intemptype - Download file types 0-gain template, 1-defect template, 2-offset template, others - Not supported
- Out: None
- * Return value: int
- 0- Success
- Non 0- Failed
- * Note: Download template add by mhyang 20230606
- *********************************************************/
- HBI_FPD_DLL int HBI_DownloadModeTemplate(void* handle, DOWNLOAD_MODE_FILE downloadfile);
- /*********************************************************
- * No:No114
- * Function name: HBI_ DownloadModeTemplateByType (new)
- * Function description: Download correction template files by template type (default to current Mode Id)
- * Parameter Description:
- In: void * handle - Handle (unsigned pointer)
- Int intemptype - Download file types 0-gain template, 1-defect template, 2-offset template, others - Not supported
- Out: None
- * Return value: int
- 0- Success
- Non 0- Failed
- * Note: Download template add by mhyang 20230606
- *********************************************************/
- HBI_FPD_DLL int HBI_DownloadModeTemplateByType(void* handle, int intemptype);
- /*********************************************************
- * No:No115
- * Function name: HBI_DownloadModeTemplateByIdAndType (new)
- * Function description: Download correction template files according to Mode Id and template type
- * Parameter Description:
- In: void * handle - Handle (unsigned pointer)
- Unsigned int modeid - Mode Id [0,9]
- Int intemptype - Download file types 0-gain template, 1-defect template, 2-offset template, others - Not supported
- Out: None
- * Return value: int
- 0- Success
- Non 0- Failed
- * Note: Download template add by mhyang 20230605
- *********************************************************/
- HBI_FPD_DLL int HBI_DownloadModeTemplateByIdAndType(void* handle, unsigned int modeid, int intemptype);
- /*********************************************************
- * No:No116
- * Function Name: HBI_GetCurModeTemplateStatus(new)
- * Function Description: 获取当前Mode项的固件校正模板状态
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- unsigned int modeid - Mode Id [0,9]
- int intemptype - Download file types 0-gain template, 1-defect template, 2-offset template, others - not supported
- Out: None
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_GetCurModeTemplateStatus(void* handle, int* nTempStatus);
- //////////////////////////////////////////////////////////////////////////
- // User Mode Development add by mhyang 20230328
- //////////////////////////////////////////////////////////////////////////
- /*********************************************************
- * No:No117
- * Function Name: HBI_GetCurrentCorrectFilePath
- * Function Description: Obtain the absolute path of the current template file according to the template type
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- In: int tempType -Template type (default is 0),0-offset template;1-gain template;2-defect template;3-defect map template;4-gainb template;
- Out: Null
- * Return Value:char*
- NULL - Failure
- char* - Return absolute path
- * Comment:
- *********************************************************/
- HBI_FPD_DLL char* HBI_GetCurrentCorrectFilePath(void *handle, int tempType=0);
- /*********************************************************
- * No:No118
- * Function name: HBI_DetectorPrimaryAuthor
- * Function description: 略
- * Parameter Description:
- In: void * handle - Handle (unsigned pointer)
- Int pcode -
- Out: None
- * Return value: int
- 0- Success
- Non 0- Failed
- * Note: add by mhyang 20211228
- *********************************************************/
- HBI_FPD_DLL int HBI_DetectorPrimaryAuthor(void *handle, char *pcode);
- /*********************************************************
- * No:No119
- * Function name: HBI_DetectorSecondaryAuthor
- * Function description: 略
- * Parameter Description:
- In: void * handle - Handle (unsigned pointer)
- Int pcode -
- Out: None
- * Return value: int
- 0- Success
- Non 0- Failed
- * Note: add by mhyang 20220211
- *********************************************************/
- HBI_FPD_DLL int HBI_DetectorSecondaryAuthor(void *handle, char *pcode);
- /*********************************************************
- * No: No120
- * Function Name: HBI_DownloadImage
- * Function Description: Download image (wireless detector)
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- int beginnumber - Download start image sequence number
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_DownloadImage(void *handle, int beginnumber = 1);
- /*********************************************************
- * No: No121
- * Function Name: HBI_SetSleepState
- * Function Description: Set the detector to sleep (wireless detector)
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_SetSleepState(void *handle);
- /*********************************************************
- * No: No122
- * Function Name: HBI_WakeUpFpd
- * Function Description: Wake up tablet from sleep (wireless detector)
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_WakeUpFpd(void *handle);
- /*********************************************************
- * No: No123
- * Function Name: HBI_EnableEmmcStorage
- * Function Description: Emmc storage image enable (wireless detector)
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- int nenable - 1: Save, others: not save
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_EnableEmmcStorage(void *handle, int nenable = 0);
- /*********************************************************
- * No: No124
- * Function Name: HBI_ReflashBatteryStatusInfo
- * Function Description: Refresh battery information (wireless detector)
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment: Asynchronous function, feedback through callback function
- *********************************************************/
- HBI_FPD_DLL int HBI_ReflashBatteryStatusInfo(void *handle);
- /*********************************************************
- * No: No125
- * Function Name: HBI_GetBatteryStatusInfo
- * Function Description: Get battery information (wireless detector)
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- BATTERY_STATUS_INFO *pBatteryStatus - Battery status information, refer to <<HbiType.h>>
- Out:BATTERY_STATUS_INFO *pBatteryStatus
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:Synchronization function, parameters are synchronized and fed back to the upper computer through input parameters
- *********************************************************/
- HBI_FPD_DLL int HBI_GetBatteryStatusInfo(void *handle, BATTERY_STATUS_INFO *pBatteryStatus);
- /////////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////////////
- /*********************************************************
- * No: No126
- * Function Name: HBI_TriggerBinningAcqTime
- * Function Description: // Work mode, binning, frame speed setting
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- int triggerMode // Work mode
- // Static:
- // 01: Software trigger mode;
- // 02: Clear;
- // 03: High voltage generator(hvg) trigger mode;
- // 04: Auto exposure detection mode.
- // Dynamic:
- // 05: Hvg pulse sync in trigger mode;
- // 06: Fpd pulse sync out trigger Mode;
- // 07: Free run mode.
- unsigned char binning
- // 1: 1x1,
- // 2: 2x2,
- // 3: 3x3,
- // 4: 4x4,
- int time // Live acquisition span time, unit: ms
- // For example: 1000ms (1fps), 500ms (2fps), 250ms (4fps),125ms (8fps)
- Out: Null
- * Return Value:
- int // 0: Success
- // Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_TriggerBinningAcqTime(void *handle, int triggerMode, unsigned char binning, int acqtime, int nfeedback = 0);
- /*********************************************************
- * No: No127
- * Function Name: HBI_PgaBinningAcqTime
- * Function Description: // PGA gain stage, binning, frame speed setting
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- int nPgaLevel // PGA gain stage
- //[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,[7]-9.6pC
- //[8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC,Default: 7.2 pC.
- unsigned char binning
- // 1: 1x1,
- // 2: 2x2,
- // 3: 3x3,
- // 4: 4x4,
- int acqtime // Live acquisition span time, unit: ms
- int nfeedback // 1: Automatic feedback config parameters if setting is successful
- // Non-1: Feedback setting success status
- * Return Value:
- int // 0: Success
- // Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_PgaBinningAcqTime(void *handle, int nPgaLevel, unsigned char binning, int acqtime, int nfeedback = 0);
- /*********************************************************
- * No: No128
- * Function Name: HBI_TriggerPgaBinningAcqTime
- * Function Description: // trigger mode, PGA gain stage, binning type, frame speed setting
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- int triggerMode // Work mode
- // Static:
- // 01: Software trigger mode;
- // 02: Clear;
- // 03: High voltage generator(hvg) trigger mode;
- // 04: Auto exposure detection mode.
- // Dynamic:
- // 05: Hvg pulse sync in trigger mode;
- // 06: Fpd pulse sync out trigger Mode;
- // 07: Free run mode.
- int nPgaLevel // PGA gain stage
- //[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,[7]-9.6pC
- //[8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC,Default: 7.2 pC.
- unsigned char binning
- // 1: 1x1,
- // 2: 2x2,
- // 3: 3x3,
- // 4: 4x4,
- int acqtime // Live acquisition span time, unit: ms
- int nfeedback // 1: Automatic feedback config parameters if setting is successful
- // Non-1: Feedback setting success status
- * Return Value:
- int // 0: Success
- // Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_TriggerPgaBinningAcqTime(void *handle, int triggerMode, int nPgaLevel, unsigned char binning, int acqtime, int nfeedback = 0);
- /*********************************************************
- * No: No129
- * Function Name: HBI_PgaAcqTime
- * Function Description: // PGA gain stage, frame speed setting
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- int nPgaLevel // PGA gain stage
- //[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,[7]-9.6pC
- //[8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC,Default: 7.2 pC.
- int acqtime // Live acquisition span time, unit: ms
- int nfeedback // 1: Automatic feedback config parameters if setting is successful
- // Non-1: Feedback setting success status
- * Return Value: int
- // 0: Success
- // Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_PgaAcqTime(void *handle, int nPgaLevel, int acqtime, int nfeedback = 0);
- /*********************************************************
- * No: No130
- * Function Name: HBI_SwitchNetTypeWlanMode
- * Function Description: Switch wireless 2.4G/5G network and WLAN AP/Client Mode (wireless flat panel detector)
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- int nNetType - Wireless network type,1-2.4G,2-5G,Other - invalid
- int nWlanMode- Wireless mode,1-AP Mode,2-Client Mode,3-Wired Mode,Other - invalid
- * Return Value:int
- // 0: Success
- // Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_SwitchNetTypeWlanMode(void *handle, int nNetType, int nWlanMode);
- /*********************************************************
- * No: No131
- * Function Name: HBI_ReadPcieVersion
- * Function Description: Get PCIe card version number
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- In/Out: char *szVersion,At least 16 bytes
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_ReadPcieVersion(void *handle, char *szVersion);
- /*********************************************************
- * No: No132
- * Function Name: HBI_GeneratePreviewTemplate
- * Function Description: Quickly generate Preview image template
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- EnumIMAGE_ACQ_CMD _mode - Template Type
- OFFSET_TEMPLATE_TYPE preview-offset Template
- GAIN_TEMPLATE_TYPE preview-gain Template
- DEFECT_TEMPLATE_GROUP1, preview-defect Template
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_GeneratePreviewTemplate(void *handle, EnumIMAGE_ACQ_CMD _mode);
- /*********************************************************
- * No: No133
- * Function Name: HBI_SetImageRotateAndFlip
- * Function Description: Rotate 90 ° or enable mirroring (SDK processing, applicable to low frame rate or small resolution tablets)
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- In: int nRotate - 0-Do nothing;1-Left Rotate 90°;02-"Right Rotate 90°;
- In: int nFlip - 0-Do nothing;1-Horizontal mirror;2-Mirror vertically;
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:image processing,By default, rotate before mirro
- *********************************************************/
- HBI_FPD_DLL int HBI_SetImageRotateAndFlip(void *handle, int nRotate, int nFlip);
- /*********************************************************
- * No: No134
- * Function Name: HBI_Switch2Bit8Image
- * Function Description: Switch or cancel Bit8 image, cancel automatic switch to Bit16 image (normal image)
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- int nbit8 - Bit8 Image switch control parameters, 0-Bit16 image, 1-Bit8 image, other - Bit16 image
- int nwindowwidth - window width,0~65535(Bit8 Image validation)
- int nwindowleveling - window level~65535(Bit8 Image validation)
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_Switch2Bit8Image(void *handle, int nbit8, int nwindowwidth, int nwindowleveling);
- // /*********************************************************
- // * No: No135
- // * Function Name: HBI_OpenTemplateWizard
- // * Function Description: Open the correction template generation tool
- // * Parameter Description:
- // In: void *handle - unsigned handle pointer
- // * Return Value:int
- // 0: Success
- // Non-0: Failure
- // * Comment:
- // *********************************************************/
- // HBI_FPD_DLL int HBI_OpenTemplateWizard(void *handle);
- /*********************************************************
- * No: No136
- * Function Name: HBI_ReadFromUserDdr
- * Function Description: Read user ddr information (customized)
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- unsigned char *szRcvbuff - Receive Buffer,size=1024
- int/out *nlen - Buffer data length pointer(<=1024),The initial value is szRcvbuff size
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_ReadFromUserDdr(void* handle, unsigned char* szRcvBuff, int *nlen);
- /*********************************************************
- * No: No137
- * Function Name: HBI_WriteToUserDdr
- * Function Description: Write content to user ddr (user-defined)
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- unsigned char *szSndBuff - Write Buffer
- int nlen - Buffer data length(<=1024)
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_WriteToUserDdr(void* handle, unsigned char* szSndBuff, int nlen);
- /*********************************************************
- * No: No138
- * Function Name: HBI_SetRoiMode
- * Function Description: -silicon ROI region setting function.
- * Currentlyonly 1613-125um、3030-140um、4343-100um、2530-100um are supported.
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- int nMode - ROI mode
- for example,1613-125um:0-Normal Image,w*h(1248*1024), Rect(0,0,1247,1023);
- 1-w*h(32*1024), Rect(608,0,639,1023);
- 2-w*h(1248*32), Rect(0,496,1247,527);
- 3-w*h(1248*64), Rect(0,480,1247,543);
- 4-w*h(1248*128),Rect(0,448,1247,575);
- Others-Normal Image。
- 3030-140um:0-Normal Image,w*h(2048*2048), Rect(0,0,2047,2047);
- 1-w*h(1024*2048),Rect(512,0,1535,2047);
- Others-Normal Image。
- 4343-100um:0-Normal Image,w*h(4288*4288), Rect(0,0,4287,4287);
- 1-w*h(4288*800),Rect(0,1743,4287,2544);
- Others-Normal Image。
- 2530-100um:0-Normal Image,w*h(2432*3072), Rect(0,0,2431,3071);
- 1-w*h(1808*1800),Rect(316,636,2115,2435);
- 2-w*h(1312*1300),Rect(566,886,1865,2185);
- Others-Normal Image。
- int nfeedback // 1: Automatic feedback config parameters if setting is successful
- // Non-1: Feedback setting success status
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:only 1613-125um、3030-140um、4343-100um、2530-100um are supported。
- *********************************************************/
- HBI_FPD_DLL int HBI_SetRoiMode(void* handle, int nMode, int nfeedback=1);
- /*********************************************************
- * No: No139
- * Function Name: HBI_SetZoomModeRect
- * Function Description: The ZOOM Mode region setting function for CMOS tablets
- * currently supports only CMOS - 1412-50um and CMOS - 0606-50um ,1917-120umtablet types.
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- CMOS_ZOOM_RECT stZoomRect - Zoom region
- The region is represented by left, top, right, and bottom.
- for example, when left, top, right and bottom are illegal values, the image will display the full image by default,
- 1>When left=top=right=bottom=0, the whole picture is displayed;
- 2>When eft<0 or left>width, the whole picture will be displayed, and others are the same.
- int nfeedback // 1: Automatic feedback config parameters if setting is successful
- // Non-1: Feedback setting success status
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment: currently supports only CMOS - 1412-50um and CMOS - 0606-50um 1917-120um tablet types.
- *********************************************************/
- HBI_FPD_DLL int HBI_SetZoomModeRect(void* handle, CMOS_ZOOM_RECT stZoomRect, int nfeedback = 1);
- /*********************************************************
- * No: No140
- * Function Name: HBI_SetCorrectFileDirectory
- * Function Description: User set correction file home directory
- * If this interface is not called, the calibration file defaults to the DLL directory
- * Setting failed. The default is the current path
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- char *pUserDir - User defined correction file directory,for example,
- ”E:\\***\\***\\
- ” Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_SetCorrectFileDirectory(void* handle, char *pUserDir);
- /*********************************************************
- * No: No141
- * Function Name: HBI_GetCorrectFileDirectory
- * Function Description: Obtain the home directory of user correction files
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL char* HBI_GetCorrectFileDirectory(void* handle);
- /*********************************************************
- * No: No142
- * Function Name: HBI_RestoreCorrectDefaultDirectory
- * Function Description: Restore correction file default path
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_RestoreCorrectDefaultDirectory(void* handle);
- /*********************************************************
- * No: No143
- * Function Name: HBI_SSGCTRegCallbackFunc(newly increased)
- * Function Description: Register single-step template callback handler
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- SSGCT_CALLBACK_FUNC callbackfun - Registering Callbacks
- 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.
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:Single Step Generate Template-SSGT
- *********************************************************/
- HBI_FPD_DLL int HBI_SSGCTRegCallbackFunc(void* handle, SSGCT_CALLBACK_FUNC callbackfun, void* pObject);
- /*********************************************************
- * No: No144
- * Function Name: HBI_SSCGTEnableMode(newly increased)
- * Function Description: The single-frame acquisition preparation command activates the single-step image acquisition generation template mode or restores the normal image acquisition mode
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- Int nMode - (1): generate offset template;
- (2) : Generate gain template;
- (3) : generate a defect template;
- (4) : generate gain and defect templates;
- (0 or other): Exit the single-step template generation mode and return to the normal drawing mode;
- Int nGroups - Number of groups
- Int nPreGroup - Number of images captured per group
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:Single Step Generate Correction Template-SSGT
- *********************************************************/
- HBI_FPD_DLL int HBI_SSGCTEnableMode(void* handle, int nMode, int nGroups=3, int nPreGroup=3);
- /*********************************************************
- * No: No145
- * Function Name: HBI_SSGCTPrepare(newly increased)
- * Function Description: Single frame acquisition preparation instruction
- * Parameter Description:
- In : void* handle - unsigned handle pointer
- Out : None
- * Return Value: int
- 0: Success
- Non-0: Failure
- * Comment: Single Step Generate Correction Template-SSGT
- *********************************************************/
- HBI_FPD_DLL int HBI_SSGCTPrepare(void* handle);
- /*********************************************************
- * No: No146
- * Function Name: HBI_SSGCTSingleShot(newly increased)
- * Function Description: Single frame acquisition
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment: Single Step Generate Correction Template-SSGT
- *********************************************************/
- HBI_FPD_DLL int HBI_SSGCTSingleShot(void* handle);
- /*********************************************************
- * No: No147
- * Function Name: HBI_SSGCTGenerateTemplate(newly increased)
- * Function Description: Generate Template
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment: Single Step Generate Correction Template-SSGT
- *********************************************************/
- HBI_FPD_DLL int HBI_SSGCTGenerateTemplate(void* handle);
- /*********************************************************
- * No: No148
- * Function Name: HBI_SSGCTDownloadTemplate(newly increased)
- * Function Description: Download calibration template
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- int infiletype -Download file types: 1-offset template, 2-gain template, 3-defect template, others - not supported
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment: Single Step Generate Correction Template-SSGT
- *********************************************************/
- HBI_FPD_DLL int HBI_SSGCTDownloadTemplate(void* handle, int infiletype);
- /*********************************************************
- * No: No149
- * Function Name: HBI_UpdateWirelessNetwork(newly increased)
- * Function Description: Update wireless network configuration
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- EtherInfo ether - Network configuration parameter structure, refer to <<HbiType.h>>
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment: wireless FPD network config
- *********************************************************/
- HBI_FPD_DLL int HBI_UpdateWirelessNetwork(void* handle, EtherInfo ether);
- /*********************************************************
- * No: No150
- * Function Name: HBI_GetWirelessNetWork(newly increased)
- * Function Description: Get wireless network configuration (asynchronous message, callback function feedback)
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment: wireless FPD network config
- *********************************************************/
- HBI_FPD_DLL int HBI_GetWirelessNetwork(void* handle);
- /*********************************************************
- * No: No151
- * Function Name: HBI_UpdateWirelessSecurityKey(newly increased)
- * Function Description: Modify wireless network security key
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- int wirelessmode - Wireless network mode,1-AP mode,2-Client mode
- char *pkey - Security key
- int nkeylen - Security key length (10 significant characters)
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment: wireless FPD network config
- *********************************************************/
- HBI_FPD_DLL int HBI_UpdateWirelessSecurityKey(void* handle, int wirelessmode, char *pkey, int nkeylen);
- /*********************************************************
- * No: No152
- * Function Name: HBI_UpdateSaveOption
- * Function Description: Update Save Image Options
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- SAVE_IMAGE saveimge - Structure parameters
- unsigned char m_bySaveType; // 0-show image only,1-save image only,2-show and save image;
- unsigned char m_bySaveFileType; // 0-image,1-video;
- unsigned short m_bySaveNumber; // Number of images included in the video
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_UpdateSaveOption(void* handle, SAVE_IMAGE saveimge);
- /*********************************************************
- * No: No153
- * Function Name: HBI_SetPacketIntervalTime
- * Function Description: Set Package Interval
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- int *in_itime - TIME,UNIT:um
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_SetPacketIntervalTime(void* handle, int in_itime);
- /*********************************************************
- * No: No154
- * Function Name: HBI_GetPacketIntervalTime(newly increased)
- * Function Description: Get Package Interval
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- out:int *out_time - Time in microseconds
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_GetPacketIntervalTime(void* handle, int* out_time);
- /*********************************************************
- * No: No155
- * Function Name: HBI_SetDummyParameter(newly increased)
- * Function Description: Update Dummy parameters (parameters required for Dummy correction)
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- int nDummyStartCol - The region start column of Dummy
- int nDummyEndCol - The Region End Column of Dummy
- int nDummyConstant - The constant of Dummy
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_SetDummyParameter(void* handle, int nDummyStartCol, int nDummyEndCol, int nDummyConstant);
- /*********************************************************
- * No: No156
- * Function Name: HBI_AutoWindowWidthWindowLevel
- * 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.
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- In/Out: unsigned char *imgbuff,Source data (16 bit unsigned small end data), destination data (8-bit unsigned data)
- In/Out: int *nbufflen, Buffer data length (halve the data size after conversion)
- In: int nwidth - Image data width
- In: int nheight - Image data high
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:**************************************/
- HBI_FPD_DLL int HBI_AutoWindowWidthWindowLevel(void* handle, unsigned char* imgbuff, int* nbufflen, int nwidth, int nheight);
- /*********************************************************
- * No: No157
- * Function Name: HBI_UnRegProgressCallBack
- * Function Description: Unregister progress registration callback function
- * Parameter Description: Process firmware upgrade feedback
- In: void *handle - unsigned handle pointer
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_UnRegProgressCallBack(void* handle);
- /*********************************************************
- * No: No158
- * Function Name: HBI_SetUdpMtuPacketType(newly increased)
- * Function Description: Set the packet type of UDP maximum transmission unit
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- In: int npacketType - 0-udp packet;1-udp packet jumbo;others-"udp packet°;
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_SetUdpMtuPacketType(void* handle, int npacketType);
- /*********************************************************
- * No: No159
- * Function Name: HBI_Rotate90AndFlip(newly increased)
- * Function Description: Image rotation and image processing (only applicable to 16-bit unsigned image data, which is rotated first and then mirrored by default)
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- 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)
- In: int nbufflen - Buffer data length
- In/Out: int *nwidth - Pointer type input and output parameters, pointer address storage image data width
- In/Out: int *nheight - Pointer type input and output parameters, pointer address storage image data high
- 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
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:By default, rotate before mirror
- *********************************************************/
- HBI_FPD_DLL int HBI_Rotate90AndFlip(void *handle, unsigned char* imgbuff, int nbufflen, int* pnwidth, int* pnheight, int nClockwise, int nVertical);
- /*********************************************************
- * No: No160
- * Function Name: HBI_ResetCorrectTemplate(newly increased)
- * Function Description: Reset the calibration template file - rotate, mirror, reverse process and save, generally complete the process before downloading to the firmware
- * 1、Find the generated calibration template file according to the current rotation and mirroring parameters (the template file has been rotated and mirrored);
- * 2、Reverse process the calibration template file (mirror first and then reverse rotation);
- * 3、Automatically store the rotated calibration template file according to multi-template management rules;
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- In: int nTemplateType - 0-offset template(16-bits);1-gain template(32-bits);2-defect template(16-bits);
- * Return Value:int
- 0: Success
- Non-0: Failure
- * 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
- *********************************************************/
- HBI_FPD_DLL int HBI_ResetCorrectTemplate(void* handle, int nTemplateType);
- /*********************************************************
- * No: No161
- * Function Name: HBI_IsExistsOfCurCorrectTemplate(newly increased)
- * Function Description:Judge whether the current template file exists according to the template type
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- In: int tempType -Template type (default is 0),0-offset template;1-gain template;2-defect template;3-defect map template;4-gainb template;
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_IsExistsOfCurCorrectTemplate(void* handle, int tempType=0);
- /*********************************************************
- * No: No162
- * Function Name: HBI_GetCurZoomData (newly increased)
- * Function Description: Get the current ZOOM area size data
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- Out: unsigned int *pZoomLeft - Zoom Rect Left
- unsigned int *pZoomTop - Zoom Rect Top
- unsigned int *pZoomWidth - Zoom Rect Width
- unsigned int *pZoomHeight - Zoom Rect Height
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:Rect data, where all are 0, indicating the full picture.
- *********************************************************/
- HBI_FPD_DLL int HBI_GetCurZoomRect(void* handle, unsigned int *pZoomLeft, unsigned int *pZoomTop, unsigned int * pZoomWidth, unsigned int *pZoomHeight);
- /*********************************************************
- * No: No163
- * Function Name: HBI_GetCurrentCorrectFileName (newly increased)
- * Function Description: Get the current template file name
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- In: int tempType -Template type (default is 0),0-offset template;1-gain template;2-defect template;3-defect map template;4-gainb template;
- * Return Value:char*
- NULL - Failure
- char* - Return file name
- * Comment:
- *********************************************************/
- HBI_FPD_DLL char* HBI_GetCurrentCorrectFileName(void* handle, int tempType=0);
- /*********************************************************
- * No: No164
- * Function Name: HBI_GetHbiUserCode
- * Function Description: Get customer name information
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- In/Out: char *szUserCode - A buff greater than 8 bytes is passed in, and the customer name information is backfilled after success
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_GetHbiUserCode(void* handle, char* szUserCode);
- /*********************************************************
- * No: No165
- * Function Name: HBI_GetHbiProductCode
- * Function Description: Get client product number
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- 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
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_GetHbiProductCode(void* handle, char* szProductCode);
- /*********************************************************
- * No: No166
- * Function name: HBI_ SetWorkModeOfComs (new)
- * Function description: Set the working mode of COMS chip
- * Parameter Description:
- In: void * handle - Handle (unsigned point)
- int nMode - The operating mode of the COMS chip
- [0] - Indicators DRS mode
- [1] - Indicators DDS mode
- Out: None
- * Return value: int
- 0- Success
- Non 0- Failed
- * Remarks:
- ***************************************************/
- HBI_FPD_DLL int HBI_SetWorkModeOfComs(void* handle, int nMode);
- /*********************************************************
- * No: No167
- * Function name: HBI_GetWorkModeOfComs
- * Function description: Obtain the working mode of COMS chip (newly added)
- * Parameter Description:
- In: void * handle - Handle (unsigned pointer)
- Out: None
- * Return value: int
- [0] - Indicates DRS mode
- [1] - Indicates DDS mode
- *Remarks:
- *********************************************************/
- HBI_FPD_DLL int HBI_GetWorkModeOfComs(void* handle);
- /*********************************************************
- * No: No168
- * Function name: HBI_GetMtuAndReceiveBuffers
- * Function description: Obtain network MTU size and receive buffer size (newly added)
- * Parameter Description:
- In: void * handle - Handle (unsigned pointer)
- Out: None
- * Return value: int
- 0- Success
- Non 0- Failed
- *Remarks:
- *********************************************************/
- HBI_FPD_DLL int HBI_GetMtuAndReceiveBuffers(void* handle, unsigned long* mtusize, int* rcvsize);
- /*********************************************************
- * No: No169
- * Function name: HBI_RetransmitPacketEnable
- * Function description: Continuous acquisition retransmission enable (newly added)
- * Parameter Description:
- In: void * handle - Handle (unsigned pointer)
- unsigned int nRetransmitted - data retransmission type,0:Re-Transmit Data,other:Prohibit data retransmission.
- Out: None
- * Return value: int
- 0- Success
- Non 0- Failed
- * Remarks:
- *********************************************************/
- HBI_FPD_DLL int HBI_RetransmitPacketEnable(void* handle, unsigned int nRetransmitted);
- /*********************************************************
- * No: No170
- * Function name: HBI_SetFpsOfTime(new)
- * Function description: Set frame rate control time, support subtle
- * Parameter Description:
- In: void *handle - Handle (unsigned pointer)
- unsigned int untimems - time interval,Unit is milliseconds,> 0ms
- unsigned short ustimeus - time interval,The unit is microseconds,>= 0ms.[0,999]
- Out: None
- * Return value:int
- 0 - Success
- Non 0 - Failed
- * Remarks:比如16帧,ntimems=62ms, ntimeus=8um
- *********************************************************/
- HBI_FPD_DLL int HBI_SetFpsOfTime(void* handle, unsigned int untimems, unsigned short ustimeus =0);
- /*********************************************************
- * No: No171
- * Function name: HBI_SetFirmwareOvrelay(new)
- * Function description: Set firmware overlay frame rate
- * Parameter Description:
- In: void *handle - Handle (unsigned pointer)
- unsigned int noverlaynum -[0,255],0-Firmware not stacked,>0-Overlay frame rate
- Out: None
- * Return value:int
- 0 - Success
- Non 0 - Failed
- * Remarks:
- *********************************************************/
- HBI_FPD_DLL int HBI_SetFirmwareOverlay(void* handle, unsigned int noverlaynum=0);
- /*********************************************************
- * No: No172
- * Function name: HBI_RetransMissFrameEx(new)
- * Function description: Full frame retransmission
- * Parameter Description:
- In: void *handle - Handle (unsigned pointer)
- unsigned int frameid -Frame number to be retransmitted
- Out: None
- * Return value:int
- 0 - Success
- Non 0 - Failed
- * Remarks:
- *********************************************************/
- HBI_FPD_DLL int HBI_RetransMissFrameEx(void* handle, unsigned int frameid);
- /*********************************************************
- * No: No173
- * Function name: HBI_TriggerPgaBinningAcqTimeCorrect
- * Function description: trigger mode, PGA gain stage, binning type, frame speed, correction enabling setting
- * Parameter Description:
- In: void *handle - Handle (unsigned pointer)
- int triggerMode // Work mode
- // Static:
- // 01: Software trigger mode;
- // 02: Clear;
- // 03: High voltage generator(hvg) trigger mode;
- // 04: Auto exposure detection mode.
- // Dynamic:
- // 05: Hvg pulse sync in trigger mode;
- // 06: Fpd pulse sync out trigger Mode;
- // 07: Free run mode.
- int nPgaLevel // PGA gain stage
- //[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,[7]-9.6pC
- //[8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC,Default: 7.2 pC.
- unsigned char binning
- // 1: 1x1,
- // 2: 2x2,
- // 3: 3x3,
- // 4: 4x4,
- int acqtime // Live acquisition span time, unit: ms
- IMAGE_CORRECT_ENABLE* pCorrect,refer to <<HbiType.h>>
- int nfeedback // 1: Automatic feedback config parameters if setting is successful
- // Non-1: Feedback setting success status
- * Return value:int
- 0 - Success
- Non 0 - Failed
- * Remarks:
- *********************************************************/
- HBI_FPD_DLL int HBI_TriggerPgaBinningAcqTimeCorrect(void* handle, int triggerMode, int nPgaLevel, unsigned char binning, int acqtime, IMAGE_CORRECT_ENABLE* pCorrect);
- /*********************************************************
- * No: No174
- * Function name: HBI_SetLogSwitch
- * Function description: Log Switch
- * Parameter Description:
- In: bool bwrite - true:write a log,false:do not write logs
- * Return value:None
- * Remarks:
- *********************************************************/
- HBI_FPD_DLL void HBI_SetLogSwitch(bool bwrite = true);
- /*********************************************************
- * No: No175
- * Function name: HBI_RetransMissPacketEx(new)
- * Function description: Single/multiple packet retransmission
- * Parameter Description:
- In: void *handle - Handle (unsigned pointer)
- unsigned int frameid -Frame number to be retransmitted
- unsigned int startpackagenum -Starting package number
- unsigned int endpackagenum -结End package number
- Out: None
- * Return value:int
- 0 - Success
- Non 0 - Failed
- * Remarks:
- *********************************************************/
- HBI_FPD_DLL int HBI_RetransMissPacketEx(void* handle, unsigned int frameid, unsigned int startpackagenum, unsigned int endpackagenum);
- /*********************************************************
- * No: No176
- * Function name: HBI_FirmwareReset(new)
- * Function description: Firmware reset
- * Parameter Description:
- In: void *handle - Handle (unsigned pointer)
- Out: None
- * Return value:int
- 0 - Success
- Non 0 - Failed
- * Remarks:Phenomenon - Frame Number Zeroing
- *********************************************************/
- HBI_FPD_DLL int HBI_FirmwareReset(void* handle);
- /*********************************************************
- * No: No177
- * Function name: HBI_FirmwareManagementTempalteType(new)
- * Function description: Firmware template management template method
- * Parameter Description:
- In: void * handle - Handle (unsigned pointer)
- unsigned int uType - Firmware template management template method
- 0-by binning type,
- 1-by Muti-Mode type
- others-by binning type
- Out: None
- * Return value:int
- 0 - Success
- Non 0 - Failed
- * Remarks:
- *********************************************************/
- HBI_FPD_DLL int HBI_FirmwareManagementTempalteType(void* handle, unsigned int uType);
- /*********************************************************
- * No: No178
- * Function name: HBI_SetValidModeItemNumber(new)
- * Function description: Set the number of valid Mode items
- * Parameter Description:
- In: void * handle - Handle (unsigned pointer)
- unsigned int uNumber - Mode item number,[0,10]
- Out: None
- * Return value:int
- 0 - Success
- Non 0 - Failed
- * Remarks:
- *********************************************************/
- HBI_FPD_DLL int HBI_SetValidModeItemNumber(void* handle, unsigned int uNumber);
- ////////////////////////////////////////////////////////////////////////
- // 以下HBI_M***new接口函数,除更新当前固件控制参数,另外同步当前Mode项中的参数
- // The following HBI_ M* interface function not only updates the current firmware control parameters, but also synchronizes the parameters in the current Mode item
- ////////////////////////////////////////////////////////////////////////
- /*********************************************************
- * No: No179
- * Function name: HBI_MUpdateTriggerMode(new)
- * Function description: trigger mode setting
- * Parameter Description:
- In: void *handle - Handle (unsigned pointer)
- int _triggerMode- trigger mode
- // 1: Software trigger mode
- // 3: High voltage generator trigger mode
- // 4: AED trigger mode
- // 5-Dynamic:Hvg Sync Mode
- // 6-Dynamic:Fpd Sync Mode
- // 7-Dynamic:Fpd Continue
- // 8-SAEC。
- // others-invaild
- Out:None
- * Return value:int
- 0 - Success
- Non 0 - Failed
- * Remarks:
- *********************************************************/
- HBI_FPD_DLL int HBI_MUpdateTriggerMode(void* handle, int _triggerMode);
- /*********************************************************
- * No: No180
- * Function name: HBI_MSetBinning(new)
- * Function description: Binning mode setting
- * Parameter Description:
- In:
- void *handle - Handle (unsigned pointer)
- unsigned int ubinning - 1:1x1,2:2x2,3:3x3,4:4x4
- Out:None
- * Return value:int
- 0 - Success
- Non 0 - Failed
- * Remarks:
- *********************************************************/
- HBI_FPD_DLL int HBI_MSetBinning(void* handle, unsigned int ubinning);
- /*********************************************************
- * No: No181
- * Function name: HBI_MSetPGALevel(new)
- * Function description: PGA gain stage setting
- * Parameter Description:
- In: void *handle - Handle (unsigned pointer)
- int mode // PGA gain stage
- //[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,[7]-9.6pC
- //[8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC,Default: 7.2 pC.
- Out: None
- * Return value:int
- 0 - Success
- Non 0 - Failed
- * Remarks:
- *********************************************************/
- HBI_FPD_DLL int HBI_MSetPGALevel(void* handle, int nGainLevel);
- /*********************************************************
- * No: No182
- * Function name: HBI_MSetRoiMode(new)
- * Function Description: -silicon ROI region setting function.
- * Currentlyonly 1613-125um、3030-140um、4343-100um、2530-100um are supported.
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- int nMode - ROI mode
- for example,1613-125um:0-Normal Image,w*h(1248*1024), Rect(0,0,1247,1023);
- 1-w*h(32*1024), Rect(608,0,639,1023);
- 2-w*h(1248*32), Rect(0,496,1247,527);
- 3-w*h(1248*64), Rect(0,480,1247,543);
- 4-w*h(1248*128),Rect(0,448,1247,575);
- Others-Normal Image。
- 3030-140um:0-Normal Image,w*h(2048*2048), Rect(0,0,2047,2047);
- 1-w*h(1024*2048),Rect(512,0,1535,2047);
- Others-Normal Image。
- 4343-100um:0-Normal Image,w*h(4288*4288), Rect(0,0,4287,4287);
- 1-w*h(4288*800),Rect(0,1743,4287,2544);
- Others-Normal Image。
- 2530-100um:0-Normal Image,w*h(2432*3072), Rect(0,0,2431,3071);
- 1-w*h(1808*1800),Rect(316,636,2115,2435);
- 2-w*h(1312*1300),Rect(566,886,1865,2185);
- Others-Normal Image。
- int nfeedback // 1: Automatic feedback config parameters if setting is successful
- // Non-1: Feedback setting success status
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment:only 1613-125um、3030-140um、4343-100um、2530-100um are supported。
- *********************************************************/
- HBI_FPD_DLL int HBI_MSetRoiMode(void* handle, int nMode, int nfeedback = 1);
- /*********************************************************
- * No: No183
- * Function name: HBI_MSetZoomModeRect(new)
- * Function Description: The ZOOM Mode region setting function for CMOS tablets
- * currently supports only CMOS - 1412-50um and CMOS - 0606-50um ,1917-120umtablet types.
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- CMOS_ZOOM_RECT stZoomRect - Zoom region
- The region is represented by left, top, right, and bottom.
- for example, when left, top, right and bottom are illegal values, the image will display the full image by default,
- 1>When left=top=right=bottom=0, the whole picture is displayed;
- 2>When eft<0 or left>width, the whole picture will be displayed, and others are the same.
- int nfeedback // 1: Automatic feedback config parameters if setting is successful
- // Non-1: Feedback setting success status
- Out: Null
- * Return Value:int
- 0: Success
- Non-0: Failure
- * Comment: currently supports only CMOS - 1412-50um and CMOS - 0606-50um 1917-120um tablet types.
- *********************************************************/
- HBI_FPD_DLL int HBI_MSetZoomModeRect(void* handle, CMOS_ZOOM_RECT stZoomRect, int nfeedback = 1);
- /*********************************************************
- * No: No184
- * Function name: HBI_MSetSelfDumpingTime(new)
- * Function Description: // Self dumping span time setting
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- int time // Self dumping span time, unit: ms
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_MSetSelfDumpingTime(void* handle, int time);
- /*********************************************************
- * No: No185
- * Function name: HBI_MSetLiveAcquisitionTime(new)
- * Function Description: // Live acquisition span time setting (apply to static and wireless type FPD)
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- int time // Live acquisition span time, unit: ms
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_MSetLiveAcquisitionTime(void* handle, int time);
- /*********************************************************
- * No: No186
- * Function name: HBI_MSetSinglePrepareTime(new)
- * Function Description: // Prepare delay time setting, which is also called exposure window
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- Out: int *out_itime // Time(0~10000), unit: ms
- // 0: “HBI_Prepare” and “HBI_SingleAcquisition” command are combined to realize single image acquisition
- // Non-0: FPD will delay “Prepare Delay Time” and automatically acquire one single image when the detector receives “HBI_Prepare” command.
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_MSetSinglePrepareTime(void* handle, int in_itime);
- /*********************************************************
- * No: No187
- * Function name: HBI_MSetFpsOfTime(new)
- * Function description: Set frame rate control time, support subtle
- * Parameter Description:
- In: void *handle - Handle (unsigned pointer)
- unsigned int untimems - time interval,Unit is milliseconds,> 0ms
- unsigned short ustimeus - time interval,The unit is microseconds,>= 0ms.[0,999]
- Out: None
- * Return value:int
- 0 - Success
- Non 0 - Failed
- * Remarks:比如16帧,ntimems=62ms, ntimeus=8um
- *********************************************************/
- HBI_FPD_DLL int HBI_MSetFpsOfTime(void* handle, unsigned int untimems, unsigned short ustimeus = 0);
- /*********************************************************
- * No: No188
- * Function name: HBI_MPgaAcqTime(new)
- * Function Description: // PGA gain stage, frame speed setting
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- int nPgaLevel // PGA gain stage
- //[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,[7]-9.6pC
- //[8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC,Default: 7.2 pC.
- int acqtime // Live acquisition span time, unit: ms
- int nfeedback // 1: Automatic feedback config parameters if setting is successful
- // Non-1: Feedback setting success status
- * Return Value: int
- // 0: Success
- // Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_MPgaAcqTime(void* handle, int nPgaLevel, int acqtime, int nfeedback = 0);
- /*********************************************************
- * No: No189
- * Function name: HBI_MPgaBinningAcqTime(new)
- * Function Description: // PGA gain stage, binning, frame speed setting
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- int nPgaLevel // PGA gain stage
- //[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,[7]-9.6pC
- //[8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC,Default: 7.2 pC.
- unsigned char binning
- // 1: 1x1,
- // 2: 2x2,
- // 3: 3x3,
- // 4: 4x4,
- int acqtime // Live acquisition span time, unit: ms
- int nfeedback // 1: Automatic feedback config parameters if setting is successful
- // Non-1: Feedback setting success status
- * Return Value:
- int // 0: Success
- // Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_MPgaBinningAcqTime(void* handle, int nPgaLevel, unsigned char binning, int acqtime, int nfeedback = 0);
- /*********************************************************
- * No: No190
- * Function name: HBI_MTriggerAndCorrectApplay(new)
- * Function Description: // Work mode and image calibration setting
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- int _triggerMode
- // 1: Software trigger mode
- // 3: High voltage generator trigger mode
- // 4: AED trigger mode
- // 5-Dynamic:Hvg Sync Mode
- // 6-Dynamic:Fpd Sync Mode
- // 7-Dynamic:Fpd Continue
- // 8-SAEC。
- IMAGE_CORRECT_ENABLE* pCorrect // refer to<< HbiType.h>>
- Out: Null
- * Return Value: int
- // 0: Success
- // Non-0: Failure,refer to<<HbiError.h>>
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_MTriggerAndCorrectApplay(void* handle, int _triggerMode, IMAGE_CORRECT_ENABLE* pCorrect);
- /*********************************************************
- * No: No191
- * Function name: HBI_MTriggerBinningAcqTime(new)
- * Function Description: // Work mode, binning, frame speed setting
- * Parameter Description:
- In: void *handle // unsigned handle pointer
- int triggerMode // Work mode
- // Static:
- // 01: Software trigger mode;
- // 02: Clear;
- // 03: High voltage generator(hvg) trigger mode;
- // 04: Auto exposure detection mode.
- // Dynamic:
- // 05: Hvg pulse sync in trigger mode;
- // 06: Fpd pulse sync out trigger Mode;
- // 07: Free run mode.
- unsigned char binning
- // 1: 1x1,
- // 2: 2x2,
- // 3: 3x3,
- // 4: 4x4,
- int time // Live acquisition span time, unit: ms
- // For example: 1000ms (1fps), 500ms (2fps), 250ms (4fps),125ms (8fps)
- Out: Null
- * Return Value:
- int // 0: Success
- // Non-0: Failure
- * Comment:
- *********************************************************/
- HBI_FPD_DLL int HBI_MTriggerBinningAcqTime(void* handle, int triggerMode, unsigned char binning, int acqtime, int nfeedback = 0);
- /*********************************************************
- * No: No192
- * Function name: HBI_MTriggerPgaBinningAcqTime(new)
- * Function description: trigger mode, PGA gain stage, binning type, frame speed setting
- * Parameter Description:
- In: void *handle - Handle (unsigned pointer)
- int triggerMode // Work mode
- // Static:
- // 01: Software trigger mode;
- // 02: Clear;
- // 03: High voltage generator(hvg) trigger mode;
- // 04: Auto exposure detection mode.
- // Dynamic:
- // 05: Hvg pulse sync in trigger mode;
- // 06: Fpd pulse sync out trigger Mode;
- // 07: Free run mode.
- int nPgaLevel // PGA gain stage
- //[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,[7]-9.6pC
- //[8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC,Default: 7.2 pC.
- unsigned char binning
- // 1: 1x1,
- // 2: 2x2,
- // 3: 3x3,
- // 4: 4x4,
- int acqtime // Live acquisition span time, unit: ms
- int nfeedback // 1: Automatic feedback config parameters if setting is successful
- // Non-1: Feedback setting success status
- * Return value:int
- 0 - Success
- Non 0 - Failed
- * Remarks:
- *********************************************************/
- HBI_FPD_DLL int HBI_MTriggerPgaBinningAcqTime(void* handle, int triggerMode, int nPgaLevel, unsigned char binning, int acqtime, int nfeedback = 0);
- /*********************************************************
- * No: No193
- * Function name: HBI_MTriggerPgaBinningAcqTimeCorrect(new)
- * Function description: trigger mode, PGA gain stage, binning type, frame speed, correction enabling setting
- * Parameter Description:
- In: void *handle - Handle (unsigned pointer)
- int triggerMode // Work mode
- // Static:
- // 01: Software trigger mode;
- // 02: Clear;
- // 03: High voltage generator(hvg) trigger mode;
- // 04: Auto exposure detection mode.
- // Dynamic:
- // 05: Hvg pulse sync in trigger mode;
- // 06: Fpd pulse sync out trigger Mode;
- // 07: Free run mode.
- int nPgaLevel // PGA gain stage
- //[n]-Invalid,[1]-0.6pC,[2]-1.2pC,[3]-2.4pC,[4]-3.6pC,[5]-4.8pC,[6]-7.2pC,[7]-9.6pC
- //[8]-LFW (COMS),[9]-HFW (COMS),[10]-0.3pC,[11]-0.15pC,Default: 7.2 pC.
- unsigned char binning
- // 1: 1x1,
- // 2: 2x2,
- // 3: 3x3,
- // 4: 4x4,
- int acqtime // Live acquisition span time, unit: ms
- IMAGE_CORRECT_ENABLE* pCorrect,refer to <<HbiType.h>>
- int nfeedback // 1: Automatic feedback config parameters if setting is successful
- // Non-1: Feedback setting success status
- * Return value:int
- 0 - Success
- Non 0 - Failed
- * Remarks:
- *********************************************************/
- HBI_FPD_DLL int HBI_MTriggerPgaBinningAcqTimeCorrect(void* handle, int triggerMode, int nPgaLevel, unsigned char binning, int acqtime, IMAGE_CORRECT_ENABLE* pCorrect);
- /*********************************************************
- * No: No194
- * Function name: HBI_IsMutilMode(new)
- * Function description: Check if the current firmware supports multiple modes
- * Parameter Description:
- In: void *handle - Handle (unsigned pointer)
- * Return value:bool
- true - support
- false - Not Supported
- * Remarks:The essence of Mode mode is that the firmware manages templates differently
- *********************************************************/
- HBI_FPD_DLL bool HBI_IsMutilMode(void* handle);
- /*********************************************************
- * No: No195
- * Function name: HBI_SetTICOFImageType(new)
- * Function description: Switching between normal and grayscale images
- * Parameter Description:
- In: void *handle - Handle (unsigned pointer)
- unsigned int nImageType -Image type,2-gray image,1-normal image,others-normal image
- Out: None
- * Return value:int
- 0 - Success
- Non 0 - Failed
- * Remarks:
- *********************************************************/
- HBI_FPD_DLL int HBI_SetTICOFImageType(void* handle, unsigned int nImageType);
- /*********************************************************
- * No: No196
- * Function name: HBI_ImportCfgFile2Detector(new)
- * Function description: Importing configuration files into firmware
- * Parameter Description:
- In: void *handle - Handle (unsigned pointer)
- int cmd -command code,
- EDL_COMMON_TYPE_SET_RAM_PARAM_CFG -Set RAM parameters
- EDL_COMMON_TYPE_SET_ROM_PARAM_CFG -Set ROM parameters
- EDL_COMMON_TYPE_SET_FACTORY_PARAM_CFG -Set FACTORY parameters
- char* cfgfile -firmware configuration file absolute path,file extension *.csv or *.txt
- Out: None
- * Return value:int
- 0 - Success
- Non 0 - Failed
- * Remarks:configuration file format:Register_xxxx,Reserved,0x--
- *********************************************************/
- HBI_FPD_DLL int HBI_ImportCfgFile2Detector(void* handle, int cmd, char* cfgfile);
- /*********************************************************
- * No: No197
- * Function name: HBI_ExportDetectorCfg2File(new)
- * Function description: Export firmware parameters to a file
- * Parameter Description:
- In: void *handle - Handle (unsigned pointer)
- int cmd -command code,
- EDL_COMMON_TYPE_GET_RAM_PARAM_CFG -Get RAM parameters
- EDL_COMMON_TYPE_GET_ROM_PARAM_CFG -Get ROM parameters
- EDL_COMMON_TYPE_GET_FACTORY_PARAM_CFG -Get FACTORY parameters
- char* cfgfile -firmware configuration file absolute path,file extension *.csv or *.txt
- Out: None
- * Return value:int
- 0 - Success
- Non 0 - Failed
- * Remarks:configuration file format:Register_xxxx,Reserved,0x--
- *********************************************************/
- HBI_FPD_DLL int HBI_ExportDetectorCfg2File(void* handle, int cmd, char* cfgfile);
- /*********************************************************
- * No: No198
- * Function name: HBI_InitDetectorParams(new)
- * Function description: initialize the basic parameters of the flat panel detector
- * Parameter Description:
- In: void *handle - Handle (unsigned pointer)
- DETECTOR_INIT_PARAMS param -refer to《HbiType.h》
- param._ucmodeid; //mode id [0,9];
- 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;
- //Only vaild in Binning mode,invaild in multi-mode mode,purpose compatible with diffrent version.
- param._ucOffsetCorrection;//0-No Offset Correction;1-Software PreOffset Correction;2-Firmware PostOffset Correction;3-Firmware PreOffset Correction;
- param._ucGainCorrection; //0-No Gain Correction;1-Software Gain Correction;2-Firmware Gain Correction;
- param._ucDefectCorrection;//0-No Defect Correction;1-Software Defect Correction;2-Firmware Defect Correction;
- param._ucDummyCorrection; //0-No Dummy Correction;1-Software Dummy Correction;2-Firmware Dummy Correction;
- Out: None
- * Return value:int
- 0 - Success
- Non 0 - Failed
- * Remarks:
- *********************************************************/
- HBI_FPD_DLL int HBI_InitDetectorParams(void* handle, DETECTOR_INIT_PARAMS param);
- /*********************************************************
- * No: No199
- * Function name: HBI_UpdateFPDSerialNumber
- * Function Descriptio: Update product serial number
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- In/Out: char *szSn,length=14
- * Return value:int
- 0 - Success
- Non 0 - Failed
- * Remarks:
- * 编 号: No199
- * 函 数 名: HBI_UpdateFPDSerialNumber
- * 功能描述: 更新产品序列号
- * 参数说明:
- In: void *handle - 句柄(无符号指针)
- In/Out: char *szSn,长度14位
- * 返 回 值:int
- 0 - 成功
- 非0 - 失败
- * 备 注:
- *********************************************************/
- HBI_FPD_DLL int HBI_UpdateFPDSerialNumber(void* handle, char* szSn);
- /*********************************************************
- * No: No200
- * Function name: HBI_WindowWidthWindowLevel(new)
- * 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.
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- In/Out: unsigned char *imgbuff,Source data (16 bit unsigned small end data), destination data (8-bit unsigned data)
- In/Out: int *nbufflen, Buffer data length (halve the data size after conversion)
- In: int nwidth - Image data width
- In: int nheight - Image data high
- In: int nWindow - window width
- In: int nLeveling - window leveling
- * Return value:int
- 0 - Success
- Non 0 - Failed
- * Remarks:
- *********************************************************/
- HBI_FPD_DLL int HBI_WindowWidthWindowLevel(void* handle, unsigned char* imgbuff, int* nbufflen, int nwidth, int nheight, int nWindow, int nLeveling);
- /*********************************************************
- * No: No201
- * Function name: HBI_WaitForReadyStatus(new)
- * Function Description: Waiting for panel ready status.
- * Parameter Description:
- In: void *handle - unsigned handle pointer
- In: unsigned int tm - Wait timeout,default 1200ms
- * Return value:int
- 0 - Success
- Non 0 - Failed
- * Remarks:
- *********************************************************/
- HBI_FPD_DLL int HBI_WaitForReadyStatus(void* handle, unsigned int tm=1200);
- HBI_FPD_DLL int HBI_SetSelfDumpingTimeEx(void* handle, unsigned int untimems, unsigned short ustimeus);
- HBI_FPD_DLL int HBI_UpdatePcieDeviceId(void* handle, unsigned short udeviceid);
- HBI_FPD_DLL int HBI_GetCurFirmwareTemplate(void* handle, unsigned char command);
- HBI_FPD_DLL int HBI_GetCurTemperatureBatteryInfo(void* handle);
- HBI_FPD_DLL int HBI_IsInSleepMode(void* handle);
- HBI_FPD_DLL int HBI_Set2SleepMode(void* handle, int nmode = 1);
- HBI_FPD_DLL int HBI_GetUdpMtuPacketType(void* handle, int* npacketType);
- HBI_FPD_DLL int HBI_SetWindowMode(void* handle, bool isWindowMode);
- HBI_FPD_DLL int HBI_GetWindowMode(void* handle, bool* isWindowMode);
- HBI_FPD_DLL int HBI_SetBinningDivisor(void* handle, unsigned char binDiv);
- HBI_FPD_DLL int HBI_GetBinningDivisor(void* handle, unsigned char* binDiv);
- HBI_FPD_DLL int HBI_SetTiCofDAC(void* handle, unsigned short dacV);
- HBI_FPD_DLL int HBI_GetTiCofDAC(void* handle, unsigned short* dacV);
- HBI_FPD_DLL int HBI_IsEnableReturnImage(void* handle);
- HBI_FPD_DLL int HBI_EnableReturnImage(void* handle, int nEnable = 1);
- HBI_FPD_DLL int HBI_FrameLossDetectEnable(void* handle, unsigned int nDetectEnable);
- HBI_FPD_DLL int HBI_RestartPcieDevice(void* handle);
- HBI_FPD_DLL int HBI_SetRetransMissPacket(void* handle, unsigned int startpackagenum, unsigned int endpackagenum);
- HBI_FPD_DLL bool HBI_GetEnableStatusOfFrameLoss(void* handle);
- HBI_FPD_DLL int HBI_EnableFrameLossCheck(void* handle, bool bcheck);
- HBI_FPD_DLL int HBI_FeedbackFrameLoss(void* handle);
- HBI_FPD_DLL int HBI_SaveFrameLossInfo(void* handle);
- HBI_FPD_DLL int HBI_UpdateFPDSerialNumberEx(void* handle, char* szSn, int cmd);
- HBI_FPD_DLL int HBI_RomCfg2FactoryCfg(void* handle);
- ////////////////////////////////////////////////////////////////////////////////////////
- // The export class is currently undeveloped and will not be provided
- ////////////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////////////
- class hbi_fpd
- {
- public:
- HBI_FPD_DLL hbi_fpd(unsigned int ufpdid, COMM_CFG commcfg);
- HBI_FPD_DLL virtual ~hbi_fpd();
- public:
- HBI_FPD_DLL int hbi_init_fpd();
- HBI_FPD_DLL void hbi_destroy_fpd();
- void *m_inst;
- unsigned int m_ufpdid;
- bool m_bOpen;
- COMM_CFG m_commcfgSt;
- };
- ////////////////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////////////////
- #ifdef __cplusplus
- }
- #endif
- #endif // __HBI_FPD_H_
|