blob: 5b1f3abeb056937304218832fbbea8559fcf793e [file] [log] [blame]
Brian Silvermanf92396c2013-09-12 20:13:13 -07001#ifndef GYRO_BOARD_USB_ENCODER_H_
2#define GYRO_BOARD_USB_ENCODER_H_
3
4#include <stdint.h>
5
6void encoder_init(void);
7
8// For debugging only.
9// Returns the current values of the inputs for the given encoder (as the low 2
10// bits).
11int encoder_bits(int channel);
12
13// Returns the current position of the given encoder.
14int32_t encoder_val(int channel);
15
16#endif // GYRO_BOARD_USB_ENCODER_H_