NASA Astrobee Robot Software  Astrobee Version:
Flight software for the Astrobee robots operating inside the International Space Station.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TCN75A.h
Go to the documentation of this file.
1 /* Copyright (c) 2017, United States Government, as represented by the
2  * Administrator of the National Aeronautics and Space Administration.
3  *
4  * All rights reserved.
5  *
6  * The Astrobee platform is licensed under the Apache License, Version 2.0
7  * (the "License"); you may not use this file except in compliance with the
8  * License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15  * License for the specific language governing permissions and limitations
16  * under the License.
17  */
18 
19 #ifndef HARDWARE_TEMP_MONITOR_SRC_TCN75A_H_
20 #define HARDWARE_TEMP_MONITOR_SRC_TCN75A_H_
21 
23 
24 namespace temp_monitor {
25 
26 class TCN75A : public TempMonitor {
27  public:
28  explicit TCN75A(i2c::Device const& device);
29 
30  bool GetTemperature(double *temp);
31 
32  protected:
33  bool Init(void);
34 
35  private:
36  bool init_;
37 
38  enum Register {
39  TEMPERATURE = 0x00,
40  CONFIGURATION = 0x01,
41  HYSTERESIS = 0x02,
42  LIMIT = 0x03
43  };
44 };
45 
46 } // namespace temp_monitor
47 
48 #endif // HARDWARE_TEMP_MONITOR_SRC_TCN75A_H_
temp_monitor::TCN75A::Init
bool Init(void)
Definition: TCN75A.cc:25
temp_monitor::TCN75A::GetTemperature
bool GetTemperature(double *temp)
Definition: TCN75A.cc:37
temp_monitor
Definition: temp_monitor.h:29
temp_monitor::TempMonitor
Definition: temp_monitor.h:33
temp_monitor::TCN75A::TCN75A
TCN75A(i2c::Device const &device)
Definition: TCN75A.cc:23
temp_monitor::TCN75A
Definition: TCN75A.h:26
i2c::Device
Definition: i2c_new.h:82
temp_monitor.h