Zephyr API 3.6.99
|
Modbus Server User Callback structure. More...
#include <modbus.h>
Data Fields | |
int(* | coil_rd )(uint16_t addr, bool *state) |
Coil read callback. | |
int(* | coil_wr )(uint16_t addr, bool state) |
Coil write callback. | |
int(* | discrete_input_rd )(uint16_t addr, bool *state) |
Discrete Input read callback. | |
int(* | input_reg_rd )(uint16_t addr, uint16_t *reg) |
Input Register read callback. | |
int(* | input_reg_rd_fp )(uint16_t addr, float *reg) |
Floating Point Input Register read callback. | |
int(* | holding_reg_rd )(uint16_t addr, uint16_t *reg) |
Holding Register read callback. | |
int(* | holding_reg_wr )(uint16_t addr, uint16_t reg) |
Holding Register write callback. | |
int(* | holding_reg_rd_fp )(uint16_t addr, float *reg) |
Floating Point Holding Register read callback. | |
int(* | holding_reg_wr_fp )(uint16_t addr, float reg) |
Floating Point Holding Register write callback. | |
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.