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

Defines common data to be used by ad405x examples. More...

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

Variables

struct no_os_uart_init_param ad405x_uart_ip
 
const struct no_os_i3c_init_param eeprom_i2c_ip
 
struct ad405x_init_param ad405x_ip
 
struct no_os_gpio_init_param gpio_gpio0_param
 
struct no_os_gpio_init_param gpio_gpio1_param
 

Detailed Description

Defines common data to be used by ad405x examples.

Author
Jorge Marques (jorge.nosp@m..mar.nosp@m.ques@.nosp@m.anal.nosp@m.og.co.nosp@m.m)

Copyright 2025(c) Analog Devices, Inc.

All rights reserved.

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

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • 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.
  • 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.
  • The use of this software may or may not infringe the patent rights of one or more patent holders. This license does not release you from the requirement that you obtain separate licenses from these patent holders to use this software.
  • Use of the software either in source or binary form, must be run on or directly connected to an Analog Devices Inc. component.

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, 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

◆ ad405x_ip

struct ad405x_init_param ad405x_ip
Initial value:
= {
.comm_type = AD405X_COMM,
.dev_type = AD405X_DEV_TYPE,
.gpio_cnv = AD405X_GPIO_CNV,
.gpio_gpio0 = &gpio_gpio0_param,
.gpio_gpio1 = &gpio_gpio1_param
}
struct no_os_gpio_init_param gpio_gpio1_param
Definition common_data.c:126
struct no_os_gpio_init_param gpio_gpio0_param
Definition common_data.c:119

◆ ad405x_uart_ip

struct no_os_uart_init_param ad405x_uart_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,
.platform_ops = 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_OPS
Definition parameters.h:49
#define UART_EXTRA
Definition parameters.h:48
@ 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

◆ eeprom_i2c_ip

const struct no_os_i3c_init_param eeprom_i2c_ip
Initial value:
= {
.is_i3c = EEPROM_IS_I2C,
}
#define EEPROM_IS_I2C
Definition parameters.h:90
#define EEPROM_STATIC_ADDR
Definition parameters.h:92

◆ gpio_gpio0_param

struct no_os_gpio_init_param gpio_gpio0_param
Initial value:
= {
.port = GPIO_GPIO0_PORT,
.number = GPIO_GPIO0_PIN,
.platform_ops = GPIO_OPS,
.extra = &gpio_init
}
#define GPIO_OPS
Definition parameters.h:72
struct stm32_gpio_init_param gpio_init
Definition parameters.c:129

◆ gpio_gpio1_param

struct no_os_gpio_init_param gpio_gpio1_param
Initial value:
= {
.port = GPIO_GPIO1_PORT,
.number = GPIO_GPIO1_PIN,
.platform_ops = GPIO_OPS,
.extra = &gpio_init
}