dcmotor8 2.0.0.0

Functions

void dcmotor8_cfg_setup (dcmotor8_cfg_t *cfg)
 Config Object Initialization function.
 
DCMOTOR8_RETVAL dcmotor8_init (dcmotor8_t *ctx, dcmotor8_cfg_t *cfg)
 Initialization function.
 
void dcmotor8_set_duty_cycle (dcmotor8_t *ctx, float duty_cycle)
 Generic sets PWM duty cycle.
 
void dcmotor8_pwm_stop (dcmotor8_t *ctx)
 Stop PWM module.
 
void dcmotor8_pwm_start (dcmotor8_t *ctx)
 Start PWM module.
 
void dcmotor8_enable (dcmotor8_t *ctx, uint8_t state)
 Enable function.
 

Detailed Description

Function Documentation

◆ dcmotor8_cfg_setup()

void dcmotor8_cfg_setup ( dcmotor8_cfg_t * cfg)

Config Object Initialization function.

Parameters
cfgClick configuration structure.

@description This function initializes click configuration structure to init state.

Note
All used pins will be set to unconnected state.

◆ dcmotor8_enable()

void dcmotor8_enable ( dcmotor8_t * ctx,
uint8_t state )

Enable function.

Parameters
ctxClick object.
state0 or 1 : Desired state to be set to EN pin

@description This function sets EN pin state.

◆ dcmotor8_init()

DCMOTOR8_RETVAL dcmotor8_init ( dcmotor8_t * ctx,
dcmotor8_cfg_t * cfg )

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

@description This function initializes all necessary pins and peripherals used for this click.

◆ dcmotor8_pwm_start()

void dcmotor8_pwm_start ( dcmotor8_t * ctx)

Start PWM module.

Parameters
ctxClick object.

@description This function starts PWM module.

◆ dcmotor8_pwm_stop()

void dcmotor8_pwm_stop ( dcmotor8_t * ctx)

Stop PWM module.

Parameters
ctxClick object.

@description This function stops PWM module.

◆ dcmotor8_set_duty_cycle()

void dcmotor8_set_duty_cycle ( dcmotor8_t * ctx,
float duty_cycle )

Generic sets PWM duty cycle.

Parameters
ctxClick object.
duty_cycleDuty cycle.

@description This function sets the PWM duty cycle.