no-OS
voltage_output_example.h
Go to the documentation of this file.
1 /***************************************************************************/
40 #ifndef __VOLTAGE_OUTPUT_EXAMPLE_H__
41 #define __VOLTAGE_OUTPUT_EXAMPLE_H__
42 
43 /******************************************************************************/
44 /***************************** Include Files **********************************/
45 /******************************************************************************/
46 #include "ad5460.h"
47 #include "common_data.h"
48 #include "no_os_delay.h"
49 #include "no_os_gpio.h"
50 #include "no_os_print_log.h"
51 
52 /******************************************************************************/
53 /************************ Functions Declarations ******************************/
54 /******************************************************************************/
56 
57 #endif /* __VOLTAGE_OUTPUT_EXAMPLE_H__ */
ad5460.h
Header file of AD5460 Driver.
ad5460_desc
AD5460 device descriptor.
Definition: ad5460.h:352
AD5460_DAC_ACTIVE
#define AD5460_DAC_ACTIVE(x)
Definition: ad5460.h:61
no_os_delay.h
Header file of Delay functions.
pr_info
#define pr_info(fmt, args...)
Definition: no_os_print_log.h:121
ad5460_ip
struct ad5460_init_param ad5460_ip
Definition: common_data.c:70
AD5460_VOLTAGE_OUT
@ AD5460_VOLTAGE_OUT
Definition: ad5460.h:214
no_os_print_log.h
Print messages helpers.
voltage_output_example_main
int voltage_output_example_main()
Voltage output example main execution.
Definition: voltage_output_example.c:60
voltage_output_example.h
Voltage output example header for eval-ad5460 project.
ad5460_remove
int ad5460_remove(struct ad5460_desc *desc)
Free the device descriptor.
Definition: ad5460.c:613
AD5460_VOUT_RANGE_0_12V
@ AD5460_VOUT_RANGE_0_12V
Definition: ad5460.h:224
ad5460_set_channel_vout_range
int ad5460_set_channel_vout_range(struct ad5460_desc *desc, uint32_t ch, enum ad5460_vout_range vout_range)
Set the voltage range for a specific channel.
Definition: ad5460.c:291
no_os_gpio.h
Header file of GPIO Interface.
voltage_output_example_main
int voltage_output_example_main()
Voltage output example main execution.
Definition: voltage_output_example.c:60
ad5460_set_channel_function
int ad5460_set_channel_function(struct ad5460_desc *desc, uint32_t ch, enum ad5460_op_mode ch_func)
Set the operation mode for a specific channel.
Definition: ad5460.c:261
ad5460_set_channel_dac_code
int ad5460_set_channel_dac_code(struct ad5460_desc *desc, uint32_t ch, uint16_t dac_code)
Set and load a code for the DAC on a specific channel.
Definition: ad5460.c:356
ad5460_init
int ad5460_init(struct ad5460_desc **desc, struct ad5460_init_param *init_param)
Initialize the device structure.
Definition: ad5460.c:560
ad5460_dac_voltage_to_code
int ad5460_dac_voltage_to_code(struct ad5460_desc *desc, int32_t mvolts, uint16_t *code, uint32_t ch)
Converts a millivolt value in the corresponding DAC 16 bit code.
Definition: ad5460.c:74
ad5460_reg_read
int ad5460_reg_read(struct ad5460_desc *desc, uint32_t addr, uint16_t *val)
Read a register's value.
Definition: ad5460.c:211