mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-02-28 03:44:30 +03:00
encoders works fine
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user