dcmotor22 2.0.0.0
DC Motor 22 Device Settings

Settings for registers of DC Motor 22 Click driver. More...

Macros

#define DCMOTOR22_REG_GCONF   0x00
 DC Motor 22 registers map.
 
#define DCMOTOR22_REG_GSTAT   0x01
 
#define DCMOTOR22_REG_IFCNT   0x02
 
#define DCMOTOR22_REG_SLAVECONF   0x03
 
#define DCMOTOR22_REG_IOIN   0x06
 
#define DCMOTOR22_REG_CURRENT_LIMIT   0x10
 
#define DCMOTOR22_REG_PWM_AB   0x22
 
#define DCMOTOR22_REG_CHOPCONF   0x6C
 
#define DCMOTOR22_REG_DRV_STATUS   0x6F
 
#define DCMOTOR22_REG_PWMCONF   0x70
 
#define DCMOTOR22_SYNC_BYTE   0x05
 DC Motor 22 sync byte, read/write bit, and timeout value for read and retry send in milliseconds.
 
#define DCMOTOR22_READ_WRITE_BIT   0x80
 
#define DCMOTOR22_RETRY_SEND_TIMEOUT   100
 
#define DCMOTOR22_READ_TIMEOUT   1000
 
#define DCMOTOR22_GCONF_PWM_DIRECT   ( 0x01ul )
 DC Motor 22 GCONF register settings.
 
#define DCMOTOR22_GCONF_EXTCAP_AVAILABLE   ( 0x02ul )
 
#define DCMOTOR22_GCONF_PAR_MODE_DUAL_MOTOR   ( 0x00ul )
 
#define DCMOTOR22_GCONF_PAR_MODE_SINGLE_MOTOR   ( 0x04ul )
 
#define DCMOTOR22_GCONF_TEST_MODE   ( 0x08ul )
 
#define DCMOTOR22_GSTAT_RESET   ( 0x01ul )
 DC Motor 22 GSTAT register settings.
 
#define DCMOTOR22_GSTAT_DRV_ERR   ( 0x02ul )
 
#define DCMOTOR22_GSTAT_UNDER_3V5   ( 0x04ul )
 
#define DCMOTOR22_GSTAT_CLEAR_ALL   ( 0x07ul )
 
#define DCMOTOR22_SLAVECONF_SENDDELAY_8BIT   ( 0x0000ul )
 DC Motor 22 SLAVECONF register settings.
 
#define DCMOTOR22_SLAVECONF_SENDDELAY_24BIT   ( 0x0200ul )
 
#define DCMOTOR22_SLAVECONF_SENDDELAY_40BIT   ( 0x0400ul )
 
#define DCMOTOR22_SLAVECONF_SENDDELAY_56BIT   ( 0x0600ul )
 
#define DCMOTOR22_SLAVECONF_SENDDELAY_72BIT   ( 0x0800ul )
 
#define DCMOTOR22_SLAVECONF_SENDDELAY_88BIT   ( 0x0A00ul )
 
#define DCMOTOR22_SLAVECONF_SENDDELAY_104BIT   ( 0x0C00ul )
 
#define DCMOTOR22_SLAVECONF_SENDDELAY_120BIT   ( 0x0E00ul )
 
#define DCMOTOR22_IOIN_EN   ( 0x01ul )
 DC Motor 22 IOIN register settings.
 
#define DCMOTOR22_IOIN_NSTDBY   ( 0x02ul )
 
#define DCMOTOR22_IOIN_AD0   ( 0x04ul )
 
#define DCMOTOR22_IOIN_AD1   ( 0x08ul )
 
#define DCMOTOR22_IOIN_DIAG   ( 0x10ul )
 
#define DCMOTOR22_IOIN_UART_ON   ( 0x20ul )
 
#define DCMOTOR22_IOIN_UART_IN   ( 0x40ul )
 
#define DCMOTOR22_IOIN_MODE_IN   ( 0x80ul )
 
#define DCMOTOR22_IOIN_A2   ( 0x0100ul )
 
#define DCMOTOR22_IOIN_A1   ( 0x0200ul )
 
#define DCMOTOR22_IOIN_COMP_A1A2   ( 0x0400ul )
 
#define DCMOTOR22_IOIN_COMP_B1B2   ( 0x0800ul )
 
#define DCMOTOR22_IOIN_VERSION   ( 0x40000000ul )
 
#define DCMOTOR22_IOIN_VERSION_MASK   ( 0xFF000000ul )
 
#define DCMOTOR22_CURRENT_LIMIT_EN_FREEWHEELING   ( 0x01ul )
 DC Motor 22 CURRENT_LIMIT register settings.
 
#define DCMOTOR22_CURRENT_LIMIT_IRUN_1_32   ( 0x0000ul )
 
#define DCMOTOR22_CURRENT_LIMIT_IRUN_2_32   ( 0x0100ul )
 
#define DCMOTOR22_CURRENT_LIMIT_IRUN_3_32   ( 0x0200ul )
 
