![]() |
FOSSASAT-1B
|
This module controls access to the components connect to via pins. More...
#include "FossaSat1B.h"
Go to the source code of this file.
Functions | |
void | Pin_Interface_Set_Temp_Resolution (uint8_t sensorAddr, uint8_t res) |
This function sets the resolution of the TMP100. More... | |
float | Pin_Interface_Read_Temperature (uint8_t sensorAddr) |
This function reads the TMP100's value from its wire address. More... | |
int8_t | Pin_Interface_Read_Temperature_Internal () |
This function reads the MCU's internal temperature. More... | |
float | Pin_Interface_Read_Voltage (uint8_t pin) |
Read the voltage of a given pin. More... | |
void | Pin_Interface_Watchdog_Heartbeat (bool manageBattery=false) |
This function toggles the signal to the watchdog and writes it to the pin. More... | |
void | Pin_Interface_Watchdog_Restart () |
Restarts the watchdog. More... | |
This module controls access to the components connect to via pins.
Definition in file pin_interface.h.
float Pin_Interface_Read_Temperature | ( | uint8_t | sensorAddr | ) |
This function reads the TMP100's value from its wire address.
(ID PIN_INTERF_H_T1) (SEV 1) Make sure that all resolutions do not break the satellite.
(ID PIN_INTERF_H_T2) (SEV 1) Make sure this returns the correct value.
sensorAddr | Wire address of the TMP100 |
Definition at line 16 of file pin_interface.cpp.
int8_t Pin_Interface_Read_Temperature_Internal | ( | ) |
This function reads the MCU's internal temperature.
(ID PIN_INTERF_H_T3) (SEV 1) Make sure this does not break the satellite.
(ID PIN_INTERF_H_T4) (SEV 2) Make sure this returns the correct value.
Definition at line 28 of file pin_interface.cpp.
float Pin_Interface_Read_Voltage | ( | uint8_t | pin | ) |
Read the voltage of a given pin.
pin | The pin to read from. |
Definition at line 43 of file pin_interface.cpp.
void Pin_Interface_Set_Temp_Resolution | ( | uint8_t | sensorAddr, |
uint8_t | res | ||
) |
This function sets the resolution of the TMP100.
sensorAddr | Wire address of the TMP100. |
res | The value that relates to the resolution property of the TMP100. See TMP100 Temperature Sensor Configuration |
Definition at line 3 of file pin_interface.cpp.
void Pin_Interface_Watchdog_Heartbeat | ( | bool | manageBattery = false | ) |
This function toggles the signal to the watchdog and writes it to the pin.
manageBattery | Whether to perform battery and power management. |
Definition at line 48 of file pin_interface.cpp.
void Pin_Interface_Watchdog_Restart | ( | ) |
Restarts the watchdog.
Definition at line 58 of file pin_interface.cpp.