dcmotor8  2.0.0.0
Functions

Functions

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

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.