|
Agile Modbus 1.1.4
Lightweight modbus protocol stack.
|

Functions | |
| int | agile_modbus_slave_handle (agile_modbus_t *ctx, int msg_length, uint8_t slave_strict, agile_modbus_slave_callback_t slave_cb, const void *slave_data, int *frame_length) |
| slave data processing | |
| void | agile_modbus_slave_io_set (uint8_t *buf, int index, int status) |
| slave IO settings | |
| uint8_t | agile_modbus_slave_io_get (uint8_t *buf, int index) |
| Read slave IO status. | |
| void | agile_modbus_slave_register_set (uint8_t *buf, int index, uint16_t data) |
| slave register settings | |
| uint16_t | agile_modbus_slave_register_get (uint8_t *buf, int index) |
| Read slave register data. | |
| int agile_modbus_slave_handle | ( | agile_modbus_t * | ctx, |
| int | msg_length, | ||
| uint8_t | slave_strict, | ||
| agile_modbus_slave_callback_t | slave_cb, | ||
| const void * | slave_data, | ||
| int * | frame_length | ||
| ) |
slave data processing
| ctx | modbus handle |
| msg_length | received data length |
| slave_strict | slave address strict check flag
|
| slave_cb | slave callback function |
| slave_data | slave callback function private data |
| frame_length | stores modbus data frame length |
warning: comparison is always false due to limited range of data type [-Wtype-limits]
warning: comparison is always false due to limited range of data type [-Wtype-limits]
warning: comparison is always false due to limited range of data type [-Wtype-limits]
Definition at line 1203 of file agile_modbus.c.

| void agile_modbus_slave_io_set | ( | uint8_t * | buf, |
| int | index, | ||
| int | status | ||
| ) |
slave IO settings
| buf | stores IO data area |
| index | IO index (number of IO) |
| status | IO status |
Definition at line 1139 of file agile_modbus.c.

| uint8_t agile_modbus_slave_io_get | ( | uint8_t * | buf, |
| int | index | ||
| ) |
Read slave IO status.
| buf | IO data area |
| index | IO index (number of IO) |
Definition at line 1156 of file agile_modbus.c.

| void agile_modbus_slave_register_set | ( | uint8_t * | buf, |
| int | index, | ||
| uint16_t | data | ||
| ) |
slave register settings
| buf | storage data area |
| index | register index (register number) |
| data | register data |
Definition at line 1172 of file agile_modbus.c.

| uint16_t agile_modbus_slave_register_get | ( | uint8_t * | buf, |
| int | index | ||
| ) |
Read slave register data.
| buf | register data area |
| index | register index (register number) |
Definition at line 1184 of file agile_modbus.c.
