precision-converters-firmware
Classes | Macros | Typedefs | Functions | Variables
main.c File Reference

Main application code for AD5933 firmware example program. More...

#include <ctype.h>
#include "no_os_i2c.h"
#include "mbed_i2c.h"
#include "no_os_error.h"
#include "no_os_delay.h"
#include "app_config.h"
Include dependency graph for main.c:

Classes

struct  ad5933_config_data
 

Macros

#define MAX_FREQ_INCREMENTS   511
 
#define TEMP_LIMIT_MIN   -40
 
#define TEMP_LIMIT_MAX   125
 
#define MAX_SETTLING_CYCLES   511
 

Typedefs

typedef struct ad5933_config_data ad5933_config_data
 

Functions

int main ()
 

Variables

ad5933_config_data config_data
 
struct mbed_i2c_init_param i2c_init_extra_params
 
struct ad5933_init_param init_params
 
struct ad5933_dev * device
 
int32_t connected = -EINVAL
 

Detailed Description

Main application code for AD5933 firmware example program.

Copyright (c) 2019-2022 Analog Devices, Inc.

All rights reserved.

This software is proprietary to Analog Devices, Inc. and its licensors. By using this software you agree to the terms of the associated Analog Devices Software License Agreement.

Macro Definition Documentation

◆ MAX_FREQ_INCREMENTS

#define MAX_FREQ_INCREMENTS   511

◆ MAX_SETTLING_CYCLES

#define MAX_SETTLING_CYCLES   511

◆ TEMP_LIMIT_MAX

#define TEMP_LIMIT_MAX   125

◆ TEMP_LIMIT_MIN

#define TEMP_LIMIT_MIN   -40

Typedef Documentation

◆ ad5933_config_data

Function Documentation

◆ main()

int main ( void  )

Variable Documentation

◆ config_data

ad5933_config_data config_data

◆ connected

int32_t connected = -EINVAL

◆ device

struct ad5933_dev* device

◆ i2c_init_extra_params

struct mbed_i2c_init_param i2c_init_extra_params
Initial value:
= {
.i2c_sda_pin = I2C_SDA,
.i2c_scl_pin = I2C_SCL
}
#define I2C_SDA
Definition: app_config_mbed.h:69
#define I2C_SCL
Definition: app_config_mbed.h:68

◆ init_params

struct ad5933_init_param init_params
Initial value:
= {
.i2c_init = {
.max_speed_hz = 100000,
.slave_address = AD5933_ADDRESS,
.platform_ops = &mbed_i2c_ops,
},
.current_sys_clk = AD5933_INTERNAL_SYS_CLK,
.current_clock_source = AD5933_CONTROL_INT_SYSCLK,
.current_gain = AD5933_RANGE_1000mVpp,
.current_range = AD5933_GAIN_X1,
}
struct mbed_i2c_init_param i2c_init_extra_params
Definition: main.c:59