pub trait CompletionRequest {
// Required methods
fn cmpl_id(&self) -> u16;
fn cmpl_stat(&self) -> u8;
fn bcm(&self) -> u8;
fn byte_cnt(&self) -> u16;
fn req_id(&self) -> u16;
fn tag(&self) -> u8;
fn laddr(&self) -> u8;
}
Expand description
Completion Request Trait
Completions are always 3DW (for with data (fmt = b010) and without data (fmt = b000) )
This trait is provided to have same API as other headers with variable size
To obtain this trait new_cmpl_req()
function has to be used
Trait release user from dealing with bitfield structures.