openMMC
Open Source Modular MMC for AMCs
|
Macros | |
#define | DAC_AD84XX_SPI_BITRATE 10000000 |
#define | DAC_AD84XX_FRAME_SIZE 10 |
Functions | |
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. | |
#define DAC_AD84XX_FRAME_SIZE 10 |
#define DAC_AD84XX_SPI_BITRATE 10000000 |
void dac_ad84xx_init | ( | void | ) |
Initializes AD84XX DAC interface.
void dac_ad84xx_set_res | ( | uint8_t | addr, |
uint16_t | res ) |
Converts a resistance value into a proportional divisor value for AD84xx.
addr | Selects which potentiometer will be set |
val | Output resistance value [in Ohms] |
void dac_ad84xx_set_val | ( | uint8_t | addr, |
uint8_t | val ) |
Write a value to the AD84xx DAC output register.
addr | Selects which potentiometer will be set |
val | Value to be set |