1 /* ST Microelectronics STMEMS hal i/f
2  *
3  * Copyright (c) 2021 STMicroelectronics
4  *
5  * SPDX-License-Identifier: Apache-2.0
6  *
7  * zephyrproject-rtos/modules/hal/st/sensor/stmemsc/
8  */
9 
10 #include "stmemsc.h"
11 
stmemsc_i2c_read(const struct i2c_dt_spec * stmemsc,uint8_t reg_addr,uint8_t * value,uint8_t len)12 int stmemsc_i2c_read(const struct i2c_dt_spec *stmemsc,
13 			     uint8_t reg_addr, uint8_t *value, uint8_t len)
14 {
15 	return i2c_burst_read_dt(stmemsc, reg_addr, value, len);
16 }
17 
stmemsc_i2c_write(const struct i2c_dt_spec * stmemsc,uint8_t reg_addr,uint8_t * value,uint8_t len)18 int stmemsc_i2c_write(const struct i2c_dt_spec *stmemsc,
19 			      uint8_t reg_addr, uint8_t *value, uint8_t len)
20 {
21 	return i2c_burst_write_dt(stmemsc, reg_addr, value, len);
22 }
23