Public Member Functions | Private Attributes | List of all members
pilz_modbus_client_test::HoldingRegisterIncreaser Class Reference

Strictly increases the holding register each time the "readHoldingRegister" method is called. More...

Public Member Functions

 HoldingRegisterIncreaser (unsigned int register_index=0u)
RegCont readHoldingRegister (int, int nb)
void reset ()

Private Attributes

uint16_t curr_count_ { 0 }
const unsigned int register_index_

Detailed Description

Strictly increases the holding register each time the "readHoldingRegister" method is called.

Definition at line 373 of file unittest_pilz_modbus_client.cpp.

Constructor & Destructor Documentation

◆ HoldingRegisterIncreaser()

pilz_modbus_client_test::HoldingRegisterIncreaser::HoldingRegisterIncreaser ( unsigned int  register_index = 0u)

Definition at line 376 of file unittest_pilz_modbus_client.cpp.

Member Function Documentation

◆ readHoldingRegister()

RegCont pilz_modbus_client_test::HoldingRegisterIncreaser::readHoldingRegister ( int  ,
int  nb 

Definition at line 381 of file unittest_pilz_modbus_client.cpp.

◆ reset()

void pilz_modbus_client_test::HoldingRegisterIncreaser::reset ( )

Definition at line 389 of file unittest_pilz_modbus_client.cpp.

Member Data Documentation

◆ curr_count_

uint16_t pilz_modbus_client_test::HoldingRegisterIncreaser::curr_count_ { 0 }

Definition at line 396 of file unittest_pilz_modbus_client.cpp.

◆ register_index_

const unsigned int pilz_modbus_client_test::HoldingRegisterIncreaser::register_index_

Definition at line 395 of file unittest_pilz_modbus_client.cpp.

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

autogenerated on Wed Nov 25 2020 03:10:38