no-OS
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
basic_example.c File Reference
#include "common_data.h"
#include "max31827.h"
#include "no_os_delay.h"
#include "no_os_print_log.h"
#include "no_os_units.h"
Include dependency graph for basic_example.c:

Functions

int example_main ()
 Basic example main execution.
 

Function Documentation

◆ example_main()

int example_main ( void )

Basic example main execution.

Returns
ret - Result of the example execution. If working correctly, will execute continuously the while(1) loop and will not return.

Basic example main execution.

Returns
ret - Result of the example execution. If working correctly, will execute continuously the while(1) loop and will not return.

Basic example main execution.

Returns
ret - Result of the example execution. If working correctly, will execute continuously function iio_app_run and will not return.
ret - Result of the example execution.

Basic example main execution.

Returns
ret - Result of the example execution.

Basic example main execution.

Returns
ret - Result of the example execution. If working correctly, will execute continuously function iio_app_run_with_trigs and will not return.
ret - Result of the example execution. If working correctly, will turn the status led's on and off in the while loop, set some values in the config 2 register, and then return 0.

Set the threshold voltage to 5V

The comparator output will be available on the GPO_A pin

Set the DAC output on channel C to 5V

Measure input current on channel D

Initialize the ADC_RDY GPIO and associated IRQ event

Returns
0 if success, negative error code otherwise

Negative temperature

Positive temperature

Negative temperature

Positive temperature