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

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

#include "common_data.h"
Include dependency graph for common_data.c:

Variables

struct display_dev * oled_display
 
struct ad7091r5_dev * adc_desc
 
struct no_os_eeprom_desc * m24512_desc
 
struct no_os_i2c_desc * oled_display_i2c_desc
 
struct no_os_i2c_desc * max77986_i2c_desc
 
struct no_os_uart_desc * uart_iio_desc
 
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_i2c_init_param oled_display_i2c_init_param
 
ssd_1306_extra oled_display_extra
 
struct display_init_param oled_display_ini_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 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 iio_demo_usb_ip
 
struct no_os_gpio_init_param wc_gpio_init
 
struct m24512_init_param m24512_init_extra_param
 
struct no_os_eeprom_init_param eeprom_m24512_init_param
 
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.

Variable Documentation

◆ adc_desc

struct ad7091r5_dev* adc_desc

◆ adc_gpio_ini_param

struct no_os_gpio_init_param adc_gpio_ini_param
Initial value:
= {
.port = 0,
.number = 2,
.platform_ops = GPIO_OPS,
.extra = GPIO_EXTRA,
}
#define GPIO_EXTRA
Definition parameters.h:73
#define GPIO_OPS
Definition parameters.h:72

◆ adc_i2c_ini_param

struct no_os_i2c_init_param adc_i2c_ini_param
Initial value:
= {
.device_id = I2C_DEVICE_ID,
.max_speed_hz = I2C_SPEED,
.slave_address = ADC_I2C_SLAVE_ADDRESS,
.platform_ops = I2C_OPS,
.extra = I2C_EXTRA_ADC,
}
#define I2C_DEVICE_ID
Definition parameters.h:51
#define I2C_OPS
Definition parameters.h:52
#define I2C_SPEED
Definition parameters.h:41
#define ADC_I2C_SLAVE_ADDRESS
Definition common_data.h:56
#define I2C_EXTRA_ADC
Definition parameters.h:58

◆ adc_ini_param

struct ad7091r5_init_param adc_ini_param
Initial value:
= {
.i2c_init = &adc_i2c_ini_param,
.gpio_resetn = &adc_gpio_ini_param,
}
struct no_os_i2c_init_param adc_i2c_ini_param
Definition common_data.c:73
struct no_os_gpio_init_param adc_gpio_ini_param
Definition common_data.c:81

◆ boost_en_gpio_desc

struct no_os_gpio_desc* boost_en_gpio_desc

◆ boost_en_ip

struct no_os_gpio_init_param boost_en_ip
Initial value:
= {
.port = 0,
.number = 9,
.platform_ops = GPIO_OPS,
.extra = GPIO_EXTRA,
}

◆ eeprom_m24512_init_param

struct no_os_eeprom_init_param eeprom_m24512_init_param
Initial value:
= {
.device_id = 0,
.platform_ops = &eeprom_m24512_ops,
}
struct m24512_init_param m24512_init_extra_param
Definition common_data.c:145
const struct no_os_eeprom_platform_ops eeprom_m24512_ops
M24512 EEPROM specific ops structure.
Definition m24512.c:428

◆ en_adc_5v_gpio_desc

struct no_os_gpio_desc* en_adc_5v_gpio_desc

◆ en_adc_5v_ip

struct no_os_gpio_init_param en_adc_5v_ip
Initial value:
= {
.port = 0,
.number = 19,
.platform_ops = GPIO_OPS,
.extra = GPIO_EXTRA,
}

◆ en_adc_vdrive_gpio_desc

struct no_os_gpio_desc* en_adc_vdrive_gpio_desc

◆ en_adc_vdrive_ip

struct no_os_gpio_init_param en_adc_vdrive_ip
Initial value:
= {
.port = 0,
.number = 20,
.platform_ops = GPIO_OPS,
.extra = GPIO_EXTRA,
}

◆ en_latch_gpio_desc

struct no_os_gpio_desc* en_latch_gpio_desc

◆ en_latch_vdrive_ip

struct no_os_gpio_init_param en_latch_vdrive_ip
Initial value:
= {
.port = 0,
.number = 15,
.platform_ops = GPIO_OPS,
.extra = GPIO_EXTRA,
.pull = NO_OS_PULL_DOWN,
}
@ NO_OS_PULL_DOWN
Definition no_os_gpio.h:58

◆ iio_demo_usb_ip

