internal static void initialize_LIN_frames() { LIN.m_stopwatch = new Stopwatch(); LIN.m_opmode = LIN.OPMODE.LISTEN; LIN.m_working_frame.FrameInfo.FrameData = new byte[9]; LIN.reset_working_frame(); LIN.Reset_LIN_Frame_Buffers(); LIN.m_FrameStartTimer = new Timer(new TimerCallback(LIN.frame_has_timed_out), null, -1, -1); LIN.m_working_frame.BuildState.we_have_transmitted = false; LIN.m_working_frame.BuildState.transmit_data_byte_count_zero = false; LIN.m_working_frame_is_done = new AutoResetEvent(false); LIN.m_slave_profile_id_read = new AutoResetEvent(false); LIN.m_slave_profile_id.ByteCount = 0; LIN.m_slave_profile_id.FrameID = 0; LIN.m_slave_profile_id.Data = new byte[255]; }
public static bool SetModeTransmit() { LIN.m_opmode = LIN.OPMODE.TRANSMIT; return(true); }
public static bool SetModeDisplayAll() { LIN.m_opmode = LIN.OPMODE.DISPLAY_ALL; return(true); }
public static bool SetModeListen() { LIN.m_opmode = LIN.OPMODE.LISTEN; return(true); }