#include <g13/udev.h>
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. |
enum G13_LED |
int g13_device_get_led | ( | g13_device * | device, | |
int | which | |||
) |
Get the specified LED state.
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.
0
if successfully set; on error returns -1
and sets errno
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().