FastLED 3.10.8
Loading...
Searching...
No Matches
pin.cpp.hpp File Reference
#include "fl/system/pin.h"
#include "platforms/pin.h"
#include "fl/stl/isr.h"
#include "fl/log/log.h"
#include "fl/stl/compiler_control.h"
#include "fl/stl/singleton.h"
#include "fl/stl/noexcept.h"
+ Include dependency graph for pin.cpp.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  fl::pwm_state::PwmPinState
 
struct  fl::pwm_state::PwmStateData
 

Namespaces

namespace  fl
 Base definition for an LED controller.
 
namespace  fl::pwm_state
 

Enumerations

enum class  fl::pwm_state::PwmBackend : u8 { fl::pwm_state::None , fl::pwm_state::Native , fl::pwm_state::IsrSoftware }
 

Functions

PwmPinState * fl::pwm_state::allocate () FL_NO_EXCEPT
 
void fl::analogWrite (int pin, u16 val) FL_NO_EXCEPT
 Write analog value to pin (PWM)
 
u8 fl::pwm_state::countIsrChannels () FL_NO_EXCEPT
 
PinValue fl::digitalRead (int pin) FL_NO_EXCEPT
 Read digital value from pin.
 
void fl::digitalWrite (int pin, PinValue val) FL_NO_EXCEPT
 Write digital value to pin.
 
int fl::pwm_state::ensureIsrActive () FL_NO_EXCEPT
 
PwmPinState * fl::pwm_state::findByPin (int pin) FL_NO_EXCEPT
 
u32 fl::getPwmFrequency (int pin) FL_NO_EXCEPT
 Query the configured PWM frequency for a pin.
 
void fl::pwm_state::maybeShutdownIsr () FL_NO_EXCEPT
 
void fl::pinMode (int pin, PinMode mode) FL_NO_EXCEPT
 Set pin mode (input, output, pull-up, pull-down)
 
void FL_IRAM fl::pwm_state::pwm_isr_handler (void *user_data) FL_NO_EXCEPT
 
int fl::pwmEnd (int pin) FL_NO_EXCEPT
 Release PWM channel and stop output on a pin.
 
void fl::pwm_state::releaseChannel (PwmPinState *ch) FL_NO_EXCEPT
 
void fl::setAdcRange (AdcRange range) FL_NO_EXCEPT
 Set ADC voltage range.
 
void fl::setPwm16 (int pin, u16 val) FL_NO_EXCEPT
 Set PWM duty cycle with 16-bit resolution.
 
int fl::setPwmFrequency (int pin, u32 frequency_hz) FL_NO_EXCEPT
 Set PWM frequency for a pin.
 
PwmStateData & fl::pwm_state::state () FL_NO_EXCEPT
 

Variables

PwmStateData * fl::pwm_state::g_state = nullptr
 
constexpr u32 fl::pwm_state::ISR_FREQUENCY_HZ = 128000
 
constexpr u32 fl::pwm_state::MAX_ISR_PWM_FREQUENCY = 500
 
constexpr u8 fl::pwm_state::MAX_PWM_CHANNELS = 8