Type Alias ocsd_extern_dcd_inst_t

Source
pub type ocsd_extern_dcd_inst_t = _ocsd_extern_dcd_inst;
Expand description

Owned by the library instance object, this structure is filled in by the ocsd_extern_dcd_fact_t createDecoder() function.

Aliased Type§

struct ocsd_extern_dcd_inst_t {
    pub fn_data_in: Option<unsafe extern "C" fn(*const c_void, u32, u32, u32, *const u8, *mut u32) -> u32>,
    pub fn_update_pkt_mon: Option<unsafe extern "C" fn(*const c_void, i32)>,
    pub decoder_handle: *mut c_void,
    pub p_decoder_name: *mut i8,
    pub cs_id: u8,
}

Fields§

§fn_data_in: Option<unsafe extern "C" fn(*const c_void, u32, u32, u32, *const u8, *mut u32) -> u32>

< raw trace data input function to decoder

§fn_update_pkt_mon: Option<unsafe extern "C" fn(*const c_void, i32)>

< update the packet monitor / sink usage flags

§decoder_handle: *mut c_void

< Instance handle for the decoder - used by library to call the decoder call in functions

§p_decoder_name: *mut i8

< type name of the decoder - may be used in logging

§cs_id: u8

< Coresight ID for the instance - extracted from the config on creation.