no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
common_data.c File Reference
#include "common_data.h"
#include <stdbool.h>
Include dependency graph for common_data.c:

Variables

struct no_os_uart_init_param uip
 
const struct no_os_spi_init_param ltc2983_spi_ip
 
const struct no_os_gpio_init_param ltc2983_gpio_rstn
 
struct ltc2983_init_param ltc2983_ip
 
struct ltc2983_rsense ltc2983_rsense_2
 
struct ltc2983_thermistor ltc2983_thermistor_8
 
struct ltc2983_thermistor ltc2983_thermistor_10
 
struct ltc2983_rsense ltc2983_rsense_3
 
struct ltc2983_rtd ltc2983_rtd_6
 
struct ltc2983_rtd ltc2983_rtd_11
 

Variable Documentation

◆ ltc2983_gpio_rstn

const struct no_os_gpio_init_param ltc2983_gpio_rstn
Initial value:
= {
.number = GPIO_RSTN_PIN_NUM,
.platform_ops = GPIO_OPS,
.extra = GPIO_EXTRA,
}
#define GPIO_EXTRA
Definition parameters.h:73
#define GPIO_OPS
Definition parameters.h:72
#define GPIO_RSTN_PORT_NUM
Definition parameters.h:74
#define GPIO_RSTN_PIN_NUM
Definition parameters.h:75

◆ ltc2983_ip

struct ltc2983_init_param ltc2983_ip
Initial value:
= {
.spi_init = ltc2983_spi_ip,
.gpio_rstn = ltc2983_gpio_rstn,
.mux_delay_config_us = 1000,
.filter_notch_freq = 0,
.sensors[0] = NULL,
.sensors[1] = &ltc2983_rsense_2.sensor,
.sensors[2] = NULL,
.sensors[3] = NULL,
.sensors[4] = NULL,
.sensors[5] = NULL,
.sensors[6] = NULL,
.sensors[7] = &ltc2983_thermistor_8.sensor,
.sensors[8] = NULL,
.sensors[9] = &ltc2983_thermistor_10.sensor,
.sensors[10] = NULL,
.sensors[11] = NULL,
.sensors[12] = NULL,
.sensors[13] = NULL,
.sensors[14] = NULL,
.sensors[15] = NULL,
.sensors[16] = NULL,
.sensors[17] = NULL,
.sensors[18] = NULL,
.sensors[19] = NULL,
.custom_addr_ptr = LTC2983_CUST_SENS_TBL_START_REG,
.dev_type = ID_LTC2983,
}
struct ltc2983_thermistor ltc2983_thermistor_10
Definition common_data.c:127
const struct no_os_gpio_init_param ltc2983_gpio_rstn
Definition common_data.c:58
const struct no_os_spi_init_param ltc2983_spi_ip
Definition common_data.c:47
struct ltc2983_rsense ltc2983_rsense_2
Definition common_data.c:98
struct ltc2983_thermistor ltc2983_thermistor_8
Definition common_data.c:112
@ ID_LTC2983
Definition ltc2983.h:144
#define LTC2983_CUST_SENS_TBL_START_REG
Definition ltc2983.h:50
#define NULL
Definition wrapper.h:64

◆ ltc2983_rsense_2

struct ltc2983_rsense ltc2983_rsense_2
Initial value:
= {
.sensor = {
.chan = 2,
.type = LTC2983_RSENSE,
},
.r_sense_val = {
.r_sense_val_int = 10000,
}
}
@ LTC2983_RSENSE
Definition ltc2983.h:191

Sense resistor connected to channels 1-2 Resistance: 2k ohms

◆ ltc2983_rsense_3

struct ltc2983_rsense ltc2983_rsense_3
Initial value:
= {
.sensor = {
.chan = 3,
.type = LTC2983_RSENSE,
},
.r_sense_val = {
.r_sense_val_int = 2000,
}
}

Sense resistor connected to channels 2-3 Resistance: 2k ohms

◆ ltc2983_rtd_11

struct ltc2983_rtd ltc2983_rtd_11
Initial value:
= {
.sensor = {
.chan = 11,
},
.r_sense_chan = 3,
.sensor_config = 1,
.excitation_current = 0x2,
.rtd_curve = 0x2,
}
@ LTC2983_RTD_PT_1000
Definition ltc2983.h:177

RTD simulator connected to channels 10-11 Type: PT-1000 Sense resistor: channel 3

◆ ltc2983_rtd_6

struct ltc2983_rtd ltc2983_rtd_6
Initial value:
= {
.sensor = {
.chan = 6,
},
.r_sense_chan = 3,
.sensor_config = 9,
.excitation_current = 0x5,
.rtd_curve = 0x1,
}
@ LTC2983_RTD_PT_100
Definition ltc2983.h:174

RTD fixed simulator connected to channels 3-6 Type: PT-100 Sense resistor: channel 3

◆ ltc2983_spi_ip

const struct no_os_spi_init_param ltc2983_spi_ip
Initial value:
= {
.device_id = SPI_DEVICE_ID,
.max_speed_hz = SPI_MAX_SPEED,
.chip_select = SPI_CS,
.platform_ops = SPI_OPS,
.extra = SPI_EXTRA,
.parent = NULL,
}
#define SPI_DEVICE_ID
Definition parameters.h:63
#define SPI_OPS
Definition parameters.h:68
#define SPI_EXTRA
Definition parameters.h:69
#define SPI_CS
Definition parameters.h:64
#define SPI_MAX_SPEED
Definition parameters.h:70
@ NO_OS_SPI_BIT_ORDER_MSB_FIRST
Definition no_os_spi.h:64
@ NO_OS_SPI_MODE_0
Definition no_os_spi.h:49

◆ ltc2983_thermistor_10

struct ltc2983_thermistor ltc2983_thermistor_10
Initial value:
= {
.sensor = {
.chan = 10,
},
.r_sense_chan = 2,
.sensor_config = 0x2,
.excitation_current = 0x3,
}
@ LTC2983_THERMISTOR_44008_44032
Definition ltc2983.h:185

Thermistor fixed simulator connected to channel 10 Sense Resistor: Channel 2 Expected: -30.59 C

◆ ltc2983_thermistor_8

struct ltc2983_thermistor ltc2983_thermistor_8
Initial value:
= {
.sensor = {
.chan = 8,
},
.r_sense_chan = 2,
.sensor_config = 0x2,
.excitation_current = 0x3,
}

Thermistor simulator connected to channel 8 Sense Resistor: Channel 2

◆ uip

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:46
#define UART_BAUDRATE
Definition parameters.h:47
#define UART_OPS
Definition parameters.h:49
#define UART_EXTRA
Definition parameters.h:48
@ NO_OS_UART_CS_8
Definition no_os_uart.h:54
@ NO_OS_UART_PAR_NO
Definition no_os_uart.h:65
@ NO_OS_UART_STOP_1_BIT
Definition no_os_uart.h:82