dcmotor29 2.1.0.0
DC Motor 29 Registers Settings

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

Macros

#define DCMOTOR29_CLR_FLT_CMD   0x80
 DC Motor 29 description setting.
 
#define DCMOTOR29_SPI_IN_UNLOCK_CMD   0x10
 
#define DCMOTOR29_SPI_IN_LOCK_CMD   0x08
 
#define DCMOTOR29_REG_UNLOCK_CMD   0x01
 
#define DCMOTOR29_REG_LOCK_CMD   0x02
 
#define DCMOTOR29_NONE_PIN   0x00
 DC Motor 29 pin setting.
 
#define DCMOTOR29_IN2_PIN   0x01
 
#define DCMOTOR29_DOF_PIN   0x02
 
#define DCMOTOR29_FLT_PIN   0x04
 
#define DCMOTOR29_ALL_PIN   0x07
 
#define DCMOTOR29_READ_REG_MASK   0x40
 DC Motor 29 read register.
 
#define DCMOTOR29_DRVOFF_ON   0x01
 DC Motor 29 DRVOFF pin setting.
 
#define DCMOTOR29_DRVOFF_OFF   0x00
 
#define DCMOTOR29_PIN_STATE_HIGH   0x01
 DC Motor 29 pin setting.
 
#define DCMOTOR29_PIN_STATE_LOW   0x00
 
#define DCMOTOR29_S_EN_DEVOFF_MASK   0x08
 DC Motor 29 SPI_IN Register setting.
 
#define DCMOTOR29_S_EN_DEVOFF2_MASK   0x04
 
#define DCMOTOR29_S_EN_IN1_MASK   0x02
 
#define DCMOTOR29_S_EN_IN2_MASK   0x01
 
#define DCMOTOR29_S_EN_NONE   0x00
 
#define DCMOTOR29_EN_OLA   0x80
 DC Motor 29 CONFIG1 Register setting.
 
#define DCMOTOR29_VMOV_SEL_DISABLED   0x60
 
#define DCMOTOR29_VMOV_SEL_18V   0x40
 
#define DCMOTOR29_VMOV_SEL_28V   0x20
 
#define DCMOTOR29_VMOV_SEL_35V   0x00
 
#define DCMOTOR29_SSC_DISABLE   0x10
 
#define DCMOTOR29_OCP_RETRY   0x08
 
#define DCMOTOR29_TSD_RETRY   0x04
 
#define DCMOTOR29_VMOV_RETRY   0x02
 
#define DCMOTOR29_OLA_RETRY   0x01
 
#define DCMOTOR29_TOF_50_US   0xC0
 DC Motor 29 CONFIG3 Register setting.
 
#define DCMOTOR29_TOF_40_US   0x80
 
#define DCMOTOR29_TOF_30_US   0x40
 
#define DCMOTOR29_TOF_20_US   0x00
 
#define DCMOTOR29_S_SR_50_V_US   0x1C
 
#define DCMOTOR29_S_SR_38_V_US   0x18
 
#define DCMOTOR29_S_SR_26_V_US   0x14
 
#define DCMOTOR29_S_SR_20_V_US   0x10
 
#define DCMOTOR29_S_SR_14_V_US   0x0C
 
#define DCMOTOR29_S_SR_9_8V_US   0x08
 
#define DCMOTOR29_S_SR_5_V_US   0x04
 
#define DCMOTOR29_S_SR_1_5V_US   0x00
 
#define DCMOTOR29_S_MODE_PWM   0x03
 
#define DCMOTOR29_S_MODE_INDEPENDENT   0x01
 
#define DCMOTOR29_S_MODE_PH_EN   0x00
 
#define DCMOTOR29_DRIVE_MOTOR_CW   0x00
 DC Motor 29 motor states setting.
 
#define DCMOTOR29_DRIVE_MOTOR_CCW   0x01
 
#define DCMOTOR29_DRIVE_MOTOR_BRAKE   0x02
 
#define DCMOTOR29_DRIVE_MOTOR_COASTING   0x03
 
#define DCMOTOR29_DEVICE_ADDRESS_A1A0_00   0x70
 DC Motor 29 device address setting.
 
#define DCMOTOR29_DEVICE_ADDRESS_A1A0_01   0x71
 
#define DCMOTOR29_DEVICE_ADDRESS_A1A0_10   0x72
 
#define DCMOTOR29_DEVICE_ADDRESS_A1A0_11   0x73
 
#define DCMOTOR29_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define DCMOTOR29_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of DC Motor 29 Click driver.

Macro Definition Documentation

◆ DCMOTOR29_ALL_PIN

#define DCMOTOR29_ALL_PIN   0x07

◆ DCMOTOR29_CLR_FLT_CMD

#define DCMOTOR29_CLR_FLT_CMD   0x80

DC Motor 29 description setting.

Specified setting for description of DC Motor 29 Click driver.

◆ DCMOTOR29_DEVICE_ADDRESS_A1A0_00

#define DCMOTOR29_DEVICE_ADDRESS_A1A0_00   0x70

DC Motor 29 device address setting.

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

◆ DCMOTOR29_DEVICE_ADDRESS_A1A0_01

#define DCMOTOR29_DEVICE_ADDRESS_A1A0_01   0x71

◆ DCMOTOR29_DEVICE_ADDRESS_A1A0_10

#define DCMOTOR29_DEVICE_ADDRESS_A1A0_10   0x72

◆ DCMOTOR29_DEVICE_ADDRESS_A1A0_11

#define DCMOTOR29_DEVICE_ADDRESS_A1A0_11   0x73

◆ DCMOTOR29_DOF_PIN

#define DCMOTOR29_DOF_PIN   0x02

◆ DCMOTOR29_DRIVE_MOTOR_BRAKE

#define DCMOTOR29_DRIVE_MOTOR_BRAKE   0x02

◆ DCMOTOR29_DRIVE_MOTOR_CCW

#define DCMOTOR29_DRIVE_MOTOR_CCW   0x01

◆ DCMOTOR29_DRIVE_MOTOR_COASTING

#define DCMOTOR29_DRIVE_MOTOR_COASTING   0x03

◆ DCMOTOR29_DRIVE_MOTOR_CW

#define DCMOTOR29_DRIVE_MOTOR_CW   0x00

DC Motor 29 motor states setting.

Specified setting for motor state selection of DC Motor 29 Click driver.

◆ DCMOTOR29_DRVOFF_OFF

#define DCMOTOR29_DRVOFF_OFF   0x00

◆ DCMOTOR29_DRVOFF_ON

#define DCMOTOR29_DRVOFF_ON   0x01

DC Motor 29 DRVOFF pin setting.

Specified setting for DRVOFF pin selection of DC Motor 29 Click driver.

◆ DCMOTOR29_EN_OLA

#define DCMOTOR29_EN_OLA   0x80

DC Motor 29 CONFIG1 Register setting.

Specified setting for CONFIG1 Register selection of DC Motor 29 Click driver.

◆ DCMOTOR29_FLT_PIN

#define DCMOTOR29_FLT_PIN   0x04

◆ DCMOTOR29_IN2_PIN

#define DCMOTOR29_IN2_PIN   0x01

◆ DCMOTOR29_NONE_PIN

#define DCMOTOR29_NONE_PIN   0x00

DC Motor 29 pin setting.

Specified setting for pin selection of DC Motor 29 Click driver.

◆ DCMOTOR29_OCP_RETRY

#define DCMOTOR29_OCP_RETRY   0x08

◆ DCMOTOR29_OLA_RETRY

#define DCMOTOR29_OLA_RETRY   0x01

◆ DCMOTOR29_PIN_STATE_HIGH

#define DCMOTOR29_PIN_STATE_HIGH   0x01

DC Motor 29 pin setting.

Specified setting for pin selection of DC Motor 29 Click driver.

◆ DCMOTOR29_PIN_STATE_LOW

#define DCMOTOR29_PIN_STATE_LOW   0x00

◆ DCMOTOR29_READ_REG_MASK

#define DCMOTOR29_READ_REG_MASK   0x40

DC Motor 29 read register.

Specified setting for reading registers of DC Motor 29 Click driver.

◆ DCMOTOR29_REG_LOCK_CMD

#define DCMOTOR29_REG_LOCK_CMD   0x02

◆ DCMOTOR29_REG_UNLOCK_CMD

