Vehicle Control Unit
0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
Core
Inc
Sensors
DigitalSensor.h
Go to the documentation of this file.
1
#ifndef RENNSSELAERMOTORSPORT_DIGITALSENSOR_H
2
#define RENNSSELAERMOTORSPORT_DIGITALSENSOR_H
3
4
#include "
Sensor.h
"
5
6
typedef
struct
{
7
Sensor
sensor
;
8
int
port
;
9
}
DigitalSensor
;
10
19
void
initDigitalSensor
(
DigitalSensor
* digitalsensor,
const
char
* name,
int
hz,
20
int
port);
21
22
#endif
// RENNSSELAERMOTORSPORT_DIGITALSENSOR_H
initDigitalSensor
void initDigitalSensor(DigitalSensor *digitalsensor, const char *name, int hz, int port)
Initializes a digital sensor with the given parameters.
Definition:
DigitalSensor.c:3
Sensor.h
DigitalSensor
Definition:
DigitalSensor.h:6
DigitalSensor::port
int port
Definition:
DigitalSensor.h:8
DigitalSensor::sensor
Sensor sensor
Definition:
DigitalSensor.h:7
Sensor
Definition:
Sensor.h:14
Generated by
1.9.5