(&self, scope: Scope<'_>)
| 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. |
no test coverage detected