summaryrefslogtreecommitdiff
path: root/include/driver/accelgyro_lsm6dso_public.h
blob: 65e98bccec16430f8da8e21811cd76674fc4fecc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* Copyright 2021 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

/* LSM6DSO Accel and Gyro driver for Chrome EC */

#ifndef __CROS_EC_ACCELGYRO_LSM6DSO_PUBLIC_H
#define __CROS_EC_ACCELGYRO_LSM6DSO_PUBLIC_H

#include "driver/accelgyro_lsm6dso_public.h"

/*
 * 7-bit address is 110101xb. Where 'x' is determined
 * by the voltage on the ADDR pin
 */
#define LSM6DSO_ADDR0_FLAGS		0x6a
#define LSM6DSO_ADDR1_FLAGS		0x6b

/* Absolute maximum rate for Acc and Gyro sensors */
#define LSM6DSO_ODR_MIN_VAL		13000
#define LSM6DSO_ODR_MAX_VAL \
	MOTION_MAX_SENSOR_FREQUENCY(416000, 13000)

#endif /* __CROS_EC_ACCELGYRO_LSM6DSO_PUBLIC_H */