GPS Device
Loading...
Searching...
No Matches
io.h File Reference

Digital IO module public API. More...

#include "err.h"
#include "stm32f401re_gpio.h"
#include "configuration.h"
Include dependency graph for io.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  IO_CFG_ts
 Configuration structure for initializing an IO handle. More...

Typedefs

typedef struct io_handle_s IO_HANDLE_ts
 Opaque handle representing an IO instance.

Functions

ERR_te io_init_subsys (void)
 Initializes the IO subsystem.
ERR_te io_deinit_subsys (void)
 Deinitializes the IO subsystem.
ERR_te io_start_subsys (void)
 Starts the IO subsystem.
ERR_te io_stop_subsys (void)
 Stops the IO subsystem.
ERR_te io_init_handle (IO_CFG_ts *io_cfg, IO_HANDLE_ts **io_handle_o)
 Initializes and registers an IO handle.
ERR_te io_deinit_handle (IO_HANDLE_ts const *io_handle)
 Deinitializes an IO handle.
ERR_te io_write (IO_HANDLE_ts *io_handle, PIN_STATUS_te pin_status)
 Writes a logic level to an IO pin.
ERR_te io_read (IO_HANDLE_ts const *io_handle, PIN_STATUS_te *pin_status_o)
 Reads the current logic level of an IO pin.

Detailed Description

Digital IO module public API.

Author
github.com/Baksi675

This module provides a named abstraction over GPIO pins, supporting both digital output (write) and digital input (read) operations. It follows the same subsystem lifecycle pattern used across the project: init → start → run → stop → deinit.

Typical usage:

Version
0.1
Date
2026-01-23

Definition in file io.h.