18.8.2.4.1 Workflow
- Read request callback:
- Length of buffer and buffer to be sent to master is initialized.
packet.data_length = DATA_LENGTH;packet.data = write_buffer; - Write packet to master.
i2c_slave_write_packet_job(module, &packet);
- Write request callback:
- Length of buffer and buffer to be read from master is initialized.
packet.data_length = DATA_LENGTH;packet.data = read_buffer; - Read packet from master.
if(i2c_slave_read_packet_job(module, &packet) != STATUS_OK) {}
