#ifndef DRILL_ENCODER_TARGET_H
#define DRILL_ENCODER_TARGET_H
#include <stdint.h>
#include <stdbool.h>
typedef struct {
 uint32_t epoch,samples,last_us,ab;
 int32_t edge_position;
 uint32_t invalid_transitions,service_gaps,saturated,available;
} de_snapshot;
extern volatile de_snapshot drill_debug_encoder;
bool drill_encoder_init(uint32_t now);
void drill_encoder_poll(uint32_t now);
#endif
