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

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

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

Variables

const struct no_os_i2c_init_param iip
 
const struct no_os_gpio_init_param gip
 
struct ltc3208_init_param ltc3208_user_init
 

Detailed Description

Defines common data to be used by LTC3208 examples.

Author
Edelweise Escala (edelw.nosp@m.eise.nosp@m..esca.nosp@m.la@a.nosp@m.nalog.nosp@m..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

◆ gip

const struct no_os_gpio_init_param gip
Initial value:
= {
.port = GPIO_ENRGBS_PIN_PORT,
.number = GPIO_ENRGBS_PIN_NUM,
.pull = NO_OS_PULL_NONE,
.platform_ops = GPIO_OPS,
.extra = &ltc3208_gpio_extra,
}
#define GPIO_OPS
Definition parameters.h:72
struct max_gpio_init_param ltc3208_gpio_extra
Definition parameters.c:40
@ NO_OS_PULL_NONE
Definition no_os_gpio.h:54

◆ iip

const struct no_os_i2c_init_param iip
Initial value:
= {
.device_id = I2C_DEVICE_ID,
.max_speed_hz = 400000,
.slave_address = DEV_I2C_ADDRESS,
.platform_ops = I2C_OPS,
.extra = &ltc3208_i2c_extra,
}
#define I2C_DEVICE_ID
Definition parameters.h:51
#define I2C_OPS
Definition parameters.h:52
struct max_i2c_init_param ltc3208_i2c_extra
Definition parameters.c:36
#define DEV_I2C_ADDRESS
Definition parameters.h:39

◆ ltc3208_user_init

struct ltc3208_init_param ltc3208_user_init
Initial value:
= {
.i2c_init_param = iip,
.gpio_init_param = gip
}
const struct no_os_i2c_init_param iip
Definition common_data.c:51
const struct no_os_gpio_init_param gip
Definition common_data.c:44