MustafaMulla29/wireless-mouse-pcb

A tscircuit package created by MustafaMulla29.

Version
1.0.16
License
unset
Stars
0

firmware/src/pmw3610.h

/* SPDX-License-Identifier: Apache-2.0 */

#ifndef PMW3610_H_
#define PMW3610_H_

#include <stdbool.h>
#include <stdint.h>

struct pmw3610_motion {
	bool valid;
	bool overflow;
	int16_t x;
	int16_t y;
};

int pmw3610_init(void);
int pmw3610_read_motion(struct pmw3610_motion *motion);
int pmw3610_set_cpi(uint16_t cpi);

#endif /* PMW3610_H_ */