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

#include <UAVCAN_RGB_LED.h>

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

Public Member Functions

 UAVCAN_RGB_LED (uint8_t led_index, uint8_t led_off, uint8_t led_full, uint8_t led_medium, uint8_t led_dim)
 
 UAVCAN_RGB_LED (uint8_t led_index)
 
- 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 () override
 
virtual bool hw_set_rgb (uint8_t red, uint8_t green, uint8_t blue) 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

uint8_t _led_index
 

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 5 of file UAVCAN_RGB_LED.h.

Constructor & Destructor Documentation

◆ UAVCAN_RGB_LED() [1/2]

UAVCAN_RGB_LED::UAVCAN_RGB_LED ( uint8_t  led_index,
uint8_t  led_off,
uint8_t  led_full,
uint8_t  led_medium,
uint8_t  led_dim 
)

◆ UAVCAN_RGB_LED() [2/2]

UAVCAN_RGB_LED::UAVCAN_RGB_LED ( uint8_t  led_index)

Member Function Documentation

◆ hw_init()

bool UAVCAN_RGB_LED::hw_init ( )
overrideprotectedvirtual

Implements RGBLed.

◆ hw_set_rgb()

virtual bool UAVCAN_RGB_LED::hw_set_rgb ( uint8_t  red,
uint8_t  green,
uint8_t  blue 
)
overrideprotectedvirtual

Implements RGBLed.

Member Data Documentation

◆ _led_index

uint8_t UAVCAN_RGB_LED::_led_index
private

Definition at line 16 of file UAVCAN_RGB_LED.h.


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