swixteen  0.03
Switch a lamp on/off with X10 RF commands
 All Files Functions Variables Macros Pages
Macros | Functions | Variables
Sysfs.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ON   1
 
#define OFF   0
 
#define Sender   14 /* P1-08 */
 
#define DIRECTION_MAX   35
 

Functions

int GpioExport (int Pin)
 Request a gpio pin to be exported via the sysfs filesystem. More...
 
int SetGpioAsOutput (int Pin)
 set a gpio pin in output mode More...
 
int SwitchSender (int State)
 Switch sender on or off. More...
 
int GpioUnExport (int Pin)
 Request a pin to be unexported from the sysfs filesystem. More...
 
int OpenGpioPinFd (int Pin)
 
int CloseGpioPinFd (int GpioPinFd)
 

Variables

char path [DIRECTION_MAX]
 
int GpioPinFd
 

Macro Definition Documentation

#define DIRECTION_MAX   35

Definition at line 6 of file Sysfs.h.

#define OFF   0

Definition at line 2 of file Sysfs.h.

#define ON   1

Definition at line 1 of file Sysfs.h.

#define Sender   14 /* P1-08 */

Definition at line 4 of file Sysfs.h.

Function Documentation

int CloseGpioPinFd ( int  GpioPinFd)

Definition at line 10 of file CloseGpioPinFd.c.

Here is the call graph for this function:

Here is the caller graph for this function:

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:

int GpioUnExport ( int  Pin)

Request a pin to be unexported from the sysfs filesystem.

Parameters
PinGpio pin to be unexported
Returns
zero on succes and a negative number on failure

Definition at line 17 of file GpioUnExport.c.

Here is the caller graph for this function:

int OpenGpioPinFd ( int  Pin)

Definition at line 10 of file OpenGpioPinFd.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int SetGpioAsOutput ( int  Pin)

set a gpio pin in output mode

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

Definition at line 15 of file SetGpioAsOutput.c.

Here is the caller graph for this function:

int SwitchSender ( int  State)

Switch sender on or off.

Parameters
State(0 or 1)
Returns
0 on succes, a negative number on failure

Definition at line 15 of file SwitchSender.c.

Here is the caller graph for this function:

Variable Documentation

int GpioPinFd

Definition at line 9 of file Sysfs.h.

char path[DIRECTION_MAX]

Definition at line 7 of file Sysfs.h.