hbridgedriver2 2.0.0.0
H-Bridge Driver 2 Registers Settings

Settings for registers of H-Bridge Driver 2 Click driver. More...

Macros

#define HBRIDGEDRIVER2_DEF_FREQ   20000
 H-Bridge Driver 2default PWM frequency.
 
#define HBRIDGEDRIVER2_ID_VAL_ID_HDR   0x4300
 H-Bridge Driver 2 description ID data.
 
#define HBRIDGEDRIVER2_ID_VAL_VERSION   0x0100
 
#define HBRIDGEDRIVER2_ID_VAL_P_CODE_1   0x7500
 
#define HBRIDGEDRIVER2_ID_VAL_P_CODE_2   0x3500
 
#define HBRIDGEDRIVER2_ID_VAL_SPI_F_ID   0x0200
 
#define HBRIDGEDRIVER2_CTL_0_HS1   0x0200
 H-Bridge Driver 2 description control data.
 
#define HBRIDGEDRIVER2_CTL_0_LS1   0x0100
 
#define HBRIDGEDRIVER2_CTL_0_HS2   0x0080
 
#define HBRIDGEDRIVER2_CTL_0_LS2   0x0040
 
#define HBRIDGEDRIVER2_CTL_0_FWH   0x0010
 
#define HBRIDGEDRIVER2_CTL_0_FWA   0x0008
 
#define HBRIDGEDRIVER2_CTL_0_OVR   0x0004
 
#define HBRIDGEDRIVER2_CTL_0_UVR   0x0002
 
#define HBRIDGEDRIVER2_CTL_0_MODE   0x0001
 
#define HBRIDGEDRIVER2_STAT_0_OCHS1   0x0200
 H-Bridge Driver 2 description status data.
 
#define HBRIDGEDRIVER2_STAT_0_OCLS1   0x0100
 
#define HBRIDGEDRIVER2_STAT_0_OCHS2   0x0080
 
#define HBRIDGEDRIVER2_STAT_0_OCLS2   0x0040
 
#define HBRIDGEDRIVER2_STAT_0_VSUV   0x0008
 
#define HBRIDGEDRIVER2_STAT_0_VSOV   0x0004
 
#define HBRIDGEDRIVER2_STAT_0_OK   0x0000
 
#define HBRIDGEDRIVER2_CFG_NOCRLH_250_NS   0x0000
 H-Bridge Driver 2 description configuration data.
 
#define HBRIDGEDRIVER2_CFG_NOCRLH_500_NS   0x1000
 
#define HBRIDGEDRIVER2_CFG_NOCRLH_750_NS   0x2000
 
#define HBRIDGEDRIVER2_CFG_NOCRLH_1_US   0x3000
 
#define HBRIDGEDRIVER2_CFG_NOCRLH_1_25_US   0x4000
 
#define HBRIDGEDRIVER2_CFG_NOCRLH_1_5_US   0x5000
 
#define HBRIDGEDRIVER2_CFG_NOCRLH_1_75_US   0x6000
 
#define HBRIDGEDRIVER2_CFG_NOCRLH_2_US   0x7000
 
#define HBRIDGEDRIVER2_CFG_NOCRLH_2_25_US   0x8000
 
#define HBRIDGEDRIVER2_CFG_NOCRLH_2_5_US   0x9000
 
#define HBRIDGEDRIVER2_CFG_NOCRLH_2_75_US   0xA000
 
#define HBRIDGEDRIVER2_CFG_NOCRLH_3_US   0xB000
 
#define HBRIDGEDRIVER2_CFG_NOCRLH_3_25_US   0xC000
 
#define HBRIDGEDRIVER2_CFG_NOCRLH_3_5_US   0xD000
 
#define HBRIDGEDRIVER2_CFG_NOCRLH_3_75_US   0xE000
 
#define HBRIDGEDRIVER2_CFG_NOCRLH_4_US   0xF000
 
