modbus/mb_runtime.h
changeset 3733 d1acf20e8e7c
parent 2723 cde2e410b874
equal deleted inserted replaced
3625:bb1eff4091ab 3733:d1acf20e8e7c
   122               char  str1[MODBUS_PARAM_STRING_SIZE];
   122               char  str1[MODBUS_PARAM_STRING_SIZE];
   123               char  str2[MODBUS_PARAM_STRING_SIZE]; 
   123               char  str2[MODBUS_PARAM_STRING_SIZE]; 
   124 	    node_addr_t	node_address;
   124 	    node_addr_t	node_address;
   125 	    int		mb_nd;      // modbus library node used for this client
   125 	    int		mb_nd;      // modbus library node used for this client
   126 	    int		init_state; // store how far along the client's initialization has progressed
   126 	    int		init_state; // store how far along the client's initialization has progressed
   127 	    u64		comm_period;// period to use when periodically sending requests to remote server
   127 	    u64		comm_period;// period to use when periodically sending requests to remote server (in ms)
       
   128 	    u64		req_delay;  // delay between 2 consecutive requests sent to remote slaves/server (in ms)
   128 	    int		prev_error; // error code of the last printed error message (0 when no error) 
   129 	    int		prev_error; // error code of the last printed error message (0 when no error) 
   129 	    pthread_t   thread_id;  // thread handling all communication for this client node
   130 	    pthread_t   thread_id;  // thread handling all communication for this client node
   130 	    pthread_t	timer_thread_id;  // thread handling periodical timer for this client node
   131 	    pthread_t	timer_thread_id;  // thread handling periodical timer for this client node
   131 	    pthread_mutex_t mutex;  // mutex to be used with the following condition variable
   132 	    pthread_mutex_t mutex;  // mutex to be used with the following condition variable
   132         pthread_cond_t  condv;  // used to signal the client thread when to start new modbus transactions
   133         pthread_cond_t  condv;  // used to signal the client thread when to start new modbus transactions