precision-converters-firmware
Macros | Functions | Variables
app_config.h File Reference

Configuration file for LTC2672 device application. More...

#include <stdint.h>
#include "ltc2672.h"
#include "app_config_mbed.h"
Include dependency graph for app_config.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MBED_PLATFORM   1
 
#define STM32_PLATFORM   2
 
#define XSTR(s)   #s
 
#define STR(s)   XSTR(s)
 
#define ACTIVE_PLATFORM   MBED_PLATFORM
 
#define USE_VIRTUAL_COM_PORT
 
#define DEV_LTC2672_16
 
#define ACTIVE_DEVICE_NAME   "ltc2672-16"
 
#define DEVICE_NAME   "DEV_LTC2672_16"
 
#define ACTIVE_DEVICE_ID   LTC2672_16
 
#define DAC_RESOLUTION   16
 
#define DAC_MAX_COUNT   LTC2672_16BIT_RESO
 
#define DAC_VREF   1.25
 
#define HW_CARRIER_NAME   TARGET_NAME
 
#define HW_MEZZANINE_NAME   "DC2903A-A"
 
#define IIO_UART_BAUD_RATE   (230400)
 
#define FIRMWARE_NAME   "ltc2672_iio"
 
#define PLATFORM_NAME   HW_CARRIER_NAME
 
#define VIRTUAL_COM_PORT_VID   0x0456
 
#define VIRTUAL_COM_PORT_PID   0xb66c
 
#define VIRTUAL_COM_SERIAL_NUM   (FIRMWARE_NAME "_" DEVICE_NAME "_" STR(PLATFORM_NAME))
 
#define CONSOLE_STDIO_PORT_AVAILABLE
 
#define CONV_TRIGGER_PERIOD_NSEC   (((float)(1.0 / SAMPLING_RATE) * 1000000) * 1000)
 
#define CONV_TRIGGER_DUTY_CYCLE_NSEC   (CONV_TRIGGER_PERIOD_NSEC / 2)
 

Functions

int32_t init_system (void)
 Initialize the system peripherals. More...
 

Variables

struct no_os_uart_desc * uart_iio_com_desc
 
struct no_os_uart_desc * uart_console_stdio_desc
 

Detailed Description

Configuration file for LTC2672 device application.

Copyright (c) 2023-24 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.

Macro Definition Documentation

◆ ACTIVE_DEVICE_ID

#define ACTIVE_DEVICE_ID   LTC2672_16

◆ ACTIVE_DEVICE_NAME

#define ACTIVE_DEVICE_NAME   "ltc2672-16"

◆ ACTIVE_PLATFORM

#define ACTIVE_PLATFORM   MBED_PLATFORM

◆ CONSOLE_STDIO_PORT_AVAILABLE

#define CONSOLE_STDIO_PORT_AVAILABLE

◆ CONV_TRIGGER_DUTY_CYCLE_NSEC

#define CONV_TRIGGER_DUTY_CYCLE_NSEC   (CONV_TRIGGER_PERIOD_NSEC / 2)

◆ CONV_TRIGGER_PERIOD_NSEC

#define CONV_TRIGGER_PERIOD_NSEC   (((float)(1.0 / SAMPLING_RATE) * 1000000) * 1000)

◆ DAC_MAX_COUNT

#define DAC_MAX_COUNT   LTC2672_16BIT_RESO

◆ DAC_RESOLUTION

#define DAC_RESOLUTION   16

◆ DAC_VREF

#define DAC_VREF   1.25

◆ DEV_LTC2672_16

#define DEV_LTC2672_16

◆ DEVICE_NAME

#define DEVICE_NAME   "DEV_LTC2672_16"

◆ FIRMWARE_NAME

#define FIRMWARE_NAME   "ltc2672_iio"

◆ HW_CARRIER_NAME

#define HW_CARRIER_NAME   TARGET_NAME

◆ HW_MEZZANINE_NAME

#define HW_MEZZANINE_NAME   "DC2903A-A"

◆ IIO_UART_BAUD_RATE

#define IIO_UART_BAUD_RATE   (230400)

◆ MBED_PLATFORM

#define MBED_PLATFORM   1

◆ PLATFORM_NAME

#define PLATFORM_NAME   HW_CARRIER_NAME

◆ STM32_PLATFORM

#define STM32_PLATFORM   2

◆ STR

#define STR (   s)    XSTR(s)

◆ USE_VIRTUAL_COM_PORT

#define USE_VIRTUAL_COM_PORT

◆ VIRTUAL_COM_PORT_PID

#define VIRTUAL_COM_PORT_PID   0xb66c

◆ VIRTUAL_COM_PORT_VID

#define VIRTUAL_COM_PORT_VID   0x0456

◆ VIRTUAL_COM_SERIAL_NUM

#define VIRTUAL_COM_SERIAL_NUM   (FIRMWARE_NAME "_" DEVICE_NAME "_" STR(PLATFORM_NAME))

◆ XSTR

#define XSTR (   s)    #s

Function Documentation

◆ init_system()

int32_t init_system ( void  )

Initialize the system peripherals.

Returns
0 in case of success, negative error code otherwise

Initialize the system peripherals.

Returns
0 in case of success, negative error code otherwise.

This function initializes system peripherals for the application

Returns
- 0 in case of success, negative error code otherwise
Here is the caller graph for this function:

Variable Documentation

◆ uart_console_stdio_desc

struct no_os_uart_desc* uart_console_stdio_desc
extern

◆ uart_iio_com_desc

struct no_os_uart_desc* uart_iio_com_desc
extern