GaIA BIOS Library
Loading...
Searching...
No Matches
mb_ser_channel_t Struct Reference

This structure represents the configuration of a modbus channel. More...

#include <modbus_serial.h>

Data Fields

uint8_t Port
 Port to use.
uint8_t Baud
 Baud rate to use.
uint8_t Address
 Address of the node.
uint8_t Frame
 Parity, data size, stop bit.
uint8_t Timer
 Timer to use.
uint8_t Rtu
 RTU or ASCII version of the protocol.
uint8_t Master
 Master or slave.
uintptr_t TaskId
 task identifier to send signals to
mb_info_t info
 Information for message processing.
void(* TxInt )(void *)
 Transmitting interrupt function.
mb_ser_adu_ttxmsg
 Message to transmit.
timer_t TxTimer
 Transmission timer.
int16_t TxStatus
 Transmission status.
int8_t TxPhase
 Transmitting phase.
uint16_t TxErrors
 Transmission errors.
uint16_t TxTimeOut
 Response timeout.
void(* RxInt )(void *)
 Receiving interrupt function.
mb_ser_adu_trxmsg
 Message received.
timer_t RxTimer
 Receiving timer.
int16_t RxStatus
 Receiving status.
int8_t RxPhase
 Receiving phase.
uint16_t RxErrors
 Receiving errors.
uint16_t msgctr
 Number of PDU data bytes sent.
uint16_t TimeRxTimeout
 Max time between two characters.
uint16_t TimeSilence
 Minimum time between two modbus frames.
uint16_t LastError
 Last error reported.

Detailed Description

This structure represents the configuration of a modbus channel.

Field Documentation

◆ Rtu

uint8_t mb_ser_channel_t::Rtu

RTU or ASCII version of the protocol.

It can be MB_SER_MODE_RTU or MB_SER_MODE_ASCII.


The documentation for this struct was generated from the following file: