|
enum | DataAvail : uint8_t { NO_DATA,
BAD_DATA,
DATA_OK
} |
|
enum | LtrType : uint8_t { LTR_TYPE_UNKNOWN = 0,
LTR_TYPE_ALS_ONLY = 1,
LTR_TYPE_PS_ONLY = 2,
LTR_TYPE_ALS_AND_PS = 3
} |
|
enum | CommandRegisters : uint8_t {
CommandRegisters::ALS_CONTR = 0x80,
CommandRegisters::PS_CONTR = 0x81,
CommandRegisters::PS_LED = 0x82,
CommandRegisters::PS_N_PULSES = 0x83,
CommandRegisters::PS_MEAS_RATE = 0x84,
CommandRegisters::MEAS_RATE = 0x85,
CommandRegisters::PART_ID = 0x86,
CommandRegisters::MANUFAC_ID = 0x87,
CommandRegisters::ALS_DATA_CH1_0 = 0x88,
CommandRegisters::ALS_DATA_CH1_1 = 0x89,
CommandRegisters::ALS_DATA_CH0_0 = 0x8A,
CommandRegisters::ALS_DATA_CH0_1 = 0x8B,
CommandRegisters::ALS_PS_STATUS = 0x8C,
CommandRegisters::PS_DATA_0 = 0x8D,
CommandRegisters::PS_DATA_1 = 0x8E,
CommandRegisters::ALS_PS_INTERRUPT = 0x8F,
CommandRegisters::PS_THRES_UP_0 = 0x90,
CommandRegisters::PS_THRES_UP_1 = 0x91,
CommandRegisters::PS_THRES_LOW_0 = 0x92,
CommandRegisters::PS_THRES_LOW_1 = 0x93,
CommandRegisters::PS_OFFSET_1 = 0x94,
CommandRegisters::PS_OFFSET_0 = 0x95,
CommandRegisters::ALS_THRES_UP_0 = 0x97,
CommandRegisters::ALS_THRES_UP_1 = 0x98,
CommandRegisters::ALS_THRES_LOW_0 = 0x99,
CommandRegisters::ALS_THRES_LOW_1 = 0x9A,
CommandRegisters::INTERRUPT_PERSIST = 0x9E
} |
|
enum | AlsGain : uint8_t {
GAIN_1 = 0,
GAIN_2 = 1,
GAIN_4 = 2,
GAIN_8 = 3,
GAIN_48 = 6,
GAIN_96 = 7
} |
|
enum | IntegrationTime : uint8_t {
INTEGRATION_TIME_100MS = 0,
INTEGRATION_TIME_50MS = 1,
INTEGRATION_TIME_200MS = 2,
INTEGRATION_TIME_400MS = 3,
INTEGRATION_TIME_150MS = 4,
INTEGRATION_TIME_250MS = 5,
INTEGRATION_TIME_300MS = 6,
INTEGRATION_TIME_350MS = 7
} |
|
enum | MeasurementRepeatRate {
REPEAT_RATE_50MS = 0,
REPEAT_RATE_100MS = 1,
REPEAT_RATE_200MS = 2,
REPEAT_RATE_500MS = 3,
REPEAT_RATE_1000MS = 4,
REPEAT_RATE_2000MS = 5
} |
|
enum | PsGain : uint8_t { PS_GAIN_16 = 0,
PS_GAIN_32 = 2,
PS_GAIN_64 = 3
} |
|
enum | PsMode : uint8_t { PS_MODE_STANDBY_00 = 0,
PS_MODE_STANDBY_01 = 1,
PS_MODE_ACTIVE_10 = 2,
PS_MODE_ACTIVE_11 = 3
} |
|
enum | PsLedFreq : uint8_t {
PS_LED_FREQ_30KHZ = 0,
PS_LED_FREQ_40KHZ = 1,
PS_LED_FREQ_50KHZ = 2,
PS_LED_FREQ_60KHZ = 3,
PS_LED_FREQ_70KHZ = 4,
PS_LED_FREQ_80KHZ = 5,
PS_LED_FREQ_90KHZ = 6,
PS_LED_FREQ_100KHZ = 7
} |
|
enum | PsLedDuty : uint8_t { PS_LED_DUTY_25 = 0,
PS_LED_DUTY_50 = 1,
PS_LED_DUTY_75 = 2,
PS_LED_DUTY_100 = 3
} |
|
enum | PsLedCurrent : uint8_t {
PS_LED_CURRENT_5MA = 0,
PS_LED_CURRENT_10MA = 1,
PS_LED_CURRENT_20MA = 2,
PS_LED_CURRENT_50MA = 3,
PS_LED_CURRENT_100MA = 4,
PS_LED_CURRENT_100MA1 = 5,
PS_LED_CURRENT_100MA2 = 6,
PS_LED_CURRENT_100MA3 = 7
} |
|
enum | PsMeasurementRate : uint8_t {
PS_MEAS_RATE_50MS = 0,
PS_MEAS_RATE_70MS = 1,
PS_MEAS_RATE_100MS = 2,
PS_MEAS_RATE_200MS = 3,
PS_MEAS_RATE_500MS = 4,
PS_MEAS_RATE_1000MS = 5,
PS_MEAS_RATE_2000MS = 6,
PS_MEAS_RATE_2000MS1 = 7,
PS_MEAS_RATE_10MS = 8
} |
|