silentstep2 2.1.0.0
Silent Step 2 Registers Settings

Settings for registers of Silent Step 2 Click driver. More...

Macros

#define SILENTSTEP2_GSTAT_RESET   0x00000001ul
 Silent Step 2 global status flags.
 
#define SILENTSTEP2_GSTAT_DRV_ERR   0x00000002ul
 
#define SILENTSTEP2_GSTAT_UV_CP   0x00000004ul
 
#define SILENTSTEP2_GCONF_I_SC_AN_OP_NORMAL   0x00
 Silent Step 2 global configuration flags.
 
#define SILENTSTEP2_GCONF_I_SC_AN_AIN   0x01
 
#define SILENTSTEP2_GCONF_INT_RSE_OP_NORMAL   0x00
 
#define SILENTSTEP2_GCONF_INT_RSE_INT_RSE   0x01
 
#define SILENTSTEP2_GCONF_DISABLE   0x00
 
#define SILENTSTEP2_GCONF_ENABLE   0x01
 
#define SILENTSTEP2_THIGH_DEFAULT   0x00000300ul
 Silent Step 2 velocity setting for different chopper modes and full stepping to maximize torque.
 
#define SILENTSTEP2_THIGH_MAX   0x000FFFFFul
 
#define SILENTSTEP2_TCOOLTHRS_DEFAULT   0x00002700ul
 Silent Step 2 threshold velocity for switching on smart energy.
 
#define SILENTSTEP2_TCOOLTHRS_MAX   0x000FFFFFul
 
#define SILENTSTEP2_CHOPCONF_SEMIN_0   0x00
 Silent Step 2 coolStep smart current control register and stallGuard2 configuration.
 
#define SILENTSTEP2_CHOPCONF_SEMIN_BIT_MASK   0x0F
 
#define SILENTSTEP2_CHOPCONF_SEUP_1   0x00
 
#define SILENTSTEP2_CHOPCONF_SEUP_2   0x01
 
#define SILENTSTEP2_CHOPCONF_SEUP_3   0x02
 
#define SILENTSTEP2_CHOPCONF_SEUP_8   0x03
 
#define SILENTSTEP2_CHOPCONF_SEMAX_0   0x00
 
#define SILENTSTEP2_CHOPCONF_SEMAX_BIT_MASK   0x0F
 
#define SILENTSTEP2_CHOPCONF_SEDN_32   0x00
 
#define SILENTSTEP2_CHOPCONF_SEDN_8   0x01
 
#define SILENTSTEP2_CHOPCONF_SEDN_2   0x02
 
#define SILENTSTEP2_CHOPCONF_SEDN_1   0x03
 
#define SILENTSTEP2_CHOPCONF_SEIMIN_1_2   0x00
 
#define SILENTSTEP2_CHOPCONF_SEIMIN_1_4   0x01
 
#define SILENTSTEP2_CHOPCONF_SGT_M64   0x00
 
#define SILENTSTEP2_CHOPCONF_SGT_P64   0x7F
 
#define SILENTSTEP2_CHOPCONF_SFILT_MODE_STD   0x00
 
#define SILENTSTEP2_CHOPCONF_SFILT_MODE_FLTR   0x01
 
#define SILENTSTEP2_IHOLD_10_32   0x0A
 Silent Step 2 coolStep smart current control register and stallGuard2 configuration.
 
#define SILENTSTEP2_IHOLD_BIT_MASK   0x1F
 
#define SILENTSTEP2_IRUN_10_32   0x0A
 
#define SILENTSTEP2_IRUN_BIT_MASK   0x1F
 
#define SILENTSTEP2_IHOLDDELAY_PWR_DOWN   0x00
 
#define SILENTSTEP2_IHOLDDELAY_32   0x05
 
#define SILENTSTEP2_IHOLDDELAY_BIT_MASK   0x0F
 
#define SILENTSTEP2_TOFF_DIS   0x00
 Silent Step 2 off time setting controls duration of slow decay phase.
 
#define SILENTSTEP2_TOFF_NCLK_140   0x04
 
