pcf8563_read_block_data

The interface has the following parameters.
  • Syntax:
    static int pcf8563_read_block_data(struct i2c_client *client, unsigned char reg,unsigned char length, unsigned char *buf)
  • Description: This function is used to communicate between AT8563 RTC and I2C.
  • Parameter:
    • client: I2C device of the target RTC device.
    • reg: Data address.
    • length: Data length.
    • buf: Read data.
  • Return:
    • Success: 0.
    • Failure: Error code.