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

Implementation of iio_example.c. More...

#include <stdio.h>
#include <assert.h>
#include "no_os_timer.h"
#include "common_data.h"
#include "iio_example.h"
#include "iio_ad4080.h"
#include "iio_app.h"
Include dependency graph for iio_example.c:

Enumerations

enum  led_state {
  led_state_off ,
  led_state_pulse_1 ,
  led_state_pause ,
  led_state_pulse_2
}
 

Functions

int iio_example_main (void)
 IIO example main execution.
 

Variables

struct no_os_gpio_desc * led_ctrl
 
struct no_os_callback_desc heartbeat_callback
 

Detailed Description

Implementation of iio_example.c.

Author
Niel Acuna (niel..nosp@m.acun.nosp@m.a@ana.nosp@m.log..nosp@m.com)
Marc Paolo Sosa (MarcP.nosp@m.aolo.nosp@m..Sosa.nosp@m.@ana.nosp@m.log.c.nosp@m.om)

Copyright 2025(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Enumeration Type Documentation

◆ led_state

enum led_state
Enumerator
led_state_off 
led_state_pulse_1 
led_state_pause 
led_state_pulse_2 

Function Documentation

◆ iio_example_main()

int iio_example_main ( void )

IIO example main execution.

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

Variable Documentation

◆ heartbeat_callback

struct no_os_callback_desc heartbeat_callback
Initial value:
= {
.callback = heartbeat,
.peripheral = NO_OS_TIM_IRQ,
}
@ NO_OS_EVT_TIM_ELAPSED
Definition no_os_irq.h:37
@ NO_OS_TIM_IRQ
Definition no_os_irq.h:58

◆ led_ctrl

struct no_os_gpio_desc* led_ctrl
extern