#define SILENTSTEP2_TOFF_BIT_MASK   0x0F
 
#define SILENTSTEP2_STEP_SPEED_MIN   1
 Silent Step 2 step speed and angle data values.
 
#define SILENTSTEP2_STEP_SPEED_MAX   100
 
#define SILENTSTEP2_ANGLE_360_DEGREES   360.0f
 
#define SILENTSTEP2_CHOPCONF_CHM_MODE_STND   0x00
 Silent Step 2 chopper and driver configuration.
 
#define SILENTSTEP2_CHOPCONF_CHM_CONST_OFF_TIME   0x01
 
#define SILENTSTEP2_CHOPCONF_CHM_BIT_MASK   0x00004000ul
 
#define SILENTSTEP2_CHOPCONF_HE_OS_M3   0x00
 
#define SILENTSTEP2_CHOPCONF_HE_OS_M2   0x01
 
#define SILENTSTEP2_CHOPCONF_HE_OS_M1   0x02
 
#define SILENTSTEP2_CHOPCONF_HE_OS_0   0x03
 
#define SILENTSTEP2_CHOPCONF_HE_OS_1   0x04
 
#define SILENTSTEP2_CHOPCONF_HE_OS_2   0x05
 
#define SILENTSTEP2_CHOPCONF_HE_OS_3   0x06
 
#define SILENTSTEP2_CHOPCONF_HE_OS_4   0x07
 
#define SILENTSTEP2_CHOPCONF_HE_OS_5   0x08
 
#define SILENTSTEP2_CHOPCONF_HE_OS_6   0x09
 
#define SILENTSTEP2_CHOPCONF_HE_OS_7   0x0A
 
#define SILENTSTEP2_CHOPCONF_HE_OS_8   0x0B
 
#define SILENTSTEP2_CHOPCONF_HE_OS_9   0x0C
 
#define SILENTSTEP2_CHOPCONF_HE_OS_10   0x0D
 
#define SILENTSTEP2_CHOPCONF_HE_OS_11   0x0E
 
#define SILENTSTEP2_CHOPCONF_HE_OS_12   0x0F
 
#define SILENTSTEP2_CHOPCONF_HE_OS_BIT_MASK   0x00000780ul
 
#define SILENTSTEP2_CHOPCONF_HSTRT_TFD_0   0x00
 
#define SILENTSTEP2_CHOPCONF_HSTRT_TFD_1   0x01
 
#define SILENTSTEP2_CHOPCONF_HSTRT_TFD_2   0x02
 
#define SILENTSTEP2_CHOPCONF_HSTRT_TFD_3   0x03
 
#define SILENTSTEP2_CHOPCONF_HSTRT_TFD_4   0x04
 
#define SILENTSTEP2_CHOPCONF_HSTRT_TFD_5   0x05
 
#define SILENTSTEP2_CHOPCONF_HSTRT_TFD_6   0x06
 
#define SILENTSTEP2_CHOPCONF_HSTRT_TFD_7   0x07
 
#define SILENTSTEP2_CHOPCONF_HSTRT_TFD_BIT_MASK   0x00000070ul
 
#define SILENTSTEP2_MSLUT_SEL_0   0x00
 Silent Step 2 microstep table entries and defines four segments values.
 
#define SILENTSTEP2_MSLUT_SEL_1   0x01
 
#define SILENTSTEP2_MSLUT_SEL_2   0x02
 
#define SILENTSTEP2_MSLUT_SEL_3   0x03
 
#define SILENTSTEP2_MSLUT_SEL_4   0x04
 
#define SILENTSTEP2_MSLUT_SEL_5   0x05
 
#define SILENTSTEP2_MSLUT_SEL_6   0x06
 
#define SILENTSTEP2_MSLUT_SEL_7   0x07
 
#define SILENTSTEP2_MSLUTSEL_WIDTH_BIT_MASK   0x000000FFul
 
#define SILENTSTEP2_MSLUTSEL_SEG_BIT_MASK   0x00FFFFFFul
 
