-
Notifications
You must be signed in to change notification settings - Fork 0
/
smbus_windows.cpp
52 lines (43 loc) · 1.08 KB
/
smbus_windows.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#include "smbus.h"
#if (WIN32)
namespace X
{
namespace ElectonLink
{
bool SMBus::setSlaveAddress(int deviceAddress) {
return true;
}
SMBus::~SMBus() {
if (m_isOpen) {
closeBus();
}
}
bool SMBus::openBus() {
return true;
}
void SMBus::closeBus() {
}
uint8_t SMBus::readByte(int i2c_addr, bool force) {
return 0;
}
void SMBus::writeByte(int i2c_addr, uint8_t value, bool force) {
}
uint8_t SMBus::readByteData(int i2c_addr, uint8_t register, bool force) {
return 0;
}
void SMBus::writeByteData(int i2c_addr, uint8_t register, uint8_t value, bool force) {
}
uint16_t SMBus::readWordData(int i2c_addr, uint8_t register, bool force) {
return 0;
}
void SMBus::writeWordData(int i2c_addr, uint8_t register, uint16_t value, bool force) {
}
std::vector<uint8_t> SMBus::readBlockData(int i2c_addr, uint8_t register, bool force) {
return std::vector<uint8_t>();
}
void SMBus::writeBlockData(int i2c_addr, uint8_t register,
const std::vector<uint8_t>& data, bool force) {
}
} // namespace ElectonLink
} // namespace X
#endif