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
property_path_str: Full path under crate::config::FPGA_MANAGERS_DIR.data: Byte array to write.
§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:
- Path must be under crate::config::FPGA_MANAGERS_DIR - determined at compile time.
§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");