stepper8 2.1.0.0
Stepper 8 Registers Settings

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

Macros

#define STEPPER8_PIN_STBY   0x01
 Stepper 8 PCA9538A pin mask.
 
#define STEPPER8_PIN_SELECT   0x02
 
#define STEPPER8_PIN_EN   0x04
 
#define STEPPER8_PCA9538A_DEFAULT_CONFIG   0xF8
 Stepper 8 PCA9538A pin direction config.
 
#define STEPPER8_DIR_CW   0
 Stepper 8 direction setting.
 
#define STEPPER8_DIR_CCW   1
 
#define STEPPER8_PIN_STATE_LOW   0
 Stepper 8 pin logic state setting.
 
#define STEPPER8_PIN_STATE_HIGH   1
 
#define STEPPER8_SPEED_VERY_SLOW   0
 Stepper 8 device speed settings.
 
#define STEPPER8_SPEED_SLOW   1
 
#define STEPPER8_SPEED_MEDIUM   2
 
#define STEPPER8_SPEED_FAST   3
 
#define STEPPER8_SPEED_VERY_FAST   4
 
#define STEPPER8_MODE_FULL_STEP   0
 Stepper 8 step resolution setting.
 
#define STEPPER8_MODE_HALF_STEP   1
 
#define STEPPER8_MODE_QUARTER_STEP   2
 
#define STEPPER8_MODE_1_OVER_8   3
 
#define STEPPER8_MODE_1_OVER_16   4
 
#define STEPPER8_MODE_1_OVER_32   5
 
#define STEPPER8_MODE_1_OVER_64   6
 
#define STEPPER8_MODE_1_OVER_128   7
 
#define STEPPER8_DEVICE_ADDRESS_A1A0_00   0x70
 Stepper 8 device address setting.
 
#define STEPPER8_DEVICE_ADDRESS_A1A0_01   0x71
 
#define STEPPER8_DEVICE_ADDRESS_A1A0_10   0x72
 
#define STEPPER8_DEVICE_ADDRESS_A1A0_11   0x73
 
#define STEPPER8_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define STEPPER8_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Stepper 8 Click driver.

Macro Definition Documentation

◆ STEPPER8_DEVICE_ADDRESS_A1A0_00

#define STEPPER8_DEVICE_ADDRESS_A1A0_00   0x70

Stepper 8 device address setting.

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

◆ STEPPER8_DEVICE_ADDRESS_A1A0_01

#define STEPPER8_DEVICE_ADDRESS_A1A0_01   0x71

◆ STEPPER8_DEVICE_ADDRESS_A1A0_10

#define STEPPER8_DEVICE_ADDRESS_A1A0_10   0x72

◆ STEPPER8_DEVICE_ADDRESS_A1A0_11

#define STEPPER8_DEVICE_ADDRESS_A1A0_11   0x73

◆ STEPPER8_DIR_CCW

#define STEPPER8_DIR_CCW   1

◆ STEPPER8_DIR_CW

#define STEPPER8_DIR_CW   0

Stepper 8 direction setting.

Specified setting for direction of Stepper 8 Click driver.

◆ STEPPER8_MODE_1_OVER_128

#define STEPPER8_MODE_1_OVER_128   7

◆ STEPPER8_MODE_1_OVER_16

#define STEPPER8_MODE_1_OVER_16   4

◆ STEPPER8_MODE_1_OVER_32

#define STEPPER8_MODE_1_OVER_32   5

◆ STEPPER8_MODE_1_OVER_64

#define STEPPER8_MODE_1_OVER_64   6

◆ STEPPER8_MODE_1_OVER_8

#define STEPPER8_MODE_1_OVER_8   3

◆ STEPPER8_MODE_FULL_STEP

#define STEPPER8_MODE_FULL_STEP   0

Stepper 8 step resolution setting.

Specified setting for step resolution of Stepper 8 Click driver.

◆ STEPPER8_MODE_HALF_STEP

#define STEPPER8_MODE_HALF_STEP   1

◆ STEPPER8_MODE_QUARTER_STEP

#define STEPPER8_MODE_QUARTER_STEP   2

◆ STEPPER8_PCA9538A_DEFAULT_CONFIG

#define STEPPER8_PCA9538A_DEFAULT_CONFIG   0xF8

Stepper 8 PCA9538A pin direction config.

Specified PCA9538A pin direction config of Stepper 8 Click driver.

◆ STEPPER8_PIN_EN

#define STEPPER8_PIN_EN   0x04

◆ STEPPER8_PIN_SELECT

#define STEPPER8_PIN_SELECT   0x02

◆ STEPPER8_PIN_STATE_HIGH

#define STEPPER8_PIN_STATE_HIGH   1

◆ STEPPER8_PIN_STATE_LOW

#define STEPPER8_PIN_STATE_LOW   0

Stepper 8 pin logic state setting.

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

◆ STEPPER8_PIN_STBY

#define STEPPER8_PIN_STBY   0x01

Stepper 8 PCA9538A pin mask.

Specified PCA9538A pin mask of Stepper 8 Click driver.

◆ STEPPER8_SET_DATA_SAMPLE_EDGE

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

◆ STEPPER8_SET_DATA_SAMPLE_MIDDLE

#define STEPPER8_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ STEPPER8_SPEED_FAST

#define STEPPER8_SPEED_FAST   3

◆ STEPPER8_SPEED_MEDIUM

#define STEPPER8_SPEED_MEDIUM   2

◆ STEPPER8_SPEED_SLOW

#define STEPPER8_SPEED_SLOW   1

◆ STEPPER8_SPEED_VERY_FAST

#define STEPPER8_SPEED_VERY_FAST   4

◆ STEPPER8_SPEED_VERY_SLOW

#define STEPPER8_SPEED_VERY_SLOW   0

Stepper 8 device speed settings.

Specified setting for rotation speed.