stepper10 2.1.0.0
Stepper 10 Registers Settings

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

Macros

#define STEPPER10_PIN0_MS0   0x01
 Stepper 10 TCA9534A pin mask.
 
#define STEPPER10_PIN0_MS1   0x02
 
#define STEPPER10_PIN0_MS2   0x04
 
#define STEPPER10_PIN0_MS_MASK   0x07
 
#define STEPPER10_PIN0_SLEEP   0x08
 
#define STEPPER10_PIN0_MDT0   0x10
 
#define STEPPER10_PIN0_MDT1   0x20
 
#define STEPPER10_PIN0_MDT_MASK   0x30
 
#define STEPPER10_PIN0_AGC   0x40
 
#define STEPPER10_PIN0_IF_SEL   0x80
 
#define STEPPER10_PIN1_TORQUE0   0x01
 
#define STEPPER10_PIN1_TORQUE1   0x02
 
#define STEPPER10_PIN1_TORQUE2   0x04
 
#define STEPPER10_PIN1_TORQUE_MASK   0x07
 
#define STEPPER10_PIN1_CLIM0   0x08
 
#define STEPPER10_PIN1_EDG_SEL   0x10
 
#define STEPPER10_PIN1_MO   0x20
 
#define STEPPER10_PIN1_LO0   0x40
 
#define STEPPER10_PIN1_LO1   0x80
 
#define STEPPER10_PIN1_LO_MASK   0xC0
 
#define STEPPER10_TCA9534A_0_DEFAULT_CONFIG   0x00
 Stepper 10 TCA9534A pin direction config.
 
#define STEPPER10_TCA9534A_1_DEFAULT_CONFIG   0xE0
 
#define STEPPER10_DIR_CW   0
 Stepper 10 direction setting.
 
#define STEPPER10_DIR_CCW   1
 
#define STEPPER10_PIN_STATE_LOW   0
 Stepper 10 pin logic state setting.
 
#define STEPPER10_PIN_STATE_HIGH   1
 
#define STEPPER10_SPEED_VERY_SLOW   0
 Stepper 10 device speed settings.
 
#define STEPPER10_SPEED_SLOW   1
 
#define STEPPER10_SPEED_MEDIUM   2
 
#define STEPPER10_SPEED_FAST   3
 
#define STEPPER10_SPEED_VERY_FAST   4
 
#define STEPPER10_MODE_FULL_STEP   0
 Stepper 10 step resolution setting.
 
#define STEPPER10_MODE_HALF_STEP   1
 
#define STEPPER10_MODE_QUARTER_STEP   2
 
#define STEPPER10_MODE_1_OVER_8   3
 
#define STEPPER10_MODE_1_OVER_16   4
 
#define STEPPER10_MODE_1_OVER_32   5
 
#define STEPPER10_MODE_1_OVER_64   6
 
#define STEPPER10_MODE_1_OVER_128   7
 
#define STEPPER10_MIXED_DECAY_FAST_37_5   0
 Stepper 10 mixed decay setting.
 
#define STEPPER10_MIXED_DECAY_FAST_50   1
 
#define STEPPER10_MIXED_DECAY_FAST_ONLY   2
 
#define STEPPER10_MIXED_DECAY_ADMD   3
 
#define STEPPER10_TORQUE_100   0
 Stepper 10 torque setting.
 
#define STEPPER10_TORQUE_85   1
 
#define STEPPER10_TORQUE_70   2
 
#define STEPPER10_TORQUE_60   3
 
#define STEPPER10_TORQUE_50   4
 
#define STEPPER10_TORQUE_40   5
 
#define STEPPER10_TORQUE_25   6
 
#define STEPPER10_TORQUE_10   7
 
#define STEPPER10_LO_THERMAL_SHUTDOWN   0
 Stepper 10 LO error detect flag setting.
 
#define STEPPER10_LO_MOTOR_LOAD_OPEN   1
 
#define STEPPER10_LO_OVER_CURRENT   2
 
#define STEPPER10_LO_NORMAL   3
 
#define STEPPER10_DEVICE0_ADDRESS_A2A1_00   0x38
 Stepper 10 device address setting.
 
#define STEPPER10_DEVICE0_ADDRESS_A2A1_01   0x3A
 
#define STEPPER10_DEVICE0_ADDRESS_A2A1_10   0x3C
 
#define STEPPER10_DEVICE0_ADDRESS_A2A1_11   0x3E
 
#define STEPPER10_DEVICE1_ADDRESS_A2A1_00   0x39
 