#define HBRIDGEDRIVER2_CFG_NOCRHL_250_NS   0x0000
 
#define HBRIDGEDRIVER2_CFG_NOCRHL_500_NS   0x0100
 
#define HBRIDGEDRIVER2_CFG_NOCRHL_750_NS   0x0200
 
#define HBRIDGEDRIVER2_CFG_NOCRHL_1_US   0x0300
 
#define HBRIDGEDRIVER2_CFG_NOCRHL_1_25_US   0x0400
 
#define HBRIDGEDRIVER2_CFG_NOCRHL_1_5_US   0x0500
 
#define HBRIDGEDRIVER2_CFG_NOCRHL_1_75_US   0x0600
 
#define HBRIDGEDRIVER2_CFG_NOCRHL_2_US   0x0700
 
#define HBRIDGEDRIVER2_CFG_NOCRHL_2_25_US   0x0800
 
#define HBRIDGEDRIVER2_CFG_NOCRHL_2_5_US   0x0900
 
#define HBRIDGEDRIVER2_CFG_NOCRHL_2_75_US   0x0A00
 
#define HBRIDGEDRIVER2_CFG_NOCRHL_3_US   0x0B00
 
#define HBRIDGEDRIVER2_CFG_NOCRHL_3_25_US   0x0C00
 
#define HBRIDGEDRIVER2_CFG_NOCRHL_3_5_US   0x0D00
 
#define HBRIDGEDRIVER2_CFG_NOCRHL_3_75_US   0x0E00
 
#define HBRIDGEDRIVER2_CFG_NOCRHL_4_US   0x0F00
 
#define HBRIDGEDRIVER2_CFG_OCTH_0_25_V   0x0000
 
#define HBRIDGEDRIVER2_CFG_OCTH_0_5_V   0x0020
 
#define HBRIDGEDRIVER2_CFG_OCTH_0_75_V   0x0040
 
#define HBRIDGEDRIVER2_CFG_OCTH_1_V   0x0060
 
#define HBRIDGEDRIVER2_CFG_OCTH_1_25_V   0x0080
 
#define HBRIDGEDRIVER2_CFG_OCTH_1_5_V   0x0090
 
#define HBRIDGEDRIVER2_CFG_OCTH_1_75_V   0x00C0
 
#define HBRIDGEDRIVER2_CFG_OCTH_2_V   0x00E0
 
#define HBRIDGEDRIVER2_CFG_FULL_H_BRIDGE   0x0000
 
#define HBRIDGEDRIVER2_CFG_2_HALF_BRIDGES   0x0010
 
#define HBRIDGEDRIVER2_CFG_SLOW_SLEW_RATE   0x0000
 
#define HBRIDGEDRIVER2_CFG_FAST_SLEW_RATE   0x0008
 
#define HBRIDGEDRIVER2_CLEAR   0x00
 H-Bridge Driver 2 description Bit set/clear data.
 
#define HBRIDGEDRIVER2_SET   0x01
 
#define HBRIDGEDRIVER2_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define HBRIDGEDRIVER2_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of H-Bridge Driver 2 Click driver.

Macro Definition Documentation

◆ HBRIDGEDRIVER2_CFG_2_HALF_BRIDGES

#define HBRIDGEDRIVER2_CFG_2_HALF_BRIDGES   0x0010

◆ HBRIDGEDRIVER2_CFG_FAST_SLEW_RATE

#define HBRIDGEDRIVER2_CFG_FAST_SLEW_RATE   0x0008

◆ HBRIDGEDRIVER2_CFG_FULL_H_BRIDGE

#define HBRIDGEDRIVER2_CFG_FULL_H_BRIDGE   0x0000

◆ HBRIDGEDRIVER2_CFG_NOCRHL_1_25_US

#define HBRIDGEDRIVER2_CFG_NOCRHL_1_25_US   0x0400

