PX4 Firmware
PX4 Autopilot Software http://px4.io
LedController::NextState Struct Reference
Collaboration diagram for LedController::NextState:

Public Member Functions

void set (const led_control_s &led_control)
 
void reset ()
 
bool is_valid () const
 

Public Attributes

uint8_t color
 
uint8_t mode
 
uint8_t num_blinks
 
uint8_t priority = led_control_s::MAX_PRIORITY + 1
 

Detailed Description

Definition at line 107 of file led.h.

Member Function Documentation

◆ is_valid()

bool LedController::NextState::is_valid ( ) const
inline

Definition at line 125 of file led.h.

◆ reset()

void LedController::NextState::reset ( void  )
inline

Definition at line 124 of file led.h.

Referenced by LedController::update().

Here is the caller graph for this function:

◆ set()

void LedController::NextState::set ( const led_control_s led_control)
inline

Definition at line 113 of file led.h.

References led_control_s::color, led_control, led_control_s::mode, led_control_s::num_blinks, and led_control_s::priority.

Referenced by LedController::update().

Here is the caller graph for this function:

Member Data Documentation

◆ color

uint8_t LedController::NextState::color

Definition at line 108 of file led.h.

Referenced by LedController::PerLedData::apply_next_state().

◆ mode

uint8_t LedController::NextState::mode

Definition at line 109 of file led.h.

Referenced by LedController::PerLedData::apply_next_state().

◆ num_blinks

uint8_t LedController::NextState::num_blinks

Definition at line 110 of file led.h.

Referenced by LedController::PerLedData::apply_next_state().

◆ priority

uint8_t LedController::NextState::priority = led_control_s::MAX_PRIORITY + 1

Definition at line 111 of file led.h.

Referenced by LedController::PerLedData::apply_next_state(), and LedController::update().


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