|
|
|
@ -76,10 +76,11 @@ impl Tec<pwm::T4CCP0, pwm::T4CCP1, pwm::T5CCP0, pwm::T5CCP1, GpioOutput<PP5>> { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
impl<MaxIPos: PwmChannel, MaxINeg: PwmChannel, ISet: PwmChannel, MaxV: PwmChannel, SHDN: OutputPin> Tec<MaxIPos, MaxINeg, ISet, MaxV, SHDN> { |
|
|
|
|
pub fn setup(mut self, max: u16) -> Self { |
|
|
|
|
pub fn setup(mut self, iset_width: u16, max: u16) -> Self { |
|
|
|
|
self.max_i_pos.set(max, max); |
|
|
|
|
self.max_i_neg.set(max, max); |
|
|
|
|
self.max_v.set(max, max); |
|
|
|
|
self.i_set.set(iset_width, max); |
|
|
|
|
self |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|