CubeMon-Vue-Demo-STM32F407VGT6U
|
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) |
analog output library
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 anaOutputs |
If the library is not used (LIB_AO is not defined as symbol) this dummy enum will be created to prevent compilation errors
enum anaOutputs |