rasProject_01 / weSweetHome  R. 116 2026-05-14
process control       /     RasPi software         by   weinert-automation
Loading...
Searching...
No Matches
gpioChipInfo.c File Reference

A program to list Raspberry's GPIO chip infos. More...

#include <stdio.h>
#include <unistd.h>
#include "arch/config.h"
#include <errno.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <linux/gpio.h>

Variables

char const prgNamPure []
 The pure program name.
char const prgSVNdat []
 The complete SVN date string.
char const prgSVNrev []
 The complete SVN revision string.

Detailed Description

A program to list Raspberry's GPIO chip infos.

Copyright (c) 2024 Harry Fairhead
Raspberry Pi IoT in C, Third Edition, I/O Press 2024
Copyright (c) 2025 Albrecht Weinert
porting, modifications, make
weinert-automation.de a-weinert.de
/ / /\
/ /___ / \ |
\ /____\ /____\ | _|__
\ /\ / \ / \| |
\/ \/ \__/ \__/|_

Revision history

110 (5.01.2026)
Rev. 110 29.12.2025 : comments

This program runs on any Pi with a PiOS not to old. To get the info it might be necessary to run sudo ~/bin/gpioChipInfo

Compile on Pi by: g++ gpioChipInfo.c -o gpioChipInfo

Compile on Windows using our make by: /code make PROGRAM=gpioChipInfo TARGET=pi4play clean all make PROGRAM=gpioChipInfo TARGET=pi4play FTPuser=sweet:0123 progapp /endcode

Variable Documentation

◆ prgNamPure

char const prgNamPure[]

The pure program name.

To be provided in the application's / program's source.

See also
progNam() progNamB()

◆ prgSVNrev

char const prgSVNrev[]

The complete SVN revision string.

To be provided in the application's / program's source.

See also
progRev()

◆ prgSVNdat

char const prgSVNdat[]

The complete SVN date string.

To be provided in the application's / program's source.

See also
progDat()