Pacemaker code Implementation for SFWRENG 3K04
Dependencies: mbed Queue mbed-rtos FXOS8700Q
Fork of Pacemaker by
SWFRENG 3K04 Project to design, develop, and document a functional pacemaker.
The project uses the Freescale K64F Microcontroller and C++ mbed library.
dataStruct.h
- Committer:
- noahzwiep
- Date:
- 2016-12-18
- Revision:
- 36:b6431cd8ecd6
- Parent:
- 31:5e55042e025a
File content as of revision 36:b6431cd8ecd6:
#pragma once #include "mbed.h" #include "hardware.h" #include "rtos.h" #include "queue.h" #define START_THREAD 1 class dataStruct{ public: dataStruct(hardware*); ~dataStruct(); double getData(); private: static const int N = 13; double k_streamPeriod; hardware* myHardware; double streamValue; queue myQueue; static void threadStarter(void const *p); void storeData(); Thread thread; };