precision-converters-firmware
Loading...
Searching...
No Matches
runner
work
precision-converters-firmware
precision-converters-firmware
projects
ad405x_iio
app
ad405x_user_config.h
Go to the documentation of this file.
1
/*************************************************************************/
14
#ifndef AD405X_USER_CONFIG_H
15
#define AD405X_USER_CONFIG_H
16
17
/******************************************************************************/
18
/***************************** Include Files **********************************/
19
/******************************************************************************/
20
#include "ad405x.h"
21
22
/******************************************************************************/
23
/********************** Macros and Constants Definition ***********************/
24
/******************************************************************************/
25
26
// Set the PID Instance ID to match the pins ADDR[2:0] (valid range: 0-7) (I3C only)
27
#define AD405X_INSTANCE_ID 0
28
#define AD405X_I3C_GEN_DYN_ADDR_DEFAULT 0x32
29
#define AD405X_I3C_GEN_PID_(x) (0x02ee00700000 | ((x & 0xF) << 16))
30
#define AD405X_I3C_GEN_INSTANCE_ID(x) (((uint64_t)x & 0x7) << 12)
31
#define AD405X_I3C_GEN_PID(dev, x) (AD405X_I3C_GEN_PID_(dev) | AD405X_I3C_GEN_INSTANCE_ID(x))
32
33
/******************************************************************************/
34
/********************** Variables and User Defined Data Types *****************/
35
/******************************************************************************/
36
extern
struct
ad405x_init_param
ad405x_init_params
;
37
38
#endif
/* AD405X_USER_CONFIG_H */
ad405x_init_params
struct ad405x_init_param ad405x_init_params
Definition
ad405x_user_config.c:105
Generated by
1.9.8