#define DCMOTOR22_CURRENT_LIMIT_IRUN_4_32   ( 0x0300ul )
 
#define DCMOTOR22_CURRENT_LIMIT_IRUN_5_32   ( 0x0400ul )
 
#define DCMOTOR22_CURRENT_LIMIT_IRUN_6_32   ( 0x0500ul )
 
#define DCMOTOR22_CURRENT_LIMIT_IRUN_7_32   ( 0x0600ul )
 
#define DCMOTOR22_CURRENT_LIMIT_IRUN_8_32   ( 0x0700ul )
 
#define DCMOTOR22_CURRENT_LIMIT_IRUN_9_32   ( 0x0800ul )
 
#define DCMOTOR22_CURRENT_LIMIT_IRUN_10_32   ( 0x0900ul )
 
#define DCMOTOR22_CURRENT_LIMIT_IRUN_11_32   ( 0x0A00ul )
 
#define DCMOTOR22_CURRENT_LIMIT_IRUN_12_32   ( 0x0B00ul )
 
#define DCMOTOR22_CURRENT_LIMIT_IRUN_13_32   ( 0x0C00ul )
 
#define DCMOTOR22_CURRENT_LIMIT_IRUN_14_32   ( 0x0D00ul )
 
#define DCMOTOR22_CURRENT_LIMIT_IRUN_15_32   ( 0x0E00ul )
 
#define DCMOTOR22_CURRENT_LIMIT_IRUN_16_32   ( 0x0F00ul )
 
#define DCMOTOR22_CURRENT_LIMIT_IRUN_17_32   ( 0x1000ul )
 
#define DCMOTOR22_CURRENT_LIMIT_IRUN_18_32   ( 0x1100ul )
 
#define DCMOTOR22_CURRENT_LIMIT_IRUN_19_32   ( 0x1200ul )
 
#define DCMOTOR22_CURRENT_LIMIT_IRUN_20_32   ( 0x1300ul )
 
#define DCMOTOR22_CURRENT_LIMIT_IRUN_21_32   ( 0x1400ul )
 
#define DCMOTOR22_CURRENT_LIMIT_IRUN_22_32   ( 0x1500ul )
 
#define DCMOTOR22_CURRENT_LIMIT_IRUN_23_32   ( 0x1600ul )
 
#define DCMOTOR22_CURRENT_LIMIT_IRUN_24_32   ( 0x1700ul )
 
#define DCMOTOR22_CURRENT_LIMIT_IRUN_25_32   ( 0x1800ul )
 
#define DCMOTOR22_CURRENT_LIMIT_IRUN_26_32   ( 0x1900ul )
 
#define DCMOTOR22_CURRENT_LIMIT_IRUN_27_32   ( 0x1A00ul )
 
#define DCMOTOR22_CURRENT_LIMIT_IRUN_28_32   ( 0x1B00ul )
 
#define DCMOTOR22_CURRENT_LIMIT_IRUN_29_32   ( 0x1C00ul )
 
#define DCMOTOR22_CURRENT_LIMIT_IRUN_30_32   ( 0x1D00ul )
 
#define DCMOTOR22_CURRENT_LIMIT_IRUN_31_32   ( 0x1E00ul )
 
#define DCMOTOR22_CURRENT_LIMIT_IRUN_32_32   ( 0x1F00ul )
 
#define DCMOTOR22_MAX_PWM   255
 DC Motor 22 motor PWM settings.
 
#define DCMOTOR22_MIN_PWM   ( -255 )
 
#define DCMOTOR22_PWM_RES   0x01FF
 
#define DCMOTOR22_PWM_DUTY_0   ( 0x00ul )
 
#define DCMOTOR22_CHOPCONF_DISS2VS   ( 0x80000000ul )
 DC Motor 22 CHOPCONF register settings.
 
#define DCMOTOR22_CHOPCONF_DISS2G   ( 0x40000000ul )
 
#define DCMOTOR22_CHOPCONF_TBL_0   ( 0x00000000ul )
 
#define DCMOTOR22_CHOPCONF_TBL_1   ( 0x00008000ul )
 
#define DCMOTOR22_CHOPCONF_TBL_2   ( 0x00010000ul )
 
#define DCMOTOR22_CHOPCONF_TBL_3   ( 0x00018000ul )
 
#define DCMOTOR22_CHOPCONF_ENABLEDRV   ( 0x00000001ul )
 
#define DCMOTOR22_PWMCONF_FREEWHEEL_NORMAL_OP   ( 0x00000000ul )
 DC Motor 22 PWMCONF register settings.
 
#define DCMOTOR22_PWMCONF_FREEWHEEL_FREEWHEELING   ( 0x00100000ul )
 
#define DCMOTOR22_PWMCONF_FREEWHEEL_LS_SHORTED   ( 0x00200000ul )
 
#define DCMOTOR22_PWMCONF_FREEWHEEL_HS_SHORTED   ( 0x00300000ul )
 
#define DCMOTOR22_PWMCONF_PWM_FREQ_2_1024   ( 0x00000000ul )
 
