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

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

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

Variables

struct no_os_uart_init_param uart_ip
 
struct no_os_i2c_init_param i2c_ip
 
struct max17616_init_param max17616_ip
 

Detailed Description

Defines common data to be used by max17616 examples.

Author
Carlos Jones (carlo.nosp@m.sjr..nosp@m.jones.nosp@m.@ana.nosp@m.log.c.nosp@m.om)

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

◆ i2c_ip

struct no_os_i2c_init_param i2c_ip
Initial value:
= {
.device_id = I2C_DEVICE_ID,
.max_speed_hz = I2C_CLK_SPEED,
.slave_address = I2C_ADDR,
.platform_ops = I2C_OPS,
.extra = I2C_EXTRA
}
#define I2C_EXTRA
Definition parameters.h:53
#define I2C_DEVICE_ID
Definition parameters.h:51
#define I2C_OPS
Definition parameters.h:52
#define I2C_ADDR
Definition parameters.h:61
#define I2C_CLK_SPEED
Definition parameters.h:60

◆ max17616_ip

struct max17616_init_param max17616_ip
Initial value:
= {
.i2c_init = &i2c_ip,
.chip_id = ID_MAX17616,
}
struct no_os_i2c_init_param i2c_ip
Definition common_data.c:253
@ ID_MAX17616
Definition max17616.h:117

◆ uart_ip

struct no_os_uart_init_param uart_ip
Initial value:
= {
.device_id = UART_DEVICE_ID,
.asynchronous_rx = UART_ASYNC_RX,
.baud_rate = UART_BAUDRATE,
.size = UART_SIZE,
.parity = UART_PARITY,
.stop = UART_STOP,
.extra = UART_EXTRA,
.platform_ops = UART_OPS,
}
#define UART_DEVICE_ID
Definition parameters.h:46
#define UART_BAUDRATE
Definition parameters.h:47
#define UART_OPS
Definition parameters.h:49
#define UART_EXTRA
Definition parameters.h:48
#define UART_ASYNC_RX
Definition parameters.h:70
#define UART_PARITY
Definition parameters.h:73
#define UART_SIZE
Definition parameters.h:72
#define UART_STOP
Definition parameters.h:53