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)
inline

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 
)
inline

Definition at line 381 of file unittest_pilz_modbus_client.cpp.

◆ reset()

void pilz_modbus_client_test::HoldingRegisterIncreaser::reset ( )
inline

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 }
private

Definition at line 396 of file unittest_pilz_modbus_client.cpp.

◆ register_index_

const unsigned int pilz_modbus_client_test::HoldingRegisterIncreaser::register_index_
private

Definition at line 395 of file unittest_pilz_modbus_client.cpp.


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


prbt_hardware_support
Author(s):
autogenerated on Wed Nov 25 2020 03:10:38