hbridge14 2.1.0.0
H-Bridge 14 Registers Settings

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

Macros

#define HBRIDGE14_DIS_ON   0x01
 H-Bridge 14 DRVOFF pin setting.
 
#define HBRIDGE14_DIS_OFF   0x00
 
#define HBRIDGE14_SLEEP_ON   0x01
 H-Bridge 14 SLEEP pin setting.
 
#define HBRIDGE14_SLEEP_OFF   0x00
 
#define HBRIDGE14_PIN_STATE_HIGH   0x01
 H-Bridge 14 pin setting.
 
#define HBRIDGE14_PIN_STATE_LOW   0x00
 
#define HBRIDGE14_DRIVE_MOTOR_CW   0x00
 H-Bridge 14 motor states setting.
 
#define HBRIDGE14_DRIVE_MOTOR_CCW   0x01
 
#define HBRIDGE14_DRIVE_MOTOR_BRAKE   0x02
 
#define HBRIDGE14_DRIVE_MOTOR_COASTING   0x03
 
#define HBRIDGE14_NONE_PIN   0x00
 H-Bridge 14 pin mask setting.
 
#define HBRIDGE14_SLP_PIN   0x01
 
#define HBRIDGE14_FLT_PIN   0x02
 
#define HBRIDGE14_DIS_PIN   0x04
 
#define HBRIDGE14_ALL_PIN   0x07
 
#define HBRIDGE14_TOF_80_US   0xC0
 H-Bridge 14 IC1 Control Register setting.
 
#define HBRIDGE14_TOF_60_US   0x80
 
#define HBRIDGE14_TOF_40_US   0x40
 
#define HBRIDGE14_TOF_20_US   0x00
 
#define HBRIDGE14_SPI_IN_EN   0x20
 
#define HBRIDGE14_SPI_IN_DIS   0x00
 
#define HBRIDGE14_S_SR_2_6V_US   0x1C
 
#define HBRIDGE14_S_SR_5_3V_US   0x18
 
#define HBRIDGE14_S_SR_7_9V_US   0x14
 
#define HBRIDGE14_S_SR_10_8V_US   0x10
 
#define HBRIDGE14_S_SR_13_V_US   0x0C
 
#define HBRIDGE14_S_SR_18_3V_US   0x08
 
#define HBRIDGE14_S_SR_34_V_US   0x04
 
#define HBRIDGE14_S_SR_53_2V_US   0x00
 
#define HBRIDGE14_MODE_DISABLED   0x03
 
#define HBRIDGE14_MODE_INDEPENDENT   0x02
 
#define HBRIDGE14_MODE_PWM   0x01
 
#define HBRIDGE14_MODE_PH_EN   0x00
 
#define HBRIDGE14_ITRIP_REP   0x80
 H-Bridge 14 IC2 Control Register setting.
 
#define HBRIDGE14_TSD_MODE_AUTO   0x40
 
#define HBRIDGE14_OTW_REP   0x20
 
#define HBRIDGE14_DIS_CPUV   0x10
 
#define HBRIDGE14_OCP_TRETRY_4_MS   0x0C
 
#define HBRIDGE14_OCP_TRETRY_2_MS   0x08
 
#define HBRIDGE14_OCP_TRETRY_1_MS   0x04
 
#define HBRIDGE14_OCP_TRETRY_500_NS   0x00
 
#define HBRIDGE14_OCP_MODE_NOT_REPORT   0x03
 
#define HBRIDGE14_OCP_MODE_REPORT   0x02
 
#define HBRIDGE14_OCP_MODE_RETRING   0x01
 
#define HBRIDGE14_OCP_MODE_LATCHED   0x00
 
#define HBRIDGE14_CLR_FLT   0x80
 H-Bridge 14 IC3 Control Register setting.
 
#define HBRIDGE14_LOCK_REG   0x30
 
#define HBRIDGE14_UNLOCK_REG   0x40
 
#define HBRIDGE14_OUT1_DIS   0x08
 
