Vehicle Control Unit
0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
Core
Inc
Outputs
Output.h
Go to the documentation of this file.
1
#ifndef RENSSELAERMOTORSPORT_OUTPUT_H
2
#define RENSSELAERMOTORSPORT_OUTPUT_H
3
4
#include <stdio.h>
5
#include <stdlib.h>
6
7
#include "../Utils/Updateable.h"
8
9
typedef
enum
{
10
o_ANALOG
,
11
o_DIGITAL
,
12
}
OutputType
;
13
14
typedef
struct
{
15
Updateable
updateable
;
16
OutputType
type
;
17
}
Output
;
18
27
void
initOutput
(
Output
* output,
const
char
* name,
int
hz,
OutputType
type);
28
29
#endif
// RENSSELAERMOTORSPORT_OUTPUT_H
OutputType
OutputType
Definition:
Output.h:9
o_ANALOG
@ o_ANALOG
Definition:
Output.h:10
o_DIGITAL
@ o_DIGITAL
Definition:
Output.h:11
initOutput
void initOutput(Output *output, const char *name, int hz, OutputType type)
Initializes an output with the given parameters.
Definition:
Output.c:4
Output
Definition:
Output.h:14
Output::type
OutputType type
Definition:
Output.h:16
Output::updateable
Updateable updateable
Definition:
Output.h:15
Updateable
Definition:
Updateable.h:23
Generated by
1.9.5