Vehicle Control Unit
0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
Core
Inc
Sensors
DigitalSensors
Button.h
Go to the documentation of this file.
1
#ifndef __RENNSSELAERMOTORSPORT_BUTTON_H
2
#define __RENNSSELAERMOTORSPORT_BUTTON_H
3
4
#include "../DigitalSensor.h"
5
#include "../../Utils/Telemetry.h"
6
7
typedef
struct
{
8
DigitalSensor
base
;
9
TelemetrySignal
*
telem_state
;
10
}
Button
;
11
12
void
initButton
(
Button
* button,
const
char
* name,
int
hz,
int
port);
13
int
getButtonReading
(
Button
* button);
14
15
#endif
// __RENNSSELAERMOTORSPORT_BUTTON_H
initButton
void initButton(Button *button, const char *name, int hz, int port)
Definition:
Button.c:4
getButtonReading
int getButtonReading(Button *button)
Definition:
Button.c:9
Button
Definition:
Button.h:7
Button::base
DigitalSensor base
Definition:
Button.h:8
Button::telem_state
TelemetrySignal * telem_state
Definition:
Button.h:9
DigitalSensor
Definition:
DigitalSensor.h:9
TelemetrySignal
Definition:
Telemetry.h:17
Generated by
1.9.5