#define DCMOTOR22_PWMCONF_PWM_FREQ_2_683   ( 0x00010000ul )
 
#define DCMOTOR22_PWMCONF_PWM_FREQ_2_512   ( 0x00020000ul )
 
#define DCMOTOR22_PWMCONF_PWM_FREQ_2_410   ( 0x00030000ul )
 
#define DCMOTOR22_MOTOR_A   0x00
 DC Motor 22 motor selection values.
 
#define DCMOTOR22_MOTOR_B   0x01
 
#define DCMOTOR22_NUM_CONVERSIONS   100
 DC Motor 22 current calculation values.
 
#define DCMOTOR22_RSENSE   0.1
 
#define DCMOTOR22_ADC_REG_SETUP   0x80
 DC Motor 22 ADC setup byte values.
 
#define DCMOTOR22_ADC_SETUP_VREF_VDD_REF_NC_OFF   0x00
 
#define DCMOTOR22_ADC_SETUP_VREF_EXT_REF_IN_OFF   0x20
 
#define DCMOTOR22_ADC_SETUP_VREF_INT_REF_NC_OFF   0x40
 
#define DCMOTOR22_ADC_SETUP_VREF_INT_REF_NC_ON   0x50
 
#define DCMOTOR22_ADC_SETUP_VREF_INT_REF_OUT_OFF   0x60
 
#define DCMOTOR22_ADC_SETUP_VREF_INT_REF_OUT_ON   0x70
 
#define DCMOTOR22_ADC_SETUP_CLK_INT   0x00
 
#define DCMOTOR22_ADC_SETUP_CLK_EXT   0x08
 
#define DCMOTOR22_ADC_SETUP_UNIPOLAR   0x00
 
#define DCMOTOR22_ADC_SETUP_BIPOLAR   0x04
 
#define DCMOTOR22_ADC_SETUP_RST_RESET   0x00
 
#define DCMOTOR22_ADC_SETUP_RST_NO_ACTION   0x02
 
#define DCMOTOR22_ADC_REG_CONFIG   0x00
 DC Motor 22 ADC config byte values.
 
#define DCMOTOR22_ADC_CONFIG_SCAN_AIN0_TO_CS0   0x00
 
#define DCMOTOR22_ADC_CONFIG_SCAN_CS0_8_TIMES   0x20
 
#define DCMOTOR22_ADC_CONFIG_SCAN_CS0   0x60
 
#define DCMOTOR22_ADC_CONFIG_CS0_AIN0   0x00
 
#define DCMOTOR22_ADC_CONFIG_CS0_AIN1   0x02
 
#define DCMOTOR22_ADC_CONFIG_DIFFERENTIAL   0x00
 
#define DCMOTOR22_ADC_CONFIG_SINGLE_ENDED   0x01
 
#define DCMOTOR22_ADC_REG_BIT_MASK   0x80
 DC Motor 22 ADC register bit mask.
 
#define DCMOTOR22_ADC_SETUP_VREF_BIT_MASK   0x70
 
#define DCMOTOR22_ADC_SETUP_CLK_BIT_MASK   0x08
 
#define DCMOTOR22_ADC_SETUP_UNI_BIP_BIT_MASK   0x04
 
#define DCMOTOR22_ADC_SETUP_RST_BIT_MASK   0x02
 
#define DCMOTOR22_ADC_CONFIG_SCAN_BIT_MASK   0x60
 
#define DCMOTOR22_ADC_CONFIG_CS0_BIT_MASK   0x02
 
#define DCMOTOR22_ADC_CONFIG_SGL_DIF_BIT_MASK   0x01
 
#define DCMOTOR22_ADC_CHANNEL_0   0
 DC Motor 22 ADC channel selection values.
 
#define DCMOTOR22_ADC_CHANNEL_1   1
 
#define DCMOTOR22_ADC_RESOLUTION   0x0FFF
 DC Motor 22 ADC calculation values.
 
#define DCMOTOR22_ADC_VREF   2.048
 
#define DCMOTOR22_ADC_DEVICE_ADDRESS   0x36
 DC Motor 22 device address setting.
 
#define DCMOTOR22_UART_DEVICE_ADDRESS_0   0x00
 
#define DCMOTOR22_UART_DEVICE_ADDRESS_1   0x01
 
#define DCMOTOR22_UART_DEVICE_ADDRESS_2   0x02
 
#define DCMOTOR22_UART_DEVICE_ADDRESS_3   0x03
 
#define DCMOTOR22_UART_DEVICE_ADDRESS_MASK   0x03
 
#define DRV_BUFFER_SIZE   200
 DC Motor 22 driver buffer size.
 

Detailed Description

Settings for registers of DC Motor 22 Click driver.

Macro Definition Documentation

◆ DCMOTOR22_ADC_CHANNEL_0

#define DCMOTOR22_ADC_CHANNEL_0   0

DC Motor 22 ADC channel selection values.

Specified ADC channel selection values of DC Motor 22 Click driver.

◆ DCMOTOR22_ADC_CHANNEL_1

