19 lines
368 B
C
19 lines
368 B
C
#ifndef __LINEAR_ENCODER_H__
|
|
#define __LINEAR_ENCODER_H__
|
|
|
|
/* Includes ------------------------------------------------------------------*/
|
|
#include "main.h"
|
|
|
|
typedef struct linear_encoder
|
|
{
|
|
uint8_t channel;
|
|
uint8_t direction;
|
|
int data;
|
|
float length;
|
|
} linear_encoder_t;
|
|
|
|
extern linear_encoder_t linear_enc;
|
|
|
|
void linear_encoder_get_data(void);
|
|
#endif
|