|
TMC9660 Driver 0.1.0
API reference
|
Gate-driver start-up of register mode: the words of the manual's start sequence. More...
#include <tmc9660.hpp>
Public Attributes | |
| uint32_t | pwm_enable |
| MCC_PWM_CONFIG written first: ENABLE_UX1/VX2/WY1/Y2 and CHOP 1 are added. | |
| uint32_t | gdrv_cfg {0} |
| MCC_GDRV_CFG: gate current and adaptive mode. | |
| uint32_t | gdrv_timing {0} |
| MCC_GDRV_TIMING. | |
| uint32_t | gdrv_bbm {0} |
| MCC_GDRV_BBM: break-before-make times. | |
| uint32_t | gdrv_hw |
| MCC_GDRV_HW: bias, charge pump, comparators and bridge enables. | |
| uint8_t | chop_run |
| uint32_t | gdrv_prot {0} |
| uint32_t | gdrv_ocp_uvw {0} |
| uint32_t | gdrv_ocp_y2 {0} |
MCC_GDRV_OCP_Y2, as gdrv_ocp_uvw. | |
| uint32_t | status_en |
| MCC_GDRV_STATUS_EN after the start: fault reporting (reset value: all on). | |
| uint32_t | prot_en {0xAFFF'FFFFU} |
| MCC_GDRV_PROT_EN after the start: protection handling (all on). 0 runs the stage unprotected: say so on purpose. | |
Gate-driver start-up of register mode: the words of the manual's start sequence.
| uint8_t tmc9660::GateDriverRegConfig::chop_run |
MCC_PWM_CONFIG.CHOP that runs the outputs, 1 to 7; 2 holds the high sides on, 5 and 6 are single-side PWM (RM CHOP table): 7 is the normal run value.
| uint32_t tmc9660::GateDriverRegConfig::gdrv_hw |
MCC_GDRV_HW: bias, charge pump, comparators and bridge enables.
| uint32_t tmc9660::GateDriverRegConfig::gdrv_ocp_uvw {0} |
MCC_GDRV_OCP_UVW, written before the start. 0 is the reset value: the lowest threshold, no blanking, no deglitch. Set the board's values: with every protection on, 0 can trip at once (GateDriverStart() then returns DeviceFault and leaves the stage off).
| uint32_t tmc9660::GateDriverRegConfig::gdrv_prot {0} |
MCC_GDRV_PROT, written before the start (the reset value is 0).
| uint32_t tmc9660::GateDriverRegConfig::pwm_enable |
MCC_PWM_CONFIG written first: ENABLE_UX1/VX2/WY1/Y2 and CHOP 1 are added.
| uint32_t tmc9660::GateDriverRegConfig::status_en |
MCC_GDRV_STATUS_EN after the start: fault reporting (reset value: all on).