Home
last modified time | relevance | path

Searched refs:modbus_context (Results 1 – 6 of 6) sorted by relevance

/Zephyr-latest/subsys/modbus/
Dmodbus_internal.h92 struct modbus_context { struct
148 struct modbus_context *modbus_get_context(const uint8_t iface); argument
157 int modbus_iface_get_by_ctx(const struct modbus_context *ctx);
164 void modbus_tx_adu(struct modbus_context *ctx);
177 int modbus_tx_wait_rx_adu(struct modbus_context *ctx);
187 bool modbus_server_handler(struct modbus_context *ctx);
194 void modbus_reset_stats(struct modbus_context *ctx);
201 void modbus_serial_rx_disable(struct modbus_context *ctx);
208 void modbus_serial_rx_enable(struct modbus_context *ctx);
220 int modbus_serial_rx_adu(struct modbus_context *ctx);
[all …]
Dmodbus_serial.c32 static void modbus_serial_tx_on(struct modbus_context *ctx) in modbus_serial_tx_on()
43 static void modbus_serial_tx_off(struct modbus_context *ctx) in modbus_serial_tx_off()
53 static void modbus_serial_rx_on(struct modbus_context *ctx) in modbus_serial_rx_on()
64 static void modbus_serial_rx_off(struct modbus_context *ctx) in modbus_serial_rx_off()
99 static int modbus_ascii_rx_adu(struct modbus_context *ctx) in modbus_ascii_rx_adu()
185 static void modbus_ascii_tx_adu(struct modbus_context *ctx) in modbus_ascii_tx_adu()
232 static int modbus_ascii_rx_adu(struct modbus_context *ctx) in modbus_ascii_rx_adu()
237 static void modbus_ascii_tx_adu(struct modbus_context *ctx) in modbus_ascii_tx_adu()
243 static int modbus_rtu_rx_adu(struct modbus_context *ctx) in modbus_rtu_rx_adu()
280 static void rtu_tx_adu(struct modbus_context *ctx) in rtu_tx_adu()
[all …]
Dmodbus_core.c61 static struct modbus_context mb_ctx_tbl[] = {
70 struct modbus_context *ctx; in modbus_rx_handler()
72 ctx = CONTAINER_OF(item, struct modbus_context, server_work); in modbus_rx_handler()
117 void modbus_tx_adu(struct modbus_context *ctx) in modbus_tx_adu()
138 int modbus_tx_wait_rx_adu(struct modbus_context *ctx) in modbus_tx_wait_rx_adu()
152 struct modbus_context *modbus_get_context(const uint8_t iface) in modbus_get_context()
154 struct modbus_context *ctx; in modbus_get_context()
171 int modbus_iface_get_by_ctx(const struct modbus_context *ctx) in modbus_iface_get_by_ctx()
193 static struct modbus_context *modbus_init_iface(const uint8_t iface) in modbus_init_iface()
195 struct modbus_context *ctx; in modbus_init_iface()
[all …]
Dmodbus_server.c34 void modbus_reset_stats(struct modbus_context *ctx) in modbus_reset_stats()
44 static void update_msg_ctr(struct modbus_context *ctx) in update_msg_ctr()
49 static void update_crcerr_ctr(struct modbus_context *ctx) in update_crcerr_ctr()
54 static void update_excep_ctr(struct modbus_context *ctx) in update_excep_ctr()
59 static void update_server_msg_ctr(struct modbus_context *ctx) in update_server_msg_ctr()
64 static void update_noresp_ctr(struct modbus_context *ctx) in update_noresp_ctr()
81 static void mbs_exception_rsp(struct modbus_context *ctx, uint8_t excep_code) in mbs_exception_rsp()
107 static bool mbs_fc01_coil_read(struct modbus_context *ctx) in mbs_fc01_coil_read()
206 static bool mbs_fc02_di_read(struct modbus_context *ctx) in mbs_fc02_di_read()
307 static bool mbs_fc03_hreg_read(struct modbus_context *ctx) in mbs_fc03_hreg_read()
[all …]
Dmodbus_raw.c18 int modbus_raw_rx_adu(struct modbus_context *ctx) in modbus_raw_rx_adu()
34 int modbus_raw_tx_adu(struct modbus_context *ctx) in modbus_raw_tx_adu()
53 struct modbus_context *ctx; in modbus_raw_submit_rx()
124 struct modbus_context *ctx; in modbus_raw_backend_txn()
168 int modbus_raw_init(struct modbus_context *ctx, in modbus_raw_init()
181 void modbus_raw_disable(struct modbus_context *ctx) in modbus_raw_disable()
Dmodbus_client.c29 static int mbc_validate_response_fc(struct modbus_context *ctx, in mbc_validate_response_fc()
57 static int mbc_validate_fc03fp_response(struct modbus_context *ctx, float *ptbl) in mbc_validate_fc03fp_response()
84 static int mbc_validate_rd_response(struct modbus_context *ctx, in mbc_validate_rd_response()
157 static int mbc_validate_fc08_response(struct modbus_context *ctx, in mbc_validate_fc08_response()
209 static int mbc_validate_wr_response(struct modbus_context *ctx, in mbc_validate_wr_response()
244 static int mbc_send_cmd(struct modbus_context *ctx, const uint8_t unit_id, in mbc_send_cmd()
299 struct modbus_context *ctx = modbus_get_context(iface); in modbus_read_coils()
324 struct modbus_context *ctx = modbus_get_context(iface); in modbus_read_dinputs()
349 struct modbus_context *ctx = modbus_get_context(iface); in modbus_read_holding_regs()
376 struct modbus_context *ctx = modbus_get_context(iface); in modbus_read_holding_regs_fp()
[all …]