hbridge7 2.0.0.0

Functions

void hbridge7_cfg_setup (hbridge7_cfg_t *cfg)
 Config Object Initialization function.
 
HBRIDGE7_RETVAL hbridge7_init (hbridge7_t *ctx, hbridge7_cfg_t *cfg)
 Initialization function.
 
void hbridge7_motor_control (hbridge7_t *ctx, uint8_t ctrl)
 Set motor control.
 
uint8_t hbridge7_get_fault_state (hbridge7_t *ctx)
 Get Fault pin state.
 

Detailed Description

Function Documentation

◆ hbridge7_cfg_setup()

void hbridge7_cfg_setup ( hbridge7_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.

◆ hbridge7_get_fault_state()

uint8_t hbridge7_get_fault_state ( hbridge7_t * ctx)

Get Fault pin state.

Parameters
ctxClick object.
Returns
fault pin state ( 0 or 1 )

@description This function gets fault pin state.

◆ hbridge7_init()

HBRIDGE7_RETVAL hbridge7_init ( hbridge7_t * ctx,
hbridge7_cfg_t * cfg )

Initialization function.

Parameters
ctxClick object.
cfgClick configuration structure.

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

◆ hbridge7_motor_control()

void hbridge7_motor_control ( hbridge7_t * ctx,
uint8_t ctrl )

Set motor control.

Parameters
ctxClick object.
ctrl( Sleep, Brake, Reverse or Forward )

@description This function sets motor control.