
Refactoring and other updates
Dependencies: BLE_API mbed nRF51822
Fork of nRF51822_SimpleChat by
ProcessInterface.hpp
- Committer:
- carbune92
- Date:
- 2017-05-10
- Revision:
- 7:806b08205b25
- Parent:
- 6:832162614a19
File content as of revision 7:806b08205b25:
#ifndef _ProcessInterface_H_ #define _ProcessInterface_H_ //#include "ble/BLE.h" #include "Controller.hpp" #include "BTDevice.hpp" #define MIN_PWM_PERIOD 0.00001f //static AnalogIn processRead(P0_4); // TODO fct de scalat intre 0 si 1 pentru comenzi date de controller care nu se incadreaza class ProcessInterface{ public: ProcessInterface(); ProcessInterface(PinName, PinName); void getProcOutput(); void attachController(Controller *); void attachBTDevice(BTDevice *); void exportOutput(); void updateCmd(); void updateCmd(float); void applyCmd(); ~ProcessInterface(); private: Controller *Ctrl; BTDevice *Btd; float Output; float cmd; AnalogIn processRead; PwmOut cmdPin; }; #endif