◆ HBRIDGEDRIVER2_CFG_NOCRHL_1_5_US

#define HBRIDGEDRIVER2_CFG_NOCRHL_1_5_US   0x0500

◆ HBRIDGEDRIVER2_CFG_NOCRHL_1_75_US

#define HBRIDGEDRIVER2_CFG_NOCRHL_1_75_US   0x0600

◆ HBRIDGEDRIVER2_CFG_NOCRHL_1_US

#define HBRIDGEDRIVER2_CFG_NOCRHL_1_US   0x0300

◆ HBRIDGEDRIVER2_CFG_NOCRHL_250_NS

#define HBRIDGEDRIVER2_CFG_NOCRHL_250_NS   0x0000

◆ HBRIDGEDRIVER2_CFG_NOCRHL_2_25_US

#define HBRIDGEDRIVER2_CFG_NOCRHL_2_25_US   0x0800

◆ HBRIDGEDRIVER2_CFG_NOCRHL_2_5_US

#define HBRIDGEDRIVER2_CFG_NOCRHL_2_5_US   0x0900

◆ HBRIDGEDRIVER2_CFG_NOCRHL_2_75_US

#define HBRIDGEDRIVER2_CFG_NOCRHL_2_75_US   0x0A00

◆ HBRIDGEDRIVER2_CFG_NOCRHL_2_US

#define HBRIDGEDRIVER2_CFG_NOCRHL_2_US   0x0700

◆ HBRIDGEDRIVER2_CFG_NOCRHL_3_25_US

#define HBRIDGEDRIVER2_CFG_NOCRHL_3_25_US   0x0C00

◆ HBRIDGEDRIVER2_CFG_NOCRHL_3_5_US

#define HBRIDGEDRIVER2_CFG_NOCRHL_3_5_US   0x0D00

◆ HBRIDGEDRIVER2_CFG_NOCRHL_3_75_US

#define HBRIDGEDRIVER2_CFG_NOCRHL_3_75_US   0x0E00

◆ HBRIDGEDRIVER2_CFG_NOCRHL_3_US

#define HBRIDGEDRIVER2_CFG_NOCRHL_3_US   0x0B00

◆ HBRIDGEDRIVER2_CFG_NOCRHL_4_US

#define HBRIDGEDRIVER2_CFG_NOCRHL_4_US   0x0F00

◆ HBRIDGEDRIVER2_CFG_NOCRHL_500_NS

#define HBRIDGEDRIVER2_CFG_NOCRHL_500_NS   0x0100

◆ HBRIDGEDRIVER2_CFG_NOCRHL_750_NS

#define HBRIDGEDRIVER2_CFG_NOCRHL_750_NS   0x0200

◆ HBRIDGEDRIVER2_CFG_NOCRLH_1_25_US

#define HBRIDGEDRIVER2_CFG_NOCRLH_1_25_US   0x4000

◆ HBRIDGEDRIVER2_CFG_NOCRLH_1_5_US

#define HBRIDGEDRIVER2_CFG_NOCRLH_1_5_US   0x5000

◆ HBRIDGEDRIVER2_CFG_NOCRLH_1_75_US

#define HBRIDGEDRIVER2_CFG_NOCRLH_1_75_US   0x6000

◆ HBRIDGEDRIVER2_CFG_NOCRLH_1_US

#define HBRIDGEDRIVER2_CFG_NOCRLH_1_US   0x3000

◆ HBRIDGEDRIVER2_CFG_NOCRLH_250_NS

#define HBRIDGEDRIVER2_CFG_NOCRLH_250_NS   0x0000

H-Bridge Driver 2 description configuration data.

Specified Configuration Register Bits for description of H-Bridge Driver 2 Click driver.

◆ HBRIDGEDRIVER2_CFG_NOCRLH_2_25_US

#define HBRIDGEDRIVER2_CFG_NOCRLH_2_25_US   0x8000

◆ HBRIDGEDRIVER2_CFG_NOCRLH_2_5_US

#define HBRIDGEDRIVER2_CFG_NOCRLH_2_5_US   0x9000

◆ HBRIDGEDRIVER2_CFG_NOCRLH_2_75_US

#define HBRIDGEDRIVER2_CFG_NOCRLH_2_75_US   0xA000

◆ HBRIDGEDRIVER2_CFG_NOCRLH_2_US

#define HBRIDGEDRIVER2_CFG_NOCRLH_2_US   0x7000

◆ HBRIDGEDRIVER2_CFG_NOCRLH_3_25_US

#define HBRIDGEDRIVER2_CFG_NOCRLH_3_25_US   0xC000

◆ HBRIDGEDRIVER2_CFG_NOCRLH_3_5_US

#define HBRIDGEDRIVER2_CFG_NOCRLH_3_5_US   0xD000

◆ HBRIDGEDRIVER2_CFG_NOCRLH_3_75_US

#define HBRIDGEDRIVER2_CFG_NOCRLH_3_75_US   0xE000

◆ HBRIDGEDRIVER2_CFG_NOCRLH_3_US

#define HBRIDGEDRIVER2_CFG_NOCRLH_3_US   0xB000

◆ HBRIDGEDRIVER2_CFG_NOCRLH_4_US

#define HBRIDGEDRIVER2_CFG_NOCRLH_4_US   0xF000

◆ HBRIDGEDRIVER2_CFG_NOCRLH_500_NS

#define HBRIDGEDRIVER2_CFG_NOCRLH_500_NS   0x1000

◆ HBRIDGEDRIVER2_CFG_NOCRLH_750_NS

#define HBRIDGEDRIVER2_CFG_NOCRLH_750_NS   0x2000

◆ HBRIDGEDRIVER2_CFG_OCTH_0_25_V

#define HBRIDGEDRIVER2_CFG_OCTH_0_25_V   0x0000

◆ HBRIDGEDRIVER2_CFG_OCTH_0_5_V

#define HBRIDGEDRIVER2_CFG_OCTH_0_5_V   0x0020

◆ HBRIDGEDRIVER2_CFG_OCTH_0_75_V

#define HBRIDGEDRIVER2_CFG_OCTH_0_75_V   0x0040

◆ HBRIDGEDRIVER2_CFG_OCTH_1_25_V

#define HBRIDGEDRIVER2_CFG_OCTH_1_25_V   0x0080

◆ HBRIDGEDRIVER2_CFG_OCTH_1_5_V

#define HBRIDGEDRIVER2_CFG_OCTH_1_5_V   0x0090

◆ HBRIDGEDRIVER2_CFG_OCTH_1_75_V

#define HBRIDGEDRIVER2_CFG_OCTH_1_75_V   0x00C0

◆ HBRIDGEDRIVER2_CFG_OCTH_1_V

#define HBRIDGEDRIVER2_CFG_OCTH_1_V   0x0060

◆ HBRIDGEDRIVER2_CFG_OCTH_2_V

#define HBRIDGEDRIVER2_CFG_OCTH_2_V   0x00E0

◆ HBRIDGEDRIVER2_CFG_SLOW_SLEW_RATE

#define HBRIDGEDRIVER2_CFG_SLOW_SLEW_RATE   0x0000

◆ HBRIDGEDRIVER2_CLEAR

#define HBRIDGEDRIVER2_CLEAR   0x00

H-Bridge Driver 2 description Bit set/clear data.

Specified Bit set/clear for description of H-Bridge Driver 2 Click driver.

◆ HBRIDGEDRIVER2_CTL_0_FWA

#define HBRIDGEDRIVER2_CTL_0_FWA   0x0008

◆ HBRIDGEDRIVER2_CTL_0_FWH

#define HBRIDGEDRIVER2_CTL_0_FWH   0x0010

◆ HBRIDGEDRIVER2_CTL_0_HS1

