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

#include <leds.h>

Inheritance diagram for platform::TeensyLEDs:
Collaboration diagram for platform::TeensyLEDs:

Public Member Functions

 TeensyLEDs ()
 
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 9 of file leds.h.

Constructor & Destructor Documentation

◆ TeensyLEDs()

FLASHMEM platform::TeensyLEDs::TeensyLEDs ( )

Definition at line 4 of file leds.cpp.

Member Function Documentation

◆ get_all()

FLASHMEM uint8_t platform::TeensyLEDs::get_all ( ) const
override

Returns the current state of the front leds.

Definition at line 28 of file leds.cpp.

◆ reset()

FLASHMEM void platform::TeensyLEDs::reset ( )
override

Disables all eight front leds.

Definition at line 23 of file leds.cpp.

◆ set()

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

Sets specified front led to the specified value.

Definition at line 9 of file leds.cpp.

◆ set_all()

FLASHMEM void platform::TeensyLEDs::set_all ( const uint8_t states)
override

Sets all eight front leds at once.

Definition at line 21 of file leds.cpp.

◆ write_to_hardware()

FLASHMEM utils::status platform::TeensyLEDs::write_to_hardware ( ) const
override

Definition at line 30 of file leds.cpp.


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