ClearCore Library
List of all members | Public Member Functions | Public Attributes
ClearCore::MotorDriver::AlertRegMotor Union Reference

Detailed Description

Accumulating register of alerts that have occurred on this motor. Intended for use in Step and Direction mode.

Accumulating register of alerts that have occurred on this motor. Intended for use in Step and Direction mode. More...

#include <MotorDriver.h>

Public Member Functions

 AlertRegMotor ()
 
 AlertRegMotor (uint32_t val)
 

Public Attributes

uint32_t reg
 
struct {
   uint16_t   MotionCanceledInAlert: 1
 
   uint16_t   MotionCanceledPositiveLimit: 1
 
   uint16_t   MotionCanceledNegativeLimit: 1
 
   uint16_t   MotionCanceledSensorEStop: 1
 
   uint16_t   MotionCanceledMotorDisabled: 1
 
   uint16_t   MotorFaulted: 1
 
bit
 

Constructor & Destructor Documentation

ClearCore::MotorDriver::AlertRegMotor::AlertRegMotor ( )
inline

AlertRegMotor default constructor

ClearCore::MotorDriver::AlertRegMotor::AlertRegMotor ( uint32_t  val)
inline

AlertRegMotor constructor with initial value

Member Data Documentation

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

Field access to the motor alert register

uint16_t ClearCore::MotorDriver::AlertRegMotor::MotionCanceledInAlert

TRUE whenever a command is rejected due to an existing alert register bit being asserted.

uint16_t ClearCore::MotorDriver::AlertRegMotor::MotionCanceledMotorDisabled

TRUE whenever executing motion is canceled due to the enable output deasserting or whenever a command is rejected while the enable output is deasserted.

uint16_t ClearCore::MotorDriver::AlertRegMotor::MotionCanceledNegativeLimit

TRUE whenever executing motion is canceled due to a negative limit switch being asserted or whenever a command is rejected while in the limit.

uint16_t ClearCore::MotorDriver::AlertRegMotor::MotionCanceledPositiveLimit

TRUE whenever executing motion is canceled due to a positive limit switch being asserted or whenever a command is rejected while in the limit.

uint16_t ClearCore::MotorDriver::AlertRegMotor::MotionCanceledSensorEStop

TRUE whenever executing motion is canceled due to an E-Stop triggered by the specified E-Stop sensor or whenever a command is rejected while the E-Stop is asserted.

uint16_t ClearCore::MotorDriver::AlertRegMotor::MotorFaulted

TRUE whenever the MotorInFault status is set in the motor status register.

uint32_t ClearCore::MotorDriver::AlertRegMotor::reg

Broad access to the whole register


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