Skip to content

Struct SYN_BLDC_6Step

ClassList > SYN_BLDC_6Step

More...

  • #include <syn_bldc_6step.h>

Public Attributes

Type Name
SYN_BLDC_Config config
uint8_t current_step
SYN_BLDC_Direction direction
uint16_t duty
uint8_t hall_state
uint32_t hall_transitions
uint32_t last_hall_tick_ms
uint32_t rpm
SYN_PID speed_pid
bool speed_pid_active
SYN_BLDC_State state

Detailed Description

6-Step BLDC Motor Instance.

Public Attributes Documentation

variable config

SYN_BLDC_Config SYN_BLDC_6Step::config;

Configuration snapshot.


variable current_step

uint8_t SYN_BLDC_6Step::current_step;

Active 6-step commutation step (1..6).


variable direction

SYN_BLDC_Direction SYN_BLDC_6Step::direction;

Requested rotation direction.


variable duty

uint16_t SYN_BLDC_6Step::duty;

Target PWM duty cycle (0..1000).


variable hall_state

uint8_t SYN_BLDC_6Step::hall_state;

Last sampled 3-bit Hall sensor state (1..6).


variable hall_transitions

uint32_t SYN_BLDC_6Step::hall_transitions;

Total accumulated Hall edge transitions.


variable last_hall_tick_ms

uint32_t SYN_BLDC_6Step::last_hall_tick_ms;

Timestamp of last Hall transition.


variable rpm

uint32_t SYN_BLDC_6Step::rpm;

Calculated motor speed in RPM.


variable speed_pid

SYN_PID SYN_BLDC_6Step::speed_pid;

Integrated speed PID controller instance.


variable speed_pid_active

bool SYN_BLDC_6Step::speed_pid_active;

True if PID closed-loop speed control is enabled.


variable state

SYN_BLDC_State SYN_BLDC_6Step::state;

Current driver state.



The documentation for this class was generated from the following file src/syntropic/motor/syn_bldc_6step.h