Lines Matching +full:data +full:- +full:bits
3 * SPDX-License-Identifier: Apache-2.0
47 * @param base Register base address (bits 15..8 of 16-bit address)
48 * @param offset Register offset address (bits 7..0 of 16-bit address)
49 * @param data Pointer to buffer for received data
52 * @retval -errno In case of any bus error (see i2c_write_read_dt())
54 int mfd_npm1300_reg_read_burst(const struct device *dev, uint8_t base, uint8_t offset, void *data,
61 * @param base Register base address (bits 15..8 of 16-bit address)
62 * @param offset Register offset address (bits 7..0 of 16-bit address)
63 * @param data Pointer to buffer for received data
65 * @retval -errno In case of any bus error (see i2c_write_read_dt())
67 int mfd_npm1300_reg_read(const struct device *dev, uint8_t base, uint8_t offset, uint8_t *data);
73 * @param base Register base address (bits 15..8 of 16-bit address)
74 * @param offset Register offset address (bits 7..0 of 16-bit address)
75 * @param data data to write
77 * @retval -errno In case of any bus error (see i2c_write_dt())
79 int mfd_npm1300_reg_write(const struct device *dev, uint8_t base, uint8_t offset, uint8_t data);
85 * @param base Register base address (bits 15..8 of 16-bit address)
86 * @param offset Register offset address (bits 7..0 of 16-bit address)
87 * @param data1 first byte of data to write
88 * @param data2 second byte of data to write
90 * @retval -errno In case of any bus error (see i2c_write_dt())
96 * @brief Update selected bits in npm1300 register
99 * @param base Register base address (bits 15..8 of 16-bit address)
100 * @param offset Register offset address (bits 7..0 of 16-bit address)
101 * @param data data to write
102 * @param mask mask of bits to be modified
104 * @retval -errno In case of any bus error (see i2c_write_read_dt(), i2c_write_dt())
106 int mfd_npm1300_reg_update(const struct device *dev, uint8_t base, uint8_t offset, uint8_t data,
115 * @retval -EINVAL if time value is too large
116 * @retval -errno In case of any bus error (see i2c_write_dt())
125 * @retval -errno In case of any bus error (see i2c_write_dt())
137 * @retval -EINVAL if time value is too large
138 * @retval -errno In case of any bus error (see i2c_write_dt())
147 * @return 0 on success, -errno on failure
156 * @return 0 on success, -errno on failure