stepper15 2.0.0.0
Stepper 15 Registers Settings

Settings for registers of Stepper 15 Click driver. More...

Macros

#define STEPPER15_SET_DIRECTION_BIT_MASK   0xFB
 Stepper 15 direction description setting.
 
#define STEPPER15_SET_DIRECTION_CCW   0x00
 
#define STEPPER15_SET_DIRECTION_CW   0x04
 
#define STEPPER15_SET_WORK_MODE_BIT_MASK   0xFE
 Stepper 15 work mode description setting.
 
#define STEPPER15_SET_WORK_MODE_SLEEP   0x00
 
#define STEPPER15_SET_WORK_MODE_ENABLE_DEVICE   0x01
 
#define STEPPER15_SET_OUT_MODE_BIT_MASK   0xFD
 Stepper 15 work mode description setting.
 
#define STEPPER15_SET_OUT_MODE_DEVICE_OUTPUTS_ENABLE   0x00
 
#define STEPPER15_SET_OUT_MODE_DEVICE_OUTPUTS_DISABLE   0x02
 
#define STEPPER15_SET_CONFIG_DEFAULT   0xF8
 Stepper 15 configuration description setting.
 
#define STEPPER15_FAULT_ST_OL_MASK   0x01
 Stepper 15 IC fault status register description setting.
 
#define STEPPER15_FAULT_ST_OT_MASK   0x02
 
#define STEPPER15_FAULT_ST_STL_SLIP_MASK   0x04
 
#define STEPPER15_FAULT_ST_OCP_MASK   0x08
 
#define STEPPER15_FAULT_ST_CPUV_MASK   0x10
 
#define STEPPER15_FAULT_ST_UVLO_MASK   0x20
 
#define STEPPER15_FAULT_ST_SPI_ERROR_MASK   0x40
 
#define STEPPER15_FAULT_ST_FAULT_MASK   0x80
 
#define STEPPER15_DIAG_1_OCP_HS1_A_MASK   0x01
 Stepper 15 Diagnostic register 1 description setting.
 
#define STEPPER15_DIAG_1_OCP_LS1_A_MASK   0x02
 
#define STEPPER15_DIAG_1_OCP_HS2_A_MASK   0x04
 
#define STEPPER15_DIAG_1_OCP_LS2_A_MASK   0x08
 
#define STEPPER15_DIAG_1_OCP_HS1_B_MASK   0x10
 
#define STEPPER15_DIAG_1_OCP_LS1_B_MASK   0x20
 
#define STEPPER15_DIAG_1_OCP_HS2_B_MASK   0x40
 
#define STEPPER15_DIAG_1_OCP_LS2_B_MASK   0x80
 
#define STEPPER15_DIAG_2_OL_A_MASK   0x01
 Stepper 15 Diagnostic register 2 description setting.
 
#define STEPPER15_DIAG_2_OL_B_MASK   0x02
 
#define STEPPER15_DIAG_2_SLIP_MASK   0x04
 
#define STEPPER15_DIAG_2_STALL_MASK   0x08
 
#define STEPPER15_DIAG_2_STL_LRN_OK_MASK   0x10
 
#define STEPPER15_DIAG_2_OTS_MASK   0x20
 
#define STEPPER15_DIAG_2_OTW_MASK   0x40
 
#define STEPPER15_DIAG_2_UTW_MASK   0x80
 
#define STEPPER15_CTRL1_SLEW_RATE_MASK   0x03
 Stepper 15 CTRL1 register description setting.
 
#define STEPPER15_CTRL1_EN_NSR_MASK   0x04
 
#define STEPPER15_CTRL1_RSVD1_MASK   0x08
 
#define STEPPER15_CTRL1_TRQ_DAC_MASK   0xF0
 
#define STEPPER15_SET_CTRL1_TRQ_100   0x00
 
#define STEPPER15_SET_CTRL1_TRQ_93_75   0x10
 
#define STEPPER15_SET_CTRL1_TRQ_87_5   0x20
 
#define STEPPER15_SET_CTRL1_TRQ_81_25   0x30
 
#define STEPPER15_SET_CTRL1_TRQ_75   0x40
 
#define STEPPER15_SET_CTRL1_TRQ_68_75   0x50
 