#define HBRIDGE14_OUT2_DIS   0x04
 
#define HBRIDGE14_EN_IN1   0x02
 
#define HBRIDGE14_PH_IN2   0x01
 
#define HBRIDGE14_EN_OLP   0x40
 H-Bridge 14 IC4 Control Register setting.
 
#define HBRIDGE14_OLP_DLY_300_US   0x00
 
#define HBRIDGE14_OLP_DLY_1_2_MS   0x20
 
#define HBRIDGE14_EN_OLA   0x10
 
#define HBRIDGE14_ITRIP_LVL_7_A   0x0C
 
#define HBRIDGE14_ITRIP_LVL_6_5_A   0x08
 
#define HBRIDGE14_ITRIP_LVL_5_4_A   0x04
 
#define HBRIDGE14_ITRIP_LVL_4_A   0x00
 
#define HBRIDGE14_DIS_ITRIP_OUT1_OUT2   0x03
 
#define HBRIDGE14_DIS_ITRIP_OUT2   0x02
 
#define HBRIDGE14_DIS_ITRIP_OUT1   0x01
 
#define HBRIDGE14_DIS_ITRIP   0x00
 
#define HBRIDGE14_DEVICE_ADDRESS_A1A0_00   0x70
 H-Bridge 14 device address setting.
 
#define HBRIDGE14_DEVICE_ADDRESS_A1A0_01   0x71
 
#define HBRIDGE14_DEVICE_ADDRESS_A1A0_10   0x72
 
#define HBRIDGE14_DEVICE_ADDRESS_A1A0_11   0x73
 
#define HBRIDGE14_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define HBRIDGE14_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of H-Bridge 14 Click driver.

Macro Definition Documentation

◆ HBRIDGE14_ALL_PIN

#define HBRIDGE14_ALL_PIN   0x07

◆ HBRIDGE14_CLR_FLT

#define HBRIDGE14_CLR_FLT   0x80

H-Bridge 14 IC3 Control Register setting.

Specified setting for IC3 Control Register selection of H-Bridge 14 Click driver.

◆ HBRIDGE14_DEVICE_ADDRESS_A1A0_00

#define HBRIDGE14_DEVICE_ADDRESS_A1A0_00   0x70

H-Bridge 14 device address setting.

Specified setting for device slave address selection of H-Bridge 14 Click driver.

◆ HBRIDGE14_DEVICE_ADDRESS_A1A0_01

#define HBRIDGE14_DEVICE_ADDRESS_A1A0_01   0x71

◆ HBRIDGE14_DEVICE_ADDRESS_A1A0_10

#define HBRIDGE14_DEVICE_ADDRESS_A1A0_10   0x72

◆ HBRIDGE14_DEVICE_ADDRESS_A1A0_11

#define HBRIDGE14_DEVICE_ADDRESS_A1A0_11   0x73

◆ HBRIDGE14_DIS_CPUV

#define HBRIDGE14_DIS_CPUV   0x10

◆ HBRIDGE14_DIS_ITRIP

#define HBRIDGE14_DIS_ITRIP   0x00

◆ HBRIDGE14_DIS_ITRIP_OUT1

#define HBRIDGE14_DIS_ITRIP_OUT1   0x01

◆ HBRIDGE14_DIS_ITRIP_OUT1_OUT2

#define HBRIDGE14_DIS_ITRIP_OUT1_OUT2   0x03

◆ HBRIDGE14_DIS_ITRIP_OUT2

#define HBRIDGE14_DIS_ITRIP_OUT2   0x02

◆ HBRIDGE14_DIS_OFF

#define HBRIDGE14_DIS_OFF   0x00

◆ HBRIDGE14_DIS_ON

#define HBRIDGE14_DIS_ON   0x01

H-Bridge 14 DRVOFF pin setting.

Specified setting for DRVOFF pin selection of H-Bridge 14 Click driver.

◆ HBRIDGE14_DIS_PIN

#define HBRIDGE14_DIS_PIN   0x04