#define DCMOTOR29_REG_UNLOCK_CMD   0x01

◆ DCMOTOR29_S_EN_DEVOFF2_MASK

#define DCMOTOR29_S_EN_DEVOFF2_MASK   0x04

◆ DCMOTOR29_S_EN_DEVOFF_MASK

#define DCMOTOR29_S_EN_DEVOFF_MASK   0x08

DC Motor 29 SPI_IN Register setting.

Specified setting for SPI_IN Register selection of DC Motor 29 Click driver.

◆ DCMOTOR29_S_EN_IN1_MASK

#define DCMOTOR29_S_EN_IN1_MASK   0x02

◆ DCMOTOR29_S_EN_IN2_MASK

#define DCMOTOR29_S_EN_IN2_MASK   0x01

◆ DCMOTOR29_S_EN_NONE

#define DCMOTOR29_S_EN_NONE   0x00

◆ DCMOTOR29_S_MODE_INDEPENDENT

#define DCMOTOR29_S_MODE_INDEPENDENT   0x01

◆ DCMOTOR29_S_MODE_PH_EN

#define DCMOTOR29_S_MODE_PH_EN   0x00

◆ DCMOTOR29_S_MODE_PWM

#define DCMOTOR29_S_MODE_PWM   0x03

◆ DCMOTOR29_S_SR_14_V_US

#define DCMOTOR29_S_SR_14_V_US   0x0C

◆ DCMOTOR29_S_SR_1_5V_US

#define DCMOTOR29_S_SR_1_5V_US   0x00

◆ DCMOTOR29_S_SR_20_V_US

#define DCMOTOR29_S_SR_20_V_US   0x10

◆ DCMOTOR29_S_SR_26_V_US

#define DCMOTOR29_S_SR_26_V_US   0x14

◆ DCMOTOR29_S_SR_38_V_US

#define DCMOTOR29_S_SR_38_V_US   0x18

◆ DCMOTOR29_S_SR_50_V_US

#define DCMOTOR29_S_SR_50_V_US   0x1C

◆ DCMOTOR29_S_SR_5_V_US

#define DCMOTOR29_S_SR_5_V_US   0x04

◆ DCMOTOR29_S_SR_9_8V_US

#define DCMOTOR29_S_SR_9_8V_US   0x08

◆ DCMOTOR29_SET_DATA_SAMPLE_EDGE

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

◆ DCMOTOR29_SET_DATA_SAMPLE_MIDDLE

#define DCMOTOR29_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ DCMOTOR29_SPI_IN_LOCK_CMD

#define DCMOTOR29_SPI_IN_LOCK_CMD   0x08

◆ DCMOTOR29_SPI_IN_UNLOCK_CMD

#define DCMOTOR29_SPI_IN_UNLOCK_CMD   0x10

◆ DCMOTOR29_SSC_DISABLE

#define DCMOTOR29_SSC_DISABLE   0x10

◆ DCMOTOR29_TOF_20_US

#define DCMOTOR29_TOF_20_US   0x00

◆ DCMOTOR29_TOF_30_US

#define DCMOTOR29_TOF_30_US   0x40

◆ DCMOTOR29_TOF_40_US

#define DCMOTOR29_TOF_40_US   0x80

◆ DCMOTOR29_TOF_50_US

#define DCMOTOR29_TOF_50_US   0xC0

DC Motor 29 CONFIG3 Register setting.

Specified setting for CONFIG3 Register selection of DC Motor 29 Click driver.

◆ DCMOTOR29_TSD_RETRY

#define DCMOTOR29_TSD_RETRY   0x04

◆ DCMOTOR29_VMOV_RETRY

#define DCMOTOR29_VMOV_RETRY   0x02

◆ DCMOTOR29_VMOV_SEL_18V

#define DCMOTOR29_VMOV_SEL_18V   0x40

◆ DCMOTOR29_VMOV_SEL_28V

#define DCMOTOR29_VMOV_SEL_28V   0x20

◆ DCMOTOR29_VMOV_SEL_35V

#define DCMOTOR29_VMOV_SEL_35V   0x00

◆ DCMOTOR29_VMOV_SEL_DISABLED

#define DCMOTOR29_VMOV_SEL_DISABLED   0x60