HF Interface Wrapper 0.1.0-dev
Embedded C++ hardware abstraction layer
Loading...
Searching...
No Matches
EspPwm::ChannelState Struct Reference

Internal channel state with per-channel callback support. More...

Collaboration diagram for EspPwm::ChannelState:
[legend]

Public Member Functions

 ChannelState () noexcept
 

Public Attributes

bool configured
 Channel is configured.
 
bool enabled
 Channel is enabled.
 
hf_pwm_channel_config_t config
 Channel configuration.
 
hf_u8_t assigned_timer
 Assigned timer (0-3)
 
hf_u32_t raw_duty_value
 Current raw duty value.
 
hf_pwm_err_t last_error
 Last error for this channel.
 
bool fade_active
 Hardware fade is active.
 
bool needs_reconfiguration
 Channel needs reconfiguration due to timer change.
 
hf_pwm_channel_priority_t priority
 Channel priority for eviction decisions.
 
bool is_critical
 Mark as critical (never evict)
 
const char * description
 Optional description for debugging.
 
void(* fade_callback )(hf_channel_id_t)
 Per-channel fade completion callback (raw fn ptr for ISR safety)
 

Detailed Description

Internal channel state with per-channel callback support.

Constructor & Destructor Documentation

◆ ChannelState()

EspPwm::ChannelState::ChannelState ( )
inlinenoexcept

Member Data Documentation

◆ assigned_timer

hf_u8_t EspPwm::ChannelState::assigned_timer

Assigned timer (0-3)

◆ config

hf_pwm_channel_config_t EspPwm::ChannelState::config

Channel configuration.

◆ configured

bool EspPwm::ChannelState::configured

Channel is configured.

◆ description

const char* EspPwm::ChannelState::description

Optional description for debugging.

◆ enabled

bool EspPwm::ChannelState::enabled

Channel is enabled.

◆ fade_active

bool EspPwm::ChannelState::fade_active

Hardware fade is active.

◆ fade_callback

void(* EspPwm::ChannelState::fade_callback) (hf_channel_id_t)

Per-channel fade completion callback (raw fn ptr for ISR safety)

◆ is_critical

bool EspPwm::ChannelState::is_critical

Mark as critical (never evict)

◆ last_error

hf_pwm_err_t EspPwm::ChannelState::last_error

Last error for this channel.

◆ needs_reconfiguration

bool EspPwm::ChannelState::needs_reconfiguration

Channel needs reconfiguration due to timer change.

◆ priority

hf_pwm_channel_priority_t EspPwm::ChannelState::priority

Channel priority for eviction decisions.

◆ raw_duty_value

hf_u32_t EspPwm::ChannelState::raw_duty_value

Current raw duty value.


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