#define STEPPER15_SET_CTRL1_TRQ_62_5   0x60
 
#define STEPPER15_SET_CTRL1_TRQ_56_25   0x70
 
#define STEPPER15_SET_CTRL1_TRQ_50   0x80
 
#define STEPPER15_SET_CTRL1_TRQ_43_75   0x90
 
#define STEPPER15_SET_CTRL1_TRQ_37_5   0xA0
 
#define STEPPER15_SET_CTRL1_TRQ_31_25   0xB0
 
#define STEPPER15_SET_CTRL1_TRQ_25   0xC0
 
#define STEPPER15_SET_CTRL1_TRQ_18_75   0xD0
 
#define STEPPER15_SET_CTRL1_TRQ_12_5   0xE0
 
#define STEPPER15_SET_CTRL1_TRQ_6_25   0xF0
 
#define STEPPER15_CTRL2_DECAY_MASK   0x07
 Stepper 15 CTRL2 register description setting.
 
#define STEPPER15_CTRL2_TOFF_MASK   0x18
 
#define STEPPER15_CTRL2_RSVD2_MASK   0x60
 
#define STEPPER15_CTRL2_DIS_OUT_MASK   0x80
 
#define STEPPER15_SET_CTRL2_OUTPUT_ENABLE   0x00
 
#define STEPPER15_SET_CTRL2_OUTPUT_DISABLE   0x80
 
#define STEPPER15_SET_CTRL2_TOFF_7_us   0x00
 
#define STEPPER15_SET_CTRL2_TOFF_16_us   0x08
 
#define STEPPER15_SET_CTRL2_TOFF_24_us   0x10
 
#define STEPPER15_SET_CTRL2_TOFF_32_us   0x18
 
#define STEPPER15_SET_CTRL2_SMART_TUNE_RIPPLE_CTRL   0x07
 
#define STEPPER15_CTRL3_MICROSTEP_MODE_MASK   0x0F
 Stepper 15 CTRL3 register description setting.
 
#define STEPPER15_CTRL3_SPI_STEP_MASK   0x10
 
#define STEPPER15_CTRL3_SPI_DIR_MASK   0x20
 
#define STEPPER15_CTRL3_STEP_MASK   0x40
 
#define STEPPER15_CTRL3_DIR_MASK   0x80
 
#define STEPPER15_SET_SPI_DIR_INPUT_PIN   0x00
 
#define STEPPER15_SET_SPI_DIR_SPI   0x80
 
#define STEPPER15_SET_SPI_STEP_INPUT_PIN   0x00
 
#define STEPPER15_SET_SPI_STEP_SPI   0x40
 
#define STEPPER15_SET_CTRL3_SET_MICROSTEP_MODE_FULL_STEP   0x00
 
#define STEPPER15_CTRL4_TW_REP_MASK   0x01
 Stepper 15 CTRL4 register description setting.
 
#define STEPPER15_CTRL4_OTSD_MODE_MASK   0x02
 
#define STEPPER15_CTRL4_OCP_MODE_MASK   0x04
 
#define STEPPER15_CTRL4_EN_OL_MASK   0x08
 
#define STEPPER15_CTRL4_LOCK_MASK   0x70
 
#define STEPPER15_CTRL4_CLR_FLT_MASK   0x80
 
#define STEPPER15_SET_CTRL4_CLR_FLT   0x80
 
#define STEPPER15_SET_CTRL4_UNLOCK_ALL_REG   0x30
 
#define STEPPER15_CTRL5_SLIP_REP_MASK   0x01
 Stepper 15 CTRL5 register description setting.
 
#define STEPPER15_CTRL5_EN_SLIP_MASK   0x02
 
#define STEPPER15_CTRL5_EN_STLFCHG_MASK   0x04
 
#define STEPPER15_CTRL5_STL_REP_MASK   0x08
 
#define STEPPER15_SET_CTRL5_REPORTED_ON_FAULT   0x08
 
#define STEPPER15_CTRL6_STALL_TH_MASK   0xFF
 Stepper 15 CTRL6 register description setting.

 
#define STEPPER15_CTRL7_STALL_TH_MASK   0xFF
 Stepper 15 CTRL7 register description setting.

 
