![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0-only */ 0002 /* 0003 * STMicroelectronics sensors platform-data driver 0004 * 0005 * Copyright 2013 STMicroelectronics Inc. 0006 * 0007 * Denis Ciocca <denis.ciocca@st.com> 0008 */ 0009 0010 #ifndef ST_SENSORS_PDATA_H 0011 #define ST_SENSORS_PDATA_H 0012 0013 /** 0014 * struct st_sensors_platform_data - Platform data for the ST sensors 0015 * @drdy_int_pin: Redirect DRDY on pin 1 (1) or pin 2 (2). 0016 * Available only for accelerometer, magnetometer and pressure sensors. 0017 * Accelerometer DRDY on LSM330 available only on pin 1 (see datasheet). 0018 * Magnetometer DRDY is supported only on LSM9DS0. 0019 * @open_drain: set the interrupt line to be open drain if possible. 0020 * @spi_3wire: enable spi-3wire mode. 0021 * @pullups: enable/disable i2c controller pullup resistors. 0022 * @wakeup_source: enable/disable device as wakeup generator. 0023 */ 0024 struct st_sensors_platform_data { 0025 u8 drdy_int_pin; 0026 bool open_drain; 0027 bool spi_3wire; 0028 bool pullups; 0029 bool wakeup_source; 0030 }; 0031 0032 #endif /* ST_SENSORS_PDATA_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |