rodbus (C API) 1.3.1
Loading...
Searching...
No Matches
rodbus_write_handler_t Struct Reference

Interface used to handle write requests received from the client. More...

#include <rodbus.h>

Data Fields

rodbus_write_result_t(* write_single_coil )(uint16_t, bool, rodbus_database_t *, void *)
 Write a single coil received from the client. More...
 
rodbus_write_result_t(* write_single_register )(uint16_t, uint16_t, rodbus_database_t *, void *)
 write a single coil received from the client More...
 
rodbus_write_result_t(* write_multiple_coils )(uint16_t, rodbus_bit_value_iterator_t *, rodbus_database_t *, void *)
 Write multiple coils received from the client. More...
 
rodbus_write_result_t(* write_multiple_registers )(uint16_t, rodbus_register_value_iterator_t *, rodbus_database_t *, void *)
 Write multiple registers received from the client. More...
 
void(* on_destroy )(void *arg)
 Callback when the underlying owner doesn't need the interface anymore. More...
 
void * ctx
 Context data. More...
 

Detailed Description

Interface used to handle write requests received from the client.

Field Documentation

◆ ctx

void* rodbus_write_handler_t::ctx

Context data.

◆ on_destroy

void(* rodbus_write_handler_t::on_destroy) (void *arg)

Callback when the underlying owner doesn't need the interface anymore.

Parameters
argContext data

◆ write_multiple_coils

rodbus_write_result_t(* rodbus_write_handler_t::write_multiple_coils) (uint16_t, rodbus_bit_value_iterator_t *, rodbus_database_t *, void *)

Write multiple coils received from the client.

Parameters
startStarting address
itIterator over coil values
databaseDatabase interface for updates
ctxContext data
Returns
Struct describing the result of the operation

◆ write_multiple_registers

rodbus_write_result_t(* rodbus_write_handler_t::write_multiple_registers) (uint16_t, rodbus_register_value_iterator_t *, rodbus_database_t *, void *)

Write multiple registers received from the client.

Parameters
startStarting address
itIterator over register values
databaseDatabase interface for updates
ctxContext data
Returns
Struct describing the result of the operation

◆ write_single_coil

rodbus_write_result_t(* rodbus_write_handler_t::write_single_coil) (uint16_t, bool, rodbus_database_t *, void *)

Write a single coil received from the client.

Parameters
indexIndex of the coil
valueValue of the coil to write
databaseDatabase interface for updates
ctxContext data
Returns
Struct describing the result of the operation

◆ write_single_register

rodbus_write_result_t(* rodbus_write_handler_t::write_single_register) (uint16_t, uint16_t, rodbus_database_t *, void *)

write a single coil received from the client

Parameters
indexIndex of the register
valueValue of the register to write
databaseDatabase interface for updates
ctxContext data
Returns
Struct describing the result of the operation

The documentation for this struct was generated from the following file: