ClearCore Library
Loading...
Searching...
No Matches
List of all members | Public Member Functions | Public Attributes
ClearCore::MotorDriver::PolarityInversionsSD Union Reference

Detailed Description

A small register with bit and field views. This allows easy configuration for steppers that use an inverted signal on one of the main input signals. See PolarityInvertSDEnable(bool invert), PolarityInvertSDDirection(bool invert), and PolarityInvertSDHlfb(bool invert).

A small register with bit and field views. This allows easy configuration for steppers that use an inverted signal on one of the main input signals. See PolarityInvertSDEnable(bool invert), PolarityInvertSDDirection(bool invert), and PolarityInvertSDHlfb(bool invert). More...

#include <MotorDriver.h>

Public Member Functions

 PolarityInversionsSD ()
 
 PolarityInversionsSD (int16_t val)
 

Public Attributes

int16_t reg
 
struct { 
 
   uint32_t   enableInverted: 1 
 
   uint32_t   directionInverted: 1 
 
   uint32_t   hlfbInverted: 1 
 
bit 
 

Constructor & Destructor Documentation

◆ PolarityInversionsSD() [1/2]

ClearCore::MotorDriver::PolarityInversionsSD::PolarityInversionsSD ( )
inline

PolarityInversionsSD default constructor

◆ PolarityInversionsSD() [2/2]

ClearCore::MotorDriver::PolarityInversionsSD::PolarityInversionsSD ( int16_t  val)
inline

PolarityInversionsSD constructor with initial value

Member Data Documentation

◆ [struct]

struct { ... } ClearCore::MotorDriver::PolarityInversionsSD::bit

Field access to the motor polarity inversions.

◆ directionInverted

uint32_t ClearCore::MotorDriver::PolarityInversionsSD::directionInverted

Invert the sense of the motor's direction.

◆ enableInverted

uint32_t ClearCore::MotorDriver::PolarityInversionsSD::enableInverted

Invert the sense of the motor's enable input.

◆ hlfbInverted

uint32_t ClearCore::MotorDriver::PolarityInversionsSD::hlfbInverted

Invert the sense of the motor's HLFB output.

◆ reg

int16_t ClearCore::MotorDriver::PolarityInversionsSD::reg

Broad access to the whole register


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