ClearCore Library
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

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

PolarityInversionsSD default constructor

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

PolarityInversionsSD constructor with initial value

Member Data Documentation

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

Field access to the motor polarity inversions.

uint32_t ClearCore::MotorDriver::PolarityInversionsSD::directionInverted

Invert the sense of the motor's direction.

uint32_t ClearCore::MotorDriver::PolarityInversionsSD::enableInverted

Invert the sense of the motor's enable input.

uint32_t ClearCore::MotorDriver::PolarityInversionsSD::hlfbInverted

Invert the sense of the motor's HLFB output.

int16_t ClearCore::MotorDriver::PolarityInversionsSD::reg

Broad access to the whole register


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