dac11 2.0.0.0
DAC 11 Control register Settings

Settings for control registers of DAC 11 Click driver. More...

Macros

#define DAC11_SELECT_CHANNEL_A   0x01
 DAC 11 select channel flags.
 
#define DAC11_SELECT_CHANNEL_B   0x02
 
#define DAC11_SELECT_CHANNEL_C   0x04
 
#define DAC11_SELECT_CHANNEL_D   0x08
 
#define DAC11_SELECT_CHANNEL_E   0x10
 
#define DAC11_SELECT_CHANNEL_F   0x20
 
#define DAC11_SELECT_CHANNEL_G   0x40
 
#define DAC11_SELECT_CHANNEL_H   0x80
 
#define DAC11_SELECT_ALL_CHANNELS   0xFF
 
#define DAC11_MIN_DAC_VALUE   0x0000
 DAC 11 range values.
 
#define DAC11_MAX_DAC_VALUE   0x0FFF
 
#define DAC11_VREF_3V3   3.3
 DAC 11 vref values.
 
#define DAC11_VREF_5V   5
 
#define DAC11_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define DAC11_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for control registers of DAC 11 Click driver.

Macro Definition Documentation

◆ DAC11_MAX_DAC_VALUE

#define DAC11_MAX_DAC_VALUE   0x0FFF

◆ DAC11_MIN_DAC_VALUE

#define DAC11_MIN_DAC_VALUE   0x0000

DAC 11 range values.

DAC range values of DAC 11 Click driver.

◆ DAC11_SELECT_ALL_CHANNELS

#define DAC11_SELECT_ALL_CHANNELS   0xFF

◆ DAC11_SELECT_CHANNEL_A

#define DAC11_SELECT_CHANNEL_A   0x01

DAC 11 select channel flags.

Specified channel selection flags of DAC 11 Click driver.

◆ DAC11_SELECT_CHANNEL_B

#define DAC11_SELECT_CHANNEL_B   0x02

◆ DAC11_SELECT_CHANNEL_C

#define DAC11_SELECT_CHANNEL_C   0x04

◆ DAC11_SELECT_CHANNEL_D

#define DAC11_SELECT_CHANNEL_D   0x08

◆ DAC11_SELECT_CHANNEL_E

#define DAC11_SELECT_CHANNEL_E   0x10

◆ DAC11_SELECT_CHANNEL_F

#define DAC11_SELECT_CHANNEL_F   0x20

◆ DAC11_SELECT_CHANNEL_G

#define DAC11_SELECT_CHANNEL_G   0x40

◆ DAC11_SELECT_CHANNEL_H

#define DAC11_SELECT_CHANNEL_H   0x80

◆ DAC11_SET_DATA_SAMPLE_EDGE

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

◆ DAC11_SET_DATA_SAMPLE_MIDDLE

#define DAC11_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ DAC11_VREF_3V3

#define DAC11_VREF_3V3   3.3

DAC 11 vref values.

DAC vref values of DAC 11 Click driver.

◆ DAC11_VREF_5V

#define DAC11_VREF_5V   5