hbridge10 2.0.0.0
H-Bridge 10 Settings

Settings of H-Bridge 10 Click driver. More...

Macros

#define HBRIDGE10_IN_STATUS_RESET   0x8000
 H-Bridge 10 data input register setting.
 
#define HBRIDGE10_IN_OUT_LS1_ON   0x1000
 
#define HBRIDGE10_IN_OUT_HS1_ON   0x0800
 
#define HBRIDGE10_IN_OUT_LS2_ON   0x0100
 
#define HBRIDGE10_IN_OUT_HS2_ON   0x0080
 
#define HBRIDGE10_IN_OUT_LS3_ON   0x0010
 
#define HBRIDGE10_IN_OUT_HS3_ON   0x0008
 
#define HBRIDGE10_IN_OPEN_LOAD_OFF   0x0004
 
#define HBRIDGE10_IN_SHORT_SD_DELAY_12MS   0x0002
 
#define HBRIDGE10_IN_SHORT_SD_DELAY_1p5MS   0x0000
 
#define HBRIDGE10_IN_SOFT_ENABLE   0x0001
 
#define HBRIDGE10_OUT_OVER_TEMP_SD   0xFFFF
 H-Bridge 10 data output register setting.
 
#define HBRIDGE10_OUT_OVER_TEMP_WARNING   0x8000
 
#define HBRIDGE10_OUT_STATUS_LS1_ON   0x1000
 
#define HBRIDGE10_OUT_STATUS_HS1_ON   0x0800
 
#define HBRIDGE10_OUT_STATUS_LS2_ON   0x0100
 
#define HBRIDGE10_OUT_STATUS_HS2_ON   0x0080
 
#define HBRIDGE10_OUT_STATUS_LS3_ON   0x0010
 
#define HBRIDGE10_OUT_STATUS_HS3_ON   0x0008
 
#define HBRIDGE10_OUT_SHORT_CIRCUIT_DETECTED   0x0004
 
#define HBRIDGE10_OUT_NORMAL_OPERATION   0x0002
 
#define HBRIDGE10_OUT_VS_UNDER_VOLTAGE   0x0001
 
#define HBRIDGE10_CHANNEL_OUT1   1
 H-Bridge 10 output setting.
 
#define HBRIDGE10_CHANNEL_OUT2   2
 
#define HBRIDGE10_CHANNEL_OUT3   3
 
#define HBRIDGE10_OUT_OFF   0
 
#define HBRIDGE10_OUT_HIGH   1
 
#define HBRIDGE10_OUT_LOW   2
 
#define HBRIDGE10_OUT_MASK   3u
 
#define HBRIDGE10_ADC_VREF   3.3
 H-Bridge 10 ADC reading voltage reference setting.
 
#define HBRIDGE10_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define HBRIDGE10_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings of H-Bridge 10 Click driver.

Macro Definition Documentation

◆ HBRIDGE10_ADC_VREF

#define HBRIDGE10_ADC_VREF   3.3

H-Bridge 10 ADC reading voltage reference setting.

Specified ADC reading voltage reference setting of H-Bridge 10 Click driver.

◆ HBRIDGE10_CHANNEL_OUT1

#define HBRIDGE10_CHANNEL_OUT1   1

H-Bridge 10 output setting.

Specified output setting of H-Bridge 10 Click driver.

◆ HBRIDGE10_CHANNEL_OUT2

#define HBRIDGE10_CHANNEL_OUT2   2

◆ HBRIDGE10_CHANNEL_OUT3

#define HBRIDGE10_CHANNEL_OUT3   3

◆ HBRIDGE10_IN_OPEN_LOAD_OFF

#define HBRIDGE10_IN_OPEN_LOAD_OFF   0x0004

◆ HBRIDGE10_IN_OUT_HS1_ON

#define HBRIDGE10_IN_OUT_HS1_ON   0x0800

