17.8.2.4.1 Workflow
- Write complete callback:
- Send every other packet in reversed order.
if
(wr_packet.data[0] == 0x00) {
wr_packet.data = &wr_buffer_reversed[0];
}
else
{
wr_packet.data = &wr_buffer[0];
}
- Write new packet to slave.
wr_packet.address = SLAVE_ADDRESS;
wr_packet.data_length = DATA_LENGTH;
wr_packet.data = wr_buffer;