Struct l298n::L298N [−][src]
pub struct L298N<INA, INB, INC, IND, PWMA, PWMB> where
INA: OutputPin,
INB: OutputPin,
INC: OutputPin,
IND: OutputPin,
PWMA: PwmPin,
PWMB: PwmPin, { pub a: Motor<INA, INB, PWMA>, pub b: Motor<INC, IND, PWMB>, }
Expand description
Struct for L298N. Two enable inputs are provided to enable or disable the device independently of the input signals. The emitters of the lower transistors of each bridge are connected together and the corresponding external terminal can be used for the connection of an external sensing resistor. An additional supply input is provided so that the logic works at a lower voltage.
Fields
a: Motor<INA, INB, PWMA>
motor A
b: Motor<INC, IND, PWMB>
motor B
Implementations
impl<INA, INB, INC, IND, PWMA, PWMB> L298N<INA, INB, INC, IND, PWMA, PWMB> where
INA: OutputPin,
INB: OutputPin,
INC: OutputPin,
IND: OutputPin,
PWMA: PwmPin,
PWMB: PwmPin,
[src]
impl<INA, INB, INC, IND, PWMA, PWMB> L298N<INA, INB, INC, IND, PWMA, PWMB> where
INA: OutputPin,
INB: OutputPin,
INC: OutputPin,
IND: OutputPin,
PWMA: PwmPin,
PWMB: PwmPin,
[src]Trait Implementations
Auto Trait Implementations
impl<INA, INB, INC, IND, PWMA, PWMB> Send for L298N<INA, INB, INC, IND, PWMA, PWMB> where
INA: Send,
INB: Send,
INC: Send,
IND: Send,
PWMA: Send,
PWMB: Send,
INA: Send,
INB: Send,
INC: Send,
IND: Send,
PWMA: Send,
PWMB: Send,
impl<INA, INB, INC, IND, PWMA, PWMB> Sync for L298N<INA, INB, INC, IND, PWMA, PWMB> where
INA: Sync,
INB: Sync,
INC: Sync,
IND: Sync,
PWMA: Sync,
PWMB: Sync,
INA: Sync,
INB: Sync,
INC: Sync,
IND: Sync,
PWMA: Sync,
PWMB: Sync,
impl<INA, INB, INC, IND, PWMA, PWMB> Unpin for L298N<INA, INB, INC, IND, PWMA, PWMB> where
INA: Unpin,
INB: Unpin,
INC: Unpin,
IND: Unpin,
PWMA: Unpin,
PWMB: Unpin,
INA: Unpin,
INB: Unpin,
INC: Unpin,
IND: Unpin,
PWMA: Unpin,
PWMB: Unpin,