1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
13 tI2c(const std::string &Port);
15 bool write(uint8_t ubAddr, const std::vector<uint8_t> &vData);
17 bool read(uint8_t ubAddr, uint8_t *pDest, uint32_t ulReadSize);
19 template <typename t_tContainer>
20 bool read(uint8_t ubAddr, t_tContainer &Cont) {
21 return read(ubAddr, Cont.data(), Cont.size());