|
@@ -130,32 +130,36 @@ struct st_sensor_das {
|
|
u8 mask;
|
|
u8 mask;
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+/**
|
|
|
|
+ * struct st_sensor_int_drdy - ST sensor device drdy line parameters
|
|
|
|
+ * @addr: address of INT drdy register.
|
|
|
|
+ * @mask: mask to enable drdy line.
|
|
|
|
+ * @addr_od: address to enable/disable Open Drain on the INT line.
|
|
|
|
+ * @mask_od: mask to enable/disable Open Drain on the INT line.
|
|
|
|
+ */
|
|
|
|
+struct st_sensor_int_drdy {
|
|
|
|
+ u8 addr;
|
|
|
|
+ u8 mask;
|
|
|
|
+ u8 addr_od;
|
|
|
|
+ u8 mask_od;
|
|
|
|
+};
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* struct st_sensor_data_ready_irq - ST sensor device data-ready interrupt
|
|
* struct st_sensor_data_ready_irq - ST sensor device data-ready interrupt
|
|
* struct int1 - data-ready configuration register for INT1 pin.
|
|
* struct int1 - data-ready configuration register for INT1 pin.
|
|
* struct int2 - data-ready configuration register for INT2 pin.
|
|
* struct int2 - data-ready configuration register for INT2 pin.
|
|
* @addr_ihl: address to enable/disable active low on the INT lines.
|
|
* @addr_ihl: address to enable/disable active low on the INT lines.
|
|
* @mask_ihl: mask to enable/disable active low on the INT lines.
|
|
* @mask_ihl: mask to enable/disable active low on the INT lines.
|
|
- * @addr_od: address to enable/disable Open Drain on the INT lines.
|
|
|
|
- * @mask_od: mask to enable/disable Open Drain on the INT lines.
|
|
|
|
* struct stat_drdy - status register of DRDY (data ready) interrupt.
|
|
* struct stat_drdy - status register of DRDY (data ready) interrupt.
|
|
* struct ig1 - represents the Interrupt Generator 1 of sensors.
|
|
* struct ig1 - represents the Interrupt Generator 1 of sensors.
|
|
* @en_addr: address of the enable ig1 register.
|
|
* @en_addr: address of the enable ig1 register.
|
|
* @en_mask: mask to write the on/off value for enable.
|
|
* @en_mask: mask to write the on/off value for enable.
|
|
*/
|
|
*/
|
|
struct st_sensor_data_ready_irq {
|
|
struct st_sensor_data_ready_irq {
|
|
- struct {
|
|
|
|
- u8 addr;
|
|
|
|
- u8 mask;
|
|
|
|
- } int1;
|
|
|
|
- struct {
|
|
|
|
- u8 addr;
|
|
|
|
- u8 mask;
|
|
|
|
- } int2;
|
|
|
|
|
|
+ struct st_sensor_int_drdy int1;
|
|
|
|
+ struct st_sensor_int_drdy int2;
|
|
u8 addr_ihl;
|
|
u8 addr_ihl;
|
|
u8 mask_ihl;
|
|
u8 mask_ihl;
|
|
- u8 addr_od;
|
|
|
|
- u8 mask_od;
|
|
|
|
struct {
|
|
struct {
|
|
u8 addr;
|
|
u8 addr;
|
|
u8 mask;
|
|
u8 mask;
|