libyggdrasil  v1.0.0
dac.h File Reference

DAC abstraction implementation for Midgard. More...

#include <c/common/types.h>
#include <stm32f7xx_hal.h>
Include dependency graph for dac.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  dac_t
 DAC handle type. More...
 

Functions

C_LINKAGE bool yggdrasil_DAC_Init (dac_t dac)
 DAC init function. More...
 
C_LINKAGE bool yggdrasil_DAC_Deinit (dac_t dac)
 DAC deinit function. More...
 
C_LINKAGE void yggdrasil_DAC_Write (dac_t dac, float value)
 Set the dac value to the channel specified in the DAC handle. More...
 
C_LINKAGE float yggdrasil_DAC_Read (dac_t dac)
 Get the dac value from the channel specified in the DAC handle. More...
 

Detailed Description

DAC abstraction implementation for Midgard.

Author
Fabian Weber, Nikolaij Saegesser

Function Documentation

◆ yggdrasil_DAC_Deinit()

C_LINKAGE bool yggdrasil_DAC_Deinit ( dac_t  dac)

DAC deinit function.

Parameters
dacDAC handle
Returns
Success

◆ yggdrasil_DAC_Init()

C_LINKAGE bool yggdrasil_DAC_Init ( dac_t  dac)

DAC init function.

Parameters
dacDAC handle
Returns
Success

◆ yggdrasil_DAC_Read()

C_LINKAGE float yggdrasil_DAC_Read ( dac_t  dac)

Get the dac value from the channel specified in the DAC handle.

Parameters
dacDAC handle
Returns
DAC value

◆ yggdrasil_DAC_Write()

C_LINKAGE void yggdrasil_DAC_Write ( dac_t  dac,
float  value 
)

Set the dac value to the channel specified in the DAC handle.

Parameters
dacDAC handle
valueDAC value