#define SILENTSTEP2_MSLUTSTART_SIN_BIT_MASK   0x000000FFul
 Silent Step 2 absolute current at microstep table entry values.
 
#define SILENTSTEP2_MSLUTSTART_SIN90_BIT_MASK   0x000000FFul
 
#define SILENTSTEP2_CHOPCONF_MRES_BIT_MASK   0xF0FFFFFFul
 Silent Step 2 chopper configuration bit masks values.
 
#define SILENTSTEP2_CHOPCONF_DEDGE_BIT_MASK   0xDFFFFFFFul
 
#define SILENTSTEP2_CHOPCONF_INTPOL_BIT_MASK   0xEFFFFFFFul
 
#define SILENTSTEP2_CHOPCONF_TBL_BIT_MASK   0xFFFE7FFFul
 
#define SILENTSTEP2_CHOPCONF_TOFF_BIT_MASK   0xFFFFFFF0ul
 
#define SILENTSTEP2_PIN_NONE   0x00
 Silent Step 2 GPIO expander pin setting.
 
#define SILENTSTEP2_PIN_EN   0x01
 
#define SILENTSTEP2_PIN_FT1   0x02
 
#define SILENTSTEP2_PIN_FT2   0x04
 
#define SILENTSTEP2_PIN_ALL   0x07
 
#define SILENTSTEP2_DIRECTION_COUNTERCLOCKWISE   0
 Silent Step 2 step/direction driver mode.
 
#define SILENTSTEP2_DIRECTION_CLOCKWISE   1
 
#define SILENTSTEP2_STEP_DELAY_DEFAULT_100US   100ul
 Silent Step 2 step delay default value.
 
#define SILENTSTEP2_DEVICE_ADDRESS_0   0x70
 Silent Step 2 device address setting.
 
#define SILENTSTEP2_DEVICE_ADDRESS_1   0x72
 
#define SILENTSTEP2_DEVICE_ADDRESS_2   0x74
 
#define SILENTSTEP2_DEVICE_ADDRESS_3   0x76
 
#define SILENTSTEP2_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define SILENTSTEP2_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Silent Step 2 Click driver.

Macro Definition Documentation

◆ SILENTSTEP2_ANGLE_360_DEGREES

#define SILENTSTEP2_ANGLE_360_DEGREES   360.0f

◆ SILENTSTEP2_CHOPCONF_CHM_BIT_MASK

#define SILENTSTEP2_CHOPCONF_CHM_BIT_MASK   0x00004000ul

◆ SILENTSTEP2_CHOPCONF_CHM_CONST_OFF_TIME

#define SILENTSTEP2_CHOPCONF_CHM_CONST_OFF_TIME   0x01

◆ SILENTSTEP2_CHOPCONF_CHM_MODE_STND

#define SILENTSTEP2_CHOPCONF_CHM_MODE_STND   0x00

Silent Step 2 chopper and driver configuration.

Specified chopper and driver configuration of Silent Step 2 Click driver.

◆ SILENTSTEP2_CHOPCONF_DEDGE_BIT_MASK

#define SILENTSTEP2_CHOPCONF_DEDGE_BIT_MASK   0xDFFFFFFFul

◆ SILENTSTEP2_CHOPCONF_HE_OS_0

#define SILENTSTEP2_CHOPCONF_HE_OS_0   0x03

◆ SILENTSTEP2_CHOPCONF_HE_OS_1

#define SILENTSTEP2_CHOPCONF_HE_OS_1   0x04

◆ SILENTSTEP2_CHOPCONF_HE_OS_10

#define SILENTSTEP2_CHOPCONF_HE_OS_10   0x0D

◆ SILENTSTEP2_CHOPCONF_HE_OS_11

#define SILENTSTEP2_CHOPCONF_HE_OS_11   0x0E

◆ SILENTSTEP2_CHOPCONF_HE_OS_12

#define SILENTSTEP2_CHOPCONF_HE_OS_12   0x0F

◆ SILENTSTEP2_CHOPCONF_HE_OS_2

#define SILENTSTEP2_CHOPCONF_HE_OS_2   0x05

◆ SILENTSTEP2_CHOPCONF_HE_OS_3

