PX4 Firmware
PX4 Autopilot Software http://px4.io
rgbled_pwm.cpp File Reference

Driver for the onboard RGB LED controller by PWM. More...

#include <string.h>
#include <lib/led/led.h>
#include <px4_platform_common/getopt.h>
#include <px4_platform_common/px4_work_queue/ScheduledWorkItem.hpp>
Include dependency graph for rgbled_pwm.cpp:

Go to the source code of this file.

Classes

class  RGBLED_PWM
 

Functions

int led_pwm_servo_set (unsigned channel, uint8_t value)
 
unsigned led_pwm_servo_get (unsigned channel)
 
int led_pwm_servo_init (void)
 
void led_pwm_servo_deinit (void)
 
static void rgbled_usage ()
 
__EXPORT int rgbled_pwm_main (int argc, char *argv[])
 

Detailed Description

Driver for the onboard RGB LED controller by PWM.

this driver is based the PX4 led driver

Definition in file rgbled_pwm.cpp.

Function Documentation

◆ led_pwm_servo_deinit()

void led_pwm_servo_deinit ( void  )

◆ led_pwm_servo_get()

unsigned led_pwm_servo_get ( unsigned  channel)

◆ led_pwm_servo_init()

int led_pwm_servo_init ( void  )

Referenced by RGBLED_PWM::init().

Here is the caller graph for this function:

◆ led_pwm_servo_set()

int led_pwm_servo_set ( unsigned  channel,
uint8_t  value 
)

Referenced by RGBLED_PWM::send_led_rgb().

Here is the caller graph for this function:

◆ rgbled_pwm_main()

__EXPORT int rgbled_pwm_main ( int  argc,
char *  argv[] 
)

Definition at line 233 of file rgbled_pwm.cpp.

References OK, RGBLED_PWM::RGBLED_PWM(), and rgbled_usage().

Here is the call graph for this function:

◆ rgbled_usage()

static void rgbled_usage ( )
static

Definition at line 227 of file rgbled_pwm.cpp.

Referenced by rgbled_pwm_main().

Here is the caller graph for this function: