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
6
typedef
struct
{
7
DigitalSensor
base
;
8
}
Button
;
9
10
void
initButton
(
Button
* button,
const
char
* name,
int
hz,
int
port);
11
int
getButtonReading
(
Button
* button);
12
13
#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:8
Button
Definition:
Button.h:6
Button::base
DigitalSensor base
Definition:
Button.h:7
DigitalSensor
Definition:
DigitalSensor.h:9
Generated by
1.9.5