Robot Control Library
led.h File Reference

Go to the source code of this file.

Typedefs

typedef enum rc_led_t rc_led_t
 Availabe LEDs on the BeagleBone platform. More...
 

Enumerations

enum  rc_led_t {
  RC_LED_GREEN,
  RC_LED_RED,
  RC_LED_USR0,
  RC_LED_USR1,
  RC_LED_USR2,
  RC_LED_USR3,
  RC_LED_BAT25,
  RC_LED_BAT50,
  RC_LED_BAT75,
  RC_LED_BAT100,
  RC_LED_WIFI
}
 Availabe LEDs on the BeagleBone platform. More...
 

Functions

int rc_led_set (rc_led_t led, int value)
 sets the state of an LED More...
 
void rc_led_cleanup (void)
 closes file descriptors to all opened LEDs More...
 
int rc_led_get (rc_led_t led)
 gets the current state of an LED More...
 
int rc_led_blink (rc_led_t led, float hz, float duration)
 blinks an led at specified frequency and duration. More...
 
void rc_led_stop_blink (rc_led_t led)
 Stops an LED from blinking. More...
 
void rc_led_stop_blink_all (void)
 stops all LEDs from blinking More...