◆ HBRIDGE10_IN_OUT_HS2_ON

#define HBRIDGE10_IN_OUT_HS2_ON   0x0080

◆ HBRIDGE10_IN_OUT_HS3_ON

#define HBRIDGE10_IN_OUT_HS3_ON   0x0008

◆ HBRIDGE10_IN_OUT_LS1_ON

#define HBRIDGE10_IN_OUT_LS1_ON   0x1000

◆ HBRIDGE10_IN_OUT_LS2_ON

#define HBRIDGE10_IN_OUT_LS2_ON   0x0100

◆ HBRIDGE10_IN_OUT_LS3_ON

#define HBRIDGE10_IN_OUT_LS3_ON   0x0010

◆ HBRIDGE10_IN_SHORT_SD_DELAY_12MS

#define HBRIDGE10_IN_SHORT_SD_DELAY_12MS   0x0002

◆ HBRIDGE10_IN_SHORT_SD_DELAY_1p5MS

#define HBRIDGE10_IN_SHORT_SD_DELAY_1p5MS   0x0000

◆ HBRIDGE10_IN_SOFT_ENABLE

#define HBRIDGE10_IN_SOFT_ENABLE   0x0001

◆ HBRIDGE10_IN_STATUS_RESET

#define HBRIDGE10_IN_STATUS_RESET   0x8000

H-Bridge 10 data input register setting.

Specified data input register setting of H-Bridge 10 Click driver.

◆ HBRIDGE10_OUT_HIGH

#define HBRIDGE10_OUT_HIGH   1

◆ HBRIDGE10_OUT_LOW

#define HBRIDGE10_OUT_LOW   2

◆ HBRIDGE10_OUT_MASK

#define HBRIDGE10_OUT_MASK   3u

◆ HBRIDGE10_OUT_NORMAL_OPERATION

#define HBRIDGE10_OUT_NORMAL_OPERATION   0x0002

◆ HBRIDGE10_OUT_OFF

#define HBRIDGE10_OUT_OFF   0

◆ HBRIDGE10_OUT_OVER_TEMP_SD

#define HBRIDGE10_OUT_OVER_TEMP_SD   0xFFFF

H-Bridge 10 data output register setting.

Specified data output register setting of H-Bridge 10 Click driver.

◆ HBRIDGE10_OUT_OVER_TEMP_WARNING

#define HBRIDGE10_OUT_OVER_TEMP_WARNING   0x8000

◆ HBRIDGE10_OUT_SHORT_CIRCUIT_DETECTED

#define HBRIDGE10_OUT_SHORT_CIRCUIT_DETECTED   0x0004

◆ HBRIDGE10_OUT_STATUS_HS1_ON

#define HBRIDGE10_OUT_STATUS_HS1_ON   0x0800

◆ HBRIDGE10_OUT_STATUS_HS2_ON

#define HBRIDGE10_OUT_STATUS_HS2_ON   0x0080

◆ HBRIDGE10_OUT_STATUS_HS3_ON

#define HBRIDGE10_OUT_STATUS_HS3_ON   0x0008

◆ HBRIDGE10_OUT_STATUS_LS1_ON

#define HBRIDGE10_OUT_STATUS_LS1_ON   0x1000

◆ HBRIDGE10_OUT_STATUS_LS2_ON

#define HBRIDGE10_OUT_STATUS_LS2_ON   0x0100

◆ HBRIDGE10_OUT_STATUS_LS3_ON

#define HBRIDGE10_OUT_STATUS_LS3_ON   0x0010

◆ HBRIDGE10_OUT_VS_UNDER_VOLTAGE

#define HBRIDGE10_OUT_VS_UNDER_VOLTAGE   0x0001

◆ HBRIDGE10_SET_DATA_SAMPLE_EDGE

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

◆ HBRIDGE10_SET_DATA_SAMPLE_MIDDLE

#define HBRIDGE10_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE