encoders works fine

This commit is contained in:
2025-04-04 11:56:37 +03:00
parent faeac98318
commit f46185feaf
18 changed files with 359 additions and 361 deletions

View File

@@ -20,6 +20,11 @@
#include <stdint.h>
#include "spi.h"
#if ENCRESOL_MAX > 32
#error "Change full code. Current don't support more than 32 bits of encoder resolution."
#endif
typedef struct {
uint32_t data; // 26/32/36-bit data
uint8_t error : 1; // error flag (0 - error: bad value or high temperature)