Find the answer to your Linux question:
Results 1 to 3 of 3
I have downloaded libmodbus3.0.1 from libmodbus.org , in the headerfile modbus.h there is a line typedef struct _modbus modbus_t; but i cannot find the struct definition and the parameters of ...
  1. #1
    Just Joined!
    Join Date
    Aug 2011
    Posts
    9

    Can't find Parameters of struct _modbus or modbus_t

    I have downloaded libmodbus3.0.1 from libmodbus.org,
    in the headerfile modbus.h there is a line
    typedef struct _modbus modbus_t;
    but i cannot find the struct definition and the parameters of
    struct _modbus.
    Please help me.Can anyone define the struct _modbus structure completely and tell me where it is found?

  2. #2
    Just Joined!
    Join Date
    Jan 2012
    Posts
    2

    i m having same problem

    i m having same problem , do u get any kind of solution for this problem , if u find out the problem pls tell me ....

  3. #3
    Just Joined!
    Join Date
    Aug 2011
    Posts
    9
    modbus_t:-
    definition is at modbus.h
    Code:
    typedef struct _modbus modbus_t;

    Found in modbus-private.h
    Code:
    struct _modbus {
    /* Slave address */
    int slave;
    /* Socket or file descriptor */
    int s;
    int debug;
    int error_recovery;
    struct timeval response_timeout;
    struct timeval byte_timeout;
    const modbus_backend_t *backend;
    void *backend_data;
    };

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...