precision-converters-firmware
|
Header for AD469x No-OS driver supports. More...
#include "ad469x.h"
#include "no_os_util.h"
Go to the source code of this file.
Macros | |
#define | NUM_OF_REGISTERS 0x17F |
#define | AD469x_TEMPERATURE_MSK NO_OS_GENMASK(0,0) |
#define | AD469x_SEQ_LB_CONFIG(x) ( x & NO_OS_GENMASK(7,0)) |
#define | AD469x_SEQ_UB_CONFIG(x) ( x >> 8) |
#define | AD469x_REG_SEQ_LB AD469x_REG_STD_SEQ_CONFIG |
#define | AD469x_REG_SEQ_UB (AD469x_REG_STD_SEQ_CONFIG + 0x01) |
#define | AD469x_SINGLE_CHANNEL_EN(x) AD469x_CHANNEL(x) |
#define | AD469x_SEQ_CHANNELS_RESET 0x00 |
#define | AD469x_EN_AUTOCYLE_MODE 0x01 |
#define | AD469x_REG_SETUP_RESET 0x10 |
#define | AD469x_REG_SEQ_CTRL_RESET 0x80 |
#define | AD469x_SEQ_CHANNEL_EN 1 |
#define | AD469x_SEQ_CHANNEL_DI 0 |
Enumerations | |
enum | ad469x_polarity_select { AD469x_UNIPOLAR_MODE , AD469x_PSEUDO_BIPOLAR_MODE } |
Channel polarity modes. More... | |
Functions | |
int32_t | ad469x_polarity_mode_select (struct ad469x_dev *device, enum ad469x_polarity_select polarity_sel) |
Select between polarity modes. More... | |
int32_t | ad469x_reference_config (struct ad469x_dev *device) |
Configures the reference voltage setting. More... | |
int32_t | ad469x_trigger_conversion (struct ad469x_dev *device) |
Toggles conversion pin to trigger a new conversion. More... | |
int32_t | ad469x_read_single_sample (struct ad469x_dev *device, uint8_t chn_num, uint32_t *data) |
Read single sample from the ADC. More... | |
Header for AD469x No-OS driver supports.
Copyright (c) 2021-23 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 AD469x_EN_AUTOCYLE_MODE 0x01 |
#define AD469x_REG_SEQ_CTRL_RESET 0x80 |
#define AD469x_REG_SEQ_LB AD469x_REG_STD_SEQ_CONFIG |
#define AD469x_REG_SEQ_UB (AD469x_REG_STD_SEQ_CONFIG + 0x01) |
#define AD469x_REG_SETUP_RESET 0x10 |
#define AD469x_SEQ_CHANNEL_DI 0 |
#define AD469x_SEQ_CHANNEL_EN 1 |
#define AD469x_SEQ_CHANNELS_RESET 0x00 |
#define AD469x_SEQ_LB_CONFIG | ( | x | ) | ( x & NO_OS_GENMASK(7,0)) |
#define AD469x_SEQ_UB_CONFIG | ( | x | ) | ( x >> 8) |
#define AD469x_SINGLE_CHANNEL_EN | ( | x | ) | AD469x_CHANNEL(x) |
#define AD469x_TEMPERATURE_MSK NO_OS_GENMASK(0,0) |
#define NUM_OF_REGISTERS 0x17F |
int32_t ad469x_polarity_mode_select | ( | struct ad469x_dev * | device, |
enum ad469x_polarity_select | polarity_sel | ||
) |
Select between polarity modes.
device[in] | - device instance |
polarity_sel[in] | - polarity selection. |
int32_t ad469x_read_single_sample | ( | struct ad469x_dev * | device, |
uint8_t | chn_num, | ||
uint32_t * | data | ||
) |
Read single sample from the ADC.
device[in] | - device instance. |
chn_num[in] | - channel number to be selected. |
data[out] | - pointer to the adc data variable. |
int32_t ad469x_reference_config | ( | struct ad469x_dev * | device | ) |
Configures the reference voltage setting.
device[in] | - device instance |
int32_t ad469x_trigger_conversion | ( | struct ad469x_dev * | device | ) |
Toggles conversion pin to trigger a new conversion.
device[in] | - device instance. |