dac9 2.0.0.0
DAC 9 Registers Settings

Settings for registers of DAC 9 Click driver. More...

Macros

#define DAC9_SYNC_DISABLE   0x0000
 DAC 9 description setting.
 
#define DAC9_SYNC_ENABLE   0x0001
 
#define DAC9_CONFIG_REF_PWDWN_ENABLE   0x0000
 
#define DAC9_CONFIG_REF_PWDWN_DISABLE   0x0100
 
#define DAC9_CONFIG_REF_PWDWN_BIT_MASK   0x0100
 
#define DAC9_CONFIG_DAC_PWDWN_DISABLE   0x0000
 
#define DAC9_CONFIG_DAC_PWDWN_ENABLE   0x0001
 
#define DAC9_CONFIG_DAC_PWDWN_BIT_MASK   0x0001
 
#define DAC9_GAIN_REF_DIV_DISABLE   0x0000
 
#define DAC9_GAIN_REF_DIV_2   0x0100
 
#define DAC9_GAIN_REF_DIV_BIT_MASK   0x0100
 
#define DAC9_GAIN_BUFF_GAIN_1   0x0000
 
#define DAC9_GAIN_BUFF_GAIN_2   0x0001
 
#define DAC9_GAIN_BUFF_GAIN_BIT_MASK   0x0001
 
#define DAC9_TRIGGER_LDAC   0x0010
 
#define DAC9_TRIGGER_SOFT_RESET   0x000A
 
#define DAC9_STATUS_REF_ALARM_BIT_MASK   0x0001
 
#define DAC9_I2C_ADR_AGND   0x48
 DAC 9 device address setting.
 
#define DAC9_I2C_ADR_VDD   0x49
 
#define DAC9_I2C_ADR_SDA   0x4A
 
#define DAC9_I2C_ADR_SCL   0x4B
 
#define DAC9_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
 
#define DAC9_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE
 

Detailed Description

Settings for registers of DAC 9 Click driver.

Macro Definition Documentation

◆ DAC9_CONFIG_DAC_PWDWN_BIT_MASK

#define DAC9_CONFIG_DAC_PWDWN_BIT_MASK   0x0001

◆ DAC9_CONFIG_DAC_PWDWN_DISABLE

#define DAC9_CONFIG_DAC_PWDWN_DISABLE   0x0000

◆ DAC9_CONFIG_DAC_PWDWN_ENABLE

#define DAC9_CONFIG_DAC_PWDWN_ENABLE   0x0001

◆ DAC9_CONFIG_REF_PWDWN_BIT_MASK

#define DAC9_CONFIG_REF_PWDWN_BIT_MASK   0x0100

◆ DAC9_CONFIG_REF_PWDWN_DISABLE

#define DAC9_CONFIG_REF_PWDWN_DISABLE   0x0100

◆ DAC9_CONFIG_REF_PWDWN_ENABLE

#define DAC9_CONFIG_REF_PWDWN_ENABLE   0x0000

◆ DAC9_GAIN_BUFF_GAIN_1

#define DAC9_GAIN_BUFF_GAIN_1   0x0000

◆ DAC9_GAIN_BUFF_GAIN_2

#define DAC9_GAIN_BUFF_GAIN_2   0x0001

◆ DAC9_GAIN_BUFF_GAIN_BIT_MASK

#define DAC9_GAIN_BUFF_GAIN_BIT_MASK   0x0001

◆ DAC9_GAIN_REF_DIV_2

#define DAC9_GAIN_REF_DIV_2   0x0100

◆ DAC9_GAIN_REF_DIV_BIT_MASK

#define DAC9_GAIN_REF_DIV_BIT_MASK   0x0100

◆ DAC9_GAIN_REF_DIV_DISABLE

#define DAC9_GAIN_REF_DIV_DISABLE   0x0000

◆ DAC9_I2C_ADR_AGND

#define DAC9_I2C_ADR_AGND   0x48

DAC 9 device address setting.

Specified setting for device slave address selection of DAC 9 Click driver.

◆ DAC9_I2C_ADR_SCL

#define DAC9_I2C_ADR_SCL   0x4B

◆ DAC9_I2C_ADR_SDA

#define DAC9_I2C_ADR_SDA   0x4A

◆ DAC9_I2C_ADR_VDD

#define DAC9_I2C_ADR_VDD   0x49

◆ DAC9_SET_DATA_SAMPLE_EDGE

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

◆ DAC9_SET_DATA_SAMPLE_MIDDLE

#define DAC9_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ DAC9_STATUS_REF_ALARM_BIT_MASK

#define DAC9_STATUS_REF_ALARM_BIT_MASK   0x0001

◆ DAC9_SYNC_DISABLE

#define DAC9_SYNC_DISABLE   0x0000

DAC 9 description setting.

Specified setting for description of DAC 9 Click driver.

◆ DAC9_SYNC_ENABLE

#define DAC9_SYNC_ENABLE   0x0001

◆ DAC9_TRIGGER_LDAC

#define DAC9_TRIGGER_LDAC   0x0010

◆ DAC9_TRIGGER_SOFT_RESET

#define DAC9_TRIGGER_SOFT_RESET   0x000A