dcmotor16 2.0.0.0
DC Motor 16 Registers Settings

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

Macros

#define DCMOTOR16_DIR_FORWARD   0
 DC Motor 16 description setting.
 
#define DCMOTOR16_DIR_BACKWARD   1
 
#define DCMOTOR16_ENABLE   1
 
#define DCMOTOR16_DISABLE   0
 
#define DCMOTOR16_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define DCMOTOR16_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of DC Motor 16 Click driver.

Macro Definition Documentation

◆ DCMOTOR16_DIR_BACKWARD

#define DCMOTOR16_DIR_BACKWARD   1

◆ DCMOTOR16_DIR_FORWARD

#define DCMOTOR16_DIR_FORWARD   0

DC Motor 16 description setting.

Specified setting for description of DC Motor 16 Click driver.

◆ DCMOTOR16_DISABLE

#define DCMOTOR16_DISABLE   0

◆ DCMOTOR16_ENABLE

#define DCMOTOR16_ENABLE   1

◆ DCMOTOR16_SET_DATA_SAMPLE_EDGE

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

◆ DCMOTOR16_SET_DATA_SAMPLE_MIDDLE

#define DCMOTOR16_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE