TwiceAsNice
2019-02-18
|
#include <sys/time.h>
Classes | |
class | SkywatcherSimulator |
Macros | |
#define | MICROSTEP_MASK 0x07 |
#define | PWM_MASK 0x08 |
#define | WINDINGB_MASK 0x10 |
#define | WINDINGA_MASK 0x18 |
#define | SETRAPHIA(microstep) RAPHIA = ((((microstep & WINDINGA_MASK) == 0) || ((microstep & WINDINGA_MASK) == WINDINGA_MASK)) ? 1 : 0) |
#define | SETRAPHIB(microstep) RAPHIB = ((microstep & WINDINGB_MASK) ? 1 : 0) |
#define | SETDEPHIA(microstep) DEPHIA = (((microstep & WINDINGA_MASK) == 0) || ((microstep & WINDINGA_MASK) == WINDINGA_MASK)) ? 1 : 0 |
#define | SETDEPHIB(microstep) DEPHIB = (microstep & WINDINGB_MASK) ? 1 : 0 |
#define | MICROSECONDS 1000000 |
#define | MUL_RA (MICROSECONDS / ra_steps_worm) |
#define | REM_RA (MICROSECONDS % ra_steps_worm) |
#define | MUL_DE (MICROSECONDS / de_steps_worm) |
#define | REM_DE (MICROSECONDS % de_steps_worm) |
#define | SETMOTORPROPERTY(motorstatus, property) motorstatus |= property |
#define | UNSETMOTORPROPERTY(motorstatus, property) motorstatus &= ~property |
#define | GETMOTORPROPERTY(motorstatus, property) (motorstatus & property) |
#define | HEX(c) (((c) < 'A') ? ((c) - '0') : ((c) - 'A') + 10) |
#define GETMOTORPROPERTY | ( | motorstatus, | |
property | |||
) | (motorstatus & property) |
#define MICROSECONDS 1000000 |
#define MICROSTEP_MASK 0x07 |
#define MUL_DE (MICROSECONDS / de_steps_worm) |
#define MUL_RA (MICROSECONDS / ra_steps_worm) |
#define PWM_MASK 0x08 |
#define REM_DE (MICROSECONDS % de_steps_worm) |
#define REM_RA (MICROSECONDS % ra_steps_worm) |
#define SETDEPHIA | ( | microstep | ) | DEPHIA = (((microstep & WINDINGA_MASK) == 0) || ((microstep & WINDINGA_MASK) == WINDINGA_MASK)) ? 1 : 0 |
#define SETDEPHIB | ( | microstep | ) | DEPHIB = (microstep & WINDINGB_MASK) ? 1 : 0 |
#define SETMOTORPROPERTY | ( | motorstatus, | |
property | |||
) | motorstatus |= property |
#define SETRAPHIA | ( | microstep | ) | RAPHIA = ((((microstep & WINDINGA_MASK) == 0) || ((microstep & WINDINGA_MASK) == WINDINGA_MASK)) ? 1 : 0) |
#define SETRAPHIB | ( | microstep | ) | RAPHIB = ((microstep & WINDINGB_MASK) ? 1 : 0) |
#define UNSETMOTORPROPERTY | ( | motorstatus, | |
property | |||
) | motorstatus &= ~property |
#define WINDINGA_MASK 0x18 |
#define WINDINGB_MASK 0x10 |