mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-12-15 17:11:20 +01:00
* alignedData now uses std::align_alloc * imagedata is now allocated on the heap * m3 server fix for trimbits and badchannels that are shifted by 1 * formatting * binary in * added check for proper memory allocation * commenting out the example in receiver data call back changing size as it affects users using debugging mode to print out headers * fixed warnings * commenting out the example in receiver data call back changing size as it affects users using debugging mode to print out headers * got rid of cast to uint64 * got rid of Reorder function * added sanity check to only enable for chipttestboard and xilinx * removed Gotthard stuff * update the comment about how to modify data on a data call back from the receiver * autogenerated commands and make format * changed font size in GUI * clang-format with clang-format version 17 * updated update_image_size in xilinx * version number automated for python build * mistakenly set version back to 0.0.0 * updated github workflow scripts to support automatic version numbering with environment variable * managed to load VERSION file in yaml file - simplifies things * saving changes in git workflow failed * got typo in github workflow * updatet regex pattern to support postfix * normalized version to PEP 440 specification in update_version.py * bug did not support version 0.0.0 * upgrading to c++17 from c++11 and patch command has to be found before applying patch on libzmq (#1195) * Dev/allow localhost for virtual tests (#1190) * remove the check for localhost being used in rx_hostname for python test for simulators, run rx_arping test only if hostname is not 'localhost' * fix tests for fpath: cannot set back to empty anymore (empty is default) * default rx_hostname arg = localhost, and default settings path =../../settingsdir * changed virtual tests script for better printout on exceptions * fix for catching generaltests exceptions and exiting instead of continuing * fix minor * fixed shared memeory tests to include current env and fixed prints for errors --------- Co-authored-by: Erik Fröjdh <erik.frojdh@gmail.com> * added regex pattern matching to version in toml file * Dev/gitea docker (#1194) * gitea workflows for RH8 and RH9 * using our docker images * version now supports . before postfix * rough draft of test acquire of all detectors for frames caught and file size. ctb not included yet * moved dbitoffset, dbitreorder and dbitlist to GeneralData * added error message on receiver side, throw error * removed log as error already printed * added tests to check file size and frames caught with an acquire (virtual) for every detector * minor printout removed * typo fixed * removed minor printout * incorrect counter mask tested * fix 10g adc enable mask, switched with 1g * fixed hardcoded values of nchip nchan etc from detPArameters * fixed ctb tests, need to fix in develoepr (if digital modfe not enabled, should not take into accoutn dbitlist or dbitoffset or dbitreorder * only reorder bits if some sort of digital readout mode enabled * trying to fix acquire for xilinx * fix for xilinx ctb virtual * alloweing all tests * typo * fix for slsreceiver killed but complaining for virtual tests with script * fixed bug found by @AliceMazzoleni99 that for ctb server is still shown in pgrep -f if xilinx server running, so now the pid is killed and looking for any DetectorServer_virtual instead. also reset color coding after Log * check if process running for kill -9 slsReceiver fail * removed -9 to kill with cleanup * frame synchonrizer fixes: typo of iterator for loop and zmg_msg_t list cleaned up before sending multi part zmq; test written for the frame synchronizer, test_simulator.py rewritten for more robustness and refactoring commonality between both scripts * better error messageS * minor * typo * moving the erasure of the fnum to after sending the zmg packets and also deleteing all old frames when end of acquisition * fix bug in blackfin read access to firmware registers * updates api version based on version file & converted shell script files to python * updated all makefiles * refactoring code and compiling binary * formatting * rewrote end() for StaticVector * rearranged receiver topics, differentiated btween receiver variants and added info about slsFrameSynchronizer * typo * minor aesthetics * minor * added extra fs link and fixed execute_program warning * and now with link * updating pmods * adresses review comments * dummy commit for versionAPI * formatted and updated versionAPI.h * added expat to host section * updated documentation for pip installation as well * Dev/add numpy (#1227) * added numpy dependency * added build specifications for python version and platform * updates files/variants for pmods for 9.2.0 (#1233) * tests for bool in ToString/StringTo (#1230) - Added tests for ToString/StringTo<bool> - Added overload for ToString of bool (previously went through int) * added docs for SLSDETNAME (#1228) * added docs for SLSDETNAME * clarification on hostname * added examples on module index * fixes * fixed typo * Dev/update test framesynchronizer (#1221) * raise an exception if the pull socket python script had errors at startup (for eg if pyzmq was not installed) * minor changes that got lost in the merge of automate_version_part 2 PR --------- Co-authored-by: Erik Fröjdh <erik.frojdh@gmail.com> * added workflow for python wheels * wip * formatting * wip * wip to parse vector of rois at command line * wip * first level test * can get individual rois, but not connected to command yet * rois shoudl work. left to implement tests for individual rois, create multiple datasets (1 for each roi) in the virutal data file. currently virutal dataset with roi is not implemented and a warning is given instead. wonder why since the inviduviaual roi files are clipped * all tests pased * minor * fixed rx_roi for multi modules jungfrau , tests for eiger, multi modules jungfrau in x and 2 interfaces * works for eiger as well * switched to vector instead of std::array<ROI, 2>>, which prints extra [-1, -1] when theres only 1 udp interface * wip * fix for empty roi vectors (which shouldnt be) as you cant know if its all or not in roi * wip: to map roi to virutal * fix for eiger, added python test for testig roi in different module and detector type configurations * wip, fails with master and virtual * works for complete roi * wip, works for a single roi * works for all rois * wip to fix tests * 1d fixes * rois test work on 1d as well * check master file creation as well in rx_roi tests * get rx_roi from metadata from rxr, cant reconstruct. fixed clear roi should give 1 roi min * gui shows roi now * format * updated python bindings * updated master file versions * cmd generation and formatting * minor fixes in command line and help * minor * doesnt happen anymore * comment * minor * redundant getRxROI in Detector class for multi level and module level * refactor cmd parsing (detid can be parsed directly) * refactor cmd line * refactor command line parsing of roi * modified comments about ctb and xilinx not using roi * refactoring * refactorign * refactoring wip * wip refactoring * formattin * to avoid confusion, moved default initialized, single sized declared vector of roi to be created at setDetectorType * pybind only 1 function for getRxROI * command line help * specified number of receiver error message * minor comment * refactored to take out repetitive code, need to adjust for slsMulti and slsFrameSync * wip * works, need to add tests * made Commadnlineoptions into a class * wip test * fixed tests * cleaning up properly , semaphore leaks, child process/thread throwing handled * getuid issue on github workflow * constexpr and checking if options object type is same * unnecessary capture * remove testing code, minor * fixed help, -t for multi should not be supported as it never had it * Formatting * hdf5 definitions in test when not compiled with hdf5 * typo * moved optstring and long options to the constructor * raising a SIGINT when the child thread has an exception so that the parent thread can exit all the threads and clean up gracefully * minor test typo * check status of child exiting and use that to send sigint to all the child processes from the parent * fixed validation in network_utils, added a tests to throw for port 65535 in test mode (option on for sls_use_tests), multi:parent process checks child process exit status to send sigint to others * moving set signal handler to network utils * readoutspeed in rx master file and other master file inconsistencies (#1245) readout speed added to json and h5 master files. Also fixed master file inconsistencies Sserver binaries - update server binaries because readoutspeed needs to be sent to receiver with rx_hostname command API - added const to Detector class set/getburstmode Python - updated python bindings (burstmode const and roi arguments) Cmd generation - added pragma once in Caller.in.h as Caller is included in test files m3: num channels due to #counters < 3 * workaround for m3 for messed up num channels (client always assumes all counters enabled and adds them to num channels), fix for hdf5 g2: exptime master file inconsistency - exptime didnt match because of round of when setting burst mode (sets to a different clk divider) - so updating actual time for all timers (exptime, period, subexptime etc, ) in Module class, get timer values from detector when setting it and then send to receiver to write in master file ctb image size incorrect: - write actual size into master file and not the reserved size (digital reduces depending on dbit list and dbit offset) - added a calculate ctb image size free function in generalData.h that is used there as well as for the tests. master file inconsistencies - refactored master attributes writing using templates - names changed to keep it consistent between json and hdf5 master file (Version, Pixels, Exposure Times, GateDelays, Acquisition Period, etc.) - datatypes changed to keep it simple where possible: imageSize, dynamicRange, tengiga, quad, readnrows, analog, analogsamples, digital, digitalsamples, dbitreorder, dbitoffset, transceivermask, transeiver, transceiversamples, countermask, gates =>int - replacing "toString" with arrays, objects etc for eg for scan, rois, etc. - json header always written (empty dataset or empty brackets) - hdf5 needs const char* so have to convert strings to it, but taking care that strings exist prior to push_back - master attributes (redundant string literals->error prone tests for master file - suppressed deprecated functions in rapidjson warnings just for the tests - added slsREceiverSoftware/src to allow access to receiver_defs.h to test binary/hdf5 version - refactored acquire tests by moving all the acquire tests from individual detector type files to a single one=test-Caller-acquire.cpp - set some default settings (loadBasicSettings) for a basic acquire at load config part for the test_simulator python scripts. so minimum number of settings for detector to be set for any acquire tests. - added tests to test master files for json and hdf5= test-Caller-master-attributes.cpp - added option to add '-m' markers for tests using test_simulator python script * doc: added inst on how to set persistentn NIC changes after reboot for each ethernet interface such as rx 4096, rx-usecs, adaptive-rx and gro etc. * added permanent ethtool settings also for fedora or modern rhel * troubleshooting doc: permanent changes for 10g pc tuning (#1247) * doc: added inst on how to set persistentn NIC changes after reboot for each ethernet interface such as rx 4096, rx-usecs, adaptive-rx and gro etc. * added permanent ethtool settings also for fedora or modern rhel * ifcfg scripts still work on rhel8, just not preferred * added dataformat for jungfrau * eiger basic mod * eiger doc done * added moench * done * free shm exposed in python as free function and detector function * minimum change * added quad and updated about 1gbe/10gbe * more info * remove arguments info * replacing commands with links * minor * detail explanation of eiger * fixed imagesize ctb issue (out values not transferred, setting any dbit values was not recalculatign image size in generaldata) * fixed ctb dbit clock changing period in tests as it was setting run clock instead * python accessing freed shared memory object (#1253) * added a 'isValid' member in shared memory (also updated shm version) with default true, any access to shared memory() checks also for validity. any free will set this to false and then unmap shm. Any access to shm will then check validity in python. * fixed tests for shm * added tests in python as well --------- Co-authored-by: Alice <alice.mazzoleni@psi.ch> * updated error message * made markers argument in ParseArguments a boolean instead of an int * removed relative path compared to where executable run in test script for settingsdir * fix roi test * updating versions (#1258) * updating package version, client version, server versions. Renaming server versions, using hardlinks in serverBin. Removing ctb servers in serverBin. (#1259) * fixed no interpolation mode for moench (#1262) Co-authored-by: Anna Bergamaschi <anna.bergamaschi@psi.ch> * fixed multi receiver and frames sync help throw of bad variant access (#1265) * 1000/doc c standard (#1267) * updated c++11 to c++17 * more about c++11 and updating readme * updated documentation for receiver arguments and also making receiver constructor explicit * minor fix for rxr err message * fixed doc about gcc version * 1000/release notes (#1269) * updated firmware and server version in release notes * release notes wip * updated notes(prs done) * updated release notes. wip * Release notes * minor * minor fix * 1000/doc architecture commands (#1271) * sw architecture and setup commands * 1000/shm free obsolete (#1273) * freeing obsolete shm withoua a 'isValid' should access raw pointers. Need to move this all into the shm class * fixed obsolete shm free issue * minor * ensuring the test works platform independent for size of int * removed verify, update, fixed getUser to be a free function, generated commands, python bindings yet to do * python bindings * fixed tests * minor * minor * format * userdetails refinedg * fixed caller test * updated client api version (#1277) * one doesnt need to open shared memory to call removesharedmemory, and calling hasMemoryvalid without opening will cause segfault (not used now, but could in the future) * fix test on shm * minor * added image source files from draw.io to create the images (#1280) * 1000/fix_actual_tests (#1282) - fix acquire fail in tests (adcreg test) - roi tests fail after overlapping invalid test and acquire after - print udp dest mac in server properly - fixed udp dst list get (server was not sending entry proper size to match proper struct size in client) - updated server binaries and updated hard links in serverBin - added documentation regarding gui: zmqport and zmqip in terms of gui, rx_zmqstream - removed print - probably ended there for debuggung --------- Co-authored-by: Alice <alice.mazzoleni@psi.ch> * 1000/fix_m3_tests (#1286) * testing clkdiv one must ensure the exptime delay etc all are reset to the exact values for tests * change dac max values for vth values for m3 in client side (set module * 1000/doc_cmake (#1289) * more detail documentation in installation * more detail documentation in installation * added links to api examples * reverted back that vthreshold dacs in m3 have min and max as 200 and 2400 (#1294) * update release notes and date (#1298) --------- Co-authored-by: Mazzoleni Alice Francesca <mazzol_a@pc17378.psi.ch> Co-authored-by: Erik Fröjdh <erik.frojdh@gmail.com> Co-authored-by: AliceMazzoleni99 <alice.mazzoleni@psi.ch> Co-authored-by: Martin Mueller <martin.mueller@psi.ch> Co-authored-by: froejdh_e <erik.frojdh@psi.ch> Co-authored-by: Anna Bergamaschi <anna.bergamaschi@psi.ch>
3359 lines
53 KiB
Bash
3359 lines
53 KiB
Bash
# GENERATED FILE - DO NOT EDIT
|
|
# ANY CHANGES TO THIS FILE WILL BE OVERWRITTEN
|
|
|
|
_sd() {
|
|
|
|
|
|
local SLS_COMMANDS=" acquire activate adcclk adcenable adcenable10g adcindex adcinvert adclist adcname adcphase adcpipeline adcreg adcvpp apulse asamples autocompdisable badchannels blockingtrigger burstmode burstperiod bursts burstsl bustest cdsgain chipversion clearbit clearbusy clientversion clkdiv clkfreq clkphase collectionmode column compdisabletime confadc config configtransceiver counters currentsource dac dacindex daclist dacname dacvalues datastream dbitclk dbitphase dbitpipeline defaultdac defaultpattern delay delayl detectorserverversion detsize diodelay dpulse dr drlist dsamples execcommand exptime exptime1 exptime2 exptime3 extrastoragecells extsampling extsamplingsrc extsig fformat filtercells filterresistor findex firmwaretest firmwareversion fliprows flowcontrol10g fmaster fname foverwrite fpath framecounter frames framesl frametime free fwrite gaincaps gainmode gappixels gatedelay gatedelay1 gatedelay2 gatedelay3 gates getbit hardwareversion highvoltage hostname im_a im_b im_c im_d im_io imagetest initialchecks inj_ch interpolation interruptsubframe kernelversion lastclient led lock master maxadcphaseshift maxclkphaseshift maxdbitphaseshift measuredperiod measuredsubperiod moduleid nextframenumber nmod numinterfaces overflow packageversion parallel parameters partialreset patfname patioctrl patlimits patloop patloop0 patloop1 patloop2 patmask patnloop patnloop0 patnloop1 patnloop2 patsetbit pattern patternstart patwait patwait0 patwait1 patwait2 patwaittime patwaittime0 patwaittime1 patwaittime2 patword pedestalmode period periodl polarity port powerchip powerindex powerlist powername powervalues programfpga pulse pulsechip pulsenmove pumpprobe quad ratecorr readnrows readout readoutspeed readoutspeedlist rebootcontroller reg resetdacs resetfpga romode row runclk runtime rx_arping rx_clearroi rx_dbitlist rx_dbitoffset rx_dbitreorder rx_discardpolicy rx_fifodepth rx_frameindex rx_framescaught rx_framesperfile rx_hostname rx_jsonaddheader rx_jsonpara rx_lastclient rx_lock rx_missingpackets rx_padding rx_printconfig rx_realudpsocksize rx_roi rx_silent rx_start rx_status rx_stop rx_tcpport rx_threads rx_udpsocksize rx_version rx_zmqfreq rx_zmqhwm rx_zmqip rx_zmqport rx_zmqstartfnum rx_zmqstream samples savepattern scan scanerrmsg selinterface serialnumber setbit settings settingslist settingspath signalindex signallist signalname sleep slowadc slowadcindex slowadclist slowadcname slowadcvalues start status stop stopport storagecell_delay storagecell_start subdeadtime subexptime sync syncclk temp_10ge temp_adc temp_control temp_dcdc temp_event temp_fpga temp_fpgaext temp_fpgafl temp_fpgafr temp_slowadc temp_sodl temp_sodr temp_threshold templist tempvalues tengiga threshold thresholdnotb timing timing_info_decoder timinglist timingsource top transceiverenable trigger triggers triggersl trimbits trimen trimval tsamples txdelay txdelay_frame txdelay_left txdelay_right type udp_cleardst udp_dstip udp_dstip2 udp_dstlist udp_dstmac udp_dstmac2 udp_dstport udp_dstport2 udp_firstdst udp_numdst udp_reconfigure udp_srcip udp_srcip2 udp_srcmac udp_srcmac2 udp_validate update updatedetectorserver updatekernel updatemode user v_a v_b v_c v_chip v_d v_io v_limit vchip_comp_adc vchip_comp_fe vchip_cs vchip_opa_1st vchip_opa_fd vchip_ref_comp_fe versions veto vetoalg vetofile vetophoton vetoref vetostream virtual vm_a vm_b vm_c vm_d vm_io zmqhwm zmqip zmqport "
|
|
__acquire() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__activate() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__adcclk() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__adcenable() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__adcenable10g() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__adcindex() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__adcinvert() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__adclist() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__adcname() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__adcphase() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="deg"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN="deg"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__adcpipeline() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__adcreg() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__adcvpp() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN="mV mv"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__apulse() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__asamples() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__autocompdisable() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__badchannels() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__blockingtrigger() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__burstmode() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="burst_external burst_internal cw_external cw_internal"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__burstperiod() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__bursts() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__burstsl() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__bustest() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__cdsgain() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__chipversion() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__clearbit() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "4" ]]; then
|
|
FCN_RETURN="--validate"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__clearbusy() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "4" ]]; then
|
|
FCN_RETURN="--validate"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__clientversion() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__clkdiv() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__clkfreq() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__clkphase() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN="deg"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "4" ]]; then
|
|
FCN_RETURN="deg"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__collectionmode() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="electron hole"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__column() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__compdisabletime() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__confadc() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "4" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__config() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "4" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
IS_PATH=1
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__configtransceiver() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
IS_PATH=1
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__counters() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__currentsource() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN="fix nofix"
|
|
fi
|
|
if [[ "${cword}" == "4" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "5" ]]; then
|
|
FCN_RETURN="low normal"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__dac() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="`sls_detector_get daclist | sed -e 's/.*\[\(.*\)\].*/\1/' | sed 's/,//g'`"
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN="mV mv"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="`sls_detector_get daclist | sed -e 's/.*\[\(.*\)\].*/\1/' | sed 's/,//g'`"
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "4" ]]; then
|
|
FCN_RETURN="mV mv"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__dacindex() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__daclist() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__dacname() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="`sls_detector_get daclist | sed -e 's/.*\[\(.*\)\].*/\1/' | sed 's/,//g'`"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="`sls_detector_get daclist | sed -e 's/.*\[\(.*\)\].*/\1/' | sed 's/,//g'`"
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__dacvalues() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="mV mv"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="mV mv"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__datastream() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="bottom left right top"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="bottom left right top"
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__dbitclk() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__dbitphase() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="deg"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN="deg"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__dbitpipeline() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__defaultdac() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="`sls_detector_get daclist | sed -e 's/.*\[\(.*\)\].*/\1/' | sed 's/,//g'`"
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN="`sls_detector_get settingslist | sed -e 's/.*\[\(.*\)\].*/\1/' | sed 's/,//g'`"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="`sls_detector_get daclist | sed -e 's/.*\[\(.*\)\].*/\1/' | sed 's/,//g'`"
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "4" ]]; then
|
|
FCN_RETURN="`sls_detector_get settingslist | sed -e 's/.*\[\(.*\)\].*/\1/' | sed 's/,//g'`"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__defaultpattern() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="`sls_detector_get daclist | sed -e 's/.*\[\(.*\)\].*/\1/' | sed 's/,//g'`"
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "4" ]]; then
|
|
FCN_RETURN="`sls_detector_get settingslist | sed -e 's/.*\[\(.*\)\].*/\1/' | sed 's/,//g'`"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__delay() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__delayl() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__detectorserverversion() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__detsize() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__diodelay() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__dpulse() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__dr() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__drlist() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__dsamples() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__execcommand() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__exptime() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__exptime1() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__exptime2() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__exptime3() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__extrastoragecells() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__extsampling() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__extsamplingsrc() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__extsig() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN="inversion_off inversion_on trigger_in_falling_edge trigger_in_rising_edge"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__fformat() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="binary hdf5"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__filtercells() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__filterresistor() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__findex() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__firmwaretest() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__firmwareversion() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__fliprows() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__flowcontrol10g() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__fmaster() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__fname() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__foverwrite() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__fpath() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
IS_PATH=1
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__framecounter() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__frames() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__framesl() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__frametime() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__free() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__fwrite() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__gaincaps() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__gainmode() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="dynamic fixg0 fixg1 fixg2 forceswitchg1 forceswitchg2"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__gappixels() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__gatedelay() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__gatedelay1() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__gatedelay2() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__gatedelay3() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__gates() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__getbit() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__hardwareversion() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__highvoltage() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__hostname() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__im_a() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__im_b() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__im_c() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__im_d() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__im_io() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__imagetest() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__initialchecks() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__inj_ch() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__interpolation() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__interruptsubframe() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__kernelversion() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__lastclient() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__led() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__lock() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__master() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__maxadcphaseshift() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__maxclkphaseshift() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__maxdbitphaseshift() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__measuredperiod() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__measuredsubperiod() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__moduleid() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__nextframenumber() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__nmod() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__numinterfaces() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__overflow() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__packageversion() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__parallel() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__parameters() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
IS_PATH=1
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__partialreset() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__patfname() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__patioctrl() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__patlimits() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__patloop() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "4" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__patloop0() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "4" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__patloop1() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "4" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__patloop2() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "4" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__patmask() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__patnloop() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__patnloop0() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__patnloop1() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__patnloop2() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__patsetbit() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__pattern() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
IS_PATH=1
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__patternstart() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
IS_PATH=1
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__patwait() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__patwait0() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__patwait1() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__patwait2() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__patwaittime() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__patwaittime0() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__patwaittime1() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__patwaittime2() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__patword() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__pedestalmode() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=" 0"
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__period() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__periodl() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__polarity() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="neg pos"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__port() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__powerchip() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__powerindex() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__powerlist() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__powername() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="`sls_detector_get daclist | sed -e 's/.*\[\(.*\)\].*/\1/' | sed 's/,//g'`"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="`sls_detector_get daclist | sed -e 's/.*\[\(.*\)\].*/\1/' | sed 's/,//g'`"
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__powervalues() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__programfpga() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
IS_PATH=1
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN="--force-delete-normal-file"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__pulse() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
IS_PATH=1
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN="--force-delete-normal-file"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "4" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__pulsechip() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "4" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__pulsenmove() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "4" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__pumpprobe() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__quad() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__ratecorr() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__readnrows() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__readout() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__readoutspeed() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1 108 144 2 full_speed half_speed quarter_speed"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__readoutspeedlist() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__rebootcontroller() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__reg() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "4" ]]; then
|
|
FCN_RETURN="--validate"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__resetdacs() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "4" ]]; then
|
|
FCN_RETURN="--validate"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="hard"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__resetfpga() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="hard"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__romode() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="analog analog_digital digital digital_transceiver transceiver"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__row() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__runclk() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__runtime() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__rx_arping() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__rx_clearroi() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__rx_dbitlist() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__rx_dbitoffset() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__rx_dbitreorder() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__rx_discardpolicy() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="discardempty discardpartial nodiscard"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__rx_fifodepth() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__rx_frameindex() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__rx_framescaught() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__rx_framesperfile() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__rx_hostname() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__rx_jsonaddheader() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__rx_jsonpara() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__rx_lastclient() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__rx_lock() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__rx_missingpackets() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__rx_padding() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__rx_printconfig() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__rx_realudpsocksize() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__rx_roi() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__rx_silent() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__rx_start() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__rx_status() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__rx_stop() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__rx_tcpport() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__rx_threads() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__rx_udpsocksize() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__rx_version() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__rx_zmqfreq() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__rx_zmqhwm() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__rx_zmqip() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__rx_zmqport() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__rx_zmqstartfnum() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__rx_zmqstream() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__samples() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__savepattern() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
IS_PATH=1
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__scan() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="`sls_detector_get daclist | sed -e 's/.*\[\(.*\)\].*/\1/' | sed 's/,//g'`"
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "4" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "5" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "6" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__scanerrmsg() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__selinterface() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__serialnumber() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__setbit() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "4" ]]; then
|
|
FCN_RETURN="--validate"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__settings() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="`sls_detector_get settingslist | sed -e 's/.*\[\(.*\)\].*/\1/' | sed 's/,//g'`"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__settingslist() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__settingspath() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
IS_PATH=1
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__signalindex() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__signallist() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__signalname() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__sleep() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__slowadc() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__slowadcindex() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__slowadclist() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__slowadcname() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="`sls_detector_get daclist | sed -e 's/.*\[\(.*\)\].*/\1/' | sed 's/,//g'`"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="`sls_detector_get daclist | sed -e 's/.*\[\(.*\)\].*/\1/' | sed 's/,//g'`"
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__slowadcvalues() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__start() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__status() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__stop() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__stopport() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__storagecell_delay() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__storagecell_start() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__subdeadtime() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__subexptime() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN="ms ns s us"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__sync() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__syncclk() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__temp_10ge() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__temp_adc() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__temp_control() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__temp_dcdc() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__temp_event() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__temp_fpga() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__temp_fpgaext() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__temp_fpgafl() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__temp_fpgafr() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__temp_slowadc() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__temp_sodl() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__temp_sodr() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__temp_threshold() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__templist() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__tempvalues() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__tengiga() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__threshold() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN="`sls_detector_get settingslist | sed -e 's/.*\[\(.*\)\].*/\1/' | sed 's/,//g'`"
|
|
fi
|
|
if [[ "${cword}" == "4" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "5" ]]; then
|
|
FCN_RETURN="`sls_detector_get settingslist | sed -e 's/.*\[\(.*\)\].*/\1/' | sed 's/,//g'`"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__thresholdnotb() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN="`sls_detector_get settingslist | sed -e 's/.*\[\(.*\)\].*/\1/' | sed 's/,//g'`"
|
|
fi
|
|
if [[ "${cword}" == "4" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "5" ]]; then
|
|
FCN_RETURN="`sls_detector_get settingslist | sed -e 's/.*\[\(.*\)\].*/\1/' | sed 's/,//g'`"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__timing() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="`sls_detector_get timinglist | sed -e 's/.*\[\(.*\)\].*/\1/' | sed 's/,//g'`"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__timing_info_decoder() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="shine swissfel"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__timinglist() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__timingsource() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="external internal"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__top() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__transceiverenable() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__trigger() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__triggers() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__triggersl() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__trimbits() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
IS_PATH=1
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
IS_PATH=1
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__trimen() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__trimval() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__tsamples() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__txdelay() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__txdelay_frame() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__txdelay_left() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__txdelay_right() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__type() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__udp_cleardst() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__udp_dstip() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__udp_dstip2() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__udp_dstlist() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__udp_dstmac() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__udp_dstmac2() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__udp_dstport() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__udp_dstport2() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__udp_firstdst() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__udp_numdst() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__udp_reconfigure() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__udp_srcip() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__udp_srcip2() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__udp_srcmac() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__udp_srcmac2() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__udp_validate() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__update() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
IS_PATH=1
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
IS_PATH=1
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__updatedetectorserver() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
IS_PATH=1
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
IS_PATH=1
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
IS_PATH=1
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__updatekernel() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
IS_PATH=1
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
IS_PATH=1
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__updatemode() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__user() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__v_a() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__v_b() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__v_c() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__v_chip() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__v_d() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__v_io() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__v_limit() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__vchip_comp_adc() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__vchip_comp_fe() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__vchip_cs() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__vchip_opa_1st() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__vchip_opa_fd() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__vchip_ref_comp_fe() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__versions() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__veto() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="0 1"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__vetoalg() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="10gbe lll none"
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN="hits raw"
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN="10gbe lll none"
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__vetofile() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__vetophoton() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 1 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "4" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "5" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__vetoref() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__vetostream() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__virtual() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
if [[ "${cword}" == "3" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__vm_a() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__vm_b() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__vm_c() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__vm_d() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__vm_io() {
|
|
FCN_RETURN=""
|
|
return 0
|
|
}
|
|
__zmqhwm() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__zmqip() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
__zmqport() {
|
|
FCN_RETURN=""
|
|
if [[ ${IS_GET} -eq 0 ]]; then
|
|
if [[ "${cword}" == "2" ]]; then
|
|
FCN_RETURN=""
|
|
fi
|
|
fi
|
|
return 0
|
|
}
|
|
|
|
|
|
local FCN_RETURN=""
|
|
local IS_PATH=0
|
|
COMPREPLY=()
|
|
local OPTIONS_NEW=""
|
|
words=("${COMP_WORDS[@]}")
|
|
cword=$COMP_CWORD
|
|
|
|
local cur=${words[cword]}
|
|
# check the action (get or put)
|
|
case "${words[0]}" in
|
|
"sls_detector_get" | "g" | "detg")
|
|
local IS_GET=1
|
|
;;
|
|
*)
|
|
local IS_GET=0
|
|
;;
|
|
esac
|
|
|
|
# if no command is written, autocomplete with the commands
|
|
if [[ ${cword} -eq 1 ]]; then
|
|
|
|
case "$cur" in
|
|
[0-9]*)
|
|
for i in $SLS_COMMANDS; do
|
|
SLS_COMMANDS_NEW="${SLS_COMMANDS_NEW} ${cur%%:*}:$i"
|
|
done
|
|
COMPREPLY=( $( compgen -W "${SLS_COMMANDS_NEW}" -- "$cur" ) );;
|
|
*)
|
|
COMPREPLY=( $( compgen -W "$SLS_COMMANDS -h" -- "$cur" ) );;
|
|
esac
|
|
return 0
|
|
fi
|
|
|
|
if [[ ${cword} -eq 2 ]] && [[ ${words[1]} == "-h" ]]; then
|
|
COMPREPLY=( $( compgen -W "$SLS_COMMANDS" -- "$cur" ) )
|
|
return 0
|
|
fi
|
|
|
|
# if a command is written, autocomplete with the options
|
|
# call the function for the command
|
|
|
|
if [[ "$SLS_COMMANDS" == *"${words[1]##*:}"* ]]; then
|
|
__"${words[1]##*:}"
|
|
fi
|
|
|
|
# if IS_PATH is activated, autocomplete with the path
|
|
if [[ ${IS_PATH} -eq 1 ]]; then
|
|
COMPREPLY=($(compgen -f -- "${cur}"))
|
|
return 0
|
|
fi
|
|
|
|
# autocomplete with the options
|
|
COMPREPLY=($(compgen -W "${FCN_RETURN}" -- "${cur}"))
|
|
|
|
|
|
|
|
}
|
|
|
|
complete -F _sd -o filenames sls_detector_get
|
|
complete -F _sd -o filenames g
|
|
complete -F _sd -o filenames detg
|
|
|
|
complete -F _sd -o filenames sls_detector_put
|
|
complete -F _sd -o filenames p
|
|
complete -F _sd -o filenames detp
|
|
|
|
complete -F _sd -o filenames sls_detector
|
|
complete -F _sd -o filenames det
|