#define STEPPER15_CTRL8_REV_ID_MASK   0x0F
 Stepper 15 CTRL8 register description setting.
 
#define STEPPER15_CTRL8_STL_UPDATE_MODE_MASK   0x10
 
#define STEPPER15_CTRL8_UTW_REP_MASK   0x20
 
#define STEPPER15_CTRL8_RSVD3_MASK   0xC0
 
#define STEPPER15_SET_DEV_ADDR   0x70
 Stepper 15 device address setting.
 

Detailed Description

Settings for registers of Stepper 15 Click driver.

Macro Definition Documentation

◆ STEPPER15_CTRL1_EN_NSR_MASK

#define STEPPER15_CTRL1_EN_NSR_MASK   0x04

◆ STEPPER15_CTRL1_RSVD1_MASK

#define STEPPER15_CTRL1_RSVD1_MASK   0x08

◆ STEPPER15_CTRL1_SLEW_RATE_MASK

#define STEPPER15_CTRL1_SLEW_RATE_MASK   0x03

Stepper 15 CTRL1 register description setting.

Specified the CTRL1 register, Torque DAC, synchronous rectification, slew rate setting for description of Stepper 15 Click driver.

◆ STEPPER15_CTRL1_TRQ_DAC_MASK

#define STEPPER15_CTRL1_TRQ_DAC_MASK   0xF0

◆ STEPPER15_CTRL2_DECAY_MASK

#define STEPPER15_CTRL2_DECAY_MASK   0x07

Stepper 15 CTRL2 register description setting.

Specified the CTRL3 register,
Disable, TOFF, DECAY setting for description of Stepper 15 Click driver.

◆ STEPPER15_CTRL2_DIS_OUT_MASK

#define STEPPER15_CTRL2_DIS_OUT_MASK   0x80

◆ STEPPER15_CTRL2_RSVD2_MASK

#define STEPPER15_CTRL2_RSVD2_MASK   0x60

◆ STEPPER15_CTRL2_TOFF_MASK

#define STEPPER15_CTRL2_TOFF_MASK   0x18

◆ STEPPER15_CTRL3_DIR_MASK

#define STEPPER15_CTRL3_DIR_MASK   0x80

◆ STEPPER15_CTRL3_MICROSTEP_MODE_MASK

#define STEPPER15_CTRL3_MICROSTEP_MODE_MASK   0x0F

Stepper 15 CTRL3 register description setting.

Specified the CTRL3 register, Step, dir, microstep setting for description of Stepper 15 Click driver.

◆ STEPPER15_CTRL3_SPI_DIR_MASK

#define STEPPER15_CTRL3_SPI_DIR_MASK   0x20

◆ STEPPER15_CTRL3_SPI_STEP_MASK

#define STEPPER15_CTRL3_SPI_STEP_MASK   0x10

◆ STEPPER15_CTRL3_STEP_MASK

#define STEPPER15_CTRL3_STEP_MASK   0x40

◆ STEPPER15_CTRL4_CLR_FLT_MASK

#define STEPPER15_CTRL4_CLR_FLT_MASK   0x80

◆ STEPPER15_CTRL4_EN_OL_MASK

#define STEPPER15_CTRL4_EN_OL_MASK   0x08

◆ STEPPER15_CTRL4_LOCK_MASK

#define STEPPER15_CTRL4_LOCK_MASK   0x70

◆ STEPPER15_CTRL4_OCP_MODE_MASK

#define STEPPER15_CTRL4_OCP_MODE_MASK   0x04

◆ STEPPER15_CTRL4_OTSD_MODE_MASK

#define STEPPER15_CTRL4_OTSD_MODE_MASK   0x02

◆ STEPPER15_CTRL4_TW_REP_MASK

#define STEPPER15_CTRL4_TW_REP_MASK   0x01

Stepper 15 CTRL4 register description setting.

Specified the CTRL4 register, Clear fault, lock, OL, OCP, OTSD, OTW setting for description of Stepper 15 Click driver.

◆ STEPPER15_CTRL5_EN_SLIP_MASK

#define STEPPER15_CTRL5_EN_SLIP_MASK   0x02

◆ STEPPER15_CTRL5_EN_STLFCHG_MASK

#define STEPPER15_CTRL5_EN_STLFCHG_MASK   0x04

