APM:Libraries
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
Led_Sysfs Class Reference

#include <Led_Sysfs.h>

Inheritance diagram for Led_Sysfs:
[legend]
Collaboration diagram for Led_Sysfs:
[legend]

Public Member Functions

 Led_Sysfs (const char *red, const char *green, const char *blue, uint8_t off_brightness=0xff, uint8_t low_brightness=0x00, uint8_t medium_brightness=0x00, uint8_t high_brightness=0x00)
 
- Public Member Functions inherited from RGBLed
 RGBLed (uint8_t led_off, uint8_t led_bright, uint8_t led_medium, uint8_t led_dim)
 
virtual bool init (void)
 
virtual bool healthy ()
 
virtual void set_rgb (uint8_t red, uint8_t green, uint8_t blue)
 
virtual void update ()
 
virtual void handle_led_control (mavlink_message_t *msg) override
 
- Public Member Functions inherited from NotifyDevice
virtual ~NotifyDevice ()
 
virtual void handle_play_tune (mavlink_message_t *msg)
 

Protected Member Functions

bool hw_init (void) override
 
bool hw_set_rgb (uint8_t r, uint8_t g, uint8_t b) override
 
- Protected Member Functions inherited from RGBLed
virtual void _set_rgb (uint8_t red, uint8_t green, uint8_t blue)
 
virtual void update_override ()
 

Private Attributes

Linux::Led_Sysfs red_led
 
Linux::Led_Sysfs green_led
 
Linux::Led_Sysfs blue_led
 

Additional Inherited Members

- Public Attributes inherited from NotifyDevice
const AP_NotifypNotify
 
- Protected Attributes inherited from RGBLed
uint8_t counter
 
uint8_t step
 
bool _healthy
 
uint8_t _red_des
 
uint8_t _green_des
 
uint8_t _blue_des
 
uint8_t _red_curr
 
uint8_t _green_curr
 
uint8_t _blue_curr
 
uint8_t _led_off
 
uint8_t _led_bright
 
uint8_t _led_medium
 
uint8_t _led_dim
 
struct {
   uint8_t   r
 
   uint8_t   g
 
   uint8_t   b
 
   uint8_t   rate_hz
 
   uint32_t   start_ms
 
_led_override
 

Detailed Description

Definition at line 26 of file Led_Sysfs.h.

Constructor & Destructor Documentation

◆ Led_Sysfs()

Led_Sysfs::Led_Sysfs ( const char *  red,
const char *  green,
const char *  blue,
uint8_t  off_brightness = 0xff,
uint8_t  low_brightness = 0x00,
uint8_t  medium_brightness = 0x00,
uint8_t  high_brightness = 0x00 
)

Definition at line 24 of file Led_Sysfs.cpp.

Member Function Documentation

◆ hw_init()

bool Led_Sysfs::hw_init ( void  )
overrideprotectedvirtual

Implements RGBLed.

Definition at line 33 of file Led_Sysfs.cpp.

Here is the call graph for this function:

◆ hw_set_rgb()

bool Led_Sysfs::hw_set_rgb ( uint8_t  r,
uint8_t  g,
uint8_t  b 
)
overrideprotectedvirtual

Implements RGBLed.

Definition at line 42 of file Led_Sysfs.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ blue_led

Linux::Led_Sysfs Led_Sysfs::blue_led
private

Definition at line 40 of file Led_Sysfs.h.

Referenced by hw_init(), and hw_set_rgb().

◆ green_led

Linux::Led_Sysfs Led_Sysfs::green_led
private

Definition at line 39 of file Led_Sysfs.h.

Referenced by hw_init(), and hw_set_rgb().

◆ red_led

Linux::Led_Sysfs Led_Sysfs::red_led
private

Definition at line 38 of file Led_Sysfs.h.

Referenced by hw_init(), and hw_set_rgb().


The documentation for this class was generated from the following files: