![]() |
GaIA BIOS Library
|
Modbus/TCP platform-dependent function prototypes. More...
Functions | |
| mb_tcp_transaction_t * | mb_begin_transaction (mb_tcp_master_ch_t *ch) |
| Opens a Modbus/TCP master transaction. | |
| void | mb_end_transaction (mb_tcp_master_ch_t *ch, mb_tcp_transaction_t *trans) |
| Closes a Modbus/TCP master transaction. | |
| uint16_t | mb_generate_trans_id (struct mb_trans_info *trans_info) |
| Generates a transaction id. | |
Modbus/TCP platform-dependent function prototypes.
These functions normally have different implementations for a specific RTOS and TCP/IP library.
| mb_tcp_transaction_t * mb_begin_transaction | ( | mb_tcp_master_ch_t * | ch | ) |
Opens a Modbus/TCP master transaction.
| ch | the Modbus/TCP master channel. |
| void mb_end_transaction | ( | mb_tcp_master_ch_t * | ch, |
| mb_tcp_transaction_t * | trans ) |
Closes a Modbus/TCP master transaction.
| ch | the Modbus/TCP master channel. |
| trans | the opened transaction to be closed. |
| uint16_t mb_generate_trans_id | ( | struct mb_trans_info * | trans_info | ) |
Generates a transaction id.
| trans_info | info structure normally used to store locks. |