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

Function parse_pin

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

Source from the content-addressed store, hash-verified

84}
85
86fn parse_pin(scope: &Scope<'_>, narg: u8) -> CallResult<Pin> {
87 Pin::from_i32(scope.get_integer(narg)).map_err(|e| CallError::Syntax(scope.get_pos(narg), e))
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))

Callers 1

execMethod · 0.85

Calls 2

get_integerMethod · 0.80
get_posMethod · 0.80

Tested by

no test coverage detected