10 #ifndef FUNCTION_PARAMETERS_H 12 #define FUNCTION_PARAMETERS_H 29 #define STRINGMAXLEN_FPS_LOGMSG 1000 30 #define STRINGMAXLEN_FPS_CMDLINE 1000 34 #define NB_FPS_MAX 100 36 #define MAXNBLEVELS 20 38 #define FPSCONNECT_SIMPLE 0 39 #define FPSCONNECT_CONF 1 40 #define FPSCONNECT_RUN 2 44 #define FPSCMDCODE_CONFSTART 0x00000001 // start configuration process 45 #define FPSCMDCODE_CONFSTOP 0x00000002 // stop configuration process 46 #define FPSCMDCODE_FPSINIT 0x00000004 // initialize FPS if does not exist 47 #define FPSCMDCODE_FPSINITCREATE 0x00000008 // (re-)create FPS even if it exists 48 #define FPSCMDCODE_RUNSTART 0x00000010 // start run process 49 #define FPSCMDCODE_RUNSTOP 0x00000020 // stop run process 55 #define FUNCTION_PARAMETER_KEYWORD_STRMAXLEN 64 56 #define FUNCTION_PARAMETER_KEYWORD_MAXLEVEL 20 62 #define FPTYPE_UNDEF 0x00000001 63 #define FPTYPE_INT32 0x00000002 64 #define FPTYPE_UINT32 0x00000004 65 #define FPTYPE_INT64 0x00000008 66 #define FPTYPE_UINT64 0x00000010 67 #define FPTYPE_FLOAT32 0x00000020 68 #define FPTYPE_FLOAT64 0x00000040 70 #define FPTYPE_PID 0x00000080 71 #define FPTYPE_TIMESPEC 0x00000100 73 #define FPTYPE_FILENAME 0x00000200 // generic filename 74 #define FPTYPE_FITSFILENAME 0x00000400 // FITS file 75 #define FPTYPE_EXECFILENAME 0x00000800 // executable file 77 #define FPTYPE_DIRNAME 0x00001000 // directory name 78 #define FPTYPE_STREAMNAME 0x00002000 // stream name -> process may load from shm if required. See loading stream section below and associated flags 79 #define FPTYPE_STRING 0x00004000 // generic string 80 #define FPTYPE_ONOFF 0x00008000 // uses ONOFF bit flag, string[0] and string[1] for OFF and ON descriptions respectively. setval saves ONOFF as integer 81 #define FPTYPE_PROCESS 0x00010000 84 #define FPTYPE_FPSNAME 0x00020000 // connection to another FPS 88 #define FUNCTION_PARAMETER_DESCR_STRMAXLEN 64 89 #define FUNCTION_PARAMETER_STRMAXLEN 64 96 #define FPFLAG_ACTIVE 0x0000000000000001 // is this entry registered ? 97 #define FPFLAG_USED 0x0000000000000002 // is this entry used ? if not, skip all checks 98 #define FPFLAG_VISIBLE 0x0000000000000004 // is this entry visible (=displayed) ? 101 #define FPFLAG_WRITE 0x0000000000000010 // is value writable when neither CONF and RUN are active 102 #define FPFLAG_WRITECONF 0x0000000000000020 // can user change value at configuration time ? 103 #define FPFLAG_WRITERUN 0x0000000000000040 // can user change value at run time ? 104 #define FPFLAG_WRITESTATUS 0x0000000000000080 // current write status (computed from above flags) 107 #define FPFLAG_LOG 0x0000000000000100 // log on change 108 #define FPFLAG_SAVEONCHANGE 0x0000000000000200 // save to disk on change 109 #define FPFLAG_SAVEONCLOSE 0x0000000000000400 // save to disk on close 112 #define FPFLAG_IMPORTED 0x0000000000001000 // is this entry imported from another parameter ? 113 #define FPFLAG_FEEDBACK 0x0000000000002000 // is there a separate current value feedback ? 114 #define FPFLAG_ONOFF 0x0000000000004000 // bit controlled under TYPE_ONOFF 117 #define FPFLAG_CHECKINIT 0x0000000000010000 // should parameter be initialized prior to function start ? 118 #define FPFLAG_MINLIMIT 0x0000000000020000 // enforce min limit 119 #define FPFLAG_MAXLIMIT 0x0000000000040000 // enforce max limit 120 #define FPFLAG_ERROR 0x0000000000080000 // is current parameter value OK ? 137 #define STREAM_LOAD_SOURCE_NOTFOUND 0 138 #define STREAM_LOAD_SOURCE_NOTFOUND_STRING "STREAM_LOAD_SOURCE_NOTFOUND" 140 #define STREAM_LOAD_SOURCE_LOCALMEM 1 141 #define STREAM_LOAD_SOURCE_LOCALMEM_STRING "STREAM_LOAD_SOURCE_LOCALMEM" 143 #define STREAM_LOAD_SOURCE_SHAREMEM 2 144 #define STREAM_LOAD_SOURCE_SHAREMEM_STRING "STREAM_LOAD_SOURCE_SHAREMEM" 146 #define STREAM_LOAD_SOURCE_CONFFITS 3 147 #define STREAM_LOAD_SOURCE_CONFFITS_STRING "STREAM_LOAD_SOURCE_CONFFITS" 149 #define STREAM_LOAD_SOURCE_CONFNAME 4 150 #define STREAM_LOAD_SOURCE_CONFNAME_STRING "STREAM_LOAD_SOURCE_CONFNAME" 152 #define STREAM_LOAD_SOURCE_NULL 5 153 #define STREAM_LOAD_SOURCE_NULL_STRING "STREAM_LOAD_SOURCE_NULL" 155 #define STREAM_LOAD_SOURCE_EXITFAILURE -1 156 #define STREAM_LOAD_SOURCE_EXITFAILURE_STRING "STREAM_LOAD_SOURCE_EXITFAILURE" 180 #define FPFLAG_STREAM_LOAD_FORCE_LOCALMEM 0x0000000000100000 181 #define FPFLAG_STREAM_LOAD_FORCE_SHAREMEM 0x0000000000200000 182 #define FPFLAG_STREAM_LOAD_FORCE_CONFFITS 0x0000000000400000 183 #define FPFLAG_STREAM_LOAD_FORCE_CONFNAME 0x0000000000800000 191 #define FPFLAG_STREAM_LOAD_SKIPSEARCH_LOCALMEM 0x0000000001000000 192 #define FPFLAG_STREAM_LOAD_SKIPSEARCH_SHAREMEM 0x0000000002000000 193 #define FPFLAG_STREAM_LOAD_SKIPSEARCH_CONFFITS 0x0000000004000000 194 #define FPFLAG_STREAM_LOAD_SKIPSEARCH_CONFNAME 0x0000000008000000 197 #define FPFLAG_STREAM_LOAD_UPDATE_SHAREMEM 0x0000000010000000 198 #define FPFLAG_STREAM_LOAD_UPDATE_CONFFITS 0x0000000020000000 207 #define FPFLAG_FILE_CONF_REQUIRED 0x0000000040000000 // file must exist for CONF process to proceed 208 #define FPFLAG_FILE_RUN_REQUIRED 0x0000000080000000 // file must exist for RUN process to proceed 211 #define FPFLAG_FPS_CONF_REQUIRED 0x0000000040000000 // file must exist for CONF process to proceed 212 #define FPFLAG_FPS_RUN_REQUIRED 0x0000000080000000 // file must exist for RUN process to proceed 214 #define FPFLAG_STREAM_CONF_REQUIRED 0x0000000040000000 // stream has to be in MEM for CONF process to proceed 215 #define FPFLAG_STREAM_RUN_REQUIRED 0x0000000080000000 // stream has to be in MEM for RUN process to proceed 233 #define FPFLAG_STREAM_ENFORCE_DATATYPE 0x0000000100000000 // enforce stream datatype 236 #define FPFLAG_STREAM_TEST_DATATYPE_UINT8 0x0000000200000000 // test if stream of type UINT8 (OR test) 237 #define FPFLAG_STREAM_TEST_DATATYPE_INT8 0x0000000400000000 // test if stream of type INT8 (OR test) 238 #define FPFLAG_STREAM_TEST_DATATYPE_UINT16 0x0000000800000000 // test if stream of type UINT16 (OR test) 239 #define FPFLAG_STREAM_TEST_DATATYPE_INT16 0x0000001000000000 // test if stream of type INT16 (OR test) 240 #define FPFLAG_STREAM_TEST_DATATYPE_UINT32 0x0000002000000000 // test if stream of type UINT32 (OR test) 241 #define FPFLAG_STREAM_TEST_DATATYPE_INT32 0x0000004000000000 // test if stream of type INT32 (OR test) 242 #define FPFLAG_STREAM_TEST_DATATYPE_UINT64 0x0000008000000000 // test if stream of type UINT64 (OR test) 243 #define FPFLAG_STREAM_TEST_DATATYPE_INT64 0x0000010000000000 // test if stream of type INT64 (OR test) 244 #define FPFLAG_STREAM_TEST_DATATYPE_HALF 0x0000020000000000 // test if stream of type HALF (OR test) 245 #define FPFLAG_STREAM_TEST_DATATYPE_FLOAT 0x0000040000000000 // test if stream of type FLOAT (OR test) 246 #define FPFLAG_STREAM_TEST_DATATYPE_DOUBLE 0x0000080000000000 // test if stream of type DOUBLE (OR test) 248 #define FPFLAG_STREAM_ENFORCE_1D 0x0000100000000000 // enforce 1D image 249 #define FPFLAG_STREAM_ENFORCE_2D 0x0000200000000000 // enforce 2D image 250 #define FPFLAG_STREAM_ENFORCE_3D 0x0000400000000000 // enforce 3D image 251 #define FPFLAG_STREAM_ENFORCE_XSIZE 0x0008000000000000 // enforce X size 252 #define FPFLAG_STREAM_ENFORCE_YSIZE 0x0010000000000000 // enforce Y size 253 #define FPFLAG_STREAM_ENFORCE_ZSIZE 0x0020000000000000 // enforce Z size 255 #define FPFLAG_CHECKSTREAM 0x0040000000000000 // check and display stream status in GUI 256 #define FPFLAG_STREAM_MEMLOADREPORT 0x0080000000000000 // Write stream load report (for debugging) 268 #define FPFLAG_DEFAULT_INPUT FPFLAG_ACTIVE|FPFLAG_USED|FPFLAG_VISIBLE|FPFLAG_WRITE|FPFLAG_WRITECONF|FPFLAG_SAVEONCHANGE|FPFLAG_FEEDBACK|FPFLAG_CHECKINIT 269 #define FPFLAG_DEFAULT_OUTPUT FPFLAG_ACTIVE|FPFLAG_USED|FPFLAG_VISIBLE 270 #define FPFLAG_DEFAULT_INPUT_STREAM FPFLAG_DEFAULT_INPUT|FPFLAG_STREAM_RUN_REQUIRED|FPFLAG_CHECKSTREAM 271 #define FPFLAG_DEFAULT_OUTPUT_STREAM FPFLAG_DEFAULT_INPUT|FPFLAG_CHECKSTREAM 275 #define FPFLAG_DEFAULT_STATUS FPFLAG_ACTIVE|FPFLAG_USED|FPFLAG_VISIBLE 281 #define FUNCTION_PARAMETER_NBPARAM_DEFAULT 100 // size of dynamically allocated array of parameters 292 uint32_t stream_naxis[2];
293 uint32_t stream_xsize[2];
294 uint32_t stream_ysize[2];
295 uint32_t stream_zsize[2];
336 struct timespec ts[2];
360 #define FUNCTION_PARAMETER_STRUCT_MSG_SIZE 500 362 #define FUNCTION_PARAMETER_STRUCT_STATUS_CONF 0x0001 // is configuration running ? 363 #define FUNCTION_PARAMETER_STRUCT_STATUS_RUN 0x0002 // is process running ? 365 #define FUNCTION_PARAMETER_STRUCT_STATUS_CMDCONF 0x0010 // should configuration be running ? 366 #define FUNCTION_PARAMETER_STRUCT_STATUS_CMDRUN 0x0020 // should process be running ? 368 #define FUNCTION_PARAMETER_STRUCT_STATUS_RUNLOOP 0x0100 // is process loop running ? 369 #define FUNCTION_PARAMETER_STRUCT_STATUS_CHECKOK 0x0200 // Are parameter values OK to run loop process ? (1=OK, 0=not OK) 374 #define FUNCTION_PARAMETER_STRUCT_SIGNAL_CONFRUN 0x0001 // configuration process 376 #define FUNCTION_PARAMETER_STRUCT_SIGNAL_UPDATE 0x0004 // re-run check of parameter 378 #define FUNCTION_PARAMETER_STRUCT_SIGNAL_CHECKED 0x0008 // CheckParametersAll been completed. 388 #define FPS_NB_MSG 100 // max number of messages 389 #define FUNCTION_PARAMETER_STRUCT_MSG_LEN 500 392 #define FPS_MSG_FLAG_NOTINITIALIZED 0x0001 393 #define FPS_MSG_FLAG_BELOWMIN 0x0002 394 #define FPS_MSG_FLAG_ABOVEMAX 0x0004 397 #define FPS_MSG_FLAG_ERROR 0x0008 // if ERROR, then cannot start function 398 #define FPS_MSG_FLAG_INFO 0x0010 401 #define FPS_NAME_STRMAXLEN 100 402 #define FPS_CWD_STRLENMAX 200 403 #define FPS_SRCDIR_STRLENMAX 200 404 #define FPS_PNAME_STRMAXLEN 100 405 #define FPS_DESCR_STRMAXLEN 200 422 char nameindexW[16][10];
486 #define NB_FPSCTRL_TASK_MAX 1024 488 #define NB_FPSCTRL_TASKQUEUE_MAX 10 490 #define FPSTASK_STATUS_ACTIVE 0x0000000000000001 // is the task entry in the array used ? 491 #define FPSTASK_STATUS_RUNNING 0x0000000000000002 492 #define FPSTASK_STATUS_WAITING 0x0000000000000004 493 #define FPSTASK_STATUS_SHOW 0x0000000000000008 496 #define FPSTASK_FLAG_WAITONRUN 0x0000000000000001 497 #define FPSTASK_FLAG_WAITONCONF 0x0000000000000002 500 #define FPSTASK_FLAG_WAIT_FOR_FPS_NORUN 0x0000000000000004 503 #define FPSTASK_MAX_NBQUEUE 10 532 struct timespec creationtime;
533 struct timespec activationtime;
534 struct timespec completiontime;
551 char fpsnamemask[100];
555 int GUIlineSelected[100];
559 char fpsCTRLfifoname[200];
589 #define FPS_SETUP_INIT(VARfpsname,VARCMDmode) FUNCTION_PARAMETER_STRUCT fps; do { \ 591 fps = function_parameter_FPCONFsetup((VARfpsname), (VARCMDmode)); \ 592 strncpy(fps.md->sourcefname, __FILE__, FPS_SRCDIR_STRLENMAX);\ 593 fps.md->sourceline = __LINE__; \ 595 char msgstring[STRINGMAXLEN_FPS_LOGMSG]; \ 596 SNPRINTF_CHECK(msgstring, STRINGMAXLEN_FPS_LOGMSG, "LOGSTART %s %d %s %d", (VARfpsname), (VARCMDmode), fps.md->sourcefname, fps.md->sourceline); \ 597 functionparameter_outlog("FPSINIT", msgstring); \ 598 functionparameter_outlog_namelink((VARfpsname), (VARCMDmode)); \ 603 #define FPS_CONNECT( VARfpsname, VARCMDmode ) FUNCTION_PARAMETER_STRUCT fps; do { \ 605 if(function_parameter_struct_connect( (VARfpsname) , &fps, (VARCMDmode) ) == -1) { \ 606 printf("ERROR: fps \"%s\" does not exist -> running without FPS interface\n", VARfpsname); \ 607 return RETURN_FAILURE; \ 612 #define FPS_CONFLOOP_START if(fps.loopstatus == 0) { \ 613 return RETURN_SUCCESS; \ 615 while(fps.loopstatus == 1) { \ 617 struct timespec treq, trem; \ 619 treq.tv_nsec = 50000; \ 620 nanosleep(&treq, &trem); \ 622 if(function_parameter_FPCONFloopstep(&fps) == 1) { 625 #define FPS_CONFLOOP_END functionparameter_CheckParametersAll(&fps);}} function_parameter_FPCONFexit(&fps); 628 #define FPS_ADDPARAM_FLT64_IN(key, pname, pdescr, dflt) long fp_##key = 0; do{ \ 629 fp_##key = function_parameter_add_entry(&fps, (pname), (pdescr), FPTYPE_FLOAT64, FPFLAG_DEFAULT_OUTPUT, (dflt));\ 635 #define FPS_ADDPARAM_INT64_IN(key, pname, pdescr, dflt) long fp_##key = 0; do{ \ 636 fp_##key = function_parameter_add_entry(&fps, (pname), (pdescr), FPTYPE_INT64, FPFLAG_DEFAULT_INPUT, (dflt));\ 640 #define FPS_ADDPARAM_INT64_OUT(key, pname, pdescr) long fp_##key = 0; do{ \ 641 fp_##key = function_parameter_add_entry(&fps, (pname), (pdescr), FPTYPE_INT64, FPFLAG_DEFAULT_OUTPUT, pNull);\ 647 #define FPS_ADDPARAM_STREAM_IN(key, pname, pdescr) long fp_##key = 0; do{ \ 648 fp_##key = function_parameter_add_entry(&fps, (pname), (pdescr), FPTYPE_STREAMNAME, FPFLAG_DEFAULT_INPUT_STREAM, pNull);\ 652 #define FPS_ADDPARAM_STREAM_OUT(key, pname, pdescr) long fp_##key = 0; do{ \ 653 fp_##key = function_parameter_add_entry(&fps, (pname), (pdescr), FPTYPE_STREAMNAME, FPFLAG_DEFAULT_OUTPUT_STREAM, pNull);\ 696 const char *paramname);
699 const char *paramname);
702 const char *paramname,
long value);
705 const char *paramname);
708 const char *paramname);
711 const char *paramname,
double value);
714 const char *paramname);
717 const char *paramname);
720 const char *paramname,
float value);
723 const char *paramname);
726 const char *paramname);
729 const char *paramname,
const char *stringvalue);
732 const char *paramname);
735 const char *paramname,
int ONOFFvalue);
738 const char *paramname);
749 const char *keywordstring,
const char *descriptionstring, uint64_t type,
750 uint64_t fpflag,
void *dataptr);
772 const char *paramname);
775 int pindex,
char *tagname,
char *commentstr);
793 char *fpsCTRLfifoname);
800 #endif // FUNCTION_PARAMETERS_H int functionparameter_GetParamValue_ONOFF(FUNCTION_PARAMETER_STRUCT *fps, const char *paramname)
Definition: function_parameters.c:1287
#define FPS_NAME_STRMAXLEN
Definition: function_parameters.h:401
FUNCTION_PARAMETER_SUBINFO_FPS fps
Definition: function_parameters.h:347
char * functionparameter_GetParamPtr_STRING(FUNCTION_PARAMETER_STRUCT *fps, const char *paramname)
Definition: function_parameters.c:1260
int functionparameter_SaveParam2disk(FUNCTION_PARAMETER_STRUCT *fpsentry, const char *paramname)
Definition: function_parameters.c:3904
long FPSNBparamActive
Definition: function_parameters.h:304
int direction
Definition: function_parameters.h:561
int currentlevel
Definition: function_parameters.h:556
int directorynodeSelected
Definition: function_parameters.h:557
int fpsindex
Definition: function_parameters.h:530
pid_t runpid
Definition: function_parameters.h:435
int pindexSelected
Definition: function_parameters.h:558
int keywordlevel
Definition: function_parameters.h:318
uint32_t queue
Definition: function_parameters.h:524
int SMfd
Definition: function_parameters.h:470
uint32_t conferrcnt
Definition: function_parameters.h:455
uint32_t CMDmode
Definition: function_parameters.h:471
long FPSNBparamMAX
Definition: function_parameters.h:303
int functionparameter_CheckParametersAll(FUNCTION_PARAMETER_STRUCT *fpsentry)
Definition: function_parameters.c:2928
uint64_t fpflag
Definition: function_parameters.h:312
uint16_t function_parameter_RUNexit(FUNCTION_PARAMETER_STRUCT *fps)
Definition: function_parameters.c:2218
Definition: function_parameters.h:408
errno_t function_parameter_getFPSname_from_CLIfunc(char *fpsname_default)
Definition: function_parameters.c:361
long function_parameter_struct_connect(const char *name, FUNCTION_PARAMETER_STRUCT *fps, int fpsconnectmode)
Definition: function_parameters.c:674
uint64_t * functionparameter_GetParamPtr_fpflag(FUNCTION_PARAMETER_STRUCT *fps, const char *paramname)
Definition: function_parameters.c:1332
FUNCTION_PARAMETER_SUBINFO_STREAM stream
Definition: function_parameters.h:346
Definition: function_parameters.h:505
int functionparameter_GetParamIndex(FUNCTION_PARAMETER_STRUCT *fps, const char *paramname)
Definition: function_parameters.c:1091
int nodeSelected
Definition: function_parameters.h:552
int function_parameter_printlist(FUNCTION_PARAMETER *funcparamarray, long NBparamMAX)
Definition: function_parameters.c:882
uint8_t stream_atype
Definition: function_parameters.h:288
Definition: function_parameters.h:285
uint32_t mode
Definition: function_parameters.h:547
#define FUNCTION_PARAMETER_KEYWORD_MAXLEVEL
Definition: function_parameters.h:56
errno_t functionparameter_CONFstart(FUNCTION_PARAMETER_STRUCT *fps, int fpsindex)
Definition: function_parameters.c:5693
long FPSNBparamUsed
Definition: function_parameters.h:305
#define FUNCTION_PARAMETER_STRMAXLEN
Definition: function_parameters.h:89
int functionparameter_SetParamValue_INT64(FUNCTION_PARAMETER_STRUCT *fps, const char *paramname, long value)
Definition: function_parameters.c:1146
Definition: function_parameters.h:301
uint64_t confwaitus
Definition: function_parameters.h:440
Definition: function_parameters.h:462
errno_t function_parameter_execFPScmd()
Definition: function_parameters.c:481
uint32_t status
Definition: function_parameters.h:442
float functionparameter_GetParamValue_FLOAT32(FUNCTION_PARAMETER_STRUCT *fps, const char *paramname)
Definition: function_parameters.c:1218
float * functionparameter_GetParamPtr_FLOAT32(FUNCTION_PARAMETER_STRUCT *fps, const char *paramname)
Definition: function_parameters.c:1245
long cnt0
Definition: function_parameters.h:351
int NBfps
Definition: function_parameters.h:548
int NBnameindex
Definition: function_parameters.h:423
long * functionparameter_GetParamPtr_INT64(FUNCTION_PARAMETER_STRUCT *fps, const char *paramname)
Definition: function_parameters.c:1160
int sourceline
Definition: function_parameters.h:418
long imageID
Definition: CLIcore.h:54
FUNCTION_PARAMETER * parray
Definition: function_parameters.h:466
imageID functionparameter_LoadStream(FUNCTION_PARAMETER_STRUCT *fps, int pindex, int fpsconnectmode)
Definition: function_parameters.c:1352
uint64_t signal
Definition: function_parameters.h:439
#define FUNCTION_PARAMETER_DESCR_STRMAXLEN
Definition: function_parameters.h:88
long functionparameter_GetParamValue_INT64(FUNCTION_PARAMETER_STRUCT *fps, const char *paramname)
Definition: function_parameters.c:1131
errno_t functionparameter_outlog_file(char *keyw, char *msgstring, FILE *fpout)
Definition: function_parameters.c:5908
uint64_t status
Definition: function_parameters.h:527
errno_t functionparameter_GetTypeString(uint32_t type, char *typestring)
Definition: function_parameters.c:3065
int functionparameter_ConnectExternalFPS(FUNCTION_PARAMETER_STRUCT *FPS, int pindex, FUNCTION_PARAMETER_STRUCT *FPSext)
Definition: function_parameters.c:3034
#define FPS_SRCDIR_STRLENMAX
Definition: function_parameters.h:403
errno_t functionparameter_RUNstart(FUNCTION_PARAMETER_STRUCT *fps, int fpsindex)
Definition: function_parameters.c:5561
int functionparameter_PrintParameterInfo(FUNCTION_PARAMETER_STRUCT *fpsentry, int pindex)
Definition: function_parameters.c:3136
pid_t confpid
Definition: function_parameters.h:434
Definition: function_parameters.h:544
errno_t functionparameter_CONFstop(FUNCTION_PARAMETER_STRUCT *fps, int fpsindex)
Definition: function_parameters.c:5764
int fpsCTRL_DisplayMode
Definition: function_parameters.h:546
int priority
Definition: function_parameters.h:507
FUNCTION_PARAMETER_STRUCT_MD * md
Definition: function_parameters.h:465
#define FUNCTION_PARAMETER_STRUCT_MSG_LEN
Definition: function_parameters.h:389
int functionparameter_SetParamValue_FLOAT32(FUNCTION_PARAMETER_STRUCT *fps, const char *paramname, float value)
Definition: function_parameters.c:1232
errno_t functionparameter_outlog_namelink(const char *fpsname, int cmdcode)
Establish sym link for convenience.
Definition: function_parameters.c:5990
uint8_t stream_sourceLocation
Definition: function_parameters.h:296
uint32_t type
Definition: function_parameters.h:326
Definition: function_parameters.h:310
int functionparameter_SetParamValue_STRING(FUNCTION_PARAMETER_STRUCT *fps, const char *paramname, const char *stringvalue)
Definition: function_parameters.c:1269
#define FUNCTION_PARAMETER_KEYWORD_STRMAXLEN
Definition: function_parameters.h:55
errno_t functionparameter_RUNstop(FUNCTION_PARAMETER_STRUCT *fps, int fpsindex)
Definition: function_parameters.c:5638
double functionparameter_GetParamValue_FLOAT64(FUNCTION_PARAMETER_STRUCT *fps, const char *paramname)
Definition: function_parameters.c:1177
uint16_t loopstatus
Definition: function_parameters.h:469
int functionparameter_CheckParameter(FUNCTION_PARAMETER_STRUCT *fpsentry, int pindex)
Definition: function_parameters.c:2552
errno_t function_parameter_struct_create(int NBparamMAX, const char *name)
Definition: function_parameters.c:528
int function_parameter_struct_disconnect(FUNCTION_PARAMETER_STRUCT *funcparamstruct)
Definition: function_parameters.c:816
int functionparameter_WriteParameterToDisk(FUNCTION_PARAMETER_STRUCT *fpsentry, int pindex, char *tagname, char *commentstr)
Definition: function_parameters.c:2309
long NBparamMAX
Definition: function_parameters.h:445
errno_t functionparameter_CTRLscreen(uint32_t mode, char *fpsname, char *fpsCTRLfifoname)
Definition: function_parameters.c:7168
double * functionparameter_GetParamPtr_FLOAT64(FUNCTION_PARAMETER_STRUCT *fps, const char *paramname)
Definition: function_parameters.c:1204
uint16_t function_parameter_FPCONFexit(FUNCTION_PARAMETER_STRUCT *fps)
Definition: function_parameters.c:2205
uint64_t flag
Definition: function_parameters.h:528
int run_display
Definition: function_parameters.h:553
Definition: function_parameters.h:514
long NBindex
Definition: function_parameters.h:550
uint16_t function_parameter_FPCONFloopstep(FUNCTION_PARAMETER_STRUCT *fps)
Definition: function_parameters.c:2120
int function_parameter_add_entry(FUNCTION_PARAMETER_STRUCT *fps, const char *keywordstring, const char *descriptionstring, uint64_t type, uint64_t fpflag, void *dataptr)
Definition: function_parameters.c:1421
#define FPS_NB_MSG
Definition: function_parameters.h:388
#define STRINGMAXLEN_FPS_CMDLINE
Definition: function_parameters.h:30
int functionparameter_SetParamValue_FLOAT64(FUNCTION_PARAMETER_STRUCT *fps, const char *paramname, double value)
Definition: function_parameters.c:1191
#define FPS_CWD_STRLENMAX
Definition: function_parameters.h:402
int fpsCTRLfifofd
Definition: function_parameters.h:560
errno_t functionparameter_FPSremove(FUNCTION_PARAMETER_STRUCT *fps, int fpsindex)
Definition: function_parameters.c:5793
int functionparameter_SetParamValue_ONOFF(FUNCTION_PARAMETER_STRUCT *fps, const char *paramname, int ONOFFvalue)
Definition: function_parameters.c:1306
int fpsindexSelected
Definition: function_parameters.h:554
long msgcnt
Definition: function_parameters.h:454
int NBkwn
Definition: function_parameters.h:549
errno_t functionparameter_outlog(char *keyw, char *msgstring)
Definition: function_parameters.c:5946
#define FPS_PNAME_STRMAXLEN
Definition: function_parameters.h:404
#define FPS_DESCR_STRMAXLEN
Definition: function_parameters.h:405
uint64_t inputindex
Definition: function_parameters.h:520
long streamID
Definition: function_parameters.h:287
FUNCTION_PARAMETER_STRUCT function_parameter_FPCONFsetup(const char *fpsname, uint32_t CMDmode)
Definition: function_parameters.c:2045