Loop based controller for dual lane siemens siplace feeder.
HBridge.h@1:4d3738338cf1, 2017-02-04 (annotated)
- Committer:
- Issus
- Date:
- Sat Feb 04 01:27:29 2017 +0000
- Revision:
- 1:4d3738338cf1
- Parent:
- 0:617334d8e3bb
Minimum on time for cover tape pickup. Added IAP for getting mcu serial number and future eeprom use. Moved defs to .h file.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Issus | 0:617334d8e3bb | 1 | #ifndef HBRIDGE_H_ |
| Issus | 0:617334d8e3bb | 2 | #define HBRIDGE_H_ |
| Issus | 0:617334d8e3bb | 3 | |
| Issus | 0:617334d8e3bb | 4 | #include "mbed.h" |
| Issus | 0:617334d8e3bb | 5 | |
| Issus | 0:617334d8e3bb | 6 | class HBridge |
| Issus | 0:617334d8e3bb | 7 | { |
| Issus | 0:617334d8e3bb | 8 | public: |
| Issus | 0:617334d8e3bb | 9 | HBridge(PinName i1, PinName i2); |
| Issus | 0:617334d8e3bb | 10 | void Coast(); |
| Issus | 0:617334d8e3bb | 11 | void Brake(); |
| Issus | 0:617334d8e3bb | 12 | void Forward(); |
| Issus | 0:617334d8e3bb | 13 | void Reverse(); |
| Issus | 0:617334d8e3bb | 14 | |
| Issus | 0:617334d8e3bb | 15 | private: |
| Issus | 0:617334d8e3bb | 16 | DigitalOut IN1; |
| Issus | 0:617334d8e3bb | 17 | DigitalOut IN2; |
| Issus | 0:617334d8e3bb | 18 | }; |
| Issus | 0:617334d8e3bb | 19 | |
| Issus | 0:617334d8e3bb | 20 | #endif |
Mark Harris