Modification into 17th July New display demo code
Dependencies: SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217
Fork of Ext_Demo_17July2017_newdis by
struct.h
- Committer:
- nikitateggi
- Date:
- 2017-06-17
- Revision:
- 20:7c64e6ecad76
- Parent:
- 19:1650bbc923cc
- Child:
- 22:ffa88619551d
File content as of revision 20:7c64e6ecad76:
#ifndef STRUCT_H_ #define STRUCT_H_ #include "bp.h" #include "glc.h" #include "ecg_dec.h" //#include "test_type.h" typedef struct __attribute__((__packed__)) { uint8_t date; uint8_t month; uint8_t year; uint8_t hour; uint8_t mins; uint8_t sec; }DateTime_info; typedef struct __attribute__((__packed__)) { uint16_t num_sample_ppg_dummy; uint16_t num_sample_ecg_OTtyp; }NumSamples_info; typedef struct __attribute__((__packed__)) { uint16_t cal_sbp_dummy; uint16_t cal_dbp_OTtyp; }CalData_info; typedef enum { ACK = (uint8_t)0x00, start_of_file, end_of_file, data_trfr, NACK=0xff, }bt_st; typedef enum { BP_Test = (uint8_t )0x00, // removed Semi Colon and replaced with comma BG_Test , ECG_Test, }test_type_info; typedef struct __attribute__((__packed__)) { uint32_t length; uint8_t device_id; uint32_t patient_id; DateTime_info date_time; test_type_info test_type; uint16_t sampling_freq; NumSamples_info num_samples; CalData_info cal_data; }BLEMsg_info; typedef enum { sos= (uint8_t)0xc0, eos= (uint8_t)0xc0, }file_st; typedef struct __attribute__((__packed__)) { file_st start_end_of_string; uint32_t length_file; bt_st proto; BLEMsg_info bt_msg; uint8_t chk_sum; }Point; uint8_t bt_send( uint8_t send_tx); uint8_t bt_receive(uint8_t send_rx); void send(); void sendinit(); void send_data_str1(); void send_data_str2(); #endif