Implementation of the PeripheralController class. More...
#include "PeripheralController.hpp"
Go to the source code of this file.
Data Structures | |
union | i2c_smbus_data |
Represents data formats for I2C SMBus communication. More... | |
Macros | |
#define | I2C_SMBUS_WRITE 0 |
#define | I2C_SMBUS_READ 1 |
#define | I2C_SMBUS_BYTE_DATA 2 |
Functions | |
template<typename T> | |
T | clamp (T value, T min_val, T max_val) |
Clamps a value to a given range. | |
Implementation of the PeripheralController class.
This file contains the implementation of the PeripheralController class, which is responsible for controlling the peripherals of the car.
Definition in file PeripheralController.cpp.
#define I2C_SMBUS_BYTE_DATA 2 |
Definition at line 35 of file PeripheralController.cpp.
#define I2C_SMBUS_READ 1 |
Definition at line 34 of file PeripheralController.cpp.
#define I2C_SMBUS_WRITE 0 |
Definition at line 33 of file PeripheralController.cpp.
T clamp | ( | T | value, |
T | min_val, | ||
T | max_val ) |
Clamps a value to a given range.
value | Value to be clamped. |
min_val | Minimum value of the range. |
max_val | Maximum value of the range. |
Definition at line 45 of file PeripheralController.cpp.