precision-converters-firmware
Macros | Functions | Variables
ad590_console_app.c File Reference

ad590 console application interfaces More...

#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <ctype.h>
#include "ltc2488_user_config.h"
#include "mbed_platform_support.h"
#include "no_os_delay.h"
#include "ltc2488.h"
#include "ad590_console_app.h"
Include dependency graph for ad590_console_app.c:

Macros

#define MIN_SAMPLES   1
 
#define MAX_SAMPLES   1000
 
#define MIN_SAMPLE_INTERVAL   0.2
 
#define MAX_SAMPLE_INTERVAL   60.0
 
#define MAX_RETRY_ATTEMPTS   3
 
#define RESISTOR_DIVIDER_FACTOR   2
 
#define TRANSFER_FUNCTION_CONSTANT   100
 
#define TEMP_CONVERSION_CONSTANT   273.15
 
#define PRINT_IN_SINGLE_LINE   1
 

Functions

int32_t ltc2488_app_initialize (void)
 Initialize the LTC2488 device and user configurations. More...
 

Variables

console_menu ad590_cmd_menu
 
console_menu ad590_main_menu
 

Detailed Description

ad590 console application interfaces

This file is specific to ad590 console menu application handle. The functions defined in this file performs the action based on user selected console menu.

Copyright (c) 2021-22 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

◆ MAX_RETRY_ATTEMPTS

#define MAX_RETRY_ATTEMPTS   3

◆ MAX_SAMPLE_INTERVAL

#define MAX_SAMPLE_INTERVAL   60.0

◆ MAX_SAMPLES

#define MAX_SAMPLES   1000

◆ MIN_SAMPLE_INTERVAL

#define MIN_SAMPLE_INTERVAL   0.2

◆ MIN_SAMPLES

#define MIN_SAMPLES   1

◆ PRINT_IN_SINGLE_LINE

#define PRINT_IN_SINGLE_LINE   1

◆ RESISTOR_DIVIDER_FACTOR

#define RESISTOR_DIVIDER_FACTOR   2

◆ TEMP_CONVERSION_CONSTANT

#define TEMP_CONVERSION_CONSTANT   273.15

◆ TRANSFER_FUNCTION_CONSTANT

#define TRANSFER_FUNCTION_CONSTANT   100

Function Documentation

◆ ltc2488_app_initialize()

int32_t ltc2488_app_initialize ( void  )

Initialize the LTC2488 device and user configurations.

Returns
LTC2488 device initialization status
Here is the caller graph for this function:

Variable Documentation

◆ ad590_cmd_menu

console_menu ad590_cmd_menu
Initial value:
= {
.title = EOL "Set Operation Type" EOL,
.items = cmd_menu_items,
.itemCount = ARRAY_SIZE(cmd_menu_items),
.headerItem = NULL,
.footerItem = NULL,
.enableEscapeKey = true
}
#define ARRAY_SIZE(x)
Definition: adi_console_menu.h:49
#define EOL
Definition: app_config.h:47

◆ ad590_main_menu

console_menu ad590_main_menu
Initial value:
= {
.title = EOL "Please select a device:" EOL,
.items = main_menu_items,
.itemCount = ARRAY_SIZE(main_menu_items),
.headerItem = print_title,
.footerItem = NULL,
.enableEscapeKey = false
}
console_menu_item main_menu_items[]
Definition: ad5592r_console_app.c:1057