|
satnogs-rotator-firmware
|
Class that functions for interacting with a TC74 Temperature sensor. More...
#include <tc74.h>
Public Member Functions | |
| tc74 (uint8_t id) | |
| void | init () |
| Initialize the I2C bus. | |
| int8_t | get_temp () |
| Reads the int8_t in temperature measurement register. | |
| int8_t | get_status () |
| Reads the int8_t in status register. | |
| int8_t | wake_up () |
| Wake up request to the sensor on the specified address. | |
| int8_t | sleep () |
| Sleep device request to the sensor on the specified address. | |
Private Attributes | |
| int | _id |
Class that functions for interacting with a TC74 Temperature sensor.
| id | Set the ID of temperature sensor, I2C address TC74_A0 0b10010000 TC74_A1 0b10010010 TC74_A2 0b10010100 TC74_A3 0b10010110 TC74_A4 0b10011000 TC74_A5 0b10011010 TC74_A6 0b10011100 TC74_A7 0b10011110 |
|
inline |
Reads the int8_t in status register.
Definition at line 76 of file tc74.h.
References _id, TC74_AWAKE_COMMAND, and TC74_CONFIGURATION_REGISTER.
|
inline |
Reads the int8_t in temperature measurement register.
Definition at line 60 of file tc74.h.
References _id, and TC74_TEMPERATURE_REGISTER.
Referenced by loop().
|
inline |
|
inline |
Sleep device request to the sensor on the specified address.
Definition at line 111 of file tc74.h.
References _id, get_status(), TC74_CONFIGURATION_REGISTER, and TC74_STANDBY_COMMAND.
Referenced by loop().

|
inline |
Wake up request to the sensor on the specified address.
Definition at line 95 of file tc74.h.
References _id, get_status(), TC74_AWAKE_COMMAND, and TC74_CONFIGURATION_REGISTER.
Referenced by loop().

|
private |
Definition at line 122 of file tc74.h.
Referenced by get_status(), get_temp(), sleep(), tc74(), and wake_up().