|
Vehicle Control Unit 0.01
This is the c library for controlling the car.
|
#include "../AnalogSensor.h"

Go to the source code of this file.
Classes | |
| struct | Temperature |
Functions | |
| void | initTemperature (Temperature *temp, int hz, int channel) |
| Initializes the Temperature sensor with the given frequency and channel. More... | |
| void | updateTemperature (void *temp) |
| Updates the Temperature data. More... | |
| double | getTemperatureCelsius (Temperature *temp) |
| Gets the current temperature in Celsius. More... | |
| double | getTemperatureFahrenheit (Temperature *temp) |
| Gets the current temperature in Fahrenheit. More... | |
| double | transferFunction (Temperature *temp, float rawValue) |
| Converts raw temperature data to a meaningful temperature value. More... | |
| double getTemperatureCelsius | ( | Temperature * | temp | ) |
Gets the current temperature in Celsius.
| temp | Pointer to the Temperature structure to query. |
Definition at line 15 of file Temperature.c.
| double getTemperatureFahrenheit | ( | Temperature * | temp | ) |
Gets the current temperature in Fahrenheit.
| temp | Pointer to the Temperature structure to query. |
Definition at line 19 of file Temperature.c.

| void initTemperature | ( | Temperature * | temp, |
| int | hz, | ||
| int | channel | ||
| ) |
Initializes the Temperature sensor with the given frequency and channel.
| temp | Pointer to the Temperature structure to initialize. |
| hz | The frequency in Hertz at which the sensor operates. |
| channel | The analog channel the sensor is connected to. |
Definition at line 3 of file Temperature.c.


| double transferFunction | ( | Temperature * | temp, |
| float | rawValue | ||
| ) |
Converts raw temperature data to a meaningful temperature value.
| temp | Pointer to the Temperature structure. |
| rawVal | The raw data from the temperature sensor. |
Definition at line 23 of file Temperature.c.

| void updateTemperature | ( | void * | temp | ) |
Updates the Temperature data.
| temp | Pointer to the Temperature structure to update. |
Definition at line 9 of file Temperature.c.

