I2C mode, master or slave.
record current command index, for master mode.
record current command status, for master mode.
record current read index, for master mode.
a buffer to store i2c fifo data.
Used to allocate the interrupt.
semaphore to lock command process.
rx ringbuffer handler of slave mode.
tx ringbuffer handler of slave mode.