#define SILENTSTEP2_CHOPCONF_HE_OS_3   0x06

◆ SILENTSTEP2_CHOPCONF_HE_OS_4

#define SILENTSTEP2_CHOPCONF_HE_OS_4   0x07

◆ SILENTSTEP2_CHOPCONF_HE_OS_5

#define SILENTSTEP2_CHOPCONF_HE_OS_5   0x08

◆ SILENTSTEP2_CHOPCONF_HE_OS_6

#define SILENTSTEP2_CHOPCONF_HE_OS_6   0x09

◆ SILENTSTEP2_CHOPCONF_HE_OS_7

#define SILENTSTEP2_CHOPCONF_HE_OS_7   0x0A

◆ SILENTSTEP2_CHOPCONF_HE_OS_8

#define SILENTSTEP2_CHOPCONF_HE_OS_8   0x0B

◆ SILENTSTEP2_CHOPCONF_HE_OS_9

#define SILENTSTEP2_CHOPCONF_HE_OS_9   0x0C

◆ SILENTSTEP2_CHOPCONF_HE_OS_BIT_MASK

#define SILENTSTEP2_CHOPCONF_HE_OS_BIT_MASK   0x00000780ul

◆ SILENTSTEP2_CHOPCONF_HE_OS_M1

#define SILENTSTEP2_CHOPCONF_HE_OS_M1   0x02

◆ SILENTSTEP2_CHOPCONF_HE_OS_M2

#define SILENTSTEP2_CHOPCONF_HE_OS_M2   0x01

◆ SILENTSTEP2_CHOPCONF_HE_OS_M3

#define SILENTSTEP2_CHOPCONF_HE_OS_M3   0x00

◆ SILENTSTEP2_CHOPCONF_HSTRT_TFD_0

#define SILENTSTEP2_CHOPCONF_HSTRT_TFD_0   0x00

◆ SILENTSTEP2_CHOPCONF_HSTRT_TFD_1

#define SILENTSTEP2_CHOPCONF_HSTRT_TFD_1   0x01

◆ SILENTSTEP2_CHOPCONF_HSTRT_TFD_2

#define SILENTSTEP2_CHOPCONF_HSTRT_TFD_2   0x02

◆ SILENTSTEP2_CHOPCONF_HSTRT_TFD_3

#define SILENTSTEP2_CHOPCONF_HSTRT_TFD_3   0x03

◆ SILENTSTEP2_CHOPCONF_HSTRT_TFD_4

#define SILENTSTEP2_CHOPCONF_HSTRT_TFD_4   0x04

◆ SILENTSTEP2_CHOPCONF_HSTRT_TFD_5

#define SILENTSTEP2_CHOPCONF_HSTRT_TFD_5   0x05

◆ SILENTSTEP2_CHOPCONF_HSTRT_TFD_6

#define SILENTSTEP2_CHOPCONF_HSTRT_TFD_6   0x06

◆ SILENTSTEP2_CHOPCONF_HSTRT_TFD_7

#define SILENTSTEP2_CHOPCONF_HSTRT_TFD_7   0x07

◆ SILENTSTEP2_CHOPCONF_HSTRT_TFD_BIT_MASK

#define SILENTSTEP2_CHOPCONF_HSTRT_TFD_BIT_MASK   0x00000070ul

◆ SILENTSTEP2_CHOPCONF_INTPOL_BIT_MASK

#define SILENTSTEP2_CHOPCONF_INTPOL_BIT_MASK   0xEFFFFFFFul

◆ SILENTSTEP2_CHOPCONF_MRES_BIT_MASK

#define SILENTSTEP2_CHOPCONF_MRES_BIT_MASK   0xF0FFFFFFul

Silent Step 2 chopper configuration bit masks values.

Specified micro step resolution values of Silent Step 2 Click driver.

◆ SILENTSTEP2_CHOPCONF_SEDN_1

#define SILENTSTEP2_CHOPCONF_SEDN_1   0x03

◆ SILENTSTEP2_CHOPCONF_SEDN_2