◆ STEPPER15_CTRL5_SLIP_REP_MASK

#define STEPPER15_CTRL5_SLIP_REP_MASK   0x01

Stepper 15 CTRL5 register description setting.

Specified the CTRL5 register, Stall detection configuration setting for description of Stepper 15 Click driver.

◆ STEPPER15_CTRL5_STL_REP_MASK

#define STEPPER15_CTRL5_STL_REP_MASK   0x08

◆ STEPPER15_CTRL6_STALL_TH_MASK

#define STEPPER15_CTRL6_STALL_TH_MASK   0xFF

Stepper 15 CTRL6 register description setting.

Specified the CTRL6 register, Stall threshold
for description of Stepper 15 Click driver.

◆ STEPPER15_CTRL7_STALL_TH_MASK

#define STEPPER15_CTRL7_STALL_TH_MASK   0xFF

Stepper 15 CTRL7 register description setting.

Specified the CTRL7 register, Torque count
for description of Stepper 15 Click driver.

◆ STEPPER15_CTRL8_REV_ID_MASK

#define STEPPER15_CTRL8_REV_ID_MASK   0x0F

Stepper 15 CTRL8 register description setting.

Specified the CTRL8 register, UTW and Rev ID for description of Stepper 15 Click driver.

◆ STEPPER15_CTRL8_RSVD3_MASK

#define STEPPER15_CTRL8_RSVD3_MASK   0xC0

◆ STEPPER15_CTRL8_STL_UPDATE_MODE_MASK

#define STEPPER15_CTRL8_STL_UPDATE_MODE_MASK   0x10

◆ STEPPER15_CTRL8_UTW_REP_MASK

#define STEPPER15_CTRL8_UTW_REP_MASK   0x20

◆ STEPPER15_DIAG_1_OCP_HS1_A_MASK

#define STEPPER15_DIAG_1_OCP_HS1_A_MASK   0x01

Stepper 15 Diagnostic register 1 description setting.

Specified the diagnostic register 1 setting for description of Stepper 15 Click driver.

◆ STEPPER15_DIAG_1_OCP_HS1_B_MASK

#define STEPPER15_DIAG_1_OCP_HS1_B_MASK   0x10

◆ STEPPER15_DIAG_1_OCP_HS2_A_MASK

#define STEPPER15_DIAG_1_OCP_HS2_A_MASK   0x04

◆ STEPPER15_DIAG_1_OCP_HS2_B_MASK

#define STEPPER15_DIAG_1_OCP_HS2_B_MASK   0x40

◆ STEPPER15_DIAG_1_OCP_LS1_A_MASK

#define STEPPER15_DIAG_1_OCP_LS1_A_MASK   0x02

◆ STEPPER15_DIAG_1_OCP_LS1_B_MASK

#define STEPPER15_DIAG_1_OCP_LS1_B_MASK   0x20

◆ STEPPER15_DIAG_1_OCP_LS2_A_MASK

#define STEPPER15_DIAG_1_OCP_LS2_A_MASK   0x08

◆ STEPPER15_DIAG_1_OCP_LS2_B_MASK

#define STEPPER15_DIAG_1_OCP_LS2_B_MASK   0x80

◆ STEPPER15_DIAG_2_OL_A_MASK

#define STEPPER15_DIAG_2_OL_A_MASK   0x01

Stepper 15 Diagnostic register 2 description setting.

Specified the diagnostic register 1 setting for other faults and warnings setting for description of Stepper 15 Click driver.

◆ STEPPER15_DIAG_2_OL_B_MASK

#define STEPPER15_DIAG_2_OL_B_MASK   0x02

◆ STEPPER15_DIAG_2_OTS_MASK

#define STEPPER15_DIAG_2_OTS_MASK   0x20

◆ STEPPER15_DIAG_2_OTW_MASK

#define STEPPER15_DIAG_2_OTW_MASK   0x40

◆ STEPPER15_DIAG_2_SLIP_MASK

#define STEPPER15_DIAG_2_SLIP_MASK   0x04

◆ STEPPER15_DIAG_2_STALL_MASK

#define STEPPER15_DIAG_2_STALL_MASK   0x08

◆ STEPPER15_DIAG_2_STL_LRN_OK_MASK

