Rust TLP lib
This crate provide structs and functions to parse PCI TLP packets.
Example
use TlpPacket;
use TlpFmt;
use TlpType;
use new_msg_req;
use new_conf_req;
use new_mem_req;
use new_cmpl_req;
// Bytes for full TLP Packet
// <------- DW1 --------> <------- DW2 --------> <------- DW3 --------> <------- DW4 -------->
let bytes = vec!;
let packet = new;
let header = packet.get_header;
// TLP Type tells us what is this packet
let tlp_type = header.get_tlp_type.unwrap;
let tlp_format = packet.get_tlp_format;
// Get requester_id field from this TLP (TLP can be of different types)
let requester_id;
match
println!;
Documentation
The documentation of the released version is available on doc.rs.
To generate current documentation please run cargo new docs --lib
License
Licensed under:
- The 3-Clause BSD License