#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include "encoder.h"
#include "stepper.h"
#include "utils.h"
#include "usart.h"
Go to the source code of this file.
Functions | |
ISR (PCINT0_vect) | |
void | stepper_advance () |
void | stepper_cal () |
int8_t | stepper_get_direction () |
uint8_t | stepper_get_latency () |
int16_t | stepper_get_rem_steps () |
void | stepper_init () |
int16_t | stepper_read () |
void | stepper_set (const int16_t target_pos) |
void | stepper_set_direction (int8_t dir) |
void | stepper_set_latency (const uint8_t lat) |
void | stepper_set_rem_steps (const int16_t steps) |
Variables | |
static int16_t | curr_step_num = 0 |
AVR includes. | |
volatile char | indexSet = 0 |
contains current counter step number in the encoder | |
static uint8_t | latency |
static int16_t | rem_steps |
flag for detecting index overpassed |
ISR | ( | PCINT0_vect | ) |
void stepper_advance | ( | void | ) |
void stepper_cal | ( | void | ) |
int8_t stepper_get_direction | ( | void | ) |
uint8_t stepper_get_latency | ( | ) |
int16_t stepper_get_rem_steps | ( | ) |
void stepper_init | ( | void | ) |
int16_t stepper_read | ( | void | ) |
void stepper_set | ( | const int16_t | target_pos | ) |
void stepper_set_direction | ( | int8_t | dir | ) |
void stepper_set_latency | ( | const uint8_t | lat | ) |
void stepper_set_rem_steps | ( | const int16_t | steps | ) |
int16_t curr_step_num = 0 [static] |
volatile char indexSet = 0 |