modbus: add user data for adu callback

add user data for adu callback, which helps in passing
socket and relevant application parameters.

Signed-off-by: Parthiban Nallathambi <parthiban@linumiz.com>
This commit is contained in:
Parthiban Nallathambi 2022-07-31 12:53:37 +02:00 committed by Carles Cufí
commit 75479f5338
9 changed files with 29 additions and 14 deletions

View file

@ -53,7 +53,7 @@ static struct modbus_serial_config modbus_serial_cfg[] = {
#define DEFINE_MODBUS_RAW_ADU(x, _) { \
.iface_name = "RAW_"#x, \
.raw_tx_cb = NULL, \
.rawcb.raw_tx_cb = NULL, \
.mode = MODBUS_MODE_RAW, \
}