no-OS
Loading...
Searching...
No Matches
common_data.h File Reference

Defines common data to be used by EVAL-POWRMS example. More...

#include "platform_includes.h"
#include "no_os_util.h"
#include "display.h"
#include "ssd_1306.h"
#include "no_os_delay.h"
#include "no_os_i2c.h"
#include "maxim_i2c.h"
#include "ad7091r5.h"
#include "iio_powrms.h"
#include "global_screen.h"
#include "m24512.h"
#include "powrms_max77986.h"
Include dependency graph for common_data.h:

Macros

#define FW_VERSION_MAJOR   1
 
#define FW_VERSION_MINOR   0
 
#define FW_VERSION_PATCH   0
 
#define DISPLAY_HOR_REZ   128
 
#define DISPLAY_VER_REZ   64
 
#define ADC_I2C_SLAVE_ADDRESS   0x2F
 

Functions

void _update_adc_data ()
 

Variables

struct display_dev * oled_display
 
ssd_1306_extra oled_display_extra
 
struct no_os_i2c_desc * oled_display_i2c_desc
 
struct display_init_param oled_display_ini_param
 
struct no_os_i2c_init_param oled_display_i2c_init_param
 
struct no_os_i2c_init_param adc_i2c_ini_param
 
struct no_os_gpio_init_param adc_gpio_ini_param
 
struct ad7091r5_init_param adc_ini_param
 
struct ad7091r5_dev * adc_desc
 
volatile struct adc_data adc_data_input
 
struct no_os_gpio_desc * boost_en_gpio_desc
 
struct no_os_gpio_desc * en_adc_5v_gpio_desc
 
struct no_os_gpio_desc * en_adc_vdrive_gpio_desc
 
struct no_os_gpio_desc * on_off_gpio_desc
 
struct no_os_gpio_desc * en_latch_gpio_desc
 
struct no_os_gpio_init_param boost_en_ip
 
struct no_os_gpio_init_param en_adc_5v_ip
 
struct no_os_gpio_init_param en_adc_vdrive_ip
 
struct no_os_gpio_init_param en_latch_vdrive_ip
 
struct no_os_uart_init_param uart_iio_ip_stdio
 
struct no_os_uart_init_param iio_demo_usb_ip
 
struct no_os_uart_init_param iio_demo_swd_ip
 
struct no_os_uart_desc * uart_iio_desc
 
struct no_os_eeprom_desc * m24512_desc
 
struct no_os_eeprom_init_param eeprom_m24512_init_param
 
struct no_os_i2c_desc * max77986_i2c_desc
 
struct no_os_i2c_init_param max77986_i2c_init_param
 

Detailed Description

Defines common data to be used by EVAL-POWRMS example.

Author
Robert Budai (rober.nosp@m.t.bu.nosp@m.dai@a.nosp@m.nalo.nosp@m.g.com)

Copyright 2025(c) Analog Devices, Inc.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Macro Definition Documentation

◆ ADC_I2C_SLAVE_ADDRESS

#define ADC_I2C_SLAVE_ADDRESS   0x2F

◆ DISPLAY_HOR_REZ

#define DISPLAY_HOR_REZ   128

◆ DISPLAY_VER_REZ

#define DISPLAY_VER_REZ   64

◆ FW_VERSION_MAJOR

#define FW_VERSION_MAJOR   1

◆ FW_VERSION_MINOR

#define FW_VERSION_MINOR   0

◆ FW_VERSION_PATCH

#define FW_VERSION_PATCH   0

Function Documentation

◆ _update_adc_data()

void _update_adc_data ( )

Variable Documentation

◆ adc_data_input

volatile struct adc_data adc_data_input
extern

◆ adc_desc

struct ad7091r5_dev* adc_desc
extern

◆ adc_gpio_ini_param

struct no_os_gpio_init_param adc_gpio_ini_param
extern

◆ adc_i2c_ini_param

struct no_os_i2c_init_param adc_i2c_ini_param
extern

◆ adc_ini_param

struct ad7091r5_init_param adc_ini_param
extern

◆ boost_en_gpio_desc

struct no_os_gpio_desc* boost_en_gpio_desc
extern

◆ boost_en_ip

struct no_os_gpio_init_param boost_en_ip
extern

◆ eeprom_m24512_init_param

struct no_os_eeprom_init_param eeprom_m24512_init_param
extern

◆ en_adc_5v_gpio_desc

struct no_os_gpio_desc* en_adc_5v_gpio_desc
extern

◆ en_adc_5v_ip

struct no_os_gpio_init_param en_adc_5v_ip
extern

◆ en_adc_vdrive_gpio_desc

struct no_os_gpio_desc* en_adc_vdrive_gpio_desc
extern

◆ en_adc_vdrive_ip

struct no_os_gpio_init_param en_adc_vdrive_ip
extern

◆ en_latch_gpio_desc

struct no_os_gpio_desc* en_latch_gpio_desc
extern

◆ en_latch_vdrive_ip

struct no_os_gpio_init_param en_latch_vdrive_ip
extern

◆ iio_demo_swd_ip

struct no_os_uart_init_param iio_demo_swd_ip
extern

◆ iio_demo_usb_ip

struct no_os_uart_init_param iio_demo_usb_ip
extern

◆ m24512_desc

struct no_os_eeprom_desc* m24512_desc
extern

◆ max77986_i2c_desc

struct no_os_i2c_desc* max77986_i2c_desc
extern

◆ max77986_i2c_init_param

struct no_os_i2c_init_param max77986_i2c_init_param
extern

◆ oled_display

struct display_dev* oled_display
extern

◆ oled_display_extra

ssd_1306_extra oled_display_extra
extern

◆ oled_display_i2c_desc

struct no_os_i2c_desc* oled_display_i2c_desc
extern

◆ oled_display_i2c_init_param

struct no_os_i2c_init_param oled_display_i2c_init_param
extern

◆ oled_display_ini_param

struct display_init_param oled_display_ini_param
extern

◆ on_off_gpio_desc

struct no_os_gpio_desc* on_off_gpio_desc
extern

◆ uart_iio_desc

struct no_os_uart_desc* uart_iio_desc
extern

◆ uart_iio_ip_stdio

struct no_os_uart_init_param uart_iio_ip_stdio
extern