I2C callbacks documentation issue
Posted: Fri Oct 18, 2024 2:06 pm
This is based on what I see, today, in ESP32 -> master (latest) -> API Reference -> Peripherals API -> Inter-Integrated Circuit (I2C) -> Functional Overview -> Register Event Callbacks -> I2C master callbacks.
Says: i2c_master_event_callbacks_t::on_recv_done sets a callback function for master "transaction-done" event. The function prototype is declared in i2c_master_callback_t.
Problem: 'on_recv_done' does not exist in i2c_master_event_callbacks_t, only 'on_trans_done' exists.
Note: 'on_recv_done' is part of i2c_slave_event_callbacks_t. The documentation for "-> I2C slave callbacks" appears to be correct.
Says: i2c_master_event_callbacks_t::on_recv_done sets a callback function for master "transaction-done" event. The function prototype is declared in i2c_master_callback_t.
Problem: 'on_recv_done' does not exist in i2c_master_event_callbacks_t, only 'on_trans_done' exists.
Note: 'on_recv_done' is part of i2c_slave_event_callbacks_t. The documentation for "-> I2C slave callbacks" appears to be correct.