Hello everybody,
i have a question about the MCUXPRESSO SDK. Can i send a non constant buffer(uint8_t) as a I2C Slave? I do not found a function to send a uint8_t buffer from a slave to master after a master request.
Thanks for your answers.
Solved! Go to Solution.
No, you can't.
I2C is a bus with a strict master-slave design. Only the master device can initiate transfers.
> Can i send a non constant buffer ...
I assume with "non constant" you mean of onknown length.
The usual method here is to execute consecutive (multi-byte) reads until the slave device returns NACK.
I2C memory and MEMS sensor devices are good examples for such protocols.
No, you can't.
I2C is a bus with a strict master-slave design. Only the master device can initiate transfers.
> Can i send a non constant buffer ...
I assume with "non constant" you mean of onknown length.
The usual method here is to execute consecutive (multi-byte) reads until the slave device returns NACK.
I2C memory and MEMS sensor devices are good examples for such protocols.