(scope: &Scope<'_>, narg: u8)
| 84 | } |
| 85 | |
| 86 | fn 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 | |
| 90 | fn 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)) |
no test coverage detected