Go to the source code of this file.
◆ mfd_ds3231_i2c_get_registers()
Get specified number of registers from an I2C device starting at the given register address.
- Parameters
-
dev | ds3231 mfd device |
start_reg | The register address to start at. |
buf | The buffer array pointer to store results in. |
buf_size | The amount of register values to return. |
- Return values
-
0 | on success |
-errno | in case of any bus error |
◆ mfd_ds3231_i2c_set_registers()
Set a register on an I2C device at the given register address.
- Parameters
-
dev | ds3231 mfd device |
start_reg | The register address to set. |
buf | The value to write to the given address. |
buf_size | The size of the buffer to be written to the given address. |
- Return values
-
0 | on success |
-errno | in case of any bus error |