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

Basic example header for ADAR300X project. More...

Functions

int basic_example_main (void)
 basic example main execution.
 

Detailed Description

Basic example header for ADAR300X project.

Author
Stefan Popa (stefa.nosp@m.n.po.nosp@m.pa@an.nosp@m.alog.nosp@m..com)

Copyright 2026(c) Analog Devices, Inc.

SPDX-License-Identifier: BSD-3-Clause

Function Documentation

◆ basic_example_main()

int basic_example_main ( )

basic example main execution.

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

basic example main execution.

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

basic example main execution.

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

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.

basic example main execution.

Returns
ret - Result of the example execution.

basic example main execution.

Initialises the UART peripheral, prints a banner, then loops forever printing a counter message once per second.

Returns
0 on success, negative error code on failure.