hbridge12 2.1.0.0
H-Bridge 12 Registers Settings

Settings for registers of H-Bridge 12 Click driver. More...

Macros

#define HBRIDGE12_CURRENT_SCALE_20_PER   0x00
 H-Bridge 12 description setting.
 
#define HBRIDGE12_CURRENT_SCALE_38_PER   0x04
 
#define HBRIDGE12_CURRENT_SCALE_56_PER   0x02
 
#define HBRIDGE12_CURRENT_SCALE_71_PER   0x06
 
#define HBRIDGE12_CURRENT_SCALE_83_PER   0x01
 
#define HBRIDGE12_CURRENT_SCALE_92_PER   0x05
 
#define HBRIDGE12_CURRENT_SCALE_98_PER   0x03
 
#define HBRIDGE12_CURRENT_SCALE_100_PER   0x07
 
#define HBRIDGE12_PHASE_OUT1_H_OUT2_L   0x01
 H-Bridge 12 phase setting.
 
#define HBRIDGE12_PHASE_OUT1_L_OUT2_H   0x00
 
#define HBRIDGE12_ENABLE_BRIDGE_OUTPUT   0x01
 H-Bridge 12 bridge enable setting.
 
#define HBRIDGE12_DISABLE_BRIDGE_OUTPUT   0x00
 
#define HBRIDGE12_AB_BRIDGE_SEL   0x00
 H-Bridge 12 bridge selection setting.
 
#define HBRIDGE12_CD_BRIDGE_SEL   0x01
 
#define HBRIDGE12_PIN_STATE_LOW   0x00
 H-Bridge 12 pin setting.
 
#define HBRIDGE12_PIN_STATE_HIGH   0x01
 
#define HBRIDGE12_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define HBRIDGE12_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of H-Bridge 12 Click driver.

Macro Definition Documentation

◆ HBRIDGE12_AB_BRIDGE_SEL

#define HBRIDGE12_AB_BRIDGE_SEL   0x00

H-Bridge 12 bridge selection setting.

Specified setting for selection of bridge of H-Bridge 12 Click driver.

◆ HBRIDGE12_CD_BRIDGE_SEL

#define HBRIDGE12_CD_BRIDGE_SEL   0x01

◆ HBRIDGE12_CURRENT_SCALE_100_PER

#define HBRIDGE12_CURRENT_SCALE_100_PER   0x07

◆ HBRIDGE12_CURRENT_SCALE_20_PER

#define HBRIDGE12_CURRENT_SCALE_20_PER   0x00

H-Bridge 12 description setting.

Specified setting for description of H-Bridge 12 Click driver.

◆ HBRIDGE12_CURRENT_SCALE_38_PER

#define HBRIDGE12_CURRENT_SCALE_38_PER   0x04

◆ HBRIDGE12_CURRENT_SCALE_56_PER

#define HBRIDGE12_CURRENT_SCALE_56_PER   0x02

◆ HBRIDGE12_CURRENT_SCALE_71_PER

#define HBRIDGE12_CURRENT_SCALE_71_PER   0x06

◆ HBRIDGE12_CURRENT_SCALE_83_PER

#define HBRIDGE12_CURRENT_SCALE_83_PER   0x01

◆ HBRIDGE12_CURRENT_SCALE_92_PER

#define HBRIDGE12_CURRENT_SCALE_92_PER   0x05

◆ HBRIDGE12_CURRENT_SCALE_98_PER

#define HBRIDGE12_CURRENT_SCALE_98_PER   0x03

◆ HBRIDGE12_DISABLE_BRIDGE_OUTPUT

#define HBRIDGE12_DISABLE_BRIDGE_OUTPUT   0x00

◆ HBRIDGE12_ENABLE_BRIDGE_OUTPUT

#define HBRIDGE12_ENABLE_BRIDGE_OUTPUT   0x01

H-Bridge 12 bridge enable setting.

Specified setting for enabling bridge of H-Bridge 12 Click driver.

◆ HBRIDGE12_PHASE_OUT1_H_OUT2_L

#define HBRIDGE12_PHASE_OUT1_H_OUT2_L   0x01

H-Bridge 12 phase setting.

Specified setting for output phase of H-Bridge 12 Click driver.

◆ HBRIDGE12_PHASE_OUT1_L_OUT2_H

#define HBRIDGE12_PHASE_OUT1_L_OUT2_H   0x00

◆ HBRIDGE12_PIN_STATE_HIGH

#define HBRIDGE12_PIN_STATE_HIGH   0x01

◆ HBRIDGE12_PIN_STATE_LOW

#define HBRIDGE12_PIN_STATE_LOW   0x00

H-Bridge 12 pin setting.

Specified setting for pin state of H-Bridge 12 Click driver.

◆ HBRIDGE12_SET_DATA_SAMPLE_EDGE

#define HBRIDGE12_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE

Data sample selection.

This macro sets data samples for SPI modules.

Note
Available only on Microchip PIC family devices. This macro will set data sampling for all SPI modules on MCU. Can be overwritten with hbridge12_init which will set SET_SPI_DATA_SAMPLE_MIDDLE by default on the mapped mikrobus.

◆ HBRIDGE12_SET_DATA_SAMPLE_MIDDLE

#define HBRIDGE12_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE