Handle_I2C_Master() is only used within I2C_TwoBoards_MasterTx_SlaveRx_DMA.
 
Symbols
loading...
Files
loading...

Handle_I2C_Master() function

This Function handle Master events to perform a transmission process

Syntax

void Handle_I2C_Master(void);
Implemented in main.c:666

Return value

None

Notes

This function is composed in different steps : -1- Enable DMA transfer. -2- Prepare acknowledge for Master data reception. -3- Initiate a Start condition to the Slave device. -4- Loop until Start Bit transmitted (SB flag raised). -5- Send Slave address with a 7-Bit SLAVE_OWN_ADDRESS for a write request. -6- Loop until Address Acknowledgement received (ADDR flag raised). -7- Clear ADDR flag and loop until end of transfer completed (DMA TC raised). -8- Loop until end of master transfer completed (TXE flag raised) then generate STOP condition -8.1- Data consistency are checking into Slave process.

References

LocationReferrerText
main.c:666
void Handle_I2C_Master(void)
main.c:102
void Handle_I2C_Master(void);
main.c:152main()
Handle_I2C_Master();

Call Tree

Data read by Handle_I2C_Master()
all items filtered out
Handle_I2C_Master()