Represents the L298N H-BRIDGE module. More...
#include <hbridge.h>
Public Attributes | |
const struct device * | gpio_dev |
const struct device * | pwm_dev |
uint32_t | period |
int | lgpios [2] |
int | rgpios [2] |
int | lchan |
int | rchan |
uint32_t | lflags |
uint32_t | rflags |
Represents the L298N H-BRIDGE module.
const struct device* nxp_hbridge::gpio_dev |
pointer to GPIO device
int nxp_hbridge::lchan |
left PWM channel index (ENA)
uint32_t nxp_hbridge::lflags |
left motor flags - one of MotorFlags
int nxp_hbridge::lgpios[2] |
left GPIO pins
uint32_t nxp_hbridge::period |
left/right PWM channel period (in nanoseconds)
const struct device* nxp_hbridge::pwm_dev |
pointer to PWM device
int nxp_hbridge::rchan |
right PWM channel index (ENB)
uint32_t nxp_hbridge::rflags |
right motor flags - one of MotorFlags
int nxp_hbridge::rgpios[2] |
right GPIO pins