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

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

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

Variables

struct no_os_uart_init_param lt3074_uart_ip
 
struct no_os_i2c_init_param lt3074_i2c_ip
 
struct lt3074_init_param lt3074_ip
 

Detailed Description

Defines common data to be used by lt3074 examples.

Author
Cedric Justine Encarnacion (cedri.nosp@m.cjus.nosp@m.tine..nosp@m.enca.nosp@m.rnaci.nosp@m.on@a.nosp@m.nalog.nosp@m..com)

Copyright 2025(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Variable Documentation

◆ lt3074_i2c_ip

struct no_os_i2c_init_param lt3074_i2c_ip
Initial value:
= {
.device_id = I2C_DEVICE_ID,
.max_speed_hz = 100000,
.platform_ops = I2C_OPS,
.extra = I2C_EXTRA,
}
#define I2C_EXTRA
Definition parameters.h:30
#define I2C_DEVICE_ID
Definition parameters.h:28
#define I2C_OPS
Definition parameters.h:29
#define LT3074_PMBUS_59K_261K_ADDRESS
Definition common_data.h:17

◆ lt3074_ip

struct lt3074_init_param lt3074_ip
Initial value:
= {
.i2c_init = &lt3074_i2c_ip,
.pg_param = NULL,
.en_param = NULL,
.alert_param = NULL,
.crc_en = true
}
struct no_os_i2c_init_param lt3074_i2c_ip
Definition common_data.c:24
#define NULL
Definition wrapper.h:67

◆ lt3074_uart_ip

struct no_os_uart_init_param lt3074_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,
.platform_ops = UART_OPS,
.extra = UART_EXTRA,
}
#define UART_DEVICE_ID
Definition parameters.h:23
#define UART_BAUDRATE
Definition parameters.h:24
#define UART_IRQ_ID
Definition parameters.h:21
#define UART_OPS
Definition parameters.h:26
#define UART_EXTRA
Definition parameters.h:25
@ NO_OS_UART_CS_8
Definition no_os_uart.h:31
@ NO_OS_UART_PAR_NO
Definition no_os_uart.h:42
@ NO_OS_UART_STOP_1_BIT
Definition no_os_uart.h:59