#define SILENTSTEP2_CHOPCONF_SEDN_2   0x02

◆ SILENTSTEP2_CHOPCONF_SEDN_32

#define SILENTSTEP2_CHOPCONF_SEDN_32   0x00

◆ SILENTSTEP2_CHOPCONF_SEDN_8

#define SILENTSTEP2_CHOPCONF_SEDN_8   0x01

◆ SILENTSTEP2_CHOPCONF_SEIMIN_1_2

#define SILENTSTEP2_CHOPCONF_SEIMIN_1_2   0x00

◆ SILENTSTEP2_CHOPCONF_SEIMIN_1_4

#define SILENTSTEP2_CHOPCONF_SEIMIN_1_4   0x01

◆ SILENTSTEP2_CHOPCONF_SEMAX_0

#define SILENTSTEP2_CHOPCONF_SEMAX_0   0x00

◆ SILENTSTEP2_CHOPCONF_SEMAX_BIT_MASK

#define SILENTSTEP2_CHOPCONF_SEMAX_BIT_MASK   0x0F

◆ SILENTSTEP2_CHOPCONF_SEMIN_0

#define SILENTSTEP2_CHOPCONF_SEMIN_0   0x00

Silent Step 2 coolStep smart current control register and stallGuard2 configuration.

Specified coolStep smart current control register and stallGuard2 configuration of Silent Step 2 Click driver.

◆ SILENTSTEP2_CHOPCONF_SEMIN_BIT_MASK

#define SILENTSTEP2_CHOPCONF_SEMIN_BIT_MASK   0x0F

◆ SILENTSTEP2_CHOPCONF_SEUP_1

#define SILENTSTEP2_CHOPCONF_SEUP_1   0x00

◆ SILENTSTEP2_CHOPCONF_SEUP_2

#define SILENTSTEP2_CHOPCONF_SEUP_2   0x01

◆ SILENTSTEP2_CHOPCONF_SEUP_3

#define SILENTSTEP2_CHOPCONF_SEUP_3   0x02

◆ SILENTSTEP2_CHOPCONF_SEUP_8

#define SILENTSTEP2_CHOPCONF_SEUP_8   0x03

◆ SILENTSTEP2_CHOPCONF_SFILT_MODE_FLTR

#define SILENTSTEP2_CHOPCONF_SFILT_MODE_FLTR   0x01

◆ SILENTSTEP2_CHOPCONF_SFILT_MODE_STD

#define SILENTSTEP2_CHOPCONF_SFILT_MODE_STD   0x00

◆ SILENTSTEP2_CHOPCONF_SGT_M64

#define SILENTSTEP2_CHOPCONF_SGT_M64   0x00

◆ SILENTSTEP2_CHOPCONF_SGT_P64

#define SILENTSTEP2_CHOPCONF_SGT_P64   0x7F

◆ SILENTSTEP2_CHOPCONF_TBL_BIT_MASK

#define SILENTSTEP2_CHOPCONF_TBL_BIT_MASK   0xFFFE7FFFul

◆ SILENTSTEP2_CHOPCONF_TOFF_BIT_MASK

#define SILENTSTEP2_CHOPCONF_TOFF_BIT_MASK   0xFFFFFFF0ul

◆ SILENTSTEP2_DEVICE_ADDRESS_0

#define SILENTSTEP2_DEVICE_ADDRESS_0   0x70

Silent Step 2 device address setting.

Specified setting for device slave address selection of Silent Step 2 Click driver.

◆ SILENTSTEP2_DEVICE_ADDRESS_1

#define SILENTSTEP2_DEVICE_ADDRESS_1   0x72

◆ SILENTSTEP2_DEVICE_ADDRESS_2

#define SILENTSTEP2_DEVICE_ADDRESS_2   0x74

◆ SILENTSTEP2_DEVICE_ADDRESS_3

#define SILENTSTEP2_DEVICE_ADDRESS_3   0x76

◆ SILENTSTEP2_DIRECTION_CLOCKWISE

#define SILENTSTEP2_DIRECTION_CLOCKWISE   1

