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

Function spi_soft_set_mosi

components/drivers/spi/dev_soft_spi.c:160–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160static void spi_soft_set_mosi(void *data, rt_int32_t state)
161{
162 struct rt_soft_spi_config *cfg = (struct rt_soft_spi_config *)data;
163 if (state)
164 {
165 rt_pin_write(cfg->mosi, PIN_HIGH);
166 }
167 else
168 {
169 rt_pin_write(cfg->mosi, PIN_LOW);
170 }
171}
172
173static void spi_soft_set_miso(void *data, rt_int32_t state)
174{

Callers

nothing calls this directly

Calls 1

rt_pin_writeFunction · 0.50

Tested by

no test coverage detected