sentry_uapi::syscall

Function gpio_set

Source
pub fn gpio_set(resource: u32, io: u8, val: bool) -> Status
Expand description

Set the value of a given GPIO for a device identified by its handle

ยงdescription

This syscall allows to get back the value of a GPIO identifier associated to the corresponding pinmux declared in the device tree.

Its behavior is similar to gpio_get. the value set is a classical boolean value, used in order to set high or low the value of the GPIO pin.

If the given GPIO is in input mode, the syscall returns Status::Badstate.

Except this specific behavior, this syscall behave the same way as gpio_get.