Function rcg::getRegister

Function Documentation

size_t rcg::getRegister(const std::shared_ptr<GenApi::CNodeMapRef> &nodemap, const char *name, uint8_t *buffer, size_t len, size_t *total = 0, bool exception = false, bool igncache = false)

Read value of type register.

Parameters:
  • nodemap – Initialized nodemap.

  • name – Name of feature.

  • bufferBuffer of length len.

  • len – Number of bytes to read. This can be 0 if only the size of the register is of interest.

  • total – Total size of register. A null pointer can be given if this is not required.

  • exception – True if an error should be signaled via exception.

  • igncache – True if value is always read from the device, even if cached.

Returns:

Number of successfuly read bytes.