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

ADIOL100 basic IO-Link example — bare-metal, no stack. More...

#include "basic_example.h"
#include <errno.h>
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include "adiol100.h"
#include "common_data.h"
#include "no_os_delay.h"
#include "no_os_irq.h"
#include "no_os_print_log.h"
#include "no_os_spi.h"
Include dependency graph for basic_example.c:

Functions

int basic_example_main (void)
 Run the basic ADIOL100 example.
 

Detailed Description

ADIOL100 basic IO-Link example — bare-metal, no stack.

Author
Liviu Stan (liviu.nosp@m..sta.nosp@m.n@ana.nosp@m.log..nosp@m.com)

Copyright 2026(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Function Documentation

◆ basic_example_main()

int basic_example_main ( void )

Run the basic ADIOL100 example.

basic example main execution.

Demonstrates a full IO-Link communication cycle without an IO-Link stack:

  1. STARTUP - establish communication, read device identity from DPP
  2. PREOPERATE - read ISDU parameters (vendor name, serial number, etc.)
  3. OPERATE - exchange cyclic process data
Returns
0 on success, negative error code otherwise.