struct no_os_uart_init_param iio_demo_usb_ip
Initial value:
= {
.device_id = UART_DEVICE_ID,
.irq_id = UART_IRQ_ID,
.asynchronous_rx = true,
.baud_rate = UART_BAUDRATE,
.size = NO_OS_UART_CS_8,
.parity = NO_OS_UART_PAR_NO,
.extra = UART_EXTRA_A,
.platform_ops = &max_uart_ops,
}
#define UART_DEVICE_ID
Definition parameters.h:46
#define UART_BAUDRATE
Definition parameters.h:47
#define UART_IRQ_ID
Definition parameters.h:44
#define UART_EXTRA_A
Definition parameters.h:51
const struct no_os_uart_platform_ops max_uart_ops
Maxim platform specific UART platform ops structure.
Definition maxim_uart.c:467
@ NO_OS_UART_CS_8
Definition no_os_uart.h:54
@ NO_OS_UART_PAR_NO
Definition no_os_uart.h:65
@ NO_OS_UART_STOP_1_BIT
Definition no_os_uart.h:82

◆ m24512_desc

struct no_os_eeprom_desc* m24512_desc

◆ m24512_init_extra_param

struct m24512_init_param m24512_init_extra_param
Initial value:
= {
.i2c_init = {
.device_id = M24512_I2C_DEVICE_ID,
.max_speed_hz = I2C_SPEED,
.slave_address = M24512_I2C_ADDR,
.platform_ops = I2C_OPS,
.extra = I2C_EXTRA_ADC,
},
.wc_gpio_init = &wc_gpio_init,
.i2c_addr = M24512_I2C_ADDR,
}
struct no_os_gpio_init_param wc_gpio_init
Definition common_data.c:138
#define M24512_I2C_ADDR
Definition parameters.h:69
#define M24512_I2C_DEVICE_ID
Definition parameters.h:68

◆ max77986_i2c_desc

struct no_os_i2c_desc* max77986_i2c_desc

◆ max77986_i2c_init_param

struct no_os_i2c_init_param max77986_i2c_init_param
Initial value:
= {
.device_id = I2C_DEVICE_ID,
.max_speed_hz = I2C_SPEED,
.slave_address = MAX77986_I2C_ADDR,
.platform_ops = I2C_OPS,
.extra = I2C_EXTRA_ADC,
}
#define MAX77986_I2C_ADDR
Definition powrms_max77986.h:39

◆ oled_display

struct display_dev* oled_display

◆ oled_display_extra

ssd_1306_extra oled_display_extra
Initial value:
= {
.comm_type = SSD1306_I2C,
}
struct no_os_i2c_init_param oled_display_i2c_init_param
Definition common_data.c:53
@ SSD1306_I2C
Definition ssd_1306.h:43

◆ oled_display_i2c_desc

struct no_os_i2c_desc* oled_display_i2c_desc

◆ oled_display_i2c_init_param

struct no_os_i2c_init_param oled_display_i2c_init_param
Initial value:
= {
.device_id = I2C_DEVICE_ID,
.max_speed_hz = I2C_SPEED,
.slave_address = SSD1306_I2C_ADDR,
.platform_ops = I2C_OPS,
}
#define I2C_EXTRA_DISPLAY
Definition parameters.h:59
#define SSD1306_I2C_ADDR
Definition ssd_1306.h:53

◆ oled_display_ini_param

struct display_init_param oled_display_ini_param
Initial value:
= {
.cols_nb = DISPLAY_HOR_REZ,
.rows_nb = DISPLAY_VER_REZ,
.controller_ops = &ssd1306_ops,
.extra = &oled_display_extra,
}
ssd_1306_extra oled_display_extra
Definition common_data.c:61
#define DISPLAY_HOR_REZ
Definition common_data.h:53
#define DISPLAY_VER_REZ
Definition common_data.h:54
const struct display_controller_ops ssd1306_ops
Definition ssd_1306.c:51

◆ on_off_gpio_desc

struct no_os_gpio_desc* on_off_gpio_desc

◆ uart_iio_desc

struct no_os_uart_desc* uart_iio_desc

◆ wc_gpio_init

struct no_os_gpio_init_param wc_gpio_init
Initial value:
= {
.port = M24512_WC_PORT,
.number = M24512_WC_NR,
.platform_ops = GPIO_OPS,
.extra = GPIO_EXTRA,
}
#define M24512_WC_PORT
Definition parameters.h:71
#define M24512_WC_NR
Definition parameters.h:72