dcmotor6 2.0.0.0

Functions

void dcmotor6_cfg_setup (dcmotor6_cfg_t *cfg)
 Config Object Initialization function.
 
DCMOTOR6_RETVAL dcmotor6_init (dcmotor6_t *ctx, dcmotor6_cfg_t *cfg)
 Initialization function.
 
void dcmotor6_set_in1_pin (dcmotor6_t *ctx, uint8_t state)
 Set IN1 pin.
 
void dcmotor6_set_in2_pin (dcmotor6_t *ctx, uint8_t state)
 Set IN1 pin.
 
void dcmotor6_set_direction (dcmotor6_t *ctx, uint8_t dir)
 Set motor Direction.
 

Detailed Description

Function Documentation

◆ dcmotor6_cfg_setup()

void dcmotor6_cfg_setup ( dcmotor6_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.

◆ dcmotor6_init()

DCMOTOR6_RETVAL dcmotor6_init ( dcmotor6_t * ctx,
dcmotor6_cfg_t * cfg )

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

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

◆ dcmotor6_set_direction()

void dcmotor6_set_direction ( dcmotor6_t * ctx,
uint8_t dir )

Set motor Direction.

Parameters
ctxClick object.
dirMotor direction (Forward, Reverse, Brake or Stop)

◆ dcmotor6_set_in1_pin()

void dcmotor6_set_in1_pin ( dcmotor6_t * ctx,
uint8_t state )

Set IN1 pin.

Parameters
ctxClick object.
statePin state

◆ dcmotor6_set_in2_pin()

void dcmotor6_set_in2_pin ( dcmotor6_t * ctx,
uint8_t state )

Set IN1 pin.

Parameters
ctxClick object.
statePin state