CubeMon-Vue-Demo-STM32F407VGT6U
ao.h File Reference

analog output library More...

Go to the source code of this file.

Typedefs

typedef enum anaOutputs anaOutputs
 

Enumerations

enum  anaOutputs { AO_NONE , AO_1 , AO_2 , AO_NONE }
 

Functions

retStatus analog_output_init (anaOutputs an_output_name, uint32_t channel, liner_fce linear_fce)
 
retStatus analog_output_set (uint16_t an_output_name, uint16_t data_type, int32_t value)
 
uint32_t lin_dac_no_scaling_no_corrections (uint32_t voltage_value)
 

Detailed Description

analog output library

Author
panvicka
Date
8.1.2022

To use this library define flag LIB_AO in the lib_config.h file and create an enum in init.h file with the outputs you would like to use. You then have to initialize each input with input_init function.

typedef enum anaOutputs {
MY_ANALOG_OUTPUT_1,
MY_ANALOG_OUTPUT_2,
MY_ANALOG_OUTPUT_3,
AO_NONE
anaOutputs
Definition: ao.h:35
Note
Do not forget to include the AO_NONE at the end of the enum listing.

Typedef Documentation

◆ anaOutputs

typedef enum anaOutputs anaOutputs

If the library is not used (LIB_AO is not defined as symbol) this dummy enum will be created to prevent compilation errors

Enumeration Type Documentation

◆ anaOutputs

enum anaOutputs

If the library is not used (LIB_AO is not defined as symbol) this dummy enum will be created to prevent compilation errors

Enumerator
AO_1 

AO_1 (PA4)

AO_2 

AO_2 (PA5)