uint8_t addr
Definition: max538x.h:70
enum max538x_type active_device
Definition: max538x.h:88
@ MAX5382K
Definition: max538x.h:65
@ MAX5381L
Definition: max538x.h:58
int32_t no_os_i2c_write(struct no_os_i2c_desc *desc, uint8_t *data, uint8_t bytes_number, uint8_t stop_bit)
I2C Write data to slave device.
Definition: no_os_i2c.c:159
int32_t no_os_i2c_init(struct no_os_i2c_desc **desc, const struct no_os_i2c_init_param *param)
Initialize the I2C communication peripheral.
Definition: no_os_i2c.c:52
uint8_t max538x_vref
Definition: max538x.h:81
int32_t no_os_i2c_remove(struct no_os_i2c_desc *desc)
Free the resources allocated by no_os_i2c_init().
Definition: no_os_i2c.c:113
#define MAX538X_RESOLUTION
Definition: max538x.h:48
uint8_t max538x_vdd
Definition: max538x.h:90
Definition: ad9361_util.h:69
void * no_os_calloc(size_t nitems, size_t size)
Allocate memory and return a pointer to it, set memory to 0.
Definition: chibios_alloc.c:54
int max538x_remove(struct max538x_dev *dev)
Free the resources allocated by max538x_init().
Definition: max538x.c:152
@ MAX5380K
Definition: max538x.h:57
@ MAX5381N
Definition: max538x.h:60
#define NO_OS_DIV_U64(x, y)
Definition: no_os_util.h:115
@ MAX5380N
Definition: max538x.h:56
uint8_t vfactor
Definition: max538x.h:69
enum max538x_type active_device
Definition: max538x.h:77
@ MAX5382L
Definition: max538x.h:62
@ MAX5382N
Definition: max538x.h:64
@ MAX5382M
Definition: max538x.h:63
uint8_t max538x_vdd
Definition: max538x.h:79
@ MAX5380L
Definition: max538x.h:54
@ MAX5381K
Definition: max538x.h:61
Structure holding I2C address descriptor.
Definition: no_os_i2c.h:101
Header file of max538x Family Driver.
Header file of I2C Interface.
uint8_t max538x_vref
Definition: max538x.h:92
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
const struct max538x_chip_info chip_info[]
Definition: max538x.c:46
struct no_os_i2c_desc * i2c_desc
Definition: max538x.h:75
struct no_os_i2c_init_param i2c_init
Definition: max538x.h:86
Structure holding the parameters for I2C initialization.
Definition: no_os_i2c.h:64
#define NULL
Definition: wrapper.h:64
int max538x_set_voutput(struct max538x_dev *dev, float vout)
Sets the DAC output voltage using vout.
Definition: max538x.c:169
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
const struct max538x_chip_info chip_info[]
Definition: max538x.c:46
int max538x_remove(struct max538x_dev *dev)
Free the resources allocated by max538x_init().
Definition: max538x.c:152
Header file of utility functions.
@ MAX5381M
Definition: max538x.h:59
int max538x_set_voutput(struct max538x_dev *dev, float vout)
Sets the DAC output voltage using vout.
Definition: max538x.c:169
int max538x_init(struct max538x_dev **device, struct max538x_init_param init_param)
Initializes the communication peripheral and checks if the device is present.
Definition: max538x.c:111
max538x_type
Definition: max538x.h:53
Error macro definition for ARM Compiler.
@ MAX5380M
Definition: max538x.h:55
int max538x_init(struct max538x_dev **device, struct max538x_init_param init_param)
Initializes the communication peripheral and checks if the device is present.
Definition: max538x.c:111