Struct SYN_BLDC_6Step¶
#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¶
Configuration snapshot.
variable current_step¶
Active 6-step commutation step (1..6).
variable direction¶
Requested rotation direction.
variable duty¶
Target PWM duty cycle (0..1000).
variable hall_state¶
Last sampled 3-bit Hall sensor state (1..6).
variable hall_transitions¶
Total accumulated Hall edge transitions.
variable last_hall_tick_ms¶
Timestamp of last Hall transition.
variable rpm¶
Calculated motor speed in RPM.
variable speed_pid¶
Integrated speed PID controller instance.
variable speed_pid_active¶
True if PID closed-loop speed control is enabled.
variable state¶
Current driver state.
The documentation for this class was generated from the following file src/syntropic/motor/syn_bldc_6step.h