no-OS
current_output_example.h
Go to the documentation of this file.
1 /***************************************************************************/
34 #ifndef __CURRENT_OUTPUT_EXAMPLE_H__
35 #define __CURRENT_OUTPUT_EXAMPLE_H__
36 
37 /******************************************************************************/
38 /***************************** Include Files **********************************/
39 /******************************************************************************/
40 #include "ad5460.h"
41 #include "common_data.h"
42 #include "no_os_delay.h"
43 #include "no_os_gpio.h"
44 #include "no_os_print_log.h"
45 
46 /******************************************************************************/
47 /************************ Functions Declarations ******************************/
48 /******************************************************************************/
50 
51 #endif /* __CURRENT_OUTPUT_EXAMPLE_H__ */
ad5460.h
Header file of AD5460 Driver.
ad5460_desc
AD5460 device descriptor.
Definition: ad5460.h:346
AD5460_DAC_ACTIVE
#define AD5460_DAC_ACTIVE(x)
Definition: ad5460.h:55
no_os_delay.h
Header file of Delay functions.
pr_info
#define pr_info(fmt, args...)
Definition: no_os_print_log.h:115
ad5460_ip
struct ad5460_init_param ad5460_ip
Definition: common_data.c:64
no_os_print_log.h
Print messages helpers.
current_output_example.h
Current output example header for eval-ad5460 project.
ad5460_remove
int ad5460_remove(struct ad5460_desc *desc)
Free the device descriptor.
Definition: ad5460.c:607
ad5460_set_channel_iout_range
int ad5460_set_channel_iout_range(struct ad5460_desc *desc, uint32_t ch, enum ad5460_iout_range iout_range)
Set the current range for a specific channel.
Definition: ad5460.c:307
current_output_example_main
int current_output_example_main()
Current output example main execution.
Definition: current_output_example.c:54
AD5460_CURRENT_OUT
@ AD5460_CURRENT_OUT
Definition: ad5460.h:209
ad5460_dac_current_to_code
int ad5460_dac_current_to_code(struct ad5460_desc *desc, uint32_t uamps, uint16_t *code, uint32_t ch)
Convers a microamp value in the corresponding DAC 16 bit code.
Definition: ad5460.c:103
no_os_gpio.h
Header file of GPIO Interface.
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:255
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:350
ad5460_init
int ad5460_init(struct ad5460_desc **desc, struct ad5460_init_param *init_param)
Initialize the device structure.
Definition: ad5460.c:554
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:205
AD5460_IOUT_RANGE_0_25MA
@ AD5460_IOUT_RANGE_0_25MA
Definition: ad5460.h:226
current_output_example_main
int current_output_example_main()
Current output example main execution.
Definition: current_output_example.c:54