Changes done in ECG and BT
Dependencies: SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217
Fork of merged_code2_20sept_2017_4th_oct_2017 by
struct.h@14:f5c62d30c6fc, 2017-06-01 (annotated)
- Committer:
- nidhinvarghese
- Date:
- Thu Jun 01 09:24:45 2017 +0000
- Revision:
- 14:f5c62d30c6fc
- Child:
- 19:1650bbc923cc
HR code is running with Structure ; COMPILATION success; Results not accurate
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
nidhinvarghese | 14:f5c62d30c6fc | 1 | #ifndef STRUCT_H_ |
nidhinvarghese | 14:f5c62d30c6fc | 2 | #define STRUCT_H_ |
nidhinvarghese | 14:f5c62d30c6fc | 3 | |
nidhinvarghese | 14:f5c62d30c6fc | 4 | #include "bp.h" |
nidhinvarghese | 14:f5c62d30c6fc | 5 | #include "glc.h" |
nidhinvarghese | 14:f5c62d30c6fc | 6 | #include "ecg_dec.h" |
nidhinvarghese | 14:f5c62d30c6fc | 7 | #include "test_type.h" |
nidhinvarghese | 14:f5c62d30c6fc | 8 | |
nidhinvarghese | 14:f5c62d30c6fc | 9 | |
nidhinvarghese | 14:f5c62d30c6fc | 10 | typedef struct __attribute__((__packed__)) |
nidhinvarghese | 14:f5c62d30c6fc | 11 | { |
nidhinvarghese | 14:f5c62d30c6fc | 12 | uint8_t date; |
nidhinvarghese | 14:f5c62d30c6fc | 13 | uint8_t month; |
nidhinvarghese | 14:f5c62d30c6fc | 14 | uint8_t year; |
nidhinvarghese | 14:f5c62d30c6fc | 15 | uint8_t hour; |
nidhinvarghese | 14:f5c62d30c6fc | 16 | uint8_t mins; |
nidhinvarghese | 14:f5c62d30c6fc | 17 | uint8_t sec; |
nidhinvarghese | 14:f5c62d30c6fc | 18 | }DateTime_info; |
nidhinvarghese | 14:f5c62d30c6fc | 19 | |
nidhinvarghese | 14:f5c62d30c6fc | 20 | typedef struct __attribute__((__packed__)) |
nidhinvarghese | 14:f5c62d30c6fc | 21 | { |
nidhinvarghese | 14:f5c62d30c6fc | 22 | uint16_t num_sample_ppg_dummy; |
nidhinvarghese | 14:f5c62d30c6fc | 23 | uint16_t num_sample_ecg_OTtyp; |
nidhinvarghese | 14:f5c62d30c6fc | 24 | }NumSamples_info; |
nidhinvarghese | 14:f5c62d30c6fc | 25 | |
nidhinvarghese | 14:f5c62d30c6fc | 26 | |
nidhinvarghese | 14:f5c62d30c6fc | 27 | typedef struct __attribute__((__packed__)) |
nidhinvarghese | 14:f5c62d30c6fc | 28 | { |
nidhinvarghese | 14:f5c62d30c6fc | 29 | uint16_t cal_sbp_dummy; |
nidhinvarghese | 14:f5c62d30c6fc | 30 | uint16_t cal_dbp_OTtyp; |
nidhinvarghese | 14:f5c62d30c6fc | 31 | }CalData_info; |
nidhinvarghese | 14:f5c62d30c6fc | 32 | |
nidhinvarghese | 14:f5c62d30c6fc | 33 | |
nidhinvarghese | 14:f5c62d30c6fc | 34 | |
nidhinvarghese | 14:f5c62d30c6fc | 35 | typedef struct __attribute__((__packed__)) |
nidhinvarghese | 14:f5c62d30c6fc | 36 | { |
nidhinvarghese | 14:f5c62d30c6fc | 37 | uint32_t length; |
nidhinvarghese | 14:f5c62d30c6fc | 38 | uint8_t device_id; |
nidhinvarghese | 14:f5c62d30c6fc | 39 | uint32_t patient_id; |
nidhinvarghese | 14:f5c62d30c6fc | 40 | DateTime_info date_time; |
nidhinvarghese | 14:f5c62d30c6fc | 41 | test_type_info test_type; |
nidhinvarghese | 14:f5c62d30c6fc | 42 | uint16_t sampling_freq; |
nidhinvarghese | 14:f5c62d30c6fc | 43 | NumSamples_info num_samples; |
nidhinvarghese | 14:f5c62d30c6fc | 44 | CalData_info cal_data; |
nidhinvarghese | 14:f5c62d30c6fc | 45 | }BLEMsg_info; |
nidhinvarghese | 14:f5c62d30c6fc | 46 | |
nidhinvarghese | 14:f5c62d30c6fc | 47 | #endif |