no-OS
Loading...
Searching...
No Matches
basic_example.c File Reference

Implementation of basic example for eval-ad738x project. More...

#include "basic_example.h"
#include "common_data.h"
#include "no_os_delay.h"
#include "no_os_print_log.h"
Include dependency graph for basic_example.c:

Macros

#define AD738X_NUM_CHANNELS   2
 
#define AD738X_STORAGE_BITS   16
 
#define AD738X_RESOLUTION   14
 
#define AD738X_SHIFT   (AD738X_STORAGE_BITS - AD738X_RESOLUTION)
 

Functions

int basic_example_main ()
 basic example main execution.
 

Detailed Description

Implementation of basic example for eval-ad738x project.

Author
Axel Haslam (ahasl.nosp@m.am@b.nosp@m.aylib.nosp@m.re.c.nosp@m.om)
Vilmos-Csaba Jozsa (vilmo.nosp@m.scsa.nosp@m.ba.jo.nosp@m.zsa@.nosp@m.analo.nosp@m.g.co.nosp@m.m)

Copyright 2024-2026(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Macro Definition Documentation

◆ AD738X_NUM_CHANNELS

#define AD738X_NUM_CHANNELS   2

◆ AD738X_RESOLUTION

#define AD738X_RESOLUTION   14

◆ AD738X_SHIFT

#define AD738X_SHIFT   (AD738X_STORAGE_BITS - AD738X_RESOLUTION)

◆ AD738X_STORAGE_BITS

#define AD738X_STORAGE_BITS   16

Function Documentation

◆ basic_example_main()

int basic_example_main ( void )

basic example main execution.

Returns
ret - Result of the example execution. If working correctly, will execute print the sample data.