precision-converters-firmware
|
: defines the console menu structure for the AD7124 example code More...
#include "adi_console_menu.h"
Go to the source code of this file.
Classes | |
struct | ad7124_setup_config |
Macros | |
#define | AD7124_CONFIG_A 0 |
#define | AD7124_CONFIG_B 1 |
#define | LOW_POWER_MODE_FREQUENCY 76800 |
#define | MED_POWER_MODE_FREQUENCY 153600 |
#define | FUL_POWER_MODE_FREQUENCY 614400 |
#define | DEVICE_REG_READ_ID 1 |
#define | DEVICE_REG_WRITE_ID 2 |
Enumerations | |
enum | filter_type { SINC4_FILTER = 0 , SINC3_FILTER = 2 , FAST_SETTLING_SINC4_FILTER = 4 , FAST_SETTLING_SINC3_FILTER = 5 } |
enum | reference_type { REFIN1 , REFIN2 , INT , AVDD } |
enum | power_mode_t { LOW_POWER_MODE , MED_POWER_MODE , FULL_POWER_MODE } |
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 |
: defines the console menu structure for the AD7124 example code
Copyright (c) 2019, 2020 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_CONFIG_A 0 |
#define AD7124_CONFIG_B 1 |
#define DEVICE_REG_READ_ID 1 |
#define DEVICE_REG_WRITE_ID 2 |
#define FUL_POWER_MODE_FREQUENCY 614400 |
#define LOW_POWER_MODE_FREQUENCY 76800 |
#define MED_POWER_MODE_FREQUENCY 153600 |
enum filter_type |
enum power_mode_t |
enum reference_type |
int32_t ad7124_app_initialize | ( | uint8_t | config_id | ) |
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
Initialize the AD7124 device and the SPI port as required.
config_id[in]- | Register configuration to be load into device |
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.
|
extern |