precision-converters-firmware
|
Implementation of LTC2672 IIO application interfaces. More...
#include <stdio.h>
#include <string.h>
#include "app_config.h"
#include "ltc2672_iio.h"
#include "ltc2672_user_config.h"
#include "common.h"
#include "no_os_util.h"
Macros | |
#define | LTC2672_CHN_ATTR(_name, _priv) |
#define | LTC2672_CHN_AVAIL_ATTR(_name, _priv) |
#define | LTC2672_CH(_name, _idx, _type) |
#define | NUM_OF_IIO_DEVICES 1 |
#define | BYTES_PER_SAMPLE sizeof(uint16_t) |
#define | BYTE_SIZE (uint32_t)8 |
#define | BYTE_MASK (uint32_t)0xff |
#define | CHN_STORAGE_BITS (BYTES_PER_SAMPLE * 8) |
#define | DATA_BUFFER_SIZE (32768) |
Enumerations | |
enum | ltc2672_iio_attr_id { DAC_CH_RAW , DAC_CH_OFFSET , DAC_CH_SCALE , DAC_CH_SPAN , DAC_CH_CURRENT , DAC_CH_POWERDOWN , DAC_RAW , DAC_SPAN , DAC_CURRENT , DAC_POWERDOWN , DAC_MUX , DAC_FAULT_REGISTER } |
Functions | |
int32_t | ltc2672_iio_init () |
Initialize the IIO interface for LTC2672 IIO device. More... | |
void | ltc2672_iio_event_handler (void) |
Run the LTC2672 IIO event handler. More... | |
Variables | |
struct ltc2672_dev * | ltc2672_dev_desc |
Implementation of LTC2672 IIO application interfaces.
Copyright (c) 2023 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 BYTE_MASK (uint32_t)0xff |
#define BYTE_SIZE (uint32_t)8 |
#define BYTES_PER_SAMPLE sizeof(uint16_t) |
#define CHN_STORAGE_BITS (BYTES_PER_SAMPLE * 8) |
#define DATA_BUFFER_SIZE (32768) |
#define LTC2672_CH | ( | _name, | |
_idx, | |||
_type | |||
) |
#define LTC2672_CHN_ATTR | ( | _name, | |
_priv | |||
) |
#define LTC2672_CHN_AVAIL_ATTR | ( | _name, | |
_priv | |||
) |
#define NUM_OF_IIO_DEVICES 1 |
enum ltc2672_iio_attr_id |
void ltc2672_iio_event_handler | ( | void | ) |
Run the LTC2672 IIO event handler.
This function monitors the new IIO client event.
int32_t ltc2672_iio_init | ( | void | ) |
Initialize the IIO interface for LTC2672 IIO device.
struct ltc2672_dev* ltc2672_dev_desc |