Robin Mueller
3387a71399
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
10 lines
319 B
C++
10 lines
319 B
C++
#include "max1227.h"
|
|
|
|
uint8_t max1227::buildConvByte(ScanModes scanMode, uint8_t channel, bool readTemp) {
|
|
return (1 << 7) | (channel << 3) | (scanMode << 1) | readTemp;
|
|
}
|
|
|
|
uint8_t max1227::buildSetupByte(ClkSel clkSel, RefSel refSel, DiffSel diffSel) {
|
|
return (1 << 6) | (clkSel << 4) | (refSel << 2) | diffSel;
|
|
}
|