#define HBRIDGEDRIVER2_CTL_0_HS1   0x0200

H-Bridge Driver 2 description control data.

Specified Control Register Bits for description of H-Bridge Driver 2 Click driver.

◆ HBRIDGEDRIVER2_CTL_0_HS2

#define HBRIDGEDRIVER2_CTL_0_HS2   0x0080

◆ HBRIDGEDRIVER2_CTL_0_LS1

#define HBRIDGEDRIVER2_CTL_0_LS1   0x0100

◆ HBRIDGEDRIVER2_CTL_0_LS2

#define HBRIDGEDRIVER2_CTL_0_LS2   0x0040

◆ HBRIDGEDRIVER2_CTL_0_MODE

#define HBRIDGEDRIVER2_CTL_0_MODE   0x0001

◆ HBRIDGEDRIVER2_CTL_0_OVR

#define HBRIDGEDRIVER2_CTL_0_OVR   0x0004

◆ HBRIDGEDRIVER2_CTL_0_UVR

#define HBRIDGEDRIVER2_CTL_0_UVR   0x0002

◆ HBRIDGEDRIVER2_DEF_FREQ

#define HBRIDGEDRIVER2_DEF_FREQ   20000

H-Bridge Driver 2default PWM frequency.

Specified setting for setting default PWM frequency of H-Bridge Driver 2 Click driver.

◆ HBRIDGEDRIVER2_ID_VAL_ID_HDR

#define HBRIDGEDRIVER2_ID_VAL_ID_HDR   0x4300

H-Bridge Driver 2 description ID data.

Specified Chip ID Registers Addresses and Values for description of H-Bridge Driver 2 Click driver.

◆ HBRIDGEDRIVER2_ID_VAL_P_CODE_1

#define HBRIDGEDRIVER2_ID_VAL_P_CODE_1   0x7500

◆ HBRIDGEDRIVER2_ID_VAL_P_CODE_2

#define HBRIDGEDRIVER2_ID_VAL_P_CODE_2   0x3500

◆ HBRIDGEDRIVER2_ID_VAL_SPI_F_ID

#define HBRIDGEDRIVER2_ID_VAL_SPI_F_ID   0x0200

◆ HBRIDGEDRIVER2_ID_VAL_VERSION

#define HBRIDGEDRIVER2_ID_VAL_VERSION   0x0100

◆ HBRIDGEDRIVER2_SET

#define HBRIDGEDRIVER2_SET   0x01

◆ HBRIDGEDRIVER2_SET_DATA_SAMPLE_EDGE

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

◆ HBRIDGEDRIVER2_SET_DATA_SAMPLE_MIDDLE

#define HBRIDGEDRIVER2_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ HBRIDGEDRIVER2_STAT_0_OCHS1

#define HBRIDGEDRIVER2_STAT_0_OCHS1   0x0200

H-Bridge Driver 2 description status data.

Specified Status Register Bits for description of H-Bridge Driver 2 Click driver.

◆ HBRIDGEDRIVER2_STAT_0_OCHS2

#define HBRIDGEDRIVER2_STAT_0_OCHS2   0x0080

◆ HBRIDGEDRIVER2_STAT_0_OCLS1

#define HBRIDGEDRIVER2_STAT_0_OCLS1   0x0100

◆ HBRIDGEDRIVER2_STAT_0_OCLS2

#define HBRIDGEDRIVER2_STAT_0_OCLS2   0x0040

◆ HBRIDGEDRIVER2_STAT_0_OK

#define HBRIDGEDRIVER2_STAT_0_OK   0x0000

◆ HBRIDGEDRIVER2_STAT_0_VSOV

#define HBRIDGEDRIVER2_STAT_0_VSOV   0x0004

◆ HBRIDGEDRIVER2_STAT_0_VSUV

#define HBRIDGEDRIVER2_STAT_0_VSUV   0x0008