GaIA BIOS Library
Loading...
Searching...
No Matches
gwa_dac.h File Reference

GWA external DAC driver functions. More...

#include <stdint.h>

Data Structures

struct  spi_dac_chain_t

Macros

#define DAC_VALUE_SIZE   3
#define MAX_DAC_MODULES   2

Functions

void gwa_dac_init (void)
 Initializes the external DAC.
void gwa_dac_set_value (uint8_t dac, uint16_t value)
 Sets the DAC value.

Detailed Description

GWA external DAC driver functions.

Author
Tecnologix, 2019

Function Documentation

◆ gwa_dac_set_value()

void gwa_dac_set_value ( uint8_t dac,
uint16_t value )

Sets the DAC value.

Parameters
dacDAC index.
valueDAC value.