27#define MBED_PLATFORM       1 
   30#define BURST_DATA_CAPTURE          0 
   31#define CONTINUOUS_DATA_CAPTURE     1 
   32#define FIFO_DATA_CAPTURE           2 
   35#define     USER_DEFAULT_CONFIG     0 
   36#define     RTD_2WIRE_CONFIG        1 
   37#define     RTD_3WIRE_CONFIG        2 
   38#define     RTD_4WIRE_CONFIG        3 
   39#define     THERMISTOR_CONFIG       4 
   40#define     THERMOCOUPLE_CONFIG     5 
   41#define     LOADCELL_CONFIG         6 
   43#define     NOISE_TEST_CONFIG       8 
   44#define     POWER_TEST_CONFIG       9 
   47#define     IIO_CLIENT_REMOTE       0 
   48#define     IIO_CLIENT_LOCAL        1 
   57#define ACTIVE_DEVICE_NAME  "ad4130-8" 
   60#define AD4130_WLCSP_PACKAGE_TYPE 
   64#if !defined(ACTIVE_PLATFORM) 
   65#define ACTIVE_PLATFORM     MBED_PLATFORM 
   69#if !defined(ACTIVE_IIO_CLIENT) 
   70#define ACTIVE_IIO_CLIENT   IIO_CLIENT_REMOTE 
   74#if !defined(ACTIVE_DEMO_MODE_CONFIG) 
   75#define ACTIVE_DEMO_MODE_CONFIG     USER_DEFAULT_CONFIG 
   79#if !defined(DATA_CAPTURE_MODE) 
   80#define DATA_CAPTURE_MODE   CONTINUOUS_DATA_CAPTURE 
   86#if !defined(USE_PHY_COM_PORT) 
   87#define USE_VIRTUAL_COM_PORT 
   90#if (ACTIVE_PLATFORM == MBED_PLATFORM) 
   93#define HW_CARRIER_NAME     TARGET_NAME 
   96#define ext_int_extra_init_params mbed_ext_int_extra_init_params 
   97#define ticker_int_extra_init_params mbed_ticker_int_extra_init_params 
   98#if defined(USE_VIRTUAL_COM_PORT) 
   99#define uart_extra_init_params mbed_vcom_extra_init_params 
  100#define uart_ops mbed_virtual_com_ops 
  102#define uart_extra_init_params mbed_uart_extra_init_params 
  103#define uart_ops mbed_uart_ops 
  105#define spi_extra_init_params mbed_spi_extra_init_params 
  106#define i2c_extra_init_params mbed_i2c_extra_init_params 
  107#define trigger_gpio_irq_extra_params mbed_trigger_gpio_irq_init_params 
  108#define trigger_gpio_extra_init_params mbed_trigger_gpio_extra_init_params 
  109#define trigger_gpio_ops mbed_gpio_ops 
  110#define irq_ops     mbed_irq_ops 
  111#define gpio_ops    mbed_gpio_ops 
  112#define spi_ops     mbed_spi_ops 
  113#define i2c_ops     mbed_i2c_ops 
  114#define trigger_gpio_irq_ops mbed_gpio_irq_ops 
  115#define trigger_gpio_handle 0    
  116#define TRIGGER_GPIO_PORT 0   
  117#define TRIGGER_GPIO_PIN  CONV_MON 
  118#define TRIGGER_INT_ID  GPIO_IRQ_ID1 
  119#define TICKER_ID TICKER_INT_ID 
  121#error "No/Invalid active platform selected" 
  125#define HW_MEZZANINE_NAME   "EV-AD4130WASDZ-U1" 
  129#if (ACTIVE_DEMO_MODE_CONFIG == USER_DEFAULT_CONFIG) 
  131#define ad4130_init_params  ad4130_user_config_params 
  132#elif ((ACTIVE_DEMO_MODE_CONFIG == RTD_2WIRE_CONFIG) || \ 
  133(ACTIVE_DEMO_MODE_CONFIG == RTD_3WIRE_CONFIG) || \ 
  134(ACTIVE_DEMO_MODE_CONFIG == RTD_4WIRE_CONFIG)) 
  136#define ad4130_init_params  ad4130_rtd_config_params 
  137#elif (ACTIVE_DEMO_MODE_CONFIG == THERMISTOR_CONFIG) 
  139#define ad4130_init_params  ad4130_thermistor_config_params 
  140#elif (ACTIVE_DEMO_MODE_CONFIG == THERMOCOUPLE_CONFIG) 
  142#define ad4130_init_params  ad4130_thermocouple_config_params 
  143#elif (ACTIVE_DEMO_MODE_CONFIG == LOADCELL_CONFIG) 
  145#define ad4130_init_params  ad4130_loadcell_config_params 
  146#elif (ACTIVE_DEMO_MODE_CONFIG == ECG_CONFIG) 
  148#define ad4130_init_params  ad4130_ecg_config_params 
  149#elif (ACTIVE_DEMO_MODE_CONFIG == NOISE_TEST_CONFIG) 
  151#define ad4130_init_params  ad4130_noise_test_config_params 
  152#elif (ACTIVE_DEMO_MODE_CONFIG == POWER_TEST_CONFIG) 
  154#define ad4130_init_params  ad4130_power_test_config_params 
  157#define ad4130_init_params  ad4130_user_config_params 
  158#warning "No/Invalid active demo config selected, user config used as default" 
  162#define ADC_RESOLUTION      24 
  173#define ADC_DIFFERENTIAL_CHNS   8 
  174#define ADC_PSEUDO_DIFF_CHNS    16 
  177#define AD4130_REFIN1_VOLTAGE           2.5 
  178#define AD4130_REFIN2_VOLTAGE           2.5 
  179#define AD4130_AVDD_VOLTAGE             3.3      
  180#define AD4170_2_5V_INT_REF_VOLTAGE     2.5 
  181#define AD4170_1_25V_INT_REF_VOLTAGE    1.25 
  184#define ADC_MAX_COUNT_UNIPOLAR  (uint32_t)((1 << ADC_RESOLUTION) - 1) 
  187#define ADC_MAX_COUNT_BIPOLAR   (uint32_t)(1 << (ADC_RESOLUTION-1)) 
  190#define FIRMWARE_NAME   "ad4130_iio" 
  192#define DEVICE_NAME     "DEV_AD4130" 
  194#if !defined(PLATFORM_NAME) 
  195#define PLATFORM_NAME   HW_CARRIER_NAME 
  201#define VIRTUAL_COM_PORT_VID    0x0456 
  202#define VIRTUAL_COM_PORT_PID    0xb66c 
  204#define VIRTUAL_COM_SERIAL_NUM  (FIRMWARE_NAME "_" DEVICE_NAME "_" STR(PLATFORM_NAME)) 
  207#define IIO_UART_BAUD_RATE  (230400) 
