|
void | _error_print (modbus_t *ctx, const char *context) |
|
void | _modbus_init_common (modbus_t *ctx) |
|
int | _sleep_and_flush (modbus_t *ctx) |
|
static int | check_confirmation (modbus_t *ctx, uint8_t *req, uint8_t *rsp, int rsp_length) |
|
static int | compute_data_length_after_meta (modbus_t *ctx, uint8_t *msg, msg_type_t msg_type) |
|
static uint8_t | compute_meta_length_after_function (int function, msg_type_t msg_type) |
|
static unsigned int | compute_response_length_from_request (modbus_t *ctx, uint8_t *req) |
|
void | modbus_close (modbus_t *ctx) |
|
int | modbus_connect (modbus_t *ctx) |
|
int | modbus_flush (modbus_t *ctx) |
|
void | modbus_free (modbus_t *ctx) |
|
void | modbus_get_byte_timeout (modbus_t *ctx, struct timeval *timeout) |
|
int | modbus_get_header_length (modbus_t *ctx) |
|
void | modbus_get_response_timeout (modbus_t *ctx, struct timeval *timeout) |
|
int | modbus_get_socket (modbus_t *ctx) |
|
void | modbus_mapping_free (modbus_mapping_t *mb_mapping) |
|
modbus_mapping_t * | modbus_mapping_new (int nb_bits, int nb_input_bits, int nb_registers, int nb_input_registers) |
|
int | modbus_read_bits (modbus_t *ctx, int addr, int nb, uint8_t *dest) |
|
int | modbus_read_input_bits (modbus_t *ctx, int addr, int nb, uint8_t *dest) |
|
int | modbus_read_input_registers (modbus_t *ctx, int addr, int nb, uint16_t *dest) |
|
int | modbus_read_registers (modbus_t *ctx, int addr, int nb, uint16_t *dest) |
|
int | modbus_receive (modbus_t *ctx, uint8_t *req) |
|
int | modbus_receive_confirmation (modbus_t *ctx, uint8_t *rsp) |
|
int | modbus_reply (modbus_t *ctx, const uint8_t *req, int req_length, modbus_mapping_t *mb_mapping) |
|
int | modbus_reply_exception (modbus_t *ctx, const uint8_t *req, unsigned int exception_code) |
|
int | modbus_report_slave_id (modbus_t *ctx, uint8_t *dest) |
|
int | modbus_send_raw_request (modbus_t *ctx, uint8_t *raw_req, int raw_req_length) |
|
void | modbus_set_byte_timeout (modbus_t *ctx, const struct timeval *timeout) |
|
void | modbus_set_debug (modbus_t *ctx, int boolean) |
|
int | modbus_set_error_recovery (modbus_t *ctx, modbus_error_recovery_mode error_recovery) |
|
void | modbus_set_response_timeout (modbus_t *ctx, const struct timeval *timeout) |
|
int | modbus_set_slave (modbus_t *ctx, int slave) |
|
void | modbus_set_socket (modbus_t *ctx, int socket) |
|
const char * | modbus_strerror (int errnum) |
|
int | modbus_write_and_read_registers (modbus_t *ctx, int write_addr, int write_nb, const uint16_t *src, int read_addr, int read_nb, uint16_t *dest) |
|
int | modbus_write_bit (modbus_t *ctx, int addr, int status) |
|
int | modbus_write_bits (modbus_t *ctx, int addr, int nb, const uint8_t *src) |
|
int | modbus_write_register (modbus_t *ctx, int addr, int value) |
|
int | modbus_write_registers (modbus_t *ctx, int addr, int nb, const uint16_t *src) |
|
static int | read_io_status (modbus_t *ctx, int function, int addr, int nb, uint8_t *dest) |
|
static int | read_registers (modbus_t *ctx, int function, int addr, int nb, uint16_t *dest) |
|
static int | receive_msg (modbus_t *ctx, uint8_t *msg, msg_type_t msg_type) |
|
static int | response_exception (modbus_t *ctx, sft_t *sft, int exception_code, uint8_t *rsp) |
|
static int | response_io_status (int address, int nb, uint8_t *tab_io_status, uint8_t *rsp, int offset) |
|
static int | send_msg (modbus_t *ctx, uint8_t *msg, int msg_length) |
|
size_t | strlcpy (char *dest, const char *src, size_t dest_size) |
|
static int | write_single (modbus_t *ctx, int function, int addr, int value) |
|