TTK4155 Ping-pong project
|
Macros | |
#define | ENCODER_OE_PIN 5 |
#define | ENCODER_RST_PIN 6 |
#define | ENCODER_SEL_PIN 3 |
#define | MOTOR_ENABLE_PIN 4 |
#define | DIR_PIN 1 |
Functions | |
void | motor_init (void) |
int16_t | read_encoder () |
void | reset_encoder () |
uint16_t | calibrate_encoder () |
int16_t | read_position (uint16_t encoder_max_val) |
void | motor_set_val (int8_t input_percent) |
void | motor_regulator (struct pi_t *motor_param_p, int8_t reference) |
int8_t | read_position_rel (struct pi_t *motor_param_p) |
#define DIR_PIN 1 |
#define ENCODER_OE_PIN 5 |
#define ENCODER_RST_PIN 6 |
#define ENCODER_SEL_PIN 3 |
#define MOTOR_ENABLE_PIN 4 |
uint16_t calibrate_encoder | ( | ) |
void motor_init | ( | void | ) |
void motor_regulator | ( | struct pi_t * | motor_param_p, |
int8_t | reference | ||
) |
void motor_set_val | ( | int8_t | input_percent | ) |
int16_t read_encoder | ( | ) |
int16_t read_position | ( | uint16_t | encoder_max_val | ) |
int8_t read_position_rel | ( | struct pi_t * | motor_param_p | ) |
void reset_encoder | ( | ) |