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

Function rt_pin_read

components/drivers/pin/dev_pin.c:158–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158rt_ssize_t rt_pin_read(rt_base_t pin)
159{
160 RT_ASSERT(_hw_pin.ops != RT_NULL);
161 return _hw_pin.ops->pin_read(&_hw_pin.parent, pin);
162}
163
164/* Get pin number by name, such as PA.0, P0.12 */
165rt_base_t rt_pin_get(const char *name)

Callers 11

_pin_cmd_readFunction · 0.70
spi_soft_tog_sclkFunction · 0.50
spi_soft_get_sclkFunction · 0.50
spi_soft_get_mosiFunction · 0.50
spi_soft_get_misoFunction · 0.50
gpio_led_get_stateFunction · 0.50
get_sdaFunction · 0.50
get_sclFunction · 0.50
i2c_bus_unlockFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected