serial teste pulga to pulga

Source/definitions.txt

Committer:
ruschigo
Date:
2020-05-03
Revision:
2:b39f5ce4d5bd
Parent:
1:10de89ea1f70

File content as of revision 2:b39f5ce4d5bd:

//***********************************************************************************************

// Description : First Definitions for the General System
// Content : 
//               Libraries
//               Declarations
//               Includes

//***********************************************************************************************

/***LIBRARIES***/

#include "mbed.h"
#include <stdio.h>
#include <string>
#include <inttypes.h>
#include <sstream>
#include <vector>
#include "proculus_display.h"


/***DECLARATIONS***/

/* General*/

/* Serial*/
//RawSerial pc(USBTX, USBRX);

float display_data;
int display_ctrl;
char display_option;
uint16_t screen_id = 0x00;
Timer serial_timer;
Timeout display_timeout;
Ticker display_ticker;
Ticker update_screen_ticker;
int update_screen_param = 0x00;

#define SCALE_PP_PRESSURE 0x01
#define SCALE_PEEP_PRESSURE 0x02
#define SCALE_BPM 0x03
#define SCALE_TINSP 0x04
#define SCALE_FIO2 0x05
#define SCALE_SENS_ASSISTED_MOD 0x06

#define DISPLAY_CMD_START 0x2
#define DISPLAY_CMD_WAITING_DATA 0x3
#define DISPLAY_CMD_DATA_ARRIVE 0x4
#define DISPLAY_CMD_DONE 0x1

/*pulga cmd defines*/
#define SEND_CMD 0x1
#define CMD_DONE 0x2

int pulga_cmd_status;
char pulga_option;
float pulga_data;
/***INCLUDES***/