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:
parent
8c1efa8b96
commit
75479f5338
9 changed files with 29 additions and 14 deletions
|
@ -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, \
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue