Skip to main content

write_property_bytes

Function write_property_bytes 

Source
fn write_property_bytes(
    property_path_str: &str,
    data: &[u8],
) -> Result<String, Error>
Expand description

Write raw bytes to an arbitrary FPGA device property.

§Arguments

§Returns: Result<String, Error>

  • Ok(String) – Confirmation of written data.
  • Err(fdo::Error) if path is outside FPGA managers, or if the writing failed for any other reason

Notes:

§Examples

let result = control_interface
    .xlnx_sys(
        "write_property_bytes",
        "/sys/class/fpga_manager/fpga0/key",
        "BADBAD")
    .await?;
assert_eq!(result, "Byte string successfully written to /sys/class/fpga_manager/fpga0/key");