2022-02-14 19:45:21 +01:00
|
|
|
#include "max1227.h"
|
2022-02-15 16:44:12 +01:00
|
|
|
|
|
|
|
uint8_t max1227::buildConvByte(ScanModes scanMode, uint8_t channel, bool readTemp) {
|
|
|
|
return (1 << 7) | (channel << 3) | (scanMode << 1) | readTemp;
|
|
|
|
}
|
2022-02-16 15:16:36 +01:00
|
|
|
|
|
|
|
uint8_t max1227::buildSetupByte(ClkSel clkSel, RefSel refSel, DiffSel diffSel) {
|
|
|
|
return (1 << 6) | (clkSel << 4) | (refSel << 2) | diffSel;
|
|
|
|
}
|