REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
Loading...
Searching...
No Matches
platform::NativeLEDs Class Reference

#include <leds.h>

Inheritance diagram for platform::NativeLEDs:
Collaboration diagram for platform::NativeLEDs:

Public Member Functions

 NativeLEDs ()
 
bool set (const uint8_t led, bool on) override
 Sets specified front led to the specified value.
 
void set_all (const uint8_t states) override
 Sets all eight front leds at once.
 
void reset () override
 Disables all eight front leds.
 
uint8_t get_all () const override
 Returns the current state of the front leds.
 
utils::status write_to_hardware () const override
 

Detailed Description

Definition at line 8 of file leds.h.

Constructor & Destructor Documentation

◆ NativeLEDs()

platform::NativeLEDs::NativeLEDs ( )

Definition at line 4 of file leds.cpp.

Member Function Documentation

◆ get_all()

uint8_t platform::NativeLEDs::get_all ( ) const
override

Returns the current state of the front leds.

Definition at line 22 of file leds.cpp.

◆ reset()

void platform::NativeLEDs::reset ( )
override

Disables all eight front leds.

Definition at line 20 of file leds.cpp.

◆ set()

bool platform::NativeLEDs::set ( const uint8_t led,
bool on )
override

Sets specified front led to the specified value.

Definition at line 6 of file leds.cpp.

◆ set_all()

void platform::NativeLEDs::set_all ( const uint8_t states)
override

Sets all eight front leds at once.

Definition at line 18 of file leds.cpp.

◆ write_to_hardware()

utils::status platform::NativeLEDs::write_to_hardware ( ) const
override

Definition at line 24 of file leds.cpp.


The documentation for this class was generated from the following files:
  • lib/native/src/lucidac/native/leds.h
  • lib/native/src/lucidac/leds.cpp