diff options
author | Dasky <32983009+daskygit@users.noreply.github.com> | 2024-10-25 18:11:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-25 18:11:51 +0100 |
commit | f5b495e06e257796a9be845f47bfc375fece81f8 (patch) | |
tree | 3772da6b18ad610df774269d3542c6fb660b812c /drivers/sensors/adns9800.h | |
parent | 5c85271e48b4f2be7da47d1728ad1ddb95364ad7 (diff) |
Move pointing device driver code (#24445)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'drivers/sensors/adns9800.h')
-rw-r--r-- | drivers/sensors/adns9800.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/sensors/adns9800.h b/drivers/sensors/adns9800.h index 3f1a005789..023f31b132 100644 --- a/drivers/sensors/adns9800.h +++ b/drivers/sensors/adns9800.h @@ -17,6 +17,7 @@ #pragma once #include <stdint.h> +#include "pointing_device.h" #ifndef ADNS9800_CPI # define ADNS9800_CPI 1600 @@ -60,6 +61,8 @@ typedef struct { int16_t y; } report_adns9800_t; +const pointing_device_driver_t adns9800_pointing_device_driver; + void adns9800_init(void); config_adns9800_t adns9800_get_config(void); void adns9800_set_config(config_adns9800_t); @@ -67,3 +70,4 @@ uint16_t adns9800_get_cpi(void); void adns9800_set_cpi(uint16_t cpi); /* Reads and clears the current delta values on the ADNS sensor */ report_adns9800_t adns9800_get_report(void); +report_mouse_t adns9800_get_report_driver(report_mouse_t mouse_report); |