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.
test_ehp_reg.h
- Committer:
- wuliqunyy
- Date:
- 2022-01-17
- Revision:
- 0:be95bfb06686
File content as of revision 0:be95bfb06686:
//Class delclarations #include "mbed.h" #include "test_vector.h" class test_ehp_reg:public test_vector { public: /*constructor*/ test_ehp_reg(PinName timerCapturePin, PinName adcCapturePin); virtual void configure(); virtual void run(); virtual void stop(); virtual uint32_t* getResult(); virtual char* getResultStatus(); virtual void release(); virtual uint32_t getBufferSize(); private: InterruptIn _interruptTrigger; uint32_t* _ptr_ADC_arr; uint32_t _ADC_idx; volatile uint32_t _ADC_temp; bool _ADCperiodInSync; void _handleADCTriggerPinRiseIRQ(); uint32_t _readADC(); bool _ADCBufferFull; bool _getADCBufferFull(); };