FOSSASAT-1B
pin_interface.h
Go to the documentation of this file.
1 #ifndef PIN_INTERFACE_H_INCLUDED
2 #define PIN_INTERFACE_H_INCLUDED
3 
4 #include "FossaSat1B.h"
21 void Pin_Interface_Set_Temp_Resolution(uint8_t sensorAddr, uint8_t res);
31 float Pin_Interface_Read_Temperature(uint8_t sensorAddr);
41 
50 float Pin_Interface_Read_Voltage(uint8_t pin);
51 
59 void Pin_Interface_Watchdog_Heartbeat(bool manageBattery = false);
67 
68 #endif
void Pin_Interface_Set_Temp_Resolution(uint8_t sensorAddr, uint8_t res)
This function sets the resolution of the TMP100.
void Pin_Interface_Watchdog_Heartbeat(bool manageBattery=false)
This function toggles the signal to the watchdog and writes it to the pin.
float Pin_Interface_Read_Temperature(uint8_t sensorAddr)
This function reads the TMP100's value from its wire address.
float Pin_Interface_Read_Voltage(uint8_t pin)
Read the voltage of a given pin.
void Pin_Interface_Watchdog_Restart()
Restarts the watchdog.
int8_t Pin_Interface_Read_Temperature_Internal()
This function reads the MCU's internal temperature.