22 #ifndef I2C_API_TESTS_H 23 #define I2C_API_TESTS_H 79 void fpga_i2c_test_blocking_write_read(PinName sda, PinName scl, uint16_t addr, uint32_t frequency, TransferType ttype, uint32_t data_size, uint32_t transfer_count,
bool stop_each);
87 void fpga_i2c_test_async_write_read(PinName sda, PinName scl, uint16_t addr, uint32_t frequency, TransferType ttype, uint32_t data_size, uint32_t transfer_count,
bool stop_each);
void fpga_i2c_test_async_abort(PinName sda, PinName scl, uint32_t frequency)
Test that call aborts ongoing asynchronous transfer.
void fpga_i2c_test_get_capabilities()
Test that i2c_get_capabilities() fills given i2c_capabilities_t instance with capabilities.
void fpga_i2c_test_async_write_read(PinName sda, PinName scl, uint16_t addr, uint32_t frequency, TransferType ttype, uint32_t data_size, uint32_t transfer_count, bool stop_each)
Test asynchronous transmission.
void fpga_i2c_test_init_free(PinName sda, PinName scl)
Test that i2c_init() successfully initializes and i2c_free() successfully frees i2c interface...
void fpga_i2c_test_blocking_transmission_timeout(PinName sda, PinName scl, uint32_t frequency)
Test blocking transmission timeout.
void fpga_i2c_test_blocking_write_read(PinName sda, PinName scl, uint16_t addr, uint32_t frequency, TransferType ttype, uint32_t data_size, uint32_t transfer_count, bool stop_each)
Test blocking transmission.
void fpga_i2c_test_transmission_no_slave(PinName sda, PinName scl, uint32_t frequency)
Test blocking transmission when no slave.
void fpga_i2c_test_frequency(PinName sda, PinName scl)
Test that i2c_frequency() sets the frequency used during the I2C transfer.