pub fn start_msg_filter(&self, filter_type: FilterType, mask_msg: Option<&PassThruMsg>, pattern_msg: Option<&PassThruMsg>, flow_control_msg: Option<&PassThruMsg>) -> Result<u32> {
        let mut msg_id: u32 = 0;

        let mask_ptr = match mask_msg {
            Some(msg) => msg as *const PassThruMsg,
            None => std::ptr::null() as *const PassThruMsg,
        };

        let pattern_ptr = match pattern_msg {
            Some(msg) => msg as *const PassThruMsg,
            None => std::ptr::null() as *const PassThruMsg,
        };

        let flow_control_ptr = match flow_control_msg {
            Some(msg) => msg as *const PassThruMsg,
            None => std::ptr::null() as *const PassThruMsg,
        };

        let res = unsafe { j2534_PassThruStartMsgFilter(self.device.interface.handle, self.id, filter_type as u32, mask_ptr, pattern_ptr, flow_control_ptr, &mut msg_id as *mut libc::uint32_t) };
        if res != 0 {
            return Err(Error::from_code(res));
        }
        Ok(msg_id)
    }
/// Sets up a network protocol filter to filter messages received by the PassThru device. There is a limit of ten filters per network layer protocol.
/// The device blocks all receive frames by default when no filters are defined.
/// http://www.drewtech.com/support/passthru/startmsgfilter.html
Sets up a network protocol filter to filter messages received by the PassThru device. There is a limit of ten filters per network layer protocol.
The device blocks all receive frames by default when no filters are defined.
Sets up a network protocol filter to filter messages received by the PassThru device . There is a limit of ten filters per network layer protocol . The device blocks all receive frames by default when no filters are defined .
pub fn start_msg_filter(&self, filter_type: FilterType, mask_msg: Option<&PassThruMsg>, pattern_msg: Option<&PassThruMsg>, flow_control_msg: Option<&PassThruMsg>) -> Result<u32> {
        let mut msg_id: u32 = 0;
        let mask_ptr = match mask_msg {
            Some(msg) => msg as *const PassThruMsg,
            None => std::ptr::null() as *const PassThruMsg,
        };
        let pattern_ptr = match pattern_msg {
            Some(msg) => msg as *const PassThruMsg,
            None => std::ptr::null() as *const PassThruMsg,
        };
        let flow_control_ptr = match flow_control_msg {
            Some(msg) => msg as *const PassThruMsg,
            None => std::ptr::null() as *const PassThruMsg,
        };
        let res = unsafe { j2534_PassThruStartMsgFilter(self.device.interface.handle, self.id, filter_type as u32, mask_ptr, pattern_ptr, flow_control_ptr, &mut msg_id as *mut libc::uint32_t) };
        if res != 0 {
            return Err(Error::from_code(res));
        }
        Ok(msg_id)
    }
pub fn start_msg_filter ( & self , filter_type : FilterType , mask_msg : Option < & PassThruMsg > , pattern_msg : Option < & PassThruMsg > , flow_control_msg : Option < & PassThruMsg > ) -> Result < u32 > { let mut msg_id : u32 = 0 ; let mask_ptr = match mask_msg { Some ( msg ) => msg as * const PassThruMsg , None => std :: ptr :: null ( ) as * const PassThruMsg , } ; let pattern_ptr = match pattern_msg { Some ( msg ) => msg as * const PassThruMsg , None => std :: ptr :: null ( ) as * const PassThruMsg , } ; let flow_control_ptr = match flow_control_msg { Some ( msg ) => msg as * const PassThruMsg , None => std :: ptr :: null ( ) as * const PassThruMsg , } ; let res = unsafe { j2534_PassThruStartMsgFilter ( self . device . interface . handle , self . id , filter_type as u32 , mask_ptr , pattern_ptr , flow_control_ptr , & mut msg_id as * mut libc :: uint32_t ) } ; if res != 0 { return Err ( Error :: from_code ( res ) ) ; } Ok ( msg_id ) }
Sets up a network protocol filter to filter messages received by the PassThru device.
Sets up a network protocol filter to filter messages received by the PassThru device .
&self
filter_type
FilterType
mask_msg
Option<&PassThruMsg>
pattern_msg
Option<&PassThruMsg>
flow_control_msg
Option<&PassThruMsg>
&self
filter_type
FilterType
mask_msg
Option<&PassThruMsg>
pattern_msg
Option<&PassThruMsg>
flow_control_msg
Option<&PassThruMsg>