|
Vehicle Control Unit 0.01
This is the c library for controlling the car.
|
#include "../../Inc/Sensors/DigitalSensor.h"
Go to the source code of this file.
Functions | |
| void | initDigitalSensor (DigitalSensor *digitalSensor, const char *name, int hz, int port, void *child) |
| Initializes a digital sensor with the given parameters. More... | |
| int | getDigitalSensorReading (DigitalSensor *digitalSensor) |
| Gets the reading from the digital sensor. More... | |
| int getDigitalSensorReading | ( | DigitalSensor * | digitalsensor | ) |
Gets the reading from the digital sensor.
| digitalsensor | Pointer to the Sensor structure to get the reading from. |
Definition at line 10 of file DigitalSensor.c.

| void initDigitalSensor | ( | DigitalSensor * | digitalsensor, |
| const char * | name, | ||
| int | hz, | ||
| int | port, | ||
| void * | child | ||
| ) |
Initializes a digital sensor with the given parameters.
| digitalsensor | Pointer to the Sensor structure to initialize. |
| name | Pointer to a string containing the name of the sensor. |
| hz | The frequency in Hertz at which the sensor operates. |
| port | Location of the digital sensor on board. |
| child | Pointer to the child struct. |
Definition at line 3 of file DigitalSensor.c.