#define DCMOTOR22_ADC_CHANNEL_1   1

◆ DCMOTOR22_ADC_CONFIG_CS0_AIN0

#define DCMOTOR22_ADC_CONFIG_CS0_AIN0   0x00

◆ DCMOTOR22_ADC_CONFIG_CS0_AIN1

#define DCMOTOR22_ADC_CONFIG_CS0_AIN1   0x02

◆ DCMOTOR22_ADC_CONFIG_CS0_BIT_MASK

#define DCMOTOR22_ADC_CONFIG_CS0_BIT_MASK   0x02

◆ DCMOTOR22_ADC_CONFIG_DIFFERENTIAL

#define DCMOTOR22_ADC_CONFIG_DIFFERENTIAL   0x00

◆ DCMOTOR22_ADC_CONFIG_SCAN_AIN0_TO_CS0

#define DCMOTOR22_ADC_CONFIG_SCAN_AIN0_TO_CS0   0x00

◆ DCMOTOR22_ADC_CONFIG_SCAN_BIT_MASK

#define DCMOTOR22_ADC_CONFIG_SCAN_BIT_MASK   0x60

◆ DCMOTOR22_ADC_CONFIG_SCAN_CS0

#define DCMOTOR22_ADC_CONFIG_SCAN_CS0   0x60

◆ DCMOTOR22_ADC_CONFIG_SCAN_CS0_8_TIMES

#define DCMOTOR22_ADC_CONFIG_SCAN_CS0_8_TIMES   0x20

◆ DCMOTOR22_ADC_CONFIG_SGL_DIF_BIT_MASK

#define DCMOTOR22_ADC_CONFIG_SGL_DIF_BIT_MASK   0x01

◆ DCMOTOR22_ADC_CONFIG_SINGLE_ENDED

#define DCMOTOR22_ADC_CONFIG_SINGLE_ENDED   0x01

◆ DCMOTOR22_ADC_DEVICE_ADDRESS

#define DCMOTOR22_ADC_DEVICE_ADDRESS   0x36

DC Motor 22 device address setting.

Specified setting for device slave address selection of DC Motor 22 Click driver.

◆ DCMOTOR22_ADC_REG_BIT_MASK

#define DCMOTOR22_ADC_REG_BIT_MASK   0x80

DC Motor 22 ADC register bit mask.

Specified ADC register bit of DC Motor 22 Click driver.

◆ DCMOTOR22_ADC_REG_CONFIG

#define DCMOTOR22_ADC_REG_CONFIG   0x00

DC Motor 22 ADC config byte values.

Specified ADC config byte values of DC Motor 22 Click driver.

◆ DCMOTOR22_ADC_REG_SETUP

#define DCMOTOR22_ADC_REG_SETUP   0x80

DC Motor 22 ADC setup byte values.

Specified ADC setup byte values of DC Motor 22 Click driver.

◆ DCMOTOR22_ADC_RESOLUTION

#define DCMOTOR22_ADC_RESOLUTION   0x0FFF

DC Motor 22 ADC calculation values.

Specified ADC calculation values of DC Motor 22 Click driver.

◆ DCMOTOR22_ADC_SETUP_BIPOLAR

#define DCMOTOR22_ADC_SETUP_BIPOLAR   0x04

◆ DCMOTOR22_ADC_SETUP_CLK_BIT_MASK

#define DCMOTOR22_ADC_SETUP_CLK_BIT_MASK   0x08

◆ DCMOTOR22_ADC_SETUP_CLK_EXT

#define DCMOTOR22_ADC_SETUP_CLK_EXT   0x08

◆ DCMOTOR22_ADC_SETUP_CLK_INT

#define DCMOTOR22_ADC_SETUP_CLK_INT   0x00

◆ DCMOTOR22_ADC_SETUP_RST_BIT_MASK

#define DCMOTOR22_ADC_SETUP_RST_BIT_MASK   0x02

◆ DCMOTOR22_ADC_SETUP_RST_NO_ACTION

#define DCMOTOR22_ADC_SETUP_RST_NO_ACTION   0x02

◆ DCMOTOR22_ADC_SETUP_RST_RESET

#define DCMOTOR22_ADC_SETUP_RST_RESET   0x00

◆ DCMOTOR22_ADC_SETUP_UNI_BIP_BIT_MASK

#define DCMOTOR22_ADC_SETUP_UNI_BIP_BIT_MASK   0x04

◆ DCMOTOR22_ADC_SETUP_UNIPOLAR

#define DCMOTOR22_ADC_SETUP_UNIPOLAR   0x00

◆ DCMOTOR22_ADC_SETUP_VREF_BIT_MASK

#define DCMOTOR22_ADC_SETUP_VREF_BIT_MASK   0x70

◆ DCMOTOR22_ADC_SETUP_VREF_EXT_REF_IN_OFF

#define DCMOTOR22_ADC_SETUP_VREF_EXT_REF_IN_OFF   0x20

◆ DCMOTOR22_ADC_SETUP_VREF_INT_REF_NC_OFF

