pub struct Control2Reg(pub u8);
The BIDIR_INPUT bit selects how the engine interprets data.
0: Unidirectional input mode
Braking is automatically determined by the feedback conditions and is
applied when needed. Use of this mode also recovers an additional bit
of vertical resolution. This mode should only be used for closed-loop
operation.
Examples::
0% Input -> No output signal
50% Input -> Half-scale output signal
100% Input -> Full-scale output signal
1: Bidirectional input mode (default)
This mode is compatible with traditional open-loop signaling and also
works well with closed-loop mode. When operating closed-loop, braking
is automatically determined by the feedback conditions and applied
when needed. When operating open-loop modes, braking is only
applied when the input signal is less than 50%.
Open-loop mode (ERM and LRA) examples:
0% Input -> Negative full-scale output signal (braking)
25% Input -> Negative half-scale output signal (braking)
50% Input -> No output signal
75% Input -> Positive half-scale output signal
100% Input -> Positive full-scale output signal
Closed-loop mode (ERM and LRA) examples:
0% to 50% Input -> No output signal
50% Input -> No output signal
75% Input -> Half-scale output signal
100% Input -> Full-scale output signal
The BIDIR_INPUT bit selects how the engine interprets data.
0: Unidirectional input mode
Braking is automatically determined by the feedback conditions and is
applied when needed. Use of this mode also recovers an additional bit
of vertical resolution. This mode should only be used for closed-loop
operation.
Examples::
0% Input -> No output signal
50% Input -> Half-scale output signal
100% Input -> Full-scale output signal
1: Bidirectional input mode (default)
This mode is compatible with traditional open-loop signaling and also
works well with closed-loop mode. When operating closed-loop, braking
is automatically determined by the feedback conditions and applied
when needed. When operating open-loop modes, braking is only
applied when the input signal is less than 50%.
Open-loop mode (ERM and LRA) examples:
0% Input -> Negative full-scale output signal (braking)
25% Input -> Negative half-scale output signal (braking)
50% Input -> No output signal
75% Input -> Positive half-scale output signal
100% Input -> Positive full-scale output signal
Closed-loop mode (ERM and LRA) examples:
0% to 50% Input -> No output signal
50% Input -> No output signal
75% Input -> Half-scale output signal
100% Input -> Full-scale output signal
When this bit is set, loop gain is reduced when braking is almost complete to
improve loop stability
When this bit is set, loop gain is reduced when braking is almost complete to
improve loop stability
LRA auto-resonance sampling time (Advanced use only)
0: 150 us
1: 200 us
2: 250 us
3: 300 us
LRA auto-resonance sampling time (Advanced use only)
0: 150 us
1: 200 us
2: 250 us
3: 300 us
Blanking time before the back-EMF AD makes a conversion. (Advanced use only)
Blanking time before the back-EMF AD makes a conversion. (Advanced use only)
Current dissipation time. This bit is the time allowed for the current to dissipate
from the actuator between PWM cycles for flyback mitigation. (Advanced use
only)
Current dissipation time. This bit is the time allowed for the current to dissipate
from the actuator between PWM cycles for flyback mitigation. (Advanced use
only)
fn bit_range(&self, msb: usize, lsb: usize) -> T | |
Formats the value using the given formatter. Read more