#define STEPPER10_DEVICE1_ADDRESS_A2A1_01   0x3B
 
#define STEPPER10_DEVICE1_ADDRESS_A2A1_10   0x3D
 
#define STEPPER10_DEVICE1_ADDRESS_A2A1_11   0x3F
 
#define STEPPER10_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define STEPPER10_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Stepper 10 Click driver.

Macro Definition Documentation

◆ STEPPER10_DEVICE0_ADDRESS_A2A1_00

#define STEPPER10_DEVICE0_ADDRESS_A2A1_00   0x38

Stepper 10 device address setting.

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

◆ STEPPER10_DEVICE0_ADDRESS_A2A1_01

#define STEPPER10_DEVICE0_ADDRESS_A2A1_01   0x3A

◆ STEPPER10_DEVICE0_ADDRESS_A2A1_10

#define STEPPER10_DEVICE0_ADDRESS_A2A1_10   0x3C

◆ STEPPER10_DEVICE0_ADDRESS_A2A1_11

#define STEPPER10_DEVICE0_ADDRESS_A2A1_11   0x3E

◆ STEPPER10_DEVICE1_ADDRESS_A2A1_00

#define STEPPER10_DEVICE1_ADDRESS_A2A1_00   0x39

◆ STEPPER10_DEVICE1_ADDRESS_A2A1_01

#define STEPPER10_DEVICE1_ADDRESS_A2A1_01   0x3B

◆ STEPPER10_DEVICE1_ADDRESS_A2A1_10

#define STEPPER10_DEVICE1_ADDRESS_A2A1_10   0x3D

◆ STEPPER10_DEVICE1_ADDRESS_A2A1_11

#define STEPPER10_DEVICE1_ADDRESS_A2A1_11   0x3F

◆ STEPPER10_DIR_CCW

#define STEPPER10_DIR_CCW   1

◆ STEPPER10_DIR_CW

#define STEPPER10_DIR_CW   0

Stepper 10 direction setting.

Specified setting for direction of Stepper 10 Click driver.

◆ STEPPER10_LO_MOTOR_LOAD_OPEN

#define STEPPER10_LO_MOTOR_LOAD_OPEN   1

◆ STEPPER10_LO_NORMAL

#define STEPPER10_LO_NORMAL   3

◆ STEPPER10_LO_OVER_CURRENT

#define STEPPER10_LO_OVER_CURRENT   2

◆ STEPPER10_LO_THERMAL_SHUTDOWN

#define STEPPER10_LO_THERMAL_SHUTDOWN   0

Stepper 10 LO error detect flag setting.

Specified setting for LO error detect flag of Stepper 10 Click driver.

◆ STEPPER10_MIXED_DECAY_ADMD

#define STEPPER10_MIXED_DECAY_ADMD   3

◆ STEPPER10_MIXED_DECAY_FAST_37_5

#define STEPPER10_MIXED_DECAY_FAST_37_5   0

Stepper 10 mixed decay setting.

Specified setting for mixed decay of Stepper 10 Click driver.

◆ STEPPER10_MIXED_DECAY_FAST_50

#define STEPPER10_MIXED_DECAY_FAST_50   1

◆ STEPPER10_MIXED_DECAY_FAST_ONLY

#define STEPPER10_MIXED_DECAY_FAST_ONLY   2

◆ STEPPER10_MODE_1_OVER_128

#define STEPPER10_MODE_1_OVER_128   7

◆ STEPPER10_MODE_1_OVER_16

#define STEPPER10_MODE_1_OVER_16   4

◆ STEPPER10_MODE_1_OVER_32

#define STEPPER10_MODE_1_OVER_32   5

◆ STEPPER10_MODE_1_OVER_64

#define STEPPER10_MODE_1_OVER_64   6

◆ STEPPER10_MODE_1_OVER_8

#define STEPPER10_MODE_1_OVER_8   3

◆ STEPPER10_MODE_FULL_STEP

#define STEPPER10_MODE_FULL_STEP   0

Stepper 10 step resolution setting.

Specified setting for step resolution of Stepper 10 Click driver.

◆ STEPPER10_MODE_HALF_STEP

#define STEPPER10_MODE_HALF_STEP   1

◆ STEPPER10_MODE_QUARTER_STEP

#define STEPPER10_MODE_QUARTER_STEP   2

◆ STEPPER10_PIN0_AGC

#define STEPPER10_PIN0_AGC   0x40

◆ STEPPER10_PIN0_IF_SEL

#define STEPPER10_PIN0_IF_SEL   0x80

◆ STEPPER10_PIN0_MDT0

