Vehicle Control Unit 0.01
This is the c library for controlling the car.
Loading...
Searching...
No Matches
Functions
AccelerometerWrapper.c File Reference
#include "../../../Inc/Sensors/AnalogSensors/AccelerometerWrapper.h"
Include dependency graph for AccelerometerWrapper.c:

Go to the source code of this file.

Functions

void initAccelerometerWrapper (AccelerometerWrapper *wrapper, Accelerometer *ax, Accelerometer *ay, Accelerometer *az)
 Initializes the AccelerometerWrapper with the given accelerometers. More...
 

Function Documentation

◆ initAccelerometerWrapper()

void initAccelerometerWrapper ( AccelerometerWrapper wrapper,
Accelerometer ax,
Accelerometer ay,
Accelerometer az 
)

Initializes the AccelerometerWrapper with the given accelerometers.

Parameters
wrapperPointer to the AccelerometerWrapper structure to initialize.
axPointer to the x-axis Accelerometer.
ayPointer to the y-axis Accelerometer.
azPointer to the z-axis Accelerometer.

Definition at line 3 of file AccelerometerWrapper.c.

6 {
7 if (wrapper != NULL && ax != NULL && ay != NULL && az != NULL) {
8 wrapper->x = *ax;
9 wrapper->y = *ay;
10 wrapper->z = *az;
11 }
12}