Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
#include <modbus.h>
Data Fields | |
int(* | coil_rd )(uint16_t addr, bool *state) |
int(* | coil_wr )(uint16_t addr, bool state) |
int(* | discrete_input_rd )(uint16_t addr, bool *state) |
int(* | input_reg_rd )(uint16_t addr, uint16_t *reg) |
int(* | input_reg_rd_fp )(uint16_t addr, float *reg) |
int(* | holding_reg_rd )(uint16_t addr, uint16_t *reg) |
int(* | holding_reg_wr )(uint16_t addr, uint16_t reg) |
int(* | holding_reg_rd_fp )(uint16_t addr, float *reg) |
int(* | holding_reg_wr_fp )(uint16_t addr, float reg) |
Modbus Server User Callback structure
Discrete Input read callback
Holding Register read callback
int(* modbus_user_callbacks::holding_reg_rd_fp) (uint16_t addr, float *reg) |
Floating Point Holding Register read callback
Holding Register write callback
int(* modbus_user_callbacks::holding_reg_wr_fp) (uint16_t addr, float reg) |
Floating Point Holding Register write callback
Input Register read callback
int(* modbus_user_callbacks::input_reg_rd_fp) (uint16_t addr, float *reg) |
Floating Point Input Register read callback