Revision 542939ea unittests/periphery-lld/src/ut_alld_VCNL4020_v1.c
unittests/periphery-lld/src/ut_alld_VCNL4020_v1.c | ||
---|---|---|
79 | 79 |
status |= vcnl4020_lld_writereg(((ut_vcnl4020data_t*)(ut->data))->vcnld, VCNL4020_LLD_REGADDR_CMD, (VCNL4020_LLD_CMDREG_ALSEN | VCNL4020_LLD_CMDREG_PROXEN | VCNL4020_LLD_CMDREG_SELFTIMED), ((ut_vcnl4020data_t*)(ut->data))->timeout); |
80 | 80 |
status |= vcnl4020_lld_readreg(((ut_vcnl4020data_t*)(ut->data))->vcnld, VCNL4020_LLD_REGADDR_CMD, ®_8[0], ((ut_vcnl4020data_t*)(ut->data))->timeout); |
81 | 81 |
status |= (reg_8[0] & (VCNL4020_LLD_CMDREG_ALSEN | VCNL4020_LLD_CMDREG_PROXEN | VCNL4020_LLD_CMDREG_SELFTIMED)) ? 0x0000 : 0x0200; |
82 |
|
|
83 | 82 |
if (status == APAL_STATUS_OK || status == APAL_STATUS_WARNING) { |
84 | 83 |
aosUtPassed(stream, &result); |
85 | 84 |
} else { |
Also available in: Unified diff