Skip to main content

pamoja_gpio_line_drive

Function pamoja_gpio_line_drive 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_gpio_line_drive( line: *mut PamojaGpioLine, level: PamojaPinLevel, ) -> PamojaStatus
Expand description

Drives an output line to a level.

§Arguments

  • line - the line.
  • level - the level to drive.

§Returns

PamojaStatus::Ok; PamojaStatus::InvalidArgument for a null line; or PamojaStatus::Io when the kernel refuses the write, which is what an input line answers.

§Safety

line must be a live handle from one of the open functions, or null.