Modbus TCP 0.1.0

Functions
ModbusTCP Buffer Management

## Functions
uint8_t | ModbusTCP::getResponseBufferLength ()
uint16_t | ModbusTCP::getResponseBuffer (uint8_t)
void | ModbusTCP::clearResponseBuffer ()
uint8_t | ModbusTCP::setTransmitBuffer (uint8_t, uint16_t)
void | ModbusTCP::clearTransmitBuffer ()

## Detailed Description

## Function Documentation

## ◆ clearResponseBuffer()

void ModbusTCP::clearResponseBuffer | ( |  | ) |

Clear Modbus response buffer.

See also
  ModbusTCP::getResponseBuffer(uint8_t u8Index)

## ◆ clearTransmitBuffer()

void ModbusTCP::clearTransmitBuffer | ( |  | ) |

Clear Modbus transmit buffer.

See also
  ModbusTCP::setTransmitBuffer(uint8_t u8Index, uint16_t u16Value)

## ◆ getResponseBuffer()

uint16_t ModbusTCP::getResponseBuffer | ( | uint8_t | u8Index | ) |

Retrieve data from response buffer.

See also
  ModbusTCP::clearResponseBuffer()

Parameters

  u8Index | index of response buffer array (0x00..0x3F)

Returns
  value in position u8Index of response buffer (0x0000..0xFFFF)

## ◆ getResponseBufferLength()

uint8_t ModbusTCP::getResponseBufferLength | ( |  | ) |

Retrieve data from response buffer.

See also
  ModbusMaster::clearResponseBuffer()

Parameters

  u8Index | index of response buffer array (0x00..0x3F)

Returns
  value in position u8Index of response buffer (0x0000..0xFFFF)

## ◆ setTransmitBuffer()

uint8_t ModbusTCP::setTransmitBuffer | ( | uint8_t | u8Index,
|  | uint16_t | u16Value
| ) |  |

Place data in transmit buffer.

See also
  ModbusTCP::clearTransmitBuffer()

Parameters

  u8Index | index of transmit buffer array (0x00..0x3F)
  u16Value | value to place in position u8Index of transmit buffer (0x0000..0xFFFF)

Returns
  0 on success; exception number on failure