##// END OF EJS Templates
te_structs.h se cambio de directorio de util a timeEngine
aaguilar -
r176:177
parent child
Show More
@@ -0,0 +1,149
1 /*
No newline at end of file
2 * te_defs.h
No newline at end of file
3 *
No newline at end of file
4 * Created on: Nov 4, 2014
No newline at end of file
5 * Author: Alan Aguilar Sologuren
No newline at end of file
6 */
No newline at end of file
7
No newline at end of file
8 #ifndef UTILS_TE_STRUCTS_H_
No newline at end of file
9 #define UTILS_TE_STRUCTS_H_
No newline at end of file
10
No newline at end of file
11 #include <stdint.h>
No newline at end of file
12
No newline at end of file
13 /*mascaras disponibles para GPS 15xL*/
No newline at end of file
14 #define GPNON 0x0000 /**< Unknown packet type. */
No newline at end of file
15 #define GPGGA 0x0001 /**< GGA - Essential fix data which provide 3D location and accuracy data. */
No newline at end of file
16 #define GPGSA 0x0002 /**< GSA - GPS receiver operating mode, SVs used for navigation, and DOP values. */
No newline at end of file
17 #define GPGSV 0x0004 /**< GSV - Number of SVs in view, PRN numbers, elevation, azimuth & SNR values. */
No newline at end of file
18 #define GPRMC 0x0008 /**< RMC - Recommended Minimum Specific GPS/TRANSIT Data. */
No newline at end of file
19 #define GPVTG 0x0010 /**< VTG - Actual track made good and speed over ground. */
No newline at end of file
20 #define GPALM 0x0020
No newline at end of file
21 #define GPGLL 0x0040
No newline at end of file
22 #define PGRMI 0x0080
No newline at end of file
23 #define PGRMC 0x0100
No newline at end of file
24 #define PGRMC1 0x0200
No newline at end of file
25 #define PGRMO 0x0400
No newline at end of file
26
No newline at end of file
27 ///////////////////////////////////////////////////////////////////////////////
No newline at end of file
28 // ESTRUCTURAS PARA MODULO DE CONTROL DE RECEPTOR GNSS (GPS-15xL)
No newline at end of file
29 ///////////////////////////////////////////////////////////////////////////////
No newline at end of file
30
No newline at end of file
31 /*!
No newline at end of file
32 *
No newline at end of file
33 */
No newline at end of file
34 typedef struct gnss_config_struct_{
No newline at end of file
35 uint8_t baudrate;
No newline at end of file
36 uint16_t nmea_mask;
No newline at end of file
37 }gnss_config_struct;
No newline at end of file
38
No newline at end of file
39 /*!
No newline at end of file
40 * \struct gnss_precise_time
No newline at end of file
41 * \brief Estructura de tiempo de GNSS para almacenar tiempo preciso.
No newline at end of file
42 * Almacena tiempo con resolucion de microsegundos.
No newline at end of file
43 */
No newline at end of file
44 typedef struct gnss_precise_time_{
No newline at end of file
45 int year; /*!< Ahno de la data adquirida */
No newline at end of file
46 int doy; /*!< Dia del ahno de la data adqirida */
No newline at end of file
47 int hour; /*!< Hora de la data adquirida */
No newline at end of file
48 int minu; /*!< Minutos de la data adquirida */
No newline at end of file
49 int sec; /*!< Segundos de la data adquirida */
No newline at end of file
50 int usec; /*!< Microsegndos de la data adquirida */
No newline at end of file
51 gnss_precise_time_(): year(0), doy(0), hour(0), minu(0), sec(0), usec(0){}
No newline at end of file
52 }gnss_precise_time;
No newline at end of file
53
No newline at end of file
54 ///////////////////////////////////////////////////////////////////////////////
No newline at end of file
55 // ESTRUCTURAS PARA EL MODULO DE CONTROL DEL GENERADOR DE CLOCK
No newline at end of file
56 ///////////////////////////////////////////////////////////////////////////////
No newline at end of file
57
No newline at end of file
58 /*!
No newline at end of file
59 *
No newline at end of file
60 */
No newline at end of file
61 typedef struct clock_config_struct_{
No newline at end of file
62
No newline at end of file
63 }clock_config_struct;
No newline at end of file
64
No newline at end of file
65 /*!
No newline at end of file
66 *
No newline at end of file
67 */
No newline at end of file
68 typedef struct clock_state_struct_{
No newline at end of file
69
No newline at end of file
70 }clock_state_struct;
No newline at end of file
71
No newline at end of file
72 ///////////////////////////////////////////////////////////////////////////////
No newline at end of file
73 // ESTRUCTURAS PARA MODULO DE CONTROL DE RTC
No newline at end of file
74 ///////////////////////////////////////////////////////////////////////////////
No newline at end of file
75
No newline at end of file
76 /*!
No newline at end of file
77 * \struct ds1308_ctl_byte
No newline at end of file
78 * \brief Estructura para almacenar informacion de configuracion para
No newline at end of file
79 * el registro con direccion DS1308_CTL_ADD (0x07) del DS1308.
No newline at end of file
80 */
No newline at end of file
81 typedef struct ds1308_ctl_byte_ {
No newline at end of file
82 uint8_t rs0:1;
No newline at end of file
83 uint8_t rs1:1;
No newline at end of file
84 uint8_t bbclk:1;
No newline at end of file
85 uint8_t los:1;
No newline at end of file
86 uint8_t sqwe:1;
No newline at end of file
87 uint8_t osf:1;
No newline at end of file
88 uint8_t eclk:1;
No newline at end of file
89 uint8_t out:1;
No newline at end of file
90 ds1308_ctl_byte_(): rs0(0), rs1(0), bbclk(0), los(0), sqwe(0),
No newline at end of file
91 osf(0), eclk(1), out(0){}
No newline at end of file
92 }ds1308_ctl_byte;
No newline at end of file
93
No newline at end of file
94 /*!
No newline at end of file
95 * \struct ds1308_clock_halt
No newline at end of file
96 * \brief Estructura para configurar el arranque o parada de funciones
No newline at end of file
97 * timekeeping del DS1308
No newline at end of file
98 */
No newline at end of file
99 typedef struct ds1308_clock_halt_ {
No newline at end of file
100 uint8_t dummy_dont_use:7;
No newline at end of file
101 uint8_t ch:1;
No newline at end of file
102 ds1308_clock_halt_(): dummy_dont_use(0), ch(0){}
No newline at end of file
103 }ds1308_clock_halt;
No newline at end of file
104
No newline at end of file
105 /*!
No newline at end of file
106 * \struct rtc_config_struct
No newline at end of file
107 * \brief Almacena toda la informmacion necesaria para configurar el IC
No newline at end of file
108 * DS1308.
No newline at end of file
109 */
No newline at end of file
110 typedef struct rtc_config_struct_{
No newline at end of file
111 ds1308_clock_halt clk_halt;
No newline at end of file
112 ds1308_ctl_byte ctl_byte;
No newline at end of file
113 }rtc_config_struct;
No newline at end of file
114
No newline at end of file
115 ///////////////////////////////////////////////////////////////////////////////
No newline at end of file
116 //
No newline at end of file
117 ///////////////////////////////////////////////////////////////////////////////
No newline at end of file
118
No newline at end of file
119 /*!
No newline at end of file
120 *
No newline at end of file
121 */
No newline at end of file
122 typedef struct te_status_struct_{
No newline at end of file
123
No newline at end of file
124 }te_status_struct;
No newline at end of file
125
No newline at end of file
126 /*!
No newline at end of file
127 *
No newline at end of file
128 */
No newline at end of file
129 typedef struct te_time_pkg_{
No newline at end of file
130 gnss_precise_time time; /*!< Tiempo de adquisicion de un PPS de GNSS
No newline at end of file
131 especifico */
No newline at end of file
132 uint16_t pps_serial; /*!< Numero serial de un PPS desde que la linea de
No newline at end of file
133 enganche GNSS (LOCK) fue activada (max 1800) */
No newline at end of file
134 bool is_gnss_time; /*!< true si el tiempo dado proviene del un
No newline at end of file
135 receptor GNSS */
No newline at end of file
136 gnss_precise_time * pnext; /*!< Apunta al siguiente paquete de tiempo */
No newline at end of file
137 gnss_precise_time * previous; /*!< Apunta al paquete de tempo anterior. */
No newline at end of file
138 te_time_pkg_(): pps_serial(0), is_gnss_time(false), pnext(0), previous(0){}
No newline at end of file
139 }te_time_pkg;
No newline at end of file
140
No newline at end of file
141 /*!
No newline at end of file
142 *
No newline at end of file
143 */
No newline at end of file
144 typedef struct te_command_struct_{
No newline at end of file
145
No newline at end of file
146 }te_command_struct;
No newline at end of file
147
No newline at end of file
148
No newline at end of file
149 #endif /* UTILS_TE_STRUCTS_H_ */ No newline at end of file
@@ -15,18 +15,6
15 #include <map> No newline at end of file
15 #include <map>
16 #include <string> No newline at end of file
16 #include <string>
17
17
No newline at end of file
18 #define GPNON 0x0000 /**< Unknown packet type. */
No newline at end of file
19 #define GPGGA 0x0001 /**< GGA - Essential fix data which provide 3D location and accuracy data. */
No newline at end of file
20 #define GPGSA 0x0002 /**< GSA - GPS receiver operating mode, SVs used for navigation, and DOP values. */
No newline at end of file
21 #define GPGSV 0x0004 /**< GSV - Number of SVs in view, PRN numbers, elevation, azimuth & SNR values. */
No newline at end of file
22 #define GPRMC 0x0008 /**< RMC - Recommended Minimum Specific GPS/TRANSIT Data. */
No newline at end of file
23 #define GPVTG 0x0010 /**< VTG - Actual track made good and speed over ground. */
No newline at end of file
24 #define GPALM 0x0020
No newline at end of file
25 #define GPGLL 0x0040
No newline at end of file
26 #define PGRMI 0x0080
No newline at end of file
27 #define PGRMC 0x0100
No newline at end of file
28 #define PGRMC1 0x0200
No newline at end of file
29 #define PGRMO 0x0400 No newline at end of file
30 No newline at end of file
18
31 typedef int (*pnmea_parse)(nmea_code*, gnss_info*); No newline at end of file
19 typedef int (*pnmea_parse)(nmea_code*, gnss_info*);
32 typedef std::map<std::string, pnmea_parse> code; No newline at end of file
20 typedef std::map<std::string, pnmea_parse> code;
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now