#define STEPPER15_DIAG_2_STL_LRN_OK_MASK   0x10

◆ STEPPER15_DIAG_2_UTW_MASK

#define STEPPER15_DIAG_2_UTW_MASK   0x80

◆ STEPPER15_FAULT_ST_CPUV_MASK

#define STEPPER15_FAULT_ST_CPUV_MASK   0x10

◆ STEPPER15_FAULT_ST_FAULT_MASK

#define STEPPER15_FAULT_ST_FAULT_MASK   0x80

◆ STEPPER15_FAULT_ST_OCP_MASK

#define STEPPER15_FAULT_ST_OCP_MASK   0x08

◆ STEPPER15_FAULT_ST_OL_MASK

#define STEPPER15_FAULT_ST_OL_MASK   0x01

Stepper 15 IC fault status register description setting.

Specified the IC fault status register setting for description of Stepper 15 Click driver.

◆ STEPPER15_FAULT_ST_OT_MASK

#define STEPPER15_FAULT_ST_OT_MASK   0x02

◆ STEPPER15_FAULT_ST_SPI_ERROR_MASK

#define STEPPER15_FAULT_ST_SPI_ERROR_MASK   0x40

◆ STEPPER15_FAULT_ST_STL_SLIP_MASK

#define STEPPER15_FAULT_ST_STL_SLIP_MASK   0x04

◆ STEPPER15_FAULT_ST_UVLO_MASK

#define STEPPER15_FAULT_ST_UVLO_MASK   0x20

◆ STEPPER15_SET_CONFIG_DEFAULT

#define STEPPER15_SET_CONFIG_DEFAULT   0xF8

Stepper 15 configuration description setting.

Specified the configuration setting for description of Stepper 15 Click driver.

◆ STEPPER15_SET_CTRL1_TRQ_100

#define STEPPER15_SET_CTRL1_TRQ_100   0x00

◆ STEPPER15_SET_CTRL1_TRQ_12_5

#define STEPPER15_SET_CTRL1_TRQ_12_5   0xE0

◆ STEPPER15_SET_CTRL1_TRQ_18_75

#define STEPPER15_SET_CTRL1_TRQ_18_75   0xD0

◆ STEPPER15_SET_CTRL1_TRQ_25

#define STEPPER15_SET_CTRL1_TRQ_25   0xC0

◆ STEPPER15_SET_CTRL1_TRQ_31_25

#define STEPPER15_SET_CTRL1_TRQ_31_25   0xB0

◆ STEPPER15_SET_CTRL1_TRQ_37_5

#define STEPPER15_SET_CTRL1_TRQ_37_5   0xA0

◆ STEPPER15_SET_CTRL1_TRQ_43_75

#define STEPPER15_SET_CTRL1_TRQ_43_75   0x90

◆ STEPPER15_SET_CTRL1_TRQ_50

#define STEPPER15_SET_CTRL1_TRQ_50   0x80

◆ STEPPER15_SET_CTRL1_TRQ_56_25

#define STEPPER15_SET_CTRL1_TRQ_56_25   0x70

◆ STEPPER15_SET_CTRL1_TRQ_62_5

#define STEPPER15_SET_CTRL1_TRQ_62_5   0x60

◆ STEPPER15_SET_CTRL1_TRQ_68_75

#define STEPPER15_SET_CTRL1_TRQ_68_75   0x50

◆ STEPPER15_SET_CTRL1_TRQ_6_25

#define STEPPER15_SET_CTRL1_TRQ_6_25   0xF0

◆ STEPPER15_SET_CTRL1_TRQ_75

#define STEPPER15_SET_CTRL1_TRQ_75   0x40

◆ STEPPER15_SET_CTRL1_TRQ_81_25

#define STEPPER15_SET_CTRL1_TRQ_81_25   0x30

◆ STEPPER15_SET_CTRL1_TRQ_87_5

#define STEPPER15_SET_CTRL1_TRQ_87_5   0x20

◆ STEPPER15_SET_CTRL1_TRQ_93_75

#define STEPPER15_SET_CTRL1_TRQ_93_75   0x10

◆ STEPPER15_SET_CTRL2_OUTPUT_DISABLE

#define STEPPER15_SET_CTRL2_OUTPUT_DISABLE   0x80

