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

#include <ToshibaLED_I2C.h>

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

Public Member Functions

 ToshibaLED_I2C (uint8_t bus)
 
- Public Member Functions inherited from ToshibaLED
 ToshibaLED ()
 
- 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 Member Functions

void _timer (void)
 

Private Attributes

AP_HAL::OwnPtr< AP_HAL::I2CDevice_dev
 
bool _need_update
 
struct {
   uint8_t   r
 
   uint8_t   g
 
   uint8_t   b
 
rgb
 
uint8_t _bus
 

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 22 of file ToshibaLED_I2C.h.

Constructor & Destructor Documentation

◆ ToshibaLED_I2C()

ToshibaLED_I2C::ToshibaLED_I2C ( uint8_t  bus)

Definition at line 36 of file ToshibaLED_I2C.cpp.

Member Function Documentation

◆ _timer()

void ToshibaLED_I2C::_timer ( void  )
private

Definition at line 83 of file ToshibaLED_I2C.cpp.

Referenced by hw_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hw_init()

bool ToshibaLED_I2C::hw_init ( void  )
overrideprotectedvirtual

Implements RGBLed.

Definition at line 42 of file ToshibaLED_I2C.cpp.

Here is the call graph for this function:

◆ hw_set_rgb()

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

Implements RGBLed.

Definition at line 76 of file ToshibaLED_I2C.cpp.

Member Data Documentation

◆ _bus

uint8_t ToshibaLED_I2C::_bus
private

Definition at line 37 of file ToshibaLED_I2C.h.

Referenced by hw_init().

◆ _dev

AP_HAL::OwnPtr<AP_HAL::I2CDevice> ToshibaLED_I2C::_dev
private

Definition at line 31 of file ToshibaLED_I2C.h.

Referenced by _timer(), and hw_init().

◆ _need_update

bool ToshibaLED_I2C::_need_update
private

Definition at line 33 of file ToshibaLED_I2C.h.

Referenced by _timer(), and hw_set_rgb().

◆ b

uint8_t ToshibaLED_I2C::b

Definition at line 35 of file ToshibaLED_I2C.h.

◆ g

uint8_t ToshibaLED_I2C::g

Definition at line 35 of file ToshibaLED_I2C.h.

◆ r

uint8_t ToshibaLED_I2C::r

Definition at line 35 of file ToshibaLED_I2C.h.

◆ rgb

struct { ... } ToshibaLED_I2C::rgb

Referenced by _timer(), and hw_set_rgb().


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