FRDM-IMX93 for NXP CUP
FRDM-IMX93 support for NXP CUP
 
Loading...
Searching...
No Matches
nxp_hbridge Struct Reference

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
 

Detailed Description

Represents the L298N H-BRIDGE module.

Member Data Documentation

◆ gpio_dev

const struct device* nxp_hbridge::gpio_dev

pointer to GPIO device

◆ lchan

int nxp_hbridge::lchan

left PWM channel index (ENA)

◆ lflags

uint32_t nxp_hbridge::lflags

left motor flags - one of MotorFlags

◆ lgpios

int nxp_hbridge::lgpios[2]

left GPIO pins

◆ period

uint32_t nxp_hbridge::period

left/right PWM channel period (in nanoseconds)

◆ pwm_dev

const struct device* nxp_hbridge::pwm_dev

pointer to PWM device

◆ rchan

int nxp_hbridge::rchan

right PWM channel index (ENB)

◆ rflags

uint32_t nxp_hbridge::rflags

right motor flags - one of MotorFlags

◆ rgpios

int nxp_hbridge::rgpios[2]

right GPIO pins


The documentation for this struct was generated from the following file: