precision-converters-firmware
|
: AD5592R/AD5593R device selection. Pin mappings. More...
#include <stdint.h>
#include <PinNames.h>
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 |
: 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.
#define ACTIVE_DEVICE DEV_AD5592R |
#define AD5593R_A0_STATE 0 |
#define AD5593R_I2C (0x10 | (AD5593R_A0_STATE & 0x01)) |
#define DEV_AD5592R 0 |
#define DEV_AD5593R 1 |
#define I2C_SCL SDP_I2C_SCL |
#define I2C_SDA SDP_I2C_SDA |
#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
#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 |