Libary for Strpper motor controller, eg: Rep-Rap smart stick Catering for both, Phisical 'PIN' endstops, and PORT Expander end stops . ** BOTH IN TEST ** ** Phisical PIN tested (minimal) **** PORT PIN NOT TESTED ****
Diff: Stepper.h
- Revision:
- 3:57d3774612fc
- Parent:
- 1:66e95666c3b5
--- a/Stepper.h Fri Aug 02 13:59:28 2013 +0000 +++ b/Stepper.h Thu Aug 08 09:36:39 2013 +0000 @@ -18,7 +18,14 @@ bool ESL_Fitted(); bool ESR_Fitted(); - bool Enable (bool OnOff); + void Enable (bool OnOff); + + bool ESL_Port(int PORT_In); // bit MASK testing of non zero port bits + + void ESL_Set_MASK (int Port_MASK_L_in); + void ESL_Set_INV_MASK (int Port_INV_MASK_L_in); + + protected: DigitalOut _Step; @@ -35,12 +42,17 @@ bool _g4; bool ESL; + int Port_MASK_L; + private: int ESR; int Set; + + int Port_INV_MASK_L; + }; #endif // _stepper_h_ \ No newline at end of file