* This function gets the sda pin state. * @param i2c config class. */
| 174 | * @param i2c config class. |
| 175 | */ |
| 176 | static 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. |
nothing calls this directly
no test coverage detected