Home
last modified time | relevance | path

Searched refs:snd_word (Results 1 – 1 of 1) sorted by relevance

/Zephyr-Core-3.5.0/tests/drivers/smbus/smbus_emul/src/
Dsmbus.c140 uint16_t snd_word, rcv_word; in ZTEST() local
146 snd_word = (uint16_t)sys_rand32_get(); in ZTEST()
148 ret = smbus_word_data_write(dev, PERIPH_ADDR, 0, snd_word); in ZTEST()
154 zassert_equal(snd_word, rcv_word, "Data mismatch"); in ZTEST()
174 uint16_t snd_word, rcv_word; in ZTEST() local
179 snd_word = (uint16_t)sys_rand32_get(); in ZTEST()
180 zassert_not_equal(snd_word, 0, "Random number generator misconfgured"); in ZTEST()
182 ret = smbus_pcall(dev, PERIPH_ADDR, 0x0, snd_word, &rcv_word); in ZTEST()
186 zassert_equal(snd_word, __bswap_16(rcv_word), "Data mismatch"); in ZTEST()