fsfw/src/fsfw_hal/linux/i2c/I2cCookie.cpp

13 lines
463 B
C++
Raw Normal View History

2021-08-02 20:58:56 +02:00
#include "fsfw_hal/linux/i2c/I2cCookie.h"
2021-07-13 19:19:25 +02:00
2022-02-02 10:29:30 +01:00
I2cCookie::I2cCookie(address_t i2cAddress_, size_t maxReplyLen_, std::string deviceFile_)
2023-02-18 13:07:38 +01:00
: i2cAddress(i2cAddress_), maxReplyLen(maxReplyLen_), deviceFile(std::move(deviceFile_)) {}
2021-07-13 19:19:25 +02:00
2022-02-02 10:29:30 +01:00
address_t I2cCookie::getAddress() const { return i2cAddress; }
2021-07-13 19:19:25 +02:00
2022-02-02 10:29:30 +01:00
size_t I2cCookie::getMaxReplyLen() const { return maxReplyLen; }
2021-07-13 19:19:25 +02:00
2023-02-18 13:07:38 +01:00
const std::string& I2cCookie::getDeviceFile() const { return deviceFile; }
2021-07-13 19:19:25 +02:00
I2cCookie::~I2cCookie() {}