Agile Modbus
1.1.4
Lightweight modbus protocol stack.
|
Functions | |
static const agile_modbus_slave_util_map_t * | get_map_by_addr (const agile_modbus_slave_util_map_t *maps, int nb_maps, int address) |
Get the mapping object from the mapping object array according to the register address. More... | |
static int | read_registers (agile_modbus_t *ctx, struct agile_modbus_slave_info *slave_info, const agile_modbus_slave_util_t *slave_util) |
read register More... | |
static int | write_registers (agile_modbus_t *ctx, struct agile_modbus_slave_info *slave_info, const agile_modbus_slave_util_t *slave_util) |
write register More... | |
static int | mask_write_register (agile_modbus_t *ctx, struct agile_modbus_slave_info *slave_info, const agile_modbus_slave_util_t *slave_util) |
mask write register More... | |
static int | write_read_registers (agile_modbus_t *ctx, struct agile_modbus_slave_info *slave_info, const agile_modbus_slave_util_t *slave_util) |
Write and read registers. More... | |
|
static |
Get the mapping object from the mapping object array according to the register address.
maps | mapping object array |
nb_maps | number of arrays |
address | register address |
Definition at line 37 of file agile_modbus_slave_util.c.
|
static |
read register
ctx | modbus handle |
slave_info | slave information body |
slave_util | slave function structure |
Definition at line 58 of file agile_modbus_slave_util.c.
|
static |
write register
ctx | modbus handle |
slave_info | slave information body |
slave_util | slave function structure |
Definition at line 141 of file agile_modbus_slave_util.c.
|
static |
mask write register
ctx | modbus handle |
slave_info | slave information body |
slave_util | slave function structure |
Definition at line 244 of file agile_modbus_slave_util.c.
|
static |
Write and read registers.
ctx | modbus handle |
slave_info | slave information body |
slave_util | slave function structure |
Definition at line 291 of file agile_modbus_slave_util.c.