struct no_os_irq_ctrl_desc * trigger_irq_desc
Definition app_config.c:103
 
int32_t init_system(void)
Initialize the system peripherals.
Definition app_config.c:185
 
struct no_os_uart_desc * uart_desc
Definition app_config.c:97
 
struct no_os_eeprom_desc * eeprom_desc
Definition app_config.c:170
 
struct no_os_spi_init_param spi_init_params
Definition ad3530r_user_config.c:48
 
struct no_os_gpio_desc * trigger_gpio_desc
Definition app_config.c:164
 
Header for AD4130 ECG user configuration file.
 
struct no_os_gpio_init_param trigger_gpio_param
Definition app_config.c:65
 
bool is_eeprom_valid_dev_addr_detected(void)
Return the flag indicating if valid EEPROM address is detected.
Definition common.c:183
 
void ad4130_fifo_event_handler(void *ctx)
This is an ISR (Interrupt Service Routine) to monitor FIFO data available event. This function is exp...
Definition ad4130_iio.c:1355
 
uint8_t get_eeprom_detected_dev_addr(void)
Get the EEPROM device address detected by firmware.
Definition common.c:192
 
Header for AD4130 loadcell user configuration file.
 
Header for AD4130 noise test user configuration file.
 
Header for AD4130 power test user configuration file.
 
Header for AD4130 RTD user configuration file.
 
Header for AD4130 thermistors user configuration file.
 
Header for AD4130 thermocouple user configuration file.
 
Header for AD4130 user configuration file.
 
Header file for Mbed platform configurations.