Pacemaker code Implementation for SFWRENG 3K04
Dependencies: FXOS8700Q Queue mbed-rtos mbed
Fork of Pacemaker by
hardware.h@16:08d5e5a3ee74, 2016-11-17 (annotated)
- Committer:
- noahzwiep
- Date:
- Thu Nov 17 04:03:25 2016 +0000
- Revision:
- 16:08d5e5a3ee74
- Parent:
- 1:fbba2687ddfe
- Made change to hardware class that provides sensing pin; - Made dataStruct class in which there is multiple threading for grabbing queue data; - Made queue in datastruct to allow storage of data
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
FiveDollar | 0:b2b3955cd77b | 1 | #pragma once |
FiveDollar | 0:b2b3955cd77b | 2 | #include "mbed.h" |
FiveDollar | 0:b2b3955cd77b | 3 | |
FiveDollar | 0:b2b3955cd77b | 4 | class hardware{ |
FiveDollar | 0:b2b3955cd77b | 5 | public: |
FiveDollar | 0:b2b3955cd77b | 6 | hardware(); |
FiveDollar | 0:b2b3955cd77b | 7 | ~hardware(); |
FiveDollar | 0:b2b3955cd77b | 8 | Serial* getSerial(); |
FiveDollar | 1:fbba2687ddfe | 9 | PwmOut* getChamber(char); |
noahzwiep | 16:08d5e5a3ee74 | 10 | double getSense(); |
FiveDollar | 0:b2b3955cd77b | 11 | |
FiveDollar | 0:b2b3955cd77b | 12 | private: |
FiveDollar | 1:fbba2687ddfe | 13 | PwmOut atrium; |
FiveDollar | 1:fbba2687ddfe | 14 | PwmOut ventricle; |
FiveDollar | 0:b2b3955cd77b | 15 | Serial pc; |
noahzwiep | 16:08d5e5a3ee74 | 16 | AnalogIn sense; |
FiveDollar | 0:b2b3955cd77b | 17 | }; |