Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
ds3231.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Gergo Vari <work@gergovari.com>
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_DRIVERS_MFD_DS3231_H_
8#define ZEPHYR_INCLUDE_DRIVERS_MFD_DS3231_H_
9
10#include <zephyr/drivers/i2c.h>
11
23int mfd_ds3231_i2c_get_registers(const struct device *dev, uint8_t start_reg, uint8_t *buf,
24 const size_t buf_size);
25
36int mfd_ds3231_i2c_set_registers(const struct device *dev, uint8_t start_reg, const uint8_t *buf,
37 const size_t buf_size);
38
39#endif /* ZEPHYR_INCLUDE_DRIVERS_MFD_DS3231_H_ */
Public APIs for the I2C drivers.
int mfd_ds3231_i2c_set_registers(const struct device *dev, uint8_t start_reg, const uint8_t *buf, const size_t buf_size)
Set a register on an I2C device at the given register address.
int mfd_ds3231_i2c_get_registers(const struct device *dev, uint8_t start_reg, uint8_t *buf, const size_t buf_size)
Get specified number of registers from an I2C device starting at the given register address.
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
Runtime device structure (in ROM) per driver instance.
Definition device.h:411