magneticrotary4 2.0.0.0
Magnetic Rotary 4 Registers Settings

Settings for registers of Magnetic Rotary 4 Click driver. More...

Macros

#define MAGNETICROTARY4_DATA_RESOLUTION   0x3FFF
 Magnetic Rotary 4 angle calculation values.
 
#define MAGNETICROTARY4_FULL_CIRCLE   360
 
#define MAGNETICROTARY4_ODD_PARITY   0x01
 Magnetic Rotary 4 ODD parity flag.
 
#define MAGNETICROTARY4_DIRECTION_CW   0
 Magnetic Rotary 4 rotation direction values.
 
#define MAGNETICROTARY4_DIRECTION_CCW   1
 
#define MAGNETICROTARY4_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define MAGNETICROTARY4_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Magnetic Rotary 4 Click driver.

Macro Definition Documentation

◆ MAGNETICROTARY4_DATA_RESOLUTION

#define MAGNETICROTARY4_DATA_RESOLUTION   0x3FFF

Magnetic Rotary 4 angle calculation values.

Specified angle calculation values of Magnetic Rotary 4 Click driver.

◆ MAGNETICROTARY4_DIRECTION_CCW

#define MAGNETICROTARY4_DIRECTION_CCW   1

◆ MAGNETICROTARY4_DIRECTION_CW

#define MAGNETICROTARY4_DIRECTION_CW   0

Magnetic Rotary 4 rotation direction values.

Specified rotation direction values of Magnetic Rotary 4 Click driver.

◆ MAGNETICROTARY4_FULL_CIRCLE

#define MAGNETICROTARY4_FULL_CIRCLE   360

◆ MAGNETICROTARY4_ODD_PARITY

#define MAGNETICROTARY4_ODD_PARITY   0x01

Magnetic Rotary 4 ODD parity flag.

Specified flag for ODD parity of Magnetic Rotary 4 Click driver.

◆ MAGNETICROTARY4_SET_DATA_SAMPLE_EDGE

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

◆ MAGNETICROTARY4_SET_DATA_SAMPLE_MIDDLE

#define MAGNETICROTARY4_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE