TTK4155 Ping-pong project
motor_driver.h File Reference
#include "pi.h"
Include dependency graph for motor_driver.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void motor_init (void)
 
void motor_set_val (int8_t input_percent)
 
void reset_encoder ()
 
int16_t read_encoder ()
 
void motor_regulator (struct pi_t *motor_param, int8_t reference)
 
uint16_t calibrate_encoder ()
 
int16_t read_position (uint16_t encoder_max_val)
 
int8_t read_position_rel (struct pi_t *motor_param_p)
 

Function Documentation

◆ calibrate_encoder()

uint16_t calibrate_encoder ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ motor_init()

void motor_init ( void  )
Here is the caller graph for this function:

◆ motor_regulator()

void motor_regulator ( struct pi_t motor_param,
int8_t  reference 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ motor_set_val()

void motor_set_val ( int8_t  input_percent)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ read_encoder()

int16_t read_encoder ( )
Here is the caller graph for this function:

◆ read_position()

int16_t read_position ( uint16_t  encoder_max_val)
Here is the call graph for this function:

◆ read_position_rel()

int8_t read_position_rel ( struct pi_t motor_param_p)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ reset_encoder()

void reset_encoder ( )
Here is the caller graph for this function: