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

Common data implementation for MAX30009 project. More...

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

Variables

struct no_os_uart_init_param max30009_uart_ip
 
const struct no_os_spi_init_param max30009_spi_ip
 
const struct no_os_i2c_init_param max30009_i2c_ip
 
struct no_os_gpio_init_param max30009_gpio_ip
 
const struct no_os_gpio_init_param max30009_gpio_csb_ip
 
struct max30009_init_param max30009_init_params
 
struct no_os_irq_init_param max30009_gpio_irq_ip
 

Detailed Description

Common data implementation for MAX30009 project.

Author
Edelweise Escala (edelw.nosp@m.eise.nosp@m..esca.nosp@m.la@a.nosp@m.nalog.nosp@m..com)

Copyright 2026(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Variable Documentation

◆ max30009_gpio_csb_ip

const struct no_os_gpio_init_param max30009_gpio_csb_ip
Initial value:
= {
.number = GPIO_CSB_PIN_NUM,
.pull = NO_OS_PULL_NONE,
.platform_ops = GPIO_OPS,
}
#define GPIO_OPS
Definition parameters.h:49
struct max_gpio_init_param max30009_gpio_csb_extra
Definition parameters.c:27
#define GPIO_CSB_PIN_NUM
Definition parameters.h:40
#define GPIO_CSB_PORT_NUM
Definition parameters.h:39
@ NO_OS_PULL_NONE
Definition no_os_gpio.h:31

◆ max30009_gpio_ip

struct no_os_gpio_init_param max30009_gpio_ip
Initial value:
= {
.number = GPIO_INTB_PIN_NUM,
.pull = NO_OS_PULL_UP,
.platform_ops = GPIO_OPS,
.extra = GPIO_IRQ_EXTRA,
}
#define GPIO_IRQ_EXTRA
Definition parameters.h:56
#define GPIO_INTB_PIN_NUM
Definition parameters.h:45
#define GPIO_INTB_PORT_NUM
Definition parameters.h:44
@ NO_OS_PULL_UP
Definition no_os_gpio.h:33

◆ max30009_gpio_irq_ip

struct no_os_irq_init_param max30009_gpio_irq_ip
Initial value:
= {
.irq_ctrl_id = GPIO_IRQ_ID,
.platform_ops = GPIO_IRQ_OPS,
.extra = GPIO_IRQ_EXTRA,
}
#define GPIO_IRQ_OPS
Definition parameters.h:54
#define GPIO_IRQ_ID
Definition parameters.h:19

◆ max30009_i2c_ip

const struct no_os_i2c_init_param max30009_i2c_ip
Initial value:
= {
.device_id = I2C_DEVICE_ID,
.slave_address = MAX30009_I2C_ADDRESS,
.max_speed_hz = I2C_SPEED,
.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 I2C_SPEED
Definition parameters.h:18
#define MAX30009_I2C_ADDRESS
Definition max30009.h:210

◆ max30009_init_params

struct max30009_init_param max30009_init_params
Initial value:
= {
.use_i2c = false,
.spi_init = max30009_spi_ip,
.i2c_init = max30009_i2c_ip,
.int_gpio_init = &max30009_gpio_ip,
.csb_gpio_init = max30009_gpio_csb_ip,
}
const struct no_os_i2c_init_param max30009_i2c_ip
Definition common_data.c:34
const struct no_os_spi_init_param max30009_spi_ip
Definition common_data.c:24
struct no_os_gpio_init_param max30009_gpio_ip
Definition common_data.c:42
const struct no_os_gpio_init_param max30009_gpio_csb_ip
Definition common_data.c:50

◆ max30009_spi_ip

const struct no_os_spi_init_param max30009_spi_ip
Initial value:
= {
.device_id = SPI_DEVICE_ID,
.max_speed_hz = SPI_BAUDRATE,
.chip_select = SPI_CS,
.platform_ops = SPI_OPS,
.extra = SPI_EXTRA,
.parent = NULL,
}
#define SPI_DEVICE_ID
Definition parameters.h:40
#define SPI_BAUDRATE
Definition parameters.h:44
#define SPI_OPS
Definition parameters.h:45
#define SPI_EXTRA
Definition parameters.h:46
#define SPI_CS
Definition parameters.h:41
@ NO_OS_SPI_MODE_0
Definition no_os_spi.h:26
#define NULL
Definition wrapper.h:67

◆ max30009_uart_ip

struct no_os_uart_init_param max30009_uart_ip
Initial value:
= {
.device_id = UART_DEVICE_ID,
.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_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