#define DCMOTOR22_ADC_SETUP_VREF_INT_REF_NC_OFF   0x40

◆ DCMOTOR22_ADC_SETUP_VREF_INT_REF_NC_ON

#define DCMOTOR22_ADC_SETUP_VREF_INT_REF_NC_ON   0x50

◆ DCMOTOR22_ADC_SETUP_VREF_INT_REF_OUT_OFF

#define DCMOTOR22_ADC_SETUP_VREF_INT_REF_OUT_OFF   0x60

◆ DCMOTOR22_ADC_SETUP_VREF_INT_REF_OUT_ON

#define DCMOTOR22_ADC_SETUP_VREF_INT_REF_OUT_ON   0x70

◆ DCMOTOR22_ADC_SETUP_VREF_VDD_REF_NC_OFF

#define DCMOTOR22_ADC_SETUP_VREF_VDD_REF_NC_OFF   0x00

◆ DCMOTOR22_ADC_VREF

#define DCMOTOR22_ADC_VREF   2.048

◆ DCMOTOR22_CHOPCONF_DISS2G

#define DCMOTOR22_CHOPCONF_DISS2G   ( 0x40000000ul )

◆ DCMOTOR22_CHOPCONF_DISS2VS

#define DCMOTOR22_CHOPCONF_DISS2VS   ( 0x80000000ul )

DC Motor 22 CHOPCONF register settings.

Specified CHOPCONF register settings of DC Motor 22 Click driver.

◆ DCMOTOR22_CHOPCONF_ENABLEDRV

#define DCMOTOR22_CHOPCONF_ENABLEDRV   ( 0x00000001ul )

◆ DCMOTOR22_CHOPCONF_TBL_0

#define DCMOTOR22_CHOPCONF_TBL_0   ( 0x00000000ul )

◆ DCMOTOR22_CHOPCONF_TBL_1

#define DCMOTOR22_CHOPCONF_TBL_1   ( 0x00008000ul )

◆ DCMOTOR22_CHOPCONF_TBL_2

#define DCMOTOR22_CHOPCONF_TBL_2   ( 0x00010000ul )

◆ DCMOTOR22_CHOPCONF_TBL_3

#define DCMOTOR22_CHOPCONF_TBL_3   ( 0x00018000ul )

◆ DCMOTOR22_CURRENT_LIMIT_EN_FREEWHEELING

#define DCMOTOR22_CURRENT_LIMIT_EN_FREEWHEELING   ( 0x01ul )

DC Motor 22 CURRENT_LIMIT register settings.

Specified CURRENT_LIMIT register settings of DC Motor 22 Click driver.

◆ DCMOTOR22_CURRENT_LIMIT_IRUN_10_32

#define DCMOTOR22_CURRENT_LIMIT_IRUN_10_32   ( 0x0900ul )

◆ DCMOTOR22_CURRENT_LIMIT_IRUN_11_32

#define DCMOTOR22_CURRENT_LIMIT_IRUN_11_32   ( 0x0A00ul )

◆ DCMOTOR22_CURRENT_LIMIT_IRUN_12_32

#define DCMOTOR22_CURRENT_LIMIT_IRUN_12_32   ( 0x0B00ul )

◆ DCMOTOR22_CURRENT_LIMIT_IRUN_13_32

#define DCMOTOR22_CURRENT_LIMIT_IRUN_13_32   ( 0x0C00ul )

◆ DCMOTOR22_CURRENT_LIMIT_IRUN_14_32

#define DCMOTOR22_CURRENT_LIMIT_IRUN_14_32   ( 0x0D00ul )

◆ DCMOTOR22_CURRENT_LIMIT_IRUN_15_32

#define DCMOTOR22_CURRENT_LIMIT_IRUN_15_32   ( 0x0E00ul )

◆ DCMOTOR22_CURRENT_LIMIT_IRUN_16_32

#define DCMOTOR22_CURRENT_LIMIT_IRUN_16_32   ( 0x0F00ul )

◆ DCMOTOR22_CURRENT_LIMIT_IRUN_17_32

#define DCMOTOR22_CURRENT_LIMIT_IRUN_17_32   ( 0x1000ul )

◆ DCMOTOR22_CURRENT_LIMIT_IRUN_18_32

#define DCMOTOR22_CURRENT_LIMIT_IRUN_18_32   ( 0x1100ul )

◆ DCMOTOR22_CURRENT_LIMIT_IRUN_19_32

#define DCMOTOR22_CURRENT_LIMIT_IRUN_19_32   ( 0x1200ul )

◆ DCMOTOR22_CURRENT_LIMIT_IRUN_1_32

#define DCMOTOR22_CURRENT_LIMIT_IRUN_1_32   ( 0x0000ul )

◆ DCMOTOR22_CURRENT_LIMIT_IRUN_20_32

#define DCMOTOR22_CURRENT_LIMIT_IRUN_20_32   ( 0x1300ul )

◆ DCMOTOR22_CURRENT_LIMIT_IRUN_21_32

#define DCMOTOR22_CURRENT_LIMIT_IRUN_21_32   ( 0x1400ul )

