FACT++  1.0
int set_register_wait ( int  index,
int  value 
)

Definition at line 18 of file test_client_ccpc.c.

References dic_cmnd_service(), dim_wait(), RegisterSet, and RegisterValue.

Referenced by main().

20 {
21  int pars[2];
22 
23  pars[0] = index;
24  pars[1] = value;
25  RegisterSet = -1;
26  dic_cmnd_service("SET_REGISTER",pars,sizeof(pars));
27  while(RegisterSet == -1)
28  {
29  dim_wait();
30  }
31  if(RegisterSet == index)
32  return(RegisterValue);
33  return(-1);
34 }
int dim_wait(void)
Definition: dim_thr.c:409
int RegisterSet
int RegisterValue
int dic_cmnd_service(char *serv_name, void *serv_address, int serv_size)
Definition: dic.c:694

+ Here is the call graph for this function:

+ Here is the caller graph for this function: