waveform2 2.0.0.0
Waveform 2 Registers Settings

Settings for registers of Waveform 2 Click driver. More...

Macros

#define WAVEFORM2_CFG_B28_MSK   0x2000
 Waveform 2 description setting.
 
#define WAVEFORM2_CFG_HLB_MSK   0x1000
 
#define WAVEFORM2_CFG_FSEL_MSK   0x0800
 
#define WAVEFORM2_CFG_PSEK_MSK   0x0400
 
#define WAVEFORM2_CFG_PIN_SW_MSK   0x0200
 
#define WAVEFORM2_CFG_RESET_MSK   0x0100
 
#define WAVEFORM2_CFG_SLEEP1_MSK   0x0080
 
#define WAVEFORM2_CFG_SLEEP12_MSK   0x0040
 
#define WAVEFORM2_CFG_OPBITEN_MSK   0x0020
 
#define WAVEFORM2_CFG_SIGN_PIB_MSK   0x0010
 
#define WAVEFORM2_CFG_DIV2_MSK   0x0008
 
#define WAVEFORM2_CFG_MODE_MSK   0x0002
 
#define OUTPUT_TRIANGLE   0x01
 
#define OUTPUT_SINUSOID   0x00
 
#define WAVEFORM2_DEVICE_SLAVE_ADDR_GND   0x50
 Waveform 2 device address setting.
 
#define WAVEFORM2_DEVICE_SLAVE_ADDR_VCC   0x51
 
#define WAVEFORM2_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define WAVEFORM2_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of Waveform 2 Click driver.

Macro Definition Documentation

◆ OUTPUT_SINUSOID

#define OUTPUT_SINUSOID   0x00

◆ OUTPUT_TRIANGLE

#define OUTPUT_TRIANGLE   0x01

◆ WAVEFORM2_CFG_B28_MSK

#define WAVEFORM2_CFG_B28_MSK   0x2000

Waveform 2 description setting.

Specified setting for description of Waveform 2 Click driver.

◆ WAVEFORM2_CFG_DIV2_MSK

#define WAVEFORM2_CFG_DIV2_MSK   0x0008

◆ WAVEFORM2_CFG_FSEL_MSK

#define WAVEFORM2_CFG_FSEL_MSK   0x0800

◆ WAVEFORM2_CFG_HLB_MSK

#define WAVEFORM2_CFG_HLB_MSK   0x1000

◆ WAVEFORM2_CFG_MODE_MSK

#define WAVEFORM2_CFG_MODE_MSK   0x0002

◆ WAVEFORM2_CFG_OPBITEN_MSK

#define WAVEFORM2_CFG_OPBITEN_MSK   0x0020

◆ WAVEFORM2_CFG_PIN_SW_MSK

#define WAVEFORM2_CFG_PIN_SW_MSK   0x0200

◆ WAVEFORM2_CFG_PSEK_MSK

#define WAVEFORM2_CFG_PSEK_MSK   0x0400

◆ WAVEFORM2_CFG_RESET_MSK

#define WAVEFORM2_CFG_RESET_MSK   0x0100

◆ WAVEFORM2_CFG_SIGN_PIB_MSK

#define WAVEFORM2_CFG_SIGN_PIB_MSK   0x0010

◆ WAVEFORM2_CFG_SLEEP12_MSK

#define WAVEFORM2_CFG_SLEEP12_MSK   0x0040

◆ WAVEFORM2_CFG_SLEEP1_MSK

#define WAVEFORM2_CFG_SLEEP1_MSK   0x0080

◆ WAVEFORM2_DEVICE_SLAVE_ADDR_GND

#define WAVEFORM2_DEVICE_SLAVE_ADDR_GND   0x50

Waveform 2 device address setting.

Specified setting for device slave address selection of Waveform 2 Click driver.

◆ WAVEFORM2_DEVICE_SLAVE_ADDR_VCC

#define WAVEFORM2_DEVICE_SLAVE_ADDR_VCC   0x51

◆ WAVEFORM2_SET_DATA_SAMPLE_EDGE

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

◆ WAVEFORM2_SET_DATA_SAMPLE_MIDDLE

#define WAVEFORM2_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE