Vehicle Control Unit 0.01
This is the c library for controlling the car.
|
Go to the source code of this file.
Functions | |
void | initDigitalOutput (DigitalOutput *digitalOutput, const char *name, int hz, int port) |
Initializes a digital output with the given parameters. More... | |
int | writeDigitalOutputData (DigitalOutput *output, int data) |
Writes data to the buffer of the digital output. More... | |
void initDigitalOutput | ( | DigitalOutput * | digitaloutput, |
const char * | name, | ||
int | hz, | ||
int | port | ||
) |
Initializes a digital output with the given parameters.
digitaloutput | Pointer to the Output structure to initialize. |
name | Pointer to a string containing the name of the output. |
hz | The frequency in Hertz at which the output operates. |
port | Location of the digital output on board. |
Definition at line 4 of file DigitalOutput.c.
int writeDigitalOutputData | ( | DigitalOutput * | output, |
int | data | ||
) |
Writes data to the buffer of the digital output.
output | Pointer to the DigitalOutput structure. |
data | Data to write to the output. |
Definition at line 18 of file DigitalOutput.c.