dcmotor24 2.1.0.0
dcmotor24_cfg_t Struct Reference

DC Motor 24 Click configuration object. More...

#include <dcmotor24.h>

Data Fields

pin_name_t miso
 
pin_name_t mosi
 
pin_name_t sck
 
pin_name_t cs
 
pin_name_t pwm
 
pin_name_t dir
 
pin_name_t en
 
uint32_t spi_speed
 
spi_master_mode_t spi_mode
 
spi_master_chip_select_polarity_t cs_polarity
 
uint32_t dev_pwm_freq
 

Detailed Description

DC Motor 24 Click configuration object.

Configuration object definition of DC Motor 24 Click driver.

Field Documentation

◆ cs

pin_name_t cs

Chip select pin descriptor for SPI driver.

◆ cs_polarity

spi_master_chip_select_polarity_t cs_polarity

Chip select pin polarity.

◆ dev_pwm_freq

uint32_t dev_pwm_freq

PWM frequency value.

◆ dir

pin_name_t dir

Direction select pin (High-Forward, Low-Reverse).

◆ en

pin_name_t en

Enable pin (Active high).

◆ miso

pin_name_t miso

Master input - slave output pin descriptor for SPI driver.

◆ mosi

pin_name_t mosi

Master output - slave input pin descriptor for SPI driver.

◆ pwm

pin_name_t pwm

PWM pin.

◆ sck

pin_name_t sck

Clock pin descriptor for SPI driver.

◆ spi_mode

spi_master_mode_t spi_mode

SPI master mode.

◆ spi_speed

uint32_t spi_speed

SPI serial speed.


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