i2c.readregister (METH)ΒΆ

METHOD readregister : DINT

This method is used to read a number of data bytes starting from a certain register The function therefore first writes the register number and then reads the defined number of bytes.

InOut:

Scope

Name

Type

Comment

Return

ReadRegister

DINT

Number of bytes that have been actually read

Input

usiRegister

USINT

register number, where to start reading

pbyBuffer

POINTER TO BYTE

pointer to buffer where to store the read data

nBufferLen

UDINT

number of bytes to read