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
ReadRegisterDINTNumber of bytes that have been actually read
Input
usiRegisterUSINTregister number, where to start reading
pbyBufferPOINTER TO BYTE
pointer to buffer where to store the read data
nBufferLenUDINTnumber of bytes to read