BJT Curve tracer example for AD5592R (NPN) and AD5593R (PNP).
More...
#include "example.h"
#include "common_data.h"
#include "parameters.h"
#include "no_os_delay.h"
#include "no_os_print_log.h"
#include "no_os_uart.h"
#include "ad5592r.h"
#include "ad5593r.h"
#include "lm75.h"
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
BJT Curve tracer example for AD5592R (NPN) and AD5593R (PNP).
- Author
- Sean Bono Macariola (SeanB.nosp@m.ono..nosp@m.Macar.nosp@m.iola.nosp@m.@anal.nosp@m.og.c.nosp@m.om)
-
Marc Paolo Sosa (MarcP.nosp@m.aolo.nosp@m..Sosa.nosp@m.@ana.nosp@m.log.c.nosp@m.om)
Copyright 2026(c) Analog Devices, Inc.
SPDX-License-Identifier: BSD-3-Clause
◆ DEFINE_AD5592R_IP
| #define DEFINE_AD5592R_IP |
( |
| ) |
|
Value: { \
.int_ref = true, \
.ss_init = AD5592R_SPI_SS_IP, \
.channel_modes = { \
}, \
.channel_offstate = { \
}, \
.adc_buf = false, \
}
#define CH_MODE_ADC
Definition ad5592r-base.h:24
@ ZERO_TO_VREF
Definition ad5592r-base.h:98
#define CH_OFFSTATE_OUT_TRISTATE
Definition ad5592r-base.h:33
#define CH_MODE_DAC
Definition ad5592r-base.h:25
#define CH_MODE_UNUSED
Definition ad5592r-base.h:23
#define CH_MODE_DAC_AND_ADC
Definition ad5592r-base.h:26
struct no_os_spi_init_param ad5592r_spi_ip
Definition common_data.c:13
#define NULL
Definition wrapper.h:67
◆ DEFINE_AD5593R_IP
| #define DEFINE_AD5593R_IP |
( |
| ) |
|
Value: { \
.int_ref = true, \
.channel_modes = { \
}, \
.channel_offstate = { \
}, \
.adc_buf = false, \
}
struct no_os_i2c_init_param ad5593r_i2c_ip
Definition common_data.c:56
◆ GRAPH_HEIGHT
◆ GRAPH_WIDTH
◆ NUM_CURVES
◆ NUM_POINTS
◆ ad559xr_init_fn
Function pointer types for AD559xR device operations
◆ ad559xr_read_adc_fn
| typedef int32_t(* ad559xr_read_adc_fn) (struct ad5592r_dev *, uint8_t, uint16_t *) |
◆ ad559xr_remove_fn
| typedef int32_t(* ad559xr_remove_fn) (struct ad5592r_dev *) |
◆ ad559xr_write_dac_fn
| typedef int32_t(* ad559xr_write_dac_fn) (struct ad5592r_dev *, uint8_t, uint16_t) |
◆ ad5592r_curve_example()
◆ ad5593r_curve_example()
◆ curvetrace_example()
| int curvetrace_example |
( |
void | | ) |
|
◆ example_main()
| example_main |
( |
"curvetrace_example" | | ) |
|
◆ lm75_example()