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

Function get_sda

components/drivers/i2c/dev_soft_i2c.c:176–179  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

174* @param i2c config class.
175*/
176static rt_int32_t get_sda(void *cfg)
177{
178 return rt_pin_read(((const struct soft_i2c_config*)cfg)->sda_pin);
179}
180
181/**
182* This function gets the scl pin state.

Callers

nothing calls this directly

Calls 1

rt_pin_readFunction · 0.50

Tested by

no test coverage detected