angle6 2.0.0.0
Angle 6 Registers Settings

Settings for registers of Angle 6 Click driver. More...

Macros

#define ANGLE6_ROTATION_DIRECTION_CW   0x00
 Angle 6 Rotation Direction register setting.
 
#define ANGLE6_ROTATION_DIRECTION_CCW   0x80
 
#define ANGLE6_RESOLUTION   0xFFFF
 Angle 6 Angle calculation values.
 
#define ANGLE6_FULL_CIRCLE   360.0
 
#define ANGLE6_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define ANGLE6_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Angle 6 Click driver.

Macro Definition Documentation

◆ ANGLE6_FULL_CIRCLE

#define ANGLE6_FULL_CIRCLE   360.0

◆ ANGLE6_RESOLUTION

#define ANGLE6_RESOLUTION   0xFFFF

Angle 6 Angle calculation values.

Specified Angle calculation values of Angle 6 Click driver.

◆ ANGLE6_ROTATION_DIRECTION_CCW

#define ANGLE6_ROTATION_DIRECTION_CCW   0x80

◆ ANGLE6_ROTATION_DIRECTION_CW

#define ANGLE6_ROTATION_DIRECTION_CW   0x00

Angle 6 Rotation Direction register setting.

Specified setting for Rotation Direction register of Angle 6 Click driver.

◆ ANGLE6_SET_DATA_SAMPLE_EDGE

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

◆ ANGLE6_SET_DATA_SAMPLE_MIDDLE

#define ANGLE6_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE