eive-obsw/mission/devices/max1227.cpp
Robin Mueller 82f9d9db4b
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good
move generic max1227 code to separate source file
2022-02-15 16:44:12 +01:00

6 lines
174 B
C++

#include "max1227.h"
uint8_t max1227::buildConvByte(ScanModes scanMode, uint8_t channel, bool readTemp) {
return (1 << 7) | (channel << 3) | (scanMode << 1) | readTemp;
}