g13 tux logo   g13

leds.h File Reference

#include <g13/udev.h>
Include dependency graph for leds.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  G13_LED { G13_LED_M1, G13_LED_M2, G13_LED_M3, G13_LED_MR }

Functions

int g13_device_get_led (g13_device *device, int which)
 Get the specified LED state.
int g13_device_set_led (g13_device *device, int which, int enabled)
 Set the specified led light state.

Enumeration Type Documentation

enum G13_LED
Enumerator:
G13_LED_M1 
G13_LED_M2 
G13_LED_M3 
G13_LED_MR 

Function Documentation

int g13_device_get_led ( g13_device device,
int  which 
)

Get the specified LED state.

Returns:
0 if off; 1 if on

References g13_create_led_path(), and G13_LED_MR.

Referenced by g13_device_get_state(), and G13::Device::led().

int g13_device_set_led ( g13_device device,
int  which,
int  enabled 
)

Set the specified led light state.

Returns:
0 if successfully set; on error returns -1 and sets errno
Parameters:
enabled 0 to turn off the led, nonzero to turn on the led

References g13_create_led_path(), and G13_LED_MR.

Referenced by G13::Device::set_led(), G13::Device::set_m1(), G13::Device::set_m2(), G13::Device::set_m3(), and G13::Device::set_mr().


Generated on Wed Mar 24 10:13:19 2010 for g13 by doxygen 1.6.1