RocketLogger 2.1.1
gpiod_test.c File Reference
#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <gpiod.h>
#include <unistd.h>
#include "gpio.hpp"
+ Include dependency graph for gpiod_test.c:

Go to the source code of this file.

Macros

#define GPIO_FHR1   30
 Linux sysfs GPIO number for forcing I1 high.
 
#define GPIO_FHR2   60
 Linux sysfs GPIO number for forcing I2 high.
 
#define GPIO_LED_STATUS   45
 Linux sysfs GPIO number of status LED.
 
#define GPIO_LED_ERROR   44
 Linux sysfs GPIO number of error LED.
 
#define GPIO_BUTTON   26
 Linux sysfs GPIO number of start/stop button.
 
#define GPIO_POWER   31
 Linux sysfs GPIO number of RocketLogger cape power enable.
 

Functions

int main (void)
 

Macro Definition Documentation

◆ GPIO_BUTTON

#define GPIO_BUTTON   26

Linux sysfs GPIO number of start/stop button.

Definition at line 21 of file gpiod_test.c.

◆ GPIO_FHR1

#define GPIO_FHR1   30

Linux sysfs GPIO number for forcing I1 high.

Definition at line 13 of file gpiod_test.c.

◆ GPIO_FHR2

#define GPIO_FHR2   60

Linux sysfs GPIO number for forcing I2 high.

Definition at line 15 of file gpiod_test.c.

◆ GPIO_LED_ERROR

#define GPIO_LED_ERROR   44

Linux sysfs GPIO number of error LED.

Definition at line 19 of file gpiod_test.c.

◆ GPIO_LED_STATUS

#define GPIO_LED_STATUS   45

Linux sysfs GPIO number of status LED.

Definition at line 17 of file gpiod_test.c.

◆ GPIO_POWER

#define GPIO_POWER   31

Linux sysfs GPIO number of RocketLogger cape power enable.

Definition at line 23 of file gpiod_test.c.

Function Documentation

◆ main()