Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of CoilGun by
Coilgun Class Reference
Class for controlling coilgun. More...
#include <coilgun.h>
Public Member Functions | |
| Coilgun (PinName kickPinName, PinName chipPinName, PinName chargePinName, PinName donePinName) | |
| Create an instance of the Coilgun connected to specfied pins. | |
| void | kick (unsigned int kickLength, unsigned int kickDelay, unsigned int chipLength, unsigned int chipDelay) |
| Kick with coilgun. | |
| void | kickEnd (void) |
| Stop kick. | |
| void | charge (void) |
| Charge capacitor. | |
| void | chargeEnd (void) |
| Stop charging capacitor. | |
| void | discharge (void) |
| Discharge capacitor. | |
| void | dischargeEnd (void) |
| Stop discharging. | |
Data Fields | |
| bool | isCharged |
| Read only Will be set to true, when charge() is called, false, when discharge is called. | |
Detailed Description
Class for controlling coilgun.
Definition at line 7 of file coilgun.h.
Constructor & Destructor Documentation
| Coilgun | ( | PinName | kickPinName, |
| PinName | chipPinName, | ||
| PinName | chargePinName, | ||
| PinName | donePinName | ||
| ) |
Create an instance of the Coilgun connected to specfied pins.
Definition at line 3 of file coilgun.cpp.
Member Function Documentation
| void charge | ( | void | ) |
Charge capacitor.
Definition at line 102 of file coilgun.cpp.
| void chargeEnd | ( | void | ) |
Stop charging capacitor.
Definition at line 114 of file coilgun.cpp.
| void discharge | ( | void | ) |
Discharge capacitor.
Definition at line 119 of file coilgun.cpp.
| void dischargeEnd | ( | void | ) |
Stop discharging.
Definition at line 126 of file coilgun.cpp.
| void kick | ( | unsigned int | kickLength, |
| unsigned int | kickDelay, | ||
| unsigned int | chipLength, | ||
| unsigned int | chipDelay | ||
| ) |
Kick with coilgun.
Definition at line 24 of file coilgun.cpp.
| void kickEnd | ( | void | ) |
Stop kick.
Definition at line 68 of file coilgun.cpp.
Field Documentation
Generated on Wed Jul 13 2022 02:22:10 by
1.7.2
