HF-TMC51x0 Driver (TMC5130 & TMC5160) 0.1.0-dev
Hardware Agnostic C++ Driver for the TMC51x0 (TMC5130 & TMC5160)
Loading...
Searching...
No Matches
tmc51x0::ENC_STATUS_Register Union Reference

Encoder status register (ENC_STATUS) More...

#include <tmc51x0_registers.hpp>

Public Attributes

uint32_t value
 
struct { 
 
   uint32_t   n_event: 1 
 Bit 0: N event detected (Write '1' to clear) More...
 
   uint32_t   deviation_warn: 1 
 
   uint32_t   reserved: 30 
 Reserved bits (2..31) More...
 
bits 
 

Detailed Description

Encoder status register (ENC_STATUS)

Status information about encoder operation and deviation detection.

Bit assignments per datasheet:

  • Bit 0: n_event - Event detected. To clear the status bit, write with a 1 bit at the corresponding position. This bit is ORed to the interrupt output signal.
  • Bit 1: deviation_warn - Deviation warning. Deviation_warn cannot be cleared while a warning still persists. Set ENC_DEVIATION zero to disable. This bit is ORed to the interrupt output signal.

Member Data Documentation

◆ [struct]

struct { ... } tmc51x0::ENC_STATUS_Register::bits

◆ deviation_warn

uint32_t tmc51x0::ENC_STATUS_Register::deviation_warn

Bit 1: Deviation between X_ACTUAL and X_ENC detected (Write '1' to clear, but only if warning no longer persists)

◆ n_event

uint32_t tmc51x0::ENC_STATUS_Register::n_event

Bit 0: N event detected (Write '1' to clear)

◆ reserved

uint32_t tmc51x0::ENC_STATUS_Register::reserved

Reserved bits (2..31)

◆ value

uint32_t tmc51x0::ENC_STATUS_Register::value

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