| 
									
										
										
										
											2017-10-07 22:18:33 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | #ifndef PLUGINS_CHANNELRX_DEMODLORA_LORADEMODSETTINGS_H_
 | 
					
						
							|  |  |  | #define PLUGINS_CHANNELRX_DEMODLORA_LORADEMODSETTINGS_H_
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <QByteArray>
 | 
					
						
							| 
									
										
										
										
											2017-11-19 18:18:17 +01:00
										 |  |  | #include <QString>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-10-07 22:18:33 +02:00
										 |  |  | #include <stdint.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class Serializable; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | struct LoRaDemodSettings | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |     int m_centerFrequency; | 
					
						
							| 
									
										
										
										
											2017-10-08 00:28:42 +02:00
										 |  |  |     int m_bandwidthIndex; | 
					
						
							| 
									
										
										
										
											2017-10-07 22:18:33 +02:00
										 |  |  |     int m_spread; | 
					
						
							|  |  |  |     uint32_t m_rgbColor; | 
					
						
							| 
									
										
										
										
											2017-11-19 18:18:17 +01:00
										 |  |  |     QString m_title; | 
					
						
							| 
									
										
										
										
											2017-10-07 22:18:33 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |     Serializable *m_channelMarker; | 
					
						
							|  |  |  |     Serializable *m_spectrumGUI; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-10-08 00:28:42 +02:00
										 |  |  |     static const int bandwidths[]; | 
					
						
							|  |  |  |     static const int nb_bandwidths; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-10-07 22:18:33 +02:00
										 |  |  |     LoRaDemodSettings(); | 
					
						
							|  |  |  |     void resetToDefaults(); | 
					
						
							|  |  |  |     void setChannelMarker(Serializable *channelMarker) { m_channelMarker = channelMarker; } | 
					
						
							|  |  |  |     void setSpectrumGUI(Serializable *spectrumGUI) { m_spectrumGUI = spectrumGUI; } | 
					
						
							|  |  |  |     QByteArray serialize() const; | 
					
						
							|  |  |  |     bool deserialize(const QByteArray& data); | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif /* PLUGINS_CHANNELRX_DEMODLORA_LORADEMODSETTINGS_H_ */
 |