precision-converters-firmware
Macros
app_config.h File Reference

: AD5592R/AD5593R device selection. Pin mappings. More...

#include <stdint.h>
#include <PinNames.h>
Include dependency graph for app_config.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEV_AD5592R   0
 
#define DEV_AD5593R   1
 
#define AD5593R_A0_STATE   0
 
#define ACTIVE_DEVICE   DEV_AD5592R
 
#define NUM_CHANNELS   8
 
#define AD5593R_I2C   (0x10 | (AD5593R_A0_STATE & 0x01))
 
#define I2C_SCL   SDP_I2C_SCL
 
#define I2C_SDA   SDP_I2C_SDA
 
#define SPI_CSB   SDP_SPI_CS_A
 
#define SPI_HOST_SDI   SDP_SPI_MISO
 
#define SPI_HOST_SDO   SDP_SPI_MOSI
 
#define SPI_SCK   SDP_SPI_SCK
 

Detailed Description

: AD5592R/AD5593R device selection. Pin mappings.

:

Copyright (c) 2020, 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.

Macro Definition Documentation

◆ ACTIVE_DEVICE

#define ACTIVE_DEVICE   DEV_AD5592R

◆ AD5593R_A0_STATE

#define AD5593R_A0_STATE   0

◆ AD5593R_I2C

#define AD5593R_I2C   (0x10 | (AD5593R_A0_STATE & 0x01))

◆ DEV_AD5592R

#define DEV_AD5592R   0

◆ DEV_AD5593R

#define DEV_AD5593R   1

◆ I2C_SCL

#define I2C_SCL   SDP_I2C_SCL

◆ I2C_SDA

#define I2C_SDA   SDP_I2C_SDA

◆ NUM_CHANNELS

#define NUM_CHANNELS   8

The ADI SDP_K1 can be used with either arduino headers or the 120-pin SDP connector found on ADI evaluation boards. The default is the SDP connector.

Uncomment the ARDUINO #define below to enable the ARDUINO connector This is required for most other boards

◆ SPI_CSB

#define SPI_CSB   SDP_SPI_CS_A

◆ SPI_HOST_SDI

#define SPI_HOST_SDI   SDP_SPI_MISO

◆ SPI_HOST_SDO

#define SPI_HOST_SDO   SDP_SPI_MOSI

◆ SPI_SCK

#define SPI_SCK   SDP_SPI_SCK