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

Function parse_pin_mode

std/src/gpio/mod.rs:90–92  ·  view source on GitHub ↗
(scope: &Scope<'_>, narg: u8)

Source from the content-addressed store, hash-verified

88}
89
90fn parse_pin_mode(scope: &Scope<'_>, narg: u8) -> CallResult<PinMode> {
91 PinMode::parse(scope.get_string(narg)).map_err(|e| CallError::Syntax(scope.get_pos(narg), e))
92}
93
94/// Generic abstraction over a GPIO chip to back all EndBASIC commands.
95pub trait Pins {

Callers 1

execMethod · 0.85

Calls 3

parseFunction · 0.85
get_stringMethod · 0.80
get_posMethod · 0.80

Tested by

no test coverage detected