◆ STEPPER15_SET_CTRL2_OUTPUT_ENABLE

#define STEPPER15_SET_CTRL2_OUTPUT_ENABLE   0x00

◆ STEPPER15_SET_CTRL2_SMART_TUNE_RIPPLE_CTRL

#define STEPPER15_SET_CTRL2_SMART_TUNE_RIPPLE_CTRL   0x07

◆ STEPPER15_SET_CTRL2_TOFF_16_us

#define STEPPER15_SET_CTRL2_TOFF_16_us   0x08

◆ STEPPER15_SET_CTRL2_TOFF_24_us

#define STEPPER15_SET_CTRL2_TOFF_24_us   0x10

◆ STEPPER15_SET_CTRL2_TOFF_32_us

#define STEPPER15_SET_CTRL2_TOFF_32_us   0x18

◆ STEPPER15_SET_CTRL2_TOFF_7_us

#define STEPPER15_SET_CTRL2_TOFF_7_us   0x00

◆ STEPPER15_SET_CTRL3_SET_MICROSTEP_MODE_FULL_STEP

#define STEPPER15_SET_CTRL3_SET_MICROSTEP_MODE_FULL_STEP   0x00

◆ STEPPER15_SET_CTRL4_CLR_FLT

#define STEPPER15_SET_CTRL4_CLR_FLT   0x80

◆ STEPPER15_SET_CTRL4_UNLOCK_ALL_REG

#define STEPPER15_SET_CTRL4_UNLOCK_ALL_REG   0x30

◆ STEPPER15_SET_CTRL5_REPORTED_ON_FAULT

#define STEPPER15_SET_CTRL5_REPORTED_ON_FAULT   0x08

◆ STEPPER15_SET_DEV_ADDR

#define STEPPER15_SET_DEV_ADDR   0x70

Stepper 15 device address setting.

Specified setting for device slave address selection of Stepper 15 Click driver.

◆ STEPPER15_SET_DIRECTION_BIT_MASK

#define STEPPER15_SET_DIRECTION_BIT_MASK   0xFB

Stepper 15 direction description setting.

Specified the direction setting for description of Stepper 15 Click driver.

◆ STEPPER15_SET_DIRECTION_CCW

#define STEPPER15_SET_DIRECTION_CCW   0x00

◆ STEPPER15_SET_DIRECTION_CW

#define STEPPER15_SET_DIRECTION_CW   0x04

◆ STEPPER15_SET_OUT_MODE_BIT_MASK

#define STEPPER15_SET_OUT_MODE_BIT_MASK   0xFD

Stepper 15 work mode description setting.

Specified the work mode setting for description of Stepper 15 Click driver.

◆ STEPPER15_SET_OUT_MODE_DEVICE_OUTPUTS_DISABLE

#define STEPPER15_SET_OUT_MODE_DEVICE_OUTPUTS_DISABLE   0x02

◆ STEPPER15_SET_OUT_MODE_DEVICE_OUTPUTS_ENABLE

#define STEPPER15_SET_OUT_MODE_DEVICE_OUTPUTS_ENABLE   0x00

◆ STEPPER15_SET_SPI_DIR_INPUT_PIN

#define STEPPER15_SET_SPI_DIR_INPUT_PIN   0x00

◆ STEPPER15_SET_SPI_DIR_SPI

#define STEPPER15_SET_SPI_DIR_SPI   0x80

◆ STEPPER15_SET_SPI_STEP_INPUT_PIN

#define STEPPER15_SET_SPI_STEP_INPUT_PIN   0x00

◆ STEPPER15_SET_SPI_STEP_SPI

#define STEPPER15_SET_SPI_STEP_SPI   0x40

◆ STEPPER15_SET_WORK_MODE_BIT_MASK

#define STEPPER15_SET_WORK_MODE_BIT_MASK   0xFE

Stepper 15 work mode description setting.

Specified the work mode setting for description of Stepper 15 Click driver.

◆ STEPPER15_SET_WORK_MODE_ENABLE_DEVICE

#define STEPPER15_SET_WORK_MODE_ENABLE_DEVICE   0x01

◆ STEPPER15_SET_WORK_MODE_SLEEP

#define STEPPER15_SET_WORK_MODE_SLEEP   0x00