◆ DCMOTOR22_CURRENT_LIMIT_IRUN_22_32

#define DCMOTOR22_CURRENT_LIMIT_IRUN_22_32   ( 0x1500ul )

◆ DCMOTOR22_CURRENT_LIMIT_IRUN_23_32

#define DCMOTOR22_CURRENT_LIMIT_IRUN_23_32   ( 0x1600ul )

◆ DCMOTOR22_CURRENT_LIMIT_IRUN_24_32

#define DCMOTOR22_CURRENT_LIMIT_IRUN_24_32   ( 0x1700ul )

◆ DCMOTOR22_CURRENT_LIMIT_IRUN_25_32

#define DCMOTOR22_CURRENT_LIMIT_IRUN_25_32   ( 0x1800ul )

◆ DCMOTOR22_CURRENT_LIMIT_IRUN_26_32

#define DCMOTOR22_CURRENT_LIMIT_IRUN_26_32   ( 0x1900ul )

◆ DCMOTOR22_CURRENT_LIMIT_IRUN_27_32

#define DCMOTOR22_CURRENT_LIMIT_IRUN_27_32   ( 0x1A00ul )

◆ DCMOTOR22_CURRENT_LIMIT_IRUN_28_32

#define DCMOTOR22_CURRENT_LIMIT_IRUN_28_32   ( 0x1B00ul )

◆ DCMOTOR22_CURRENT_LIMIT_IRUN_29_32

#define DCMOTOR22_CURRENT_LIMIT_IRUN_29_32   ( 0x1C00ul )

◆ DCMOTOR22_CURRENT_LIMIT_IRUN_2_32

#define DCMOTOR22_CURRENT_LIMIT_IRUN_2_32   ( 0x0100ul )

◆ DCMOTOR22_CURRENT_LIMIT_IRUN_30_32

#define DCMOTOR22_CURRENT_LIMIT_IRUN_30_32   ( 0x1D00ul )

◆ DCMOTOR22_CURRENT_LIMIT_IRUN_31_32

#define DCMOTOR22_CURRENT_LIMIT_IRUN_31_32   ( 0x1E00ul )

◆ DCMOTOR22_CURRENT_LIMIT_IRUN_32_32

#define DCMOTOR22_CURRENT_LIMIT_IRUN_32_32   ( 0x1F00ul )

◆ DCMOTOR22_CURRENT_LIMIT_IRUN_3_32

#define DCMOTOR22_CURRENT_LIMIT_IRUN_3_32   ( 0x0200ul )

◆ DCMOTOR22_CURRENT_LIMIT_IRUN_4_32

#define DCMOTOR22_CURRENT_LIMIT_IRUN_4_32   ( 0x0300ul )

◆ DCMOTOR22_CURRENT_LIMIT_IRUN_5_32

#define DCMOTOR22_CURRENT_LIMIT_IRUN_5_32   ( 0x0400ul )

◆ DCMOTOR22_CURRENT_LIMIT_IRUN_6_32

#define DCMOTOR22_CURRENT_LIMIT_IRUN_6_32   ( 0x0500ul )

◆ DCMOTOR22_CURRENT_LIMIT_IRUN_7_32

#define DCMOTOR22_CURRENT_LIMIT_IRUN_7_32   ( 0x0600ul )

◆ DCMOTOR22_CURRENT_LIMIT_IRUN_8_32

#define DCMOTOR22_CURRENT_LIMIT_IRUN_8_32   ( 0x0700ul )

◆ DCMOTOR22_CURRENT_LIMIT_IRUN_9_32

#define DCMOTOR22_CURRENT_LIMIT_IRUN_9_32   ( 0x0800ul )

◆ DCMOTOR22_GCONF_EXTCAP_AVAILABLE

#define DCMOTOR22_GCONF_EXTCAP_AVAILABLE   ( 0x02ul )

◆ DCMOTOR22_GCONF_PAR_MODE_DUAL_MOTOR

#define DCMOTOR22_GCONF_PAR_MODE_DUAL_MOTOR   ( 0x00ul )

◆ DCMOTOR22_GCONF_PAR_MODE_SINGLE_MOTOR

#define DCMOTOR22_GCONF_PAR_MODE_SINGLE_MOTOR   ( 0x04ul )

◆ DCMOTOR22_GCONF_PWM_DIRECT

#define DCMOTOR22_GCONF_PWM_DIRECT   ( 0x01ul )

DC Motor 22 GCONF register settings.

Specified GCONF register settings of DC Motor 22 Click driver.

◆ DCMOTOR22_GCONF_TEST_MODE

#define DCMOTOR22_GCONF_TEST_MODE   ( 0x08ul )

◆ DCMOTOR22_GSTAT_CLEAR_ALL

#define DCMOTOR22_GSTAT_CLEAR_ALL   ( 0x07ul )

◆ DCMOTOR22_GSTAT_DRV_ERR

#define DCMOTOR22_GSTAT_DRV_ERR   ( 0x02ul )

