Revision b4885314 devices/PowerManagement/global.hpp
devices/PowerManagement/global.hpp | ||
---|---|---|
55 | 55 |
|
56 | 56 |
I2CConfig i2c1_config{ |
57 | 57 |
/* I2C mode */ OPMODE_I2C, |
58 |
/* frequency */ 200000,
|
|
59 |
/* I2C fast mode duty cycle */ FAST_DUTY_CYCLE_2
|
|
58 |
/* frequency */ 100000,
|
|
59 |
/* I2C fast mode duty cycle */ STD_DUTY_CYCLE
|
|
60 | 60 |
}; |
61 | 61 |
I2CConfig i2c2_config{ |
62 | 62 |
/* I2C mode */ OPMODE_I2C, |
63 |
/* frequency */ 200000,
|
|
64 |
/* I2C fast mode duty cycle */ FAST_DUTY_CYCLE_2
|
|
63 |
/* frequency */ 100000,
|
|
64 |
/* I2C fast mode duty cycle */ STD_DUTY_CYCLE
|
|
65 | 65 |
}; |
66 | 66 |
|
67 | 67 |
VCNL4020::VCNL4020Config vcnl4020_config{ |
68 | 68 |
/* command */ VCNL4020::ALS_EN | VCNL4020::PROX_EN | VCNL4020::SELFTIMED_EN, |
69 | 69 |
/* ambient parameter */ VCNL4020::AMBIENT_RATE_2 | VCNL4020::AMBIENT_AUTO_OFFSET | VCNL4020::AMBIENT_AVG_32, |
70 | 70 |
/* IR LED current [mA] */ 200u, |
71 |
/* proximity rate */ VCNL4020::PROX_RATE_7_8125
|
|
71 |
/* proximity rate */ VCNL4020::PROX_RATE_125 |
|
72 | 72 |
}; |
73 | 73 |
|
74 | 74 |
adcsample_t adc1_buffer[1]; |
Also available in: Unified diff