done
This commit is contained in:
@ -1,5 +1,26 @@
|
||||
#include "imtqHelpers.h"
|
||||
|
||||
uint16_t imtq::integrationTimeFromSelectValue(uint8_t value) {
|
||||
switch (value) {
|
||||
case (0):
|
||||
return 2;
|
||||
case (1):
|
||||
return 3;
|
||||
case (2):
|
||||
return 6;
|
||||
case (3):
|
||||
return 10;
|
||||
case (4):
|
||||
return 20;
|
||||
case (5):
|
||||
return 40;
|
||||
case (6):
|
||||
return 80;
|
||||
default:
|
||||
return 10;
|
||||
}
|
||||
}
|
||||
|
||||
size_t imtq::getReplySize(CC::CC cc, size_t* optSecondSize) {
|
||||
switch (cc) {
|
||||
// Software reset is a bit special and can also cause a I2C NAK because
|
||||
|
Reference in New Issue
Block a user