◆ DCMOTOR22_GSTAT_RESET

#define DCMOTOR22_GSTAT_RESET   ( 0x01ul )

DC Motor 22 GSTAT register settings.

Specified GSTAT register settings of DC Motor 22 Click driver.

◆ DCMOTOR22_GSTAT_UNDER_3V5

#define DCMOTOR22_GSTAT_UNDER_3V5   ( 0x04ul )

◆ DCMOTOR22_IOIN_A1

#define DCMOTOR22_IOIN_A1   ( 0x0200ul )

◆ DCMOTOR22_IOIN_A2

#define DCMOTOR22_IOIN_A2   ( 0x0100ul )

◆ DCMOTOR22_IOIN_AD0

#define DCMOTOR22_IOIN_AD0   ( 0x04ul )

◆ DCMOTOR22_IOIN_AD1

#define DCMOTOR22_IOIN_AD1   ( 0x08ul )

◆ DCMOTOR22_IOIN_COMP_A1A2

#define DCMOTOR22_IOIN_COMP_A1A2   ( 0x0400ul )

◆ DCMOTOR22_IOIN_COMP_B1B2

#define DCMOTOR22_IOIN_COMP_B1B2   ( 0x0800ul )

◆ DCMOTOR22_IOIN_DIAG

#define DCMOTOR22_IOIN_DIAG   ( 0x10ul )

◆ DCMOTOR22_IOIN_EN

#define DCMOTOR22_IOIN_EN   ( 0x01ul )

DC Motor 22 IOIN register settings.

Specified IOIN register settings of DC Motor 22 Click driver.

◆ DCMOTOR22_IOIN_MODE_IN

#define DCMOTOR22_IOIN_MODE_IN   ( 0x80ul )

◆ DCMOTOR22_IOIN_NSTDBY

#define DCMOTOR22_IOIN_NSTDBY   ( 0x02ul )

◆ DCMOTOR22_IOIN_UART_IN

#define DCMOTOR22_IOIN_UART_IN   ( 0x40ul )

◆ DCMOTOR22_IOIN_UART_ON

#define DCMOTOR22_IOIN_UART_ON   ( 0x20ul )

◆ DCMOTOR22_IOIN_VERSION

#define DCMOTOR22_IOIN_VERSION   ( 0x40000000ul )

◆ DCMOTOR22_IOIN_VERSION_MASK

#define DCMOTOR22_IOIN_VERSION_MASK   ( 0xFF000000ul )

◆ DCMOTOR22_MAX_PWM

#define DCMOTOR22_MAX_PWM   255

DC Motor 22 motor PWM settings.

Specified motor PWM settings for ADC of DC Motor 22 Click driver.

◆ DCMOTOR22_MIN_PWM

#define DCMOTOR22_MIN_PWM   ( -255 )

◆ DCMOTOR22_MOTOR_A

#define DCMOTOR22_MOTOR_A   0x00

DC Motor 22 motor selection values.

Specified motor selection values of DC Motor 22 Click driver.

◆ DCMOTOR22_MOTOR_B

#define DCMOTOR22_MOTOR_B   0x01

◆ DCMOTOR22_NUM_CONVERSIONS

#define DCMOTOR22_NUM_CONVERSIONS   100

DC Motor 22 current calculation values.

Specified current calculation values for ADC of DC Motor 22 Click driver.

◆ DCMOTOR22_PWM_DUTY_0

#define DCMOTOR22_PWM_DUTY_0   ( 0x00ul )

◆ DCMOTOR22_PWM_RES

#define DCMOTOR22_PWM_RES   0x01FF

◆ DCMOTOR22_PWMCONF_FREEWHEEL_FREEWHEELING

#define DCMOTOR22_PWMCONF_FREEWHEEL_FREEWHEELING   ( 0x00100000ul )

◆ DCMOTOR22_PWMCONF_FREEWHEEL_HS_SHORTED

#define DCMOTOR22_PWMCONF_FREEWHEEL_HS_SHORTED   ( 0x00300000ul )

◆ DCMOTOR22_PWMCONF_FREEWHEEL_LS_SHORTED

#define DCMOTOR22_PWMCONF_FREEWHEEL_LS_SHORTED   ( 0x00200000ul )

◆ DCMOTOR22_PWMCONF_FREEWHEEL_NORMAL_OP

#define DCMOTOR22_PWMCONF_FREEWHEEL_NORMAL_OP   ( 0x00000000ul )

DC Motor 22 PWMCONF register settings.

Specified PWMCONF register settings of DC Motor 22 Click driver.

◆ DCMOTOR22_PWMCONF_PWM_FREQ_2_1024

#define DCMOTOR22_PWMCONF_PWM_FREQ_2_1024   ( 0x00000000ul )

◆ DCMOTOR22_PWMCONF_PWM_FREQ_2_410

#define DCMOTOR22_PWMCONF_PWM_FREQ_2_410   ( 0x00030000ul )

◆ DCMOTOR22_PWMCONF_PWM_FREQ_2_512

