* This function gets the scl pin state. * @param i2c config class. */
| 183 | * @param i2c config class. |
| 184 | */ |
| 185 | static rt_int32_t get_scl(void *cfg) |
| 186 | { |
| 187 | return rt_pin_read(((const struct soft_i2c_config*)cfg)->scl_pin); |
| 188 | } |
| 189 | |
| 190 | |
| 191 | static const struct rt_i2c_bit_ops soft_i2c_ops = |
nothing calls this directly
no test coverage detected