◆ SILENTSTEP2_DIRECTION_COUNTERCLOCKWISE

#define SILENTSTEP2_DIRECTION_COUNTERCLOCKWISE   0

Silent Step 2 step/direction driver mode.

Specified step/direction driver mode of Silent Step 2 Click driver.

◆ SILENTSTEP2_GCONF_DISABLE

#define SILENTSTEP2_GCONF_DISABLE   0x00

◆ SILENTSTEP2_GCONF_ENABLE

#define SILENTSTEP2_GCONF_ENABLE   0x01

◆ SILENTSTEP2_GCONF_I_SC_AN_AIN

#define SILENTSTEP2_GCONF_I_SC_AN_AIN   0x01

◆ SILENTSTEP2_GCONF_I_SC_AN_OP_NORMAL

#define SILENTSTEP2_GCONF_I_SC_AN_OP_NORMAL   0x00

Silent Step 2 global configuration flags.

Specified global configuration flags of Silent Step 2 Click driver.

◆ SILENTSTEP2_GCONF_INT_RSE_INT_RSE

#define SILENTSTEP2_GCONF_INT_RSE_INT_RSE   0x01

◆ SILENTSTEP2_GCONF_INT_RSE_OP_NORMAL

#define SILENTSTEP2_GCONF_INT_RSE_OP_NORMAL   0x00

◆ SILENTSTEP2_GSTAT_DRV_ERR

#define SILENTSTEP2_GSTAT_DRV_ERR   0x00000002ul

◆ SILENTSTEP2_GSTAT_RESET

#define SILENTSTEP2_GSTAT_RESET   0x00000001ul

Silent Step 2 global status flags.

Specified global status flags of Silent Step 2 Click driver.

◆ SILENTSTEP2_GSTAT_UV_CP

#define SILENTSTEP2_GSTAT_UV_CP   0x00000004ul

◆ SILENTSTEP2_IHOLD_10_32

#define SILENTSTEP2_IHOLD_10_32   0x0A

Silent Step 2 coolStep smart current control register and stallGuard2 configuration.

Specified coolStep smart current control register and stallGuard2 configuration of Silent Step 2 Click driver.

◆ SILENTSTEP2_IHOLD_BIT_MASK

#define SILENTSTEP2_IHOLD_BIT_MASK   0x1F

◆ SILENTSTEP2_IHOLDDELAY_32

#define SILENTSTEP2_IHOLDDELAY_32   0x05

◆ SILENTSTEP2_IHOLDDELAY_BIT_MASK

#define SILENTSTEP2_IHOLDDELAY_BIT_MASK   0x0F

◆ SILENTSTEP2_IHOLDDELAY_PWR_DOWN

#define SILENTSTEP2_IHOLDDELAY_PWR_DOWN   0x00

◆ SILENTSTEP2_IRUN_10_32

#define SILENTSTEP2_IRUN_10_32   0x0A

◆ SILENTSTEP2_IRUN_BIT_MASK

#define SILENTSTEP2_IRUN_BIT_MASK   0x1F

◆ SILENTSTEP2_MSLUT_SEL_0

#define SILENTSTEP2_MSLUT_SEL_0   0x00

Silent Step 2 microstep table entries and defines four segments values.

Specified microstep table entries and defines four segments values of Silent Step 2 Click driver.

◆ SILENTSTEP2_MSLUT_SEL_1

#define SILENTSTEP2_MSLUT_SEL_1   0x01

◆ SILENTSTEP2_MSLUT_SEL_2

#define SILENTSTEP2_MSLUT_SEL_2   0x02

◆ SILENTSTEP2_MSLUT_SEL_3

#define SILENTSTEP2_MSLUT_SEL_3   0x03

◆ SILENTSTEP2_MSLUT_SEL_4

#define SILENTSTEP2_MSLUT_SEL_4   0x04

◆ SILENTSTEP2_MSLUT_SEL_5

#define SILENTSTEP2_MSLUT_SEL_5   0x05

◆ SILENTSTEP2_MSLUT_SEL_6

#define SILENTSTEP2_MSLUT_SEL_6   0x06

