21 #include "MbedTester.h" void set_device_address(uint16_t addr)
Set the I2C slave device address.
uint8_t get_prev_to_slave_1()
Get the value written to slave in the last transaction.
uint32_t get_receive_checksum()
Read a checksum of data send to the tester.
uint8_t num_starts()
Get the number of start conditions since last I2C reset.
uint16_t num_acks()
Get the number of ACKs since last I2C reset.
uint16_t num_nacks()
Get the number of NACKs since last I2C reset.
uint8_t get_prev_to_slave_3()
Get the value written to slave in the third to last transaction.
uint16_t num_reads()
Read the number of reads which have occurred.
uint16_t get_device_address()
Get the I2C slave device address.
uint8_t num_dev_addr_matches()
Get the number of times the device address has been sent correctly.
MbedTester(const PinList *form_factor, const PinList *exclude_pins)
Construct a new MbedTester object.
uint8_t get_prev_to_slave_2()
Get the value written to slave in the second to last transaction.
uint8_t get_prev_to_slave_4()
Get the value written to slave in the fourth to last transaction.
uint8_t state_num()
Get the I2C slave state number.
uint8_t num_stops()
Get the number of stop conditions since last I2C reset.
uint16_t num_writes()
Read the number of writes which have occurred.
uint16_t transfer_count()
Read the number of transfers which have occurred.
void set_sda(uint8_t value)
Set SDA (test mode)
void set_next_from_slave(uint8_t value)
Set the value to be read from slave in next read transaction.
The base class for controlling the FPGA CI Test Shield.
uint8_t num_dev_addr_mismatches()
Get the number of times the device address has been sent incorrectly.
uint32_t get_send_checksum()
Read a checksum the tester calculated for data it has already sent.
uint8_t get_next_from_slave()
Get the value to be read from slave in next read transaction.