#define DCMOTOR22_PWMCONF_PWM_FREQ_2_512   ( 0x00020000ul )

◆ DCMOTOR22_PWMCONF_PWM_FREQ_2_683

#define DCMOTOR22_PWMCONF_PWM_FREQ_2_683   ( 0x00010000ul )

◆ DCMOTOR22_READ_TIMEOUT

#define DCMOTOR22_READ_TIMEOUT   1000

◆ DCMOTOR22_READ_WRITE_BIT

#define DCMOTOR22_READ_WRITE_BIT   0x80

◆ DCMOTOR22_REG_CHOPCONF

#define DCMOTOR22_REG_CHOPCONF   0x6C

◆ DCMOTOR22_REG_CURRENT_LIMIT

#define DCMOTOR22_REG_CURRENT_LIMIT   0x10

◆ DCMOTOR22_REG_DRV_STATUS

#define DCMOTOR22_REG_DRV_STATUS   0x6F

◆ DCMOTOR22_REG_GCONF

#define DCMOTOR22_REG_GCONF   0x00

DC Motor 22 registers map.

Specified registers map of DC Motor 22 Click driver.

◆ DCMOTOR22_REG_GSTAT

#define DCMOTOR22_REG_GSTAT   0x01

◆ DCMOTOR22_REG_IFCNT

#define DCMOTOR22_REG_IFCNT   0x02

◆ DCMOTOR22_REG_IOIN

#define DCMOTOR22_REG_IOIN   0x06

◆ DCMOTOR22_REG_PWM_AB

#define DCMOTOR22_REG_PWM_AB   0x22

◆ DCMOTOR22_REG_PWMCONF

#define DCMOTOR22_REG_PWMCONF   0x70

◆ DCMOTOR22_REG_SLAVECONF

#define DCMOTOR22_REG_SLAVECONF   0x03

◆ DCMOTOR22_RETRY_SEND_TIMEOUT

#define DCMOTOR22_RETRY_SEND_TIMEOUT   100

◆ DCMOTOR22_RSENSE

#define DCMOTOR22_RSENSE   0.1

◆ DCMOTOR22_SLAVECONF_SENDDELAY_104BIT

#define DCMOTOR22_SLAVECONF_SENDDELAY_104BIT   ( 0x0C00ul )

◆ DCMOTOR22_SLAVECONF_SENDDELAY_120BIT

#define DCMOTOR22_SLAVECONF_SENDDELAY_120BIT   ( 0x0E00ul )

◆ DCMOTOR22_SLAVECONF_SENDDELAY_24BIT

#define DCMOTOR22_SLAVECONF_SENDDELAY_24BIT   ( 0x0200ul )

◆ DCMOTOR22_SLAVECONF_SENDDELAY_40BIT

#define DCMOTOR22_SLAVECONF_SENDDELAY_40BIT   ( 0x0400ul )

◆ DCMOTOR22_SLAVECONF_SENDDELAY_56BIT

#define DCMOTOR22_SLAVECONF_SENDDELAY_56BIT   ( 0x0600ul )

◆ DCMOTOR22_SLAVECONF_SENDDELAY_72BIT

#define DCMOTOR22_SLAVECONF_SENDDELAY_72BIT   ( 0x0800ul )

◆ DCMOTOR22_SLAVECONF_SENDDELAY_88BIT

#define DCMOTOR22_SLAVECONF_SENDDELAY_88BIT   ( 0x0A00ul )

◆ DCMOTOR22_SLAVECONF_SENDDELAY_8BIT

#define DCMOTOR22_SLAVECONF_SENDDELAY_8BIT   ( 0x0000ul )

DC Motor 22 SLAVECONF register settings.

Specified SLAVECONF register settings of DC Motor 22 Click driver.

◆ DCMOTOR22_SYNC_BYTE

#define DCMOTOR22_SYNC_BYTE   0x05

DC Motor 22 sync byte, read/write bit, and timeout value for read and retry send in milliseconds.

Specified sync byte, read/write bit, and timeout value for read and retry send in milliseconds of DC Motor 22 Click driver.

◆ DCMOTOR22_UART_DEVICE_ADDRESS_0

#define DCMOTOR22_UART_DEVICE_ADDRESS_0   0x00

◆ DCMOTOR22_UART_DEVICE_ADDRESS_1

#define DCMOTOR22_UART_DEVICE_ADDRESS_1   0x01

◆ DCMOTOR22_UART_DEVICE_ADDRESS_2

#define DCMOTOR22_UART_DEVICE_ADDRESS_2   0x02

◆ DCMOTOR22_UART_DEVICE_ADDRESS_3

#define DCMOTOR22_UART_DEVICE_ADDRESS_3   0x03

◆ DCMOTOR22_UART_DEVICE_ADDRESS_MASK

#define DCMOTOR22_UART_DEVICE_ADDRESS_MASK   0x03

◆ DRV_BUFFER_SIZE

#define DRV_BUFFER_SIZE   200

DC Motor 22 driver buffer size.

Specified size of driver ring buffer.

Note
Increase buffer size if needed.