swixteen  0.03
Switch a lamp on/off with X10 RF commands
 All Files Functions Variables Macros Pages
Macros | Functions
GpioExport.c File Reference
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "../Sysfs/Sysfs.h"
#include "../config.h"
Include dependency graph for GpioExport.c:

Go to the source code of this file.

Macros

#define BUFFER_MAX   3 /* pin 0 .. 99 and a trailing zero */
 

Functions

int GpioExport (int Pin)
 Request a gpio pin to be exported via the sysfs filesystem. More...
 

Macro Definition Documentation

#define BUFFER_MAX   3 /* pin 0 .. 99 and a trailing zero */

Definition at line 10 of file GpioExport.c.

Function Documentation

int GpioExport ( int  Pin)

Request a gpio pin to be exported via the sysfs filesystem.

Parameters
Pin
Returns
zero on succes, a negative number on failure

Definition at line 17 of file GpioExport.c.

Here is the caller graph for this function: