MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / get_scl

Function get_scl

components/drivers/i2c/dev_soft_i2c.c:185–188  ·  view source on GitHub ↗

* This function gets the scl pin state. * @param i2c config class. */

Source from the content-addressed store, hash-verified

183* @param i2c config class.
184*/
185static rt_int32_t get_scl(void *cfg)
186{
187 return rt_pin_read(((const struct soft_i2c_config*)cfg)->scl_pin);
188}
189
190
191static const struct rt_i2c_bit_ops soft_i2c_ops =

Callers

nothing calls this directly

Calls 1

rt_pin_readFunction · 0.50

Tested by

no test coverage detected