#define STEPPER10_PIN0_MDT0   0x10

◆ STEPPER10_PIN0_MDT1

#define STEPPER10_PIN0_MDT1   0x20

◆ STEPPER10_PIN0_MDT_MASK

#define STEPPER10_PIN0_MDT_MASK   0x30

◆ STEPPER10_PIN0_MS0

#define STEPPER10_PIN0_MS0   0x01

Stepper 10 TCA9534A pin mask.

Specified TCA9534A pin mask of Stepper 10 Click driver.

◆ STEPPER10_PIN0_MS1

#define STEPPER10_PIN0_MS1   0x02

◆ STEPPER10_PIN0_MS2

#define STEPPER10_PIN0_MS2   0x04

◆ STEPPER10_PIN0_MS_MASK

#define STEPPER10_PIN0_MS_MASK   0x07

◆ STEPPER10_PIN0_SLEEP

#define STEPPER10_PIN0_SLEEP   0x08

◆ STEPPER10_PIN1_CLIM0

#define STEPPER10_PIN1_CLIM0   0x08

◆ STEPPER10_PIN1_EDG_SEL

#define STEPPER10_PIN1_EDG_SEL   0x10

◆ STEPPER10_PIN1_LO0

#define STEPPER10_PIN1_LO0   0x40

◆ STEPPER10_PIN1_LO1

#define STEPPER10_PIN1_LO1   0x80

◆ STEPPER10_PIN1_LO_MASK

#define STEPPER10_PIN1_LO_MASK   0xC0

◆ STEPPER10_PIN1_MO

#define STEPPER10_PIN1_MO   0x20

◆ STEPPER10_PIN1_TORQUE0

#define STEPPER10_PIN1_TORQUE0   0x01

◆ STEPPER10_PIN1_TORQUE1

#define STEPPER10_PIN1_TORQUE1   0x02

◆ STEPPER10_PIN1_TORQUE2

#define STEPPER10_PIN1_TORQUE2   0x04

◆ STEPPER10_PIN1_TORQUE_MASK

#define STEPPER10_PIN1_TORQUE_MASK   0x07

◆ STEPPER10_PIN_STATE_HIGH

#define STEPPER10_PIN_STATE_HIGH   1

◆ STEPPER10_PIN_STATE_LOW

#define STEPPER10_PIN_STATE_LOW   0

Stepper 10 pin logic state setting.

Specified setting for pin logic state of Stepper 10 Click driver.

◆ STEPPER10_SET_DATA_SAMPLE_EDGE

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

◆ STEPPER10_SET_DATA_SAMPLE_MIDDLE

#define STEPPER10_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ STEPPER10_SPEED_FAST

#define STEPPER10_SPEED_FAST   3

◆ STEPPER10_SPEED_MEDIUM

#define STEPPER10_SPEED_MEDIUM   2

◆ STEPPER10_SPEED_SLOW

#define STEPPER10_SPEED_SLOW   1

◆ STEPPER10_SPEED_VERY_FAST

#define STEPPER10_SPEED_VERY_FAST   4

◆ STEPPER10_SPEED_VERY_SLOW

#define STEPPER10_SPEED_VERY_SLOW   0

Stepper 10 device speed settings.

Specified setting for rotation speed.

◆ STEPPER10_TCA9534A_0_DEFAULT_CONFIG

#define STEPPER10_TCA9534A_0_DEFAULT_CONFIG   0x00

Stepper 10 TCA9534A pin direction config.

Specified TCA9534A pin direction config of Stepper 10 Click driver.

◆ STEPPER10_TCA9534A_1_DEFAULT_CONFIG

#define STEPPER10_TCA9534A_1_DEFAULT_CONFIG   0xE0

◆ STEPPER10_TORQUE_10

#define STEPPER10_TORQUE_10   7

◆ STEPPER10_TORQUE_100

#define STEPPER10_TORQUE_100   0

Stepper 10 torque setting.

Specified setting for torque of Stepper 10 Click driver.

◆ STEPPER10_TORQUE_25

#define STEPPER10_TORQUE_25   6

◆ STEPPER10_TORQUE_40

#define STEPPER10_TORQUE_40   5

◆ STEPPER10_TORQUE_50

#define STEPPER10_TORQUE_50   4

◆ STEPPER10_TORQUE_60

#define STEPPER10_TORQUE_60   3

◆ STEPPER10_TORQUE_70

#define STEPPER10_TORQUE_70   2

◆ STEPPER10_TORQUE_85

#define STEPPER10_TORQUE_85   1