TMC9660 Driver 0.1.0
API reference
Loading...
Searching...
No Matches
Public Attributes | List of all members
tmc9660::GateDriverRegConfig Struct 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.
 

Detailed Description

Gate-driver start-up of register mode: the words of the manual's start sequence.

Member Data Documentation

◆ chop_run

uint8_t tmc9660::GateDriverRegConfig::chop_run
Initial value:
{
7}

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.

◆ gdrv_hw

uint32_t tmc9660::GateDriverRegConfig::gdrv_hw
Initial value:
{
0x0300'0FFFU}

MCC_GDRV_HW: bias, charge pump, comparators and bridge enables.

◆ gdrv_ocp_uvw

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).

◆ gdrv_prot

uint32_t tmc9660::GateDriverRegConfig::gdrv_prot {0}

MCC_GDRV_PROT, written before the start (the reset value is 0).

◆ pwm_enable

uint32_t tmc9660::GateDriverRegConfig::pwm_enable
Initial value:
{
0x0000'0F00U}

MCC_PWM_CONFIG written first: ENABLE_UX1/VX2/WY1/Y2 and CHOP 1 are added.

◆ status_en

uint32_t tmc9660::GateDriverRegConfig::status_en
Initial value:
{
0xEFFF'FFFFU}

MCC_GDRV_STATUS_EN after the start: fault reporting (reset value: all on).


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