Update sensor_event.h
This commit is contained in:
parent
ce52ef926a
commit
8394629b5d
1 changed files with 3 additions and 2 deletions
|
@ -6,13 +6,14 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <drivers/sensor.h>
|
||||||
#include <zephyr.h>
|
#include <zephyr.h>
|
||||||
#include <zmk/event_manager.h>
|
#include <zmk/event_manager.h>
|
||||||
#include <device.h>
|
#include <device.h>
|
||||||
struct zmk_sensor_event {
|
struct zmk_sensor_event {
|
||||||
uint8_t sensor_number;
|
uint8_t sensor_number;
|
||||||
const struct device *sensor;
|
struct sensor_value value;
|
||||||
int64_t timestamp;
|
int64_t timestamp;
|
||||||
};
|
};
|
||||||
|
|
||||||
ZMK_EVENT_DECLARE(zmk_sensor_event);
|
ZMK_EVENT_DECLARE(zmk_sensor_event);
|
||||||
|
|
Loading…
Add table
Reference in a new issue