precision-converters-firmware
Functions | Variables
main.c File Reference

: main module for ADT74xx application interface More...

Functions

int main ()
 

Variables

struct mbed_i2c_init_param i2c_init_extra_params
 
struct no_os_i2c_init_param i2c_params
 
struct mbed_spi_init_param spi_init_extra_params
 
struct no_os_spi_init_param spi_params
 
struct adt7420_dev * device
 
registers_e registers
 
int32_t connected = -1
 
uint8_t device_id = 0
 

Detailed Description

: main module for ADT74xx application interface

: main module for ADT74xx application interface

Copyright (c) 2019, 2021-2022, Analog Devices, Inc. All rights reserved.

This software is proprietary to Analog Devices, Inc. and its licensors. By using this software you agree to the terms of the associated Analog Devices Software License Agreement. /*

Function Documentation

◆ main()

int main ( void  )

Variable Documentation

◆ connected

int32_t connected = -1

◆ device

struct adt7420_dev* device

◆ device_id

uint8_t device_id = 0

◆ i2c_init_extra_params

struct mbed_i2c_init_param i2c_init_extra_params
Initial value:
= {
.i2c_sda_pin = I2C_SDA,
.i2c_scl_pin = I2C_SCL
}
#define I2C_SDA
Definition: app_config_mbed.h:69
#define I2C_SCL
Definition: app_config_mbed.h:68

◆ i2c_params

struct no_os_i2c_init_param i2c_params
Initial value:
= {
.device_id = 0,
.max_speed_hz = 100000,
.slave_address = INT_I2C_ADDRESS,
.platform_ops = &i2c_platform_ops
}
struct mbed_i2c_init_param i2c_init_extra_params
Definition: main.c:59
#define i2c_platform_ops
Definition: app_config.h:83
#define INT_I2C_ADDRESS
Definition: app_config.h:41

◆ registers

registers_e registers

◆ spi_init_extra_params

struct mbed_spi_init_param spi_init_extra_params
Initial value:
= {
.spi_miso_pin = SPI_HOST_SDI,
.spi_mosi_pin = SPI_HOST_SDO,
.spi_clk_pin = SPI_SCK
}
#define SPI_HOST_SDO
Definition: app_config_mbed.h:34
#define SPI_SCK
Definition: app_config_mbed.h:36
#define SPI_HOST_SDI
Definition: app_config_mbed.h:35

◆ spi_params

struct no_os_spi_init_param spi_params
Initial value:
= {
.max_speed_hz = 1000000,
.chip_select = SPI_CSB,
.mode = NO_OS_SPI_MODE_3,
.platform_ops = &spi_platform_ops
}
#define SPI_CSB
Definition: app_config_mbed.h:33
#define spi_platform_ops
Definition: app_config.h:125
struct mbed_spi_init_param spi_init_extra_params
Definition: main.c:92