no-OS
Variables
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,
}

◆ 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,
}

◆ 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,
}
}

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,
}

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,
}

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,
}

◆ ltc2983_thermistor_10

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

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,
}
GPIO_RSTN_PORT_NUM
#define GPIO_RSTN_PORT_NUM
Definition: parameters.h:67
LTC2983_CUST_SENS_TBL_START_REG
#define LTC2983_CUST_SENS_TBL_START_REG
Definition: ltc2983.h:58
NO_OS_UART_STOP_1_BIT
@ NO_OS_UART_STOP_1_BIT
Definition: no_os_uart.h:94
ltc2983_thermistor_8
struct ltc2983_thermistor ltc2983_thermistor_8
Definition: common_data.c:116
UART_EXTRA
#define UART_EXTRA
Definition: parameters.h:54
LTC2983_THERMISTOR_44008_44032
@ LTC2983_THERMISTOR_44008_44032
Definition: ltc2983.h:193
ID_LTC2983
@ ID_LTC2983
Definition: ltc2983.h:152
SPI_EXTRA
#define SPI_EXTRA
Definition: parameters.h:75
LTC2983_RSENSE
@ LTC2983_RSENSE
Definition: ltc2983.h:199
LTC2983_RTD_PT_100
@ LTC2983_RTD_PT_100
Definition: ltc2983.h:182
UART_OPS
#define UART_OPS
Definition: parameters.h:55
ltc2983_thermistor::sensor
struct ltc2983_sensor sensor
Definition: ltc2983.h:326
LTC2983_RTD_PT_1000
@ LTC2983_RTD_PT_1000
Definition: ltc2983.h:185
UART_BAUDRATE
#define UART_BAUDRATE
Definition: parameters.h:53
ltc2983_gpio_rstn
const struct no_os_gpio_init_param ltc2983_gpio_rstn
Definition: common_data.c:58
GPIO_RSTN_PIN_NUM
#define GPIO_RSTN_PIN_NUM
Definition: parameters.h:68
SPI_OPS
#define SPI_OPS
Definition: parameters.h:74
SPI_CS
#define SPI_CS
Definition: parameters.h:70
NO_OS_SPI_BIT_ORDER_MSB_FIRST
@ NO_OS_SPI_BIT_ORDER_MSB_FIRST
Definition: no_os_spi.h:76
NULL
#define NULL
Definition: wrapper.h:64
SPI_DEVICE_ID
#define SPI_DEVICE_ID
Definition: parameters.h:69
NO_OS_UART_PAR_NO
@ NO_OS_UART_PAR_NO
Definition: no_os_uart.h:77
ltc2983_spi_ip
const struct no_os_spi_init_param ltc2983_spi_ip
Definition: common_data.c:47
GPIO_OPS
#define GPIO_OPS
Definition: parameters.h:78
ltc2983_rsense_2
struct ltc2983_rsense ltc2983_rsense_2
Definition: common_data.c:102
UART_DEVICE_ID
#define UART_DEVICE_ID
Definition: parameters.h:52
ltc2983_thermistor_10
struct ltc2983_thermistor ltc2983_thermistor_10
Definition: common_data.c:131
SPI_MAX_SPEED
#define SPI_MAX_SPEED
Definition: parameters.h:63
NO_OS_SPI_MODE_0
@ NO_OS_SPI_MODE_0
Definition: no_os_spi.h:61
ltc2983_rsense::sensor
struct ltc2983_sensor sensor
Definition: ltc2983.h:376
NO_OS_UART_CS_8
@ NO_OS_UART_CS_8
Definition: no_os_uart.h:66
GPIO_EXTRA
#define GPIO_EXTRA
Definition: parameters.h:79