Go to the source code of this file.
|
| void | dac_ad84xx_init (void) |
| | Initializes AD84XX DAC interface.
|
| |
| void | dac_ad84xx_set_val (uint8_t addr, uint8_t val) |
| | Write a value to the AD84xx DAC output register.
|
| |
| void | dac_ad84xx_set_res (uint8_t addr, uint16_t res) |
| | Converts a resistance value into a proportional divisor value for AD84xx.
|
| |
◆ dac_ad84xx_init()
| void dac_ad84xx_init |
( |
void | | ) |
|
Initializes AD84XX DAC interface.
- Note
- This module uses legacy SPI and controls SSEL as a GPIO
◆ dac_ad84xx_set_res()
| void dac_ad84xx_set_res |
( |
uint8_t | addr, |
|
|
uint16_t | res ) |
Converts a resistance value into a proportional divisor value for AD84xx.
- Parameters
-
| addr | Selects which potentiometer will be set |
| val | Output resistance value [in Ohms] |
◆ dac_ad84xx_set_val()
| void dac_ad84xx_set_val |
( |
uint8_t | addr, |
|
|
uint8_t | val ) |
Write a value to the AD84xx DAC output register.
- Parameters
-
| addr | Selects which potentiometer will be set |
| val | Value to be set |