Home
last modified time | relevance | path

Searched refs:phase_ix (Results 1 – 4 of 4) sorted by relevance

/third_party/boost/libs/safe_numerics/example/
Dmotor3.c40 phase_ix_t phase_ix; // motor phase index variable
66 void update(ccpr_t ccpr, phase_ix_t phase_ix){ in update() argument
68 const phase_t phase = ccpPhase[phase_ix]; in update()
143 phase_ix = (phase_ix + d) & literal(3); in isr_motor_step()
144 update(ccpr, phase_ix); in isr_motor_step()
178 phase_ix = d & literal(3); in motor_run()
179 update(ccpr, phase_ix); in motor_run()
Dmotor1.c29 uint8 phase_ix=0; // index to ccpPhase[] variable
102 phase_ix = (phase_ix + phase_inc) & 3; in isr_motor_step()
103 phase = ccpPhase[phase_ix]; in isr_motor_step()
132 phase_ix = (phase_ix + phase_inc) & 3; in motor_run()
133 phase = ccpPhase[phase_ix]; in motor_run()
Dmotor2.c29 uint8 phase_ix=0; // index to ccpPhase[] variable
120 phase_ix = (phase_ix + phase_inc) & 3; in isr_motor_step()
121 phase = ccpPhase[phase_ix]; in isr_motor_step()
149 phase_ix = (phase_ix + phase_inc) & 3; in motor_run()
150 phase = ccpPhase[phase_ix]; in motor_run()
DMotor.c35 int8 phase_ix=0; // index to ccpPhase[] variable
112 phase_ix = (phase_ix + phase_inc) & 3; in isr_motor_step()
113 phase = ccpPhase[phase_ix]; in isr_motor_step()
146 phase_ix = (phase_ix + phase_inc) & 3; in motor_run()
147 phase = ccpPhase[phase_ix]; in motor_run()