libtropic
C library for TROPIC01 chip
◆
lt_test_rev_mcounter()
void lt_test_rev_mcounter
(
lt_handle_t
*
h
)
Test steps:
Try to init each counter with random value twice, then try a few decrements.
Set each of the counters to random small value, then decrement to zero. Try decrement one more time after reaching 0 – should fail with UPDATE_ERROR.
Try to set all counters with known value and check that no counter was assigned wrong value.
Parameters
h
Device's handle
libtropic functional tests
Generated by
1.9.1