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

Function set_sda

components/drivers/i2c/dev_soft_i2c.c:157–160  ·  view source on GitHub ↗

* This function sets the sda pin. * @param i2c config class. * @param The sda pin state. */

Source from the content-addressed store, hash-verified

155* @param The sda pin state.
156*/
157static void set_sda(void *cfg, rt_int32_t value)
158{
159 rt_pin_write(((const struct soft_i2c_config*)cfg)->sda_pin, value);
160}
161
162/**
163* This function sets the scl pin.

Callers

nothing calls this directly

Calls 1

rt_pin_writeFunction · 0.50

Tested by

no test coverage detected