![]() |
gclib 2.5.0
Galil Communications Library
|
#include <gclib.hpp>
Public Types | |
| enum | Type { NoInterrupts = GCLIB_NO_INTERRUPTS , UserInterrupt = GCLIB_USER_INTERRUPT , MotionComplete = GCLIB_MOTION_COMPLETE , AllAxesMotionComplete = GCLIB_ALL_AXES_MOTION_COMPLETE , ExcessPositionError = GCLIB_EXCESS_POSITION_ERROR , LimitSwitch = GCLIB_LIMIT_SWITCH , WatchdogTimer = GCLIB_WATCHDOG_TIMER , ProgramStopped = GCLIB_PROGRAM_STOPPED , CommandDone = GCLIB_COMMAND_DONE , DigitalInputLow = GCLIB_DIGITAL_INPUT_LOW , AllInterrupts = GCLIB_ALL_INTERRUPTS } |
Public Member Functions | |
| Interrupt (gclib_interrupt_t interrupt) | |
Public Attributes | |
| Type | type |
| union { | |
| char axis | |
| If type is MotionComplete, holds the axis that triggered the interrupt. More... | |
| uint8_t digital_input | |
| If type is DigitalInputLow, holds the digital input that triggered the interrupt. More... | |
| uint8_t user_interrupt | |
| If type is UserInterrupt, holds the user interrupt that was triggered. More... | |
| }; | |
| Interrupt context. Only valid for MotionComplete, DigitalInputLow, and UserInterrupt. | |
| uint8_t | status |
| The raw status byte generated by the controller. See the EI command reference for all possible values. | |
An unsolicited interrupt. Use set_interrupts to configure which types are generated by the controller, and subscribe_interrupts to receive generated interrupts from the controller.
| enum Type |
Flags that can be combined to select which interrupts should be enabled by set_interrupts(). Also used to categorize interrupts such as MotionComplete which correspond to a range of status bytes.
|
inline |
| char axis |
| uint8_t digital_input |
| uint8_t user_interrupt |
| union { ... } |
Interrupt context. Only valid for MotionComplete, DigitalInputLow, and UserInterrupt.
| uint8_t status |
The raw status byte generated by the controller. See the EI command reference for all possible values.