MCPcopy Index your code
hub / github.com/endbasic/endbasic / exec

Method exec

std/src/gpio/mod.rs:192–199  ·  view source on GitHub ↗
(&self, scope: Scope<'_>)

Source from the content-addressed store, hash-verified

190 }
191
192 fn exec(&self, scope: Scope<'_>) -> CallResult<()> {
193 debug_assert_eq!(2, scope.nargs());
194 let pin = parse_pin(&scope, 0)?;
195 let mode = parse_pin_mode(&scope, 1)?;
196
197 self.pins.borrow_mut().setup(pin, mode).map_err(CallError::from)?;
198 Ok(())
199 }
200}
201
202/// The `GPIO_CLEAR` command.

Callers 1

do_mock_testFunction · 0.45

Calls 15

parse_pinFunction · 0.85
parse_pin_modeFunction · 0.85
nargsMethod · 0.80
return_booleanMethod · 0.80
get_booleanMethod · 0.80
inject_readMethod · 0.80
iterMethod · 0.80
traceMethod · 0.80
return_stringMethod · 0.80
setupMethod · 0.45
clear_allMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected