precision-converters-firmware
|
: Implementation for the menu functions that handle the AD7124 More...
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <ctype.h>
#include "app_config.h"
#include "mbed_platform_support.h"
#include "no_os_error.h"
#include "no_os_gpio.h"
#include "no_os_spi.h"
#include "mbed_spi.h"
#include "mbed_gpio.h"
#include "ad7124.h"
#include "ad7124_regs.h"
#include "ad7124_support.h"
#include "ad7124_regs_configs.h"
#include "ad7124_console_app.h"
Classes | |
struct | temp_loopup |
Macros | |
#define | AD7124_CHANNEL_COUNT 16 |
#define | SHOW_ALL_CHANNELS false |
#define | SHOW_ENABLED_CHANNELS true |
#define | DISPLAY_DATA_TABULAR 0 |
#define | DISPLAY_DATA_STREAM 1 |
#define | AD7124_MAX_SETUPS 8 |
#define | AD7124_MAX_CHANNELS 16 |
#define | NUM_OF_FILTERS 5 |
#define | MAX_FILTER_DATA_RATE_FS 2047 |
#define | MIN_FILTER_DATA_RATE 1 |
#define | MAX_GAIN_BITS_VALUE 7 |
#define | MIN_PROGRAMMABLE_GAIN 1 |
#define | MAX_PROGRAMMABLE_GAIN 128 |
#define | MAX_ANALOG_INPUTS 32 |
Enumerations | |
enum | Chn_EnbleDisable_action { CHN_DISABLE , CHN_ENABLE } |
Functions | |
int32_t | ad7124_app_initialize (uint8_t configID) |
Initialize the AD7124 device and the SPI port as required. More... | |
Variables | |
console_menu | ad7124_main_menu |
: Implementation for the menu functions that handle the AD7124
: This file is specific to ad7124 console menu application handle. The functions defined in this file performs the action
Copyright (c) 2019-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.
#define AD7124_CHANNEL_COUNT 16 |
#define AD7124_MAX_CHANNELS 16 |
#define AD7124_MAX_SETUPS 8 |
#define DISPLAY_DATA_STREAM 1 |
#define DISPLAY_DATA_TABULAR 0 |
#define MAX_ANALOG_INPUTS 32 |
#define MAX_FILTER_DATA_RATE_FS 2047 |
#define MAX_GAIN_BITS_VALUE 7 |
#define MAX_PROGRAMMABLE_GAIN 128 |
#define MIN_FILTER_DATA_RATE 1 |
#define MIN_PROGRAMMABLE_GAIN 1 |
#define NUM_OF_FILTERS 5 |
#define SHOW_ALL_CHANNELS false |
#define SHOW_ENABLED_CHANNELS true |
int32_t ad7124_app_initialize | ( | uint8_t | configID | ) |
Initialize the AD7124 device and the SPI port as required.
configID- | Configuration ID |
This resets and then writes the default register map value to the device. A call to init the SPI port is made, but may not actually do very much, depending on the platform
console_menu ad7124_main_menu |