Module trellis::mock [] [src]



A I2CMasterDevice implementation that exists solely for testing. The MockDevice delegates writes and reades to the supplied callback functions/data that are used in tests for checking the correct device communication.

Type Definitions


Callback for writes to device. The first argument is a counter that starts with 0 and is increment each time the callback function is called. The counter can be used to differentiate calls to the function in tests.