You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					31 lines
				
				886 B
			
		
		
			
		
	
	
					31 lines
				
				886 B
			| 
								 
											5 years ago
										 
									 | 
							
								#pragma once
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#include <cstdlib>
							 | 
						||
| 
								 | 
							
								#include <fstream>
							 | 
						||
| 
								 
											3 years ago
										 
									 | 
							
								#include "cereal/messaging/messaging.h"
							 | 
						||
| 
								 
											5 years ago
										 
									 | 
							
								
							 | 
						||
| 
								 
											5 years ago
										 
									 | 
							
								// no-op base hw class
							 | 
						||
| 
								 | 
							
								class HardwareNone {
							 | 
						||
| 
								 | 
							
								public:
							 | 
						||
| 
								 
											4 years ago
										 
									 | 
							
								  static constexpr float MAX_VOLUME = 0.7;
							 | 
						||
| 
								 | 
							
								  static constexpr float MIN_VOLUME = 0.2;
							 | 
						||
| 
								 
											5 years ago
										 
									 | 
							
								
							 | 
						||
| 
								 
											5 years ago
										 
									 | 
							
								  static std::string get_os_version() { return ""; }
							 | 
						||
| 
								 
											3 years ago
										 
									 | 
							
								  static std::string get_name() { return ""; };
							 | 
						||
| 
								 | 
							
								  static cereal::InitData::DeviceType get_device_type() { return cereal::InitData::DeviceType::UNKNOWN; };
							 | 
						||
| 
								 | 
							
								  static int get_voltage() { return 0; };
							 | 
						||
| 
								 | 
							
								  static int get_current() { return 0; };
							 | 
						||
| 
								 
											5 years ago
										 
									 | 
							
								
							 | 
						||
| 
								 
											5 years ago
										 
									 | 
							
								  static void reboot() {}
							 | 
						||
| 
								 | 
							
								  static void poweroff() {}
							 | 
						||
| 
								 | 
							
								  static void set_brightness(int percent) {}
							 | 
						||
| 
								 | 
							
								  static void set_display_power(bool on) {}
							 | 
						||
| 
								 
											5 years ago
										 
									 | 
							
								
							 | 
						||
| 
								 
											5 years ago
										 
									 | 
							
								  static bool get_ssh_enabled() { return false; }
							 | 
						||
| 
								 | 
							
								  static void set_ssh_enabled(bool enabled) {}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  static bool PC() { return false; }
							 | 
						||
| 
								 | 
							
								  static bool TICI() { return false; }
							 | 
						||
| 
								 
											3 years ago
										 
									 | 
							
								  static bool AGNOS() { return false; }
							 | 
						||
| 
								 
											5 years ago
										 
									 | 
							
								};
							 |