◆ HBRIDGE14_DRIVE_MOTOR_BRAKE

#define HBRIDGE14_DRIVE_MOTOR_BRAKE   0x02

◆ HBRIDGE14_DRIVE_MOTOR_CCW

#define HBRIDGE14_DRIVE_MOTOR_CCW   0x01

◆ HBRIDGE14_DRIVE_MOTOR_COASTING

#define HBRIDGE14_DRIVE_MOTOR_COASTING   0x03

◆ HBRIDGE14_DRIVE_MOTOR_CW

#define HBRIDGE14_DRIVE_MOTOR_CW   0x00

H-Bridge 14 motor states setting.

Specified setting for motor state selection of H-Bridge 14 Click driver.

◆ HBRIDGE14_EN_IN1

#define HBRIDGE14_EN_IN1   0x02

◆ HBRIDGE14_EN_OLA

#define HBRIDGE14_EN_OLA   0x10

◆ HBRIDGE14_EN_OLP

#define HBRIDGE14_EN_OLP   0x40

H-Bridge 14 IC4 Control Register setting.

Specified setting for IC4 Control Register selection of H-Bridge 14 Click driver.

◆ HBRIDGE14_FLT_PIN

#define HBRIDGE14_FLT_PIN   0x02

◆ HBRIDGE14_ITRIP_LVL_4_A

#define HBRIDGE14_ITRIP_LVL_4_A   0x00

◆ HBRIDGE14_ITRIP_LVL_5_4_A

#define HBRIDGE14_ITRIP_LVL_5_4_A   0x04

◆ HBRIDGE14_ITRIP_LVL_6_5_A

#define HBRIDGE14_ITRIP_LVL_6_5_A   0x08

◆ HBRIDGE14_ITRIP_LVL_7_A

#define HBRIDGE14_ITRIP_LVL_7_A   0x0C

◆ HBRIDGE14_ITRIP_REP

#define HBRIDGE14_ITRIP_REP   0x80

H-Bridge 14 IC2 Control Register setting.

Specified setting for IC2 Control Register selection of H-Bridge 14 Click driver.

◆ HBRIDGE14_LOCK_REG

#define HBRIDGE14_LOCK_REG   0x30

◆ HBRIDGE14_MODE_DISABLED

#define HBRIDGE14_MODE_DISABLED   0x03

◆ HBRIDGE14_MODE_INDEPENDENT

#define HBRIDGE14_MODE_INDEPENDENT   0x02

◆ HBRIDGE14_MODE_PH_EN

#define HBRIDGE14_MODE_PH_EN   0x00

◆ HBRIDGE14_MODE_PWM

#define HBRIDGE14_MODE_PWM   0x01

◆ HBRIDGE14_NONE_PIN

#define HBRIDGE14_NONE_PIN   0x00

H-Bridge 14 pin mask setting.

Specified setting for pin mask selection of H-Bridge 14 Click driver.

◆ HBRIDGE14_OCP_MODE_LATCHED

#define HBRIDGE14_OCP_MODE_LATCHED   0x00

◆ HBRIDGE14_OCP_MODE_NOT_REPORT

#define HBRIDGE14_OCP_MODE_NOT_REPORT   0x03

◆ HBRIDGE14_OCP_MODE_REPORT

#define HBRIDGE14_OCP_MODE_REPORT   0x02

◆ HBRIDGE14_OCP_MODE_RETRING

#define HBRIDGE14_OCP_MODE_RETRING   0x01

◆ HBRIDGE14_OCP_TRETRY_1_MS

#define HBRIDGE14_OCP_TRETRY_1_MS   0x04

◆ HBRIDGE14_OCP_TRETRY_2_MS

#define HBRIDGE14_OCP_TRETRY_2_MS   0x08

◆ HBRIDGE14_OCP_TRETRY_4_MS

#define HBRIDGE14_OCP_TRETRY_4_MS   0x0C

◆ HBRIDGE14_OCP_TRETRY_500_NS

#define HBRIDGE14_OCP_TRETRY_500_NS   0x00

