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

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

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

Variables

struct no_os_uart_init_param ltp8800_uart_ip
 
struct no_os_i2c_init_param ltp8800_i2c_ip
 
struct no_os_gpio_init_param ltp8800_ctrl_gpio_ip
 
struct ltp8800_init_param ltp8800_ip
 

Detailed Description

Defines common data to be used by ltp8800 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 2024(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Variable Documentation

◆ ltp8800_ctrl_gpio_ip

struct no_os_gpio_init_param ltp8800_ctrl_gpio_ip
Initial value:
= {
.port = CTRL_GPIO_PORT,
.number = CTRL_GPIO_NUMBER,
.pull = NO_OS_PULL_UP,
.platform_ops = CTRL_GPIO_OPS,
.extra = CTRL_GPIO_EXTRA,
}
#define CTRL_GPIO_EXTRA
Definition parameters.h:32
#define CTRL_GPIO_NUMBER
Definition parameters.h:30
#define CTRL_GPIO_PORT
Definition parameters.h:29
#define CTRL_GPIO_OPS
Definition parameters.h:31
@ NO_OS_PULL_UP
Definition no_os_gpio.h:33

◆ ltp8800_i2c_ip

struct no_os_i2c_init_param ltp8800_i2c_ip
Initial value:
= {
.device_id = I2C_DEVICE_ID,
.max_speed_hz = 100000,
.platform_ops = I2C_OPS,
.slave_address = LTP8800_ADDRESS,
.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 LTP8800_ADDRESS
Definition common_data.h:17

◆ ltp8800_ip

struct ltp8800_init_param ltp8800_ip
Initial value:
= {
.i2c_init = &ltp8800_i2c_ip,
.smbalert_param = NULL,
.ctrl_param = &ltp8800_ctrl_gpio_ip,
.ext_clk_param = NULL,
.external_clk_en = false,
.crc_en = true,
}
struct no_os_gpio_init_param ltp8800_ctrl_gpio_ip
Definition common_data.c:32
struct no_os_i2c_init_param ltp8800_i2c_ip
Definition common_data.c:24
#define NULL
Definition wrapper.h:67

◆ ltp8800_uart_ip

struct no_os_uart_init_param ltp8800_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