Vehicle Control Unit 0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
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
7typedef struct {
10} Button;
11
12void initButton(Button* button, const char* name, int hz, int port);
13int getButtonReading(Button* button);
14
15#endif // __RENNSSELAERMOTORSPORT_BUTTON_H
void initButton(Button *button, const char *name, int hz, int port)
Definition: Button.c:4
int getButtonReading(Button *button)
Definition: Button.c:9
Definition: Button.h:7
DigitalSensor base
Definition: Button.h:8
TelemetrySignal * telem_state
Definition: Button.h:9