◆ SILENTSTEP2_MSLUT_SEL_7

#define SILENTSTEP2_MSLUT_SEL_7   0x07

◆ SILENTSTEP2_MSLUTSEL_SEG_BIT_MASK

#define SILENTSTEP2_MSLUTSEL_SEG_BIT_MASK   0x00FFFFFFul

◆ SILENTSTEP2_MSLUTSEL_WIDTH_BIT_MASK

#define SILENTSTEP2_MSLUTSEL_WIDTH_BIT_MASK   0x000000FFul

◆ SILENTSTEP2_MSLUTSTART_SIN90_BIT_MASK

#define SILENTSTEP2_MSLUTSTART_SIN90_BIT_MASK   0x000000FFul

◆ SILENTSTEP2_MSLUTSTART_SIN_BIT_MASK

#define SILENTSTEP2_MSLUTSTART_SIN_BIT_MASK   0x000000FFul

Silent Step 2 absolute current at microstep table entry values.

Specified absolute current at microstep table entry values of Silent Step 2 Click driver.

◆ SILENTSTEP2_PIN_ALL

#define SILENTSTEP2_PIN_ALL   0x07

◆ SILENTSTEP2_PIN_EN

#define SILENTSTEP2_PIN_EN   0x01

◆ SILENTSTEP2_PIN_FT1

#define SILENTSTEP2_PIN_FT1   0x02

◆ SILENTSTEP2_PIN_FT2

#define SILENTSTEP2_PIN_FT2   0x04

◆ SILENTSTEP2_PIN_NONE

#define SILENTSTEP2_PIN_NONE   0x00

Silent Step 2 GPIO expander pin setting.

Specified setting for pin bit mask of Silent Step 2 Click driver.

◆ SILENTSTEP2_SET_DATA_SAMPLE_EDGE

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

◆ SILENTSTEP2_SET_DATA_SAMPLE_MIDDLE

#define SILENTSTEP2_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ SILENTSTEP2_STEP_DELAY_DEFAULT_100US

#define SILENTSTEP2_STEP_DELAY_DEFAULT_100US   100ul

Silent Step 2 step delay default value.

Specified step delay default value of Silent Step 2 Click driver.

◆ SILENTSTEP2_STEP_SPEED_MAX

#define SILENTSTEP2_STEP_SPEED_MAX   100

◆ SILENTSTEP2_STEP_SPEED_MIN

#define SILENTSTEP2_STEP_SPEED_MIN   1

Silent Step 2 step speed and angle data values.

Specified step speed and angle data values of Silent Step 2 Click driver.

◆ SILENTSTEP2_TCOOLTHRS_DEFAULT

#define SILENTSTEP2_TCOOLTHRS_DEFAULT   0x00002700ul

Silent Step 2 threshold velocity for switching on smart energy.

Specified threshold velocity for switching on smart energy of Silent Step 2 Click driver.

◆ SILENTSTEP2_TCOOLTHRS_MAX

#define SILENTSTEP2_TCOOLTHRS_MAX   0x000FFFFFul

◆ SILENTSTEP2_THIGH_DEFAULT

#define SILENTSTEP2_THIGH_DEFAULT   0x00000300ul

Silent Step 2 velocity setting for different chopper modes and full stepping to maximize torque.

Specified velocity setting for different chopper modes and full stepping to maximize torque of Silent Step 2 Click driver.

◆ SILENTSTEP2_THIGH_MAX

#define SILENTSTEP2_THIGH_MAX   0x000FFFFFul

◆ SILENTSTEP2_TOFF_BIT_MASK

#define SILENTSTEP2_TOFF_BIT_MASK   0x0F

◆ SILENTSTEP2_TOFF_DIS

#define SILENTSTEP2_TOFF_DIS   0x00

Silent Step 2 off time setting controls duration of slow decay phase.

Specified off time setting controls duration of slow decay phase of Silent Step 2 Click driver.

◆ SILENTSTEP2_TOFF_NCLK_140

#define SILENTSTEP2_TOFF_NCLK_140   0x04