MCPcopy Create free account
hub / github.com/SmingHub/Sming / twi_write_stop

Function twi_write_stop

Sming/Core/si2c.cpp:67–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67bool twi_write_stop(void)
68{
69 SCL_LOW();
70 SDA_LOW();
71 twi_delay(twi_dcount);
72 SCL_HIGH();
73 for(unsigned i = 0; SCL_READ() == 0 && i++ < twi_clockStretchLimit;) {
74 // Clock stretching
75 }
76 twi_delay(twi_dcount);
77 SDA_HIGH();
78 twi_delay(twi_dcount);
79
80 return true;
81}
82
83bool twi_write_bit(bool bit)
84{

Callers 4

twi_writeToMethod · 0.85
twi_readFromMethod · 0.85
twi_writeToFunction · 0.85
twi_readFromFunction · 0.85

Calls 1

twi_delayFunction · 0.85

Tested by

no test coverage detected