techmannih/nema34-mounted-stepper-controller
A USB-C PD-powered RP2040 motor controller with protected 48 V power, DRV8262 dual-bridge drive for a NEMA34 motor, regenerative-braking resistor, isolated sensing, hardware interlocks, and telemetry/status interfaces.
- Version
- 0.3.113
- License
- unset
- Stars
- 1
firmware/include/as5600.h
#pragma once
#include <stdbool.h>
#include <stdint.h>
typedef bool (*as5600_read_fn)(void *, uint8_t reg, uint8_t *bytes, uint8_t count);
typedef struct { uint16_t angle; uint8_t status; bool valid; } as5600_sample_t;
/* Read-only: never burn OTP, and reject missing/weak/strong magnets. */
bool as5600_sample(as5600_read_fn read, void *context, as5600_sample_t *sample);