◆ HBRIDGE14_OLP_DLY_1_2_MS

#define HBRIDGE14_OLP_DLY_1_2_MS   0x20

◆ HBRIDGE14_OLP_DLY_300_US

#define HBRIDGE14_OLP_DLY_300_US   0x00

◆ HBRIDGE14_OTW_REP

#define HBRIDGE14_OTW_REP   0x20

◆ HBRIDGE14_OUT1_DIS

#define HBRIDGE14_OUT1_DIS   0x08

◆ HBRIDGE14_OUT2_DIS

#define HBRIDGE14_OUT2_DIS   0x04

◆ HBRIDGE14_PH_IN2

#define HBRIDGE14_PH_IN2   0x01

◆ HBRIDGE14_PIN_STATE_HIGH

#define HBRIDGE14_PIN_STATE_HIGH   0x01

H-Bridge 14 pin setting.

Specified setting for pin selection of H-Bridge 14 Click driver.

◆ HBRIDGE14_PIN_STATE_LOW

#define HBRIDGE14_PIN_STATE_LOW   0x00

◆ HBRIDGE14_S_SR_10_8V_US

#define HBRIDGE14_S_SR_10_8V_US   0x10

◆ HBRIDGE14_S_SR_13_V_US

#define HBRIDGE14_S_SR_13_V_US   0x0C

◆ HBRIDGE14_S_SR_18_3V_US

#define HBRIDGE14_S_SR_18_3V_US   0x08

◆ HBRIDGE14_S_SR_2_6V_US

#define HBRIDGE14_S_SR_2_6V_US   0x1C

◆ HBRIDGE14_S_SR_34_V_US

#define HBRIDGE14_S_SR_34_V_US   0x04

◆ HBRIDGE14_S_SR_53_2V_US

#define HBRIDGE14_S_SR_53_2V_US   0x00

◆ HBRIDGE14_S_SR_5_3V_US

#define HBRIDGE14_S_SR_5_3V_US   0x18

◆ HBRIDGE14_S_SR_7_9V_US

#define HBRIDGE14_S_SR_7_9V_US   0x14

◆ HBRIDGE14_SET_DATA_SAMPLE_EDGE

#define HBRIDGE14_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 hbridge14_init which will set SET_SPI_DATA_SAMPLE_MIDDLE by default on the mapped mikrobus.

◆ HBRIDGE14_SET_DATA_SAMPLE_MIDDLE

#define HBRIDGE14_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ HBRIDGE14_SLEEP_OFF

#define HBRIDGE14_SLEEP_OFF   0x00

◆ HBRIDGE14_SLEEP_ON

#define HBRIDGE14_SLEEP_ON   0x01

H-Bridge 14 SLEEP pin setting.

Specified setting for SLEEP pin selection of H-Bridge 14 Click driver.

◆ HBRIDGE14_SLP_PIN

#define HBRIDGE14_SLP_PIN   0x01

◆ HBRIDGE14_SPI_IN_DIS

#define HBRIDGE14_SPI_IN_DIS   0x00

◆ HBRIDGE14_SPI_IN_EN

#define HBRIDGE14_SPI_IN_EN   0x20

◆ HBRIDGE14_TOF_20_US

#define HBRIDGE14_TOF_20_US   0x00

◆ HBRIDGE14_TOF_40_US

#define HBRIDGE14_TOF_40_US   0x40

◆ HBRIDGE14_TOF_60_US

#define HBRIDGE14_TOF_60_US   0x80

◆ HBRIDGE14_TOF_80_US

#define HBRIDGE14_TOF_80_US   0xC0

H-Bridge 14 IC1 Control Register setting.

Specified setting for IC1 Control Register selection of H-Bridge 14 Click driver.

◆ HBRIDGE14_TSD_MODE_AUTO

#define HBRIDGE14_TSD_MODE_AUTO   0x40

◆ HBRIDGE14_UNLOCK_REG

#define HBRIDGE14_UNLOCK_REG   0x40