hbridge7 2.0.0.0
hbridge7.h File Reference

This file contains API for H-BRIDGE 7 Click driver. More...

#include "drv_digital_out.h"
#include "drv_digital_in.h"

Go to the source code of this file.

Data Structures

struct  hbridge7_t
 Click ctx object definition. More...
 
struct  hbridge7_cfg_t
 Click configuration structure definition. More...
 

Macros

#define HBRIDGE7_MAP_MIKROBUS(cfg, mikrobus)
 
#define HBRIDGE7_RETVAL   uint8_t
 
#define HBRIDGE7_OK   0x00
 
#define HBRIDGE7_INIT_ERROR   0xFF
 
#define HBRIDGE7_MOTOR_SLEEP   0
 
#define HBRIDGE7_MOTOR_BRAKE   1
 
#define HBRIDGE7_MOTOR_REVERSE   2
 
#define HBRIDGE7_MOTOR_FORWARD   3
 

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

This file contains API for H-BRIDGE 7 Click driver.